/* ═══════════════════════════════════════════════
   Qutub Showcase — Visual Identity System v2
   Navigator + Space + Systems
   ─────────────────────────────────────────────────
   Sections:
     1. Tokens
     2. Reset & base
     3. Background — aurora, stars, spotlight, scroll
     4. Navigation
     5. Buttons & shared atoms
     6. Section primitives
     7. Hero + terminal
     8. Status / shipped
     9. Philosophy
    10. Qutub model
    11. Modules (flip cards)
    12. Pipeline (rail + packet)
    13. CLI playground
    14. Self-modification demo
    15. Readiness
    16. Architecture
    17. Roadmap
    18. CTA / footer
    19. Animations & motion
    20. Responsive
   ═══════════════════════════════════════════════ */

/* ──────────────────────────────────────────────
   1. Tokens
   ────────────────────────────────────────────── */
:root {
  /* primary palette — BRAND.md §7.2 */
  --void:           #0a0a0f;
  --cosmos:         #12121a;
  --nebula:         #1a1a2e;
  --signal:         #3b82f6;
  --signal-bright:  #60a5fa;

  /* secondary palette */
  --star-gold:      #e6c069;
  --progress:       #22c55e;
  --caution:        #f59e0b;
  --risk:           #ef4444;
  --star:           #f8fafc;
  --dust:           #94a3b8;
  --dust-faint:     #64748b;

  /* surfaces */
  --surface-1:      rgba(18, 18, 26, 0.55);
  --surface-2:      rgba(26, 26, 46, 0.45);
  --surface-elev:   rgba(28, 28, 44, 0.72);
  --hairline:       rgba(148, 163, 184, 0.12);
  --hairline-soft:  rgba(148, 163, 184, 0.08);
  --hairline-hot:   rgba(96, 165, 250, 0.35);

  /* gradients */
  --grad-primary:   linear-gradient(135deg, var(--signal) 0%, var(--progress) 100%);
  --grad-aurora:    linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #22c55e 100%);
  --grad-text:      linear-gradient(135deg, var(--star) 0%, var(--dust) 100%);

  /* type */
  --font-heading:   'Space Grotesk', system-ui, sans-serif;
  --font-body:      'Inter', system-ui, sans-serif;
  --font-mono:      'JetBrains Mono', ui-monospace, monospace;

  /* layout */
  --section-gap:    9rem;
  --content-max:    1160px;
  --nav-h:          68px;

  /* motion */
  --ease-out:       cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft:      cubic-bezier(0.4, 0, 0.2, 1);

  /* spotlight (set from JS) */
  --mx: 50%;
  --my: 0px;
}

/* ──────────────────────────────────────────────
   2. Reset & base
   ────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--void);
  color: var(--star);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(96, 165, 250, 0.25); color: var(--star); }

a {
  color: var(--signal-bright);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}
a:hover { color: var(--star); }

img, svg { display: block; max-width: 100%; }

button { font: inherit; }

code.inline-code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  padding: 0.1em 0.45em;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 4px;
  color: var(--signal-bright);
}

/* ──────────────────────────────────────────────
   3. Background — aurora, stars, spotlight, scroll progress
   ────────────────────────────────────────────── */
.aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  filter: blur(80px) saturate(140%);
  opacity: 0.55;
}
.aurora-blob {
  position: absolute;
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  border-radius: 50%;
  mix-blend-mode: screen;
  animation: aurora-drift 28s ease-in-out infinite alternate;
}
.aurora-blob--1 { top: -10%; left: -10%; background: radial-gradient(circle, #3b82f6 0%, transparent 60%); }
.aurora-blob--2 { top: 30%;  right: -15%; background: radial-gradient(circle, #8b5cf6 0%, transparent 60%); animation-delay: -8s; animation-duration: 36s; }
.aurora-blob--3 { bottom: -20%; left: 30%; background: radial-gradient(circle, #22c55e 0%, transparent 60%); animation-delay: -16s; animation-duration: 42s; opacity: 0.6; }

.stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
}

.spotlight {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(
    600px circle at var(--mx) var(--my),
    rgba(96, 165, 250, 0.08),
    transparent 40%
  );
  transition: background 0.15s var(--ease-out);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--grad-primary);
  z-index: 200;
  transition: width 0.05s linear;
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.5);
}

/* ──────────────────────────────────────────────
   4. Navigation
   ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.875rem 1.75rem;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(10, 10, 15, 0.7);
  border-bottom: 1px solid var(--hairline);
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(10, 10, 15, 0.85);
  border-bottom-color: var(--hairline-hot);
}

.nav-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  color: var(--star);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.nav-logo:hover { color: var(--star); }

.logo-icon { color: var(--signal-bright); display: inline-flex; }

.nav-links {
  display: flex;
  gap: 1.15rem;
  list-style: none;
  align-items: center;
}
.nav-links li { flex-shrink: 0; }
.nav-links a {
  color: var(--dust);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  position: relative;
  white-space: nowrap;
}
.nav-links a:not(.nav-cta):hover {
  color: var(--star);
}
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--signal-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-links a:not(.nav-cta).is-current { color: var(--star); }
.nav-links a:not(.nav-cta).is-current::after { transform: scaleX(1); }

.nav-cta {
  padding: 0.45rem 0.95rem;
  background: var(--star);
  color: var(--void) !important;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: transform 0.15s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.nav-cta:hover {
  color: var(--void) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(248, 250, 252, 0.15);
}

.nav-cmdk {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.7rem 0.45rem 0.75rem;
  background: rgba(96, 165, 250, 0.06);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  color: var(--dust);
  font-size: 0.8rem;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: border-color 0.2s var(--ease-out), color 0.2s var(--ease-out),
              background 0.2s var(--ease-out);
  margin-left: auto;
}
.nav-cmdk:hover {
  border-color: var(--hairline-hot);
  color: var(--star);
  background: rgba(96, 165, 250, 0.12);
}
.nav-cmdk svg { color: var(--signal-bright); }
.nav-cmdk kbd {
  padding: 0.1rem 0.4rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--dust);
  letter-spacing: 0.04em;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}
.nav-hamburger span {
  width: 22px;
  height: 2px;
  background: var(--dust);
  transition: all 0.3s var(--ease-out);
}

/* ──────────────────────────────────────────────
   4b. SPA views — hash-routed page system
   Each <section class="view" data-route="…"> is a page.
   Only one is .is-active at a time; others are display:none.
   ────────────────────────────────────────────── */
.view {
  display: none;
}
.view.is-active {
  display: block;
  animation: view-enter 0.45s var(--ease-out) both;
}
/* Hero needs flex centering for its content; the more-specific
   selector restores it over the generic .view.is-active rule. */
.view.hero.is-active {
  display: flex;
}
/* Per-page top padding clears the fixed nav. The hero already
   has its own larger padding, so we scope this to non-hero views. */
.view.is-active:not(.hero) {
  padding-top: calc(var(--nav-h) + 3.5rem);
  padding-bottom: 4rem;
  min-height: calc(100vh - var(--nav-h));
}
@keyframes view-enter {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

body { min-height: 100vh; }

/* Per-view pager — appears at the bottom of every routed page */
.view-pager {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 1.75rem 1.75rem 4rem;
}
.view-pager-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.15rem;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  color: var(--dust);
  font-size: 0.85rem;
  font-weight: 500;
  transition: border-color 0.2s var(--ease-out), color 0.2s var(--ease-out),
              background 0.2s var(--ease-out), transform 0.2s var(--ease-out);
  min-width: 0;
  flex: 1 1 0;
  max-width: 280px;
}
.view-pager-prev { justify-content: flex-start; }
.view-pager-next { justify-content: flex-end; text-align: right; }
.view-pager-btn:hover {
  border-color: var(--hairline-hot);
  color: var(--star);
  background: var(--surface-elev);
  transform: translateY(-1px);
}
.view-pager-btn[aria-disabled="true"] {
  opacity: 0.35;
  pointer-events: none;
  transform: none;
}
.view-pager-dir {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--signal-bright);
}
.view-pager-label {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--star);
  font-weight: 600;
  letter-spacing: -0.005em;
}
.view-pager-btn svg { color: var(--signal-bright); flex-shrink: 0; }
.view-pager-counter {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--dust-faint);
  letter-spacing: 0.1em;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .view-pager { padding: 1.25rem 1.25rem 3rem; gap: 0.5rem; }
  .view-pager-btn { padding: 0.7rem 0.9rem; font-size: 0.78rem; }
  .view-pager-label { display: none; }
  .view-pager-counter { font-size: 0.7rem; }
}

/* ──────────────────────────────────────────────
   4c. Command palette — Cmd/Ctrl+K
   ────────────────────────────────────────────── */
.cmd-palette[hidden] { display: none; }
.cmd-palette {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14vh;
  animation: cmd-fade 0.18s var(--ease-out) both;
}
@keyframes cmd-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cmd-palette-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 10, 0.65);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
}
.cmd-palette-card {
  position: relative;
  width: min(560px, 92vw);
  background: rgba(18, 18, 26, 0.92);
  border: 1px solid var(--hairline-hot);
  border-radius: 14px;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(96, 165, 250, 0.08);
  overflow: hidden;
  animation: cmd-pop 0.22s var(--ease-out) both;
}
@keyframes cmd-pop {
  from { opacity: 0; transform: translateY(-6px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}
.cmd-palette-input-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--hairline);
}
.cmd-palette-search { color: var(--signal-bright); flex-shrink: 0; }
.cmd-palette-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--star);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 0;
}
.cmd-palette-input::placeholder { color: var(--dust-faint); }
.cmd-palette-kbd {
  padding: 0.18rem 0.45rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--dust);
  letter-spacing: 0.04em;
}
.cmd-palette-list {
  list-style: none;
  margin: 0;
  padding: 0.4rem;
  max-height: 56vh;
  overflow-y: auto;
}
.cmd-palette-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  color: var(--dust);
  transition: background 0.12s, color 0.12s;
}
.cmd-palette-item.is-active {
  background: rgba(96, 165, 250, 0.13);
  color: var(--star);
}
.cmd-palette-item-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(96, 165, 250, 0.1);
  color: var(--signal-bright);
  border-radius: 6px;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
}
.cmd-palette-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.cmd-palette-item-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--star);
  letter-spacing: -0.005em;
}
.cmd-palette-item-desc {
  font-size: 0.78rem;
  color: var(--dust);
  line-height: 1.4;
}
.cmd-palette-item-route {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--dust-faint);
  flex-shrink: 0;
}
.cmd-palette-empty {
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--dust-faint);
  font-size: 0.85rem;
}
.cmd-palette-foot {
  display: flex;
  gap: 1.25rem;
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.72rem;
  color: var(--dust-faint);
  font-family: var(--font-mono);
}
.cmd-palette-foot kbd { margin-right: 0.3rem; }
@media (max-width: 540px) {
  .cmd-palette { padding-top: 8vh; }
  .cmd-palette-foot { gap: 0.7rem; flex-wrap: wrap; }
  .cmd-palette-item-route { display: none; }
}

/* ──────────────────────────────────────────────
   5. Buttons & atoms
   ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: transform 0.15s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.2s var(--ease-out);
  border: 1px solid transparent;
  text-decoration: none;
}
.btn-primary {
  background: var(--star);
  color: var(--void);
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.4) inset, 0 8px 30px -8px rgba(96, 165, 250, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  color: var(--void);
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.5) inset, 0 14px 40px -10px rgba(96, 165, 250, 0.5);
}
.btn-secondary {
  background: rgba(248, 250, 252, 0.04);
  color: var(--star);
  border-color: rgba(248, 250, 252, 0.12);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  border-color: rgba(248, 250, 252, 0.28);
  background: rgba(248, 250, 252, 0.07);
  transform: translateY(-2px);
}

/* ──────────────────────────────────────────────
   6. Section primitives
   ────────────────────────────────────────────── */
section {
  position: relative;
  z-index: 3;
  padding: var(--section-gap) 1.75rem;
}

.section-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--signal-bright);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 1.25rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-title em {
  font-style: normal;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--dust);
  max-width: 680px;
  line-height: 1.7;
}

/* shared card "frame" used by many sections — gradient halo on hover */
.frame {
  position: relative;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  transition: border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.frame::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 15px;
  padding: 1px;
  background: var(--grad-aurora);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
  pointer-events: none;
}
.frame:hover::before { opacity: 0.6; }

