/* ==========================================================================
   FLIGHT DECK — microsite
   Tokens are lifted from flight-deck/styles/theme.css so the site and the
   deck read as one product. Change a colour here and the whole page follows.
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
  color-scheme: dark;
  --bg: #05070c;
  --bg-grid: rgba(120, 160, 200, 0.05);
  --surface-0: #080b12;
  --surface-1: #0c1018;
  --surface-2: #111722;
  --surface-3: #18202e;
  --line: rgba(140, 175, 215, 0.13);
  --line-strong: rgba(150, 190, 230, 0.28);
  --text: #e6edf7;
  --text-dim: #9fb0c6;
  --text-faint: #5d6f88;
  --text-invert: #05070c;
  --accent: #22e0ff;
  --accent-2: #7c5cff;
  --ok: #2fe08a;
  --warn: #ffc247;
  --danger: #ff5470;
  --info: #4aa8ff;
  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
  --accent-glow: color-mix(in srgb, var(--accent) 38%, transparent);
  --line-accent: color-mix(in srgb, var(--accent) 45%, transparent);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.95);
  --scanline-opacity: 0.04;
  --noise-opacity: 0.05;
  --aurora-strength: 1;

  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', ui-monospace, 'Cascadia Mono', Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1240px;
}

/* Light — follows the system unless the visitor picked a theme with T / ⌘K */
@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) {
    color-scheme: light;
    --bg: #eef1f6;
    --bg-grid: rgba(30, 60, 100, 0.06);
    --surface-0: #f7f9fc;
    --surface-1: #ffffff;
    --surface-2: #f2f5fa;
    --surface-3: #e7ecf4;
    --line: rgba(20, 45, 80, 0.12);
    --line-strong: rgba(20, 45, 80, 0.26);
    --text: #0d1521;
    --text-dim: #4a5a70;
    --text-faint: #8697ad;
    --text-invert: #ffffff;
    --accent: #0089c7;
    --accent-2: #6d3ff5;
    --ok: #0f9d58;
    --warn: #b97400;
    --danger: #d92b48;
    --info: #1668d6;
    --shadow: 0 30px 70px -34px rgba(15, 30, 60, 0.45);
    --scanline-opacity: 0;
    --noise-opacity: 0.025;
    --aurora-strength: .7;
  }
}
:root[data-theme='light'] {
  color-scheme: light;
  --bg: #eef1f6;
  --bg-grid: rgba(30, 60, 100, 0.06);
  --surface-0: #f7f9fc;
  --surface-1: #ffffff;
  --surface-2: #f2f5fa;
  --surface-3: #e7ecf4;
  --line: rgba(20, 45, 80, 0.12);
  --line-strong: rgba(20, 45, 80, 0.26);
  --text: #0d1521;
  --text-dim: #4a5a70;
  --text-faint: #8697ad;
  --text-invert: #ffffff;
  --accent: #0089c7;
  --accent-2: #6d3ff5;
  --ok: #0f9d58;
  --warn: #b97400;
  --danger: #d92b48;
  --info: #1668d6;
  --shadow: 0 30px 70px -34px rgba(15, 30, 60, 0.45);
  --scanline-opacity: 0;
  --noise-opacity: 0.025;
  --aurora-strength: .7;
}

