/* ============================================================
   Xpose landing — obsidian / ion design system
   ============================================================ */

:root {
  --bg: #05060a;
  --bg-2: #090b12;
  --panel: rgba(255, 255, 255, 0.028);
  --panel-solid: #0b0e16;
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.05);
  --ink: #eef2f8;
  --ink-2: #9aa5b8;
  --ink-3: #5d6779;
  --ion: #78b4ff;
  --ion-2: #9ee8ff;
  --ion-dim: rgba(120, 180, 255, 0.14);
  --grad: linear-gradient(100deg, #78b4ff 0%, #9ee8ff 55%, #e7f4ff 100%);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

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

::selection { background: rgba(120, 180, 255, 0.28); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1c2230; border-radius: 5px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #2a3348; }

a { color: var(--ion); text-decoration: none; }
a:hover { color: var(--ion-2); }

code { font-family: var(--font-mono); font-size: 0.92em; color: var(--ion-2); }

em { font-style: normal; }

/* ---------- grain overlay ---------- */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 3;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- progress bar ---------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: 120; pointer-events: none;
}
.progress span {
  display: block; height: 100%; width: 100%;
  background: var(--grad);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ---------- intro / preloader overlay ---------- */
.intro {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(20px, 6vw, 90px);
  transition: opacity 0.7s var(--ease-out), visibility 0.7s, transform 0.8s var(--ease-out);
  /* CSS-only failsafe: overlay always dismisses itself, even if JS stalls */
  animation: introAway 0.8s var(--ease-out) 1.7s forwards;
}
.intro.gone { opacity: 0; visibility: hidden; transform: translateY(-4%); }
@keyframes introAway { to { opacity: 0; visibility: hidden; transform: translateY(-4%); } }
.intro-col {
  display: flex; flex-direction: column; gap: 9px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.22em;
  color: #c7d0de;
}
.intro-right { align-items: flex-end; }
.intro-col span { opacity: 0; animation: introItem 0.5s var(--ease-out) forwards; }
.intro-col span:nth-child(1) { animation-delay: 0.10s; }
.intro-col span:nth-child(2) { animation-delay: 0.22s; }
.intro-col span:nth-child(3) { animation-delay: 0.34s; }
.intro-col span:nth-child(4) { animation-delay: 0.46s; }
.intro-col span:nth-child(5) { animation-delay: 0.58s; }
.intro-col span:nth-child(6) { animation-delay: 0.70s; }
.intro-col span:nth-child(7) { animation-delay: 0.82s; }
.intro-col span:nth-child(8) { animation-delay: 0.94s; }
@keyframes introItem { from { opacity: 0; transform: translateY(8px); } to { opacity: 0.85; transform: none; } }
.intro-mark {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  color: var(--ion);
  animation: introPulse 1.2s var(--ease-out) both;
}
.intro-mark > span {
  font-family: var(--font-display);
  font-weight: 600; letter-spacing: 0.5em; font-size: 13px;
  color: var(--ink-2); padding-left: 0.5em;
}
.intro-pct {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(44px, 7vw, 76px); line-height: 1; letter-spacing: -0.03em;
  color: var(--ink); display: flex; align-items: baseline; gap: 4px;
}
.intro-pct small { font-size: 0.35em; color: var(--ink-3); font-weight: 500; }
.intro-pct i { font-style: normal; font-variant-numeric: tabular-nums; }
@keyframes introPulse {
  0% { opacity: 0; transform: scale(0.9); filter: blur(8px); }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}
@media (max-width: 720px) { .intro-col { display: none; } .intro { grid-template-columns: 1fr; justify-items: center; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 48px);
  transition: background 0.4s, border-color 0.4s, padding 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 12px clamp(20px, 4vw, 48px);
  background: rgba(5, 6, 10, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--line-soft);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); font-family: var(--font-display);
  font-weight: 600; font-size: 17px; letter-spacing: 0.02em;
}
.nav-logo svg { color: var(--ion); }
.nav-links { display: flex; gap: clamp(14px, 2.4vw, 34px); }
.nav-links a {
  color: var(--ink-2); font-size: 13.5px; font-weight: 500;
  letter-spacing: 0.04em; position: relative; padding: 4px 0;
  transition: color 0.25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--grad);
  transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform 0.35s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  letter-spacing: 0.02em; cursor: pointer; white-space: nowrap;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, background 0.3s, border-color 0.3s, color 0.25s;
  will-change: transform;
}
.btn-primary {
  background: var(--grad); color: #04101f;
  box-shadow: 0 0 0 1px rgba(158, 232, 255, 0.25), 0 10px 40px -12px rgba(120, 180, 255, 0.55);
}
.btn-primary:hover {
  color: #04101f;
  box-shadow: 0 0 0 1px rgba(158, 232, 255, 0.45), 0 16px 52px -12px rgba(120, 180, 255, 0.8);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.04); color: var(--ink);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.16); color: var(--ink); }