/* ──────────────────────────────────────────────
   7. Hero + terminal
   ────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 4rem) 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  max-width: 110vw;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.1) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}
.hero-content {
  max-width: 880px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.95rem 0.4rem 0.7rem;
  background: rgba(96, 165, 250, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--signal-bright);
  letter-spacing: 0.02em;
  margin-bottom: 1.75rem;
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease-out);
}
.hero-badge:hover {
  background: rgba(96, 165, 250, 0.13);
  border-color: rgba(96, 165, 250, 0.4);
  color: var(--signal-bright);
  transform: translateY(-1px);
}
.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--progress);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 7vw, 5.25rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero h1 .accent {
  display: inline-block;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  color: var(--dust);
  margin-bottom: 2.5rem;
  line-height: 1.65;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  gap: 0.875rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

/* — terminal — */
.terminal-window {
  width: 100%;
  max-width: 720px;
  background: linear-gradient(180deg, rgba(18, 18, 26, 0.85) 0%, rgba(10, 10, 15, 0.85) 100%);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 20px 60px -20px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(96, 165, 250, 0.05) inset,
    0 60px 120px -40px rgba(96, 165, 250, 0.15);
  text-align: left;
  font-family: var(--font-mono);
  position: relative;
}
.terminal-window::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.4), rgba(34, 197, 94, 0.2), transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
}

.terminal-chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.85rem;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--hairline);
}
.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--dust-faint);
}
.terminal-dot:nth-child(1) { background: #ff5f56; }
.terminal-dot:nth-child(2) { background: #ffbd2e; }
.terminal-dot:nth-child(3) { background: #27c93f; }
.terminal-title {
  margin-left: auto;
  margin-right: auto;
  font-size: 0.72rem;
  color: var(--dust-faint);
  letter-spacing: 0.04em;
}

.terminal-body {
  padding: 1.25rem 1.4rem 1.5rem;
  font-size: 0.83rem;
  line-height: 1.65;
  color: var(--star);
  min-height: 220px;
}
.term-prompt { color: var(--signal-bright); user-select: none; }
.term-cmd { color: var(--star); }
.term-caret {
  display: inline-block;
  color: var(--signal-bright);
  animation: blink 1.05s steps(1) infinite;
  margin-left: 1px;
}
.term-output {
  color: var(--dust);
  font-size: 0.78rem;
  line-height: 1.7;
  margin-top: 0.8rem;
  white-space: pre-wrap;
  min-height: 140px;
}
.term-output .ok { color: var(--progress); }
.term-output .warn { color: var(--caution); }
.term-output .err { color: var(--risk); }
.term-output .info { color: var(--signal-bright); }
.term-output .dim { color: var(--dust-faint); }
.term-output .label { color: var(--star); font-weight: 500; }
.term-output .bar {
  display: inline-block;
  color: var(--progress);
  letter-spacing: -1px;
}

.hero-terminal { margin-top: 0.5rem; }

/* ──────────────────────────────────────────────
   8. Status / shipped
   ────────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
  margin-bottom: 3rem;
}
.stat-card {
  padding: 1.5rem 1.5rem 1.4rem;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  text-align: left;
  transition: border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.stat-card:hover {
  border-color: var(--hairline-hot);
  transform: translateY(-3px);
}
.stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.stat-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--dust);
  font-weight: 500;
}

.ship-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.ship-card {
  padding: 1.75rem 1.75rem 1.5rem;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  transition: border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.ship-card:hover {
  border-color: var(--hairline-hot);
  background: var(--surface-elev);
  transform: translateY(-4px);
}
.ship-card-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  color: var(--signal-bright);
}
.ship-card-head h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--star);
  letter-spacing: -0.01em;
}
.ship-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.ship-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: var(--dust);
  line-height: 1.5;
}
.ship-tick {
  color: var(--progress);
  font-weight: 700;
  flex-shrink: 0;
  font-family: var(--font-mono);
}

/* ──────────────────────────────────────────────
   9. Philosophy
   ────────────────────────────────────────────── */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
@media (max-width: 1100px) {
  .philosophy-grid { grid-template-columns: repeat(2, 1fr); }
}
.philosophy-card {
  padding: 1.85rem 1.65rem 1.7rem;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  transition: border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out), background 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.philosophy-card::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -40%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  pointer-events: none;
}
.philosophy-card:hover {
  border-color: var(--hairline-hot);
  transform: translateY(-4px);
}
.philosophy-card:hover::after { opacity: 1; }

.philosophy-card .card-number {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--signal-bright);
  letter-spacing: 0.15em;
  margin-bottom: 0.85rem;
  padding: 0.15rem 0.45rem;
  background: rgba(96, 165, 250, 0.1);
  border-radius: 4px;
}
.philosophy-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
  letter-spacing: -0.01em;
}
.philosophy-card p {
  color: var(--dust);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ──────────────────────────────────────────────
   10. Qutub model
   ────────────────────────────────────────────── */
.qutub-model {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr) ;
  gap: 0.5rem;
  align-items: center;
}
@media (max-width: 1000px) {
  .qutub-model { grid-template-columns: repeat(2, 1fr); }
  .qutub-arrow { display: none !important; }
}
@media (max-width: 540px) {
  .qutub-model { grid-template-columns: 1fr; }
}

.qutub-node {
  padding: 1.5rem 1.1rem;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  text-align: center;
  transition: border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out), background 0.3s var(--ease-out);
  position: relative;
  min-width: 0;
}
.qutub-node:hover {
  border-color: var(--hairline-hot);
  background: var(--surface-elev);
  transform: translateY(-3px);
}
.qutub-node.node-final {
  border-color: rgba(34, 197, 94, 0.3);
}
.qutub-node.node-final .node-icon { color: var(--progress); }

.qutub-node .node-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 0.85rem;
  border-radius: 10px;
  background: rgba(96, 165, 250, 0.1);
  color: var(--signal-bright);
}
.qutub-node h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  letter-spacing: -0.005em;
}
.qutub-node p {
  color: var(--dust);
  font-size: 0.78rem;
  line-height: 1.55;
}

.qutub-arrow {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline-hot), transparent);
  position: relative;
}
.qutub-arrow::after {
  content: '';
  position: absolute;
  right: -3px;
  top: -3px;
  width: 0;
  height: 0;
  border-left: 6px solid var(--signal-bright);
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  opacity: 0.7;
}

/* ──────────────────────────────────────────────
   11. Modules — flip cards
   ────────────────────────────────────────────── */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
  perspective: 1200px;
}

.module-card {
  position: relative;
  min-height: 240px;
  border-radius: 14px;
  transform-style: preserve-3d;
  transition: transform 0.7s var(--ease-out);
  cursor: default;
}
.module-card:hover,
.module-card:focus-within {
  transform: rotateY(180deg);
}

.module-card-front,
.module-card-back {
  position: absolute;
  inset: 0;
  padding: 1.6rem;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  display: flex;
  flex-direction: column;
}
.module-card-front {
  border-top: 2px solid var(--module-accent, var(--signal));
}
.module-card-back {
  transform: rotateY(180deg);
  border: 1px solid var(--module-accent, var(--signal));
  background: linear-gradient(160deg, var(--surface-elev) 0%, var(--surface-1) 100%);
}

.module-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  margin-bottom: 1rem;
  background: color-mix(in srgb, var(--module-accent, var(--signal)) 14%, transparent);
  color: var(--module-accent, var(--signal-bright));
}

.module-tag-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--module-accent, var(--signal-bright));
  background: color-mix(in srgb, var(--module-accent, var(--signal)) 10%, transparent);
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.85rem;
  align-self: flex-start;
}

.module-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.55rem;
  letter-spacing: -0.015em;
}
.module-card p {
  color: var(--dust);
  font-size: 0.875rem;
  line-height: 1.65;
}

.module-back-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dust-faint);
  margin-bottom: 0.85rem;
}
.dim-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.dim-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--star);
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--hairline-soft);
}
.dim-list li:last-child { border-bottom: none; }
.dim-weight {
  font-family: var(--font-mono);
  color: var(--module-accent, var(--signal-bright));
  font-size: 0.8rem;
  font-weight: 500;
}

/* ──────────────────────────────────────────────
   12. Pipeline (rail + packet)
   ────────────────────────────────────────────── */
.pipeline-flow {
  margin-top: 3rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.pipeline-input {
  padding: 0.95rem 1.2rem;
  background: var(--surface-elev);
  border: 1px dashed var(--hairline-hot);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--star);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.pipeline-input-label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--signal-bright);
  background: rgba(96, 165, 250, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  flex-shrink: 0;
}
.pipeline-input-value {
  color: var(--dust);
  word-break: break-all;
}

.pipeline-rail {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-left: 2.5rem;
}
.pipeline-track {
  position: absolute;
  left: 1rem;
  top: 30px;
  bottom: 30px;
  width: 2px;
  background: linear-gradient(180deg, var(--signal) 0%, var(--progress) 100%);
  opacity: 0.25;
  border-radius: 2px;
}
.pipeline-packet {
  position: absolute;
  left: -5px;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--signal-bright) 0%, var(--signal) 60%, transparent 100%);
  box-shadow: 0 0 16px var(--signal-bright), 0 0 30px var(--signal);
  animation: packet-flow 7s var(--ease-soft) infinite;
}

.pipeline-stage {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  transition: border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out), background 0.3s var(--ease-out);
  position: relative;
}
.pipeline-stage:hover {
  border-color: var(--hairline-hot);
  transform: translateX(4px);
}
.pipeline-stage.is-active {
  border-color: var(--signal-bright);
  background: var(--surface-elev);
  box-shadow: 0 0 0 1px var(--signal-bright), 0 0 30px -8px var(--signal);
}
.pipeline-stage.is-active .stage-status { color: var(--signal-bright); animation: pulse-dot 1s ease-in-out infinite; }

.stage-number {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--signal-bright);
  background: rgba(96, 165, 250, 0.08);
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}
.stage-body { flex: 1; min-width: 0; }
.stage-body h4 {
  font-family: var(--font-heading);
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.stage-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  text-transform: uppercase;
  cursor: help;
}
.stage-badge.ai-driven {
  color: var(--signal-bright);
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.3);
}
.stage-body p {
  color: var(--dust);
  font-size: 0.78rem;
  margin-top: 0.2rem;
  font-family: var(--font-mono);
}
.stage-status {
  font-size: 0.5rem;
  color: var(--dust-faint);
  flex-shrink: 0;
  transition: color 0.3s;
}

.pipeline-outputs {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.pipeline-output {
  padding: 0.55rem 1rem;
  background: rgba(34, 197, 94, 0.07);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--progress);
  transition: transform 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.pipeline-output:hover {
  background: rgba(34, 197, 94, 0.13);
  transform: translateY(-2px);
}

/* ──────────────────────────────────────────────
   13. CLI playground
   ────────────────────────────────────────────── */
.cli-stage {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 860px) {
  .cli-stage { grid-template-columns: 1fr; }
}

.cli-terminal { max-width: none; }
.cli-terminal .terminal-body { min-height: 320px; font-size: 0.8rem; }

.cli-commands {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.4rem;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: 12px;
}
.cli-commands-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--dust-faint);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}
.cli-cmd-btn {
  padding: 0.7rem 0.85rem;
  background: rgba(96, 165, 250, 0.04);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--dust);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}
.cli-cmd-btn:hover {
  border-color: var(--hairline-hot);
  color: var(--star);
  background: rgba(96, 165, 250, 0.08);
  transform: translateX(2px);
}
.cli-cmd-btn.is-active {
  border-color: var(--signal-bright);
  color: var(--signal-bright);
  background: rgba(96, 165, 250, 0.12);
}

/* ──────────────────────────────────────────────
   14. Self-modification demo
   ────────────────────────────────────────────── */
.surface-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .surface-grid { grid-template-columns: 1fr; }
}

.surface-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}
.surface-card {
  padding: 1.05rem 1.2rem;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  transition: border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.surface-card:hover {
  border-color: var(--hairline-hot);
  transform: translateX(4px);
}
.surface-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal-bright);
}
.surface-card h4 {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--star);
  margin: 0.35rem 0 0.4rem;
}
.surface-card p {
  font-size: 0.83rem;
  color: var(--dust);
  line-height: 1.55;
}