/* 2. BASE ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
code, kbd, pre { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--text-invert); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 3. ATMOSPHERE ------------------------------------------------------------ */
.atmos { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.atmos::before {                                  /* engineering grid */
  content: ''; position: absolute; inset: -2px;
  background-image:
    linear-gradient(var(--bg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 120% 80% at 50% 0%, #000 25%, transparent 85%);
}
.atmos-glow {
  position: absolute; border-radius: 50%; filter: blur(80px);
  opacity: calc(.55 * var(--aurora-strength));
  animation: drift 22s ease-in-out infinite alternate;
}
.atmos-glow--a { width: 60vw; height: 45vw; left: -15vw; top: -22vw; background: color-mix(in srgb, var(--accent) 40%, transparent); }
.atmos-glow--b { width: 50vw; height: 40vw; right: -14vw; top: -10vw; background: color-mix(in srgb, var(--accent-2) 42%, transparent); animation-delay: -9s; animation-duration: 28s; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(6vw, 4vw, 0) scale(1.15); }
}
.scanlines {
  position: fixed; inset: 0; pointer-events: none; z-index: 60;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.5) 0 1px, transparent 1px 3px);
  opacity: var(--scanline-opacity); mix-blend-mode: overlay;
}
.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 61; opacity: var(--noise-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, .nav, .foot { position: relative; z-index: 2; }

/* 4. NAV ------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
}
.nav[data-scrolled='true'] {
  background: color-mix(in srgb, var(--surface-0) 72%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; user-select: none; }
.brand-mark { width: 24px; height: 24px; color: var(--accent); filter: drop-shadow(0 0 8px var(--accent-glow)); }
.brand-mark path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.brand-text { font-size: 13px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; white-space: nowrap; }
.brand-text span { color: var(--text-faint); font-weight: 500; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 7px 12px; border-radius: 8px; font-size: 13.5px; color: var(--text-dim);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-tools { display: flex; align-items: center; gap: 8px; }
.kbd-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px 0 12px;
  border: 1px solid var(--line); border-radius: 9px; background: color-mix(in srgb, var(--surface-1) 70%, transparent);
  color: var(--text-faint); font-size: 13px; transition: border-color .2s, color .2s;
}
.kbd-btn:hover { border-color: var(--line-strong); color: var(--text-dim); }
kbd, .kbd {
  display: inline-block; min-width: 20px; padding: 1px 6px; text-align: center;
  background: var(--surface-3); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px;
  font-size: 11px; color: var(--text-dim); line-height: 1.5;
}

/* 5. BUTTONS --------------------------------------------------------------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 20px; border-radius: 11px;
  font-size: 15px; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
  border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--surface-1) 60%, transparent);
  color: var(--text); backdrop-filter: blur(8px);
  transition: transform .2s var(--ease), border-color .2s, background .2s, box-shadow .3s;
}
.btn:hover { transform: translateY(-1px); border-color: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn--primary {
  background: var(--accent); color: var(--text-invert); border-color: transparent;
  box-shadow: 0 0 0 1px var(--line-accent), 0 10px 40px -10px var(--accent-glow);
  overflow: hidden;
}
.btn--primary::after {                              /* glint */
  content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg);
  animation: glint 5s var(--ease) infinite 2s;
}
.btn--primary:hover { box-shadow: 0 0 0 1px var(--accent), 0 14px 50px -8px var(--accent-glow); border-color: transparent; }
@keyframes glint { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.btn--sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 9px; }
.btn--sm svg { width: 15px; height: 15px; }

/* 6. HERO ------------------------------------------------------------------ */
.hero { position: relative; padding: clamp(40px, 7vh, 80px) 0 0; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 10px; border-radius: 99px;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--surface-1) 55%, transparent);
  backdrop-filter: blur(8px);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim);
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.pulse::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--ok);
  animation: ping 2s var(--ease) infinite;
}
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

.hero-title {
  margin: 26px auto 0; max-width: 17ch;
  font-size: clamp(42px, 7vw, 100px); line-height: .95; font-weight: 800; letter-spacing: -.045em;
  background: linear-gradient(180deg, var(--text) 30%, color-mix(in srgb, var(--text) 55%, transparent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-wrap: balance;
}
.hero-title .hl {
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 60%, var(--accent) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 8s linear infinite;
  filter: drop-shadow(0 0 30px color-mix(in srgb, var(--accent) 35%, transparent));
}
@keyframes sheen { to { background-position: -200% 0; } }
.hero-sub {
  margin: 26px auto 0; max-width: 60ch;
  font-size: clamp(16px, 1.8vw, 19px); color: var(--text-dim); text-wrap: pretty;
}
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }
.hero-meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 22px;
  font-family: var(--mono); font-size: 12px; color: var(--text-faint); letter-spacing: .04em;
}
.hero-meta span::before { content: '◆'; margin-right: 8px; color: var(--accent); font-size: 8px; vertical-align: 2px; }

/* 7. THE HERO DECK -------------------------------------------------------- */
/* The deck itself is styled by assets/deck.css — the framework's own
   theme.css scoped to .fdx. This section only frames, tilts and animates it. */