.btn-lg { padding: 17px 34px; font-size: 15.5px; }
.nav-cta { padding: 9px 18px; font-size: 13px; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-canvas-wrap { position: absolute; inset: 0; z-index: 0; }
#gl { width: 100%; height: 100%; display: block; }
.hero-fade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 70% 20%, transparent 40%, var(--bg) 100%),
    linear-gradient(180deg, rgba(5,6,10,0.55) 0%, transparent 26%, transparent 62%, var(--bg) 96%);
}
.hero-inner {
  position: relative; z-index: 2;
  padding: clamp(90px, 14vh, 160px) clamp(20px, 4vw, 56px) 60px clamp(24px, 5.5vw, 84px);
  max-width: 1280px; width: 100%;
  margin: 0;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; margin-bottom: 34px;
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(8px);
}
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ion-2);
  box-shadow: 0 0 12px 2px rgba(158, 232, 255, 0.6);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.72); } }

.hero-title {
  font-family: "Archivo Black", var(--font-display);
  font-size: clamp(38px, 6.2vw, 92px);
  font-weight: 400; line-height: 0.98; letter-spacing: -0.015em;
  text-transform: uppercase;
  margin-bottom: 30px;
}
.hero-title .line { display: block; }
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub {
  max-width: 560px; font-size: clamp(15.5px, 1.6vw, 18px);
  color: var(--ink-2); margin-bottom: 40px;
}
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 58px; }
.hero-cta.center { justify-content: center; margin-bottom: 0; }