.modify-demo {
  background: var(--cosmos);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  overflow: hidden;
  font-family: var(--font-mono);
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}
.modify-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--hairline);
  font-size: 0.72rem;
}
.modify-file { color: var(--dust); }
.modify-actor { color: var(--signal-bright); }

.modify-code {
  padding: 1.1rem 1.2rem;
  font-size: 0.78rem;
  line-height: 1.75;
  color: var(--dust);
  min-height: 210px;
  white-space: pre;
  overflow-x: auto;
}
.modify-code .yaml-key { color: var(--signal-bright); }
.modify-code .yaml-val { color: var(--star); }
.modify-code .yaml-comment { color: var(--dust-faint); }
.modify-code .diff-old {
  color: var(--risk);
  background: rgba(239, 68, 68, 0.1);
  text-decoration: line-through;
}
.modify-code .diff-new {
  color: var(--progress);
  background: rgba(34, 197, 94, 0.12);
}
.modify-code .typing-caret {
  display: inline-block;
  width: 7px;
  height: 1em;
  background: var(--signal-bright);
  vertical-align: middle;
  animation: blink 1s steps(1) infinite;
}

.modify-status {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.1rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.78rem;
  color: var(--dust);
}
.modify-status-icon { color: var(--dust-faint); font-size: 0.5rem; }
.modify-status.is-ok .modify-status-icon { color: var(--progress); }
.modify-status.is-ok .modify-status-text { color: var(--progress); }
.modify-status.is-err .modify-status-icon { color: var(--risk); }
.modify-status.is-err .modify-status-text { color: var(--risk); }
.modify-status.is-thinking .modify-status-icon { color: var(--caution); animation: pulse-dot 1.2s ease-in-out infinite; }

.surface-foot {
  margin-top: 2rem;
  font-size: 0.92rem;
  color: var(--dust);
  max-width: 720px;
}
.surface-foot strong {
  color: var(--star);
  font-weight: 600;
}

/* ──────────────────────────────────────────────
   15. Readiness
   ────────────────────────────────────────────── */
.score-demo {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 900px) {
  .score-demo { grid-template-columns: 1fr; }
}

.score-visual {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  padding: 1.5rem 1.6rem;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: 14px;
}

.score-bar {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.score-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.score-bar-label {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.score-bar-value {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--signal-bright);
  font-weight: 500;
}
.score-bar-track {
  height: 7px;
  background: rgba(148, 163, 184, 0.08);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.score-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1.6s var(--ease-out);
  background: var(--grad-primary);
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.4);
}
.score-bar-classification {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--dust-faint);
  align-self: flex-end;
}
.score-bar-classification[data-class="ready_with_gaps"] { color: var(--caution); }
.score-bar-classification[data-class="building"] { color: var(--signal-bright); }
.score-bar-classification[data-class="not_ready"] { color: var(--risk); }
.score-bar-classification[data-class="ready"] { color: var(--progress); }

.score-formula {
  padding: 1.5rem 1.6rem;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: 14px;
}
.score-formula pre {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--dust);
  line-height: 1.85;
  overflow-x: auto;
}
.score-formula .highlight { color: var(--signal-bright); }
.score-formula .formula-comment { color: var(--dust-faint); font-style: italic; }

/* ──────────────────────────────────────────────
   16. Architecture
   ────────────────────────────────────────────── */
.arch-layers {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--hairline);
}
.arch-layer {
  padding: 1.05rem 1.5rem;
  background: var(--surface-1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  transition: background 0.3s var(--ease-out), padding-left 0.3s var(--ease-out);
  border-left: 3px solid transparent;
}
.arch-layer:hover {
  background: rgba(96, 165, 250, 0.06);
  border-left-color: var(--signal-bright);
  padding-left: 1.7rem;
}
.arch-layer h4 {
  font-family: var(--font-heading);
  font-size: 0.93rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.arch-desc {
  font-size: 0.78rem;
  color: var(--dust);
}
.arch-layer .tech {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--dust-faint);
  text-align: right;
  flex-shrink: 0;
  max-width: 50%;
}

/* ──────────────────────────────────────────────
   17. Roadmap
   ────────────────────────────────────────────── */
.roadmap-timeline {
  margin-top: 3rem;
  position: relative;
  padding-left: 2rem;
}
.roadmap-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg,
    var(--progress) 0%,
    var(--signal) 30%,
    var(--signal) 50%,
    rgba(148, 163, 184, 0.2) 100%);
}

.roadmap-phase {
  position: relative;
  padding: 0 0 2.5rem 1.75rem;
}
.roadmap-phase:last-child { padding-bottom: 0; }

.roadmap-phase::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 7px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--void);
  border: 2px solid var(--signal);
  transition: all 0.3s var(--ease-out);
}
.roadmap-phase.shipped::before {
  background: var(--progress);
  border-color: var(--progress);
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.5);
}
.roadmap-phase.active::before {
  background: var(--signal-bright);
  border-color: var(--signal-bright);
  box-shadow: 0 0 14px rgba(96, 165, 250, 0.5);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
.roadmap-phase.future::before {
  border-color: var(--dust-faint);
}

.roadmap-phase h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}
.roadmap-phase .phase-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--signal-bright);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}
.roadmap-phase.shipped .phase-label { color: var(--progress); }
.roadmap-phase.future .phase-label { color: var(--dust-faint); }

.roadmap-phase p {
  color: var(--dust);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ──────────────────────────────────────────────
   18. CTA / footer
   ────────────────────────────────────────────── */
.cta-section {
  text-align: center;
  padding: var(--section-gap) 1.5rem;
}
.cta-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cta-section p {
  color: var(--dust);
  font-size: 1.1rem;
  margin: 0 auto 2.5rem;
  max-width: 520px;
}

footer {
  position: relative;
  z-index: 3;
  padding: 3rem 1.75rem;
  border-top: 1px solid var(--hairline);
  text-align: center;
}
.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-brand {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--dust);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-links {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  font-size: 0.8125rem;
  color: var(--dust-faint);
}
.footer-links a:hover { color: var(--star); }

/* ──────────────────────────────────────────────
   19. Animations
   ────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-delay-1 { transition-delay: 0.08s; }
.fade-in-delay-2 { transition-delay: 0.16s; }
.fade-in-delay-3 { transition-delay: 0.24s; }
.fade-in-delay-4 { transition-delay: 0.32s; }
.fade-in-delay-5 { transition-delay: 0.4s; }
.fade-in-delay-6 { transition-delay: 0.48s; }

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

@keyframes packet-flow {
  0%   { top: 0;    opacity: 0; }
  6%   { opacity: 1; }
  94%  { opacity: 1; }
  100% { top: calc(100% - 12px); opacity: 0; }
}

@keyframes aurora-drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(30px, -40px) scale(1.1); }
  100% { transform: translate(-20px, 20px) scale(0.95); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .fade-in { opacity: 1; transform: none; }
  .aurora-blob { animation: none; }
  .pipeline-packet { display: none; }
  .term-caret, .typing-caret { animation: none; opacity: 1; }
  .module-card:hover { transform: none; }
}

/* ──────────────────────────────────────────────
   20. Responsive
   ────────────────────────────────────────────── */

/* Free nav space on mid-size screens: the palette stays one keystroke
   away (⌘K / Ctrl+K) even when its button is hidden. */
@media (max-width: 1200px) {
  .nav-cmdk { display: none; }
}

/* Hamburger takes over earlier now that the topbar holds ten routes —
   below this width the row no longer fits without cramming. */
@media (max-width: 1000px) {
  :root {
    --section-gap: 5.5rem;
  }

  .nav { padding: 0.75rem 1.25rem; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1.5rem 1.5rem;
    gap: 1.1rem;
    border-bottom: 1px solid var(--hairline);
    align-items: flex-start;
  }
  .nav-links.is-open { display: flex; }
  .nav-hamburger { display: flex; }
  .nav-cmdk { padding: 0.4rem 0.55rem; }
  .nav-cmdk span { display: none; }
  .nav-cmdk kbd { display: none; }

  .hero { padding-top: calc(var(--nav-h) + 2rem); }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; }
  .hero-actions .btn { justify-content: center; }

  .arch-layer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  .arch-layer .tech { text-align: left; max-width: 100%; }

  .footer-inner {
    flex-direction: column;
    gap: 1.2rem;
  }

  .modules-grid { perspective: none; }
  .module-card { min-height: auto; }
  .module-card:hover, .module-card:focus-within { transform: none; }
  .module-card-front, .module-card-back { position: relative; }
  .module-card-back { transform: none; margin-top: 0.6rem; }
}


@media (max-width: 480px) {
  .philosophy-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-value { font-size: 2rem; }
  .terminal-body { font-size: 0.74rem; padding: 1rem 1.1rem; min-height: 180px; }
  .modify-demo { position: static; }
}

/* ──────────────────────────────────────────────
   Hero Pattern Enhancements & Animations
   ────────────────────────────────────────────── */

/* Hero pattern: centered text hero */
.hero-centered {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
}
.hero-centered-content {
  max-width: 800px;
}
.hero-centered h1 {
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero-centered p {
  font-size: clamp(18px, 3vw, 24px);
  color: var(--dust);
  line-height: 1.6;
  margin-bottom: 40px;
}

/* Hero pattern: side-by-side (content + visual) */
.hero-split {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 100px 40px;
}
.hero-split-content { max-width: 500px; }
.hero-split-visual { display: flex; align-items: center; justify-content: center; }

/* Hero pattern: full-bleed with overlay */
.hero-fullbleed {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, transparent 100%);
  overflow: hidden;
}
.hero-fullbleed::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
  pointer-events: none;
}
.hero-fullbleed-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 40px;
}

/* Entrance animations */
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.3); }
  50% { box-shadow: 0 0 40px rgba(59, 130, 246, 0.6); }
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Animation utilities */
.animate-fade { animation: fade-in 0.8s var(--ease-out) forwards; }
.animate-slide-down { animation: slide-down 0.8s var(--ease-out) forwards; }
.animate-slide-up { animation: slide-up 0.8s var(--ease-out) forwards; }
.animate-scale { animation: scale-in 0.8s var(--ease-out) forwards; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-glow { animation: glow-pulse 2s ease-in-out infinite; }

/* Staggered animations */
.animate-stagger > * {
  animation: slide-up 0.6s var(--ease-out) forwards;
  opacity: 0;
}
.animate-stagger > :nth-child(1) { animation-delay: 0.1s; }
.animate-stagger > :nth-child(2) { animation-delay: 0.2s; }
.animate-stagger > :nth-child(3) { animation-delay: 0.3s; }
.animate-stagger > :nth-child(4) { animation-delay: 0.4s; }
.animate-stagger > :nth-child(5) { animation-delay: 0.5s; }
.animate-stagger > :nth-child(6) { animation-delay: 0.6s; }

/* Interactive card hover lift */
.card-lift {
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.card-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.15);
}

/* Interactive badge pulse */
.badge-pulse {
  animation: glow-pulse 2s ease-in-out infinite;
}

/* Grid reveal animation */
.grid-reveal {
  display: grid;
  opacity: 0;
}
.grid-reveal.active {
  animation: scale-in 0.6s var(--ease-out) forwards;
}

/* Qutub model diagram */
.qutub-diagram {
  display: flex;
  gap: 24px;
  align-items: center;
  margin: 40px 0;
  padding: 40px;
  background: rgba(59, 130, 246, 0.05);
  border-radius: 16px;
  border: 1px solid rgba(59, 130, 246, 0.2);
}
.qutub-step {
  flex: 1;
  text-align: center;
  padding: 20px;
  background: rgba(26, 26, 46, 0.5);
  border-radius: 12px;
  transition: all 0.3s var(--ease-out);
}
.qutub-step:hover {
  background: rgba(59, 130, 246, 0.1);
  transform: scale(1.05);
}
.qutub-step-icon {
  font-size: 32px;
  margin-bottom: 12px;
}
.qutub-step-label {
  font-size: 14px;
  color: var(--signal-bright);
  font-weight: 600;
  margin-bottom: 8px;
}
.qutub-step-desc {
  font-size: 13px;
  color: var(--dust);
  line-height: 1.5;
}

/* Animated flow diagram */
.flow-diagram {
  position: relative;
  height: 400px;
  margin: 60px 0;
  padding: 40px;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.05) 0%, transparent 100%);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  overflow: hidden;
}