@property --fd-accent { syntax: '<color>'; inherits: true; initial-value: #22e0ff; }
@property --fd-accent-2 { syntax: '<color>'; inherits: true; initial-value: #7c5cff; }

.fog {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
  mask-image: linear-gradient(to bottom, #000 60%, transparent);
}
.hero > .wrap, .hero > .stage { position: relative; z-index: 1; }

.stage {
  --tilt: 1;                       /* 1 at the top of the page, 0 once scrolled */
  position: relative; margin: clamp(40px, 6vh, 72px) auto 0; max-width: 1240px;
  perspective: 1800px; perspective-origin: 50% 0%;
  padding: 0 var(--gutter);
  text-align: left;
}
.stage::before {                   /* horizon glow under the deck */
  content: ''; position: absolute; left: 10%; right: 10%; top: 8%; height: 70%;
  background: radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%);
  filter: blur(60px); opacity: calc(.75 * var(--aurora-strength));
  pointer-events: none;
}
.deck-fit { position: relative; width: 100%; aspect-ratio: 1440 / 900; }
.deck-fit[data-crop] {
  aspect-ratio: auto; overflow: hidden; border-radius: 12px;
  mask-image: linear-gradient(90deg, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent);
}
.deck {
  position: absolute; left: 0; top: 0; width: 1440px; height: 900px;
  transform-origin: 0 0;
  transform: scale(var(--deck-scale, 1));
}
.deck-tilt {
  width: 100%; height: 100%;
  transform-origin: 50% 0%;
  transform: rotateX(calc(var(--tilt) * 24deg)) scale(calc(1 - var(--tilt) * .06));
  transition: transform .5s var(--ease);
  will-change: transform;
}

/* The app frame — the deck's own body + atmosphere, as a window */
.fdx {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--fd-bg); color: var(--fd-text);
  font-family: var(--fd-font); font-size: var(--fd-fs-md); line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  border: 1px solid var(--fd-line-strong); border-radius: 12px;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--fd-accent) 14%, transparent),
    0 50px 120px -40px color-mix(in srgb, var(--fd-accent) 32%, transparent),
    0 40px 90px -30px rgba(0, 0, 0, .9);
  transition: --fd-accent .9s var(--ease), --fd-accent-2 .9s var(--ease), box-shadow .9s var(--ease);
  isolation: isolate;
}
.fdx::before {                     /* the deck's engineering grid */
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background-image: linear-gradient(var(--fd-bg-grid) 1px, transparent 1px), linear-gradient(90deg, var(--fd-bg-grid) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 120% 90% at 50% 0%, #000 30%, transparent 92%);
}
.fdx::after {                      /* the deck's accent aurora */
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(60% 40% at 12% -8%, color-mix(in srgb, var(--fd-accent) 15%, transparent), transparent 70%),
    radial-gradient(50% 40% at 92% 4%, color-mix(in srgb, var(--fd-accent-2) 13%, transparent), transparent 70%);
}
.fdx h1, .fdx p, .fdx ul { margin: 0; }
.fdx ul { list-style: disc; }
.fdx .fd-canvas { overflow: hidden; scrollbar-gutter: auto; }
.fdx .fd-grid { min-height: 0; }
.fdx .fd-select { display: inline-flex; align-items: center; color: var(--fd-text); }
.fdx .fd-widget { will-change: opacity, transform; }

/* Profile switch: widgets leave, dashed outlines of the next deck appear,
   then each widget lands in its outline with the loading sweep. */
.fdx .fd-widget {
  transition: opacity .38s var(--ease), transform .5s var(--ease), filter .38s var(--ease), border-color .2s;
}
.fdx .fd-widget.fdx-leave { opacity: 0; transform: translateY(8px) scale(.985); filter: blur(4px); }
.fdx .fd-widget.fdx-enter { opacity: 0; transform: translateY(-12px) scale(.985); filter: blur(6px); }
.fdx .fdx-ph { z-index: 0; transition: opacity .32s var(--ease), transform .4s var(--ease); }
.fdx .fdx-ph.fdx-ph-wait { opacity: 0; transform: scale(.97); }
.fdx .fdx-ph.fdx-ph-out { opacity: 0; transition-duration: .6s; }

/* Preset pills under the deck */
.profiles {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin-top: 26px;
}
.pill {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 9px; height: 36px; padding: 0 16px;
  border-radius: 99px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-1) 65%, transparent); backdrop-filter: blur(8px);
  font-size: 13.5px; font-weight: 500; color: var(--text-dim);
  transition: color .3s, border-color .3s, background .3s;
}
.pill:hover { color: var(--text); border-color: var(--line-strong); }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.pill[aria-pressed='true'] {
  color: var(--text);
  border-color: color-mix(in srgb, var(--c) 55%, transparent);
  background: color-mix(in srgb, var(--c) 10%, var(--surface-1));
}
.pill-bar {
  position: absolute; left: 0; bottom: 0; height: 2px;
  width: calc(var(--p, 0) * 100%); background: var(--c); opacity: .9;
}
.profiles[data-manual] .pill-bar { display: none; }

