/* ==========================================================================
   dronAIcharya — "Clarity"
   Visual system: cool ivory & near-white backgrounds, deep navy ink, one
   confident cobalt accent, and tasteful frosted glass over a very subtle
   azure → periwinkle aurora. McKinsey authority × Apple minimalism.
   Inter (display + body), JetBrains Mono for code. Motion = calm precision.
   ========================================================================== */

/* ---- Design tokens: light (primary) ---------------------------------- */
:root {
  color-scheme: light;

  --bg:            #FFFFFF;
  --bg-2:          #EEF3FA;   /* cool near-white — alternate bands */
  --surface:       #FFFFFF;   /* opaque fallback for glass */
  --surface-2:     #F3F7FC;   /* insets, code blocks */
  --text:          #0A1F44;   /* deep navy ink */
  --muted:         #45557A;   /* slate-blue */
  --faint:         #5B6B8A;   /* dimmer slate (still AA on light) */
  --border:        #E3EAF3;   /* hairline */
  --border-strong: #CFDBEA;

  --brand:         #1D4ED8;   /* authority blue — links, structure */
  --brand-2:       #2563EB;
  --accent:        #2563EB;   /* confident cobalt — strokes, fills, highlights */
  --accent-ink:    #1D4ED8;   /* accent TEXT that meets AA on light */
  --accent-text:   #1D4ED8;   /* wordmark "AI" + larger accent text */
  --accent-soft:   #E3ECFE;   /* soft blue chip / icon field */
  --on-accent:     #FFFFFF;   /* text on cobalt fills (light) */
  --accent-glow:   rgba(37, 99, 235, .22);
  --brand-glow:    rgba(29, 78, 216, .16);

  --btn-primary-bg:   linear-gradient(180deg, #2563EB, #1D4ED8);
  --btn-primary-text: #FFFFFF;

  --ring:          #1D4ED8;
  --ring-glow:     rgba(37, 99, 235, .42);

  /* very subtle aurora / wash field (decorative only) */
  --aurora-1:      rgba(56, 139, 253, .20);   /* azure */
  --aurora-2:      rgba(37, 99, 235, .18);     /* cobalt */
  --aurora-3:      rgba(125, 170, 255, .18);   /* periwinkle */
  --spark:         rgba(37, 99, 235, .55);
  --grain-opacity: .025;
  --seam:          rgba(10, 31, 68, .08);
  --sheen:         rgba(37, 99, 235, .14);

  /* glassmorphism */
  --glass-bg:        rgba(255, 255, 255, .70);
  --glass-2:         rgba(255, 255, 255, .55);
  --glass-border:    rgba(255, 255, 255, .80);
  --glass-highlight: rgba(255, 255, 255, .62);

  --shadow-sm: 0 1px 2px rgb(10 31 68 / .04), 0 2px 8px rgb(10 31 68 / .06);
  --shadow-md: 0 2px 8px rgb(10 31 68 / .06), 0 16px 40px rgb(10 31 68 / .10);
  --shadow-lg: 0 10px 30px rgb(10 31 68 / .10), 0 30px 70px rgb(10 31 68 / .14);

  --maxw: 1120px;
  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 22px;
  --radius-xl: 30px;

  --font-display: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body:    "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---- Design tokens: dark --------------------------------------------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg:            #0A1226;
    --bg-2:          #070E1F;
    --surface:       #0F1B33;
    --surface-2:     #13203B;
    --text:          #EAF0FB;
    --muted:         #A7B6D4;
    --faint:         #7E8DB0;
    --border:        #22304F;
    --border-strong: #30416A;

    --brand:         #7DA9FF;
    --brand-2:       #9DC0FF;
    --accent:        #60A5FA;
    --accent-ink:    #8CC0FF;
    --accent-text:   #8CC0FF;
    --accent-soft:   #15284A;
    --on-accent:     #06142E;
    --accent-glow:   rgba(96, 165, 250, .30);
    --brand-glow:    rgba(125, 169, 255, .22);

    --btn-primary-bg:   linear-gradient(180deg, #2563EB, #1D4ED8);
    --btn-primary-text: #FFFFFF;

    --ring:          #8CC0FF;
    --ring-glow:     rgba(96, 165, 250, .55);

    --aurora-1:      rgba(56, 139, 253, .22);
    --aurora-2:      rgba(37, 99, 235, .26);
    --aurora-3:      rgba(125, 170, 255, .18);
    --spark:         rgba(96, 165, 250, .7);
    --grain-opacity: .05;
    --seam:          rgba(255, 255, 255, .07);
    --sheen:         rgba(96, 165, 250, .20);

    --glass-bg:        rgba(17, 29, 54, .62);
    --glass-2:         rgba(17, 29, 54, .48);
    --glass-border:    rgba(255, 255, 255, .09);
    --glass-highlight: rgba(255, 255, 255, .07);

    --shadow-sm: 0 1px 2px rgb(0 0 0 / .45);
    --shadow-md: 0 2px 10px rgb(0 0 0 / .45), 0 18px 44px rgb(0 0 0 / .5);
    --shadow-lg: 0 12px 34px rgb(0 0 0 / .55), 0 34px 80px rgb(0 0 0 / .6);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg:            #0A1226;
  --bg-2:          #070E1F;
  --surface:       #0F1B33;
  --surface-2:     #13203B;
  --text:          #EAF0FB;
  --muted:         #A7B6D4;
  --faint:         #7E8DB0;
  --border:        #22304F;
  --border-strong: #30416A;

  --brand:         #7DA9FF;
  --brand-2:       #9DC0FF;
  --accent:        #60A5FA;
  --accent-ink:    #8CC0FF;
  --accent-text:   #8CC0FF;
  --accent-soft:   #15284A;
  --on-accent:     #06142E;
  --accent-glow:   rgba(96, 165, 250, .30);
  --brand-glow:    rgba(125, 169, 255, .22);

  --btn-primary-bg:   linear-gradient(180deg, #2563EB, #1D4ED8);
  --btn-primary-text: #FFFFFF;

  --ring:          #8CC0FF;
  --ring-glow:     rgba(96, 165, 250, .55);

  --aurora-1:      rgba(56, 139, 253, .22);
  --aurora-2:      rgba(37, 99, 235, .26);
  --aurora-3:      rgba(125, 170, 255, .18);
  --spark:         rgba(96, 165, 250, .7);
  --grain-opacity: .05;
  --seam:          rgba(255, 255, 255, .07);
  --sheen:         rgba(96, 165, 250, .20);

  --glass-bg:        rgba(17, 29, 54, .62);
  --glass-2:         rgba(17, 29, 54, .48);
  --glass-border:    rgba(255, 255, 255, .09);
  --glass-highlight: rgba(255, 255, 255, .07);

  --shadow-sm: 0 1px 2px rgb(0 0 0 / .45);
  --shadow-md: 0 2px 10px rgb(0 0 0 / .45), 0 18px 44px rgb(0 0 0 / .5);
  --shadow-lg: 0 12px 34px rgb(0 0 0 / .55), 0 34px 80px rgb(0 0 0 / .6);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

body {
  position: relative;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: clamp(16px, 1rem + .1vw, 17px);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  font-feature-settings: "cv11", "ss01";
}

/* Whole-page luminous wash so glass always has a faint cool field to
   refract. Extremely subtle — does not affect text contrast. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38% 42% at 12% 8%,  var(--aurora-1) 0%, transparent 60%),
    radial-gradient(34% 40% at 92% 4%,  var(--aurora-3) 0%, transparent 58%),
    radial-gradient(44% 46% at 78% 96%, var(--aurora-2) 0%, transparent 64%);
  opacity: .5;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--brand-2); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.022em;
  font-weight: 700;
  text-wrap: balance;
}

code, kbd, pre, samp { font-family: var(--font-mono); }

::selection { background: var(--accent-glow); color: var(--text); }

/* ---- Accessibility: focus + skip link -------------------------------- */
:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: 6px;
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translate(-50%, -140%);
  z-index: 500;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: transform .18s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---- Layout ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}
@media (max-width: 560px) { .container { padding-inline: 16px; } }

.section { padding-block: clamp(56px, 9vw, 116px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--alt { background: var(--bg-2); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow::before {
  content: "";
  width: 20px; height: 1px;
  background: var(--accent);
}

.section-head { max-width: 46rem; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head h2 {
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem);
  margin-top: 14px;
}
.section-head p {
  color: var(--muted);
  font-size: clamp(1.02rem, 1rem + .3vw, 1.18rem);
  margin-top: 16px;
  max-width: 42rem;
}
.lead { color: var(--muted); font-size: 1.12rem; }

/* ---- Buttons --------------------------------------------------------- */
.btn {
  --lift: 0px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .98rem;
  line-height: 1;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease),
              background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  transform: translateY(var(--lift));
  will-change: transform;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn--primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  box-shadow: 0 8px 22px var(--accent-glow);
}
.btn--primary:hover { --lift: -2px; box-shadow: 0 14px 34px var(--accent-glow); color: var(--btn-primary-text); }
.btn--primary:active { --lift: 0px; }
.btn--ghost {
  background: var(--glass-2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover { --lift: -2px; border-color: var(--accent); color: var(--text); box-shadow: var(--shadow-sm); }
.btn--ghost:active { --lift: 0px; }
.btn--sm { padding: 10px 16px; font-size: .9rem; }
.btn--lg { padding: 16px 28px; font-size: 1.04rem; }

/* ---- Header / nav (frosted glass) ------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 68%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}
.brand:hover { color: var(--text); }
.brand .mark { width: 30px; height: 30px; flex: none; transition: transform .5s var(--ease); }
.brand:hover .mark { transform: rotate(90deg); }
.brand .wm-ai { color: var(--accent-text); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
}
.nav-links a {
  position: relative;
  display: inline-block;
  padding: 8px 12px;
  color: var(--muted);
  font-weight: 500;
  font-size: .95rem;
  text-decoration: none;
  border-radius: 8px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 4px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.nav-tools { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--glass-2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--text);
  cursor: pointer;
  transition: transform .2s var(--ease), border-color .2s var(--ease), background-color .2s;
}
.icon-btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.icon-btn:active { transform: translateY(0); }
.icon-btn svg { width: 19px; height: 19px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px 18px;
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform .22s var(--ease), opacity .22s var(--ease);
  }
  .nav-links a { padding: 12px 10px; font-size: 1rem; }
  .nav-links a::after { display: none; }
  .nav-links a[aria-current="page"] { color: var(--accent-ink); }
  .site-header.nav-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* ---- Hero ------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 10vw, 128px);
}
.hero-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 120%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(42% 48% at 22% 24%, var(--brand-glow) 0%, transparent 68%),
    radial-gradient(40% 46% at 82% 30%, var(--accent-glow) 0%, transparent 66%),
    radial-gradient(50% 52% at 60% 90%, var(--brand-glow) 0%, transparent 70%);
  filter: blur(8px);
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  to   { transform: translate3d(2%, 1.5%, 0) scale(1.06); }
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero h1 {
  font-size: clamp(2.5rem, 1.4rem + 5vw, 4.4rem);
  letter-spacing: -0.038em;
  font-weight: 700;
}
.hero h1 .accent { color: var(--accent-text); }
.hero-sub {
  margin-top: 22px;
  font-size: clamp(1.08rem, 1rem + .6vw, 1.3rem);
  color: var(--muted);
  max-width: 34rem;
}
.hero-cta {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-meta {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: .9rem;
  color: var(--muted);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

/* Hero figure — precision lens + glass terminal */
.hero-figure {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
}
.hero-scene {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
}
.hero-figure svg { width: 100%; height: 100%; overflow: visible; }

/* ---- Scroll reveals -------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
[data-reveal][data-delay="4"] { transition-delay: .32s; }
[data-reveal][data-delay="5"] { transition-delay: .40s; }

/* ---- Cards (glass) --------------------------------------------------- */
.card {
  position: relative;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm), inset 0 1px 0 var(--glass-highlight);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card--hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), inset 0 1px 0 var(--glass-highlight);
  border-color: var(--border-strong);
}
.card h3 { font-size: 1.22rem; letter-spacing: -0.01em; }
.card p { color: var(--muted); margin-top: 10px; font-size: .98rem; }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  margin-bottom: 16px;
}
.card-icon svg { width: 23px; height: 23px; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---- Pills / badges -------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--muted);
  font-size: .82rem;
  font-weight: 500;
}
.pill--accent { border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent-ink); background: var(--accent-soft); }
.tag {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--accent-ink);
  font-weight: 500;
}

/* ---- Code / command block + copy (glass) ----------------------------- */
.cmd {
  position: relative;
  min-width: 0;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm), inset 0 1px 0 var(--glass-highlight);
  overflow: hidden;
}
.cmd-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}
.cmd-dots { display: inline-flex; gap: 6px; }
.cmd-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); display: block; }
.cmd-dots i:first-child { background: var(--accent); }
.cmd-title { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); }
.cmd-body {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  padding: 16px 14px 16px 18px;
  background: color-mix(in srgb, var(--surface-2) 72%, transparent);
}
.cmd-body pre {
  margin: 0;
  overflow-x: auto;
  flex: 1;
  min-width: 0;
  font-size: .9rem;
  line-height: 1.7;
  color: var(--text);
  scrollbar-width: thin;
}
.cmd-body pre code { white-space: pre; }
.cmd-body .prompt { color: var(--accent-ink); user-select: none; }
.cmd-body .cmt { color: var(--faint); }