/* Gradient text helper */
.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Stats counter animation */
.stat-counter {
  font-size: 3rem;
  font-weight: 700;
  color: var(--signal-bright);
  font-family: var(--font-mono);
}

/* Responsive hero splits */
@media (max-width: 768px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 80px 20px;
  }
  .hero-split-visual { min-height: 300px; }
  .hero-fullbleed-content { padding: 0 20px; }
  .qutub-diagram { flex-direction: column; gap: 16px; }
}

/* ──────────────────────────────────────────────────────────────
   Phase 2: Interactive Elements & Visual Effects
   ────────────────────────────────────────────────────────────── */

/* Scroll-triggered reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s var(--ease-out);
}
[data-reveal].reveal-active {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveals */
[data-reveal]:nth-child(1) { transition-delay: 0.1s; }
[data-reveal]:nth-child(2) { transition-delay: 0.2s; }
[data-reveal]:nth-child(3) { transition-delay: 0.3s; }
[data-reveal]:nth-child(4) { transition-delay: 0.4s; }
[data-reveal]:nth-child(5) { transition-delay: 0.5s; }
[data-reveal]:nth-child(6) { transition-delay: 0.6s; }

/* Circular progress indicator */
.circular-progress {
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.2));
}
.circular-progress circle:last-of-type {
  stroke-linecap: round;
  transform-origin: 60px 60px;
}

/* Tooltip animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-4px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.tooltip-popup {
  animation: fadeIn 0.2s ease-out !important;
}

/* Interactive card hover effects */
[data-interactive-card] {
  position: relative;
  overflow: visible;
  transition: all 0.3s var(--ease-out);
}

[data-interactive-card]:hover {
  border-color: rgba(59, 130, 246, 0.5);
}

.card-detail {
  animation: slideDown 0.3s ease-out;
}

/* Badge glow effect */
.badge-glow {
  position: relative;
}
.badge-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: rgba(59, 130, 246, 0.3);
  border-radius: 20px;
  opacity: 0;
  animation: glow-pulse 2s ease-in-out infinite;
  z-index: -1;
}

/* Progress bar animated fill */
.progress-bar {
  position: relative;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 20px;
  overflow: hidden;
  height: 8px;
  margin: 12px 0;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--signal) 0%, var(--progress) 100%);
  border-radius: 20px;
  width: 0%;
  transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stat card with animation */
.stat-card-animated {
  padding: 24px;
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s var(--ease-out);
}

.stat-card-animated:hover {
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(59, 130, 246, 0.1);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
}

.stat-value-animated {
  font-size: 36px;
  font-weight: 700;
  color: var(--signal-bright);
  font-family: var(--font-mono);
  margin-bottom: 8px;
}

.stat-label-animated {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--dust);
}

/* Comparison table with alternating rows */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.comparison-table th {
  padding: 12px;
  text-align: left;
  background: rgba(59, 130, 246, 0.1);
  border-bottom: 2px solid rgba(59, 130, 246, 0.3);
  color: var(--signal-bright);
  font-weight: 600;
  font-size: 13px;
}

.comparison-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
  color: var(--dust);
  font-size: 14px;
  transition: background 0.2s;
}

.comparison-table tr:hover td {
  background: rgba(59, 130, 246, 0.05);
}

/* Feature grid with icons */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.feature-item {
  padding: 24px;
  background: rgba(26, 26, 46, 0.5);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
}

.feature-item:hover {
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(59, 130, 246, 0.08);
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.1);
}

.feature-icon {
  font-size: 40px;
  margin-bottom: 12px;
  transition: transform 0.3s var(--ease-out);
}

.feature-item:hover .feature-icon {
  transform: scale(1.2) rotate(10deg);
}

.feature-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--star);
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 13px;
  color: var(--dust);
  line-height: 1.6;
}

/* Timeline visualization */
.timeline {
  position: relative;
  padding: 40px 0;
  margin: 40px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--signal) 0%, transparent 100%);
  transform: translateX(-50%);
}

.timeline-item {
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeIn 0.6s var(--ease-out) forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }

.timeline-marker {
  position: absolute;
  left: 50%;
  width: 16px;
  height: 16px;
  background: var(--signal-bright);
  border: 3px solid var(--void);
  border-radius: 50%;
  transform: translateX(-50%);
  top: 0;
  box-shadow: 0 0 0 3px var(--signal);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--signal), 0 0 0 10px rgba(59, 130, 246, 0); }
  50% { box-shadow: 0 0 0 3px var(--signal), 0 0 0 10px rgba(59, 130, 246, 0.4); }
}

.timeline-content {
  padding: 20px;
  background: rgba(26, 26, 46, 0.5);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 8px;
  margin-left: 50%;
  margin-left: calc(50% + 20px);
  transition: all 0.3s var(--ease-out);
}

.timeline-content:hover {
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(59, 130, 246, 0.08);
}

.timeline-date {
  font-size: 12px;
  color: var(--signal-bright);
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-title {
  font-size: 16px;
  color: var(--star);
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-desc {
  font-size: 13px;
  color: var(--dust);
  line-height: 1.6;
}

/* Animated qutub flow */
.qutub-flow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 40px 0;
  padding: 32px;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-radius: 12px;
}

.flow-step {
  flex: 1;
  text-align: center;
  padding: 16px;
  background: rgba(26, 26, 46, 0.6);
  border-radius: 8px;
  transition: all 0.3s var(--ease-out);
  position: relative;
}

.flow-step:hover {
  background: rgba(59, 130, 246, 0.15);
  transform: scale(1.08);
}

.flow-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--signal);
  border-radius: 50%;
  color: var(--void);
  font-weight: 700;
  margin-bottom: 12px;
  animation: float 3s ease-in-out infinite;
}

.flow-step:nth-child(1) .flow-step-number { animation-delay: 0s; }
.flow-step:nth-child(2) .flow-step-number { animation-delay: 0.3s; }
.flow-step:nth-child(3) .flow-step-number { animation-delay: 0.6s; }
.flow-step:nth-child(4) .flow-step-number { animation-delay: 0.9s; }

.flow-arrow {
  font-size: 24px;
  color: var(--signal-bright);
  opacity: 0.5;
  animation: bounce 1.5s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

.flow-arrow:nth-child(2) { animation-delay: 0.3s; }
.flow-arrow:nth-child(4) { animation-delay: 0.6s; }
.flow-arrow:nth-child(6) { animation-delay: 0.9s; }

/* Responsive timeline */
@media (max-width: 768px) {
  .timeline::before { left: 0; }
  .timeline-marker { left: 0; top: 10px; }
  .timeline-content { margin-left: 40px; }
  .qutub-flow { flex-direction: column; gap: 24px; }
  .flow-arrow { display: none; }
}

/* ──────────────────────────────────────────────
   Hero upgrade + purpose/how-it-works surfaces
   ────────────────────────────────────────────── */
.hero-signal-strip {
  width: min(100%, 760px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 auto 1.75rem;
}

.hero-signal-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.85rem;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: 12px;
}

.hero-signal-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.14);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.hero-signal-value {
  display: block;
  font-family: var(--font-mono);
  color: var(--signal-bright);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
}

.hero-signal-label {
  display: block;
  color: var(--dust);
  font-size: 0.72rem;
  line-height: 1.2;
}

.hero-orbit {
  width: 140px;
  height: 140px;
  margin: 0 auto 1.5rem;
  border-radius: 999px;
  position: relative;
  border: 1px solid rgba(96, 165, 250, 0.35);
  background:
    radial-gradient(circle at 50% 50%, rgba(96, 165, 250, 0.12), transparent 62%),
    linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(34, 197, 94, 0.08));
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.2) inset, 0 20px 60px -32px rgba(96, 165, 250, 0.55);
}

.hero-orbit::before {
  content: '';
  position: absolute;
  inset: 11px;
  border-radius: 999px;
  border: 1px dashed rgba(96, 165, 250, 0.4);
  animation: orbit-spin 16s linear infinite;
}

.hero-orbit-core {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--grad-primary);
  box-shadow: 0 0 22px rgba(34, 197, 94, 0.55);
}

.hero-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.8);
  box-shadow: 0 0 8px rgba(96, 165, 250, 0.75);
  transform: translate3d(var(--x, 0px), var(--y, 0px), 0);
}

@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.purpose-hero-content {
  max-width: 1080px;
  align-items: stretch;
}

.purpose-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.25rem;
  align-items: center;
}

.purpose-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 6vw, 4.25rem);
  line-height: 1.08;
  margin-bottom: 1.2rem;
  letter-spacing: -0.03em;
}

.purpose-hero-title span {
  display: block;
  color: var(--dust);
  margin-top: 0.3rem;
}

.purpose-hero-lead {
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  color: var(--dust);
  line-height: 1.6;
  margin-bottom: 1.1rem;
}

.purpose-hero-sub {
  color: var(--star);
  line-height: 1.7;
  max-width: 52ch;
}

.purpose-compass-panel {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 1.3rem 1.2rem;
}

.purpose-compass {
  width: 210px;
  height: 210px;
  margin: 0 auto 1rem;
  position: relative;
}

.purpose-compass-ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.45);
}

.purpose-compass-ring--inner {
  inset: 28px;
  border-color: rgba(34, 197, 94, 0.55);
}

.purpose-compass-needle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 84px;
  transform-origin: 50% 100%;
  transform: translate(-50%, -100%) rotate(0deg);
  background: linear-gradient(180deg, var(--risk) 0%, var(--signal) 54%, var(--progress) 100%);
  border-radius: 8px;
  animation: compass-align 5s var(--ease-out) infinite;
}

.purpose-compass-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--star);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.purpose-compass-labels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.purpose-compass-labels span {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dust-faint);
  text-align: center;
}

.purpose-compass-caption {
  text-align: center;
  color: var(--dust);
  font-size: 0.85rem;
}

.purpose-contrast-grid {
  margin-top: 2.8rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.purpose-contrast-card {
  padding: 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  background: var(--surface-1);
}

.purpose-contrast-card--risk {
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.08);
}

.purpose-contrast-card--progress {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.08);
}

.purpose-contrast-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.85rem;
  font-family: var(--font-mono);
  color: var(--signal-bright);
}

.purpose-contrast-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
  color: var(--star);
  font-size: 0.9rem;
}

@keyframes compass-align {
  0% { transform: translate(-50%, -100%) rotate(-80deg); }
  45% { transform: translate(-50%, -100%) rotate(18deg); }
  80% { transform: translate(-50%, -100%) rotate(28deg); }
  100% { transform: translate(-50%, -100%) rotate(-80deg); }
}

.how-hero {
  padding-top: calc(var(--nav-h) + 4rem);
}

.how-eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--signal-bright);
  margin-bottom: 0.8rem;
  font-size: 0.75rem;
}

.how-title {
  font-family: var(--font-heading);
  font-size: clamp(2.3rem, 5.4vw, 4.1rem);
  line-height: 1.07;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.how-title span {
  display: block;
  color: var(--dust);
}

.how-copy {
  color: var(--dust);
  max-width: 52ch;
  line-height: 1.7;
}

.how-kpis {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.how-kpi {
  border: 1px solid var(--hairline);
  background: var(--surface-1);
  border-radius: 10px;
  padding: 0.75rem;
}

.how-kpi-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--signal-bright);
  font-weight: 600;
}

.how-kpi-label {
  display: block;
  color: var(--dust);
  font-size: 0.76rem;
  margin-top: 0.25rem;
}

.how-progress-panel {
  width: min(100%, 520px);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: var(--surface-elev);
  padding: 1rem;
}

.how-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  color: var(--dust);
  font-size: 0.82rem;
  margin-bottom: 0.8rem;
}

