/* ═══════════════════════════════════════════════════════════
   voki-work download site — "The Workbench" dark theme
   ═══════════════════════════════════════════════════════════ */

[hidden] { display: none !important; }

:root {
  --bg: #0a0c10;
  --bg-alt: #0c0f14;
  --bg-card: #11151c;
  --bg-card-hover: #151a23;
  --line: rgba(255, 255, 255, 0.09);
  --line-accent: rgba(77, 220, 151, 0.35);
  --text: #e8ecf1;
  --text-dim: #9aa5b1;
  --text-faint: #5c6672;
  --accent: #3ddc97;
  --accent-dim: rgba(61, 220, 151, 0.4);
  --cyan: #4cc9f0;
  --grad: linear-gradient(92deg, var(--accent), var(--cyan));
  --font-display: "Sora", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --radius: 14px;
  --container: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.mono { font-family: var(--font-mono); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.micro-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

a { color: inherit; }

.link-accent {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-dim);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}
.link-accent:hover { border-color: var(--accent); }

/* grain overlay */
.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  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='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

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

/* ── Buttons ─────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-accent {
  background: var(--grad);
  color: #06120c;
  box-shadow: 0 4px 24px rgba(61, 220, 151, 0.25);
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(61, 220, 151, 0.4);
}
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ── Nav ─────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 12, 16, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}
.nav-wordmark { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.nav-version {
  font-size: 10px;
  color: var(--text-faint);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 2px 9px;
  margin-left: 6px;
}
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  font-size: 14px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: none;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text-dim);
  transition: transform 0.2s, opacity 0.2s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  z-index: 80;
  flex-direction: column;
  padding: 12px 20px 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 12, 16, 0.97);
  backdrop-filter: blur(14px);
}
.mobile-menu a {
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 15px;
  text-decoration: none;
}
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu a:hover { color: var(--text); }
.lang-toggle {
  background: none;
  border: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 99px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.lang-toggle:hover { color: var(--accent); border-color: var(--accent-dim); }

/* ── Hero ────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 0 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 68% 32%, rgba(76, 201, 240, 0.07), transparent 60%),
    radial-gradient(ellipse 60% 50% at 25% 70%, rgba(61, 220, 151, 0.06), transparent 60%),
    linear-gradient(to bottom, transparent 60%, var(--bg));
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 30%, transparent 75%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas:
    "copy shot"
    "dl   dl";
  gap: 48px 56px;
  align-items: center;
}
.hero-copy { grid-area: copy; }
.hero-copy h1 {
  font-size: clamp(38px, 4.8vw, 58px);
  font-weight: 800;
  margin-bottom: 22px;
}
html[lang="zh-CN"] .hero-copy h1 { font-size: clamp(34px, 4.4vw, 52px); }
.hero-sub {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 22px;
}
.hero-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-tags li {
  font-size: 11.5px;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 5px 13px;
  background: rgba(17, 21, 28, 0.5);
}

/* hero app shot */
.hero-shot { grid-area: shot; }
.app-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255,255,255,0.02);
  transform: perspective(1400px) rotateY(-7deg) rotateX(2.5deg);
  transition: transform 0.5s ease;
}
.app-frame:hover { transform: perspective(1400px) rotateY(-2deg) rotateX(1deg); }
.app-titlebar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #0e1218;
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #ff5f57; } .dot-y { background: #febc2e; } .dot-g { background: #28c840; }
.app-title { margin-left: 10px; font-size: 11px; color: var(--text-faint); }
.app-img { display: block; width: 100%; height: auto; }

/* ── Download module ─────────────────────────────────── */