.copy-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), background-color .18s;
}
.copy-btn svg { width: 15px; height: 15px; }
.copy-btn .ic-check { display: none; }
.copy-btn:hover { border-color: var(--accent); color: var(--text); transform: translateY(-1px); }
.copy-btn.copied { color: var(--accent-ink); border-color: var(--accent); background: var(--accent-soft); }
.copy-btn.copied .ic-copy { display: none; }
.copy-btn.copied .ic-check { display: inline; }

/* ---- Install chooser (A / B) ----------------------------------------- */
.chooser { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 820px) { .chooser { grid-template-columns: 1fr; } }
.opt {
  position: relative;
  min-width: 0;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm), inset 0 1px 0 var(--glass-highlight);
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.opt--primary { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.opt:hover { transform: translateY(-4px); box-shadow: var(--shadow-md), inset 0 1px 0 var(--glass-highlight); }
.opt-badge {
  position: absolute;
  top: -12px; left: 28px;
  background: var(--btn-primary-bg);
  color: var(--on-accent);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
  box-shadow: 0 6px 16px var(--accent-glow);
}
.opt h3 { font-size: 1.3rem; }
.opt .opt-sub { color: var(--muted); margin-top: 8px; font-size: .96rem; min-height: 3em; }
.opt .cmd { margin-top: 18px; }
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; font-size: .88rem; }
.proscons ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.proscons li { display: flex; gap: 8px; color: var(--muted); line-height: 1.45; }
.proscons .hd { font-weight: 700; color: var(--text); font-size: .82rem; letter-spacing: .02em; margin-bottom: 2px; }
.proscons .yes { color: var(--accent-ink); flex: none; font-weight: 700; }
.proscons .no  { color: var(--faint); flex: none; font-weight: 700; }
@media (max-width: 440px) { .proscons { grid-template-columns: 1fr; } }