.how-progress-head strong {
  color: var(--star);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.how-trend-chart {
  width: 100%;
  height: auto;
  margin-top: 0.85rem;
}

.how-trend-grid {
  fill: none;
  stroke: rgba(148, 163, 184, 0.22);
  stroke-width: 1;
}

.how-trend-area {
  fill: rgba(59, 130, 246, 0.14);
}

.how-trend-line {
  fill: none;
  stroke: url(#howTrendStroke);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.how-trend-point {
  fill: var(--signal-bright);
}

.how-stepper {
  margin-top: 2.5rem;
  border-radius: 16px;
  border: 1px solid var(--hairline);
  background: var(--surface-1);
  padding: 1rem;
}

.how-stepper-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
}

.how-stepper-tab {
  border: 1px solid var(--hairline);
  background: rgba(10, 10, 15, 0.35);
  color: var(--dust);
  border-radius: 10px;
  padding: 0.6rem 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
}

.how-stepper-tab:hover,
.how-stepper-tab[aria-current="step"] {
  border-color: var(--hairline-hot);
  color: var(--star);
  background: rgba(59, 130, 246, 0.14);
}

.how-stepper-panel {
  margin-top: 0.9rem;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 1rem;
  background: rgba(10, 10, 15, 0.45);
}

.how-stepper-count {
  color: var(--signal-bright);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.how-stepper-title {
  font-size: 1.2rem;
  margin-top: 0.4rem;
  font-family: var(--font-heading);
}

.how-stepper-desc {
  color: var(--dust);
  margin-top: 0.35rem;
  line-height: 1.7;
}

.how-stepper-example {
  margin-top: 0.9rem;
  border: 1px solid rgba(96, 165, 250, 0.25);
  background: rgba(59, 130, 246, 0.08);
  border-radius: 10px;
  padding: 0.75rem;
  color: var(--dust);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.how-stepper-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.how-stepper-actions button {
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--hairline);
  background: rgba(10, 10, 15, 0.45);
  color: var(--star);
  cursor: pointer;
  font-size: 0.82rem;
  transition: all 0.25s var(--ease-out);
}

.how-stepper-actions button:hover:not(:disabled) {
  border-color: var(--hairline-hot);
  background: rgba(59, 130, 246, 0.13);
}

.how-stepper-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .purpose-hero-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .purpose-compass {
    width: 180px;
    height: 180px;
  }

  .purpose-compass-needle {
    height: 68px;
  }

  .how-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .hero-signal-strip {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    margin-bottom: 1.15rem;
  }

  .hero-orbit {
    width: 120px;
    height: 120px;
    margin-bottom: 1rem;
  }

  .purpose-contrast-grid {
    grid-template-columns: 1fr;
  }

  .how-stepper-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .how-stepper-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .how-kpis {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-orbit::before,
  .purpose-compass-needle {
    animation: none !important;
  }
}

/* ──────────────────────────────────────────────
   Application screenshot gallery
   ────────────────────────────────────────────── */
.app-gallery-hero {
  min-height: 72vh;
}

.app-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.app-shot {
  margin: 0;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-elev);
  transition: transform 0.28s var(--ease-out), border-color 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out);
}

.app-shot:hover,
.app-shot:focus-within {
  transform: translateY(-4px);
  border-color: var(--hairline-hot);
  box-shadow: 0 14px 40px -24px rgba(96, 165, 250, 0.65);
}

.app-shot img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid var(--hairline);
}

.app-shot figcaption {
  padding: 0.85rem 0.95rem 1rem;
}

.app-shot h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 0.35rem;
  color: var(--star);
}

.app-shot p {
  color: var(--dust);
  font-size: 0.84rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .app-gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════════════════════
   THE NAME · etymology section (purpose) — BRAND.md §2, §10.5
   ══════════════════════════════════════════════════════════ */
.etymology-hero {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 80px;
}

.etymology-arabic {
  font-size: clamp(88px, 14vw, 144px);
  line-height: 1.2;
  color: var(--star-gold);
  margin-bottom: 20px;
}

.etymology-word {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--star);
  margin-bottom: 10px;
}

.etymology-phonetic {
  color: var(--dust);
  font-weight: 400;
}

.etymology-definition {
  font-size: 20px;
  color: var(--star);
  margin-bottom: 8px;
}

.etymology-languages {
  font-size: 15px;
  color: var(--dust);
}

.etymology-verse {
  text-align: center;
  margin-top: 96px;
}

.etymology-verse-line {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.7;
  color: var(--star-gold);
  margin-bottom: 14px;
}

.etymology-verse-translation {
  font-size: 15px;
  color: var(--dust);
}

@media (max-width: 900px) {
  .etymology-hero {
    margin-bottom: 56px;
  }

  .etymology-verse {
    margin-top: 64px;
  }
}

/* ══════════════════════════════════════════════════════════
   THE QUTUB NUMA — hero compass + honesty engine + pointer demo
   (BRAND.md §3, §10.5, §10.6 — calm instrument motion only)
   ══════════════════════════════════════════════════════════ */

/* ── Hero compass ─────────────────────────────────────────── */
.qutub-compass {
  position: relative;
  width: 168px;
  height: 168px;
  margin: 0 auto 28px;
}
.qutub-compass-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 220deg, #3b82f6, #60a5fa 30%, #e6c069 65%, #3b82f6);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
}
.qutub-compass-ring--inner {
  inset: 20px;
  background: rgba(96, 165, 250, 0.16);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
}
.qutub-compass::after {
  /* gold glow rising toward the star, like the logo's radial */
  content: '';
  position: absolute;
  left: 50%; top: 12%;
  width: 130%; height: 90%;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 18%, rgba(230, 192, 105, 0.16), transparent 62%);
  pointer-events: none;
}
.qutub-compass-tick {
  position: absolute;
  left: 50%;
  top: 5px;
  width: 2px;
  height: 8px;
  border-radius: 2px;
  background: #60a5fa;
  opacity: 0.7;
  transform-origin: 50% 79px;
}
.qutub-compass-tick:nth-child(3n) { background: #e6c069; opacity: 0.55; }
.qutub-compass-star {
  position: absolute;
  left: 50%;
  top: -10px;
  transform: translateX(-50%);
  color: var(--star-gold);
  font-size: 21px;
  line-height: 1;
  filter: drop-shadow(0 0 10px rgba(230, 192, 105, 0.75));
  animation: qutub-star-glimmer 5s ease-in-out infinite;
}
.qutub-compass-star::after {
  content: '\2726';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.45);
  color: #f8fafc;
}
.qutub-compass-needle {
  position: absolute;
  left: 50%;
  bottom: calc(50% - 48px);
  width: 3px;
  height: 112px;
  transform-origin: 50% 48px;
  transform: translateX(-50%) rotate(148deg);
  border-radius: 3px;
  /* two-tone: gold north tip toward the star, blue south tail */
  background: linear-gradient(
    to bottom,
    #e6c069 0%, #e6c069 52%,
    #60a5fa 56%, rgba(96, 165, 250, 0.35) 100%
  );
  box-shadow: 0 0 8px rgba(230, 192, 105, 0.35);
  animation: qutub-needle-settle 2.6s var(--ease-out) 0.4s forwards,
             qutub-needle-wander 9s ease-in-out 3.2s infinite;
}
.qutub-compass-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--void);
  border: 2px solid #f8fafc;
  z-index: 1;
}
.qutub-compass-caption {
  margin-top: 6px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dust-faint, #64748b);
}
@keyframes qutub-needle-settle {
  to { transform: translateX(-50%) rotate(0deg); }
}
@keyframes qutub-needle-wander {
  0%, 100% { transform: translateX(-50%) rotate(0deg); }
  18% { transform: translateX(-50%) rotate(2.5deg); }
  46% { transform: translateX(-50%) rotate(-1.8deg); }
  74% { transform: translateX(-50%) rotate(1.2deg); }
}
@keyframes qutub-star-glimmer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

/* ── Home sections (inside the home view) ─────────────────── */
.home-section {
  margin-top: 110px;
}
.honesty-grid,
.pointer-demo-grid {
  display: grid;
  gap: 20px;
  margin-top: 44px;
}
.honesty-grid { grid-template-columns: 1.1fr 0.9fr; }
.pointer-demo-grid { grid-template-columns: 0.85fr 1.15fr; align-items: center; }
.honesty-card {
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: var(--surface-1);
  padding: 24px;
}
.honesty-card h3 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dust);
  margin-bottom: 16px;
}
.honesty-evidence ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.honesty-evidence li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  border-radius: 9px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease;
  font-size: 14px;
  color: var(--star);
}
.honesty-evidence li:hover { background: var(--surface-2); }
.honesty-evidence li.is-off { opacity: 0.45; }
.tier-chip {
  min-width: 84px;
  text-align: center;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.tier-verified   { color: var(--star-gold); border-color: rgba(230,192,105,.45); background: rgba(230,192,105,.08); }
.tier-documented { color: var(--signal-bright); border-color: rgba(96,165,250,.4); background: rgba(96,165,250,.08); }
.tier-claimed    { color: var(--dust); border-color: var(--hairline); background: var(--surface-2); }
.tier-reference  { color: rgba(148,163,184,.7); border-color: var(--hairline-soft); background: transparent; }
.tier-off        { color: var(--dust-faint, #64748b); border-color: var(--hairline-soft); background: transparent; }
.honesty-hint {
  margin: 14px 2px 0;
  font-size: 12px;
  color: var(--dust-faint, #64748b);
}

/* The verdict meter: claimed score vs the deterministic cap */
.honesty-meter {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--hairline-soft);
  overflow: hidden;
  margin: 6px 0 14px;
}
.honesty-meter-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--signal), var(--star-gold));
  transition: width 0.5s var(--ease-out), background 0.4s ease;
}
.honesty-meter-fill.is-capped { background: linear-gradient(90deg, var(--risk), var(--caution)); }
.honesty-meter-capmark {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 2px;
  background: var(--star-gold);
  left: 100%;
  transition: left 0.5s var(--ease-out);
}
.honesty-readout {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
}
.honesty-readout .score {
  font-size: 26px;
  color: var(--star);
}
.honesty-verdict-badge {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid;
}
.vb-grounded   { color: var(--progress); border-color: rgba(34,197,94,.4); background: rgba(34,197,94,.07); }
.vb-adjacent   { color: var(--caution); border-color: rgba(245,158,11,.4); background: rgba(245,158,11,.07); }
.vb-ungrounded { color: var(--risk); border-color: rgba(239,68,68,.4); background: rgba(239,68,68,.07); }
.honesty-note {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--dust);
  min-height: 42px;
}
.honesty-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline-soft);
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--dust);
}

/* ── Kairos Pointer demo ──────────────────────────────────── */
.pointer-dial {
  position: relative;
  width: 190px;
  height: 190px;
  margin: 0 auto;
}
.pointer-dial .qutub-compass-ring { position: absolute; }
.pointer-needle {
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 2px;
  height: 74px;
  transform-origin: 50% 100%;
  transform: translateX(-50%) rotate(var(--needle-angle, 0deg));
  transition: transform 0.8s var(--ease-out);
  border-radius: 2px;
  background: linear-gradient(to top, rgba(230, 192, 105, 0), var(--star-gold) 50%);
}
.pointer-days {
  display: block;
  margin: 18px auto 0;
  width: 190px;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--dust);
  text-align: center;
}
.pointer-days input {
  width: 100%;
  margin-top: 8px;
  accent-color: var(--star-gold);
}
.pointer-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.pointer-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--surface-1);
  padding: 14px 16px;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.pointer-step.is-winner {
  border-color: rgba(230, 192, 105, 0.55);
  background: rgba(230, 192, 105, 0.05);
}
.pointer-step.is-blocked { opacity: 0.55; }
.pointer-step .ps-title {
  font-size: 14px;
  color: var(--star);
}
.pointer-step.is-winner .ps-title { color: var(--star-gold); }
.pointer-step .ps-factors {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--dust);
}
.pointer-step .ps-benefit {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  color: var(--star);
  white-space: nowrap;
}
.pointer-step.is-winner .ps-benefit { color: var(--star-gold); }
.pointer-caption {
  margin-top: 14px;
  font-size: 12px;
  color: var(--dust-faint, #64748b);
  text-align: center;
}

.term-output .gold { color: var(--star-gold); }

@media (max-width: 900px) {
  .honesty-grid,
  .pointer-demo-grid { grid-template-columns: 1fr; }
  .qutub-compass { width: 136px; height: 136px; margin-bottom: 22px; }
  .qutub-compass-tick { transform-origin: 50% 63px; }
  .qutub-compass-needle { height: 90px; bottom: calc(50% - 38px); transform-origin: 50% 38px; }
  .pointer-dial { width: 160px; height: 160px; }
  .pointer-needle { height: 62px; }
  .home-section { margin-top: 76px; }
}

/* Home view carries sections below the hero: stack, and let the hero
   content keep its full-viewport feel while sections flow beneath. */
.hero.view#home {
  flex-direction: column;
  justify-content: flex-start;
}
.hero.view#home .hero-content {
  min-height: calc(100vh - var(--nav-h) - 8rem);
  justify-content: center;
}
.home-section {
  max-width: 1060px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* ── Per-page heroes (every routed view opens with its own statement) ── */
.page-hero {
  position: relative;
  min-height: 58vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 4rem) 1.5rem 3rem;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 640px;
  height: 640px;
  max-width: 100vw;
  background: radial-gradient(circle, rgba(230, 192, 105, 0.07) 0%, transparent 62%);
  pointer-events: none;
}
.page-hero-motif {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(160px, 30vw, 300px);
  color: var(--star-gold);
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.page-hero-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--star-gold);
  margin-bottom: 18px;
}
.page-hero-title {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.06;
  color: var(--star);
  max-width: 16ch;
}
.page-hero-lead {
  margin-top: 22px;
  max-width: 620px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--dust);
}
.view > .section-inner:first-of-type { padding-top: 0; }