/* 8. MARQUEE --------------------------------------------------------------- */
.marquee {
  position: relative; margin-top: clamp(56px, 9vh, 110px); padding: 18px 0;
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-0) 60%, transparent);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; gap: 0; width: max-content; animation: marquee 60s linear infinite; }
.marquee-track--rev { animation-direction: reverse; animation-duration: 75s; margin-top: 12px; }
.marquee-track span {
  display: inline-flex; align-items: center; gap: 10px; padding: 0 22px;
  font-family: var(--mono); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-faint); white-space: nowrap;
}
.marquee-track span b { color: var(--accent); font-weight: 400; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 9. SECTIONS -------------------------------------------------------------- */
.section { padding: clamp(80px, 12vh, 140px) 0 0; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
}
.kicker::before { content: ''; width: 28px; height: 1px; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.section h2 {
  margin-top: 16px; max-width: 18ch;
  font-size: clamp(34px, 5.2vw, 64px); line-height: 1; font-weight: 800; letter-spacing: -.04em; text-wrap: balance;
}
.section h2 .dim { color: var(--text-faint); }
.lede { margin-top: 18px; max-width: 58ch; font-size: clamp(16px, 1.6vw, 18px); color: var(--text-dim); text-wrap: pretty; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; }

/* stats */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: color-mix(in srgb, var(--surface-1) 55%, transparent); backdrop-filter: blur(8px);
}
.stat { padding: 28px 26px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b {
  display: block; font-family: var(--mono); font-weight: 500; font-size: clamp(38px, 5vw, 60px); line-height: 1; letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--text), color-mix(in srgb, var(--accent) 70%, var(--text)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { display: block; margin-top: 10px; font-size: 13px; color: var(--text-dim); }

/* cards with the cursor spotlight */
.card {
  --mx: 50%; --my: 50%;
  position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: color-mix(in srgb, var(--surface-1) 72%, transparent);
  backdrop-filter: blur(10px);
  transition: border-color .3s var(--ease), transform .4s var(--ease);
}
.card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%);
}
.card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .3s;
  background:
    linear-gradient(var(--accent), var(--accent)) 0 0 / 16px 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 0 0 / 1px 16px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 100% 100% / 16px 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 100% 100% / 1px 16px no-repeat;
}
.card:hover { border-color: var(--line-strong); }
.card:hover::before, .card:hover::after { opacity: 1; }

