:root {
  --bg: #FAFAF5;
  --fg: #111111;
  --fg-muted: #555555;
  --accent: #1B4332;
  --accent-bright: #ADFF2F;
  --card-bg: #FFFFFF;
  --card-border: rgba(27, 67, 50, 0.1);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
.nav {
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--card-border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.tagline-nav {
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-weight: 400;
  padding-left: 0.75rem;
  border-left: 1px solid var(--card-border);
}

/* ── HERO ── */
.hero { padding: 5rem 2rem 4rem; }
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-bright);
  flex-shrink: 0;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--fg);
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 460px;
  line-height: 1.7;
}

/* Widget cards */
.widget-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 4px 24px rgba(27, 67, 50, 0.06);
}
.streak-widget { margin-bottom: 1rem; }
.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.widget-label { font-size: 0.75rem; font-weight: 600; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.streak-badge {
  background: var(--accent-bright);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
}
.streak-score {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.score-num { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; color: var(--accent); }
.score-label { font-size: 0.8rem; color: var(--fg-muted); }
.progress-bar {
  height: 6px;
  background: rgba(27,67,50,0.1);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 0.4rem;
}
.progress-fill { height: 100%; background: var(--accent-bright); border-radius: 99px; }
.progress-label { font-size: 0.7rem; color: var(--fg-muted); margin-bottom: 1rem; }
.habit-checks { display: flex; flex-direction: column; gap: 0.5rem; }
.check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--fg-muted);
}
.check.done { color: var(--accent); }
.check.done svg { color: var(--accent-bright); }
.check.pending { opacity: 0.5; }

/* AI Coach widget */
.ai-coach-widget { display: flex; gap: 0.75rem; align-items: flex-start; }
.coach-avatar {
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-display);
}
.coach-text { font-size: 0.82rem; line-height: 1.5; color: var(--fg); font-style: italic; margin-bottom: 0.3rem; }
.coach-meta { font-size: 0.68rem; color: var(--fg-muted); }

/* ── SECTION COMMON ── */
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
}
.section-headline {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--fg);
}

/* ── FEATURES ── */
.features { padding: 5rem 2rem; }
.features-header { max-width: 1100px; margin: 0 auto 3rem; }
.features-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1.75rem;
  transition: box-shadow 0.2s;
}
.feature-card:hover { box-shadow: 0 6px 24px rgba(27,67,50,0.08); }
.feature-icon { margin-bottom: 1rem; }
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--fg);
}
.feature-card p { font-size: 0.875rem; color: var(--fg-muted); line-height: 1.65; }

/* ── STREAKS ── */
.streaks { padding: 4rem 2rem; background: var(--accent); color: white; }
.streaks-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.streaks .section-eyebrow { color: var(--accent-bright); }
.streaks .section-headline { color: white; }
.streaks-body { font-size: 0.95rem; color: rgba(255,255,255,0.75); line-height: 1.7; margin: 1rem 0 2rem; }
.streak-stats { display: flex; gap: 2rem; }
.streak-stat { display: flex; flex-direction: column; gap: 0.3rem; }
.stat-number { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--accent-bright); }
.stat-desc { font-size: 0.75rem; color: rgba(255,255,255,0.6); max-width: 160px; line-height: 1.5; }

/* Level card in streaks */
.level-card { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); border-radius: 16px; padding: 1.5rem; }
.level-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.level-label { font-size: 0.75rem; font-weight: 600; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.06em; }
.level-num { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--accent-bright); }
.xp-bar { height: 8px; background: rgba(255,255,255,0.15); border-radius: 99px; overflow: hidden; margin-bottom: 0.4rem; }
.xp-fill { height: 100%; background: var(--accent-bright); border-radius: 99px; width: 60%; }
.xp-text { font-size: 0.72rem; color: rgba(255,255,255,0.5); display: block; margin-bottom: 1.25rem; }
.achievements { display: flex; flex-direction: column; gap: 0.5rem; }
.ach { display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; }
.ach.unlocked { color: rgba(255,255,255,0.85); }
.ach.locked { color: rgba(255,255,255,0.3); }

/* ── HOW IT WORKS ── */
.howitworks { padding: 5rem 2rem; }
.howitworks .section-eyebrow { max-width: 1100px; margin: 0 auto; display: block; }
.howitworks .section-headline { max-width: 1100px; margin: 0.5rem auto 3rem; }
.steps {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.step { position: relative; }
.step-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(27,67,50,0.08);
  line-height: 1;
  margin-bottom: 1rem;
  display: block;
}
.step h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.6rem; }
.step p { font-size: 0.875rem; color: var(--fg-muted); line-height: 1.65; }

/* ── CLOSING ── */
.closing { padding: 5rem 2rem; background: var(--accent); color: white; text-align: center; }
.closing-inner { max-width: 680px; margin: 0 auto; }
.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.closing-body { font-size: 1.05rem; color: rgba(255,255,255,0.75); line-height: 1.7; }

/* ── FOOTER ── */
.footer { padding: 2rem; border-top: 1px solid var(--card-border); }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-brand .wordmark { font-size: 1rem; }
.footer-desc { font-size: 0.78rem; color: var(--fg-muted); }
.footer-links { font-size: 0.78rem; color: var(--fg-muted); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-right { display: flex; gap: 1rem; flex-wrap: wrap; }
  .streaks-inner { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .streak-stats { flex-direction: column; gap: 1rem; }
  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
  .footer-brand { flex-direction: column; }
}