.dl { grid-area: dl; }
.dl-head { margin-bottom: 26px; }
.dl-head h2 { font-size: clamp(24px, 3vw, 32px); }
.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.dl-card {
  position: relative;
  background: rgba(17, 21, 28, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0.72;
  transition: opacity 0.3s, border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.dl-card:hover { opacity: 1; background: var(--bg-card-hover); }
.dl-card.is-recommended {
  opacity: 1;
  border-color: var(--accent-dim);
  background: var(--bg-card);
  box-shadow: 0 0 0 1px var(--accent-dim), 0 12px 48px rgba(61, 220, 151, 0.12);
}
.dl-rec {
  position: absolute;
  top: -11px;
  left: 18px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #06120c;
  background: var(--grad);
  border-radius: 99px;
  padding: 3px 11px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.dl-card.is-recommended .dl-rec { opacity: 1; transform: translateY(0); }
.dl-card-top { display: flex; align-items: center; gap: 14px; }
.dl-icon { width: 30px; height: 30px; color: var(--text); flex: none; }
.dl-card h3 { font-size: 18px; }
.dl-meta { font-size: 11px; color: var(--text-faint); margin-top: 2px; }
.dl-card .dl-primary { justify-content: center; width: 100%; }
.dl-alt {
  font-size: 11.5px;
  color: var(--text-faint);
  text-align: center;
  margin-top: auto;
}
.dl-alt a { color: var(--text-dim); text-decoration: none; border-bottom: 1px dashed var(--line); }
.dl-alt a:hover { color: var(--accent); }

.seg {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.seg-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 11.5px;
  padding: 7px 4px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.seg-btn + .seg-btn { border-left: 1px solid var(--line); }
.seg-btn.is-active { background: rgba(61, 220, 151, 0.12); color: var(--accent); }

.dl-other { margin-top: 20px; font-size: 14px; text-align: center; }
.dl-other a { color: var(--text-dim); text-decoration: none; }
.dl-other a:hover { color: var(--accent); }

/* scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-faint);
  text-decoration: none;
  font-size: 10px;
  letter-spacing: 0.25em;
}
.scroll-hint svg { width: 11px; animation: hintBob 1.8s ease-in-out infinite; }
@keyframes hintBob {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(5px); opacity: 1; }
}

/* ── Sections ────────────────────────────────────────── */

.section { padding: 130px 0; position: relative; scroll-margin-top: 70px; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 64px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 18px; }
.section-sub { color: var(--text-dim); font-size: 16.5px; }

.hero-link { margin-top: 18px; font-size: 13.5px; }

/* ── Enterprise value ────────────────────────────────── */

.value-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 84px;
}
.value-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 21, 28, 0.62);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.value-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 30px;
  right: 30px;
  height: 1px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.25s;
}
.value-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-3px);
  box-shadow: 0 16px 44px rgba(61, 220, 151, 0.08);
}
.value-card:hover::before { opacity: 1; }
.value-n {
  display: block;
  margin-bottom: 14px;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.value-card h3 { font-size: 22px; margin-bottom: 12px; }
.value-card p { color: var(--text-dim); font-size: 14.5px; }
.value-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
}
.value-tags li {
  font-size: 10.5px;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 4px 10px;
  background: rgba(10, 12, 16, 0.45);
}

.rollout {
  margin-bottom: 90px;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 60% 120% at 10% 0%, rgba(61, 220, 151, 0.06), transparent 60%),
    rgba(17, 21, 28, 0.5);
}
.rollout-head { margin-bottom: 34px; }
.rollout-head .micro-label { margin-bottom: 12px; }
.rollout-head h3 { font-size: 24px; max-width: 600px; }
.rollout-flow {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.rollout-flow li {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.rollout-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-bottom: 4px;
  border: 1px solid var(--line-accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 10px;
}
.rollout-flow b { font-family: var(--font-display); font-size: 15px; }
.rollout-flow span:last-child { color: var(--text-faint); font-size: 12.5px; line-height: 1.6; }

.scenario-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 30px;
}
.scenario-head h3 { font-size: 28px; }
.scenario-head p { color: var(--text-dim); font-size: 14.5px; max-width: 520px; }
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 64px;
}
.scenario-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 21, 28, 0.55);
  transition: border-color 0.25s, transform 0.25s;
}
.scenario-card:hover { border-color: var(--line-accent); transform: translateY(-2px); }
.scenario-k {
  display: block;
  margin-bottom: 12px;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--cyan);
}
.scenario-card h4 { font-size: 19px; margin-bottom: 10px; }
.scenario-card p { color: var(--text-dim); font-size: 14px; }
.scenario-out {
  display: block;
  width: 100%;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 10.5px;
  color: var(--accent);
}
.scenario-card .scenario-out { margin-top: 18px; }
.trust.enterprise-trust { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ── Harness layers ──────────────────────────────────── */

.harness-parts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 64px;
}
.harness-parts li {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(17, 21, 28, 0.6);
  transition: border-color 0.25s, transform 0.25s;
}
.harness-parts li:hover { border-color: var(--line-accent); transform: translateY(-2px); }
.harness-k { font-size: 10px; letter-spacing: 0.2em; color: var(--accent); }
.harness-parts b { font-family: var(--font-display); font-size: 15px; }
.harness-parts i { font-style: normal; font-size: 12.5px; color: var(--text-faint); }

