/* CAM marketing site — dark, 3D, system fonts only, no external requests. */

:root {
  color-scheme: dark;

  --bg: #03050b;
  --bg-2: #060a14;
  --surface: rgba(13, 20, 36, .72);
  --surface-solid: #0b1222;
  --surface-2: rgba(20, 30, 52, .7);
  --line: rgba(125, 211, 252, .10);
  --line-2: rgba(125, 211, 252, .22);
  --line-3: rgba(125, 211, 252, .38);

  --text: #eaf1fb;
  --muted: #a3b1c7;
  --dim: #7d8ba3;

  /* The four agent states, as in the product UI */
  --waiting: #f87171;
  --working: #34d399;
  --review: #a78bfa;
  --idle: #60a5fa;
  --amber: #fbbf24;

  --cyan: #22d3ee;
  --cyan-2: #67e8f9;
  --violet: #8b5cf6;
  --accent-grad: linear-gradient(120deg, #22d3ee 0%, #60a5fa 45%, #a78bfa 100%);

  --font: "Inter", "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --mono: "SFMono-Regular", "SF Mono", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;

  --radius: 16px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.i18n-pending body { visibility: hidden; }

img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; }
::selection { background: rgba(34, 211, 238, .35); }

:focus-visible { outline: 2px solid var(--cyan-2); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: #fff; color: #0b1220; padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 12px; }

.container { width: min(1200px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }

.ico { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

code { font-family: var(--mono); font-size: .92em; }

/* status dots */
.d { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--c, var(--idle)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, var(--idle)) 18%, transparent), 0 0 14px var(--c, var(--idle)); }
.s-waiting { --c: var(--waiting); }
.s-working { --c: var(--working); }
.s-review { --c: var(--review); }
.s-idle { --c: var(--idle); }
.dots { display: inline-flex; gap: 5px; }
.dots .d { width: 7px; height: 7px; box-shadow: 0 0 8px var(--c); }
.pulse { animation: pulse 1.8s ease-in-out infinite; animation-delay: var(--pd, 0s); }
@keyframes pulse { 50% { transform: scale(1.35); box-shadow: 0 0 0 7px color-mix(in srgb, var(--c) 0%, transparent), 0 0 20px var(--c); } }

/* page-wide backdrop grid */
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(34, 211, 238, .10), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(139, 92, 246, .10), transparent 60%),
    linear-gradient(rgba(125, 211, 252, .045) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(125, 211, 252, .045) 1px, transparent 1px) 0 0 / 56px 56px,
    var(--bg);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, rgba(0, 0, 0, .35) 80%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, rgba(0, 0, 0, .35) 80%);
}

/* ---------------- header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: linear-gradient(180deg, rgba(3, 5, 11, .82), rgba(3, 5, 11, .55));
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .6), rgba(167, 139, 250, .6), transparent);
  opacity: .5;
}
.nav-inner { width: min(1280px, calc(100% - 2 * var(--gutter))); margin-inline: auto; height: 64px; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { border-radius: 8px; box-shadow: 0 0 18px rgba(34, 211, 238, .35); }
.brand-name { font-weight: 750; letter-spacing: -.01em; font-size: 19px; }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 14px; padding: 8px 12px; border-radius: 8px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: rgba(125, 211, 252, .06); }
.nav-links a[aria-current] { color: var(--text); background: rgba(34, 211, 238, .09); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .2); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(10, 16, 30, .6); }
.seg button { font: inherit; font-size: 12.5px; color: var(--muted); background: none; border: 0; padding: 5px 10px; border-radius: 7px; cursor: pointer; }
.seg button[aria-pressed="true"] { color: #031018; background: var(--accent-grad); font-weight: 700; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(10, 16, 30, .6); color: var(--text); cursor: pointer; }
.icon-btn:hover { border-color: var(--line-3); }
.menu-btn { display: none; }
.menu-btn .ico-shut, .menu-btn[aria-expanded="true"] .ico-open { display: none; }
.menu-btn[aria-expanded="true"] .ico-shut { display: block; }

/* ---------------- buttons ---------------- */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 12px 20px; border-radius: 12px; font-weight: 650; font-size: 15px; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.btn-primary { color: #03121a; background: var(--accent-grad); box-shadow: 0 10px 30px -10px rgba(34, 211, 238, .7), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(34, 211, 238, .9), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn-ghost { color: var(--text); border: 1px solid var(--line-2); background: rgba(12, 20, 36, .55); }
.btn-ghost:hover { border-color: var(--line-3); transform: translateY(-2px); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--cyan-2); text-decoration: none; font-weight: 600; }
.link-arrow:hover .ico { transform: translateX(3px); }
.link-arrow .ico { transition: transform .2s; }