/* ---- Personas (glass) ------------------------------------------------ */
.persona {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm), inset 0 1px 0 var(--glass-highlight);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.persona:hover { transform: translateY(-4px); box-shadow: var(--shadow-md), inset 0 1px 0 var(--glass-highlight); border-color: var(--border-strong); }
.persona .glyph {
  width: 48px; height: 48px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent-ink);
  margin-bottom: 16px;
}
.persona .glyph svg { width: 26px; height: 26px; }
.persona h3 { font-size: 1.14rem; }
.persona .voice { color: var(--muted); margin-top: 8px; font-size: .95rem; }
.persona .note { margin-top: 12px; font-size: .82rem; color: var(--faint); font-family: var(--font-mono); }

/* ---- Steps / how it works ------------------------------------------- */
.steps { display: grid; gap: 2px; counter-reset: step; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--border); }
.step .num {
  counter-increment: step;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent-ink);
  background: var(--accent-soft);
  width: 44px; height: 44px;
  border-radius: 13px;
  display: grid; place-items: center;
}
.step .num::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: 1.15rem; }
.step p { color: var(--muted); margin-top: 6px; font-size: .97rem; }

/* ---- Tracks (glass) -------------------------------------------------- */
.track {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm), inset 0 1px 0 var(--glass-highlight);
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.track:hover { transform: translateY(-4px); box-shadow: var(--shadow-md), inset 0 1px 0 var(--glass-highlight); border-color: var(--border-strong); }
.track .track-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.track h3 { font-size: 1.24rem; }
.track p { color: var(--muted); margin-top: 12px; font-size: .97rem; flex: 1; }
.track .track-num { font-family: var(--font-mono); color: var(--faint); font-size: .85rem; }