/* Nav: current route glows gold; brand mark carries the needle */
.nav-links a:not(.nav-cta).is-current { color: var(--star-gold); }
.nav-links a:not(.nav-cta).is-current::after {
  transform: scaleX(1);
  background: linear-gradient(90deg, transparent, var(--star-gold), transparent);
}
.logo-icon { color: var(--signal-bright); display: inline-flex; transition: transform 0.5s var(--ease-out); }
.nav-logo:hover .logo-icon { transform: rotate(45deg); }

/* ── Distinct per-page hero structures ────────────────────────── */
.ph { position: relative; padding: calc(var(--nav-h) + 4.5rem) 1.5rem 3.5rem; overflow: hidden; }
.ph::before {
  content: ''; position: absolute; top: 18%; left: 50%;
  transform: translate(-50%, -50%); width: 700px; height: 700px; max-width: 110vw;
  background: radial-gradient(circle, rgba(230, 192, 105, 0.06) 0%, transparent 62%);
  pointer-events: none;
}
.ph-kicker {
  display: block; font-family: 'JetBrains Mono', monospace; font-size: 13px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--star-gold); margin-bottom: 16px;
}
.ph-title {
  font-family: 'Space Grotesk', system-ui, sans-serif; font-size: clamp(36px, 5.4vw, 60px);
  font-weight: 700; line-height: 1.05; color: var(--star);
}
.ph-lead { margin-top: 20px; max-width: 640px; font-size: 17px; line-height: 1.75; color: var(--dust); }
.ph-gold { color: var(--star-gold); }
.ph-dim { color: var(--dust); }

/* status: editorial split + telemetry strip */
.ph-status-grid {
  max-width: 1060px; margin: 0 auto; display: grid;
  grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center;
}
.ph-status .ph-title { text-align: left; }
.ph-status .ph-lead { text-align: left; }
.ph-status-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--hairline-soft); border: 1px solid var(--hairline); border-radius: 14px; overflow: hidden; }
.ph-stat { background: var(--surface-1); padding: 22px 18px; text-align: center; }
.ph-stat-num { display: block; font-family: 'JetBrains Mono', monospace; font-size: 34px; color: var(--star-gold); }
.ph-stat-label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dust); }

/* philosophy: title left, truths right */
.ph-philosophy-grid {
  max-width: 1000px; margin: 0 auto; display: grid;
  grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center;
}
.ph-truths { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--hairline); }
.ph-truths li {
  padding: 9px 0 9px 22px; font-size: 15px; color: var(--dust);
  display: flex; gap: 14px; align-items: baseline;
}
.ph-truths li span { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--star-gold); }
.ph-philosophy .ph-title, .ph-philosophy .ph-lead { text-align: left; }

/* pipeline: stage flow centerpiece */
.ph-pipeline { text-align: center; }
.ph-pipeline-flow {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px;
  max-width: 860px; margin: 0 auto 42px;
}
.ph-node {
  font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--dust);
  border: 1px solid var(--hairline); border-radius: 999px; padding: 7px 16px; background: var(--surface-1);
}
.ph-arrow { color: var(--dust-faint); font-size: 13px; }
.ph-node-gate { color: var(--star-gold); border-color: rgba(230, 192, 105, 0.55); background: rgba(230, 192, 105, 0.07); }
.ph-node-out { color: var(--progress); border-color: rgba(34, 197, 94, 0.35); }
.ph-pipeline .ph-title, .ph-pipeline .ph-lead { margin-left: auto; margin-right: auto; }
.ph-pipeline .ph-lead { max-width: 560px; }

/* cli: terminal hero */
.ph-cli { text-align: center; }
.ph-cli-terminal {
  max-width: 720px; margin: 0 auto 36px; border: 1px solid var(--hairline);
  border-radius: 12px; overflow: hidden; background: var(--void);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8); text-align: left;
}
.ph-cli-chrome { display: flex; gap: 6px; align-items: center; padding: 10px 14px; background: var(--surface-1); }
.ph-cli-chrome span { width: 10px; height: 10px; border-radius: 50%; background: var(--hairline-hot); }
.ph-cli-chrome em { margin-left: 8px; font-style: normal; font-size: 11px; color: var(--dust); font-family: 'JetBrains Mono', monospace; }
.ph-cli-body { margin: 0; padding: 18px 20px 22px; font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1.85; color: var(--star); overflow-x: auto; }
.ph-prompt { color: var(--signal-bright); }

/* operating surface: YAML editor split */
.ph-surface-grid {
  max-width: 1020px; margin: 0 auto; display: grid;
  grid-template-columns: 0.9fr 1.1fr; gap: 52px; align-items: center;
}
.ph-surface .ph-title, .ph-surface .ph-lead { text-align: left; }
.ph-yaml { border: 1px solid var(--hairline); border-radius: 12px; overflow: hidden; background: var(--void); text-align: left; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8); }
.ph-yaml-tab { padding: 9px 16px; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--star-gold); background: var(--surface-1); border-bottom: 1px solid var(--hairline-soft); }
.ph-yaml pre { margin: 0; padding: 18px 20px 22px; font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1.8; color: var(--dust); }
.ph-yaml-key { color: var(--signal-bright); }
.ph-yaml-num { color: var(--star); }

/* readiness: formula as typography */
.ph-readiness { text-align: center; }
.ph-formula {
  display: inline-block; text-align: left; margin: 0 auto 34px;
  font-family: 'JetBrains Mono', monospace; font-size: clamp(13px, 1.6vw, 17px); line-height: 2.1;
  color: var(--dust); padding: 22px 30px; border: 1px solid var(--hairline);
  border-radius: 12px; background: var(--surface-1); white-space: pre; overflow-x: auto; max-width: 92vw;
}
.ph-readiness .ph-lead { margin-left: auto; margin-right: auto; max-width: 560px; }

/* roadmap: timeline rail */
.ph-roadmap { text-align: center; }
.ph-rail {
  display: flex; align-items: center; justify-content: center; gap: 0;
  max-width: 760px; margin: 38px auto 34px; position: relative;
}
.ph-rail::before { content: ''; position: absolute; left: 4%; right: 4%; top: 50%; height: 1px; background: var(--hairline-hot); }
.ph-rail-node {
  position: relative; z-index: 1; flex: 1; text-align: center;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--dust);
  background: var(--void); border: 1px solid var(--hairline); border-radius: 999px;
  padding: 8px 6px; margin: 0 5px;
}
.ph-rail-node.is-done { color: var(--progress); border-color: rgba(34, 197, 94, 0.4); }
.ph-rail-node.is-now { color: var(--star-gold); border-color: rgba(230, 192, 105, 0.6); background: rgba(230, 192, 105, 0.07); }
.ph-roadmap .ph-lead { margin-left: auto; margin-right: auto; max-width: 560px; }

@media (max-width: 900px) {
  .ph-status-grid, .ph-philosophy-grid, .ph-surface-grid { grid-template-columns: 1fr; gap: 32px; }
  .ph-status .ph-title, .ph-philosophy .ph-title, .ph-surface .ph-title,
  .ph-status .ph-lead, .ph-philosophy .ph-lead, .ph-surface .ph-lead { text-align: center; margin-left: auto; margin-right: auto; }
  .ph-lead { margin-left: auto; margin-right: auto; }
}

/* ── Distinct hero interiors: model / modules / architecture / application ── */

/* model: editorial split + the vertical ladder */
.ph-model { padding: calc(var(--nav-h) + 4.5rem) 1.5rem 4rem; }
.ph-model-grid {
  max-width: 1020px; margin: 0 auto; display: grid;
  grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center;
}
.ph-model .ph-title, .ph-model .ph-lead { text-align: left; }
.ph-ladder { display: flex; flex-direction: column; align-items: stretch; }
.ph-ladder-rung {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--hairline); border-radius: 12px;
  background: var(--surface-1); padding: 13px 18px;
}
.ph-ladder-rung b { font-family: 'Space Grotesk', system-ui, sans-serif; font-size: 16px; color: var(--star); }
.ph-ladder-rung i { font-style: normal; font-size: 12px; color: var(--dust); margin-left: auto; }
.ph-ladder-rung .ph-ladder-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal-bright); flex-shrink: 0; }
.ph-ladder-rung.is-star { border-color: rgba(230, 192, 105, 0.55); background: rgba(230, 192, 105, 0.06); }
.ph-ladder-rung.is-star b, .ph-ladder-rung.is-star i { color: var(--star-gold); }
.ph-ladder-rung.is-star .ph-ladder-dot { background: var(--star-gold); }
.ph-ladder-rung.is-star em { font-style: normal; color: var(--star-gold); }
.ph-ladder-link { width: 1px; height: 14px; background: var(--hairline-hot); margin-left: 34px; }

/* modules: orbit of seven chips around the compass */
.ph-modules {
  text-align: center; padding: calc(var(--nav-h) + 4.5rem) 1.5rem 3rem;
}
.ph-modules .ph-lead { margin: 30px auto 0; }
.ph-orbit { position: relative; width: min(480px, 86vw); height: min(480px, 86vw); margin: 26px auto 0; }
.ph-orbit::before {
  content: ''; position: absolute; inset: 12%;
  border: 1px dashed var(--hairline); border-radius: 50%;
}
.ph-orbit-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: 0.9; }
.ph-orbit-chip {
  position: absolute; left: 50%; top: 50%;
  transform: rotate(var(--a)) translateY(calc(min(480px, 86vw) / -2.35)) rotate(calc(var(--a) * -1));
  font-family: 'JetBrains Mono', monospace; font-size: 12.5px;
  color: var(--dust); border: 1px solid var(--hairline); border-radius: 999px;
  background: var(--surface-1); padding: 7px 15px; white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.ph-orbit-chip:hover { color: var(--star-gold); border-color: rgba(230, 192, 105, 0.55); }

/* architecture: three-layer deck */
.ph-arch { padding: calc(var(--nav-h) + 4.5rem) 1.5rem 4rem; }
.ph-arch-grid {
  max-width: 1000px; margin: 0 auto; display: grid;
  grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center;
}
.ph-arch .ph-title, .ph-arch .ph-lead { text-align: left; }
.ph-deck { display: flex; flex-direction: column; gap: 14px; }
.ph-deck-card {
  border: 1px solid var(--hairline); border-left: 3px solid var(--signal-bright);
  border-radius: 10px; background: var(--surface-1); padding: 16px 20px;
  display: flex; align-items: baseline; gap: 14px;
}
.ph-deck-card:nth-child(2) { margin-left: 26px; }
.ph-deck-card:nth-child(3) { margin-left: 52px; }
.ph-deck-card b { font-family: 'Space Grotesk', system-ui, sans-serif; font-size: 16px; color: var(--star); }
.ph-deck-card i { font-style: normal; font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: var(--dust); }
.ph-deck-card.is-proof { border-left-color: var(--star-gold); }
.ph-deck-card.is-proof b, .ph-deck-card.is-proof i { color: var(--star-gold); }

/* application: stacked screenshot frames */
.ph-app { padding: calc(var(--nav-h) + 4.5rem) 1.5rem 4rem; }
.ph-app-grid {
  max-width: 1060px; margin: 0 auto; display: grid;
  grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center;
}
.ph-app .ph-title, .ph-app .ph-lead { text-align: left; }
.ph-app-stack { position: relative; height: 340px; }
.ph-shot {
  position: absolute; width: 86%; border-radius: 10px;
  border: 1px solid var(--hairline); box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.85);
  object-fit: cover; top: 50%;
}
.ph-shot--back  { left: 0;  transform: translateY(-72%) rotate(-5deg); opacity: 0.55; }
.ph-shot--mid   { left: 10%; transform: translateY(-50%) rotate(2.5deg); opacity: 0.8; }
.ph-shot--front { left: 20%; transform: translateY(-26%) rotate(0deg); z-index: 1; }