/* ---------------- hero ---------------- */
.hero { position: relative; min-height: min(100svh, 980px); display: flex; align-items: center; padding-block: 72px 110px; isolation: isolate; overflow: hidden; }
.hero-scene { position: absolute; inset: 0; z-index: -2; }
.hero-scene canvas { width: 100% !important; height: 100% !important; display: block; opacity: 0; transition: opacity 1.4s ease; }
.hero-scene.is-live canvas { opacity: 1; }
.hero-scene::before { /* fallback glow if WebGL is unavailable */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(360px 360px at 72% 46%, rgba(34, 211, 238, .22), transparent 70%),
    radial-gradient(520px 420px at 76% 50%, rgba(139, 92, 246, .16), transparent 70%);
}
.hero-scene.is-live::before { opacity: 0; transition: opacity 1.4s; }
.hero-vignette { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3, 5, 11, .94) 0%, rgba(3, 5, 11, .78) 34%, rgba(3, 5, 11, .2) 58%, transparent 70%),
    linear-gradient(0deg, var(--bg) 0%, transparent 22%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; }
.hero-copy { max-width: 640px; min-width: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 22px; padding: 7px 14px 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(8, 14, 28, .6); font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.eyebrow-tag { color: var(--cyan-2); border-left: 1px solid var(--line-2); padding-left: 12px; }
h1 { margin: 0 0 22px; font-size: clamp(40px, 6.4vw, 78px); line-height: 1.02; letter-spacing: -.035em; font-weight: 820; }
h1 span { background: linear-gradient(180deg, #fff 20%, #b9d5ff 70%, #9bb2ff); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 0 60px rgba(96, 165, 250, .15); }
:lang(zh-CN) h1 { font-size: clamp(36px, 5.6vw, 68px); line-height: 1.12; letter-spacing: -.01em; }
.lede { margin: 0 0 26px; font-size: clamp(16px, 1.5vw, 18.5px); color: var(--muted); max-width: 58ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.chips li { font-size: 13px; padding: 5px 11px; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(10, 16, 30, .55); color: var(--text); font-family: var(--mono); }
.chips .chip-plus { color: var(--cyan-2); border-style: dashed; font-family: var(--font); }

.install-box, .cmd { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-radius: 12px; background: rgba(4, 8, 18, .82); border: 1px solid var(--line-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 20px 40px -24px rgba(34, 211, 238, .35); }
.install-box { margin-bottom: 22px; max-width: 640px; }
.install-box::before { content: ""; position: absolute; inset: -1px; border-radius: 13px; padding: 1px; background: linear-gradient(120deg, rgba(34, 211, 238, .7), transparent 40%, transparent 60%, rgba(167, 139, 250, .7)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.prompt { color: var(--working); font-family: var(--mono); font-weight: 700; }
.install-box code, .cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; color: #d6e6ff; scrollbar-width: none; }
.install-box code::-webkit-scrollbar, .cmd code::-webkit-scrollbar { display: none; }
.copy { flex: none; display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13px; font-weight: 600; color: var(--text); background: rgba(125, 211, 252, .08); border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 11px; cursor: pointer; transition: background .2s, border-color .2s; }
.copy:hover { background: rgba(125, 211, 252, .15); border-color: var(--line-3); }
.copy.copied { color: #04170f; background: var(--working); border-color: var(--working); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.fineprint { margin: 0; color: var(--dim); font-size: 13.5px; }

/* HUD chips floating near the core */
.hero-hud { position: relative; height: 460px; perspective: 900px; pointer-events: none; }
.hud-card { position: absolute; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 10px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--c) 14%, rgba(6, 10, 22, .75)), rgba(6, 10, 22, .6)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 0 30px -8px var(--c), inset 0 1px 0 rgba(255, 255, 255, .06); animation: hud-float 7s ease-in-out infinite; }
.hud-card .d { grid-row: span 2; }
.hud-card b { font-size: 14px; }
.hud-card span { font-size: 12px; color: var(--muted); font-family: var(--mono); }
.hud-a { --c: var(--waiting); top: 6%; right: 58%; animation-delay: -1s; }
.hud-b { --c: var(--working); top: 22%; right: -2%; animation-delay: -3s; }
.hud-c { --c: var(--review); bottom: 18%; right: 64%; animation-delay: -5s; }
.hud-d { --c: var(--idle); bottom: 4%; right: 6%; animation-delay: -2s; }
@keyframes hud-float { 0%, 100% { transform: translate3d(0, 0, 0) rotateY(-8deg); } 50% { transform: translate3d(0, -12px, 30px) rotateY(-14deg); } }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border-radius: 14px; border: 1.5px solid var(--line-3); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--cyan-2); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* entrance */
.js .rise { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--d) * 90ms + 120ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------------- showcase (tilted device) ---------------- */
.showcase { position: relative; margin-top: -40px; padding-bottom: 40px; overflow-x: clip; }
.stage { --p: 0; perspective: 1600px; perspective-origin: 50% 0%; }
.device { position: relative; border-radius: 18px; overflow: hidden; background: #0a0f1c; border: 1px solid var(--line-3);
  transform-origin: 50% 0%;
  transform: rotateX(calc((1 - var(--p)) * 32deg)) scale(calc(.86 + var(--p) * .14)) translateY(calc((1 - var(--p)) * 40px));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .03) inset, 0 60px 140px -40px rgba(34, 211, 238, .45), 0 30px 80px -30px rgba(139, 92, 246, .5);
  will-change: transform;
}
.device::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; background: linear-gradient(180deg, rgba(255, 255, 255, .06), transparent 18%), radial-gradient(1200px 300px at 50% -10%, rgba(34, 211, 238, calc((1 - var(--p)) * .25)), transparent); }
.device-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: linear-gradient(180deg, #111a2c, #0b1322); border-bottom: 1px solid var(--line); }
.device-bar i, .term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.device-bar i:nth-child(1), .term-bar i:nth-child(1) { background: #f87171; }
.device-bar i:nth-child(2), .term-bar i:nth-child(2) { background: #fbbf24; }
.device-bar i:nth-child(3), .term-bar i:nth-child(3) { background: #34d399; }
.device-bar span, .term-bar span { margin: 0 auto; transform: translateX(-24px); font-family: var(--mono); font-size: 12px; color: var(--dim); padding: 3px 12px; border-radius: 6px; background: rgba(125, 211, 252, .05); border: 1px solid var(--line); }
.device img { width: 100%; }
.device-floor { height: 120px; margin: -30px 6% 0; background: radial-gradient(ellipse at 50% 0%, rgba(34, 211, 238, .35), transparent 70%); filter: blur(24px); opacity: calc(.4 + var(--p) * .5); pointer-events: none; }
.redact-note { display: flex; justify-content: center; align-items: center; gap: 8px; margin: -70px 0 0; position: relative; color: var(--dim); font-size: 13px; text-align: center; }
.redact-note .ico { color: var(--cyan-2); }

/* scanline sweep */
.scanline { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; border-radius: inherit; }
.scanline::after { content: ""; position: absolute; left: 0; right: 0; top: -20%; height: 20%; background: linear-gradient(180deg, transparent, rgba(34, 211, 238, .035) 75%, rgba(103, 232, 249, .22) 99.4%, transparent); animation: scan 7s linear infinite; }
@keyframes scan { to { transform: translateY(620%); } }

/* ---------------- sections ---------------- */
.section { position: relative; padding-block: clamp(80px, 11vw, 140px); }
.section + .section::before { content: ""; position: absolute; top: 0; left: 50%; width: min(1200px, 90%); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--line-2), transparent); }
.sec-head { max-width: 900px; margin-bottom: 56px; }
.sec-head h2, .fr-text h3, h1 span { text-wrap: balance; }
.kicker { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 16px; font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--k); }
.kicker .num { display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 7px; border-radius: 6px; color: var(--k); border: 1px solid color-mix(in srgb, var(--k) 45%, transparent); background: color-mix(in srgb, var(--k) 10%, transparent); box-shadow: 0 0 18px -4px var(--k); }
h2 { margin: 0 0 18px; font-size: clamp(30px, 4.2vw, 52px); line-height: 1.1; letter-spacing: -.028em; font-weight: 800; }
:lang(zh-CN) h2 { letter-spacing: -.005em; line-height: 1.22; }
.sec-lede { margin: 0; font-size: 17.5px; color: var(--muted); }
h3 { margin: 0 0 10px; font-size: 20px; line-height: 1.3; letter-spacing: -.01em; }
.prose { color: var(--muted); font-size: 16.5px; }
.narrow { max-width: 760px; margin: 48px auto 0; text-align: center; }
.prose code, .fr-text code, .facts code { color: var(--cyan-2); background: rgba(34, 211, 238, .08); padding: 1px 6px; border-radius: 5px; }

/* glass card base */
.panel, .card, .table-wrap, .topo, .term-window, .downloads, .tui {
  position: relative; border-radius: var(--radius); border: 1px solid var(--line-2);
  background: linear-gradient(160deg, rgba(20, 32, 58, .66), rgba(8, 13, 26, .72));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 30px 60px -40px rgba(0, 0, 0, .8);
}

/* pointer tilt (set by main.js) */
[data-tilt] { --rx: 0deg; --ry: 0deg; transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s var(--ease), box-shadow .3s, border-color .3s; transform-style: preserve-3d; }
[data-tilt].tilting { transition: transform .08s linear, box-shadow .3s, border-color .3s; }
[data-tilt]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(103, 232, 249, .14), transparent 45%); z-index: 4; }
[data-tilt].tilting::after { opacity: 1; }

/* ---------------- why ---------------- */
.vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: stretch; }
.panel { padding: 30px; }
.panel-tag { margin: 0 0 14px; }
.panel-tag span { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; }
.panel-before .panel-tag span { color: var(--waiting); background: rgba(248, 113, 113, .1); border: 1px solid rgba(248, 113, 113, .3); }
.panel-after .panel-tag span { color: var(--working); background: rgba(52, 211, 153, .1); border: 1px solid rgba(52, 211, 153, .3); }
.panel-after { border-color: rgba(52, 211, 153, .3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 0 60px -30px rgba(52, 211, 153, .5); }
.panel h3 { font-size: 22px; margin-bottom: 20px; }
.tlist, .one-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.tlist li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; background: rgba(2, 6, 14, .6); border: 1px solid var(--line); font-size: 14.5px; }
.tlist code { color: var(--text); min-width: 58px; }
.tlist span { color: var(--muted); }
.one-list { counter-reset: n; }
.one-list li { counter-increment: n; position: relative; padding: 12px 14px 12px 52px; border-radius: 10px; background: rgba(2, 6, 14, .5); border: 1px solid var(--line); }
.one-list li::before { content: counter(n); position: absolute; left: 14px; top: 13px; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; font-weight: 700; color: #03140d; background: var(--working); box-shadow: 0 0 16px -2px var(--working); }
.one-list b { display: block; font-size: 15.5px; }
.one-list span { color: var(--muted); font-size: 14px; }
.panel-foot { margin: 0; color: var(--dim); font-size: 14px; font-style: italic; }
.vs-arrow { display: grid; place-items: center; width: 44px; }
.vs-arrow span { position: relative; width: 2px; height: 70%; background: linear-gradient(180deg, transparent, var(--cyan), transparent); }
.vs-arrow span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 20px 4px rgba(34, 211, 238, .7); animation: travel 2.4s ease-in-out infinite; }
@keyframes travel { 0% { transform: translateY(-80px); opacity: 0; } 30%, 70% { opacity: 1; } 100% { transform: translateY(80px); opacity: 0; } }

/* ---------------- how (pipeline) ---------------- */
.flow { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.flow::before { content: ""; position: absolute; left: 6%; right: 6%; top: 27px; height: 2px; background: linear-gradient(90deg, var(--waiting), var(--idle), var(--review), var(--amber), var(--working)); opacity: .45; }
.flow::after { content: ""; position: absolute; top: 22px; left: 6%; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 18px 6px rgba(103, 232, 249, .8); animation: flow-dot 5s var(--ease) infinite; }
@keyframes flow-dot { 0% { left: 6%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { left: calc(94% - 12px); opacity: 0; } }
.flow li { position: relative; padding: 76px 18px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(14, 22, 40, .6), rgba(6, 10, 20, .3)); }
.flow .node { position: absolute; top: 8px; left: 18px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-family: var(--mono); font-weight: 800; font-size: 15px; color: var(--c); background: #050a15; border: 1px solid color-mix(in srgb, var(--c) 60%, transparent); box-shadow: 0 0 24px -4px var(--c), inset 0 0 12px -4px var(--c); }
.flow li h3 { font-size: 16.5px; }
.flow li p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------------- product ---------------- */
.stack-wrap { --p: 0; position: relative; height: clamp(360px, 52vw, 640px); margin: -10px 0 90px; perspective: 2200px; }
.stack { position: absolute; left: 50%; top: 50%; width: min(820px, 78%); aspect-ratio: 16 / 10; transform-style: preserve-3d;
  transform: translate(-50%, -50%) rotateX(56deg) rotateZ(-34deg) translateZ(-60px); }
.layer { position: absolute; inset: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-3); background: #0a0f1c; transform-style: preserve-3d;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .03), 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 50px -20px var(--c); }
.layer img { width: 100%; height: 100%; object-fit: cover; opacity: .95; }
.layer::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(34, 211, 238, .12), transparent 40%, rgba(139, 92, 246, .14)); }
.l1 { --c: var(--idle); transform: translateZ(calc(var(--p) * 0px)); }
.l2 { --c: var(--working); transform: translateZ(calc(40px + var(--p) * 110px)); }
.l3 { --c: var(--review); transform: translateZ(calc(80px + var(--p) * 220px)); }
.stack-wrap .stack { animation: stack-bob 9s ease-in-out infinite; }
@keyframes stack-bob { 0%, 100% { transform: translate(-50%, -50%) rotateX(56deg) rotateZ(-34deg) translateZ(-60px); } 50% { transform: translate(-50%, -52%) rotateX(52deg) rotateZ(-30deg) translateZ(-40px); } }
.stack-tags { position: absolute; right: 2%; top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.stack-tags li { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; color: var(--text); padding: 8px 12px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); background: rgba(6, 10, 22, .7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.stack-tags li::before { content: ""; width: 22px; height: 2px; background: var(--c); box-shadow: 0 0 10px var(--c); }

.feature-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; margin-bottom: clamp(80px, 10vw, 130px); }
.feature-row:last-child { margin-bottom: 0; }
.feature-row.flip .fr-text { order: 2; }
.fr-kicker { margin: 0 0 12px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan-2); }
.fr-text h3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; letter-spacing: -.02em; margin-bottom: 16px; }
.fr-text p { color: var(--muted); font-size: 16.5px; margin: 0 0 18px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--text); font-size: 15px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 5px; background: rgba(34, 211, 238, .12); border: 1px solid rgba(34, 211, 238, .5); }
.ticks li::after { content: ""; position: absolute; left: 5px; top: 8px; width: 6px; height: 8px; border: solid var(--cyan-2); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.risk { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0; }

.fr-media { margin: 0; }
.fr-media figcaption { margin-top: 16px; font-size: 13.5px; color: var(--dim); font-family: var(--mono); }
.fr-media figcaption::before { content: "// "; color: var(--cyan); }
.frame { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-3); background: #0a0f1c;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .03) inset, 0 50px 100px -50px rgba(34, 211, 238, .45), 0 30px 60px -30px rgba(0, 0, 0, .9); }
.frame img { width: 100%; }
.frame-glow { box-shadow: 0 0 0 1px rgba(255, 255, 255, .03) inset, 0 0 90px -20px rgba(167, 139, 250, .55), 0 30px 60px -30px rgba(0, 0, 0, .9); }
.frame .scanline::after { animation-duration: 8s; opacity: .7; }
.feature-row:not(.flip) .frame { --ry: -4deg; }
.feature-row.flip .frame { --ry: 4deg; }

/* phones in 3D */
.phones { --p: 0; position: relative; display: flex; justify-content: center; gap: 0; perspective: 1400px; padding-block: 20px; }
.phone { width: min(260px, 44%); border-radius: 34px; padding: 9px; background: linear-gradient(145deg, #1d2740, #070b16); border: 1px solid var(--line-3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05), 0 50px 80px -30px rgba(0, 0, 0, .9), 0 0 60px -20px rgba(34, 211, 238, .45); transition: transform .8s var(--ease); }
.phone img { border-radius: 26px; }
.phone.p1 { transform: rotateY(calc(18deg + (1 - var(--p)) * 16deg)) translateZ(-40px) translateX(22px); z-index: 1; }
.phone.p2 { transform: rotateY(calc(-18deg - (1 - var(--p)) * 16deg)) translateY(40px) translateX(-22px); z-index: 2; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05), 0 50px 80px -30px rgba(0, 0, 0, .9), 0 0 60px -20px rgba(167, 139, 250, .55); }
.phones:hover .p1 { transform: rotateY(8deg) translateZ(0) translateX(10px); }
.phones:hover .p2 { transform: rotateY(-8deg) translateY(30px) translateX(-10px); }

/* TUI schematic */
.tui { padding: 0; overflow: hidden; font-family: var(--mono); font-size: 13px; background: rgba(3, 7, 16, .92); border-color: rgba(52, 211, 153, .35); box-shadow: 0 0 80px -30px rgba(52, 211, 153, .5); }
.tui-bar { padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--working); background: rgba(52, 211, 153, .06); }
.tui-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.tui-panel { background: rgba(3, 7, 16, .96); padding: 14px; min-height: 140px; }
.tui-panel b { display: block; color: var(--cyan-2); margin-bottom: 10px; font-weight: 600; }
.tui-panel p { display: flex; align-items: center; gap: 10px; margin: 0 0 9px; color: var(--muted); }
.tui-panel p.dim { color: var(--dim); }
.tui-panel u { flex: 1; height: 7px; border-radius: 4px; background: linear-gradient(90deg, rgba(125, 211, 252, .22), rgba(125, 211, 252, .05)); text-decoration: none; }
.tui-panel em { font-style: normal; color: var(--dim); min-width: 70px; }
.tui-help { padding: 10px 14px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12px; }

/* ---------------- agents table ---------------- */
.table-wrap { overflow-x: auto; padding: 6px; }
.agents { width: 100%; border-collapse: collapse; min-width: 560px; }
.agents th, .agents td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.agents thead th { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); font-weight: 600; }
.agents tbody tr { transition: background .2s; }
.agents tbody tr:hover { background: rgba(34, 211, 238, .05); }
.agents tbody tr:last-child th, .agents tbody tr:last-child td { border-bottom: 0; }
.agents tbody th { font-weight: 650; }
.agents td { color: var(--muted); }
.tag { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 6px; font-family: var(--mono); }
.t-ded { color: var(--working); background: rgba(52, 211, 153, .1); border: 1px solid rgba(52, 211, 153, .3); }
.t-gen { color: var(--idle); background: rgba(96, 165, 250, .1); border: 1px solid rgba(96, 165, 250, .3); }
.t-cus { color: var(--review); background: rgba(167, 139, 250, .1); border: 1px solid rgba(167, 139, 250, .3); }