/* 10. FEATURES (bento) ----------------------------------------------------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 56px; }
.feat { display: flex; flex-direction: column; padding: 26px; min-height: 280px; }
.feat--4 { grid-column: span 4; }
.feat--3 { grid-column: span 3; }
.feat--2 { grid-column: span 2; }
.feat--6 { grid-column: span 6; }
.feat h3 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.feat p { margin-top: 8px; color: var(--text-dim); font-size: 15px; max-width: 46ch; }
.feat-vis { position: relative; margin-top: auto; padding-top: 22px; }

.term {
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface-0);
  font-family: var(--mono); font-size: 13px; line-height: 1.8; overflow: hidden;
}
.term-bar { display: flex; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.term-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); }
.term pre { margin: 0; padding: 12px 16px; white-space: pre-wrap; word-break: break-word; color: var(--text-dim); }
.term .p { color: var(--accent); }
.term .ok { color: var(--ok); }
.term .f { color: var(--text-faint); }
.caret { display: inline-block; width: 8px; height: 15px; background: var(--accent); vertical-align: -2px; animation: blink 1s steps(2) infinite; }

.tree { font-family: var(--mono); font-size: 13px; line-height: 1.9; color: var(--text-dim); }
.tree .dir { color: var(--text); }
.tree .new { color: var(--accent); }
.tree .new::after { content: '  ← drop it in'; color: var(--text-faint); }

.minigrid {
  display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 26px; gap: 6px;
}
.minigrid i {
  border-radius: 5px; border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--surface-3) 70%, transparent);
}
.minigrid i:nth-child(1) { grid-column: span 2; grid-row: span 2; animation: mg1 8s var(--ease) infinite; }
.minigrid i:nth-child(2) { grid-column: span 4; background: var(--accent-soft); border-color: var(--line-accent); animation: mg2 8s var(--ease) infinite; }
.minigrid i:nth-child(3) { grid-column: span 2; }
.minigrid i:nth-child(4) { grid-column: span 2; }
.minigrid i:nth-child(5) { grid-column: span 3; }
.minigrid i:nth-child(6) { grid-column: span 3; }
@keyframes mg1 { 0%, 40% { transform: none; } 50%, 90% { transform: translateX(calc(200% + 12px)); } 100% { transform: none; } }
@keyframes mg2 { 0%, 40% { transform: none; } 50%, 90% { transform: translateX(calc(-50% - 3px)); } 100% { transform: none; } }

.palette-mock { border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface-0); overflow: hidden; box-shadow: 0 20px 40px -24px rgba(0,0,0,.8); }
.palette-mock .q { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 13px; }
.palette-mock .q .typed { color: var(--text); }
.palette-mock li { display: flex; justify-content: space-between; padding: 7px 12px; font-size: 13px; color: var(--text-dim); }
.palette-mock li.on { background: var(--accent-soft); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }
.palette-mock li small { font-family: var(--mono); font-size: 11px; color: var(--text-faint); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 99px;
  border: 1px solid var(--line); background: var(--surface-2); font-size: 13px; color: var(--text-dim);
  transition: border-color .2s, color .2s;
}
.chip b { color: var(--accent); font-weight: 400; }
.feat:hover .chip { border-color: var(--line-strong); }

.secret { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12.5px; }
.secret code { display: block; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-0); color: var(--text-dim); text-align: center; overflow-wrap: anywhere; }
.secret code.lock { border-color: color-mix(in srgb, var(--ok) 40%, transparent); color: var(--ok); }
.secret .arrow { color: var(--accent); font-size: 18px; }
.secret small { grid-column: 1 / -1; color: var(--text-faint); font-size: 11.5px; text-align: center; letter-spacing: .06em; }

.problem {
  border: 1px solid color-mix(in srgb, var(--danger) 45%, transparent); border-radius: 10px;
  background: color-mix(in srgb, var(--danger) 6%, var(--surface-0)); padding: 14px 16px;
}
.problem-code { display: inline-block; font-family: var(--mono); font-size: 11.5px; padding: 2px 8px; border-radius: 99px; color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 45%, transparent); }
.problem b { display: block; margin-top: 10px; font-size: 14px; }
.problem p { margin-top: 4px !important; font-size: 13px !important; }
.problem .hint { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--text-dim); }
.problem .hint::before { content: 'HINT  '; font-family: var(--mono); font-size: 11px; color: var(--warn); letter-spacing: .1em; }

.anywhere { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.where { border: 1px solid var(--line); border-radius: 10px; padding: 16px; background: var(--surface-0); }
.where svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px var(--accent-glow)); }
.where b { display: block; margin-top: 12px; font-size: 15px; }
.where span { display: block; margin-top: 4px; font-size: 13.5px; color: var(--text-dim); }

/* 11. MODULES -------------------------------------------------------------- */
.mods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 56px; }
.mod { display: flex; flex-direction: column; padding: 22px; min-height: 230px; }
.mod:hover { transform: translateY(-3px); }
.mod-top { display: flex; align-items: center; justify-content: space-between; }
.mod-icon {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 11px;
  border: 1px solid var(--line-accent); background: var(--accent-soft);
  color: var(--accent); font-size: 20px; text-shadow: 0 0 12px var(--accent-glow);
}
.mod-cat { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint); }
.mod h3 { margin-top: 18px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.mod p { margin-top: 6px; font-size: 14px; color: var(--text-dim); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 16px; }
.tag {
  padding: 2px 8px; border-radius: 99px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em;
  border: 1px solid var(--line); color: var(--text-faint);
}
.tag--ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: color-mix(in srgb, var(--ok) 8%, transparent); }
.tag--server { color: var(--accent-2); border-color: color-mix(in srgb, var(--accent-2) 45%, transparent); background: color-mix(in srgb, var(--accent-2) 8%, transparent); }
.tag--key { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: color-mix(in srgb, var(--warn) 8%, transparent); }
.mod--more {
  grid-column: 1 / -1; min-height: 0;
  flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 28px;
  border-style: dashed; background: transparent;
}
.mod--more p { flex: 1 1 360px; margin: 0 !important; }
.mod--more b { font-family: var(--mono); font-weight: 500; font-size: 44px; letter-spacing: -.04em; color: var(--accent); line-height: 1; }
.mod--more a { font-size: 14px; color: var(--accent); white-space: nowrap; }
.mod--more a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* 12. BUILD YOUR OWN ------------------------------------------------------- */
.build { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; }
.build ol { margin-top: 28px; display: grid; gap: 16px; counter-reset: step; }
.build li { position: relative; padding-left: 46px; color: var(--text-dim); }
.build li b { display: block; color: var(--text); }
.build li::before {
  counter-increment: step; content: '0' counter(step);
  position: absolute; left: 0; top: 1px; font-family: var(--mono); font-size: 12px; color: var(--accent);
  border: 1px solid var(--line-accent); border-radius: 6px; padding: 2px 6px;
}
.code { position: relative; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface-0); overflow: hidden; box-shadow: var(--shadow); }
.code-tabs { display: flex; border-bottom: 1px solid var(--line); background: var(--surface-1); }
.code-tabs button {
  padding: 11px 16px; font-family: var(--mono); font-size: 12.5px; color: var(--text-faint);
  border-right: 1px solid var(--line); transition: color .2s, background .2s;
}
.code-tabs button[aria-selected='true'] { color: var(--text); background: var(--surface-0); box-shadow: inset 0 -2px 0 var(--accent); }
.code pre { margin: 0; padding: 20px 22px; font-size: 13px; line-height: 1.75; overflow-x: auto; color: var(--text-dim); tab-size: 2; }
.code pre[hidden] { display: none; }
.tk-k { color: var(--accent-2); }
.tk-s { color: var(--ok); }
.tk-p { color: var(--accent); }
.tk-c { color: var(--text-faint); font-style: italic; }
.tk-n { color: var(--warn); }