@media (max-width: 900px) {
  .ph-model-grid, .ph-arch-grid, .ph-app-grid { grid-template-columns: 1fr; gap: 36px; }
  .ph-model .ph-title, .ph-model .ph-lead, .ph-arch .ph-title, .ph-arch .ph-lead,
  .ph-app .ph-title, .ph-app .ph-lead { text-align: center; margin-left: auto; margin-right: auto; }
  .ph-ladder { max-width: 380px; margin: 0 auto; }
  .ph-deck-card:nth-child(2) { margin-left: 13px; }
  .ph-deck-card:nth-child(3) { margin-left: 26px; }
  .ph-app-stack { height: 260px; }
}

/* Fix: an inactive hero view must hide like any other view — `.hero`'s
   display:flex (line ~700) out-ranks `.view`'s display:none by order. */
.view.hero:not(.is-active) { display: none; }

/* ══════════════════════════════════════════════════════════
   PURPOSE VIEW — the twenty lost classes, styled at last
   (problem grid, philosophy stack, solution cards, outcomes)
   ══════════════════════════════════════════════════════════ */
.container { width: 100%; max-width: 1100px; margin-inline: auto; padding-inline: 20px; }

.section-header { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-description { margin-top: 16px; font-size: 17px; line-height: 1.75; color: var(--dust); }

/* The problem — four drift cards */
.problem-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.problem-card {
  border: 1px solid var(--hairline); border-radius: 14px;
  background: var(--surface-1); padding: 26px 24px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.problem-card:hover { border-color: var(--hairline-hot); transform: translateY(-3px); }
.problem-card h3 { font-family: 'Space Grotesk', system-ui, sans-serif; font-size: 17px; color: var(--star); margin-bottom: 10px; }
.problem-card p { font-size: 14.5px; line-height: 1.7; color: var(--dust); margin: 0; }
.problem-icon {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(230, 192, 105, 0.35);
  display: flex; align-items: center; justify-content: center;
  color: var(--star-gold); font-size: 15px; margin-bottom: 18px;
  background: rgba(230, 192, 105, 0.05);
}

/* Philosophy — numbered truths stack */
.philosophy-stack { display: flex; flex-direction: column; gap: 16px; max-width: 780px; margin: 0 auto; }
.philosophy-item {
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start;
  border: 1px solid var(--hairline); border-radius: 14px;
  background: var(--surface-1); padding: 22px 24px;
}
.philosophy-marker {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(230, 192, 105, 0.5); color: var(--star-gold);
  font-family: 'JetBrains Mono', monospace; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(230, 192, 105, 0.06);
}
.philosophy-content h3 { font-family: 'Space Grotesk', system-ui, sans-serif; font-size: 17px; color: var(--star); margin-bottom: 8px; }
.philosophy-content p { font-size: 14.5px; line-height: 1.7; color: var(--dust); margin: 0; }

/* Solution — three principles with the tree diagrams */
.solution-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.solution-card {
  border: 1px solid var(--hairline); border-radius: 14px;
  background: var(--surface-1); padding: 26px 24px;
  display: flex; flex-direction: column;
}
.solution-card h3 { font-family: 'Space Grotesk', system-ui, sans-serif; font-size: 18px; color: var(--star); margin-bottom: 10px; }
.solution-card p { font-size: 14.5px; line-height: 1.7; color: var(--dust); margin: 0 0 18px; }
.solution-number {
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
  color: var(--star-gold); margin-bottom: 14px;
}
.solution-example {
  margin-top: auto;
  font-family: 'JetBrains Mono', monospace; font-size: 12.5px; line-height: 1.9;
  color: var(--dust); background: var(--void);
  border: 1px solid var(--hairline-soft); border-radius: 10px;
  padding: 16px 18px; overflow-x: auto; white-space: pre;
}
.solution-example :is(b, strong) { color: var(--star-gold); }

/* Outcomes — for you / for others */
.outcomes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.outcome-row { display: contents; }
.outcome-left, .outcome-right {
  border: 1px solid var(--hairline); border-radius: 14px;
  background: var(--surface-1); padding: 28px;
}
.outcome-left h3, .outcome-right h3 {
  font-family: 'Space Grotesk', system-ui, sans-serif; font-size: 17px;
  color: var(--star-gold); margin-bottom: 16px;
}
.outcome-list { list-style: none; margin: 0; padding: 0; }
.outcome-list li {
  font-size: 14.5px; line-height: 1.6; color: var(--dust);
  padding: 9px 0 9px 28px; position: relative;
  border-bottom: 1px solid var(--hairline-soft);
}
.outcome-list li:last-child { border-bottom: none; }
.outcome-list li::before {
  content: '✓'; position: absolute; left: 2px; color: var(--star-gold);
  font-size: 13px;
}

@media (max-width: 700px) {
  .philosophy-item { grid-template-columns: auto 1fr; gap: 14px; }
}

/* ═══════════════════════════════════════════════════════════════
   Route focus — headings receive programmatic focus (tabindex=-1)
   on navigation so screen readers announce the page. They are not
   interactive, so no visible ring.
   ═══════════════════════════════════════════════════════════════ */
h1[tabindex="-1"]:focus,
h2[tabindex="-1"]:focus,
h3[tabindex="-1"]:focus { outline: none; }

/* ═══════════════════════════════════════════════════════════════
   PLAY — your first qutub (play.js)
   Calm instrument panel (BRAND §6/§10.6): no confetti, no bounce;
   a quiet gold glimmer on the star when a milestone lands.
   ═══════════════════════════════════════════════════════════════ */
.play-wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 56px) 20px 96px;
}
.play-intro { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.play-intro .ph-title { margin: 12px 0 16px; }

/* Picker */
.play-picker-head {
  text-align: center; color: var(--dust); font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 20px;
}
.play-picker-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.play-quest-card {
  display: flex; flex-direction: column; gap: 10px; text-align: left; cursor: pointer;
  padding: 24px; border-radius: 16px; border: 1px solid var(--hairline);
  background: var(--surface-1); color: var(--star); font: inherit;
  transition: border-color .25s var(--ease-soft), transform .25s var(--ease-out), background .25s var(--ease-soft);
}
.play-quest-card:hover, .play-quest-card:focus-visible {
  border-color: var(--hairline-hot); background: var(--surface-elev); transform: translateY(-2px);
}
.play-quest-card:focus-visible { outline: 2px solid var(--signal-bright); outline-offset: 3px; }
.play-quest-module {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--signal-bright);
}
.play-quest-title { font-family: var(--font-heading); font-size: 20px; font-weight: 600; line-height: 1.25; }
.play-quest-blurb { color: var(--dust); font-size: 14px; line-height: 1.55; flex: 1; }
.play-quest-go { color: var(--star-gold); font-size: 14px; font-weight: 500; }

/* Board */
.play-board {
  display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start;
  scroll-margin-top: calc(var(--nav-h) + 16px);
}
.play-board[hidden], .play-picker[hidden] { display: none; }
.play-instrument {
  position: sticky; top: calc(var(--nav-h) + 16px);
  display: flex; flex-direction: column; gap: 20px;
  padding: 24px; border-radius: 20px; border: 1px solid var(--hairline);
  background: var(--surface-1); backdrop-filter: blur(12px);
}

/* Dial */
.play-dial { position: relative; width: 168px; height: 168px; margin: 8px auto 0; }
.play-dial svg { width: 100%; height: 100%; overflow: visible; }
.play-dial-ring { fill: none; stroke: var(--nebula); stroke-width: 3; }
.play-dial-inner { fill: rgba(10,10,15,.6); stroke: var(--hairline); stroke-width: 1; }
.play-dial-arc {
  fill: none; stroke: var(--signal-bright); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 0 100; transform: rotate(-90deg); transform-origin: 60px 60px;
  transition: stroke-dasharray .9s var(--ease-out), stroke .6s var(--ease-soft);
}
.play-needle { transform-origin: 60px 60px; transform: rotate(-150deg); transition: transform 1.1s var(--ease-out); }
.play-needle-n { fill: var(--star-gold); }
.play-needle-s { fill: var(--signal); opacity: .55; }
.play-needle-hub { fill: var(--void); stroke: var(--star); stroke-width: 2; }
.play-dial-star {
  position: absolute; left: 50%; top: -14px; transform: translateX(-50%);
  color: var(--star-gold); font-size: 20px; line-height: 1; text-shadow: 0 0 0 transparent;
}
.play-dial-star.is-glimmer { animation: play-glimmer 1.6s var(--ease-soft); }
@keyframes play-glimmer {
  0%   { text-shadow: 0 0 0 rgba(230,192,105,0); }
  35%  { text-shadow: 0 0 18px rgba(230,192,105,.95), 0 0 36px rgba(230,192,105,.45); }
  100% { text-shadow: 0 0 0 rgba(230,192,105,0); }
}
.play-root[data-band="building"] .play-dial-arc { stroke: var(--caution); }
.play-root[data-band="ready_with_gaps"] .play-dial-arc { stroke: var(--signal-bright); }
.play-root[data-band="ready"] .play-dial-arc { stroke: var(--progress); }
.play-root[data-band="not_ready"] .play-dial-arc { stroke: var(--risk); }