/* ---------------- features grid ---------------- */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { padding: 24px; overflow: hidden; }
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--c), transparent); opacity: .7; }
.card:hover { border-color: color-mix(in srgb, var(--c) 45%, transparent); box-shadow: 0 0 50px -20px var(--c), inset 0 1px 0 rgba(255, 255, 255, .05); }
.card-lg { grid-column: span 2; }
.card-ico { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 12px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); box-shadow: 0 0 22px -6px var(--c); transform: translateZ(30px); }
.card h3 { font-size: 17px; transform: translateZ(20px); }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------------- local-first ---------------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.split .sec-head { margin-bottom: 28px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.facts li { padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: rgba(8, 14, 28, .55); color: var(--muted); }
.facts b { color: var(--text); margin-right: 4px; }
.topo { padding: 22px; display: grid; gap: 12px; }
.topo-machine { position: relative; padding: 34px 16px 16px; border-radius: 14px; border: 1px solid rgba(52, 211, 153, .4); background: rgba(52, 211, 153, .04); display: grid; gap: 10px; box-shadow: inset 0 0 40px -20px rgba(52, 211, 153, .5); }
.topo-label { position: absolute; top: 9px; left: 16px; margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--working); }
.topo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.node-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(3, 7, 16, .75); font-size: 14px; }
.node-cam { justify-content: center; font-weight: 700; color: #e6fbff; border-color: rgba(34, 211, 238, .6); background: linear-gradient(120deg, rgba(34, 211, 238, .16), rgba(139, 92, 246, .16)); box-shadow: 0 0 30px -8px rgba(34, 211, 238, .7); }
.topo-outs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.topo-outs .node-box { justify-content: center; }
.topo-link { position: relative; height: 26px; margin-inline: auto; width: 2px; }
.topo-link.solid { background: linear-gradient(180deg, var(--cyan), var(--idle)); box-shadow: 0 0 10px var(--cyan); }
.topo-link.solid i { position: absolute; left: -3px; top: 0; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 3px var(--cyan); animation: drip 1.6s linear infinite; }
@keyframes drip { from { transform: translateY(-4px); opacity: 0; } 20% { opacity: 1; } to { transform: translateY(24px); opacity: 0; } }
.topo-link.dashed { background: repeating-linear-gradient(180deg, var(--dim) 0 4px, transparent 4px 8px); }
.node-opt { flex-direction: column; align-items: center; border-style: dashed; color: var(--muted); }
.node-opt small { color: var(--dim); font-size: 12px; }

/* ---------------- install ---------------- */
.term-window { overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--line); background: rgba(6, 10, 22, .8); }
.steps { list-style: none; margin: 0; padding: 22px; display: grid; gap: 18px; }
.step-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.step-meta h3 { margin: 0; font-size: 16px; }
.step-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font-family: var(--mono); font-weight: 700; font-size: 13px; color: #031018; background: var(--accent-grad); }
.step-note { margin: 8px 0 0 38px; color: var(--dim); font-size: 14px; }
.steps .cmd { margin-left: 38px; }
.alt-block { padding: 0 22px 22px; }
.alt-head { color: var(--muted); font-size: 14.5px; margin-bottom: 10px; }
.downloads { margin-top: 20px; padding: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.dl-head { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.dl-head h3 { margin: 0; }
.dl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.dl-list li { display: flex; gap: 8px; align-items: baseline; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(3, 7, 16, .6); font-size: 14px; }
.dl-list span { color: var(--dim); font-family: var(--mono); font-size: 12.5px; }

/* ---------------- pricing ---------------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line-2);
  background: linear-gradient(160deg, rgba(20, 32, 58, .66), rgba(8, 13, 26, .72)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 30px 60px -40px rgba(0, 0, 0, .8); }
.plan h3 { font-size: 22px; margin: 0 0 6px; }
.plan-tag { margin: 0 0 16px; }
.plan-tag span { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; color: var(--cyan-2); background: rgba(34, 211, 238, .08); border: 1px solid rgba(34, 211, 238, .3); }
.plan-free .plan-tag span { color: var(--working); background: rgba(52, 211, 153, .1); border-color: rgba(52, 211, 153, .35); }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin: 0 0 20px; color: var(--muted); }
.plan-price b { font-size: 16px; color: var(--text); font-weight: 650; }
.plan-free .plan-price b { font-size: 34px; font-weight: 800; letter-spacing: -.02em; background: linear-gradient(180deg, #fff, #9ff5cf); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 11px; flex: 1; align-content: start; }
.plan-list li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--muted); }
.plan-list li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 6px; height: 10px; border: solid var(--cyan-2); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.plan-free .plan-list li::before { border-color: var(--working); }
.plan-free { border-color: rgba(52, 211, 153, .4); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 0 60px -30px rgba(52, 211, 153, .6); }
.plan-pro { border-color: rgba(34, 211, 238, .45); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 0 70px -28px rgba(34, 211, 238, .6); }
.plan-cta { justify-content: center; font: inherit; font-weight: 650; font-size: 15px; cursor: pointer; border: 0; }
.plan-cta.btn-ghost { border: 1px solid var(--line-2); }
.promise { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 28px 0 0; padding: 14px 18px; border-radius: 12px; border: 1px dashed rgba(52, 211, 153, .4); background: rgba(52, 211, 153, .05); color: var(--muted); text-align: center; }
.promise .ico { color: var(--working); }
.promise b { color: var(--text); }

.waitlist { max-width: 720px; margin: 48px auto 0; padding: 30px; border-radius: 18px; border: 1px solid rgba(34, 211, 238, .35);
  background: radial-gradient(600px 200px at 50% 0%, rgba(34, 211, 238, .10), transparent), linear-gradient(160deg, rgba(16, 26, 48, .8), rgba(6, 10, 22, .85));
  box-shadow: 0 0 80px -40px rgba(34, 211, 238, .7), inset 0 1px 0 rgba(255, 255, 255, .05); }
.wl-head { text-align: center; margin-bottom: 20px; }
.wl-head h3 { font-size: 22px; margin-bottom: 6px; }
.wl-head p { margin: 0; color: var(--muted); font-size: 15px; }
.wl-plans { display: flex; justify-content: center; gap: 10px; margin: 0 0 16px; padding: 0; border: 0; }
.wl-plans label { position: relative; cursor: pointer; }
.wl-plans input { position: absolute; opacity: 0; pointer-events: none; }
.wl-plans span { display: inline-block; min-width: 96px; text-align: center; padding: 8px 16px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(3, 7, 16, .6); font-weight: 650; color: var(--muted); transition: all .2s; }
.wl-plans input:checked + span { color: #03121a; background: var(--accent-grad); border-color: transparent; box-shadow: 0 8px 24px -10px rgba(34, 211, 238, .8); }
.wl-plans input:focus-visible + span { outline: 2px solid var(--cyan-2); outline-offset: 3px; }
.wl-row { display: flex; gap: 10px; }
.waitlist input[type="email"], .waitlist textarea { width: 100%; min-width: 0; font: inherit; font-size: 15px; color: var(--text); background: rgba(3, 7, 16, .8); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s; }
.waitlist input[type="email"]:focus, .waitlist textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, .18); }
.waitlist textarea { resize: vertical; min-height: 64px; }
.wl-row .btn { flex: none; border: 0; font: inherit; font-weight: 650; cursor: pointer; }
.wl-row .btn:disabled { opacity: .6; cursor: wait; transform: none; }
.wl-note-label { display: block; margin: 16px 0 8px; font-size: 14px; color: var(--muted); }
.wl-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.wl-status { min-height: 1.5em; margin: 12px 0 0; font-size: 14.5px; color: var(--muted); }
.wl-status.is-ok { color: var(--working); }
.wl-status.is-err { color: var(--waiting); }
.wl-fine { margin: 6px 0 0; font-size: 13px; color: var(--dim); }
.fineprint a { color: var(--working); text-decoration: none; white-space: nowrap; }
.fineprint a:hover { text-decoration: underline; }

@media (max-width: 980px) { .plans { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .waitlist { padding: 22px 18px; }
  .wl-row { flex-direction: column; }
  .wl-row .btn { justify-content: center; }
  .promise { align-items: flex-start; text-align: left; }
}

/* ---------------- footer ---------------- */
.site-footer { position: relative; border-top: 1px solid var(--line); padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(180deg, transparent, rgba(34, 211, 238, .03)); }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.foot-brand { display: flex; align-items: center; gap: 16px; }
.foot-brand p { margin: 0; color: var(--dim); font-size: 14px; }
.foot-links { display: flex; gap: 18px; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.foot-links a:hover { color: var(--text); }
.foot-fine { width: 100%; margin: 0; color: var(--dim); font-size: 13px; }

/* ---------------- reveal ---------------- */
.reveal { opacity: 0; translate: 0 26px; transition: opacity .9s var(--ease), translate .9s var(--ease); }
.reveal.in { opacity: 1; translate: 0 0; }
.flow li.reveal:nth-child(2), .grid .card.reveal:nth-child(4n+2) { transition-delay: .08s; }
.flow li.reveal:nth-child(3), .grid .card.reveal:nth-child(4n+3) { transition-delay: .16s; }
.flow li.reveal:nth-child(4), .grid .card.reveal:nth-child(4n+4) { transition-delay: .24s; }
.flow li.reveal:nth-child(5) { transition-delay: .32s; }

/* ---------------- responsive ---------------- */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(3, 1fr); }
  .flow::before, .flow::after { display: none; }
  .hero-hud { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-vignette { background: linear-gradient(0deg, var(--bg) 0%, rgba(3, 5, 11, .55) 45%, rgba(3, 5, 11, .25) 100%); }
}
@media (max-width: 980px) {
  .menu-btn { display: inline-grid; }
  .nav-links { position: absolute; top: calc(64px + env(safe-area-inset-top, 0px)); left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 8px var(--gutter) 16px; background: rgba(3, 5, 11, .96); border-bottom: 1px solid var(--line); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 8px; font-size: 16px; }
  .nav-actions { margin-left: auto; }
  .feature-row, .split { grid-template-columns: 1fr; }
  .feature-row.flip .fr-text { order: 0; }
  .vs { grid-template-columns: 1fr; }
  .vs-arrow { width: auto; height: 40px; }
  .vs-arrow span { width: 60%; height: 2px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); }
  .vs-arrow span::after { animation-name: travel-x; }
  .stack-tags { top: auto; bottom: -64px; left: 0; right: 0; transform: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .stack-tags li { font-size: 12px; padding: 6px 10px; }
  .stack-wrap { height: auto; aspect-ratio: 1.1; margin: 40px 0 120px; }
  .stack { width: 72%; }
}
@keyframes travel-x { 0% { transform: translateX(-80px); opacity: 0; } 30%, 70% { opacity: 1; } 100% { transform: translateX(80px); opacity: 0; } }
@media (max-width: 640px) {
  .hero { padding-block: 40px 90px; min-height: auto; }
  .flow { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .card-lg { grid-column: auto; }
  .topo-row, .topo-outs { grid-template-columns: 1fr; }
  .steps { padding: 16px; }
  .steps .cmd, .step-note { margin-left: 0; }
  .alt-block { padding: 0 16px 16px; }
  .install-box code, .cmd code { font-size: 12.5px; }
  .copy span { display: none; }
  .seg button { padding: 5px 8px; }
  .showcase { margin-top: 0; }
  .device { border-radius: 22px; max-width: 360px; margin-inline: auto; }
  .device-bar span { display: none; }
  .redact-note { margin-top: -80px; padding-inline: 8px; }
  .phone { width: 46%; border-radius: 26px; padding: 6px; }
  .phone img { border-radius: 21px; }
  .panel { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .rise { opacity: 1; transform: none; }
  .reveal { opacity: 1; translate: none; }
}
