/* ==========================================================================
   Vee3 — marketing theme
   Tokens follow the product's globals.css (brand ice #c5d2eb, deep #556b92,
   surfaces #15181c/#111925) pushed darker so the WebGL stage can glow.
   The product's palette rule applies here too: "good" is blue, never green.
   ========================================================================== */

@font-face { font-family: "Unbounded"; src: url("../fonts/unbounded-latin-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Days One"; src: url("../fonts/days-one-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --void: #05070b;
  --ink-0: #07090d;
  --ink-1: #0b0f15;
  --ink-2: #0f151e;
  --panel: #111925;
  --panel-2: #152030;
  --app: #15181c;
  --app-surface: #171a1e;
  --app-border: #2c3238;
  --line: #1c2533;
  --line-2: #26364b;
  --line-3: #33445d;

  --ice: #e5ecf8;
  --brand: #c5d2eb;
  --brand-muted: #9bacca;
  --brand-deep: #556b92;
  --text: #d7dbde;
  --text-2: #c4cbd2;
  --muted: #88949f;
  --faint: #5d6b78;

  --signal: #60a5fa;
  --signal-2: #93c5fd;
  --signal-deep: #2563eb;
  --violet: #9fb6e6; /* periwinkle, from the app's brand family (no purple) */
  --flare: #f87171;
  --amber: #fbbf24;

  --accent: var(--brand);

  --font-display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-logo: "Days One", "Unbounded", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --header-h: 72px;

  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   Base
   ------------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink-0);
  color: var(--text);
  font: 400 17px/1.65 var(--font-body);
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: rgba(96, 165, 250, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; color: var(--ice); letter-spacing: -.02em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.screen-reader-text, .sr-only {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link:focus { position: fixed; top: 12px; left: 12px; z-index: 1000; width: auto; height: auto; clip: auto; clip-path: none; padding: 10px 16px; background: var(--ice); color: var(--ink-0); border-radius: 8px; }

/* Film grain + vignette over everything, so flat gradients never band. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .055; mix-blend-mode: overlay;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gutter), 860px); margin-inline: auto; }

/* Page transitions between WordPress pages (Chromium). */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .35s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .55s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; filter: blur(6px); transform: scale(.985); } }
@keyframes vt-in { from { opacity: 0; filter: blur(8px); transform: scale(1.01); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }

/* --------------------------------------------------------------------------
   Type utilities
   ------------------------------------------------------------------------ */

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--brand-muted);
}
.kicker__index { color: var(--signal-2); }
.kicker__rule { width: 28px; height: 1px; background: linear-gradient(90deg, var(--line-3), transparent); }

.display-xl { font-size: clamp(2.6rem, 7.2vw, 6.4rem); font-weight: 600; letter-spacing: -.035em; line-height: .98; }
.display-l { font-size: clamp(2.1rem, 4.8vw, 4.2rem); letter-spacing: -.03em; }
.display-m { font-size: clamp(1.6rem, 3vw, 2.6rem); }
.display-s { font-size: clamp(1.15rem, 1.8vw, 1.45rem); letter-spacing: -.01em; line-height: 1.25; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.6; color: var(--text-2); max-width: 62ch; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.gradient-text {
  background: linear-gradient(100deg, var(--ice) 10%, var(--brand) 45%, var(--signal-2) 75%, var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.shimmer-text {
  background: linear-gradient(90deg, var(--brand-muted) 0%, var(--ice) 45%, var(--brand-muted) 60%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -100% 0; } }

/* --------------------------------------------------------------------------
   Wordmark: VEE3 | AI with a live text cursor.
   ------------------------------------------------------------------------ */

/* The Vee3 logo: Days One, near-white with a blue glow, and a thin I-beam
   between VEE3 and AI. */
.wordmark { display: inline-flex; align-items: center; gap: .16em; font: 400 22px/1 var(--font-logo); letter-spacing: .035em; color: #f3f6ff; text-shadow: 0 0 .12em rgba(147, 178, 255, .9), 0 0 .5em rgba(96, 140, 255, .55), 0 0 1.2em rgba(70, 120, 255, .3); white-space: nowrap; }
.wordmark__caret { position: relative; width: .045em; height: .82em; margin: 0 .1em; background: rgba(226, 234, 255, .72); border-radius: 1px; box-shadow: 0 0 .25em rgba(120, 160, 255, .6); }
.wordmark__caret::before, .wordmark__caret::after { content: ""; position: absolute; left: 50%; width: .2em; height: .045em; background: inherit; transform: translateX(-50%); border-radius: 1px; }
.wordmark__caret::before { top: 0; }
.wordmark__caret::after { bottom: 0; }
@keyframes caret { 0%, 55% { opacity: 1; } 56%, 100% { opacity: .15; } }
@media (prefers-reduced-motion: reduce) { .wordmark__caret { animation: none; } }
.custom-logo-link img { height: 30px; width: auto; }

/* --------------------------------------------------------------------------
   Buttons, chips, badges
   ------------------------------------------------------------------------ */

.btn {
  --btn-bg: transparent; --btn-fg: var(--ice); --btn-bd: var(--line-3);
  position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg); font: 600 15px/1 var(--font-body); letter-spacing: -.005em; white-space: nowrap;
  transition: transform .4s var(--ease), background .3s, border-color .3s, box-shadow .4s var(--ease);
  overflow: hidden;
}
.btn__icon { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.btn:hover .btn__icon { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.btn--primary {
  --btn-bg: var(--ice); --btn-fg: var(--ink-0); --btn-bd: transparent;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .15) inset, 0 10px 40px -10px rgba(197, 210, 235, .55), 0 0 60px -20px rgba(96, 165, 250, .6);
}
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), rgba(147, 197, 253, .55), transparent 70%);
  opacity: 0; transition: opacity .3s;
}
.btn--primary:hover::before { opacity: 1; }
.btn--primary:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset, 0 16px 50px -10px rgba(197, 210, 235, .7), 0 0 80px -16px rgba(96, 165, 250, .8); }
.btn--ghost { --btn-bg: rgba(15, 21, 30, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--ghost:hover { --btn-bd: var(--brand-deep); --btn-bg: rgba(32, 43, 63, .6); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn--sm .btn__icon { width: 16px; height: 16px; }

.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(17, 25, 37, .6); color: var(--text-2);
  font: 500 13px/1 var(--font-body); transition: all .25s var(--ease); white-space: nowrap;
}
.chip:hover { border-color: var(--brand-deep); color: var(--ice); }
.chip[aria-pressed="true"], .chip.is-active { background: var(--ice); color: var(--ink-0); border-color: transparent; }
.chip__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dot, var(--signal)); box-shadow: 0 0 10px var(--dot, var(--signal)); }

.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 6px;
  font: 600 10.5px/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--line-3); color: var(--brand); background: rgba(32, 43, 63, .5);
}
.badge--live { color: var(--signal-2); border-color: rgba(96, 165, 250, .4); }
.badge--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 8px var(--signal); animation: pulse 1.8s ease-in-out infinite; }
.badge--warn { color: var(--amber); border-color: rgba(251, 191, 36, .35); background: rgba(251, 191, 36, .08); }
.badge--flare { color: #fca5a5; border-color: rgba(248, 113, 113, .35); background: rgba(248, 113, 113, .08); }
@keyframes pulse { 50% { opacity: .35; transform: scale(.8); } }

/* --------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------ */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 80; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(7, 9, 13, .62); border-bottom-color: rgba(38, 54, 75, .5);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
.site-header__inner { display: flex; align-items: center; gap: 24px; width: min(100% - 2 * var(--gutter), 1440px); margin-inline: auto; }
.site-header .wordmark { font-size: 19px; }
.nav { margin-inline: auto; }
/* Plain links, no container: the current page gets brighter text and a
   short accent rule. */
.nav__list { display: flex; gap: clamp(20px, 2.6vw, 36px); margin: 0; padding: 0; list-style: none; }
.nav__list a { position: relative; display: block; padding: 8px 0; font-size: 14.5px; font-weight: 500; color: var(--text-2); transition: color .2s; }
.nav__list a::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 16px; height: 2px; border-radius: 2px; background: var(--signal-2, #60a5fa); transform: translateX(-50%) scaleX(0); transition: transform .25s var(--ease); }
.nav__list a:hover { color: var(--ice); }
.nav__list .current-menu-item > a, .nav__list a[aria-current="page"] { color: var(--ice); }
.nav__list .current-menu-item > a::after, .nav__list a[aria-current="page"]::after { transform: translateX(-50%) scaleX(1); }
.site-header__actions { display: flex; align-items: center; gap: 10px; }
.sound-toggle, .menu-toggle {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: transparent; color: var(--brand-muted); transition: color .2s, background .2s;
}
.sound-toggle:hover, .menu-toggle:hover { color: var(--ice); background: rgba(255, 255, 255, .06); }
.sound-toggle .icon, .menu-toggle .icon { width: 18px; height: 18px; }
.sound-toggle .icon--on { display: none; }
.sound-toggle[aria-pressed="true"] .icon--on { display: block; }
.sound-toggle[aria-pressed="true"] .icon--off { display: none; }
.sound-toggle[aria-pressed="true"] { color: var(--signal-2); }
.menu-toggle { display: none; }
.signin-link { font-size: 14px; font-weight: 500; color: var(--text-2); padding: 0 8px; }
.signin-link:hover { color: var(--ice); }

@media (max-width: 900px) {
  .nav, .signin-link { display: none; }
  .menu-toggle { display: inline-grid; }
  .site-header__actions { margin-left: auto; }
  .site-header__actions .btn { display: none; }
}

.mobile-menu {
  position: fixed; inset: 0; z-index: 85; display: grid; align-content: center; gap: 28px; padding: 32px var(--gutter);
  background: rgba(5, 7, 11, .94); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu .nav__list { flex-direction: column; border: 0; background: none; backdrop-filter: none; gap: 6px; }
.mobile-menu .nav__list a { font: 600 clamp(1.6rem, 7vw, 2.4rem)/1.2 var(--font-display); padding: 6px 0; background: none !important; }
.mobile-menu__close { position: absolute; top: 16px; right: var(--gutter); }

/* --------------------------------------------------------------------------
   The WebGL stage
   ------------------------------------------------------------------------ */

.stage { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.stage canvas { width: 100% !important; height: 100% !important; }
.stage.is-interactive { pointer-events: auto; }
.stage__fallback {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 70% 40%, rgba(85, 107, 146, .35), transparent 70%),
    radial-gradient(40% 40% at 20% 70%, rgba(96, 165, 250, .12), transparent 70%),
    var(--ink-0);
}
.js .stage.is-ready .stage__fallback { opacity: 0; transition: opacity 1.2s; }
.stage-veil { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(7, 9, 13, 0) 0%, rgba(7, 9, 13, .0) 60%, rgba(7, 9, 13, .7) 100%); }

main { position: relative; z-index: 2; }

/* --------------------------------------------------------------------------
   Sections
   ------------------------------------------------------------------------ */

.section { position: relative; padding-block: clamp(96px, 14vw, 180px); }
.section--tight { padding-block: clamp(64px, 9vw, 120px); }
.section__head { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 72px); }
.section__head--center { justify-items: center; text-align: center; }
.section__head--center .lede { margin-inline: auto; }
.section--solid { background: var(--ink-0); }
.section--fade { background: linear-gradient(180deg, transparent, var(--ink-0) 18%, var(--ink-0) 82%, transparent); }

.hairline { height: 1px; border: 0; margin: 0; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }

/* Reveal on scroll. Content is visible without JS. */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--delay, 0s); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="scale"] { transform: scale(.96); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .split-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.js .split-line > span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: var(--delay, 0s); }
.js .is-in .split-line > span, .js .split-line.is-in > span { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js .split-line > span { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* --------------------------------------------------------------------------
   Glass panels & the app-window frame used by every demo
   ------------------------------------------------------------------------ */

.panel {
  position: relative; border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17, 25, 37, .78), rgba(11, 15, 21, .78));
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 30px 80px -30px rgba(0, 0, 0, .8);
}
.spotlight::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(197, 210, 235, .14), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.spotlight:hover::after { opacity: 1; }
.spotlight::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(147, 197, 253, .55), transparent 50%);
  -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 .4s;
}
.spotlight:hover::before { opacity: 1; }