.play-score-row { display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.play-score { font-family: var(--font-heading); font-size: 48px; font-weight: 700; color: var(--star); font-variant-numeric: tabular-nums; }
.play-score-unit { color: var(--dust); font-size: 13px; }

/* Band ladder */
.play-bands { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 0; padding: 0; }
.play-band {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  font-size: 11px; color: var(--dust-faint); transition: color .4s var(--ease-soft);
}
.play-band-dot { width: 100%; height: 4px; border-radius: 2px; background: var(--nebula); transition: background .4s var(--ease-soft); }
.play-band.is-passed .play-band-dot { background: rgba(148,163,184,.35); }
.play-band.is-current { color: var(--star); font-weight: 600; }
.play-band--not_ready.is-current .play-band-dot { background: var(--risk); }
.play-band--building.is-current .play-band-dot { background: var(--caution); }
.play-band--ready_with_gaps.is-current .play-band-dot { background: var(--signal-bright); }
.play-band--ready.is-current .play-band-dot { background: var(--progress); }

/* Breakdown */
.play-breakdown { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; margin: 0; font-size: 13px; }
.play-breakdown dt { display: flex; gap: 6px; align-items: baseline; color: var(--star); }
.play-bd-hint { color: var(--dust-faint); font-family: var(--font-mono); font-size: 11px; }
.play-breakdown dd { margin: 0; display: flex; align-items: center; gap: 10px; }
.play-bd-bar { flex: 1; height: 6px; border-radius: 3px; background: var(--nebula); overflow: hidden; }
.play-bd-fill { display: block; height: 100%; width: 0; background: var(--grad-primary); transition: width .8s var(--ease-out); }
.play-bd-val { min-width: 44px; text-align: right; color: var(--dust); font-family: var(--font-mono); font-size: 12px; font-variant-numeric: tabular-nums; }

/* Evaluation */
.play-eval { border-top: 1px solid var(--hairline-soft); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.play-eval-btn { width: 100%; justify-content: center; }
.play-eval-btn:disabled { opacity: .5; cursor: not-allowed; }
.play-eval-out { margin: 0; color: var(--dust); font-size: 12.5px; line-height: 1.55; }
.play-eval[data-verdict="grounded"] .play-eval-out { color: var(--progress); }
.play-eval[data-verdict="adjacent"] .play-eval-out { color: var(--caution); }
.play-eval[data-verdict="ungrounded"] .play-eval-out { color: var(--risk); }
.play-reset {
  background: none; border: 0; color: var(--dust); font: inherit; font-size: 13px;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px; align-self: center;
}
.play-reset:hover { color: var(--star); }

/* Quest column */
.play-quest { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.play-quest-head { display: flex; flex-direction: column; gap: 6px; }
.play-quest-name { font-family: var(--font-heading); font-size: 26px; color: var(--star); margin: 0; }

.play-kairos {
  display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 14px;
  border: 1px solid rgba(230,192,105,.4); background: linear-gradient(135deg, rgba(230,192,105,.08), rgba(230,192,105,.02));
}
.play-kairos[hidden] { display: none; }
.play-kairos-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--star-gold); }
.play-kairos-step { color: var(--star); font-size: 17px; font-weight: 600; }
.play-kairos-why { color: var(--dust); font-size: 13px; }

.play-done {
  padding: 22px; border-radius: 14px; border: 1px solid rgba(34,197,94,.35); background: rgba(34,197,94,.06);
}
.play-done[hidden] { display: none; }
.play-done-title { font-family: var(--font-heading); font-size: 22px; color: var(--star); }
.play-done p { color: var(--dust); margin: 8px 0 16px; line-height: 1.6; }
.play-done-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Quest map: milestones as waypoints on a path */
.play-map { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; position: relative; }
.play-ms {
  position: relative; padding: 18px 20px; border-radius: 16px;
  border: 1px solid var(--hairline); background: var(--surface-1);
  transition: border-color .4s var(--ease-soft);
}
.play-ms.is-done { border-color: rgba(230,192,105,.35); }
.play-ms-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.play-ms-waypoint {
  display: inline-grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 50%; border: 1px solid var(--hairline-hot); color: var(--signal-bright);
  font-family: var(--font-mono); font-size: 12px;
}
.play-ms.is-done .play-ms-waypoint { border-color: var(--star-gold); color: var(--star-gold); }
.play-ms-title { flex: 1; color: var(--star); font-weight: 600; }
.play-ms-count { color: var(--dust); font-family: var(--font-mono); font-size: 12px; }

.play-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.play-step {
  display: grid; grid-template-columns: 18px 1fr; gap: 4px 10px; align-items: start;
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--hairline-soft); background: rgba(10,10,15,.35);
  transition: border-color .3s var(--ease-soft), background .3s var(--ease-soft);
}
.play-step.is-pointed { border-color: rgba(230,192,105,.55); background: rgba(230,192,105,.05); }
.play-step-mark { color: var(--dust-faint); font-size: 12px; line-height: 1.5; }
.play-step.is-done .play-step-mark { color: var(--progress); }
.play-step.is-pointed .play-step-mark { color: var(--star-gold); }
.play-step-title { color: var(--star); font-size: 14.5px; line-height: 1.45; }
.play-step.is-done .play-step-title { color: var(--dust); }
.play-step-actions { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.play-step-ask { color: var(--dust-faint); font-size: 12px; margin-right: 2px; }
.play-chip { cursor: pointer; line-height: inherit; }
.play-chip:hover { filter: brightness(1.25); }
.play-chip-plain {
  background: none; border: 1px dashed var(--hairline); border-radius: 999px; color: var(--dust);
  font: inherit; font-size: 11.5px; padding: 3px 10px; cursor: pointer;
}
.play-chip-plain:hover { color: var(--star); border-color: var(--hairline-hot); }
.play-chip-quiet { border-style: solid; border-color: transparent; color: var(--dust-faint); }
.play-step button:focus-visible { outline: 2px solid var(--signal-bright); outline-offset: 2px; }

/* Ledger */
.play-ledger { padding: 18px 20px; border-radius: 16px; border: 1px solid var(--hairline-soft); }
.play-ledger-head { margin: 0 0 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dust); }
.play-ledger-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.play-ledger-item { display: grid; grid-template-columns: 40px 1fr; gap: 10px; font-size: 13px; color: var(--dust); line-height: 1.5; }
.play-ledger-item:first-child { color: var(--star); }
.play-ledger-delta { font-family: var(--font-mono); font-size: 12px; text-align: right; color: var(--dust-faint); }
.play-ledger-delta.is-up { color: var(--progress); }
.play-ledger-delta.is-down { color: var(--caution); }

@media (max-width: 960px) {
  .play-picker-grid { grid-template-columns: 1fr; }
  .play-board { grid-template-columns: 1fr; }
  .play-instrument { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  .play-needle, .play-dial-arc, .play-bd-fill, .play-quest-card { transition: none; }
  .play-dial-star.is-glimmer { animation: none; text-shadow: 0 0 14px rgba(230,192,105,.8); }
}

/* Play — module tabs, proof note */
.play-tabs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto 24px;
}
.play-tab {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--hairline);
  background: transparent; color: var(--dust); font: inherit; font-size: 14px; cursor: pointer;
  transition: color .2s var(--ease-soft), border-color .2s var(--ease-soft), background .2s var(--ease-soft);
}
.play-tab:hover { color: var(--star); border-color: var(--hairline-hot); }
.play-tab.is-active { color: var(--void); background: var(--star); border-color: var(--star); font-weight: 600; }
.play-tab:focus-visible { outline: 2px solid var(--signal-bright); outline-offset: 2px; }
.play-picker-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.play-bd-note { margin: -8px 0 0; color: var(--dust-faint); font-size: 12px; line-height: 1.5; }
.play-chip-up { border-color: rgba(96,165,250,.35); color: var(--signal-bright); }

/* Waitlist + contact */
.waitlist {
  max-width: 720px; margin: 64px auto 0; padding: 32px; text-align: center;
  border-radius: 20px; border: 1px solid var(--hairline-hot);
  background: radial-gradient(120% 140% at 50% 0%, rgba(59,130,246,.12), transparent 60%), var(--surface-1);
}
.waitlist-title { font-family: var(--font-heading); font-size: 28px; color: var(--star); margin: 10px 0 8px; }
.waitlist-copy { color: var(--dust); margin: 0 auto 20px; max-width: 520px; line-height: 1.6; }
.waitlist-form { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.waitlist-input {
  flex: 1 1 220px; min-width: 0; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--hairline); background: rgba(10,10,15,.6); color: var(--star); font: inherit; font-size: 15px;
}
.waitlist-select { flex: 0 1 200px; color: var(--dust); }
.waitlist-input:focus { outline: 2px solid var(--signal-bright); outline-offset: 1px; border-color: transparent; }
.waitlist-submit { flex: 0 0 auto; }
.waitlist-honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.waitlist-status { min-height: 1.5em; margin: 12px 0 0; font-size: 14px; color: var(--dust); }
.waitlist-status[data-state="ok"] { color: var(--progress); }
.waitlist-status[data-state="error"] { color: var(--caution); }
.waitlist-status a, .waitlist-contact a { color: var(--signal-bright); text-underline-offset: 3px; }
.waitlist-contact { margin: 16px 0 0; color: var(--dust-faint); font-size: 13px; }
.begin-waitlist .waitlist { text-align: center; }

/* ═══════════════════════════════════════════════════════════════
   MISSION
   ═══════════════════════════════════════════════════════════════ */
.mission-wrap, .lore-wrap {
  max-width: 920px; margin: 0 auto; padding: calc(var(--nav-h) + 72px) 20px 96px;
}
.mission-hero { text-align: center; margin-bottom: 72px; }
.mission-title, .lore-title {
  font-family: var(--font-heading); font-size: clamp(36px, 6vw, 64px); line-height: 1.08;
  letter-spacing: -.02em; color: var(--star); margin: 16px 0 20px;
}
.mission-title .accent, .lore-title .accent {
  background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mission-lede, .lore-lede { color: var(--dust); font-size: 19px; line-height: 1.7; max-width: 680px; margin: 0 auto; }
.mission-block {
  display: grid; grid-template-columns: 72px 1fr; gap: 24px; padding: 40px 0;
  border-top: 1px solid var(--hairline-soft);
}
.mission-num { font-family: var(--font-mono); color: var(--star-gold); font-size: 14px; padding-top: 8px; }
.mission-h { font-family: var(--font-heading); font-size: 28px; color: var(--star); margin: 0 0 14px; }
.mission-block p { color: var(--dust); font-size: 17px; line-height: 1.75; margin: 0; }
.mission-block em { color: var(--star); font-style: normal; }
.mission-beliefs { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.mission-beliefs li { color: var(--dust); font-size: 17px; line-height: 1.6; padding-left: 22px; position: relative; }
.mission-beliefs li::before { content: '✦'; position: absolute; left: 0; color: var(--star-gold); font-size: 12px; top: 5px; }
.mission-beliefs strong { color: var(--star); }
.mission-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.mission-card { padding: 20px; border-radius: 16px; border: 1px solid var(--hairline); background: var(--surface-1); }
.mission-card h3 { margin: 10px 0 6px; color: var(--star); font-size: 17px; }
.mission-card p { font-size: 14.5px; line-height: 1.6; }
.mission-glyph { color: var(--star-gold); font-size: 20px; }
.mission-never { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.mission-never li { color: var(--dust-faint); font-size: 15px; }
.mission-never span {
  display: inline-block; min-width: 200px; color: var(--star); text-decoration: line-through;
  text-decoration-color: var(--risk); text-decoration-thickness: 2px; margin-right: 12px;
}
.mission-actions { justify-content: flex-start; margin-top: 24px; }

/* ═══════════════════════════════════════════════════════════════
   LORE
   ═══════════════════════════════════════════════════════════════ */
.lore-hero { text-align: center; margin-bottom: 64px; position: relative; }
.lore-glyph {
  display: block; font-size: clamp(88px, 16vw, 160px); line-height: 1; color: var(--star-gold);
  opacity: .9; text-shadow: 0 0 60px rgba(230,192,105,.35); margin-bottom: 8px;
}
.lore-chapters { list-style: none; padding: 0; margin: 0; position: relative; }
.lore-chapters::before {
  content: ''; position: absolute; left: 27px; top: 8px; bottom: 8px; width: 1px;
  background: linear-gradient(180deg, var(--star-gold), var(--signal) 60%, transparent);
  opacity: .5;
}
.lore-chapter { display: grid; grid-template-columns: 56px 1fr; gap: 28px; padding: 28px 0; }
.lore-chapter-num {
  position: relative; z-index: 1; display: inline-grid; place-items: center; width: 56px; height: 56px;
  border-radius: 50%; border: 1px solid rgba(230,192,105,.5); background: var(--void);
  color: var(--star-gold); font-family: var(--font-heading); font-size: 18px;
}
.lore-chapter-body h2 { font-family: var(--font-heading); font-size: 30px; color: var(--star); margin: 6px 0 6px; }
.lore-chapter-body h2 span { color: var(--star-gold); font-weight: 400; }
.lore-kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--signal-bright); margin: 0 0 14px; }
.lore-chapter-body p:not(.lore-kicker) { color: var(--dust); font-size: 17px; line-height: 1.8; margin: 0 0 12px; }
.lore-chapter-body strong { color: var(--star); }
.lore-register { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 8px 0 0; }
.lore-register div { padding: 16px; border-radius: 14px; border: 1px solid var(--hairline); background: var(--surface-1); }
.lore-register dt { color: var(--star); font-weight: 600; margin-bottom: 6px; }
.lore-register dt span { color: var(--star-gold); font-weight: 400; margin-right: 8px; font-size: 18px; }
.lore-register dd { margin: 0; color: var(--dust); font-size: 14px; line-height: 1.55; }
.lore-respect {
  display: flex; gap: 16px; align-items: flex-start; margin: 48px 0 0; padding: 20px 24px;
  border-radius: 16px; border: 1px solid var(--hairline-soft); color: var(--dust); font-size: 15px; line-height: 1.7;
}
.lore-respect span { color: var(--star-gold); font-size: 20px; }
.lore-respect p { margin: 0; }
.lore-coda { text-align: center; margin: 72px 0 32px; }
.lore-coda p { font-size: clamp(28px, 5vw, 44px); color: var(--star-gold); margin: 0 0 12px; line-height: 1.6; }
.lore-coda footer { color: var(--dust); font-style: italic; }
.lore-actions { justify-content: center; }

@media (max-width: 720px) {
  .mission-block { grid-template-columns: 1fr; gap: 8px; }
  .mission-grid, .lore-register { grid-template-columns: 1fr; }
  .mission-never span { min-width: 0; display: block; }
  .lore-chapter { grid-template-columns: 44px 1fr; gap: 16px; }
  .lore-chapter-num { width: 44px; height: 44px; font-size: 15px; }
  .lore-chapters::before { left: 21px; }
  .waitlist { padding: 24px 18px; }
}
