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

/* ── Beta banner ── */
.beta-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: linear-gradient(90deg, rgba(26,107,74,0.95) 0%, rgba(18,80,55,0.95) 100%);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--emerald-lit);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 48px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #d4f5e3;
  letter-spacing: 0.01em;
  text-align: center;
}
.beta-banner-icon {
  color: var(--gold);
  flex-shrink: 0;
}
.beta-banner-close {
  position: absolute;
  right: 16px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}
.beta-banner-close:hover { color: #fff; }

/* ── 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: 39px; /* sits below beta banner (~39px tall) */
  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; }

/* Nav right cluster */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-screener-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--emerald-lit);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav-screener-link:hover { color: #4ade80; }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 160px 0 80px; /* extra for beta banner + nav */
  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); }
}

/* Live badge — green instead of gold */
.badge-live {
  background: rgba(26,107,74,0.12);
  border-color: var(--emerald-lit);
  color: #4ade80;
}
.badge-dot-live {
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
}

/* Screener CTA (hero) */
.screener-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.screener-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  background: var(--emerald);
  color: #e8ede9;
  border: 1.5px solid var(--emerald-lit);
  border-radius: var(--radius);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  cursor: pointer;
}
.screener-cta-btn:hover {
  background: var(--emerald-lit);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26,107,74,0.35);
}
.screener-cta-btn:active {
  transform: translateY(0);
}
.screener-cta-note {
  font-size: 0.8rem;
  color: var(--text-3);
}

/* Dual CTA row */
.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

/* Outline / secondary button */
.cta-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 28px;
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Satoshi', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  white-space: nowrap;
}
.cta-btn-outline:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
  background: rgba(201,168,76,0.06);
}

/* Collapsible waitlist section */
.waitlist-collapse {
  margin-top: 20px;
}

/* Dividers between screener CTA and waitlist form */
.hero-divider,
.cta-bottom-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--text-3);
  font-size: 0.82rem;
}
.hero-divider::before,
.hero-divider::after,
.cta-bottom-divider::before,
.cta-bottom-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* 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); }

/* ── STATS BAR ── */
.stats-bar {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}

.stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 40px;
  text-align: center;
}

.stat-num {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.9rem;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-2);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.stat-badge {
  color: var(--gold);
  font-size: 1rem;
}

.stat-aaoifi {
  flex-direction: row;
  gap: 8px;
  max-width: 280px;
}

.stat-aaoifi .stat-label {
  text-align: left;
  line-height: 1.4;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── HOW-SECTION CTA ── */
.how-cta {
  display: flex;
  justify-content: center;
  margin-top: 56px;
}

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

.faq-list {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  background: var(--bg-3);
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Satoshi', sans-serif;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text);
  transition: background 0.2s, color 0.2s;
}
.faq-question:hover {
  background: rgba(26,107,74,0.08);
  color: #e8ede9;
}

.faq-chevron {
  color: var(--text-3);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq-answer {
  padding: 0 28px 24px;
  background: var(--bg-3);
}
.faq-answer p {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.7;
}

/* ── 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;
  }

  .screener-cta-btn {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
    font-size: 1rem;
  }

  .screener-cta-wrap {
    width: 100%;
  }

  /* Dual CTA on mobile — stack vertically */
  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .cta-btn-outline {
    justify-content: center;
    font-size: 1rem;
  }

  /* Stats bar — stack on mobile */
  .stats-inner {
    flex-direction: column;
    gap: 20px;
  }
  .stat-divider {
    width: 60px;
    height: 1px;
  }
  .stat-aaoifi {
    max-width: 100%;
  }

  /* FAQ on mobile — smaller padding */
  .faq-question {
    padding: 18px 20px;
    font-size: 0.9rem;
  }
  .faq-answer {
    padding: 0 20px 20px;
  }
}

@media (max-width: 480px) {
  .beta-banner { font-size: 0.75rem; padding: 8px 40px; }
  .hero { padding: 140px 0 60px; }
  .section { padding: 72px 0; }
  .hero-title { font-size: 2.4rem; }
}