.hero-stats { display: flex; gap: clamp(26px, 4.5vw, 62px); flex-wrap: wrap; }
.stat b {
  display: block; font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px); font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.1;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat span { font-size: 12.5px; color: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase; }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 38px; border: 1.5px solid var(--line);
  border-radius: 12px; z-index: 2;
}
.scroll-hint span {
  position: absolute; top: 7px; left: 50%; margin-left: -1.5px;
  width: 3px; height: 7px; border-radius: 2px;
  background: var(--ion);
  animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- topbar (news strip) ---------- */
.topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  display: flex; justify-content: space-between; gap: 20px;
  padding: 9px clamp(16px, 3vw, 40px);
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.16em;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line-soft);
  pointer-events: none;
}
.topbar-news { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.topbar-links { flex: none; }
.nav { top: 30px; }
.nav.scrolled { top: 0; }
@media (max-width: 720px) { .topbar-links { display: none; } }

/* ---------- globe pins ---------- */
.pins { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.pin {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 7px;
  will-change: transform, opacity;
}
.pin i {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--hot, #ffa25e);
  box-shadow: 0 0 10px 2px rgba(255, 145, 70, 0.55);
}
.pin b {
  font-family: var(--font-mono); font-weight: 500;
  font-size: 9.5px; letter-spacing: 0.14em; white-space: nowrap;
  color: #d7deeb; background: rgba(8, 10, 16, 0.72);
  border: 1px solid rgba(255, 162, 94, 0.35);
  padding: 3px 8px; border-radius: 4px;
  backdrop-filter: blur(4px);
}

/* ---------- light sections ---------- */
.light-section {
  background: #f1f1ec; color: #101114;
  position: relative;
}
.light-section ::selection { background: rgba(16, 17, 20, 0.85); color: #f1f1ec; }

/* story: scroll-fill manifesto */
.story { padding: clamp(60px, 8vw, 100px) clamp(22px, 7vw, 110px) clamp(48px, 5vw, 72px); }
.story-kicker {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.24em;
  color: #8b8d85; margin-bottom: 34px;
}
.fill-text {
  font-family: "Archivo Black", var(--font-display);
  font-weight: 400; text-transform: uppercase;
  font-size: clamp(30px, 5.3vw, 76px);
  line-height: 1.06; letter-spacing: -0.01em;
  max-width: 1160px; margin: 0;
}
.fill-text .w { color: #cfcfc6; transition: color 0.25s linear; }
.fill-text .w.on { color: #101114; }
.fill-text .w.accent.on { color: #2668ff; }
.story-chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 52px; }
.story-chips span {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em;
  color: #52544e; border: 1px solid #d4d4cb; border-radius: 999px;
  padding: 8px 16px; background: rgba(255, 255, 255, 0.5);
}

/* haul: chip crossing the white band */
.haul {
  height: clamp(220px, 30vw, 340px);
  overflow: hidden;
  border-top: 1px solid #e2e2d9;
  display: flex; align-items: center;
}
.haul-bg {
  position: absolute; left: 0; right: 0; top: 50%;
  transform: translateY(-58%);
  font-family: "Archivo Black", var(--font-display);
  font-size: clamp(120px, 24vw, 320px); line-height: 1;
  text-align: center; letter-spacing: 0.01em;
  color: transparent;
  -webkit-text-stroke: 1.5px #b9b9ab;
  user-select: none; white-space: nowrap;
  will-change: transform;
}
.haul-chip {
  position: relative; z-index: 2;
  will-change: transform;
  filter: drop-shadow(0 22px 22px rgba(16, 17, 20, 0.22));
}
.haul-road {
  position: absolute; left: 0; right: 0; bottom: clamp(48px, 9vw, 96px);
  height: 2px; background: #101114; opacity: 0.85;
}
.haul-road::after {
  content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 1px;
  background: repeating-linear-gradient(90deg, #b9b9ae 0 26px, transparent 26px 52px);
}

/* ---------- milestones: dispatch bus ---------- */
.milestones { max-width: 1100px; }
.bus { position: relative; margin-top: clamp(50px, 7vw, 90px); padding-bottom: 20px; }
.bus-line {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; margin-left: -1px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
}
.bus-fill {
  position: absolute; top: 0; left: 0; width: 100%; height: 0%;
  background: linear-gradient(180deg, var(--ion), var(--ion-2));
  border-radius: 2px;
  box-shadow: 0 0 16px 1px rgba(120, 180, 255, 0.5);
}
.bus-packet {
  position: absolute; top: 0; left: 50%;
  width: 14px; height: 22px; margin-left: -7px; margin-top: -11px;
  border-radius: 5px;
  background: linear-gradient(180deg, #cfe8ff, var(--ion));
  box-shadow: 0 0 22px 6px rgba(130, 190, 255, 0.55);
  will-change: top;
}
.bus-row { display: flex; padding: clamp(26px, 4vw, 46px) 0; }
.bus-row.right-row { justify-content: flex-end; }
.bus-item {
  width: calc(50% - clamp(30px, 5vw, 58px));
  background: linear-gradient(165deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  border: 1px solid var(--line); border-radius: 16px;
  padding: 24px 26px;
}
.bus-item h3 {
  font-family: var(--font-display); font-size: 19px; font-weight: 600;
  margin-bottom: 9px; letter-spacing: -0.01em;
}
.bus-item p { font-size: 14px; color: var(--ink-2); }
.bus-item.left { text-align: right; }
@media (max-width: 720px) {
  .bus-line { left: 10px; }
  .bus-packet { left: 10px; }
  .bus-item, .bus-item.left { width: calc(100% - 44px); margin-left: 44px; text-align: left; }
  .bus-row.right-row { justify-content: flex-start; }
}

/* ---------- orbit scroll dial ---------- */
.orbit {
  position: fixed; right: clamp(14px, 2.5vw, 30px); bottom: clamp(14px, 2.5vw, 30px);
  z-index: 90; opacity: 0.9;
}
#orbitArc { transition: stroke-dashoffset 0.1s linear; }

/* ---------- ticker ---------- */
.ticker {
  position: relative; overflow: hidden;
  border-block: 1px solid var(--line-soft);
  background: var(--bg-2);
  padding: 15px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: ticker 36s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-set { display: flex; align-items: center; }
.ticker-set span {
  font-family: var(--font-mono); font-size: 13px;
  color: var(--ink-2); padding: 0 14px; white-space: nowrap;
}
.ticker-set i { color: var(--ion); font-style: normal; font-size: 13px; }
.ticker-set em { color: var(--ink-3); font-size: 8px; padding: 0 10px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section {
  position: relative;
  max-width: 1200px; margin: 0 auto;
  padding: clamp(44px, 5.5vw, 68px) clamp(20px, 5vw, 72px);
}
.section-wide { max-width: 1280px; }

.kicker {
  font-family: var(--font-mono); font-size: 12.5px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ion); margin-bottom: 20px;
}
.kicker.center { text-align: center; }

h2 {
  font-family: "Archivo Black", var(--font-display);
  font-size: clamp(27px, 4vw, 52px);
  font-weight: 400; line-height: 1.05; letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 26px;
}
h2.center { text-align: center; }
h2 em {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.body { color: var(--ink-2); font-size: 16px; margin-bottom: 18px; max-width: 520px; }
.body.center { margin-inline: auto; text-align: center; }
.body.narrow { max-width: 620px; }

.section-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 90px); align-items: center;
}

.checks { list-style: none; margin-top: 26px; }
.checks li {
  position: relative; padding: 7px 0 7px 32px;
  color: var(--ink-2); font-size: 15px;
}
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 6px;
  width: 21px; height: 21px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: var(--ion-2);
  background: var(--ion-dim); border: 1px solid rgba(120, 180, 255, 0.3);
}

/* ---------- code card ---------- */
.code-card, .term {
  position: relative;
  background: linear-gradient(160deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  transform-style: preserve-3d;
}
.code-head, .term-head {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.02);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.code-file {
  margin-left: 10px; font-family: var(--font-mono);
  font-size: 12px; color: var(--ink-3); letter-spacing: 0.04em;
}
.code, .term-body {
  padding: 22px 24px; overflow-x: auto;
  font-family: var(--font-mono); font-size: 13.5px; line-height: 1.75;
  color: #c7d3e8;
}
.code .cl { display: block; opacity: 0; transform: translateX(14px); }
.code-card.typed .cl {
  opacity: 1; transform: none;
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  transition-delay: calc(var(--l) * 110ms);
}
.kw { color: #82aaff; } .ty { color: #7fd8d4; } .fn { color: #c3e88d; }
.str { color: #ecc48d; } .cm { color: #4e5a70; } .num { color: #f78c6c; }
.hl {
  background: rgba(120, 180, 255, 0.1);
  outline: 1px solid rgba(120, 180, 255, 0.28);
  border-radius: 5px; padding: 2px 6px;
}
.caret {
  display: inline-block; width: 8px; height: 16px;
  background: var(--ion); vertical-align: -3px;
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.code-glow {
  position: absolute; inset: -1px; border-radius: 18px;
  pointer-events: none; opacity: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(120, 180, 255, 0.12), transparent 65%);
  transition: opacity 0.35s;
}
.code-card:hover .code-glow { opacity: 1; }

/* ---------- pipeline ---------- */
.pipe { position: relative; margin-top: clamp(48px, 6vw, 80px); }
.pipe-line {
  position: absolute; top: 33px; left: 8%; width: 84%; height: 4px;
  overflow: visible;
}
.pipe-line line {
  stroke: url(#pg); stroke: rgba(120, 180, 255, 0.4);
  stroke-width: 1.5; stroke-dasharray: 1000; stroke-dashoffset: 1000;
  transition: stroke-dashoffset 1.6s var(--ease-out) 0.2s;
}
.pipe.drawn .pipe-line line { stroke-dashoffset: 0; }
.pipe-steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 34px);
  position: relative; z-index: 1;
}
.pipe-step {
  min-width: 0; /* grid item: let mini-code scroll instead of forcing width */
  background: linear-gradient(165deg, rgba(255,255,255,0.04), rgba(255,255,255,0.012));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 24px 24px;
  transition: transform 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
}
.pipe-step:hover {
  transform: translateY(-6px);
  border-color: rgba(120, 180, 255, 0.32);
  box-shadow: 0 24px 60px -24px rgba(120, 180, 255, 0.28);
}
.pipe-num {
  width: 66px; height: 66px; border-radius: 50%;
  display: grid; place-items: center;
  margin: -59px auto 22px;
  font-family: var(--font-display); font-weight: 600; font-size: 17px;
  color: var(--ion-2);
  background: var(--panel-solid);
  border: 1px solid rgba(120, 180, 255, 0.35);
  box-shadow: 0 0 30px -6px rgba(120, 180, 255, 0.4), inset 0 0 18px rgba(120, 180, 255, 0.08);
}
.pipe-step h3 {
  font-family: var(--font-display); font-size: 20px; font-weight: 600;
  text-align: center; margin-bottom: 16px; letter-spacing: -0.01em;
}
.pipe-step p { font-size: 13.8px; color: var(--ink-2); text-align: center; margin-top: 16px; }
.mini-code {
  background: rgba(3, 5, 9, 0.6); border: 1px solid var(--line-soft);
  border-radius: 10px; padding: 14px 16px; overflow-x: auto;
  font-family: var(--font-mono); font-size: 12px; line-height: 1.65;
  color: #c7d3e8;
}
.pipe-badge-stack {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 8px 0 2px;
}
.chip {
  font-family: var(--font-mono); font-size: 12.5px;
  color: var(--ion-2); background: var(--ion-dim);
  border: 1px solid rgba(120, 180, 255, 0.28);
  padding: 7px 15px; border-radius: 999px;
}
.chip-arrow { color: var(--ink-3); font-size: 13px; line-height: 1; }

/* ---------- feature cards: 3D horizontal marquee ---------- */
.cards3d {
  position: relative;
  width: 100vw; margin-left: calc(50% - 50vw);
  margin-top: clamp(32px, 4vw, 48px);
  padding: 44px 0 58px;
  overflow: hidden;
  perspective: 1300px;
  perspective-origin: 50% 42%;
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.cards3d-track {
  display: flex; gap: clamp(22px, 3vw, 38px);
  width: max-content;
  transform-style: preserve-3d;
  will-change: transform;
  padding-inline: 4vw;
}
.card {
  position: relative;
  flex: 0 0 auto;
  width: min(350px, 78vw);
  background: linear-gradient(165deg, rgba(24, 30, 44, 0.92), rgba(10, 13, 21, 0.96));
  border: 1px solid var(--line);
  border-radius: 20px; padding: 30px 28px;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  transition: border-color 0.4s;
  /* deep layered 3D shadow */
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 30px 60px -18px rgba(0, 0, 0, 0.85),
    0 60px 120px -30px rgba(0, 0, 0, 0.7),
    0 24px 80px -24px rgba(120, 180, 255, 0.14);
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: 20px;
  background: radial-gradient(420px circle at var(--mx, -200px) var(--my, -200px), rgba(120, 180, 255, 0.1), transparent 60%);
  opacity: 0; transition: opacity 0.4s;
}
/* floor shadow floating beneath each card */
.card::after {
  content: ""; position: absolute;
  left: 6%; right: 6%; bottom: -46px; height: 30px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.65), rgba(120, 180, 255, 0.06) 55%, transparent 72%);
  filter: blur(12px);
  transform: translateZ(-60px) rotateX(72deg);
  pointer-events: none;
}
.card:hover { border-color: rgba(120, 180, 255, 0.38); }
.card:hover::before { opacity: 1; }
.card-ico {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center; font-size: 21px;
  background: var(--ion-dim); border: 1px solid rgba(120, 180, 255, 0.22);
  margin-bottom: 18px;
}
.card h3 { font-family: var(--font-display); font-size: 18.5px; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.01em; }
.card p { font-size: 14px; color: var(--ink-2); }
.card p em { color: var(--ion-2); }

/* ---------- comparison table ---------- */
.table-wrap {
  margin-top: clamp(40px, 5vw, 60px);
  border: 1px solid var(--line); border-radius: 18px;
  overflow-x: auto;
  background: linear-gradient(165deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
}
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { padding: 15px 20px; text-align: left; font-size: 14px; white-space: nowrap; }
thead th {
  font-family: var(--font-display); font-weight: 600; font-size: 14.5px;
  color: var(--ink-2); border-bottom: 1px solid var(--line);
  letter-spacing: 0.01em;
}
thead th.you { color: var(--ion-2); }
tbody td { color: var(--ink-2); border-bottom: 1px solid var(--line-soft); }
tbody tr:last-child td { border-bottom: none; }
tbody td:first-child { color: var(--ink-3); font-size: 13px; letter-spacing: 0.03em; }
td.you, th.you {
  background: rgba(120, 180, 255, 0.055);
  color: var(--ink); font-weight: 500;
  border-inline: 1px solid rgba(120, 180, 255, 0.14);
}
tbody tr:hover td { background: rgba(255, 255, 255, 0.015); }
tbody tr:hover td.you { background: rgba(120, 180, 255, 0.085); }

/* ---------- terminal ---------- */
.copy-btn {
  margin-left: auto;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
  color: var(--ink-2); background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line); border-radius: 7px;
  padding: 5px 12px; cursor: pointer;
  transition: all 0.25s;
}
.copy-btn:hover { color: var(--ink); border-color: rgba(255, 255, 255, 0.2); }
.copy-btn.done { color: #7ee2a0; border-color: rgba(126, 226, 160, 0.4); }
.term-body .p { color: var(--ion); user-select: none; }
.term-body .ok { color: #7ee2a0; }
.term-body .cm { color: #4e5a70; }

/* ---------- final CTA ---------- */
.cta {
  position: relative; text-align: center;
  padding: clamp(64px, 9vw, 110px) 24px clamp(44px, 5vw, 64px);
  overflow: hidden;
}
.cta-glow {
  position: absolute; left: 50%; top: 58%;
  width: min(880px, 110vw); height: 560px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(120, 180, 255, 0.16), rgba(120, 180, 255, 0.05) 45%, transparent 70%);
  pointer-events: none;
  animation: ctaBreathe 6s ease-in-out infinite;
}
@keyframes ctaBreathe { 0%, 100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.07); } }
.cta h2 {
  position: relative; font-size: clamp(42px, 7vw, 92px);
  line-height: 1.02; margin-bottom: 40px;
}

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line-soft); background: var(--bg-2); }
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 52px clamp(20px, 5vw, 72px);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  text-align: center;
}
.footer-inner > p { color: var(--ink-3); font-size: 13.5px; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--ink-2); font-size: 13.5px; transition: color 0.25s; }
.footer-links a:hover { color: var(--ion-2); }
.footer-note { font-size: 12px !important; line-height: 1.7; opacity: 0.75; }

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  filter: blur(6px);
  transition:
    opacity 0.9s var(--ease-out) var(--d, 0s),
    transform 0.9s var(--ease-out) var(--d, 0s),
    filter 0.9s var(--ease-out) var(--d, 0s);
  will-change: opacity, transform, filter;
}
.reveal.in { opacity: 1; transform: none; filter: blur(0); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .section-grid { grid-template-columns: 1fr; gap: 44px; }
  .pipe-steps { grid-template-columns: 1fr; gap: 44px; }
  .pipe-line { display: none; }
  .pipe-num { margin-top: -52px; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .hero-stats { gap: 22px; }
  .hero-cta .btn { flex: 1; justify-content: center; }
}
@media (max-width: 560px) {
  /* Archivo Black is wide: at the 38px clamp floor "PROGRAMMABLE." overflows
     a 375px viewport — scale with the viewport instead, floor at 26px */
  .hero-title { font-size: clamp(26px, 9vw, 38px); }
}

@media (prefers-reduced-motion: reduce) {
  .cards3d { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .code .cl { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
}

/* ---------- milestones dust background ---------- */
.milestones { overflow: hidden; }
.milestones > :not(.dust) { position: relative; z-index: 1; }
.dust {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0.75;
  mask-image: linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent);
}
@media (prefers-reduced-motion: reduce) { .dust { display: none; } }

/* ---------- features: animated backdrop + refined cards ---------- */
#features { overflow: hidden; }
#features > :not(.features-bg) { position: relative; z-index: 1; }
.features-bg {
  position: absolute; top: 0; bottom: 0;
  left: calc(50% - 50vw); width: 100vw;
  z-index: 0; pointer-events: none;
}
.features-bg i {
  position: absolute; display: block; border-radius: 50%;
  filter: blur(90px);
}
.features-bg i:nth-child(1) {
  width: 560px; height: 560px; left: -140px; top: 6%;
  background: radial-gradient(circle, rgba(77, 141, 255, 0.15), transparent 65%);
  animation: blobA 18s ease-in-out infinite alternate;
}
.features-bg i:nth-child(2) {
  width: 640px; height: 640px; right: -180px; bottom: -12%;
  background: radial-gradient(circle, rgba(158, 232, 255, 0.11), transparent 65%);
  animation: blobB 22s ease-in-out infinite alternate;
}
@keyframes blobA { to { transform: translate(130px, 70px) scale(1.15); } }
@keyframes blobB { to { transform: translate(-150px, -80px) scale(0.9); } }
.features-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(158, 232, 255, 0.13) 1px, transparent 1.5px);
  background-size: 34px 34px;
  mask-image: radial-gradient(78% 72% at 50% 46%, #000 25%, transparent 76%);
  -webkit-mask-image: radial-gradient(78% 72% at 50% 46%, #000 25%, transparent 76%);
  animation: gridDrift 70s linear infinite;
  opacity: 0.55;
}
@keyframes gridDrift { to { background-position: 340px 170px; } }

.card { border-radius: 22px; padding: 30px 28px 28px; border-color: rgba(255, 255, 255, 0.09); }
.card h3 { font-size: 19px; letter-spacing: 0.01em; margin-bottom: 11px; }
.card p { font-size: 14.2px; line-height: 1.65; color: #a7b1c4; }
.card-ico {
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(150deg, rgba(120, 180, 255, 0.16), rgba(120, 180, 255, 0.05));
  border: 1px solid rgba(140, 207, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 8px 24px -10px rgba(77, 141, 255, 0.35);
  display: grid; place-items: center; margin-bottom: 20px;
  color: #8ccfff; font-size: 0;
}
.card-ico svg { width: 22px; height: 22px; }

@media (prefers-reduced-motion: reduce) {
  .features-bg i, .features-bg::after { animation: none; }
}

/* ============================================================
   06 — Built with Xpose (showcase rows, use-case index)
   ============================================================ */
.table-note {
  margin-top: 22px; text-align: center;
  font-size: 13.5px; color: var(--ink-3);
}
.table-note em { color: var(--ink-2); }

.show-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 90px); align-items: center;
  margin-top: clamp(56px, 7vw, 96px);
}
.show-row-flip .show-copy { order: 2; }
.show-tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.26em;
  color: var(--ion-2); margin-bottom: 14px;
}
.show-copy h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(21px, 2.4vw, 28px); letter-spacing: -0.015em;
  line-height: 1.2; margin-bottom: 14px;
}
.show-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 4px; }
.show-chips span {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em;
  color: var(--ink-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 13px;
  background: rgba(255, 255, 255, 0.025);
}

/* training console: loss curve draws itself on scroll */
.train-card {
  position: relative;
  background: linear-gradient(160deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}
.train-body { padding: 20px 22px 16px; }
.train-readout {
  display: flex; gap: clamp(14px, 2.5vw, 30px); flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-3);
  margin-bottom: 16px;
}
.train-readout b {
  color: var(--ion-2); font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.train-readout i { font-style: normal; color: var(--ink-3); }
.train-dev { margin-left: auto; }
.train-dev b { color: #7ee2a0; }
.train-svg { display: block; width: 100%; height: clamp(120px, 16vw, 170px); }
.train-grid path { stroke: rgba(255, 255, 255, 0.05); stroke-width: 1; }
#lossPath {
  fill: none; stroke: var(--ion-2); stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 520; stroke-dashoffset: 520;
  filter: drop-shadow(0 0 6px rgba(158, 232, 255, 0.5));
}
.train-card.trained #lossPath {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 2.4s var(--ease-out) 0.2s;
}
#lossDot {
  fill: #eaf7ff; opacity: 0;
  filter: drop-shadow(0 0 8px rgba(158, 232, 255, 0.9));
  offset-path: path("M0 14 C 30 16, 44 30, 70 52 S 120 96, 160 110 S 240 128, 300 133 S 380 137, 400 138");
}
.train-card.trained #lossDot {
  opacity: 1;
  animation: lossRide 2.4s var(--ease-out) 0.2s both;
}
@keyframes lossRide { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.train-axis {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em;
  color: var(--ink-3); margin-top: 8px;
}

/* sim board: tile wall + throughput meter */
.sim-board {
  background: linear-gradient(160deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  border: 1px solid var(--line); border-radius: 18px;
  padding: 24px; overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}
.sim-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px; margin-bottom: 22px;
}
.sim-grid span {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em;
  color: var(--ink-2); text-align: center; white-space: nowrap;
  border: 1px solid var(--line-soft); border-radius: 9px;
  padding: 10px 6px; background: rgba(3, 5, 9, 0.5);
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.6s var(--ease-out) calc(var(--i) * 70ms),
              transform 0.6s var(--ease-out) calc(var(--i) * 70ms),
              border-color 0.3s, color 0.3s;
}
.reveal.in .sim-grid span { opacity: 1; transform: none; }
.sim-grid span:hover { border-color: rgba(120, 180, 255, 0.4); color: var(--ion-2); }
.sim-meter b {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(30px, 3.4vw, 42px); letter-spacing: -0.02em; line-height: 1.1;
  color: var(--ink);
}
.sim-meter b i { font-style: normal; font-variant-numeric: tabular-nums; }
.sim-meter > span {
  font-size: 12px; color: var(--ink-3);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.sim-bar {
  height: 4px; border-radius: 2px; margin-top: 14px;
  background: rgba(255, 255, 255, 0.06); overflow: hidden;
}
.sim-bar em {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--ion), var(--ion-2));
  border-radius: 2px;
  transform: scaleX(0); transform-origin: 0 50%;
  box-shadow: 0 0 12px rgba(120, 180, 255, 0.6);
}
.reveal.in .sim-bar em { transform: scaleX(0.81); transition: transform 1.6s var(--ease-out) 0.4s; }

/* use-case index: numbered editorial rows, not cards */
.uses { margin-top: clamp(64px, 8vw, 110px); }
.uses-head {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px;
}
.uses-list { display: grid; grid-template-columns: 1fr 1fr; }
.use {
  position: relative; display: block;
  padding: 26px 44px 26px 0;
  border-top: 1px solid var(--line-soft);
  color: inherit;
  transition: background 0.3s, padding-left 0.35s var(--ease-out);
}
.use:hover { background: rgba(255, 255, 255, 0.018); padding-left: 12px; color: inherit; }
.use b {
  font-family: var(--font-mono); font-weight: 500; font-size: 11px;
  letter-spacing: 0.18em; color: var(--ion);
}
.use h4 {
  font-family: var(--font-display); font-weight: 600; font-size: 18px;
  letter-spacing: -0.01em; margin: 8px 0 7px;
}
.use p { font-size: 13.8px; color: var(--ink-2); max-width: 44ch; }
.use::after {
  content: "→"; position: absolute; right: 18px; top: 28px;
  color: var(--ink-3); opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s, transform 0.35s var(--ease-out), color 0.3s;
}
.use:hover::after { opacity: 1; transform: none; color: var(--ion-2); }
.uses-list .use:nth-child(odd) { margin-right: clamp(20px, 3vw, 44px); }
.uses-list .use:nth-child(even) { margin-left: clamp(20px, 3vw, 44px); }

/* ============================================================
   07 — Economics (light band)
   ============================================================ */
.econ { padding: clamp(90px, 13vw, 170px) clamp(22px, 7vw, 110px); }
.econ-title {
  font-family: "Archivo Black", var(--font-display);
  font-weight: 400; text-transform: uppercase;
  font-size: clamp(26px, 4.6vw, 66px);
  line-height: 1.06; letter-spacing: -0.01em;
  max-width: 1100px; margin-bottom: clamp(48px, 6vw, 84px);
  color: #101114;
}
.econ-cols {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 64px);
}
.econ-col b {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(34px, 4vw, 52px); letter-spacing: -0.025em; line-height: 1;
  color: #101114;
}
.econ-col h4 {
  font-family: var(--font-mono); font-weight: 500; font-size: 11.5px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: #2668ff; margin: 12px 0 14px;
}
.econ-col p { font-size: 14.5px; line-height: 1.65; color: #52544e; max-width: 38ch; }

/* ============================================================
   08 — Open core / pricing
   ============================================================ */
.core-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 2.5vw, 30px);
  margin-top: clamp(40px, 5vw, 60px);
}
.core-panel {
  background: linear-gradient(165deg, rgba(255,255,255,0.04), rgba(255,255,255,0.012));
  border: 1px solid var(--line); border-radius: 20px;
  padding: 30px 30px 28px;
  display: flex; flex-direction: column; align-items: flex-start;
  transition: border-color 0.4s, transform 0.4s var(--ease-out);
}
.core-panel:hover { border-color: rgba(120, 180, 255, 0.28); transform: translateY(-4px); }
.core-panel-cloud {
  background:
    radial-gradient(140% 120% at 100% 0%, rgba(120, 180, 255, 0.09), transparent 55%),
    linear-gradient(165deg, rgba(255,255,255,0.04), rgba(255,255,255,0.012));
}
.core-head {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 6px;
}
.core-head h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 21px;
  letter-spacing: -0.01em;
}
.chip-soon { color: #ffd9a8; background: rgba(255, 162, 94, 0.1); border-color: rgba(255, 162, 94, 0.3); }
.core-panel .checks { margin: 10px 0 24px; }
.core-panel .btn { margin-top: auto; }

.price-wrap { margin-top: clamp(36px, 4.5vw, 54px); }
.price-note {
  text-align: center; font-size: 14.5px; color: var(--ink-2);
  max-width: 560px; margin: 0 auto 30px;
}
.price-note strong { color: var(--ink); }
.price-rail {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
}
.tier {
  padding: 26px 20px 24px; text-align: center;
  border-right: 1px solid var(--line-soft);
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.7s var(--ease-out) calc(var(--i) * 90ms),
              transform 0.7s var(--ease-out) calc(var(--i) * 90ms),
              background 0.3s;
}
.reveal.in .tier { opacity: 1; transform: none; }
.tier:last-child { border-right: none; }
.tier:hover { background: rgba(255, 255, 255, 0.02); }
.tier h5 {
  font-family: var(--font-mono); font-weight: 500; font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 12px;
}
.tier b {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.tier span { font-size: 12px; color: var(--ink-3); }
.tier-hot { background: rgba(120, 180, 255, 0.055); position: relative; }
.tier-hot::before {
  content: "most teams"; position: absolute; top: 10px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ion-2);
}
.tier-hot h5 { color: var(--ion-2); }
.tier-hot:hover { background: rgba(120, 180, 255, 0.085); }
.price-foot {
  text-align: center; font-size: 13px; color: var(--ink-3);
  margin-top: 22px; max-width: 620px; margin-inline: auto;
}

/* ============================================================
   09 — FAQ
   ============================================================ */
.faq-list { max-width: 760px; margin-top: clamp(30px, 4vw, 46px); }
.faq-item { border-top: 1px solid var(--line-soft); }
.faq-item:last-child { border-bottom: 1px solid var(--line-soft); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  width: 100%; padding: 22px 2px;
  background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-weight: 600; font-size: 17px;
  letter-spacing: -0.005em; color: var(--ink);
  transition: color 0.25s;
}
.faq-q:hover { color: var(--ion-2); }
.faq-q i {
  position: relative; flex: none; width: 22px; height: 22px;
  border: 1px solid var(--line); border-radius: 50%;
}
.faq-q i::before, .faq-q i::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 9px; height: 1.5px; background: var(--ink-2);
  transform: translate(-50%, -50%);
  transition: transform 0.4s var(--ease-out), background 0.3s;
}
.faq-q i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.open .faq-q i::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-item.open .faq-q i::before, .faq-item.open .faq-q i::after { background: var(--ion-2); }
.faq-a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease-out);
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a-inner p {
  padding: 0 40px 24px 2px;
  font-size: 14.5px; line-height: 1.7; color: var(--ink-2);
  max-width: 66ch;
}

