/* DegenLens — Halal Crypto Analysis
 * Palette: deep emerald bg, soft gold accent, warm off-white text
 * Fonts: Syne (headings) + Satoshi (body)
 */

/* ── Reset & variables ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #07100d;
  --bg-2:        #0d1a15;
  --bg-3:        #112118;
  --emerald:     #1a6b4a;
  --emerald-lit: #22875e;
  --gold:        #c9a84c;
  --gold-lit:    #e0be72;
  --gold-dim:    #8a6c2a;
  --text:        #e8ede9;
  --text-2:      #9db39e;
  --text-3:      #5c7a60;
  --border:      rgba(255,255,255,0.07);
  --border-gold: rgba(201,168,76,0.25);
  --radius:      12px;
  --radius-lg:   20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Satoshi', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Shared gold text ── */
.gold { color: var(--gold); }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(7,16,13,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  color: var(--gold);
  font-size: 1.3rem;
  line-height: 1;
}

.logo-text {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.lang-toggle {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.2s;
}
.lang-toggle:hover { border-color: var(--border-gold); }

.lang-fr, .lang-en {
  font-family: 'Satoshi', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-3);
  transition: color 0.2s;
}
.lang-fr.active, .lang-en.active { color: var(--gold); }
.lang-sep { color: var(--text-3); font-size: 0.75rem; }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(26,107,74,0.22) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,0.08);
  border: 1px solid var(--border-gold);
  border-radius: 100px;
  padding: 6px 14px;
  margin-bottom: 28px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.3); }
}

/* Hero title */
.hero-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--text);
}

.hero-title em {
  font-style: normal;
}

/* Hero subtitle */
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-2);
  max-width: 560px;
  line-height: 1.65;
  margin-bottom: 40px;
}

/* Waitlist form */
.waitlist-form {
  margin-bottom: 12px;
}

.input-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.email-input {
  flex: 1;
  min-width: 220px;
  padding: 14px 18px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'Satoshi', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.email-input::placeholder { color: var(--text-3); }

.email-input:focus {
  border-color: var(--emerald-lit);
  box-shadow: 0 0 0 3px rgba(26,107,74,0.2);
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--gold);
  color: #07100d;
  border: none;
  border-radius: var(--radius);
  font-family: 'Satoshi', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}

.cta-btn:hover {
  background: var(--gold-lit);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(201,168,76,0.3);
}

.cta-btn:active {
  transform: translateY(0);
}

.btn-arrow {
  font-size: 1rem;
  transition: transform 0.2s;
}

.cta-btn:hover .btn-arrow { transform: translateX(3px); }

.form-note {
  font-size: 0.8rem;
  color: var(--text-3);
}

/* Success/already messages */
.success-msg, .already-msg, .success-msg-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  margin-top: 12px;
}

.success-msg, .success-msg-bottom {
  background: rgba(26,107,74,0.15);
  border: 1px solid rgba(26,107,74,0.4);
  color: #7fcba0;
}

.already-msg {
  background: rgba(201,168,76,0.1);
  border: 1px solid var(--border-gold);
  color: var(--gold);
}

.success-icon {
  font-weight: 700;
  color: #7fcba0;
}

/* ── SECTIONS ── */
.section {
  padding: 100px 0;
}

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--emerald-lit);
  margin-bottom: 16px;
  padding: 4px 0;
  border-bottom: 1px solid var(--emerald);
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 56px;
  max-width: 640px;
}

/* ── PROBLEM ── */
.problem-section {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.problem-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color 0.25s, transform 0.25s;
}

.problem-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-3px);
}

.problem-num {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(201,168,76,0.15);
  margin-bottom: 12px;
  line-height: 1;
}

.problem-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.problem-card p {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* ── FEATURES ── */
.features-section {
  background: var(--bg-2);
}

.features-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.feature-main {
  background: linear-gradient(135deg, var(--bg-3) 0%, rgba(26,107,74,0.12) 100%);
  border: 1px solid rgba(26,107,74,0.3);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--gold);
}

.feature-main h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.feature-main p {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 20px;
}

.feature-tag {
  display: inline-block;
  background: rgba(26,107,74,0.2);
  border: 1px solid rgba(26,107,74,0.4);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #7fcba0;
  letter-spacing: 0.04em;
}

.feature-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-item {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: border-color 0.25s;
}

.feature-item:hover { border-color: var(--border-gold); }

.feature-item-icon {
  font-size: 1.2rem;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 1px;
}

.feature-item h4 {
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.feature-item p {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* ── HOW IT WORKS ── */
.how-section {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}

.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step {
  flex: 1;
  padding: 0 16px;
}

.step-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, var(--emerald), var(--border));
  margin-top: 28px;
  flex-shrink: 0;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 16px;
}

.step-content h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.step-content p {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* ── CTA BOTTOM ── */
.cta-section {
  background: var(--bg);
  padding: 80px 0;
}

.cta-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border-gold);
  border-radius: 24px;
  overflow: hidden;
  padding: 60px 56px;
  text-align: center;
}

.cta-glow {
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
}

.cta-card h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--text);
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.cta-card p {
  color: var(--text-2);
  font-size: 1rem;
  margin-bottom: 28px;
}

.waitlist-form-bottom .input-row {
  justify-content: center;
}

/* ── FOOTER ── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-mission {
  color: var(--text-3);
  font-size: 0.85rem;
}

.footer-link {
  color: var(--text-2);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--gold); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .problem-grid {
    grid-template-columns: 1fr;
  }

  .features-layout {
    grid-template-columns: 1fr;
  }

  .steps {
    flex-direction: column;
    gap: 8px;
  }

  .step-line {
    width: 1px;
    height: 32px;
    background: linear-gradient(180deg, var(--emerald), var(--border));
    margin: 0 0 0 22px;
  }

  .cta-card {
    padding: 36px 24px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .input-row {
    flex-direction: column;
  }

  .cta-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero { padding: 100px 0 60px; }
  .section { padding: 72px 0; }
  .hero-title { font-size: 2.4rem; }
}