/* 13. QUICK START ---------------------------------------------------------- */
.launch { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 48px; }
.launch-card { padding: 24px; }
.launch-card h3 { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; }
.launch-card h3 span { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); font-weight: 400; margin-left: auto; }
.cmd {
  position: relative; margin-top: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-0);
}
.cmd pre { margin: 0; padding: 14px 16px; padding-right: 64px; font-size: 13px; line-height: 1.8; overflow-x: auto; color: var(--text-dim); }
.cmd pre .p { color: var(--accent); user-select: none; }
.copy {
  position: absolute; top: 8px; right: 8px; height: 28px; padding: 0 10px; border-radius: 7px;
  border: 1px solid var(--line); background: var(--surface-2); font-family: var(--mono); font-size: 11px; color: var(--text-faint);
  transition: color .2s, border-color .2s;
}
.copy:hover { color: var(--text); border-color: var(--line-strong); }
.copy[data-done] { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.launch-note { margin-top: 18px; color: var(--text-dim); font-size: 14.5px; }
.launch-note code { font-size: 13px; padding: 2px 6px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); }

/* 14. ROADMAP -------------------------------------------------------------- */
.plan { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 56px; }
.lane { padding: 22px; }
.lane h3 { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--text-dim); }
.lane h3 i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--accent)); box-shadow: 0 0 10px var(--c, var(--accent)); }
.lane--shipped { --c: var(--ok); }
.lane--next { --c: var(--accent); }
.lane--later { --c: var(--accent-2); }
.lane--exploring { --c: var(--text-faint); }
.lane--next h3 i { animation: blink 1.4s steps(2) infinite; }
.lane ul { margin-top: 16px; display: grid; gap: 10px; }
.lane li { padding: 12px 14px; border: 1px solid var(--line); border-left: 2px solid var(--c, var(--accent)); border-radius: 8px; background: var(--surface-0); }
.lane li b { display: block; font-size: 14.5px; font-weight: 600; }
.lane li span { display: block; margin-top: 3px; font-size: 13px; color: var(--text-dim); }
.plan-note { margin-top: 18px; font-family: var(--mono); font-size: 12px; color: var(--text-faint); letter-spacing: .04em; }