/* ---- Honest limits --------------------------------------------------- */
.limit {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
.limit:last-child { border-bottom: 1px solid var(--border); }
.limit .lx {
  flex: none;
  width: 36px; height: 36px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--accent-ink);
}
.limit .lx svg { width: 18px; height: 18px; }
.limit h3 { font-size: 1.04rem; }
.limit p { color: var(--muted); margin-top: 4px; font-size: .95rem; }

/* ---- Callout --------------------------------------------------------- */
.callout {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  box-shadow: var(--shadow-sm);
}
.callout .ci { flex: none; color: var(--accent-ink); margin-top: 2px; }
.callout .ci svg { width: 20px; height: 20px; }
.callout p { color: var(--muted); font-size: .96rem; }
.callout strong { color: var(--text); }

/* ---- Prose (docs/eli5/architecture bodies) --------------------------- */
.prose { max-width: 46rem; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); margin-top: 1.8em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.4em; }
.prose p, .prose li { color: var(--text); }
.prose p { color: var(--muted); }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: .5em; }
.prose li { color: var(--muted); }
.prose li::marker { color: var(--accent-text); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--brand); }
.prose code:not(pre code) {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: .12em .4em;
  border-radius: 6px;
  font-size: .86em;
  color: var(--accent-ink);
}