/* hub diagram */
.hub-wrap { margin: 0 auto 90px; max-width: 820px; }
.hub-wrap svg { width: 100%; height: auto; overflow: visible; }
.hub-core-t { fill: var(--text); font-size: 15px; font-weight: 500; }
.hub-core-s { fill: var(--text-faint); font-size: 9px; letter-spacing: 0.3em; }
.hub-node-t { fill: var(--cyan); font-size: 12px; }
.hub-chip rect { fill: var(--bg-card); stroke: var(--line); stroke-width: 1; transition: stroke 0.25s, fill 0.25s; }
.hub-chip text { fill: var(--text-dim); font-size: 12.5px; font-family: var(--font-mono); transition: fill 0.25s; }
.hub-chip:hover rect { stroke: var(--accent); fill: rgba(61, 220, 151, 0.08); }
.hub-chip:hover text { fill: var(--accent); }

/* SVG draw + pop animations */
.draw { stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 1.4s ease; }
.in-view .draw.d1 { stroke-dashoffset: 0; }
.in-view .draw.d2 { stroke-dashoffset: 0; transition-delay: 0.7s; }
.pop { opacity: 0; transform: scale(0.6); transform-box: fill-box; transform-origin: center; transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.in-view .pop { opacity: 1; transform: scale(1); }
.in-view .pop.p0 { transition-delay: 0.1s; }
.in-view .pop.p1 { transition-delay: 0.55s; }
.in-view .pop.p2 { transition-delay: 1.15s; }
.in-view .pop.p3 { transition-delay: 1.4s; }

/* split blocks */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 60px;
  align-items: center;
  margin-bottom: 90px;
}
.split-copy h3 { font-size: 26px; margin-bottom: 14px; }
.split-copy p { color: var(--text-dim); margin-bottom: 22px; }

.tree {
  font-size: 13px;
  line-height: 1.9;
  color: var(--text-dim);
  background: #0d1015;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent-dim);
  border-radius: 10px;
  padding: 20px 24px;
  overflow-x: auto;
}

.shot-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.shot-card img { display: block; width: 100%; height: auto; }
.shot-card figcaption {
  padding: 12px 16px;
  font-size: 12.5px;
  color: var(--text-faint);
  border-top: 1px solid var(--line);
  text-align: center;
}

/* capability grid */
.cap-wrap { max-width: 980px; margin: 0 auto; }
.cap-title { font-size: 22px; text-align: center; margin-bottom: 34px; }
.cap-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}
.cap-grid li {
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  background: rgba(17, 21, 28, 0.6);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  transition: border-color 0.25s, transform 0.25s;
}
.cap-grid li:hover { border-color: var(--line-accent); transform: translateY(-2px); }
.cap-glyph {
  grid-row: 1 / 3;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: var(--accent);
  border: 1px solid var(--line-accent);
  border-radius: 9px;
  background: rgba(61, 220, 151, 0.06);
}
.cap-grid b { font-family: var(--font-display); font-size: 14px; }
.cap-grid i { font-style: normal; font-size: 12px; color: var(--text-faint); }
.ext-cta { text-align: center; margin-top: 36px; font-size: 16px; }
.ext-market { margin-bottom: 56px; }

/* ── Orchestration ───────────────────────────────────── */

.orch-wrap { margin: 0 auto 70px; max-width: 880px; }
.orch-wrap svg { width: 100%; height: auto; overflow: visible; }
.orch-t { fill: var(--text); font-size: 14px; }
.orch-s { fill: var(--text-faint); font-size: 10.5px; }
.orch-main text:first-of-type { fill: var(--accent); }
.orch-worker rect { transition: stroke 0.3s; }
.orch-worker.w1 rect { animation: workerGlow 2.8s ease-in-out 1.2s infinite; }
.orch-worker.w2 rect { animation: workerGlow 2.8s ease-in-out 1.55s infinite; }
.orch-worker.w3 rect { animation: workerGlow 2.8s ease-in-out 1.9s infinite; }
.orch-worker.w4 rect { animation: workerGlow 2.8s ease-in-out 2.25s infinite; }
@keyframes workerGlow {
  0%, 70%, 100% { stroke: var(--line-accent); }
  20% { stroke: var(--accent); }
}
.orch-wrap figcaption {
  text-align: center;
  color: var(--text-faint);
  font-size: 12px;
  margin-top: 18px;
  letter-spacing: 0.04em;
}

.orch-shots {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 26px;
  max-width: 1000px;
  margin: 0 auto 110px;
}
.shot-b { transform: translateY(28px); }

/* marquee */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  margin: 60px 0 90px;
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 34px;
  width: max-content;
  animation: marquee 32s linear infinite;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track i { color: var(--accent); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* mode cards */
.modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 80px;
}
.mode-card {
  background: rgba(17, 21, 28, 0.6);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.mode-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(61, 220, 151, 0.1);
}
.mode-n { font-size: 12px; color: var(--accent); letter-spacing: 0.2em; display: block; margin-bottom: 12px; }
.mode-card h4 { font-size: 19px; margin-bottom: 8px; }
.mode-card p { font-size: 14px; color: var(--text-dim); }

/* trust strip */
.trust {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.trust li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(10, 12, 16, 0.5);
}
.trust svg { width: 22px; height: 22px; color: var(--cyan); margin-bottom: 8px; }
.trust b { font-family: var(--font-display); font-size: 14px; }
.trust i { font-style: normal; font-size: 12px; color: var(--text-faint); }

/* ── Footer ──────────────────────────────────────────── */