/* 15. FINAL CTA + FOOTER --------------------------------------------------- */
.final { position: relative; margin-top: clamp(100px, 14vh, 160px); padding: clamp(70px, 10vh, 120px) 0; text-align: center; overflow: hidden; border-top: 1px solid var(--line); }
.final::before {
  content: ''; position: absolute; left: 50%; bottom: -60%; width: 120%; aspect-ratio: 2 / 1; transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, var(--accent) 22%, transparent), color-mix(in srgb, var(--accent-2) 12%, transparent) 40%, transparent 70%);
  filter: blur(30px); pointer-events: none;
}
.final h2 { margin: 0 auto; font-size: clamp(44px, 8vw, 104px); line-height: .95; font-weight: 800; letter-spacing: -.05em; max-width: none; }
.final p { margin: 20px auto 0; max-width: 50ch; color: var(--text-dim); font-size: 18px; }
.final .hero-cta { position: relative; }
.foot { border-top: 1px solid var(--line); padding: 28px 0; font-size: 13px; color: var(--text-faint); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; gap: 20px; }
.foot a:hover { color: var(--text); }

/* 16. ⌘K PALETTE ----------------------------------------------------------- */
.pal {
  width: min(560px, calc(100vw - 32px)); margin: 14vh auto auto; padding: 0;
  border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden;
  background: color-mix(in srgb, var(--surface-1) 92%, transparent); color: var(--text);
  backdrop-filter: blur(20px);
  box-shadow: 0 0 0 1px var(--line-accent), 0 40px 100px -20px rgba(0,0,0,.8), 0 0 60px -20px var(--accent-glow);
}
.pal::backdrop { background: color-mix(in srgb, var(--bg) 60%, transparent); backdrop-filter: blur(4px); }
.pal[open] { animation: palIn .25s var(--ease); }
@keyframes palIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.pal-q { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.pal-q svg { width: 18px; height: 18px; fill: none; stroke: var(--text-faint); stroke-width: 1.8; stroke-linecap: round; }
.pal-q input { flex: 1; height: 54px; border: 0; outline: 0; background: none; color: var(--text); font: inherit; font-size: 16px; }
.pal-list { max-height: 50vh; overflow-y: auto; padding: 6px; }
.pal-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: 14.5px; color: var(--text-dim); }
.pal-list li .g { width: 22px; text-align: center; color: var(--accent); }
.pal-list li small { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--text-faint); letter-spacing: .06em; }
.pal-list li[aria-selected='true'] { background: var(--accent-soft); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }
.pal-empty { padding: 16px; color: var(--text-faint); font-size: 14px; }
.pal-foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-faint); }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 70; transform: translate(-50%, 20px); opacity: 0;
  padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line-accent);
  background: var(--surface-1); color: var(--text); font-size: 14px; box-shadow: var(--shadow);
  transition: opacity .25s, transform .25s var(--ease); pointer-events: none;
}
.toast[data-show] { opacity: 1; transform: translate(-50%, 0); }

/* 17. REVEAL ON SCROLL ----------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal[data-in] { opacity: 1; transform: none; }

/* 18. RESPONSIVE ----------------------------------------------------------- */
@media (max-width: 1020px) {
  .mods { grid-template-columns: repeat(3, 1fr); }
  .plan { grid-template-columns: repeat(2, 1fr); }
  .feat--4, .feat--2 { grid-column: span 3; }
  .build { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-tools { margin-left: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .mods { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: 1fr; }
  .feat--2, .feat--3, .feat--4, .feat--6 { grid-column: auto; }
  .feat { min-height: 0; }
  .anywhere { grid-template-columns: 1fr; }
  .launch { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .mods, .plan { grid-template-columns: 1fr; }
  .kbd-btn kbd { display: none; }
  .nav-tools .btn--sm span { display: none; }
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
  .stat { padding: 22px 18px; }
  .secret { grid-template-columns: 1fr; }
  .secret .arrow { transform: rotate(90deg); justify-self: center; }
  .profiles { gap: 6px; margin-top: 18px; }
  .pill { height: 32px; padding: 0 11px; gap: 7px; font-size: 12.5px; }
}

/* 19. MOTION PREFERENCES --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .stage { --tilt: 0 !important; }
  .marquee-track { animation: none; }
}