/* ---- FAQ (details) --------------------------------------------------- */
.faq { display: grid; gap: 2px; }
.faq details {
  border-top: 1px solid var(--border);
  padding: 4px 0;
}
.faq details:last-of-type { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 44px 18px 2px;
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.06rem;
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px; top: 50%;
  width: 11px; height: 11px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-65%) rotate(45deg);
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-35%) rotate(-135deg); }
.faq .faq-body { padding: 0 2px 20px; color: var(--muted); font-size: .98rem; }

/* ---- Table ----------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 460px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-family: var(--font-display); font-weight: 600; color: var(--text); background: var(--surface-2); }
td { color: var(--muted); }
tr:last-child td { border-bottom: 0; }
td code, th code { font-size: .86em; }

/* ---- CTA band (glass over gradient) ---------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  padding: clamp(36px, 6vw, 64px);
  text-align: center;
  box-shadow: var(--shadow-md), inset 0 1px 0 var(--glass-highlight);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(45% 70% at 15% 20%, var(--brand-glow) 0%, transparent 70%),
    radial-gradient(45% 70% at 85% 80%, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(1.8rem, 1.3rem + 2.2vw, 2.7rem); }
.cta-band p { color: var(--muted); margin: 14px auto 28px; max-width: 34rem; }
.cta-band .hero-cta { justify-content: center; }

/* ---- Footer ---------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding-block: 56px 36px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 440px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand { margin-right: 0; }
.footer-brand p { color: var(--muted); margin-top: 14px; font-size: .92rem; max-width: 26rem; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 600;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: .94rem; }
.footer-col a:hover { color: var(--accent-ink); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
  justify-content: space-between;
  color: var(--faint);
  font-size: .86rem;
}
.footer-bottom .tagline { font-style: italic; }

/* ---- Utilities ------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.center { text-align: center; }
.mt-s { margin-top: 14px; } .mt-m { margin-top: 24px; } .mt-l { margin-top: 40px; }
.mono { font-family: var(--font-mono); }
.text-accent { color: var(--accent-ink); }
.page-hero { padding-block: clamp(56px, 8vw, 96px) clamp(20px, 4vw, 40px); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.1rem, 1.4rem + 3.4vw, 3.4rem); }
.page-hero .lead { margin-top: 18px; max-width: 40rem; }

/* ==========================================================================
   LEVEL-UP LAYER — deeper motion & aesthetics ("Calm Precision").
   Everything here is decorative and fully neutralized by the reduced-motion
   block that follows. All content remains legible with motion off / JS off.
   ========================================================================== */