.footer { padding: 90px 0 40px; background: var(--bg); }
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--line);
}
.footer-wordmark { font-family: var(--font-display); font-weight: 800; font-size: 26px; margin-top: 12px; }
.footer-tag { font-size: 12px; color: var(--text-faint); margin-top: 4px; }
.footer-cols { display: flex; gap: 80px; }
.footer-cols h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-cols a {
  display: block;
  font-size: 14px;
  color: var(--text-dim);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-cols a:hover { color: var(--accent); }
.footer-req { font-size: 11.5px; color: var(--text-faint); padding: 22px 0 8px; }
.footer-legal { font-size: 11.5px; color: var(--text-faint); }

/* ── Reveal on scroll ────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: none; }

/* stagger children inside revealed grids */
.dl-grid.in-view .dl-card,
.modes.in-view .mode-card,
.value-grid.in-view .value-card,
.scenario-grid.in-view .scenario-card,
.trust.in-view li {
  animation: cardIn 0.6s ease backwards;
}
.dl-grid.in-view .dl-card:nth-child(2),
.modes.in-view .mode-card:nth-child(2),
.value-grid.in-view .value-card:nth-child(2),
.scenario-grid.in-view .scenario-card:nth-child(2),
.trust.in-view li:nth-child(2) { animation-delay: 0.09s; }
.dl-grid.in-view .dl-card:nth-child(3),
.modes.in-view .mode-card:nth-child(3),
.value-grid.in-view .value-card:nth-child(3),
.scenario-grid.in-view .scenario-card:nth-child(3),
.trust.in-view li:nth-child(3) { animation-delay: 0.18s; }
.value-grid.in-view .value-card:nth-child(4),
.scenario-grid.in-view .scenario-card:nth-child(4),
.trust.in-view li:nth-child(4) { animation-delay: 0.27s; }
.trust.in-view li:nth-child(5) { animation-delay: 0.36s; }
.trust.in-view li:nth-child(6) { animation-delay: 0.45s; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
/* recommended card must keep full opacity despite base dim */
.dl-grid.in-view .dl-card.is-recommended { animation-name: cardInFull; }
@keyframes cardInFull {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* ── Responsive ──────────────────────────────────────── */

@media (max-width: 1020px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "dl" "shot";
    gap: 44px;
  }
  .hero-shot { max-width: 620px; margin: 0 auto; }
  .app-frame { transform: none; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .trust.enterprise-trust { grid-template-columns: repeat(2, 1fr); }
  .rollout-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .harness-parts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { flex-direction: column; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-menu.is-open { display: flex; }
  .dl-grid { grid-template-columns: minmax(0, 1fr); }
  .dl-card { opacity: 1; }
  .modes { grid-template-columns: 1fr; }
  .value-grid, .scenario-grid { grid-template-columns: 1fr; }
  .rollout { padding: 26px; }
  .rollout-flow { grid-template-columns: 1fr; }
  .scenario-head { display: block; }
  .scenario-head p { margin-top: 10px; }
  .orch-shots { grid-template-columns: 1fr; }
  .shot-b { transform: none; }
  .footer-cols { gap: 44px; flex-wrap: wrap; }
  .section { padding: 90px 0; }
}

@media (max-width: 560px) {
  .nav-version { display: none; }
  .nav-inner { padding: 14px 20px; gap: 16px; }
  .nav-actions { gap: 10px; }
  .nav-actions .btn-sm { display: none; }
  .trust { grid-template-columns: 1fr; }
  .trust.enterprise-trust { grid-template-columns: 1fr; }
  .hero { padding-top: 110px; }
  .hero-copy h1 { font-size: 31px; }
  .hero-sub { font-size: 15px; }
  .container { padding: 0 20px; }
  .section-head h2 { font-size: 27px; }
  .value-card, .scenario-card { padding: 22px; }
  .harness-parts { grid-template-columns: 1fr; }
  .rollout { padding: 22px; }
}

/* ── Mobile entry ────────────────────────────────────── */

.mobile-entry {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 72px;
  align-items: center;
}

.mobile-entry h2 {
  margin: 18px 0;
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.mobile-entry .section-sub {
  max-width: 560px;
  margin: 0 0 28px;
}

.mobile-entry-list {
  display: grid;
  gap: 16px;
  max-width: 560px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.mobile-entry-list li {
  display: grid;
  gap: 3px;
  padding-left: 16px;
  border-left: 2px solid var(--line-accent);
}

.mobile-entry-list b {
  font-size: 15px;
  font-weight: 600;
}

.mobile-entry-list span {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
}

.mobile-entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.mobile-entry-note {
  margin: 18px 0 0;
  color: var(--text-dim);
  font-size: 11.5px;
}

.mobile-entry-visual {
  display: grid;
  justify-items: center;
  gap: 26px;
}

.mobile-phone {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(300px, 76vw);
  aspect-ratio: 9 / 18;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 36px;
  background: linear-gradient(160deg, #161b24, #0b0e13 60%);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.mobile-phone-bar {
  display: flex;
  justify-content: space-between;
  padding: 2px 8px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 10px;
}

.mobile-phone-body {
  margin-top: auto;
  margin-bottom: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-card);
}

.mobile-phone-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.mobile-phone-body h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.mobile-phone-body p {
  margin: 0 0 16px;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.6;
}

.mobile-phone-actions {
  display: flex;
  gap: 8px;
}

.mobile-phone-actions span {
  flex: 1;
  padding: 8px;
  border-radius: 9px;
  text-align: center;
  font-size: 12px;
}

.mobile-phone-actions span:first-child {
  background: var(--accent);
  color: #04120b;
  font-weight: 600;
}

.mobile-phone-actions span:last-child {
  border: 1px solid var(--line);
  color: var(--text-dim);
}

.mobile-entry-qr {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.mobile-entry-qr img {
  padding: 6px;
  border-radius: 10px;
  background: #ffffff;
}

.mobile-entry-qr span {
  max-width: 140px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .mobile-entry {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .mobile-entry-visual {
    order: -1;
  }
}

/* ── Reduced motion ──────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .draw { stroke-dashoffset: 0; transition: none; }
  .pop { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .scroll-hint svg { animation: none; }
  .orch-worker rect { animation: none; }
  .pulses { display: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}
