:root {
  /* accent (green default) */
  --accent: oklch(0.85 0.18 155);
  --accent-dim: oklch(0.85 0.18 155 / 0.14);
  --accent-line: oklch(0.85 0.18 155 / 0.45);

  /* surfaces — dark */
  --bg: oklch(0.14 0.005 250);
  --bg-2: oklch(0.17 0.006 250);
  --bg-3: oklch(0.20 0.007 250);
  --fg: oklch(0.97 0.003 250);
  --fg-2: oklch(0.78 0.006 250);
  --fg-3: oklch(0.58 0.008 250);
  --line: oklch(1 0 0 / 0.08);
  --line-2: oklch(1 0 0 / 0.14);

  --font-sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;

  --maxw: 1280px;
  --pad: clamp(20px, 4vw, 48px);
}

[data-mode="light"] {
  --bg: oklch(0.985 0.003 250);
  --bg-2: oklch(0.96 0.004 250);
  --bg-3: oklch(0.93 0.005 250);
  --fg: oklch(0.15 0.005 250);
  --fg-2: oklch(0.35 0.006 250);
  --fg-3: oklch(0.52 0.008 250);
  --line: oklch(0 0 0 / 0.10);
  --line-2: oklch(0 0 0 / 0.18);
}

[data-accent="blue"]  { --accent: oklch(0.76 0.09 245); --accent-dim: oklch(0.76 0.09 245 / 0.14); --accent-line: oklch(0.76 0.09 245 / 0.45); }
[data-accent="orange"]{ --accent: oklch(0.78 0.17 55);  --accent-dim: oklch(0.78 0.17 55 / 0.14);  --accent-line: oklch(0.78 0.17 55 / 0.45); }
[data-accent="violet"]{ --accent: oklch(0.78 0.17 305); --accent-dim: oklch(0.78 0.17 305 / 0.14); --accent-line: oklch(0.78 0.17 305 / 0.45); }
[data-accent="mono"]  { --accent: var(--fg); --accent-dim: oklch(1 0 0 / 0.10); --accent-line: oklch(1 0 0 / 0.35); }
[data-mode="light"][data-accent="mono"] { --accent-dim: oklch(0 0 0 / 0.06); --accent-line: oklch(0 0 0 / 0.30); }

[data-font="geist"]  { --font-sans: "Geist", ui-sans-serif, system-ui, sans-serif; --font-mono: "Geist Mono", ui-monospace, monospace; }
[data-font="inter"]  { --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif; --font-mono: "IBM Plex Mono", ui-monospace, monospace; }
[data-font="grotesk"]{ --font-sans: "Space Grotesk", ui-sans-serif, system-ui, sans-serif; --font-mono: "IBM Plex Mono", ui-monospace, monospace; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

[hidden] { display: none !important; }

/* Backgrounds / textures */
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 40%, transparent 80%);
  opacity: 1;
  transition: opacity .3s;
}
body[data-texture="plain"]::before { opacity: 0; }
body[data-texture="noise"]::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
  mask-image: none;
}
[data-mode="light"] body::before,
body[data-mode="light"]::before {
  /* noop placeholder for specificity */
}

.glow {
  position: fixed;
  inset: -20vh -20vw auto auto;
  width: 70vw; height: 70vh;
  background: radial-gradient(closest-side, var(--accent-dim), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
  opacity: .9;
}

main, header, footer { position: relative; z-index: 1; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- Top nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(14px);
  background: color-mix(in oklch, var(--bg) 70%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 14px; letter-spacing: 0.02em;
  color: var(--fg);
  text-decoration: none;
}
.logo-mark {
  width: 22px; height: 22px;
  display: block;
}
.nav-links {
  display: flex; gap: 28px; align-items: center;
  font-size: 13px; color: var(--fg-2);
  font-family: var(--font-mono);
}
.nav-links a { color: inherit; text-decoration: none; }
.nav-links a:hover { color: var(--fg); }
.nav-cta {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--bg); background: var(--accent);
  padding: 9px 14px; border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--accent);
  transition: transform .15s;
}
.nav-cta:hover { transform: translateY(-1px); }