/* ---- Scroll progress — a bright line of focus ------------------------ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 300;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent), var(--brand-2));
  box-shadow: 0 0 14px var(--accent-glow);
  pointer-events: none;
  will-change: transform;
}

/* ---- Grain / film texture (self-contained fractal-noise data URI) ---- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: var(--grain-opacity);
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}
/* keep real content above the wash + grain (skip-link keeps its fixed pos) */
.site-header, main, .site-footer { position: relative; z-index: 2; }

/* ---- Section seam — soft transition between bands -------------------- */
.section--alt { position: relative; }
.section--alt::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--seam) 20%, var(--seam) 80%, transparent);
}

/* ---- Hero: aurora field + particle canvas + parallax scene ----------- */
.hero-aurora {
  position: absolute;
  inset: -32% -16% auto -16%;
  height: 160%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(34% 40% at 18% 24%, var(--aurora-2) 0%, transparent 62%),
    radial-gradient(40% 44% at 82% 26%, var(--aurora-1) 0%, transparent 60%),
    radial-gradient(48% 50% at 58% 94%, var(--aurora-3) 0%, transparent 68%);
  filter: blur(26px) saturate(120%);
  animation: aurora-drift 30s ease-in-out infinite alternate;
  transform: translate3d(calc(var(--px, 0) * -0.6px), calc(var(--py, 0) * -0.6px), 0);
}
@keyframes aurora-drift {
  0%   { background-position: 0% 0%, 0% 0%, 0% 0%; }
  50%  { background-position: 4% 3%, -3% 2%, 2% -3%; }
  100% { background-position: -3% 4%, 3% -2%, -2% 3%; }
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.hero-scene {
  will-change: transform;
  transform: translate3d(calc(var(--px, 0) * 1px), calc(var(--py, 0) * 1px), 0);
}

/* ---- Hero precision-lens motif --------------------------------------- */
.lens-disc {
  transform-box: view-box;
  transform-origin: 200px 190px;
  opacity: 0;
  animation: lens-fade 1s var(--ease) .1s forwards;
}
.lens-guide { opacity: 0; animation: lens-fade 1.1s var(--ease) .5s forwards; }
.lens-ring {
  transform-box: view-box;
  transform-origin: 200px 190px;
  opacity: 0;
  animation: lens-ring-in .8s var(--ease) forwards;
}
.lens-ring.r1 { animation-delay: .18s; }
.lens-ring.r2 { animation-delay: .34s; }
.lens-ring.r3 { animation-delay: .50s; }
@keyframes lens-ring-in {
  from { opacity: 0; transform: scale(.82); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes lens-fade { to { opacity: 1; } }

.lens-rotor {
  transform-box: view-box;
  transform-origin: 200px 190px;
  opacity: 0;
  animation: lens-fade 1s ease .9s forwards, lens-spin 26s linear 1s infinite;
}
@keyframes lens-spin { to { transform: rotate(360deg); } }
.lens-scan { opacity: .5; }
.lens-node { filter: drop-shadow(0 0 6px var(--spark)); }

.lens-core {
  transform-box: view-box;
  transform-origin: 200px 190px;
  animation: lens-core-pulse 3.4s ease-in-out 1.1s infinite;
}
@keyframes lens-core-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.16); opacity: .88; }
}