.appwin {
  --aw-bg: #15181c;
  position: relative; border-radius: 16px; overflow: hidden; border: 1px solid #2c3238;
  background: var(--aw-bg); color: var(--text); font-size: 14px; line-height: 1.5;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 40px 100px -30px rgba(0, 0, 0, .9), 0 0 120px -40px rgba(96, 165, 250, .25);
}
.appwin__bar { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 14px; background: #171a1e; border-bottom: 1px solid #2c3238; }
.appwin__dots { display: flex; gap: 6px; }
.appwin__dots i { width: 10px; height: 10px; border-radius: 50%; background: #2c3238; }
.appwin__title { font: 500 12.5px/1 var(--font-body); color: var(--muted); display: flex; align-items: center; gap: 8px; min-width: 0; }
.appwin__title strong { color: var(--text-2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appwin__tabs { display: flex; gap: 2px; margin-left: auto; padding: 3px; border-radius: 9px; background: #121416; border: 1px solid #2c3238; }
.appwin__tabs span { padding: 5px 11px; border-radius: 6px; font-size: 12px; color: var(--muted); }
.appwin__tabs span.is-on { background: #202b3f; color: var(--brand-strong, #e5ecf8); }
.appwin__body { position: relative; min-height: 380px; }

@media (max-width: 640px) { .appwin__tabs { display: none; } }

/* --------------------------------------------------------------------------
   Home: hero
   ------------------------------------------------------------------------ */

.hero { position: relative; min-height: 100svh; display: grid; align-items: end; padding: calc(var(--header-h) + 40px) 0 clamp(40px, 7vh, 80px); }
.hero__inner { display: grid; gap: 28px; }
.hero__title { max-width: 14ch; }
.hero__sub { max-width: 58ch; }
.hero__row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; font: 500 12px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.hero__meta b { color: var(--brand); font-weight: 600; }
.hero__scroll { position: absolute; right: var(--gutter); bottom: clamp(40px, 7vh, 80px); display: grid; justify-items: center; gap: 12px; font: 500 11px/1 var(--font-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--faint); writing-mode: vertical-rl; }
.hero__scroll::after { content: ""; width: 1px; height: 64px; background: linear-gradient(var(--brand-muted), transparent); animation: drip 2.4s var(--ease) infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 700px) { .hero__scroll { display: none; } }

/* Domain probe — the hero's "map my site" field */
.probe {
  position: relative; display: flex; align-items: center; gap: 6px; width: min(100%, 520px); padding: 6px 6px 6px 18px;
  border-radius: 999px; border: 1px solid var(--line-3); background: rgba(11, 15, 21, .7);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: border-color .3s, box-shadow .3s;
}
.probe:focus-within { border-color: var(--brand-muted); box-shadow: 0 0 0 4px rgba(96, 165, 250, .12), 0 0 60px -20px rgba(96, 165, 250, .6); }
.probe .icon { width: 18px; height: 18px; color: var(--brand-muted); flex: none; }
.probe input { flex: 1; min-width: 0; height: 44px; border: 0; background: none; outline: none; font-size: 16px; color: var(--ice); }
.probe input::placeholder { color: var(--faint); }
.probe .btn { min-height: 44px; }
.probe__status { position: absolute; left: 20px; top: calc(100% + 10px); font: 500 12px/1.4 var(--font-mono); color: var(--brand-muted); letter-spacing: .04em; }
.probe__status.is-error { color: #fca5a5; }

/* Atlas HUD (hero + showcase) */
.hud { position: absolute; z-index: 3; display: grid; gap: 8px; font: 500 11.5px/1.3 var(--font-mono); letter-spacing: .06em; color: var(--brand-muted); pointer-events: none; }
.hud--tr { top: calc(var(--header-h) + 24px); right: var(--gutter); text-align: right; }
.hud__row { display: flex; gap: 10px; justify-content: flex-end; align-items: baseline; }
.hud__row b { font: 600 20px/1 var(--font-display); color: var(--ice); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
@media (max-width: 800px) { .hud--tr { display: none; } }

.tooltip3d {
  position: fixed; z-index: 70; pointer-events: none; min-width: 180px; max-width: 280px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line-3); background: rgba(9, 13, 20, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .8); font-size: 13px; line-height: 1.45; color: var(--text-2);
  opacity: 0; transform: translate(-50%, calc(-100% - 18px)) scale(.96); transition: opacity .18s, transform .18s var(--ease);
}
.tooltip3d.is-on { opacity: 1; transform: translate(-50%, calc(-100% - 18px)); }
.tooltip3d__title { font: 600 13.5px/1.3 var(--font-body); color: var(--ice); margin-bottom: 6px; }
.tooltip3d__grid { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; font: 500 11.5px/1.4 var(--font-mono); }
.tooltip3d__grid dt { color: var(--faint); }
.tooltip3d__grid dd { margin: 0; color: var(--brand); text-align: right; font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   Home: the journey (sticky, scroll-driven)
   ------------------------------------------------------------------------ */

.journey { position: relative; }
.journey__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.journey__steps { display: grid; }
.jstep { min-height: 78vh; display: grid; align-content: center; gap: 18px; padding-block: 8vh; opacity: .28; transition: opacity .6s var(--ease); }
.jstep.is-active { opacity: 1; }
.jstep__num { font: 500 12px/1 var(--font-mono); letter-spacing: .16em; color: var(--signal-2); text-transform: uppercase; display: flex; gap: 12px; align-items: center; }
.jstep__num::after { content: ""; flex: 0 0 40px; height: 1px; background: var(--line-3); }
.jstep h3 { font-size: clamp(1.7rem, 3.2vw, 2.7rem); }
.jstep p { color: var(--text-2); max-width: 46ch; }
.jstep__link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--brand); width: max-content; }
.jstep__link .icon { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.jstep__link:hover .icon { transform: translateX(4px); }
.jstep__facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.journey__screen { position: sticky; top: calc(var(--header-h) + 5vh); height: calc(100vh - var(--header-h) - 10vh); display: grid; align-items: center; }
.journey__screen .appwin { height: min(620px, 100%); display: grid; grid-template-rows: auto 1fr; }
.journey__screen .appwin__body { min-height: 0; overflow: hidden; }
.journey__progress { position: absolute; left: -28px; top: 10%; bottom: 10%; width: 2px; border-radius: 2px; background: var(--line); }
.journey__progress i { position: absolute; inset: 0 0 auto; height: var(--p, 0%); border-radius: inherit; background: linear-gradient(var(--ice), var(--brand) 45%, var(--brand-deep)); box-shadow: 0 0 12px rgba(197, 210, 235, .45); }
.jscene { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: translateY(14px) scale(.985); transition: opacity .55s var(--ease), transform .7s var(--ease), visibility .55s; }
.jscene.is-active { opacity: 1; visibility: visible; transform: none; }

@media (max-width: 960px) {
  .journey__grid { grid-template-columns: 1fr; }
  .journey__screen { position: relative; top: 0; height: auto; order: -1; display: none; }
  .jstep { min-height: auto; opacity: 1; padding-block: 28px; }
  .jstep__demo { display: block !important; margin-top: 12px; }
}
.jstep__demo { display: none; }
.jstep__demo .appwin__body { min-height: 360px; }

/* --------------------------------------------------------------------------
   Home: Atlas showcase
   ------------------------------------------------------------------------ */

.atlas-show { position: relative; }
.atlas-show__frame { position: relative; height: min(84vh, 820px); min-height: 520px; border-radius: 28px; overflow: hidden; border: 1px solid var(--line-2); background: radial-gradient(120% 90% at 50% 20%, #0e1624, #06080c 70%); box-shadow: 0 60px 160px -60px rgba(96, 165, 250, .35); }
.atlas-show__canvas { position: absolute; inset: 0; cursor: grab; touch-action: none; }
.atlas-show__canvas:active { cursor: grabbing; }
.atlas-show__ui { position: absolute; inset: 0; pointer-events: none; display: grid; grid-template-rows: auto 1fr auto; padding: 18px; gap: 12px; }
.atlas-show__ui > * { pointer-events: auto; }
.atlas-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.atlas-bar__group { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 14px; background: rgba(9, 13, 20, .72); border: 1px solid var(--line-2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.lens-btn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 9px; font: 500 12.5px/1 var(--font-body); color: var(--muted); transition: all .2s; }
.lens-btn:hover { color: var(--ice); background: rgba(32, 43, 63, .7); }
.lens-btn[aria-pressed="true"] { background: #202b3f; color: var(--ice); box-shadow: 0 0 0 1px var(--brand-deep) inset; }
.lens-btn .icon { width: 15px; height: 15px; }
.atlas-legend { justify-self: start; align-self: end; display: grid; gap: 8px; min-width: 220px; max-width: 320px; padding: 14px 16px; border-radius: 14px; background: rgba(9, 13, 20, .78); border: 1px solid var(--line-2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 12.5px; color: var(--text-2); }
.atlas-legend__title { font: 600 12px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.atlas-legend__scale { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--l0, #1e3a5f), var(--l1, #60a5fa), var(--l2, #e5ecf8)); }
.atlas-legend__ends { display: flex; justify-content: space-between; font: 500 11px/1 var(--font-mono); color: var(--faint); }
.atlas-foot { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.atlas-hint { font: 500 11.5px/1.4 var(--font-mono); color: var(--faint); letter-spacing: .04em; text-align: right; }
.atlas-cam { display: flex; gap: 6px; }
.atlas-cam button { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: rgba(9, 13, 20, .78); border: 1px solid var(--line-2); color: var(--brand-muted); }
.atlas-cam button:hover { color: var(--ice); border-color: var(--brand-deep); }
.atlas-cam .icon { width: 16px; height: 16px; }
@media (max-width: 700px) { .atlas-legend { display: none; } }

/* --------------------------------------------------------------------------
   Bento / feature grids
   ------------------------------------------------------------------------ */

.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.bento > * { grid-column: span 12; }
@media (min-width: 900px) {
  .bento .span-4 { grid-column: span 4; }
  .bento .span-5 { grid-column: span 5; }
  .bento .span-6 { grid-column: span 6; }
  .bento .span-7 { grid-column: span 7; }
  .bento .span-8 { grid-column: span 8; }
}
.tile { position: relative; overflow: hidden; padding: clamp(22px, 3vw, 34px); display: grid; align-content: start; gap: 14px; min-height: 280px; }
.tile h3 { font-size: clamp(1.2rem, 1.8vw, 1.55rem); }
.tile p { color: var(--text-2); font-size: 15.5px; }
.tile__visual { margin-top: auto; }

/* Numbers pulled straight from the product's code, never marketing math. */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.fact { padding: 26px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.fact__n { font: 600 clamp(2rem, 3.6vw, 3rem)/1 var(--font-display); letter-spacing: -.04em; color: var(--ice); font-variant-numeric: tabular-nums; }
.fact__l { font-size: 14px; color: var(--muted); line-height: 1.45; }

/* --------------------------------------------------------------------------
   Tool cards (list page + teasers)
   ------------------------------------------------------------------------ */

.tool-card {
  --accent: var(--brand);
  position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: 14px; padding: 24px; min-height: 250px;
  border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(17, 25, 37, .8), rgba(9, 13, 20, .8));
  transition: transform .5s var(--ease), border-color .3s, box-shadow .5s var(--ease);
  isolation: isolate; overflow: hidden;
}
.tool-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--accent) 45%, transparent); }
.tool-card__glow { position: absolute; inset: auto -30% -60% auto; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 40%, transparent), transparent 65%); opacity: .35; z-index: -1; transition: opacity .5s, transform .8s var(--ease); }
.tool-card:hover .tool-card__glow { opacity: .8; transform: translate(-20px, -30px) scale(1.2); }
.tool-card__icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.tool-card__icon .icon { width: 22px; height: 22px; }
.tool-card__stage { font: 500 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.tool-card h3 { font-size: 1.22rem; line-height: 1.2; }
.tool-card p { font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.tool-card__go { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--text-2); }
.tool-card__go .icon { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.tool-card:hover .tool-card__go .icon { transform: translateX(4px); color: var(--accent); }
.tool-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }

.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }

.marquee { position: relative; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 16px; width: max-content; animation: marquee var(--dur, 70s) linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee .tool-card { width: 300px; flex: none; }
@keyframes marquee { to { transform: translateX(calc(-50% - 8px)); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } .marquee { overflow-x: auto; } }

/* --------------------------------------------------------------------------
   Tools page
   ------------------------------------------------------------------------ */

.tools-hero { position: relative; min-height: 92svh; display: grid; align-items: end; padding: calc(var(--header-h) + 40px) 0 48px; }
.tools-hero__inner { display: grid; gap: 22px; max-width: 720px; position: relative; z-index: 2; }
.tools-hero__canvas { position: absolute; inset: 0; z-index: 1; touch-action: pan-y; }
.tools-hero__canvas.is-hovering { cursor: pointer; }
.constellation-label {
  position: absolute; z-index: 3; pointer-events: none; transform: translate(-50%, -50%);
  font: 500 10.5px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brand-muted); white-space: nowrap;
  text-shadow: 0 0 10px #000;
}

.toolbar { position: sticky; top: var(--header-h); z-index: 20; padding-block: 14px; background: linear-gradient(180deg, rgba(7, 9, 13, .92) 70%, rgba(7, 9, 13, 0)); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.toolbar__inner { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.toolbar__chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.toolbar__chips::-webkit-scrollbar { display: none; }
.search {
  display: flex; align-items: center; gap: 8px; min-width: min(100%, 260px); height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(11, 15, 21, .7);
}
.search:focus-within { border-color: var(--brand-muted); }
.search .icon { width: 16px; height: 16px; color: var(--faint); }
.search input { border: 0; outline: 0; background: none; height: 100%; flex: 1; min-width: 0; font-size: 14px; }
.search kbd { font: 500 11px/1 var(--font-mono); color: var(--faint); border: 1px solid var(--line-2); border-radius: 5px; padding: 3px 6px; }

.stage-block { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(20px, 4vw, 56px); padding-block: 56px; border-top: 1px solid var(--line); }
.stage-block[hidden] { display: none; }
.stage-block__head { position: sticky; top: calc(var(--header-h) + 90px); align-self: start; display: grid; gap: 12px; }
.stage-block__num { font: 600 64px/1 var(--font-display); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1px var(--line-3); }
.stage-block__name { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.stage-block__line { font-size: 14.5px; color: var(--muted); }
@media (max-width: 860px) { .stage-block { grid-template-columns: 1fr; } .stage-block__head { position: static; } .stage-block__num { font-size: 44px; } }
.tool-card[hidden] { display: none; }
.empty-state { padding: 60px 0; text-align: center; color: var(--muted); }

/* --------------------------------------------------------------------------
   Tool detail
   ------------------------------------------------------------------------ */

.tool-hero { --accent: var(--brand); position: relative; min-height: 88svh; display: grid; align-items: center; padding: calc(var(--header-h) + 48px) 0 64px; overflow: hidden; }
.tool-hero__canvas { position: absolute; inset: 0; z-index: 0; }
.tool-hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: center; }
.tool-hero__copy { display: grid; gap: 24px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 500 12px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.crumbs a:hover { color: var(--ice); }
.crumbs .sep { opacity: .4; }
.tool-hero__title { font-size: clamp(2.5rem, 6.2vw, 5.4rem); letter-spacing: -.035em; line-height: 1; }
.tool-hero__title .accent { color: var(--accent); text-shadow: 0 0 40px color-mix(in srgb, var(--accent) 50%, transparent); }
.tool-hero__badges { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-hero__side { display: grid; gap: 12px; justify-items: end; }
.tool-emblem { width: 120px; height: 120px; border-radius: 30px; display: grid; place-items: center; color: var(--accent); background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 30%, transparent), rgba(9, 13, 20, .6) 70%); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); box-shadow: 0 0 80px -10px color-mix(in srgb, var(--accent) 50%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.tool-emblem .icon { width: 54px; height: 54px; stroke-width: 1.2; }
@media (max-width: 860px) { .tool-hero__grid { grid-template-columns: 1fr; } .tool-hero__side { justify-items: start; order: -1; } .tool-emblem { width: 76px; height: 76px; border-radius: 20px; } .tool-emblem .icon { width: 34px; height: 34px; } }

.demo-section { position: relative; }
.demo-stage { position: relative; }
.demo-stage::before { content: ""; position: absolute; inset: 10% 8% -8%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent, #60a5fa) 26%, transparent), transparent); filter: blur(40px); }
.demo-caption { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.demo-caption .icon { width: 16px; height: 16px; display: inline-block; vertical-align: -3px; margin-right: 6px; }

.prose { font-size: 18px; line-height: 1.75; color: var(--text-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-top: 2em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.6em; }
.prose a { color: var(--signal-2); text-decoration: underline; text-decoration-color: rgba(147, 197, 253, .35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { color: var(--ice); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--brand-deep); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--signal); font-family: var(--font-display); font-size: 1.25rem; line-height: 1.45; color: var(--ice); }
.prose code { font: 500 .88em var(--font-mono); padding: .15em .4em; border-radius: 6px; background: rgba(32, 43, 63, .7); color: var(--brand); }
.prose figure { margin: 2em 0; }
.prose img { border-radius: 14px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { font: 600 12px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--brand-muted); }

.steps { display: grid; gap: 0; counter-reset: step; position: relative; }
.step { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; padding-bottom: 36px; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; font: 600 15px/1 var(--font-mono); color: var(--accent, var(--signal-2)); border: 1px solid var(--line-3); background: rgba(17, 25, 37, .9); position: relative; z-index: 1; }
.step::after { content: ""; position: absolute; left: 26px; top: 56px; bottom: 0; width: 1px; background: linear-gradient(var(--line-3), transparent); }
.step:last-child::after { display: none; }
.step h3 { font-size: 1.2rem; margin: 12px 0 8px; }
.step p { color: var(--text-2); font-size: 16px; }

.outputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.output { display: flex; gap: 12px; align-items: flex-start; padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(17, 25, 37, .5); font-size: 15px; color: var(--text-2); }
.output .icon { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--accent, var(--signal)); }

.specs { display: grid; border-top: 1px solid var(--line); }
.spec { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.spec dt { font: 500 12.5px/1.5 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.spec dd { margin: 0; color: var(--text); font-size: 15.5px; }
@media (max-width: 640px) { .spec { grid-template-columns: 1fr; gap: 6px; } }

.two-col { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.two-col__sticky { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; display: grid; gap: 18px; }
@media (max-width: 900px) { .two-col__sticky { position: static; } }

/* Pipeline ribbon: where this tool sits in the loop */
.pipeline { display: grid; gap: 22px; }
.pipeline__track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.pipeline__stage { display: grid; gap: 10px; padding: 14px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(11, 15, 21, .6); font-size: 13px; color: var(--muted); transition: all .3s; min-width: 0; }
.pipeline__stage b { font: 600 11px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.pipeline__stage span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pipeline__stage.is-current { border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: color-mix(in srgb, var(--accent) 10%, rgba(11, 15, 21, .8)); color: var(--ice); box-shadow: 0 0 40px -12px color-mix(in srgb, var(--accent) 60%, transparent); }
.pipeline__stage.is-current b { color: var(--accent); }
.pipeline__stage:hover { border-color: var(--line-3); color: var(--text); }
@media (max-width: 760px) { .pipeline__track { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pager a { display: grid; gap: 8px; padding: 28px; border-radius: 20px; border: 1px solid var(--line); background: rgba(11, 15, 21, .6); transition: all .4s var(--ease); }
.pager a:hover { border-color: var(--line-3); transform: translateY(-3px); }
.pager small { font: 500 11.5px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.pager strong { font: 600 clamp(1.1rem, 2vw, 1.5rem)/1.2 var(--font-display); color: var(--ice); letter-spacing: -.02em; }
.pager .next { text-align: right; }
@media (max-width: 640px) { .pager { grid-template-columns: 1fr; } .pager .next { text-align: left; } }

/* --------------------------------------------------------------------------
   CTA + footer
   ------------------------------------------------------------------------ */

.cta { position: relative; overflow: hidden; padding: clamp(72px, 10vw, 140px) clamp(24px, 5vw, 80px); border-radius: 32px; border: 1px solid var(--line-2); text-align: center; display: grid; justify-items: center; gap: 26px; background: radial-gradient(80% 120% at 50% 110%, rgba(96, 165, 250, .28), transparent 60%), radial-gradient(60% 80% at 50% -20%, rgba(197, 210, 235, .1), transparent 60%), var(--ink-1); }
.cta__canvas { position: absolute; inset: 0; z-index: 0; opacity: .9; }
.cta > *:not(.cta__canvas) { position: relative; z-index: 1; }
.cta .wordmark { font-size: clamp(2.6rem, 9vw, 7.5rem); text-shadow: 0 0 60px rgba(229, 236, 248, .45); }

.site-footer { position: relative; z-index: 2; padding: 72px 0 40px; border-top: 1px solid var(--line); background: var(--void); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 32px; }
.site-footer h4 { font: 600 12px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; color: var(--text-2); }
.site-footer a:hover { color: var(--ice); }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }

/* Generic page / post / 404 */
.page-hero { padding: calc(var(--header-h) + 96px) 0 48px; display: grid; gap: 18px; }
.entry { padding-bottom: 120px; }
.error-404 { min-height: 100svh; display: grid; place-items: center; text-align: center; }
.error-404 .display-xl { font-size: clamp(5rem, 22vw, 16rem); }

/* --------------------------------------------------------------------------
   Demo primitives (shared by every interactive module)
   ------------------------------------------------------------------------ */

.demo { position: relative; height: 100%; display: grid; font-size: 13.5px; }
.demo button { cursor: pointer; }
.d-pad { padding: 18px; }
.d-row { display: flex; align-items: center; gap: 10px; }
.d-col { display: grid; gap: 10px; align-content: start; }
.d-label { font: 600 10.5px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.d-input { flex: 1; min-width: 0; height: 38px; padding: 0 12px; border-radius: 9px; border: 1px solid #33445d; background: #0c131d; color: var(--ice); outline: none; font-size: 13.5px; }
.d-input:focus { border-color: var(--brand-muted); box-shadow: 0 0 0 3px rgba(96, 165, 250, .15); }
.d-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 9px; background: #c5d2eb; color: #111722; font-weight: 600; font-size: 13px; white-space: nowrap; transition: filter .2s, transform .2s; }
.d-btn:hover { filter: brightness(1.08); }
.d-btn:active { transform: scale(.97); }
.d-btn:disabled { opacity: .5; cursor: default; }
.d-btn--ghost { background: #202b3f; color: #e5ecf8; border: 1px solid #5b7092; }
.d-btn .icon { width: 15px; height: 15px; }
.d-card { border-radius: 12px; border: 1px solid #2c3238; background: #171a1e; }
.d-muted { color: var(--muted); }
.d-mono { font-family: var(--font-mono); font-size: 12px; }
.d-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font: 600 11px/1.3 var(--font-body); background: #202b3f; color: #c5d2eb; border: 1px solid #33445d; white-space: nowrap; }
.d-pill--blue { background: rgba(96, 165, 250, .12); color: #93c5fd; border-color: rgba(96, 165, 250, .35); }
.d-pill--amber { background: rgba(251, 191, 36, .1); color: #fcd34d; border-color: rgba(251, 191, 36, .35); }
.d-pill--red { background: rgba(248, 113, 113, .1); color: #fca5a5; border-color: rgba(248, 113, 113, .35); }
.d-pill--violet { background: rgba(197, 210, 235, .1); color: #c5d2eb; border-color: rgba(197, 210, 235, .3); }
.d-bar { height: 6px; border-radius: 3px; background: #202b3f; overflow: hidden; }
.d-bar > i { display: block; height: 100%; width: var(--w, 0%); border-radius: inherit; background: linear-gradient(90deg, #556b92, #60a5fa); transition: width .9s var(--ease); }
.d-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
.d-table th { position: sticky; top: 0; z-index: 1; padding: 9px 10px; text-align: left; font: 600 10.5px/1.2 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); background: #171a1e; border-bottom: 1px solid #2c3238; white-space: nowrap; }
.d-table td { padding: 9px 10px; border-bottom: 1px solid #202428; color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.d-table tr { transition: background .3s, opacity .4s, transform .5s var(--ease); }
.d-table tbody tr:hover { background: #1b1f24; }
.d-table .num { text-align: right; }
.d-scroll { overflow: auto; scrollbar-width: thin; scrollbar-color: #33445d transparent; }
.d-log { font: 500 12px/1.7 var(--font-mono); color: var(--muted); }
.d-log .ok { color: #93c5fd; }
.d-log .warn { color: #fcd34d; }
.d-log .bad { color: #fca5a5; }
.d-typing::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -.15em; background: #e5ecf8; animation: caret 1s steps(1) infinite; }
.d-fade-in { animation: dfade .5s var(--ease) both; }
@keyframes dfade { from { opacity: 0; transform: translateY(8px); } }
.d-shimmer { background: linear-gradient(90deg, #1b2230 0%, #26324a 40%, #1b2230 80%); background-size: 200% 100%; animation: dshim 1.4s linear infinite; border-radius: 6px; }
@keyframes dshim { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.d-hl { background: rgba(96, 165, 250, .18); box-shadow: 0 0 0 1px rgba(96, 165, 250, .5); border-radius: 3px; transition: background .4s; }
.d-hl--amber { background: rgba(251, 191, 36, .14); box-shadow: 0 -2px 0 rgba(251, 191, 36, .8) inset; border-radius: 0; }
.d-hl--red { background: rgba(248, 113, 113, .12); box-shadow: 0 -2px 0 rgba(248, 113, 113, .8) inset; border-radius: 0; }
.d-hl--new { background: rgba(96, 165, 250, .16); box-shadow: 0 -2px 0 rgba(96, 165, 250, .9) inset; border-radius: 0; }
.d-doc { font: 400 14px/1.7 var(--font-body); color: #c4cbd2; }
.d-doc h4 { font: 600 17px/1.3 var(--font-body); color: #e5ecf8; letter-spacing: -.01em; margin: 0 0 8px; }
.d-doc h5 { font: 600 14.5px/1.3 var(--font-body); color: #e5ecf8; margin: 14px 0 6px; }
.d-doc p { margin: 0 0 10px; }
.d-doc a { color: #93c5fd; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(147, 197, 253, .4); }
.d-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 700px) { .d-split { grid-template-columns: 1fr; } }
.d-side { border-left: 1px solid #2c3238; background: #13161a; }
.d-steps { display: grid; gap: 4px; }
.d-step { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; color: var(--muted); font-size: 12.5px; transition: all .3s; }
.d-step__dot { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid #33445d; justify-self: center; transition: all .3s; }
.d-step.is-run { color: var(--ice); background: #1b2230; }
.d-step.is-run .d-step__dot { border-color: #60a5fa; border-top-color: transparent; animation: spin .8s linear infinite; }
.d-step.is-done { color: var(--text-2); }
.d-step.is-done .d-step__dot { background: #60a5fa; border-color: #60a5fa; box-shadow: 0 0 10px rgba(96, 165, 250, .6); }
.d-step.is-skip { opacity: .45; text-decoration: line-through; }
@keyframes spin { to { transform: rotate(360deg); } }
.d-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.d-toast { position: absolute; left: 50%; bottom: 16px; transform: translate(-50%, 20px); opacity: 0; padding: 9px 14px; border-radius: 10px; background: #202b3f; border: 1px solid #5b7092; color: #e5ecf8; font-size: 12.5px; font-weight: 500; transition: all .4s var(--ease); white-space: nowrap; z-index: 5; }
.d-toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.d-replay { position: absolute; top: 10px; right: 10px; z-index: 6; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px; font-size: 11.5px; color: var(--muted); border: 1px solid #2c3238; background: rgba(21, 24, 28, .9); }
.d-replay:hover { color: var(--ice); border-color: #5b7092; }
.d-replay .icon { width: 13px; height: 13px; }

/* Block editor alignment helpers for WP content */
.alignwide { width: min(100vw - 2 * var(--gutter), 1100px); margin-inline: calc(50% - min(50vw - var(--gutter), 550px)); }
.alignfull { width: 100vw; margin-inline: calc(50% - 50vw); }
.wp-block-image figcaption, .wp-caption-text { font-size: 13px; color: var(--muted); text-align: center; margin-top: 8px; }

/* Atlas overlay labels (projected each frame) */
.atlas-label { position: absolute; left: 0; top: 0; display: grid; justify-items: center; gap: 2px; white-space: nowrap; opacity: 0; will-change: transform, opacity; text-shadow: 0 0 12px #000, 0 0 4px #000; }
.atlas-label b { font: 600 10.5px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ice); }
.atlas-label span { font: 500 10px/1 var(--font-mono); letter-spacing: .04em; color: var(--brand-muted); }
.atlas-label--core b { font-size: 12px; color: #fff; }
.atlas-label--hub { cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.atlas-label--hub:hover b { color: var(--signal-2); }
.stage .atlas-label--hub span { display: none; }
.mobile-menu[hidden] { display: none; }

/* Hero scrim: the headline owns the left, the world the right. */
.hero::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(90deg, rgba(7, 9, 13, .92) 0%, rgba(7, 9, 13, .72) 32%, rgba(7, 9, 13, .1) 62%, transparent 75%), linear-gradient(0deg, rgba(7, 9, 13, .9), transparent 30%); }
.hero > * { position: relative; z-index: 1; }
.hero > .hud, .hero > .hero__scroll { position: absolute; }
@media (max-width: 900px) { .hero::before { background: linear-gradient(0deg, rgba(7, 9, 13, .96) 10%, rgba(7, 9, 13, .55) 60%, rgba(7, 9, 13, .2)); } }
.stage > div:not(.stage__fallback) { opacity: .75; }
.stage .atlas-label b { font-size: 10px; color: var(--brand); }

/* WordPress admin bar */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.hud--tr { padding: 14px 16px; border-radius: 14px; background: rgba(7, 9, 13, .55); border: 1px solid rgba(38, 54, 75, .5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* Demo layouts respond to their own width, not the viewport. */
.appwin__body { container-type: inline-size; }
.d-2col { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); height: 100%; min-height: 420px; }
.d-2col--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.d-2col--rev { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
@container (max-width: 680px) {
  .d-2col, .d-2col--even, .d-2col--rev { grid-template-columns: 1fr; min-height: 0; }
  .d-2col > .d-side { border-left: 0; border-top: 1px solid #2c3238; max-height: 260px; }
  .d-hide-narrow { display: none !important; }
}
.d-replay { top: auto; bottom: 10px; }
.demo input[type="checkbox"], .demo input[type="radio"] { accent-color: #60a5fa; width: 15px; height: 15px; margin-top: 2px; flex: none; }
.demo input[type="range"] { accent-color: #93c5fd; width: 100%; }
.tool-hero__title .accent { text-shadow: none; background: linear-gradient(100deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #fff)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.split-line .accent { padding-right: .04em; }
.journey::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(7, 9, 13, .9) 0%, rgba(7, 9, 13, .72) 38%, rgba(7, 9, 13, .35) 62%, rgba(7, 9, 13, .5) 100%); }
.journey > .wrap { position: relative; }
.tool-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(7, 9, 13, .9) 0%, rgba(7, 9, 13, .6) 34%, rgba(7, 9, 13, 0) 60%); }
.tool-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; z-index: 1; pointer-events: none; background: linear-gradient(0deg, var(--ink-0), transparent); }
@media (min-width: 861px) { .tool-hero__side { display: none; } .tool-hero__grid { grid-template-columns: minmax(0, 1fr); } .tool-hero__copy { max-width: 780px; } }
@media (max-width: 860px) { .tool-hero::before { background: linear-gradient(0deg, rgba(7, 9, 13, .95) 20%, rgba(7, 9, 13, .6) 70%, rgba(7, 9, 13, .3)); } }
.tools-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 25%; z-index: 1; pointer-events: none; background: linear-gradient(0deg, var(--ink-0), transparent); }
.tools-hero::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(90deg, rgba(7, 9, 13, .85) 0%, rgba(7, 9, 13, .4) 35%, transparent 55%); }
.d-2col--wide { grid-template-columns: minmax(0, 2.5fr) minmax(0, 1fr); }
@container (max-width: 680px) { .d-2col--wide { grid-template-columns: 1fr; } }
.d-replay--bar { position: static; margin-left: auto; height: 26px; }
.appwin__tabs + .d-replay--bar { margin-left: 10px; }
html { overflow-x: clip; }
.tools-hero, .hero, .tool-hero { overflow: clip; }
.facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact__n { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fact { padding: 20px 16px; } }
/* Grid tracks never grow past the viewport because of an input's intrinsic width. */
.hero, .hero__inner, .tools-hero, .tools-hero__inner, .tool-hero__copy { grid-template-columns: minmax(0, 1fr); }
.hero__inner > *, .tools-hero__inner > *, .tool-hero__copy > * { min-width: 0; }
.probe input { width: 0; }

/* --------------------------------------------------------------------------
   Live demos: the real app at desktop size, scaled to fit, never cropped.
   ------------------------------------------------------------------------ */
.live-demo { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid #2c3238; background: #15181c; box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 40px 100px -30px rgba(0, 0, 0, .9), 0 0 120px -40px rgba(96, 165, 250, .25); }
.live-demo__bar { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 14px; background: #171a1e; border-bottom: 1px solid #2c3238; }
.live-demo__dots { display: flex; gap: 6px; }
.live-demo__dots i { width: 10px; height: 10px; border-radius: 50%; background: #2c3238; }
.live-demo__label { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 13px; color: var(--muted); }
.live-demo__label strong { color: var(--text-2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-demo__full { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--brand-muted); white-space: nowrap; }
.live-demo__full:hover { color: var(--ice); }
.live-demo__full .icon { width: 14px; height: 14px; }
.live-demo__viewport { position: relative; overflow: hidden; aspect-ratio: 1440 / 900; background: #15181c; }
.live-demo__viewport iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; background: #15181c; opacity: 0; transition: opacity .5s; }
.live-demo.is-loaded .live-demo__viewport iframe { opacity: 1; }
.live-demo__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.live-demo__open { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; background: var(--ice); color: var(--ink-0); font-weight: 600; font-size: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .6); }
.live-demo__open .icon { width: 16px; height: 16px; }
.live-demo__caption { padding: 10px 14px; font-size: 12.5px; color: var(--muted); border-top: 1px solid #2c3238; background: #13161a; }
@media (max-width: 760px) {
  .live-demo__open { display: inline-flex; }
  .live-demo__viewport iframe { display: none; }
  .live-demo__full span { display: none; }
}
.live-demo--atlas .live-demo__viewport { aspect-ratio: 1440 / 900; }
.journey__screen .live-demo { width: 100%; }
.journey__screen { height: auto; }
.live-full { position: fixed; inset: 0; z-index: 200; background: #15181c; }
.live-full iframe { width: 100%; height: 100%; border: 0; }
.live-full__close { position: absolute; top: 10px; right: 10px; z-index: 2; height: 36px; padding: 0 16px; border-radius: 999px; background: var(--ice); color: var(--ink-0); font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .6); }

/* Tool hero scenes: a hint that the scene is interactive. */
.hero-hint { position: absolute; right: clamp(16px, 4vw, 48px); bottom: 36px; z-index: 3; margin: 0; padding: 8px 14px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); background: rgb(7 9 13 / .72); backdrop-filter: blur(8px); color: var(--text-1, #c9d4e6); font-size: .78rem; letter-spacing: .01em; pointer-events: none; transition: opacity .8s ease, transform .8s ease; }
.hero-hint::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); vertical-align: middle; animation: hero-hint-pulse 1.6s ease-in-out infinite; }
.hero-hint.is-faded { opacity: 0; transform: translateY(6px); }
@keyframes hero-hint-pulse { 50% { opacity: .35; } }
@media (max-width: 860px) { .hero-hint { bottom: 18px; } }
@media (prefers-reduced-motion: reduce) { .hero-hint::before { animation: none; } }
/* Phones: the tool's scene takes the top of the hero (the icon and stage
   badge repeat the breadcrumb), and the shade sits only behind the text. */
@media (max-width: 860px) {
  .tool-hero { align-items: end; padding-bottom: 88px; }
  .tool-hero__side { display: none; }
  .tool-hero::before { background: linear-gradient(0deg, rgba(7, 9, 13, .96) 34%, rgba(7, 9, 13, .6) 56%, rgba(7, 9, 13, 0) 78%); }
}
.is-hero-dragging, .is-hero-dragging * { user-select: none; -webkit-user-select: none; }