/* ---------- Section chrome ---------- */
.section {
  padding: clamp(80px, 10vh, 140px) 0;
  border-top: 1px solid var(--line);
}
.section:first-of-type { border-top: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.eyebrow .num {
  color: var(--accent);
  border: 1px solid var(--accent-line);
  padding: 2px 6px; border-radius: 4px;
  background: var(--accent-dim);
}

h1, h2, h3 { font-weight: 500; letter-spacing: -0.025em; margin: 0; }
h1 { font-size: clamp(44px, 6.5vw, 92px); line-height: 1.02; }
h2 { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.05; }
h3 { font-size: 18px; font-weight: 500; }
p { color: var(--fg-2); }

.lead { font-size: clamp(16px, 1.3vw, 19px); color: var(--fg-2); max-width: 58ch; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 13px;
  padding: 14px 20px; border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--line-2);
  color: var(--fg);
  background: transparent;
  transition: border-color .2s, transform .15s, background .2s;
}
.btn:hover { border-color: var(--accent-line); transform: translateY(-1px); }
.btn.primary {
  background: var(--accent); color: var(--bg); border-color: var(--accent);
}
.btn.primary:hover { box-shadow: 0 10px 40px -10px var(--accent); }

/* ---------- HERO ---------- */
.hero { position: relative; padding-top: clamp(60px, 8vh, 120px); border-top: 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 1024px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

.hero-meta {
  list-style: none; margin: 44px 0 0; padding: 20px 0 0;
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 24px;
  border-top: 1px solid var(--line);
}
.hero-meta li { display: flex; flex-direction: column; gap: 6px; }
.hero-meta .k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-3); }
.hero-meta .v { font-size: 14px; color: var(--fg); letter-spacing: -0.01em; }
@media (max-width: 600px){ .hero-meta { grid-template-columns: 1fr; } }

/* Isometric device */
.device { position: relative; width: 100%; max-width: 560px; z-index: 1; }
.device-svg { width: 100%; height: auto; display: block; color: var(--accent); }
.device-led circle { transform-origin: 352px 316px; animation: ledPulse 2.4s ease-in-out infinite; }
@keyframes ledPulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }

.hero h1 .accent { color: var(--accent); }
.hero-sub { margin-top: 24px; }
.hero-cta { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }

/* Mini-PC rendering */
.stage {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  display: grid; place-items: center;
}
.stage-bg {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
  display: grid;
  gap: 2.2%;
  padding: 1.6%;
  /* Two-mask composite: soft center dim for focus + smooth edge fade so clipped tiles dissolve instead of getting chopped. */
  --center-mask: radial-gradient(ellipse 46% 46% at 50% 50%, rgba(0,0,0,.55) 0%, rgba(0,0,0,.82) 35%, black 62%);
  --edge-mask:   linear-gradient(to right, transparent 0%, black 9%, black 91%, transparent 100%),
                 linear-gradient(to bottom, transparent 0%, black 9%, black 91%, transparent 100%);
  mask-image: var(--center-mask), var(--edge-mask);
  mask-composite: intersect;
  -webkit-mask-image: var(--center-mask), var(--edge-mask);
  -webkit-mask-composite: source-in;
}
.doc-tile {
  position: relative;
  /* Fill the grid cell entirely — overflow caused visible hard edges. */
  width: 100%; height: 100%;
  border: 1px solid color-mix(in oklch, var(--fg-3) 22%, transparent);
  border-radius: 10px;
  background: transparent;
  transition: border-color 1.2s, background 1.2s;
  /* each tile gets --d (0→1 distance from center) from JS; drives opacity smoothly */
  opacity: calc(0.35 + var(--d, 0.5) * 0.55);
}
.doc-tile::before {
  /* document glyph */
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 30%; aspect-ratio: 3 / 4;
  transform: translate(-50%, -50%);
  background-color: color-mix(in oklch, var(--fg-3) 35%, transparent);
  -webkit-mask: var(--doc-glyph) center / contain no-repeat;
          mask: var(--doc-glyph) center / contain no-repeat;
  transition: background-color 1.2s;
}
.doc-tile.on {
  border-color: color-mix(in oklch, var(--accent) 55%, transparent);
  background: color-mix(in oklch, var(--accent) 6%, transparent);
  animation: tileOn 4.8s ease-in-out infinite;
  opacity: 1 !important;
}
.doc-tile.on::before { background-color: color-mix(in oklch, var(--accent) 85%, transparent); }
@keyframes tileOn {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--accent) 0%, transparent); }
  50%      { box-shadow: 0 0 24px -4px color-mix(in oklch, var(--accent) 35%, transparent); }
}
:root {
  --doc-glyph: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round' stroke-linecap='round'><path d='M2 1 H14 L22 9 V30 a1 1 0 0 1 -1 1 H3 a1 1 0 0 1 -1 -1 V2 a1 1 0 0 1 1 -1 Z'/><path d='M14 1 V9 H22'/><line x1='6' y1='16' x2='18' y2='16'/><line x1='6' y1='20' x2='18' y2='20'/><line x1='6' y1='24' x2='14' y2='24'/></svg>");
}
.stage::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(closest-side, var(--accent-dim), transparent 60%);
  filter: blur(20px);
}
.stage::after {
  content: "";
  position: absolute; left: 50%; bottom: 14%;
  width: 70%; height: 22px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, oklch(0 0 0 / 0.55), transparent 70%);
  filter: blur(8px);
}
[data-mode="light"] .stage::after { background: radial-gradient(ellipse at center, oklch(0 0 0 / 0.20), transparent 70%); }

.pc { display: none; /* legacy */
  position: relative;
  width: 64%;
  aspect-ratio: 1.15 / 1;
  transform-style: preserve-3d;
  animation: pcFloat 7s ease-in-out infinite;
}
@keyframes pcFloat {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-8px); }
}
.pc-body {
  position: absolute; inset: 0;
  border-radius: 18px;
  background:
    linear-gradient(180deg, oklch(0.30 0.006 250) 0%, oklch(0.19 0.006 250) 40%, oklch(0.15 0.006 250) 100%);
  border: 1px solid var(--line-2);
  box-shadow:
    inset 0 1px 0 oklch(1 0 0 / 0.08),
    inset 0 -1px 0 oklch(0 0 0 / 0.6),
    0 40px 80px -30px oklch(0 0 0 / 0.6);
  overflow: hidden;
}
[data-mode="light"] .pc-body {
  background: linear-gradient(180deg, oklch(0.96 0.003 250) 0%, oklch(0.90 0.004 250) 40%, oklch(0.86 0.005 250) 100%);
  box-shadow:
    inset 0 1px 0 oklch(1 0 0 / 0.6),
    inset 0 -1px 0 oklch(0 0 0 / 0.1),
    0 40px 80px -30px oklch(0 0 0 / 0.25);
}
/* top vents */
.pc-vents {
  position: absolute; top: 14px; left: 14px; right: 14px; height: 3px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 4px);
  opacity: .6;
}
.pc-vents.bottom { top: auto; bottom: 14px; }

/* status dot */
.pc-status {
  position: absolute; top: 18px; right: 18px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim), 0 0 12px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: .3; }
}

/* center screen / lens */
.pc-lens {
  position: absolute; left: 50%; top: 50%;
  width: 52%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, oklch(0.22 0.006 250) 0%, oklch(0.12 0.006 250) 70%);
  border: 1px solid var(--line-2);
  box-shadow:
    inset 0 0 0 1px oklch(0 0 0 / 0.7),
    inset 0 6px 20px oklch(0 0 0 / 0.8),
    0 0 40px var(--accent-dim);
  overflow: hidden;
}
[data-mode="light"] .pc-lens { background: radial-gradient(circle at 50% 45%, oklch(0.86 0.004 250) 0%, oklch(0.75 0.006 250) 70%); }

.lens-core {
  position: absolute; left: 50%; top: 50%;
  width: 28%; aspect-ratio: 1; transform: translate(-50%,-50%);
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0%, oklch(0.30 0.08 155) 60%, transparent 100%);
  box-shadow: 0 0 30px var(--accent), 0 0 80px var(--accent-dim);
  animation: corePulse 3.5s ease-in-out infinite;
}
@keyframes corePulse {
  0%,100% { transform: translate(-50%,-50%) scale(1); opacity: .95; }
  50%     { transform: translate(-50%,-50%) scale(1.08); opacity: 1; }
}
.lens-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px dashed var(--accent-line);
  animation: spin 18s linear infinite;
  mask-image: radial-gradient(circle, transparent 55%, black 56%);
}
.lens-ring.r2 { inset: 8%; animation-duration: 28s; animation-direction: reverse; border-style: solid; border-color: oklch(1 0 0 / 0.06); }
[data-mode="light"] .lens-ring.r2 { border-color: oklch(0 0 0 / 0.1); }
@keyframes spin { to { transform: rotate(360deg); } }

/* scan line */
.pc-scan {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 48%, var(--accent-line) 50%, transparent 52%);
  mix-blend-mode: screen;
  opacity: .5;
  animation: scan 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes scan {
  0%   { transform: translateY(-60%); }
  100% { transform: translateY(60%); }
}

/* corner labels */
.pc-label {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 0.14em;
  color: var(--fg-3); text-transform: uppercase;
}
.pc-label.tl { top: 18px; left: 22px; }
.pc-label.bl { bottom: 18px; left: 22px; }
.pc-label.br { bottom: 18px; right: 22px; color: var(--accent); }

/* orbit data chips */
.chip {
  position: absolute;
  z-index: 2;
  font-family: var(--font-mono); font-size: 10px;
  padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--line-2);
  background: color-mix(in oklch, var(--bg-2) 70%, transparent);
  backdrop-filter: blur(10px);
  color: var(--fg-2);
  white-space: nowrap;
  animation: chipFloat 6s ease-in-out infinite;
}
.chip .dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px; box-shadow: 0 0 8px var(--accent); }
.chip.c1 { top: 10%;  left: -2%;  animation-delay: -1s; }
.chip.c2 { top: 40%;  right: -4%; animation-delay: -3s; }
.chip.c3 { bottom: 14%; left: 3%; animation-delay: -5s; }
@keyframes chipFloat {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-6px); }
}

/* ---------- Section head ---------- */
.sec-head {
  display: grid; grid-template-columns: 1fr 2fr;
  gap: 48px; align-items: end;
  margin-bottom: 64px;
}
@media (max-width: 820px) { .sec-head { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Privacy ---------- */
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
@media (max-width: 820px) { .privacy-grid { grid-template-columns: 1fr; } }
.privacy-cell {
  background: var(--bg);
  padding: 36px 28px 32px;
  position: relative;
  min-height: 240px;
}
.privacy-cell .ico {
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid var(--accent-line);
  background: var(--accent-dim);
  display: grid; place-items: center;
  margin-bottom: 24px;
}
.privacy-cell h3 { margin-bottom: 10px; }
.privacy-cell p { font-size: 14px; margin: 0; }
.privacy-cell .tag {
  position: absolute; top: 24px; right: 24px;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--fg-3); letter-spacing: 0.14em; text-transform: uppercase;
}

/* ---------- How it works ---------- */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  padding: 32px 28px 36px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in oklch, var(--bg-2) 70%, transparent);
  min-height: 300px;
  display: flex; flex-direction: column;
}
.step .step-num {
  font-family: var(--font-mono); font-size: 11px; color: var(--accent);
  letter-spacing: 0.18em;
  margin-bottom: 22px;
}
.step h3 { margin-bottom: 10px; font-size: 20px; }
.step p { font-size: 14px; margin: 0; }
.step .viz {
  margin-top: auto;
  padding-top: 28px;
  color: var(--fg-3);
  font-family: var(--font-mono); font-size: 11px;
}
.step svg { display: block; width: 100%; height: 70px; }

/* ---- Step viz ambient animations ---- */
/* 01 — Unbox: box floats, LED pulses, shipping rails drift inward */
.viz-unbox .viz-box { transform-origin: 100px 38px; animation: vizFloat 4.2s ease-in-out infinite; }
.viz-unbox .viz-led { animation: vizLed 1.8s ease-in-out infinite; transform-origin: 140px 46px; }
.viz-unbox .viz-rail { animation: vizRailDash 3s linear infinite; }
.viz-unbox .viz-rail.r-l { animation-direction: normal; }
.viz-unbox .viz-rail.r-r { animation-direction: reverse; }
.viz-unbox .viz-shadow { transform-origin: 100px 60px; animation: vizShadow 4.2s ease-in-out infinite; }

@keyframes vizFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}
@keyframes vizLed {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 2px var(--accent)); }
  50%      { opacity: .4; filter: none; }
}
@keyframes vizRailDash {
  0%   { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -10; }
}
@keyframes vizShadow {
  0%, 100% { transform: scaleX(1); opacity: .15; }
  50%      { transform: scaleX(.85); opacity: .22; }
}

/* 02 — Connect: docs pulse in sequence, indexing bar fills on GNOS3 target */
.viz-connect .viz-doc { transition: stroke .3s; }
.viz-connect .viz-doc.d1 { animation: vizDocPulse 3.6s ease-in-out infinite;       animation-delay: 0s; }
.viz-connect .viz-doc.d2 { animation: vizDocPulse 3.6s ease-in-out infinite; animation-delay: 0.35s; }
.viz-connect .viz-doc.d3 { animation: vizDocPulse 3.6s ease-in-out infinite; animation-delay: 0.7s; }
.viz-connect .viz-target { animation: vizTargetGlow 3.6s ease-in-out infinite; transform-origin: 170px 38px; }

@keyframes vizDocPulse {
  0%, 100% { stroke: currentColor; }
  20%, 40% { stroke: var(--accent); }
}
@keyframes vizTargetGlow {
  0%, 100% { filter: none; }
  45%, 75% { filter: drop-shadow(0 0 4px var(--accent)); }
}

/* 03 — Ask: cursor blinks, response "types" in, dots bounce */
.viz-ask .viz-cursor { animation: vizBlink 1.1s steps(2) infinite; }
.viz-ask .viz-stream { transform-origin: 48px 46px; animation: vizType 4.5s cubic-bezier(.4,.7,.5,1) infinite; }
.viz-ask .viz-typed  { transform-origin: 22px 24px; animation: vizTypedPulse 4.5s ease-in-out infinite; }
.viz-ask .viz-dot    { transform-origin: center; animation: vizDotBounce 1.2s ease-in-out infinite; }
.viz-ask .viz-dot.d1 { animation-delay: 0s; }
.viz-ask .viz-dot.d2 { animation-delay: 0.15s; }
.viz-ask .viz-dot.d3 { animation-delay: 0.3s; }

@keyframes vizBlink {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes vizType {
  0%       { transform: scaleX(0); opacity: 0; }
  15%      { opacity: 1; }
  55%      { transform: scaleX(1); }
  80%, 100%{ transform: scaleX(1); opacity: 0.25; }
}
@keyframes vizTypedPulse {
  0%, 100% { opacity: .25; }
  50%      { opacity: .5; }
}
@keyframes vizDotBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30%           { transform: translateY(-3px); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .viz-unbox *, .viz-connect *, .viz-ask * { animation: none !important; }
}

/* ---------- Use cases ---------- */
.cases {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 960px) { .cases { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .cases { grid-template-columns: 1fr; } }
.case {
  position: relative;
  padding: 24px 24px 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in oklch, var(--bg-2) 40%, transparent);
  transition: border-color .2s, background .2s;
  overflow: hidden;
}
.case:hover { border-color: var(--accent-line); }
.case .sector {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--fg-3);
}
.case h3 { margin-top: 12px; margin-bottom: 8px; font-size: 18px; }
.case p { font-size: 13px; margin: 0; color: var(--fg-2); }
.case .doc-stack {
  margin-top: 24px;
  height: 60px;
  position: relative;
}
.case .doc {
  position: absolute;
  width: 44px; height: 56px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: color-mix(in oklch, var(--bg-3) 80%, transparent);
}
.case .doc::after {
  content: ""; position: absolute; left: 6px; right: 6px; top: 10px;
  height: 1px; background: var(--line-2);
  box-shadow: 0 6px 0 var(--line-2), 0 12px 0 var(--line-2), 0 18px 0 var(--line-2);
}
.case .doc.a { left: 0;  transform: rotate(-8deg); }
.case .doc.b { left: 30px; top: 2px; transform: rotate(-2deg); }
.case .doc.c { left: 60px; top: 0px; transform: rotate(6deg); border-color: var(--accent-line); }

/* ---------- Compare ---------- */
.compare {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: color-mix(in oklch, var(--bg-2) 40%, transparent);
}
.compare-head, .compare-row {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr;
}
.compare-head {
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--fg-3);
}
.compare-head > div, .compare-row > div {
  padding: 20px 28px;
}
.compare-row {
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.compare-row:last-child { border-bottom: 0; }
.compare-row .attr { color: var(--fg); font-weight: 500; }
.compare-row .cloud { color: var(--fg-3); font-family: var(--font-mono); font-size: 13px; }
.compare-row .gnos3 { color: var(--fg); font-family: var(--font-mono); font-size: 13px; position: relative; }
.compare-head .gnos3-col { color: var(--accent); border-left: 1px solid var(--accent-line); background: var(--accent-dim); }
.compare-row .gnos3 { border-left: 1px solid var(--accent-line); background: color-mix(in oklch, var(--accent-dim) 40%, transparent); }
.compare-row .check::before {
  content: "";
  display: inline-block; width: 14px; height: 14px; margin-right: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-dim);
  vertical-align: -3px;
}
.compare-row .x::before {
  content: "";
  display: inline-block; width: 12px; height: 12px; margin-right: 10px;
  border: 1px solid var(--fg-3);
  vertical-align: -2px;
  transform: rotate(45deg);
}
@media (max-width: 740px) {
  /* Restructure as a stack of self-contained cards, one per dimension.
     Each card shows the attribute, then two labeled halves (CLOUD / GNOS3). */
  .compare { border: 0; background: transparent; display: flex; flex-direction: column; gap: 12px; }
  .compare-head { display: none; }

  .compare-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "attr attr" "cloud gnos3";
    border: 1px solid var(--line);
    border-radius: 14px;
    background: color-mix(in oklch, var(--bg-2) 60%, transparent);
    overflow: hidden;
  }

  .compare-row .attr {
    grid-area: attr;
    padding: 16px 18px 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fg-3);
    font-weight: 400;
    border-bottom: 1px solid var(--line);
  }

  .compare-row .cloud,
  .compare-row .gnos3 {
    padding: 12px 16px 16px;
    font-size: 13px;
    line-height: 1.45;
  }
  .compare-row .cloud { grid-area: cloud; color: var(--fg-2); }
  .compare-row .gnos3 {
    grid-area: gnos3;
    border-left: 1px solid var(--accent-line);
    border-top: 0;
    background: var(--accent-dim);
    color: var(--fg);
  }

  /* Tiny label above each half — uses ::after so we don't clash with
     the existing check/x ::before icons. */
  .compare-row .cloud::after,
  .compare-row .gnos3::after {
    content: "CLOUD";
    display: block;
    order: -1;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.22em;
    color: var(--fg-3);
    margin-bottom: 8px;
  }
  .compare-row .gnos3::after { content: "GNOS3"; color: var(--accent); }
  .compare-row .cloud,
  .compare-row .gnos3 { display: flex; flex-direction: column; }

  /* Compact the existing check/x pseudo-icons and inline them with text */
  .compare-row .check::before {
    width: 10px; height: 10px; margin-right: 8px;
    vertical-align: -1px;
  }
  .compare-row .x::before {
    width: 9px; height: 9px; margin-right: 8px;
    vertical-align: -1px;
  }
}

/* ---------- Contact / Book a call ---------- */
.contact {
  display: grid; grid-template-columns: 1fr 1.05fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: color-mix(in oklch, var(--bg-2) 70%, transparent);
}
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact-left {
  padding: clamp(36px, 5vw, 64px);
  border-right: 1px solid var(--line);
  background:
    radial-gradient(120% 120% at 0% 0%, var(--accent-dim), transparent 55%);
}
@media (max-width: 900px) { .contact-left { border-right: 0; border-bottom: 1px solid var(--line); } }
.contact-points {
  list-style: none; padding: 0; margin: 32px 0 0;
  display: flex; flex-direction: column; gap: 12px;
  font-size: 14px; color: var(--fg-2);
}
.contact-points .cdot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); margin-right: 12px; vertical-align: 2px;
  box-shadow: 0 0 8px var(--accent-dim);
}
.contact-meta {
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; gap: 40px; flex-wrap: wrap;
}
.contact-meta > div { display: flex; flex-direction: column; gap: 6px; }
.contact-meta .k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-3); }
.contact-meta .v { font-size: 14px; color: var(--fg); }
.contact-meta a { font-size: 14px; color: var(--accent); text-decoration: none; }
.contact-meta a:hover { text-decoration: underline; }

.contact-form {
  padding: clamp(32px, 4vw, 48px);
  display: flex; flex-direction: column; gap: 20px;
}
.form-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 20px; border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.form-body { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.field label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-3); }
.field input, .field select, .field textarea {
  font-family: var(--font-sans); font-size: 14px; color: var(--fg);
  background: color-mix(in oklch, var(--bg-3) 50%, transparent);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 80px; font-family: var(--font-sans); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent-line);
  background: color-mix(in oklch, var(--bg-3) 70%, transparent);
}
.field input::placeholder, .field textarea::placeholder { color: var(--fg-3); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--fg-3) 50%), linear-gradient(-45deg, transparent 50%, var(--fg-3) 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.form-actions .btn { cursor: pointer; font-family: var(--font-mono); border: 1px solid var(--accent); }
.sent { padding: 40px 12px; text-align: center; }
.sent-ico { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--accent-line); background: var(--accent-dim); display: grid; place-items: center; margin: 0 auto; }

/* ---------- Footer CTA ---------- */
.cta-final {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(48px, 8vw, 96px);
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 0% 0%, var(--accent-dim), transparent 50%),
    color-mix(in oklch, var(--bg-2) 70%, transparent);
  text-align: center;
}
.cta-final h2 { font-size: clamp(36px, 5vw, 72px); max-width: 18ch; margin: 0 auto 16px; }
.cta-final p { max-width: 52ch; margin: 0 auto 36px; }
.cta-final .hero-cta { justify-content: center; }

footer.foot {
  border-top: 1px solid var(--line);
  padding: 40px 0 60px;
  margin-top: 0;
}
.foot-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-3); letter-spacing: 0.12em; text-transform: uppercase;
}
.foot-inner a { color: inherit; text-decoration: none; }
.foot-inner a:hover { color: var(--fg); }
.foot-links { display: flex; gap: 28px; flex-wrap: wrap; }

/* ===========================================================
   MOBILE OPTIMIZATIONS
   =========================================================== */
@media (max-width: 1024px) {
  :root {
    --pad: clamp(18px, 5vw, 32px);
  }
  .section { padding: clamp(60px, 8vh, 96px) 0; }

  /* Nav: drop link list on mobile, keep logo + CTA */
  .nav-inner { height: 56px; }
  .nav-links { display: none; }
  .nav-cta { padding: 8px 14px; font-size: 11px; letter-spacing: 0.06em; }
  .nav-cta .arrow, .nav-cta::after { display: none; }

  /* Hero: tighter headline + spacing */
  .hero { padding-top: clamp(32px, 6vh, 80px); }
  .hero h1 { font-size: clamp(36px, 10.5vw, 56px); }
  .hero-sub { margin-top: 20px; font-size: 15px; }
  .hero-cta { gap: 10px; margin-top: 28px; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; min-width: 0; padding: 13px 18px; font-size: 12px; }

  /* Stage: slightly contained */
  .stage { aspect-ratio: 1 / 0.95; max-width: 460px; margin: 0 auto; }

  /* Buttons: a touch smaller + readable */
  .btn { padding: 12px 16px; font-size: 12px; }

  /* Section headings scale */
  h1 { font-size: clamp(36px, 9vw, 56px); }
  h2 { font-size: clamp(28px, 7vw, 44px); }
  .eyebrow { font-size: 10px; letter-spacing: 0.14em; }

  /* Privacy / steps / cases cards: generous spacing on single col */
  .privacy-cell, .step, .case { padding: 22px; }
  .privacy-cell h3, .step h3 { font-size: 17px; }

  /* Compare row padding */
  .compare-row > div, .compare-head > div { padding: 14px 18px; }

  /* Contact form: comfortable tap targets */
  .contact-form { padding: 28px 22px; }
  .field input, .field select, .field textarea { padding: 12px 14px; font-size: 16px; /* avoid iOS zoom */ }
  .form-head { font-size: 18px; }

  /* Footer */
  footer.foot { padding: 28px 0 48px; }
  .foot-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .foot-links { gap: 18px; }

  /* Scroll rail: thinner, still snug to edge */
  .scroll-rail { width: 1.5px; }

  /* Step connector: horizontal → vertical on single col */
  .steps::before { left: 30px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
}

@media (max-width: 520px) {
  .hero h1 { font-size: clamp(32px, 11vw, 48px); line-height: 1.04; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .wrap { padding: 0 18px; }
  .contact-form { padding: 24px 18px; }
  .stage { max-width: 360px; }

  /* Keep logo text visible but smaller */
  .logo { font-size: 13px; gap: 8px; }
  .logo-mark { width: 20px; height: 20px; }
}

/* ===== FX (toggleable effects) ===== */

/* 1. Device parallax — JS sets --pxDeg / --pyDeg / --pxPx / --pyPx directly */
@property --pxDeg { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
@property --pyDeg { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
@property --pxPx  { syntax: "<length>"; inherits: true; initial-value: 0px; }
@property --pyPx  { syntax: "<length>"; inherits: true; initial-value: 0px; }
.fx-device-parallax .device {
  transform: perspective(900px) rotateX(var(--pyDeg)) rotateY(var(--pxDeg)) translateZ(0);
  transform-style: preserve-3d;
}
.fx-device-parallax .stage-bg {
  transform: translate3d(var(--pxPx), var(--pyPx), 0);
}

/* 2. Tile ripple — near-cursor tiles brighten via radial mask overlay */
.fx-tile-ripple .stage-bg::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(120px 120px at var(--mx, 50%) var(--my, 50%),
    color-mix(in oklch, var(--accent) 22%, transparent), transparent 70%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity .3s;
}
.fx-tile-ripple .stage:hover .stage-bg::after { opacity: 1; }

/* 3. Magnetic CTA */
.fx-magnetic-cta .btn.primary,
.fx-magnetic-cta .nav-cta {
  transition: transform .15s ease-out, border-color .2s, background .2s, box-shadow .2s;
  will-change: transform;
}

/* 4. Nav link scrub underline */
.nav-links a { position: relative; }
.fx-nav-scrub .nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.fx-nav-scrub .nav-links a:hover::after { transform: scaleX(1); }

/* 5. Card lift + glow */
.fx-card-lift .privacy-cell,
.fx-card-lift .case {
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s, box-shadow .35s, background .35s, opacity .35s;
}
.fx-card-lift .privacy-cell:hover,
.fx-card-lift .case:hover {
  transform: translateY(-3px);
  border-color: var(--accent-line);
  box-shadow: 0 20px 60px -30px color-mix(in oklch, var(--accent) 40%, transparent),
              0 0 0 1px color-mix(in oklch, var(--accent) 20%, transparent) inset;
}
/* When both stagger and lift are on, keep stagger opacity but allow hover transform */
.fx-card-lift.fx-card-stagger .privacy-cell.in:hover,
.fx-card-lift.fx-card-stagger .case.in:hover {
  transform: translateY(-3px);
}
.fx-card-lift .privacy-cell:hover .ico {
  transform: scale(1.08) rotate(-4deg);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.fx-card-lift .privacy-cell .ico { transition: transform .35s; }

/* 6. Card stagger on scroll-in */
.fx-card-stagger .privacy-cell,
.fx-card-stagger .case,
.fx-card-stagger .step {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1);
}
.fx-card-stagger .privacy-cell.in,
.fx-card-stagger .case.in,
.fx-card-stagger .step.in {
  opacity: 1; transform: none;
}

/* 7. Step connector draw — draws a line under the step row as it enters */
.steps { position: relative; }
.fx-step-draw .steps::before {
  content: "";
  position: absolute;
  left: 6%; right: 6%; top: 50%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent-line), transparent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.4s cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
  opacity: .55;
}
.fx-step-draw .steps.in::before { transform: scaleX(1); }
@media (max-width: 900px) {
  .fx-step-draw .steps::before { display: none; }
}

/* 8. Row reveal — check/cross pop in */
.fx-row-bounce .compare-row .check::before {
  transform: scale(0);
  transition: transform .5s cubic-bezier(.5, 1.6, .4, 1);
}
.fx-row-bounce .compare-row.in .check::before {
  transform: scale(1);
}
.fx-row-bounce .compare-row .x::before {
  transform: scale(0) rotate(45deg);
  transition: transform .5s cubic-bezier(.5, 1.6, .4, 1);
}
.fx-row-bounce .compare-row.in .x::before {
  transform: scale(1) rotate(45deg);
}

/* 9. Hero backdrop drift (scroll-linked) — composes with device parallax if both on */
@property --scrollPx { syntax: "<length>"; inherits: true; initial-value: 0px; }
.fx-tile-drift .stage-bg {
  transform: translateY(var(--scrollPx));
}
.fx-tile-drift.fx-device-parallax .stage-bg {
  transform: translate3d(var(--pxPx), calc(var(--pyPx) + var(--scrollPx)), 0);
}

/* 10. Scroll rail */
.scroll-rail {
  position: fixed; left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--line);
  z-index: 50;
  display: none;
  pointer-events: none;
}
.fx-scroll-rail .scroll-rail { display: block; }
.scroll-rail-fill {
  position: absolute; left: 0; right: 0; top: 0;
  height: calc(var(--scrollPct, 0) * 1%);
  background: linear-gradient(to bottom, var(--accent), color-mix(in oklch, var(--accent) 0%, transparent));
  box-shadow: 0 0 12px var(--accent-dim);
}

/* Small helpers */
.hairline { height: 1px; background: var(--line); width: 100%; }
.muted { color: var(--fg-3); }
.mono { font-family: var(--font-mono); }

/* Contact form: submit states, honeypot, error */
.field.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.form-actions .btn.primary[disabled] { opacity: .65; cursor: wait; }
.cf-spinner {
  display: inline-block; width: 12px; height: 12px; margin-left: 8px;
  border: 1.5px solid currentColor; border-top-color: transparent;
  border-radius: 50%; animation: cfSpin .8s linear infinite;
  vertical-align: -1px;
}
@keyframes cfSpin { to { transform: rotate(360deg); } }
.cf-error {
  font-size: 12px; letter-spacing: 0.06em;
  color: oklch(0.72 0.14 28); /* muted red that reads on the dark background */
  padding: 10px 12px;
  border: 1px solid oklch(0.72 0.14 28 / 0.35);
  border-radius: 8px;
  background: oklch(0.72 0.14 28 / 0.08);
}
