:root {
  --bg: #0b110e;
  --bg-alt: #0f1813;
  --surface: #141f19;
  --surface-2: #1a2820;
  --border: #243529;
  --text: #eef4ef;
  --text-muted: #9fb2a5;
  --accent: #b6f36a;
  --accent-ink: #0b110e;
  --good: #5ad19a;
  --fix: #ffb454;
  --slow: #3b82f6;
  --fast: #ef4444;
  --radius: 14px;
  --radius-lg: 20px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", var(--font-body);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: inherit; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 32px; } }
.narrow { max-width: 780px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

.eyebrow {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.8em;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  padding: 0.85em 1.4em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #c8ff85; }
.btn-ghost { border-color: var(--border); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text-muted); }
.btn-sm { padding: 0.55em 1.1em; font-size: 0.9rem; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 17, 14, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
  text-decoration: none;
}
.brand-mark { width: 28px; height: 28px; color: var(--accent); }
.nav-links { display: none; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); }
@media (min-width: 860px) { .nav-links { display: flex; } }

/* Hero */
.hero {
  padding: 56px 0 72px;
  background:
    radial-gradient(800px 400px at 85% 10%, rgba(182, 243, 106, 0.08), transparent 70%),
    radial-gradient(600px 400px at 0% 100%, rgba(59, 130, 246, 0.06), transparent 70%);
}
.hero-inner { max-width: 820px; text-align: center; }
@media (min-width: 1020px) { .hero { padding: 120px 0 128px; } }
.lede { font-size: 1.15rem; color: var(--text-muted); max-width: 36em; margin-left: auto; margin-right: auto; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 28px 0; }
.hero-meta {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px;
  color: var(--text-muted); font-size: 0.9rem;
}
.hero-meta li::before { content: "✓"; color: var(--accent); margin-right: 0.45em; font-weight: 700; }

/* Sections */
.section { padding: 80px 0; }
@media (min-width: 720px) { .section { padding: 112px 0; } }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-sub { color: var(--text-muted); font-size: 1.05rem; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px;
}
.step p { color: var(--text-muted); margin: 0; }
.step-num {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-display); font-weight: 700;
  margin-bottom: 18px;
}

/* Trace styles */
.style-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .style-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .style-grid { grid-template-columns: repeat(3, 1fr); } }
.style-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 14px 22px;
}
.style-card h3, .style-card p { padding: 0 6px; }
.style-card p { color: var(--text-muted); font-size: 0.93rem; margin: 0; }
.mini {
  width: 100%; aspect-ratio: 4 / 5; display: block;
  border-radius: 10px; margin-bottom: 18px;
}

.card-legend {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 6px 0; font-size: 0.78rem; color: var(--text-muted);
}
.legend-bar { width: 72px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--slow), #22c55e, #facc15, var(--fast)); }

/* Features */
.feature-grid { display: grid; gap: 36px 32px; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature svg {
  width: 40px; height: 40px; padding: 8px;
  border-radius: 10px; background: var(--surface-2);
  fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  margin-bottom: 14px;
}
.feature p { color: var(--text-muted); margin: 0; }

/* AI Coach */
.coach-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1020px) { .coach-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }
.coach-copy > p { color: var(--text-muted); font-size: 1.05rem; }
.badge {
  display: inline-block;
  padding: 4px 12px; border-radius: 999px;
  background: rgba(182, 243, 106, 0.12); color: var(--accent);
  border: 1px solid rgba(182, 243, 106, 0.35);
  font-size: 0.8rem; font-weight: 600; margin-bottom: 18px;
}
.checks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.checks li { padding-left: 28px; position: relative; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.3em;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230b110e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.waitlist { display: flex; flex-wrap: wrap; gap: 10px; }
.waitlist input {
  flex: 1 1 220px; min-width: 0;
  padding: 0.85em 1.1em;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.waitlist input::placeholder { color: #6d8173; }
.form-msg { min-height: 1.6em; margin: 10px 0 0; font-size: 0.9rem; color: var(--text-muted); }
.form-msg.ok { color: var(--good); }
.form-msg.err { color: var(--fix); }

.report {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow);
  position: relative;
}
.report-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.report-kicker { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin: 0; }
.report-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin: 0; }
.score { position: relative; width: 64px; height: 64px; }
.score svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-track { fill: none; stroke: var(--surface-2); stroke-width: 3.5; }
.score-fill { fill: none; stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; }
.score span {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
}
.report-block { border-radius: var(--radius); padding: 16px 18px; margin-bottom: 12px; background: var(--surface-2); border-left: 3px solid; }
.report-block:last-child { margin-bottom: 0; }
.report-block.good { border-color: var(--good); }
.report-block.fix { border-color: var(--fix); }
.report-block h4 { font-size: 0.95rem; margin-bottom: 8px; }
.report-block.good h4 { color: var(--good); }
.report-block.fix h4 { color: var(--fix); }
.report-block ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--text-muted); font-size: 0.92rem; }
.report-block b { color: var(--text); font-weight: 600; }

/* Download */
.download {
  display: grid; gap: 40px;
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px 24px;
}
@media (min-width: 900px) { .download { grid-template-columns: 1.2fr 1fr; padding: 56px; align-items: center; } }
.download-copy p { color: var(--text-muted); font-size: 1.05rem; }
.download-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn-os svg { width: 20px; height: 20px; fill: currentColor; }
.reqs { margin: 0; display: grid; gap: 14px; }
.reqs div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.reqs div:last-child { border-bottom: 0; padding-bottom: 0; }
.reqs dt { font-weight: 600; font-size: 0.9rem; }
.reqs dd { margin: 0; color: var(--text-muted); font-size: 0.9rem; }

/* FAQ */
details { border-bottom: 1px solid var(--border); padding: 20px 0; }
details:first-of-type { border-top: 1px solid var(--border); }
summary {
  cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem;
  display: flex; justify-content: space-between; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--text-muted); margin: 12px 0 0; }

/* Footer */
.footer { padding: 36px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.footer p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }
