* { box-sizing: border-box; }

:root {
  color-scheme: dark;
  --bg: #0b1118;
  --surface: #121b25;
  --raised: #202c38;
  --fg: #e8eef5;
  --muted: #b2bfcc;
  --accent: #72d5c5;
  --accent-strong: #b5f2e8;
  --border: #3a4b5a;
  --pill: #16443f;
  --pill-text: #b5f2e8;
  --up: #63d7a0;
  --glow: color-mix(in srgb, var(--accent) 13%, transparent);
  --hairline: color-mix(in srgb, var(--border) 42%, transparent);
}

/* Dark is the default; an explicit light preference gets the app's light tokens. */
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f3f6f7;
    --surface: #fff;
    --raised: #e6ecef;
    --fg: #17212b;
    --muted: #4b5a66;
    --accent: #176b61;
    --accent-strong: #0c3731;
    --border: #9baab4;
    --pill: #d0f1ea;
    --pill-text: #0c3731;
    --up: #0f6b45;
    --glow: color-mix(in srgb, var(--accent) 9%, transparent);
    --hairline: color-mix(in srgb, var(--border) 50%, transparent);
  }
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { letter-spacing: -.03em; line-height: 1.12; margin: 0; }
p { margin: 0; }

.skip { position: absolute; left: -1000px; top: 0; z-index: 30; padding: 10px 14px; background: var(--surface); color: var(--fg); }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--hairline);
  backdrop-filter: blur(14px);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--fg); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand strong { display: block; font-size: 1.3rem; line-height: 1.15; letter-spacing: -.025em; }
.brand-copy span { display: block; margin-top: 3px; color: var(--muted); font-size: .64rem; font-weight: 700; letter-spacing: .18em; }
.top-actions { display: flex; align-items: center; gap: 10px; }

/* ---------- buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: transparent;
  color: var(--accent);
  font-size: .95rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, border-color .15s, transform .15s;
}
.button:hover { background: var(--pill); text-decoration: none; }
.button:active { transform: translateY(1px); }
.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #06201c;
  font-weight: 750;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 22%, transparent);
}
.button.primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.button.quiet { border-color: transparent; }
.button.large { min-height: 52px; padding: 14px 26px; font-size: 1.02rem; }

/* ---------- hero ---------- */

.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 76px); }
.hero::before {
  content: "";
  position: absolute;
  top: -340px;
  left: 50%;
  width: 1100px;
  height: 680px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, var(--glow), transparent 68%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--glow); }
.hero h1 { margin: 18px 0 20px; font-size: clamp(2.3rem, 5.4vw, 3.65rem); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { max-width: 46ch; color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.17rem); line-height: 1.6; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 16px; color: var(--muted); font-size: .86rem; }

/* ---------- product mock ---------- */

.mock {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 24px 60px color-mix(in srgb, #000 28%, transparent);
}
.mock-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--hairline); }
.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.mock-label { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.mock-topic { margin: 16px 0 12px; font-size: 1.6rem; font-weight: 750; letter-spacing: -.03em; }
.mock-metrics { display: flex; flex-wrap: wrap; gap: 18px; padding-bottom: 15px; border-bottom: 1px solid var(--hairline); }
.mock-metric { display: grid; gap: 1px; }
.mock-metric b { font-size: 1.05rem; font-weight: 750; }
.mock-metric span { color: var(--muted); font-size: .72rem; }
.mock-metric .rise { color: var(--up); }
.badge { display: inline-block; padding: 5px 11px; border-radius: 30px; background: var(--pill); color: var(--pill-text); font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.mock-evidence { display: grid; gap: 1px; margin-top: 14px; }
.mock-evidence > span { margin-bottom: 7px; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.mock-story { display: grid; gap: 3px; padding: 10px 0; border-bottom: 1px solid var(--hairline); }
.mock-story:last-child { border-bottom: 0; }
.mock-story b { font-size: .93rem; font-weight: 650; line-height: 1.4; }
.mock-story span { color: var(--accent); font-size: .68rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }

/* ---------- sections ---------- */

section { padding: clamp(44px, 7vw, 84px) 0; }
.section-head { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head h2 { margin: 14px 0 14px; font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
.section-head p { color: var(--muted); font-size: 1.04rem; }
.bordered { border-top: 1px solid var(--hairline); }

/* ---------- features ---------- */

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; }
.feature {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  transition: border-color .18s, transform .18s;
}
.feature:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); transform: translateY(-2px); }
.feature-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 4px; border-radius: 11px; background: var(--pill); color: var(--pill-text); }
.feature-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.12rem; line-height: 1.3; }
.feature p { color: var(--muted); font-size: .94rem; }

/* ---------- steps ---------- */

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; counter-reset: step; }
.step { display: grid; align-content: start; gap: 9px; padding-top: 22px; border-top: 2px solid var(--accent); counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: .14em; }
.step h3 { font-size: 1.1rem; }
.step p { color: var(--muted); font-size: .94rem; }

/* ---------- sources ---------- */

.sources { display: flex; flex-wrap: wrap; gap: 9px; }
.source-pill { padding: 8px 14px; border: 1px solid var(--hairline); border-radius: 30px; background: var(--surface); color: var(--muted); font-size: .88rem; font-weight: 600; }
.source-pill.more { border-style: dashed; color: var(--accent); }

/* ---------- evidence callout ---------- */

.callout { display: grid; gap: 14px; padding: clamp(26px, 4vw, 42px); background: var(--raised); border-radius: 20px; }
.callout h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.callout p { max-width: 68ch; color: var(--muted); font-size: 1.02rem; }
.callout ul { display: grid; gap: 10px; margin: 4px 0 0; padding: 0; list-style: none; }
.callout li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 11px; align-items: start; color: var(--muted); font-size: .97rem; }
.callout li svg { width: 19px; height: 19px; margin-top: 3px; fill: none; stroke: var(--accent); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.callout li strong { color: var(--fg); font-weight: 650; }

/* ---------- final cta ---------- */

.cta-band { position: relative; overflow: hidden; margin: 0 0 clamp(44px, 7vw, 84px); padding: clamp(36px, 6vw, 68px) clamp(24px, 5vw, 56px); background: var(--surface); border: 1px solid var(--hairline); border-radius: 24px; text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: -60% 20% auto; height: 320px; background: radial-gradient(ellipse at center, var(--glow), transparent 70%); pointer-events: none; }
.cta-band h2 { position: relative; font-size: clamp(1.75rem, 3.8vw, 2.6rem); }
.cta-band p { position: relative; max-width: 54ch; margin: 16px auto 0; color: var(--muted); font-size: 1.05rem; }
.cta-band .hero-cta { position: relative; justify-content: center; }

/* ---------- footer ---------- */

footer { padding: 32px 0 44px; border-top: 1px solid var(--hairline); color: var(--muted); font-size: .89rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 38px; }
  .hero { padding-top: 44px; }
  .mock { order: 2; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .topbar-inner { min-height: 64px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand strong { font-size: 1.15rem; }
  .brand-copy span { display: none; }
  .top-actions .button:not(.primary) { display: none; }
  .hero h1 { font-size: 2.1rem; }
  .hero-cta .button { flex: 1 1 100%; }
  .mock-topic { font-size: 1.35rem; }
  .feature { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .feature:hover, .button:active { transform: none; }
  .feature, .button { transition: none; }
}
