:root {
  --bg: #f6f7f4;
  --surface: #ffffff;
  --tint: #eef3f0;
  --tint-2: #f3f6f4;
  --ink: #0b1220;
  --ink-2: #2b3648;
  --muted: #5f6b7d;
  --line: #e2e7e3;
  --accent: #10b981;
  --accent-deep: #047857;
  --accent-soft: rgba(16, 185, 129, 0.12);
  --indigo: #6366f1;
  --violet: #7c5cdc;
  --dark: #0a0f1a;
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 12px 32px -12px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 24px 60px -24px rgba(15, 23, 42, 0.32);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

body.menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.22; }
p { margin: 0; }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }

section[id] { scroll-margin-top: 72px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 15px/1 var(--font);
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.btn:hover svg { transform: translateX(2px); }
.btn:hover { transform: translateY(-1px); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 8px 20px -10px rgba(11, 18, 32, 0.6); }
.btn-dark:hover { background: #1b2538; }
.btn-ghost { background: rgba(255, 255, 255, 0.75); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: #c9d2cc; background: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.6); }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.btn-outline-light:hover { border-color: rgba(255, 255, 255, 0.6); }

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 247, 244, 0.78);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -18px rgba(15, 23, 42, 0.35); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.nav-links { display: flex; gap: 30px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.nav-links a { position: relative; padding: 6px 0; transition: color 0.2s; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-links a.is-active::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span { width: 16px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-menu {
  display: grid;
  gap: 4px;
  padding: 12px 24px 24px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { padding: 12px 4px; font-size: 17px; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 14px; }

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(640px, 88vh, 840px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(75% 65% at 45% 45%, #000 35%, transparent 100%);
  mask-image: radial-gradient(75% 65% at 45% 45%, #000 35%, transparent 100%);
}
.hero-glow {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(38% 48% at 14% 28%, rgba(16, 185, 129, 0.17), transparent 70%),
    radial-gradient(34% 44% at 84% 36%, rgba(99, 102, 241, 0.15), transparent 70%),
    radial-gradient(30% 34% at 52% 96%, rgba(20, 184, 166, 0.12), transparent 70%);
}
.hero-canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.hero-inner { position: relative; }
.hero-copy { max-width: 610px; padding: 64px 0 80px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
  box-shadow: var(--shadow-sm);
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  animation: ping 2.2s infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero h1 {
  margin: 22px 0 22px;
  font-size: clamp(42px, 5.7vw, 72px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.hero h1 mark {
  color: inherit;
  background: linear-gradient(transparent 56%, rgba(16, 185, 129, 0.3) 56%, rgba(16, 185, 129, 0.3) 92%, transparent 92%);
  padding: 0 0.06em;
}
.lede { font-size: clamp(17px, 1.45vw, 19.5px); line-height: 1.6; color: var(--ink-2); max-width: 570px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-actions.center { justify-content: center; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 30px 0 0; padding: 0; list-style: none; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.hero-proof li { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof svg { width: 18px; height: 18px; color: var(--accent); }

.tier-badges {
  position: absolute;
  top: 50%;
  right: max(24px, calc((100% - 1200px) / 2));
  z-index: 2;
  display: grid;
  gap: clamp(20px, 4.4vh, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
  transform: translateY(-50%);
}
.tier-badges li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
  padding: 8px 14px 8px 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 6px 18px -10px rgba(15, 23, 42, 0.3);
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}
.tier-badges li.glow { transform: translateX(-4px); border-color: color-mix(in srgb, var(--tier) 45%, white); box-shadow: 0 10px 26px -12px color-mix(in srgb, var(--tier) 70%, transparent); }
.tier-num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 24px;
  border-radius: 7px;
  background: var(--tier);
  color: #fff;
  font: 700 11px/1 var(--mono);
}

/* Marquee */
.marquee { padding: 26px 0 30px; border-block: 1px solid var(--line); background: rgba(255, 255, 255, 0.55); }
.marquee-title { text-align: center; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.marquee-track {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track ul {
  display: flex;
  flex: none;
  gap: 52px;
  margin: 0;
  padding: 0 52px 0 0;
  list-style: none;
  animation: marquee 46s linear infinite;
}
.marquee-track li { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; color: #8c97a6; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* Sections */
.section { padding: clamp(80px, 10vw, 128px) 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 760px; margin-bottom: 52px; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 14px; }
.section h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.08; font-weight: 800; letter-spacing: -0.035em; }
.sub { margin-top: 18px; font-size: 17.5px; color: var(--ink-2); max-width: 680px; }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value-card {
  padding: 28px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value-card h3 { margin: 20px 0 10px; font-size: 18px; letter-spacing: -0.02em; }
.value-card p { font-size: 15px; color: var(--muted); }
.icon-tile { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-deep); }
.icon-tile svg { width: 24px; height: 24px; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip-row li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--tint-2); font-size: 13px; font-weight: 500; color: var(--ink-2); }

/* Capability tabs */
.tabs { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.tab-list { display: flex; flex-direction: column; gap: 6px; }
.tab {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--ink-2);
  font: 600 15px/1.3 var(--font);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s;
}
.tab:hover { background: rgba(255, 255, 255, 0.6); }
.tab[aria-selected="true"] { background: var(--surface); border-color: var(--line); color: var(--ink); box-shadow: var(--shadow); }
.tab-icon { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 11px; background: rgba(15, 23, 42, 0.05); color: var(--muted); transition: background-color 0.2s, color 0.2s; }
.tab-icon svg { width: 21px; height: 21px; }
.tab[aria-selected="true"] .tab-icon { background: var(--accent-soft); color: var(--accent-deep); }

.tab-panels { border-radius: 24px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); padding: 34px; }
.tab-panel { display: grid; grid-template-columns: 1fr 1.08fr; gap: 34px; align-items: center; }
.tab-panel[hidden] { display: none; }
.tab-panel.is-active { animation: panel-in 0.45s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.panel-copy h3 { font-size: 24px; letter-spacing: -0.025em; }
.panel-copy > p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }
.panel-copy .chip-row { margin-top: 18px; }
.spec { margin: 22px 0 0; }
.spec div { display: grid; grid-template-columns: 118px 1fr; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); }
.spec dt { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-deep); padding-top: 2px; }
.spec dd { margin: 0; font-size: 15px; color: var(--ink-2); }

/* Mockups */
.mock { position: relative; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-lg); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: #f7f9f8; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #dfe4e1; }
.mock-bar em { margin-left: 8px; font: 500 11.5px var(--mono); font-style: normal; color: var(--muted); }
.mock-bar.dark { background: #0f172a; border-color: #1e293b; }
.mock-bar.dark i { background: #334155; }
.mock-bar.dark em { color: #94a3b8; }
.mock-chip {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid #a7f3d0;
  background: #ecfdf5;
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 18px -10px rgba(4, 120, 87, 0.5);
}

.mock-terminal { background: #0b1220; border-color: #1e293b; }
.term { margin: 0; padding: 18px 20px 24px; min-height: 250px; font: 12.5px/1.8 var(--mono); color: #e2e8f0; }
.term code { white-space: normal; }
.term .t-line { display: block; white-space: pre-wrap; overflow-wrap: anywhere; }
.js .term .t-line { opacity: 0; transform: translateY(4px); }
.js .is-active .term .t-line { animation: line-in 0.45s var(--ease) forwards; animation-delay: calc(var(--i) * 0.32s + 0.15s); }
@keyframes line-in { to { opacity: 1; transform: none; } }
.term b { color: #34d399; font-weight: 600; }
.t-dim { color: #8b9ab0; }
.t-verify { color: #a5b4fc; margin-top: 8px; }
.t-ok { color: #34d399; font-weight: 600; }

.mock-plot svg { padding: 6px 8px 40px; }
.mock-plot .axis, .mock-split .axis { stroke: #cfd6d2; stroke-width: 1; }
.wave { fill: none; stroke-width: 2; stroke-linejoin: round; }
.wave-a { stroke: #14b8a6; opacity: 0.85; }
.wave-b { stroke: #6366f1; opacity: 0.7; }
.wave-hidden { stroke: #7c5cdc; stroke-dasharray: 5 5; opacity: 0.85; }
.wave-recon { stroke: #10b981; stroke-width: 3; opacity: 0.95; }
.js .wave-recon { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .is-active .wave-recon { animation: draw 1.8s 0.5s var(--ease) forwards; }
.legend text { font: 500 9.5px var(--font); fill: var(--muted); }
.lg-a { fill: #14b8a6; }
.lg-b { fill: #6366f1; }
.lg-h { fill: #7c5cdc; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.mock-cad { background: #fbfcfd; }
.mock-cad svg { padding: 10px 10px 48px; }
.mock-cad .paper { fill: #fbfcfd; stroke: none; }
.mock-cad .part { fill: rgba(16, 185, 129, 0.07); stroke: #0b1220; stroke-width: 1.8; stroke-linejoin: round; }
.js .mock-cad .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .is-active .mock-cad .draw { animation: draw 1.5s var(--ease) forwards; }
.mock-cad .center { stroke: #94a3b8; stroke-width: 0.8; stroke-dasharray: 6 3 1 3; fill: none; }
.mock-cad .dim { stroke: #64748b; stroke-width: 0.9; fill: none; }
.mock-cad .arrow { fill: #64748b; }
.mock-cad .dim-text { font: 600 10px var(--mono); fill: #334155; }
.mock-cad .cad-section { fill: url(#hatch); stroke: #0b1220; stroke-width: 1.6; }
.mock-cad .hatch-line { stroke: #a3afbf; stroke-width: 1; }
.mock-cad .hidden-line { stroke: #0b1220; stroke-width: 1; stroke-dasharray: 4 3; fill: none; }
.mock-cad .label { font: 700 8.5px var(--font); letter-spacing: 0.1em; fill: #64748b; }
.mock-cad .title-block rect, .mock-cad .title-block path { fill: none; stroke: #9aa6b5; stroke-width: 1; }
.mock-cad .title-block text { font: 600 8.5px var(--mono); fill: #334155; }

.mock-browser .url { margin-left: 10px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: 500 11.5px var(--mono); color: var(--ink-2); }
.browser-body { position: relative; min-height: 292px; padding: 16px; background: linear-gradient(#fff, #f8faf9); }
.sk-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.sk-logo { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, #10b981, #6366f1); }
.sk-pill { width: 64px; height: 10px; border-radius: 6px; background: #e3e8e5; }
.sk-pill.short { width: 40px; margin-left: auto; background: #0b1220; height: 22px; border-radius: 999px; }
.sk-grid { display: grid; grid-template-columns: 92px 1fr; gap: 14px; }
.sk-side { display: grid; gap: 10px; align-content: start; padding: 12px; border-radius: 12px; background: #f1f4f2; }
.sk-side span { height: 9px; border-radius: 5px; background: #d9e0dc; }
.sk-side span.short { width: 60%; }
.sk-main { display: grid; gap: 9px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.sk-row { height: 22px; border-radius: 7px; background: #f1f4f2; }
.sk-row.head { background: #e6f7f0; }
.sk-row.short { width: 70%; }
.checklist {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  gap: 7px;
  max-width: 280px;
  margin: 0;
  padding: 14px 16px;
  list-style: none;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-lg);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
}
.checklist li { display: flex; gap: 8px; align-items: baseline; }
.checklist li::before { content: "✓"; flex: none; color: var(--accent); font-weight: 800; }
.js .checklist li { opacity: 0; transform: translateX(6px); }
.js .is-active .checklist li { animation: line-in 0.4s var(--ease) forwards; }
.js .is-active .checklist li:nth-child(1) { animation-delay: 0.35s; }
.js .is-active .checklist li:nth-child(2) { animation-delay: 0.65s; }
.js .is-active .checklist li:nth-child(3) { animation-delay: 0.95s; }
.js .is-active .checklist li:nth-child(4) { animation-delay: 1.25s; }

.mock-split { display: grid; grid-template-columns: 1fr; }
.split-chart { display: grid; place-items: center; padding: 18px 28px 10px; background: #fff; }
.split-chart svg { width: 100%; max-height: 150px; }
.bar-a { fill: #a7f3d0; }
.bar-b { fill: #10b981; }
.trend { fill: none; stroke: #6366f1; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.split-code { margin: 0; padding: 16px 20px 56px; background: #0b1220; color: #e2e8f0; font: 12px/1.75 var(--mono); white-space: pre-wrap; overflow: hidden; }
.c-k { color: #c4b5fd; }
.c-n { color: #fcd34d; }
.c-s { color: #6ee7b7; }

.mock-issue { padding-bottom: 54px; background: #fff; }
.issue-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.issue-dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: #f26b5b; box-shadow: 0 0 0 4px rgba(242, 107, 91, 0.15); }
.issue-shot { position: relative; height: 120px; margin: 14px 16px; overflow: hidden; border-radius: 10px; border: 1px solid var(--line); background: #f7f9f8; }
.shot-nav { position: absolute; inset: 0 0 auto 0; height: 22px; background: #fff; border-bottom: 1px solid var(--line); }
.shot-menu { position: absolute; top: 14px; left: 28%; width: 34%; height: 40px; border-radius: 6px; background: #fff; border: 1px solid #f5b4ab; box-shadow: 0 6px 14px -8px rgba(242, 107, 91, 0.6); }
.shot-hero { position: absolute; top: 38px; left: 0; right: 0; bottom: 0; background: linear-gradient(120deg, #d1fae5, #e0e7ff); }
.diff { margin: 0 16px; padding: 14px 16px; border-radius: 10px; background: #0b1220; color: #cbd5e1; font: 11.5px/1.75 var(--mono); }
.diff code { white-space: normal; }
.diff span { display: block; white-space: pre-wrap; }
.d-h { color: #8b9ab0; }
.d-del { color: #fca5a5; background: rgba(239, 68, 68, 0.12); }
.d-add { color: #86efac; background: rgba(34, 197, 94, 0.12); }

/* Pipeline (dark) */
.section-dark {
  color: #e5e7eb;
  background:
    radial-gradient(55% 70% at 85% 0%, rgba(99, 102, 241, 0.22), transparent 62%),
    radial-gradient(50% 70% at 0% 100%, rgba(16, 185, 129, 0.18), transparent 62%),
    var(--dark);
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .kicker { color: #6ee7b7; }
.section-dark .sub { color: #a7b0bf; }
.pipeline { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; }
.pipeline::before, .pipeline::after {
  content: "";
  position: absolute;
  top: 22px;
  left: 22px;
  right: calc(20% - 22px);
  height: 2px;
  border-radius: 2px;
}
.pipeline::before { background: rgba(255, 255, 255, 0.1); }
.pipeline::after {
  background: linear-gradient(90deg, #10b981, #6366f1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.8s var(--ease) 0.25s;
}
.pipeline.is-visible::after { transform: scaleX(1); }
.pipeline li { position: relative; }
.step-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #111827;
  color: #fff;
  font: 700 15px/1 var(--mono);
  transition: background 0.5s, box-shadow 0.5s, border-color 0.5s;
  transition-delay: calc(var(--d) * 0.32s + 0.35s);
}
.pipeline.is-visible .step-dot { border-color: transparent; background: linear-gradient(135deg, #10b981, #6366f1); box-shadow: 0 0 0 7px rgba(16, 185, 129, 0.12); }
.pipeline h3 { margin: 22px 0 8px; font-size: 19px; letter-spacing: -0.02em; }
.pipeline p { font-size: 14.5px; color: #a7b0bf; }
.gate-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 56px 0 0; padding: 26px 0 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.gate-row li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.04); font-size: 13.5px; font-weight: 500; color: #d7dce4; }
.gate-row li::before { content: "✓"; color: #34d399; font-weight: 800; }

/* Difficulty */
.diff-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 56px; align-items: center; }
.diff-copy .sub + .sub { margin-top: 14px; }
.slider-card { margin-top: 30px; padding: 22px 22px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); }
.slider-card label { display: block; margin-bottom: 14px; font-weight: 700; font-size: 15px; }
.slider-card input[type="range"] { width: 100%; accent-color: var(--accent); cursor: pointer; }
.slider-ends { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
#ladder-strength-label { font-weight: 700; color: var(--ink); }
.readout { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15.5px; color: var(--ink-2); }
.readout strong { color: var(--accent-deep); }

.chart-card { margin: 0; padding: 22px 22px 18px; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.chart-card svg { width: 100%; height: auto; }
.chart-card figcaption { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: 12.5px; color: var(--ink-2); }
.legend-item { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; }
.lg-zone { width: 16px; height: 10px; border-radius: 2px; background: rgba(16, 185, 129, 0.16); border: 1px dashed rgba(4, 120, 87, 0.5); }
.lg-bar { width: 12px; height: 10px; border-radius: 2px; background: var(--accent); }
.lg-line { width: 18px; border-top: 2px dashed var(--indigo); }
.lg-dot { width: 10px; height: 10px; border-radius: 50%; border: 2.5px solid var(--indigo); background: #fff; }
.chart-card .note { width: 100%; color: var(--muted); font-size: 12px; }
#ladder-chart .zone { fill: rgba(16, 185, 129, 0.09); }
#ladder-chart .zone-edge { stroke: rgba(4, 120, 87, 0.35); stroke-dasharray: 3 4; }
#ladder-chart .zone-label { font: 700 11px var(--font); fill: var(--accent-deep); }
#ladder-chart .grid { stroke: #e8ece9; }
#ladder-chart .tick { font: 500 11px var(--font); fill: #7b8794; }
#ladder-chart .axis-label { font: 600 11.5px var(--font); fill: var(--muted); }
#ladder-chart .bar { fill: #d6dde3; transition: fill 0.3s; }
#ladder-chart .bar.in-zone { fill: var(--accent); }
#ladder-chart .ref-line { fill: none; stroke: var(--indigo); stroke-width: 2; stroke-dasharray: 5 4; }
#ladder-chart .anchor { fill: #fff; stroke: var(--indigo); stroke-width: 2.5; }
#ladder-chart .anchor-label { font: 700 11px var(--font); fill: #4338ca; paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }

/* Deliverables */
.deliv-grid { display: grid; grid-template-columns: 1fr 1fr 1.12fr; gap: 20px; }
.deliv-card { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.deliv-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.deliv-card h3 { position: relative; padding-top: 18px; font-size: 18px; letter-spacing: -0.02em; }
.deliv-card h3::before { content: ""; position: absolute; top: 0; left: 0; width: 30px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--indigo)); }
.deliv-card p { margin-top: 10px; font-size: 15px; color: var(--muted); }
.tree-card { grid-column: 3; grid-row: 1 / span 2; display: flex; align-items: center; padding: 0; overflow: hidden; border-color: #1e293b; background: #0b1220; }
.tree-card:hover { transform: none; }
.tree { margin: 0; padding: 24px 24px; overflow-x: auto; font: 12.5px/1.85 var(--mono); color: #cbd5e1; }
.tr-dir { color: #6ee7b7; font-weight: 600; }
.tr-c { color: #64748b; }

/* Benchmarks */
.bench-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bench-group { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); }
.bench-group h3 { margin-bottom: 16px; font-size: 16.5px; letter-spacing: -0.015em; }
.bench-group .chip-row li { background: #fff; font-weight: 600; }

/* Research */
.research-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.paper-card { display: flex; flex-direction: column; padding: 28px; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.paper-tag { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-deep); }
.paper-card h3 { margin: 10px 0 12px; font-size: 19px; line-height: 1.3; letter-spacing: -0.02em; }
.paper-card > p:not(.paper-tag) { color: var(--muted); font-size: 15px; }
.metrics { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 22px 0 24px; }
.metrics div { display: grid; grid-template-columns: 104px 1fr; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: var(--tint); }
.metrics dt { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; color: var(--accent-deep); line-height: 1.15; white-space: nowrap; }
.metrics dd { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
/* Engagement */
.engage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.engage-card { position: relative; overflow: hidden; padding: 30px 28px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.engage-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(16, 185, 129, 0.16), transparent 70%); transition: transform 0.5s var(--ease); }
.engage-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.engage-card:hover::after { transform: scale(1.3); }
.engage-num { font: 700 13px var(--mono); color: var(--accent-deep); }
.engage-card h3 { margin: 14px 0 10px; font-size: 22px; letter-spacing: -0.025em; }
.engage-card p { color: var(--muted); font-size: 15.5px; }

/* CTA + footer */
.cta {
  padding: clamp(84px, 10vw, 124px) 0;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(60% 110% at 50% 0%, rgba(16, 185, 129, 0.3), transparent 62%),
    radial-gradient(45% 90% at 100% 100%, rgba(99, 102, 241, 0.32), transparent 62%),
    var(--dark);
}
.cta h2 { max-width: 820px; margin-inline: auto; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.08; font-weight: 800; letter-spacing: -0.035em; }
.cta p { max-width: 640px; margin: 18px auto 0; font-size: 17.5px; color: #b7c0cd; }
.footer { padding: 30px 0 34px; background: var(--dark); border-top: 1px solid rgba(255, 255, 255, 0.08); color: #9aa4b2; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer .brand { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-note { width: 100%; font-size: 12.5px; color: #6b7686; }

/* Offerings */
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.offer-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.offer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.offer-card h3 { margin: 22px 26px 8px; font-size: 24px; letter-spacing: -0.025em; }
.offer-card > p { margin: 0 26px; font-size: 15.5px; color: var(--muted); }
.offer-top { display: grid; align-content: center; height: 176px; border-bottom: 1px solid var(--line); }
.offer-terminal, .offer-code { gap: 2px; padding: 18px 22px; background: #0b1220; border-color: #1e293b; color: #dbe3ee; font: 11.5px/1.7 var(--mono); white-space: pre; overflow: hidden; }
.offer-terminal b { color: #34d399; }
.offer-terminal .dim { color: #8b9ab0; }
.offer-terminal .ok { color: #34d399; font-weight: 600; }
.offer-code i { font-style: normal; }
.offer-visual { background: linear-gradient(180deg, #f5f3ff, #fff); }
.offer-visual img { width: 100%; height: 176px; object-fit: cover; }
.offer-list { display: grid; gap: 9px; margin: 18px 26px 26px; padding: 18px 0 0; list-style: none; border-top: 1px solid var(--line); font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.offer-list li { display: flex; gap: 10px; align-items: baseline; }
.offer-list li::before { content: "✓"; flex: none; color: var(--accent); font-weight: 800; }
.offer-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 18px; margin-top: 28px; padding: 18px 22px; border-radius: 18px; border: 1px dashed #c9d6cf; background: rgba(255, 255, 255, 0.6); }
.offer-band > span { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-deep); }
.offer-band ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.offer-band li { padding: 7px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 600; }

/* Examples */
.ex-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ex-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.ex-card:hover, .ex-card:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--dc) 35%, var(--line)); }
.ex-card:focus-visible { outline: 2px solid var(--dc); outline-offset: 3px; }
.ex-card.is-extra { display: none; }
.ex-grid.show-all .ex-card.is-extra { display: flex; }
.ex-thumb { aspect-ratio: 740 / 394; overflow: hidden; border-bottom: 1px solid var(--line); background: #f7f8fb; }
.ex-thumb > img { width: 100%; height: 100%; object-fit: cover; }
.ex-card:hover .ex-thumb > img { transform: scale(1.04); }
.ex-card-body { display: flex; flex: 1; flex-direction: column; padding: 18px 20px 20px; }
.ex-card-domain { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: color-mix(in srgb, var(--dc) 80%, #0b1220); }
.ex-card-domain::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dc); }
.ex-card h3 { margin: 8px 0 6px; font-size: 18px; letter-spacing: -0.02em; }
.ex-card-body > p:not(.ex-card-domain) { font-size: 14px; color: var(--muted); }
.ex-card-tracks { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.trk { padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.trk-terminal { background: #0b1220; color: #fff; }
.trk-coding { background: rgba(99, 102, 241, 0.12); color: #4338ca; }
.trk-multimodal { background: var(--accent-soft); color: var(--accent-deep); }
.trk-mod { border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; }
.ex-sw { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 0; padding: 14px 0 0; list-style: none; }
.ex-sw li { padding: 3px 8px; border-radius: 6px; background: var(--tint-2); border: 1px solid var(--line); font: 500 11px var(--mono); color: var(--ink-2); }
.ex-open { position: absolute; top: 12px; right: 12px; padding: 6px 11px; border-radius: 999px; background: rgba(11, 18, 32, 0.86); color: #fff; font-size: 12px; font-weight: 700; opacity: 0; transform: translateY(-4px); transition: opacity 0.25s, transform 0.25s var(--ease); }
.ex-card:hover .ex-open, .ex-card:focus-visible .ex-open { opacity: 1; transform: none; }
.ex-more { display: flex; justify-content: center; margin-top: 30px; }
.ex-grid.show-all + .ex-more { display: none; }

.ex-modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 24px; }
.ex-modal[hidden] { display: none; }
.ex-backdrop { position: absolute; inset: 0; background: rgba(8, 12, 22, 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade-in 0.25s ease; }
.ex-sheet {
  position: relative;
  width: min(1080px, 100%);
  max-height: min(92vh, 980px);
  overflow: auto;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.55);
  animation: sheet-in 0.35s var(--ease);
}
@keyframes fade-in { from { opacity: 0; } }
@keyframes sheet-in { from { opacity: 0; transform: translateY(14px) scale(0.985); } }
.ex-head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding: 22px 26px 18px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ex-domain { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: color-mix(in srgb, var(--dc, #10b981) 80%, #0b1220); }
.ex-domain::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dc, #10b981); }
.ex-head h3 { margin: 6px 0 10px; font-size: 24px; letter-spacing: -0.025em; }
.ex-tracks { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ex-nav { display: flex; gap: 8px; flex: none; }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font: 600 15px/1 var(--font); color: var(--ink); cursor: pointer; transition: background-color 0.2s, border-color 0.2s; }
.icon-btn:hover { background: var(--tint-2); border-color: #c9d2cc; }
.ex-body { padding: 22px 26px 28px; }
.ex-figure { margin: 0; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: #f7f8fb; }
.ex-figure img { width: 100%; height: auto; }
.ex-desc { margin-top: 18px; font-size: 16.5px; color: var(--ink-2); }
.ex-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.ex-facts > div { padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--tint-2); }
.ex-facts h4 { margin: 0 0 10px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-deep); }
.ex-facts ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ex-facts li { padding: 4px 9px; border-radius: 7px; border: 1px solid var(--line); background: #fff; font: 500 11.5px var(--mono); color: var(--ink-2); }
.ex-how { margin: 18px 0 20px; padding-left: 14px; border-left: 3px solid var(--accent); font-size: 15px; color: var(--muted); }
body.modal-open { overflow: hidden; }

/* Live example previews */
.ex-thumb { position: relative; }
.ex-thumb > img { transition: opacity 0.5s ease, transform 0.6s var(--ease); }
.ex-thumb.is-live > img { opacity: 0; }
.ex-live, .ex-live-hero { overflow: hidden; background: radial-gradient(120% 100% at 50% 0%, color-mix(in srgb, var(--dc, #10b981) 13%, #fff) 0%, #fbfcfd 70%); }
.ex-live { position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s ease; }
.ex-thumb.is-live .ex-live { opacity: 1; }
.ex-live-hero { position: relative; aspect-ratio: 16 / 7; border-bottom: 1px solid var(--line); }
.ex-live-hero[hidden] { display: none; }
.ex-evidence-label { padding: 12px 16px 0; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-deep); }
.ex-live-hero[hidden] + .ex-evidence-label { display: none; }
.lv-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.lv-cap { position: absolute; left: 14px; bottom: 10px; z-index: 2; font: 500 11px var(--mono); color: var(--muted); }
.ex-live-hero .lv-cap { left: 22px; bottom: 16px; font-size: 12px; }
[data-kind="drc"] .lv-cap { left: 24px; bottom: 20px; color: #a7f3d0; }
.ex-live-hero[data-kind="drc"] .lv-cap { left: 40px; bottom: 36px; }

.lv-container { position: absolute; inset: 0; display: grid; align-content: center; gap: 6px; width: 74%; margin: auto; transition: opacity 0.3s; }
.lv-fade .lv-container { opacity: 0; }
.lv-code { margin-bottom: 4px; font: 600 12px var(--mono); color: #0d9488; }
.lv-stack { display: grid; gap: 6px; }
.lv-layer {
  display: flex;
  align-items: center;
  height: 24px;
  margin-left: calc(var(--k) * 16px);
  padding: 0 10px;
  border-radius: 7px;
  border: 1px solid rgba(37, 99, 235, 0.25);
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.16), rgba(37, 99, 235, 0.05));
  font: 500 11px var(--mono);
  color: var(--ink-2);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.35s, transform 0.35s var(--ease);
}
.lv-layer.on { opacity: 1; transform: none; }
.lv-hash { min-height: 1.6em; margin-top: 6px; font: 500 11px var(--mono); color: var(--muted); }
.ex-live-hero .lv-container { width: 54%; gap: 8px; }
.ex-live-hero .lv-layer { height: 34px; margin-left: calc(var(--k) * 26px); font-size: 13px; }
.ex-live-hero .lv-code, .ex-live-hero .lv-hash { font-size: 13.5px; }

.lv-images { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 18px; }
.lv-cell { position: relative; overflow: hidden; border-radius: 12px; background: #e9eef2; box-shadow: 0 12px 24px -12px rgba(15, 23, 42, 0.4); }
.lv-cell img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; opacity: 0; transition: opacity 0.6s ease; }
.lv-cell img.on { opacity: 1; }
.lv-micro .lv-cell { width: 25%; aspect-ratio: 1; }
.lv-astro .lv-cell { width: 18.5%; aspect-ratio: 1; border-radius: 8px; box-shadow: 0 0 30px -6px rgba(249, 140, 10, 0.5); }
.lv-ocr .lv-cell { width: 84%; aspect-ratio: 237 / 82; border-radius: 8px; }
.lv-color { display: grid; grid-template-columns: repeat(3, auto); gap: 8px; align-content: center; justify-content: center; }
.lv-color .lv-cell { width: 62px; height: 62px; border-radius: 10px; transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.lv-color .lv-cell.hot { transform: translateY(-4px) scale(1.08); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--dc, #7c3aed), 0 14px 26px -12px rgba(15, 23, 42, 0.5); }
.ex-live-hero .lv-color .lv-cell { width: 92px; height: 92px; }
.lv-swatch { position: absolute; right: 5px; bottom: 5px; z-index: 1; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }
.lv-scan { position: absolute; left: 0; right: 0; top: 0; z-index: 1; height: 2px; background: var(--dc, #10b981); box-shadow: 0 0 14px 2px var(--dc, #10b981); animation: lv-scan 2.6s ease-in-out infinite; }
@keyframes lv-scan { 0%, 100% { top: 0; } 50% { top: calc(100% - 2px); } }
.lv-aperture { position: absolute; left: 50%; top: 50%; z-index: 1; width: 40%; aspect-ratio: 1; border: 1.5px solid rgba(255, 255, 255, 0.92); border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25); animation: lv-aperture 2.6s ease-in-out infinite; }
.lv-aperture::before, .lv-aperture::after { content: ""; position: absolute; left: 50%; top: 50%; background: rgba(255, 255, 255, 0.85); transform: translate(-50%, -50%); }
.lv-aperture::before { width: 140%; height: 1px; }
.lv-aperture::after { width: 1px; height: 140%; }
@keyframes lv-aperture { 0%, 100% { width: 30%; } 50% { width: 58%; } }

/* Trajectory scaling */
.traj-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.traj-steps { display: grid; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; counter-reset: step; }
.traj-steps li { position: relative; padding-left: 46px; font-size: 15.5px; color: var(--ink-2); counter-increment: step; }
.traj-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--indigo));
  color: #fff;
  font: 700 13px/1 var(--mono);
}
.traj-steps strong { color: var(--ink); }
.traj-visual { padding: 26px; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.traj-diagram { width: 100%; height: auto; }
.traj-diagram text { font: 600 11.5px var(--font); fill: var(--ink-2); }
.traj-diagram .t-stage { font: 700 10.5px var(--font); letter-spacing: 0.1em; text-transform: uppercase; fill: var(--accent-deep); }
.traj-diagram .t-sub { font: 500 10px var(--mono); fill: var(--muted); }
.traj-diagram .src-a { fill: #14b8a6; }
.traj-diagram .src-b { fill: #6366f1; }
.traj-diagram .src-c { fill: #7c5cdc; }
.traj-diagram .t-lane { fill: none; stroke-width: 2.5; stroke-dasharray: 5 6; animation: flow 1.6s linear infinite; }
.traj-diagram .lane-a { stroke: #14b8a6; }
.traj-diagram .lane-b { stroke: #6366f1; }
.traj-diagram .lane-c { stroke: #7c5cdc; }
.traj-diagram .t-node rect { fill: #fff; stroke: #cfd8d3; stroke-width: 1.4; }
.traj-diagram .t-node-strong rect { fill: #ecfdf5; stroke: var(--accent); }
.traj-diagram .t-link { fill: none; stroke: #94a3b8; stroke-width: 1.6; }
.traj-diagram .t-revise { fill: none; stroke: #f26b5b; stroke-width: 1.4; stroke-dasharray: 3 4; }
.traj-diagram .t-arrow { fill: #94a3b8; }
.traj-diagram .t-out { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 4 5; animation: flow 1.2s linear infinite; }
.traj-diagram .t-ok circle { fill: var(--accent); }
@keyframes flow { to { stroke-dashoffset: -22; } }
.traj-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 22px 0 0; }
.traj-metrics div { padding: 14px 16px; border-radius: 16px; background: var(--tint); }
.traj-metrics dt { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; color: var(--accent-deep); white-space: nowrap; }
.traj-metrics dd { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: var(--ink-2); }

/* Terminal & coding examples */
.tx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.tx-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.tx-card:hover, .tx-card:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(16, 185, 129, 0.4); }
.tx-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.tx-card.is-extra { display: none; }
.tx-grid.show-all .tx-card.is-extra { display: flex; }
.tx-grid.show-all + .ex-more { display: none; }
.tx-card .ex-open { background: #fff; color: var(--ink); box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.5); }
.tx-card:hover .ex-open, .tx-card:focus-visible .ex-open { opacity: 1; transform: none; }
.tx-term { overflow: hidden; background: #0b1220; }
.tx-card .tx-term { border-bottom: 1px solid #1e293b; }
.tx-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid #1e293b; background: #0f172a; }
.tx-bar i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #334155; }
.tx-bar i:nth-child(1) { background: #f26b5b; }
.tx-bar i:nth-child(2) { background: #f5b84b; }
.tx-bar i:nth-child(3) { background: #34d399; }
.tx-bar em { min-width: 0; margin-left: 8px; overflow: hidden; font: 500 11px var(--mono); font-style: normal; color: #8b9ab0; white-space: nowrap; text-overflow: ellipsis; }
.tx-screen { height: 200px; margin: 0; padding: 12px 16px; overflow: hidden; font: 11.5px/1.65 var(--mono); color: #e2e8f0; }
.tx-screen code { white-space: normal; }
.tx-screen span { display: block; white-space: pre-wrap; overflow-wrap: anywhere; }
.tx-screen b { color: #34d399; font-weight: 600; }
.tx-screen .tx-sys { margin-top: 6px; color: #a5b4fc; }
.tx-screen .tx-ok { color: #34d399; font-weight: 600; }
.tx-caret { display: inline-block; width: 7px; height: 1.15em; margin-left: 2px; vertical-align: -3px; background: #34d399; animation: tx-caret 1s steps(1) infinite; }
@keyframes tx-caret { 50% { opacity: 0; } }
.tx-body { display: flex; flex: 1; flex-direction: column; padding: 18px 20px 20px; }
.tx-area { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: var(--accent-deep); }
.tx-area::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.tx-card h3 { margin: 8px 0 6px; font-size: 18px; letter-spacing: -0.02em; }
.tx-body > p:not(.tx-area) { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.tx-body code, .txm-instruction code, .growth-instruction code { padding: 1px 5px; border-radius: 5px; border: 1px solid var(--line); background: #fff; font: 500 0.86em var(--mono); color: var(--ink-2); overflow-wrap: anywhere; }
.tx-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 0; padding: 14px 0 0; list-style: none; }
.tx-meta li { padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--tint-2); font: 500 11px var(--mono); color: var(--ink-2); }

.tx-coverage { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px; align-items: center; margin-top: 56px; padding: 30px 32px; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); }
.tx-coverage-copy h3 { font-size: 22px; letter-spacing: -0.02em; }
.tx-coverage-copy p { margin-top: 10px; font-size: 15px; color: var(--muted); }
.tx-bars { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.tx-bars li { display: grid; grid-template-columns: 200px minmax(0, 1fr) 44px; gap: 12px; align-items: center; font-size: 13.5px; color: var(--ink-2); }
.txb-track { height: 10px; overflow: hidden; border-radius: 999px; background: var(--tint); }
.txb-track i { display: block; width: var(--w); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--indigo)); transform-origin: left; }
.js .tx-coverage .txb-track i { transform: scaleX(0); transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 60ms + 0.2s); }
.js .tx-coverage.is-visible .txb-track i { transform: none; }
.txb-pct { font: 600 12.5px var(--mono); color: var(--accent-deep); text-align: right; }

.txm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.txm-h { margin: 0 0 10px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-deep); }
.txm-h code { font: inherit; text-transform: none; letter-spacing: 0; }
.txm-col .tx-term + .txm-h { margin-top: 20px; }
.txm-instruction { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--tint-2); font-size: 15px; line-height: 1.65; color: var(--ink-2); overflow-wrap: anywhere; }
.txm-instruction p + p { margin-top: 6px; }
.txm-facts { margin: 16px 0 0; }
.txm-facts div { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.txm-facts dt { padding-top: 2px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-deep); }
.txm-facts dd { margin: 0; font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.tx-term-lg { border-radius: 14px; border: 1px solid #1e293b; }
.tx-term-lg .tx-screen { height: 236px; font-size: 12px; }
.txm-code { max-height: 300px; margin: 0; padding: 14px 16px; overflow: auto; border-radius: 14px; background: #0b1220; color: #cbd5e1; font: 11.5px/1.65 var(--mono); white-space: pre; }
#txm-cta { margin-top: 22px; }

/* Task growth */
.growth { margin-top: 64px; padding: 32px; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.growth-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: end; }
.growth-copy .kicker { margin-bottom: 10px; }
.growth-copy h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; letter-spacing: -0.025em; }
.growth-copy p:not(.kicker) { max-width: 640px; margin-top: 10px; font-size: 15.5px; color: var(--ink-2); }
.growth-steps { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }
.gstep { display: grid; place-items: center; align-content: center; gap: 3px; width: 46px; height: 50px; padding: 0; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--muted); font: inherit; cursor: pointer; transition: background-color 0.25s, border-color 0.25s, color 0.25s; }
.gstep span { font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.gstep strong { font: 700 16px/1 var(--mono); color: var(--ink-2); }
.gstep:hover { border-color: #c9d2cc; }
.gstep.is-done { border-color: rgba(16, 185, 129, 0.3); background: var(--accent-soft); }
.gstep[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #9aa4b2; }
.gstep[aria-pressed="true"] strong { color: #fff; }
.gplay { height: 50px; margin-left: 4px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--tint-2); color: var(--ink-2); font: 600 13px var(--font); cursor: pointer; }
.gplay:hover { border-color: #c9d2cc; }
.growth-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; margin-top: 26px; }
.growth-instruction { min-height: 300px; padding: 20px 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--tint-2); font-size: 15px; line-height: 1.75; color: var(--ink-2); overflow-wrap: anywhere; }
.g-text { animation: g-in 0.45s var(--ease); }
@keyframes g-in { from { opacity: 0; transform: translateY(6px); } }
.growth-instruction mark { padding: 2px 3px; border-radius: 4px; background: rgba(16, 185, 129, 0.2); color: var(--ink); -webkit-box-decoration-break: clone; box-decoration-break: clone; animation: g-mark 1.2s var(--ease); }
@keyframes g-mark { from { background: rgba(16, 185, 129, 0.55); } }
.growth-stats { display: grid; gap: 14px; align-content: start; }
.gs-stat { padding: 16px 18px; border-radius: 16px; background: var(--tint); }
.gs-stat span { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-deep); }
.gs-stat strong { display: block; margin-top: 4px; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.gs-bar { height: 8px; margin-top: 10px; overflow: hidden; border-radius: 999px; background: rgba(15, 23, 42, 0.08); }
.gs-bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--indigo)); transition: width 0.7s var(--ease); }
.gs-bar-alt i { background: linear-gradient(90deg, #6366f1, #a78bfa); }
.gs-spark { margin: 0; padding: 14px 16px 10px; border-radius: 16px; border: 1px solid var(--line); }
.gs-spark svg { display: block; width: 100%; height: auto; overflow: visible; }
.gs-spark figcaption { margin-top: 6px; font-size: 12px; color: var(--muted); }
.gs-area { fill: rgba(16, 185, 129, 0.12); }
.gs-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.gs-dot { fill: #fff; stroke: var(--accent); stroke-width: 1.6; }
.gs-dot.is-on { fill: var(--accent); }
.gs-guide { stroke: rgba(15, 23, 42, 0.2); stroke-width: 1; stroke-dasharray: 3 3; transition: transform 0.5s var(--ease); }
.gs-note { font-size: 12px; color: var(--muted); }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.grid-4 .reveal:nth-child(2), .deliv-grid .reveal:nth-child(2), .engage-grid .reveal:nth-child(2), .bench-grid .reveal:nth-child(2), .research-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.grid-4 .reveal:nth-child(3), .deliv-grid .reveal:nth-child(3), .engage-grid .reveal:nth-child(3), .bench-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.grid-4 .reveal:nth-child(4), .deliv-grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.deliv-grid .reveal:nth-child(5) { transition-delay: 0.32s; }
.deliv-grid .reveal:nth-child(6) { transition-delay: 0.4s; }

/* Responsive */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn { display: none; }
  .tier-badges { display: none; }
  .hero-canvas { opacity: 0.6; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .tabs { grid-template-columns: minmax(0, 1fr); }
  .tab-list { flex-direction: row; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .tab-list::-webkit-scrollbar { display: none; }
  .tab { width: auto; white-space: nowrap; }
  .tab-panel { grid-template-columns: minmax(0, 1fr); }
  .pipeline { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .pipeline::before, .pipeline::after { display: none; }
  .diff-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .deliv-grid { grid-template-columns: repeat(2, 1fr); }
  .tree-card { grid-column: 1 / -1; grid-row: auto; }
  .bench-grid, .research-grid, .engage-grid { grid-template-columns: minmax(0, 1fr); }
  .offer-grid { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
  .ex-grid { grid-template-columns: repeat(2, 1fr); }
  .ex-facts { grid-template-columns: repeat(2, 1fr); }
  .traj-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .tx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tx-coverage { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .txm-grid { grid-template-columns: minmax(0, 1fr); }
  .growth-head { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .growth-steps { justify-content: flex-start; }
  .growth-body { grid-template-columns: minmax(0, 1fr); }
  .growth-instruction { min-height: 0; }
}

@media (max-width: 640px) {
  .container { width: min(1200px, 100% - 36px); }
  .hero { min-height: auto; }
  .hero-copy { padding: 48px 0 64px; }
  .grid-4, .deliv-grid, .pipeline { grid-template-columns: 1fr; }
  .tab-panels { padding: 20px; border-radius: 20px; }
  .spec div { grid-template-columns: 1fr; gap: 4px; }
  .metrics { grid-template-columns: 1fr; }
  .tree { padding: 18px; font-size: 10.5px; }
  .ex-grid, .ex-facts, .traj-metrics { grid-template-columns: 1fr; }
  .ex-modal { padding: 10px; }
  .ex-sheet { max-height: 100%; border-radius: 18px; }
  .ex-head { padding: 16px 16px 14px; }
  .ex-head h3 { font-size: 20px; }
  .ex-body { padding: 16px; }
  .metrics div { grid-template-columns: 88px 1fr; }
  .traj-visual { padding: 16px; }
  .checklist { position: static; margin-top: 14px; max-width: none; }
  .paper-card { padding: 24px; }
  .tx-grid { grid-template-columns: minmax(0, 1fr); }
  .tx-coverage { margin-top: 40px; padding: 22px 18px; }
  .tx-bars { gap: 12px; }
  .tx-bars li { grid-template-columns: minmax(0, 1fr) 36px; gap: 4px 10px; font-size: 13px; }
  .txb-label { grid-column: 1 / -1; }
  .txm-facts div { grid-template-columns: 1fr; gap: 4px; }
  .growth { margin-top: 44px; padding: 20px 16px; }
  .growth-steps { gap: 4px; }
  .gstep { width: 34px; height: 40px; border-radius: 10px; }
  .gstep span { display: none; }
  .gplay { height: 40px; margin-left: 0; }
  .growth-instruction { padding: 16px; font-size: 14.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .marquee-track ul { animation: none; }
}
