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

:root {
  --indigo: #4b3cf0;
  --indigo-deep: #1f1a6b;
  --chartreuse: #d7ff45;
  --paper: #fffaf0;
  --ink: #121428;
  --muted: #62677d;
  --line: rgba(31, 26, 107, 0.16);
  --surface: rgba(255, 255, 255, 0.78);
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'SF Mono', ui-monospace, monospace;
  --serif: ui-serif, Georgia, serif;
  --max-width: 1120px;
}

html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(var(--max-width), calc(100% - 40px)); margin: 0 auto; }

nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 250, 240, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

nav .container, footer .container {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand, .footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.nav-brand img, .footer-brand img { width: 32px; height: 32px; }
.nav-links, .footer-links { display: flex; align-items: center; gap: 24px; }
.nav-links a, .footer-links a { color: var(--muted); font-size: 14px; }
.nav-links a:hover, .footer-links a:hover { color: var(--indigo); }

.hero { padding: 96px 0 84px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 72px; align-items: center; }
.status-pill {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 28px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--indigo-deep);
  font: 500 12px/1.2 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.status-pill span { width: 8px; height: 8px; border-radius: 50%; background: var(--chartreuse); box-shadow: 0 0 0 4px rgba(215, 255, 69, .25); }

h1, h2, h3 { line-height: 1.08; letter-spacing: -.035em; }
.hero h1 { max-width: 700px; font-size: clamp(46px, 6vw, 78px); }
.hero h1 em, .difference h2 em { color: var(--indigo); font-family: var(--serif); font-weight: 500; }
.hero-sub { max-width: 650px; margin-top: 26px; color: var(--muted); font-size: clamp(18px, 2.1vw, 22px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 18px; border-radius: 12px; font-weight: 700; }
.btn-primary { background: var(--indigo); color: white; box-shadow: 0 12px 30px rgba(75, 60, 240, .22); }
.btn-primary:hover { background: var(--indigo-deep); }
.btn-secondary { border: 1px solid var(--line); background: var(--surface); }
.focus-line { margin-top: 24px; color: var(--muted); font-size: 14px; }

.course-preview {
  position: relative;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 26px;
  background: linear-gradient(145deg, var(--indigo), var(--indigo-deep));
  color: white;
  box-shadow: 0 28px 70px rgba(31, 26, 107, .28);
}
.course-preview::before { content: ''; position: absolute; width: 260px; height: 260px; right: -100px; top: -100px; border-radius: 50%; background: rgba(215, 255, 69, .16); }
.preview-top { position: relative; display: flex; justify-content: space-between; gap: 16px; color: rgba(255,255,255,.66); font: 500 11px/1.2 var(--mono); letter-spacing: .08em; }
.course-preview h2 { position: relative; margin: 28px 0 22px; font-size: 28px; }
.course-preview ol { position: relative; display: grid; gap: 10px; padding: 0; list-style: none; }
.course-preview li { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 13px; border-radius: 12px; background: rgba(255,255,255,.08); }
.course-preview li > span { font: 500 12px var(--mono); color: rgba(255,255,255,.56); }
.course-preview li div { display: grid; gap: 2px; }
.course-preview li small { color: rgba(255,255,255,.6); }
.course-preview li.active { background: white; color: var(--ink); }
.course-preview li.active small { color: var(--muted); }
.course-preview li.active b { color: var(--indigo); }
.course-preview li.done b { color: var(--chartreuse); }
.preview-question { position: relative; display: flex; gap: 12px; align-items: center; margin-top: 18px; padding: 14px; border: 1px solid rgba(215,255,69,.35); border-radius: 12px; color: var(--chartreuse); }
.preview-question span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--chartreuse); color: var(--indigo-deep); font-weight: 700; }

.difference { padding: 74px 0; background: var(--ink); color: white; }
.difference-grid { display: grid; grid-template-columns: .35fr 1fr; gap: 50px; }
.difference h2 { font-size: clamp(34px, 5vw, 60px); }
.difference p:not(.section-label) { max-width: 680px; margin-top: 24px; color: rgba(255,255,255,.66); font-size: 18px; }
.section-label { color: var(--indigo); font: 500 12px/1.2 var(--mono); letter-spacing: .1em; }
.difference .section-label { color: var(--chartreuse); }

.section-block { padding: 88px 0; }
.section-block > .container > h2, .status-section h2 { max-width: 740px; margin-top: 16px; font-size: clamp(34px, 5vw, 56px); }
.feature-grid, .principle-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.feature-card, .principle-grid article { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.step-number { color: var(--indigo); font: 500 12px var(--mono); }
.feature-card h3, .principle-grid h3 { margin-top: 34px; font-size: 21px; }
.feature-card p, .principle-grid p { margin-top: 12px; color: var(--muted); }

.status-section { background: #eeecff; }
.status-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; }
.status-grid > div:first-child > p:last-child { margin-top: 22px; color: var(--muted); font-size: 18px; }
.capability-list { display: grid; gap: 14px; }
.capability-list > div { position: relative; padding: 20px 20px 20px 50px; border-radius: 16px; background: rgba(255,255,255,.72); }
.capability-list p { margin-top: 4px; color: var(--muted); }
.cap-dot { position: absolute; top: 25px; left: 22px; width: 10px; height: 10px; border-radius: 50%; }
.cap-dot.ready { background: #3ca66b; }
.cap-dot.building { background: var(--indigo); }
.cap-dot.later { background: #a8aabd; }

.principles { background: white; }
.principle-grid article { background: var(--paper); }
.principle-grid h3 { margin-top: 0; }
.final-cta { padding: 90px 0; text-align: center; background: var(--chartreuse); }
.final-cta h2 { margin-top: 14px; font-size: clamp(42px, 6vw, 70px); }
.final-cta p:not(.section-label) { max-width: 620px; margin: 18px auto 28px; font-size: 18px; }
footer { border-top: 1px solid var(--line); background: white; }

.support, .legal, .four-oh-four { padding: 72px 0 100px; }
.support h1, .legal h1, .four-oh-four h1 { font-size: clamp(40px, 6vw, 64px); }
.support > p, .legal .updated, .four-oh-four p { margin-top: 12px; color: var(--muted); }
.support-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.support-card { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.support-card h3 { font-size: 20px; }
.support-card p { margin-top: 12px; color: var(--muted); }
.support-card a, .legal a { color: var(--indigo); text-decoration: underline; text-underline-offset: 3px; }
.legal { max-width: 760px; }
.legal h2 { margin-top: 34px; font-size: 24px; }
.legal p, .legal ul { margin-top: 12px; color: #42465a; }
.legal ul { padding-left: 22px; }
.four-oh-four { min-height: calc(100vh - 68px); display: grid; place-content: center; text-align: center; }
.four-oh-four .btn { margin-top: 26px; }

@media (max-width: 860px) {
  .nav-links a[href^='#'] { display: none; }
  .hero { padding-top: 64px; }
  .hero-grid, .difference-grid, .status-grid { grid-template-columns: 1fr; gap: 44px; }
  .course-preview { max-width: 600px; }
  .feature-grid, .principle-grid { grid-template-columns: repeat(2, 1fr); }
  .support-cards { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .container { width: min(var(--max-width), calc(100% - 28px)); }
  nav .container { min-height: 60px; }
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 12px; }
  .nav-links a[href='/terms'] { display: none; }
  .hero { padding: 52px 0 64px; }
  .feature-grid, .principle-grid { grid-template-columns: 1fr; }
  .course-preview { padding: 20px; }
  .preview-top { font-size: 9px; }
  footer .container { padding: 18px 0; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