/* footer partner line */
.footer-partner { font-size: 13px !important; }
.footer-partner a { color: var(--ion); }

/* responsive: new sections */
@media (max-width: 980px) {
  .show-row { grid-template-columns: 1fr; gap: 36px; }
  .show-row-flip .show-copy { order: 0; }
  .uses-list { grid-template-columns: 1fr; }
  .uses-list .use:nth-child(odd), .uses-list .use:nth-child(even) { margin: 0; }
  .econ-cols { grid-template-columns: 1fr; gap: 36px; }
  .core-grid { grid-template-columns: 1fr; }
  .price-rail { grid-template-columns: 1fr 1fr; }
  .tier { border-bottom: 1px solid var(--line-soft); }
  .tier:nth-child(even) { border-right: none; }
  .tier:last-child { grid-column: 1 / -1; border-bottom: none; }
}
@media (max-width: 480px) {
  .price-rail { grid-template-columns: 1fr; }
  .tier, .tier:nth-child(even) { border-right: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sim-grid span, .tier { opacity: 1; transform: none; }
  .reveal.in .sim-bar em, .sim-bar em { transform: scaleX(0.81); }
  #lossPath { stroke-dashoffset: 0; }
  #lossDot { opacity: 1; offset-distance: 100%; }
}

/* pitch section: copy and code card start at the same level */
#why .section-grid { align-items: flex-start; }
#why .code-card { margin-top: 30px; }

/* ---- benchmark bars (LLM section) ---------------------------------------- */
.bench-rows { display: flex; flex-direction: column; gap: 10px; padding: 4px 0 2px; }
.bench-row  { display: grid; grid-template-columns: 92px 1fr 46px; align-items: center; gap: 10px; }
.bench-name { font: 500 11px/1 ui-monospace, "SF Mono", Menlo, monospace;
              opacity: .62; letter-spacing: .02em; white-space: nowrap; }
.bench-bar  { height: 9px; border-radius: 999px; display: block; width: 0;
              background: color-mix(in oklab, currentColor 18%, transparent);
              animation: benchGrow 1.1s cubic-bezier(.22,1,.36,1) forwards; }
.bench-us   { background: linear-gradient(90deg, #22d3ee, #6366f1); }
.bench-row b{ font: 700 12px/1 ui-monospace, "SF Mono", Menlo, monospace;
              text-align: right; letter-spacing: -.01em; }
.bench-curve { padding: 2px 0 14px; }
@keyframes benchGrow { to { width: var(--w); } }
@media (prefers-reduced-motion: reduce) {
  .bench-bar { animation: none; width: var(--w); }
}