.lens-sweep {
  opacity: 0;
  animation: lens-fade 1.4s ease 1.2s forwards, lens-sweep-move 7.5s ease-in-out 1.4s infinite;
}
@keyframes lens-sweep-move {
  0%   { transform: translateX(-220px); }
  55%  { transform: translateX(260px); }
  100% { transform: translateX(260px); }
}

/* ---- Directional scroll-reveal variants ------------------------------ */
[data-reveal="left"]  { transform: translateX(-28px); }
[data-reveal="right"] { transform: translateX(28px); }
[data-reveal="scale"] { transform: scale(.955); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---- Pointer-reactive 3D tilt + cool sheen on cards ------------------ */
.tilt {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}
.tilt::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), var(--sheen), transparent 62%);
  opacity: 0;
  transition: opacity .3s var(--ease);
  z-index: 0;
}
.tilt:hover::after { opacity: 1; }
.tilt > * { position: relative; z-index: 1; }

/* ---- Install A/B segmented switch (glass) ---------------------------- */
.install-switch {
  position: relative;
  display: inline-flex;
  gap: 2px;
  padding: 5px;
  margin-bottom: 26px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: var(--shadow-sm), inset 0 1px 0 var(--glass-highlight);
}
.install-switch .switch-thumb {
  position: absolute;
  z-index: 0;
  top: 5px; bottom: 5px; left: 5px;
  width: calc(50% - 5px);
  border-radius: 999px;
  background: var(--btn-primary-bg);
  box-shadow: 0 5px 16px var(--accent-glow);
  transform: translateX(var(--thumb, 0));
  transition: transform .38s var(--ease);
}
.install-switch button {
  position: relative;
  z-index: 1;
  flex: 1;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .92rem;
  color: var(--muted);
  padding: 10px 20px;
  border-radius: 999px;
  white-space: nowrap;
  transition: color .28s var(--ease);
}
.install-switch button[aria-pressed="true"] { color: var(--on-accent); }
.chooser .opt { transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease), opacity .35s var(--ease); }
.chooser.has-switch .opt { opacity: .62; }
.chooser.has-switch .opt.is-active { opacity: 1; }
.chooser .opt.is-active { border-color: var(--accent); box-shadow: 0 0 0 1.5px var(--accent), var(--shadow-md); }

/* ---- Signature scroll moment: the journey "trajectory" rail ---------- */
.journey-stage {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: clamp(18px, 4vw, 44px);
  align-items: start;
}
.journey-rail {
  position: sticky;
  top: 108px;
  align-self: start;
  height: min(66vh, 560px);
}
.journey-rail svg { width: 100%; height: 100%; overflow: visible; }
.journey-rail .rail-track { stroke: var(--border-strong); }
.journey-rail .rail-fill {
  stroke: var(--accent);
  stroke-linecap: round;
  filter: drop-shadow(0 0 5px var(--accent-glow));
  transition: stroke-dashoffset .5s var(--ease);
}
.journey-rail .node {
  fill: var(--surface);
  stroke: var(--accent);
  stroke-width: 2.5;
  transition: fill .4s var(--ease), stroke .4s var(--ease), r .4s var(--ease);
}
.journey-rail .node.dim { fill: var(--surface); stroke: var(--border-strong); }
.journey-rail .node.on  { fill: var(--accent); stroke: var(--accent); }
.journey-rail .rail-arrow {
  fill: var(--accent);
  filter: drop-shadow(0 0 6px var(--spark));
  transition: transform .5s var(--ease);
}
.journey-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(22px, 5vh, 56px);
  counter-reset: jstep;
}
.jstep {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  align-items: start;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.jstep .jnum {
  counter-increment: jstep;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent-ink);
  background: var(--accent-soft);
  width: 42px; height: 42px;
  border-radius: 13px;
  display: grid; place-items: center;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.jstep .jnum::before { content: counter(jstep, decimal-leading-zero); }
.jstep h3 { font-size: 1.16rem; }
.jstep p { color: var(--muted); margin-top: 6px; font-size: .97rem; }
.journey.is-enhanced .jstep { opacity: .4; }
.journey.is-enhanced .jstep.is-active { opacity: 1; }
.journey.is-enhanced .jstep.is-active .jnum {
  transform: scale(1.06);
  box-shadow: 0 6px 18px var(--accent-glow);
}
@media (max-width: 560px) {
  .journey-stage { grid-template-columns: 44px 1fr; gap: 14px; }
}

/* ---- Decorative mock terminal (the guru's greeting) — glass ---------- */
.hero-terminal {
  margin-top: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: var(--shadow-md), inset 0 1px 0 var(--glass-highlight);
  overflow: hidden;
}
.term-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}
.term-dots { display: inline-flex; gap: 6px; }
.term-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); display: block; }
.term-dots i:first-child { background: var(--accent); }
.term-title { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); }
.term-body {
  padding: 15px 16px 17px;
  font-family: var(--font-mono);
  font-size: .82rem;
  line-height: 1.85;
  min-height: 8.2em;
}
.term-line { white-space: pre-wrap; word-break: break-word; }
.term-line + .term-line { margin-top: 2px; }
.term-prompt { color: var(--accent-ink); }
.term-cmd { color: var(--text); }
.term-resp { color: var(--muted); }
.term-resp b { color: var(--text); font-weight: 600; }
.term-cursor {
  display: inline-block;
  width: 8px; height: 1.02em;
  vertical-align: -0.16em;
  background: var(--accent);
  margin-left: 3px;
  animation: term-blink 1.1s steps(1) infinite;
}
@keyframes term-blink { 50% { opacity: 0; } }

/* ==========================================================================
   Glass fallback — opaque panels where backdrop-filter is unsupported.
   ========================================================================== */
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .site-header { background: var(--surface); }
  .card, .opt, .persona, .track, .cmd, .install-switch, .hero-terminal,
  .cta-band, .callout, .icon-btn, .btn--ghost { background: var(--surface); }
  .cmd-head, .term-head { background: var(--surface); }
  .cmd-body { background: var(--surface-2); }
}

/* ==========================================================================
   Reduced motion — fully still. Content visible, no transforms, no keyframes.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero-glow { animation: none !important; }
  .btn, .card, .opt, .track, .persona, .icon-btn, .copy-btn { transition: none !important; }
  .btn:hover, .card--hover:hover, .opt:hover, .track:hover, .persona:hover { transform: none !important; }

  /* hero precision-lens — everything still, everything visible */
  .lens-disc, .lens-guide, .lens-ring, .lens-rotor, .lens-scan, .lens-node,
  .lens-core, .lens-sweep {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .lens-sweep { opacity: 0 !important; }   /* hide the moving highlight entirely */

  /* level-up layer — everything still, everything visible */
  .scroll-progress, .hero-canvas { display: none !important; }
  .hero-aurora { animation: none !important; transform: none !important; }
  .hero-scene { transform: none !important; }
  [data-reveal="left"], [data-reveal="right"], [data-reveal="scale"] { transform: none !important; opacity: 1 !important; }
  .tilt { transform: none !important; }
  .tilt::after { display: none !important; }
  .install-switch .switch-thumb { transition: none !important; }
  .chooser.has-switch .opt { opacity: 1 !important; }
  .journey.is-enhanced .jstep, .jstep { opacity: 1 !important; transform: none !important; }
  .journey.is-enhanced .jstep .jnum { transform: none !important; box-shadow: none !important; }
  .journey-rail .rail-fill, .journey-rail .rail-arrow, .journey-rail .node { transition: none !important; }
  .term-cursor { animation: none !important; }
}
