/* 3 API — Direction A "THE KEY" */
:root {
  --bg: #000;
  --s1: #0a0a0a;
  --s2: #111;
  --s3: #171717;
  --line: rgba(255,255,255,.08);
  --line2: rgba(255,255,255,.12);
  --hi: inset 0 1px 0 rgba(255,255,255,.05);
  --t1: #fafafa;
  --t2: #a3a3a3;
  --t3: #8a8a8a;
  --t4: #767676;
  --t5: #525252;
  --blue: #3b82f6;
  --blue2: #60a5fa;
  --teal: #2dd4bf;
  --teal2: #5eead4;
  --green: #22c55e;
  --green2: #86efac;
  --amber: #f59e0b;
  --amber2: #fcd34d;
  --ease: cubic-bezier(.2,.7,.2,1);
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--t2);
  font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip; font-feature-settings: "ss01" 1;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { color: var(--t1); margin: 0; font-weight: 600; letter-spacing: -0.04em; }
p { margin: 0; }
code, .mono { font-family: var(--mono); }
code { font-size: .88em; color: var(--t1); background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 6px; padding: .08em .38em; }
kbd {
  font: 500 11px/1 var(--mono); color: var(--t2); min-width: 20px; height: 20px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--s3); border: 1px solid var(--line2); border-bottom-width: 2px; border-radius: 5px;
}
.blue { color: var(--blue); }
.dim { color: var(--t3); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 8px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: #fff; color: #000; padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 999px; font-weight: 500; font-size: 15px; letter-spacing: -0.01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn-white { background: #fafafa; color: #000; box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 8px 30px -10px rgba(255,255,255,.35); }
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255,255,255,.3), 0 10px 40px -8px rgba(96,165,250,.55); }
.btn-white:hover svg { transform: translateX(2px); }
.btn-dark { background: rgba(10,10,10,.7); color: var(--t1); border: 1px solid var(--line2); box-shadow: var(--hi); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-dark:hover { border-color: rgba(255,255,255,.22); background: rgba(23,23,23,.8); transform: translateY(-1px); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn:focus-visible { outline-offset: 3px; border-radius: 999px; }

.link { color: var(--blue2); display: inline-flex; align-items: center; gap: 4px; border-radius: 4px; transition: color .2s; }
.link:hover { color: #93c5fd; }
.link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

/* ---------- nav capsule ---------- */
.nav { position: fixed; z-index: 50; top: 16px; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; pointer-events: none; padding: 0 16px; }
.nav-cap {
  pointer-events: auto; display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 14px;
  background: rgba(12,12,12,.62); border: 1px solid var(--line2); border-radius: 999px; box-shadow: var(--hi), 0 10px 40px -12px rgba(0,0,0,.8);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition: padding .35s var(--ease), gap .35s var(--ease), background .35s var(--ease), transform .35s var(--ease);
}
.nav.tight .nav-cap { padding: 4px 4px 4px 12px; gap: 2px; background: rgba(8,8,8,.9); backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%); transform: scale(.97); }
.brand { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; color: var(--t1); font-weight: 600; letter-spacing: -0.02em; font-size: 15px; padding-right: 8px; border-radius: 8px; }
.brand img { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { padding: 8px 12px; border-radius: 999px; font-size: 14px; color: var(--t2); transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--t1); background: rgba(255,255,255,.06); }
.nav-k { display: inline-flex; gap: 3px; padding: 8px; border-radius: 999px; margin-right: 2px; }
.nav-k kbd:first-child { font-size: 12px; }
.nav-k:hover kbd { color: var(--t1); border-color: rgba(255,255,255,.22); }
.nav-cta .short { display: none; }
.nav-menu { display: none; width: 40px; height: 40px; border-radius: 999px; align-items: center; justify-content: center; }
.nav-menu svg { width: 20px; height: 20px; fill: none; stroke: var(--t1); stroke-width: 1.6; stroke-linecap: round; overflow: visible; }
.nav-menu path { transform-origin: 12px 12px; transition: transform .3s var(--ease); }
.nav-menu[aria-expanded="true"] .a { transform: translateY(3px) rotate(45deg); }
.nav-menu[aria-expanded="true"] .b { transform: translateY(-3px) rotate(-45deg); }
.menu {
  pointer-events: auto; margin-top: 8px; width: min(100%, 360px); padding: 8px; display: grid; gap: 2px;
  background: rgba(12,12,12,.92); border: 1px solid var(--line2); border-radius: 20px; box-shadow: var(--hi), 0 20px 60px -10px #000;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.menu[hidden] { display: none; }
.menu a, .menu button { min-height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; border-radius: 12px; color: var(--t1); font-size: 15px; text-align: left; }
.menu a:hover, .menu button:hover { background: rgba(255,255,255,.06); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; padding: 100px 16px 40px; display: flex; flex-direction: column; align-items: center; isolation: isolate; overflow-x: clip; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.wash {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 40% at 50% 78%, rgba(59,130,246,.16), transparent 70%),
    radial-gradient(40% 30% at 50% 0%, rgba(255,255,255,.05), transparent 70%),
    radial-gradient(30% 25% at 18% 72%, rgba(59,130,246,.06), transparent 70%),
    radial-gradient(30% 25% at 82% 72%, rgba(45,212,191,.05), transparent 70%);
}
.wash::after { /* fine dot field, fading out */
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1.2px); background-size: 28px 28px;
  mask-image: radial-gradient(70% 55% at 50% 72%, #000 0%, transparent 75%); -webkit-mask-image: radial-gradient(70% 55% at 50% 72%, #000 0%, transparent 75%);
  opacity: .5;
}
.frags { position: absolute; inset: 0; }
.frag { position: absolute; font: 400 12px/1.5 var(--mono); color: rgba(255,255,255,.16); white-space: pre; transition: opacity 1.2s var(--ease); }
.frag.out { opacity: 0; }
.frag .cur { display: inline-block; width: 6px; height: 12px; background: rgba(96,165,250,.5); vertical-align: -1px; margin-left: 1px; }

.hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 1000px; }
.hero-h .l2 { white-space: nowrap; }
.status {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 13px 0 11px; border-radius: 999px;
  font: 500 12px/1 var(--mono); letter-spacing: .04em; color: var(--t2);
  background: rgba(17,17,17,.7); border: 1px solid var(--line2); box-shadow: var(--hi);
}
.status .dot { width: 7px; height: 7px; border-radius: 50%; background: #737373; position: relative; }
.status[data-state="online"] { color: var(--green2); border-color: rgba(34,197,94,.25); }
.status[data-state="online"] .dot { background: var(--green); }
.status[data-state="online"] .dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--green); animation: ping 2s var(--ease) infinite; }
.status[data-state="down"] { color: var(--amber2); border-color: rgba(245,158,11,.3); }
.status[data-state="down"] .dot { background: var(--amber); }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 80%, 100% { transform: scale(1.8); opacity: 0; } }

.hero-h { margin-top: 20px; font-size: clamp(44px, 5.9vw, 86px); line-height: .98; letter-spacing: -0.05em; font-weight: 650; }
.hero-h span { display: block; }
.hero-h .l2 > span { display: inline; }
.hero-h .l2 {
  font-size: .74em; margin-top: .08em;
  background: linear-gradient(180deg, #e5e5e5 0%, #8a8a8a 55%, #5c5c5c 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .06em;
}
.lede { margin-top: 18px; max-width: 560px; font-size: 17px; line-height: 1.55; color: var(--t2); text-wrap: balance; }
.cta-row { margin-top: 26px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* intro (CSS only; first paint never waits for JS) */
.hero-copy > * { animation: up .9s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
@keyframes up { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }

/* stage: nodes — card — nodes */
.stage {
  position: relative; width: 100%; max-width: 1160px; margin-top: 40px;
  display: grid; grid-template-columns: 1fr auto 1fr; grid-template-rows: auto auto; align-items: center;
}
.links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.rail { fill: none; stroke-width: 1.2; stroke-dasharray: 100; stroke-dashoffset: 100; }
.pulse { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 16 300; stroke-dashoffset: 17; opacity: 0; }
.pulse-ds { stroke: #bfdbfe; filter: drop-shadow(0 0 4px #60a5fa) drop-shadow(0 0 10px #3b82f6); }
.pulse-glm { stroke: #ccfbf1; filter: drop-shadow(0 0 4px #5eead4) drop-shadow(0 0 10px #14b8a6); }
.pulse-kimi { stroke: #ede9fe; filter: drop-shadow(0 0 4px #a78bfa) drop-shadow(0 0 10px #8b5cf6); }
.pulse-mimo { stroke: #fce7f3; filter: drop-shadow(0 0 4px #f9a8d4) drop-shadow(0 0 10px #ec4899); }
.stage.live .rail { animation: draw 1.2s var(--ease) .1s forwards; }
.stage.live .pulse { animation: travel 2.2s cubic-bezier(.45,.05,.35,1) 1.3s infinite; }
.stage.live .pulse-kimi, .stage.live .pulse-mimo { animation-delay: 2.4s; } /* half a beat after DeepSeek and GLM */
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes travel { 0% { stroke-dashoffset: 17; opacity: 0; } 6% { opacity: 1; } 52% { opacity: 1; } 58% { stroke-dashoffset: -100; opacity: 0; } 100% { stroke-dashoffset: -100; opacity: 0; } }

.node {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px;
  background: linear-gradient(180deg, rgba(23,23,23,.85), rgba(10,10,10,.85)); border: 1px solid var(--line2); border-radius: 18px;
  box-shadow: var(--hi), 0 20px 50px -20px #000; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(10px) scale(.96); transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.card-wrap { grid-column: 2; grid-row: 1 / 3; }
.node-ds, .node-kimi { grid-column: 1; justify-self: start; }
.node-glm, .node-mimo { grid-column: 3; justify-self: end; }
.node-ds, .node-glm { grid-row: 1; align-self: end; margin-bottom: 6px; }
.node-kimi, .node-mimo { grid-row: 2; align-self: start; margin-top: 34px; }
.node-ds { margin-left: 2%; } .node-glm { margin-right: 2%; }
.node-kimi { margin-left: 9%; } .node-mimo { margin-right: 9%; }
.stage.live .node { opacity: 1; transform: none; transition-delay: .7s; }
.stage.live .node-ds { animation: hitL 2.2s linear 1.3s infinite; }
.stage.live .node-glm { animation: hitR 2.2s linear 1.3s infinite; }
.stage.live .node-kimi { animation: hitK 2.2s linear 2.4s infinite; }
.stage.live .node-mimo { animation: hitM 2.2s linear 2.4s infinite; }
@keyframes hitL { 0%, 50% { box-shadow: var(--hi), 0 20px 50px -20px #000; border-color: var(--line2); } 56% { box-shadow: var(--hi), 0 0 0 1px rgba(96,165,250,.35), 0 0 34px -4px rgba(59,130,246,.55); border-color: rgba(96,165,250,.5); } 85%, 100% { box-shadow: var(--hi), 0 20px 50px -20px #000; border-color: var(--line2); } }
@keyframes hitR { 0%, 50% { box-shadow: var(--hi), 0 20px 50px -20px #000; border-color: var(--line2); } 56% { box-shadow: var(--hi), 0 0 0 1px rgba(94,234,212,.3), 0 0 34px -4px rgba(45,212,191,.45); border-color: rgba(94,234,212,.45); } 85%, 100% { box-shadow: var(--hi), 0 20px 50px -20px #000; border-color: var(--line2); } }
@keyframes hitK { 0%, 50% { box-shadow: var(--hi), 0 20px 50px -20px #000; border-color: var(--line2); } 56% { box-shadow: var(--hi), 0 0 0 1px rgba(167,139,250,.35), 0 0 34px -4px rgba(139,92,246,.55); border-color: rgba(167,139,250,.5); } 85%, 100% { box-shadow: var(--hi), 0 20px 50px -20px #000; border-color: var(--line2); } }
@keyframes hitM { 0%, 50% { box-shadow: var(--hi), 0 20px 50px -20px #000; border-color: var(--line2); } 56% { box-shadow: var(--hi), 0 0 0 1px rgba(249,168,212,.3), 0 0 34px -4px rgba(236,72,153,.45); border-color: rgba(249,168,212,.45); } 85%, 100% { box-shadow: var(--hi), 0 20px 50px -20px #000; border-color: var(--line2); } }
.glyph {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none;
  font: 600 13px/1 var(--mono); letter-spacing: .02em; border: 1px solid var(--line2); box-shadow: var(--hi);
}
.node-ds .glyph, .fam-ds .glyph { color: #93c5fd; background: radial-gradient(circle at 30% 20%, rgba(59,130,246,.35), rgba(59,130,246,.06)); border-color: rgba(96,165,250,.3); }
.node-glm .glyph, .fam-glm .glyph { color: #99f6e4; background: radial-gradient(circle at 30% 20%, rgba(45,212,191,.3), rgba(45,212,191,.05)); border-color: rgba(94,234,212,.28); }
.node-kimi .glyph, .fam-kimi .glyph { color: #c4b5fd; background: radial-gradient(circle at 30% 20%, rgba(139,92,246,.34), rgba(139,92,246,.06)); border-color: rgba(167,139,250,.3); }
.node-mimo .glyph, .fam-mimo .glyph { color: #fbcfe8; background: radial-gradient(circle at 30% 20%, rgba(236,72,153,.28), rgba(236,72,153,.05)); border-color: rgba(249,168,212,.28); }
.node-t { display: flex; flex-direction: column; line-height: 1.25; }
.node-t b { color: var(--t1); font-weight: 600; font-size: 15px; letter-spacing: -0.02em; }
.node-t small { font: 400 12px/1.4 var(--mono); color: var(--t3); }

/* the card */
.card-wrap { position: relative; z-index: 2; width: min(520px, 42vw); perspective: 1100px; }
.floor {
  position: absolute; left: 50%; bottom: -70px; width: 120%; height: 120px; transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(59,130,246,.45), rgba(59,130,246,.08) 55%, transparent 72%);
  filter: blur(18px); opacity: .8; pointer-events: none;
}
.floor::after { /* horizon hairline */
  content: ""; position: absolute; left: -40%; right: -40%; top: 50%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(147,197,253,.5) 50%, transparent); filter: blur(.3px);
}
.card {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 30%; --lift: 0px;
  position: relative; width: 100%; aspect-ratio: 1.586; border-radius: 22px; container-type: inline-size;
  transform-style: preserve-3d; transform: translateY(var(--lift)) rotateX(var(--rx)) rotateY(var(--ry));
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(59,130,246,.22), transparent 55%),
    radial-gradient(100% 80% at 100% 100%, rgba(45,212,191,.12), transparent 60%),
    linear-gradient(145deg, rgba(38,38,42,.9), rgba(10,10,12,.96) 60%);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 0 0 1px rgba(255,255,255,.02),
    0 40px 80px -30px rgba(0,0,0,.9), 0 30px 90px -40px rgba(59,130,246,.6);
  animation: cardIn 1.4s var(--ease) .25s both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(60px) rotateX(38deg) scale(.92); filter: blur(10px); } to { opacity: 1; transform: translateY(0) rotateX(0) rotateY(0); filter: blur(0); } }
.card.ready { animation: none; }
.card.moving { will-change: transform; }
.card-rings {
  position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none;
  background: repeating-radial-gradient(circle at 86% 12%, rgba(255,255,255,.055) 0 1px, transparent 1.5px 9px);
  mask-image: radial-gradient(90% 90% at 86% 12%, #000 0%, transparent 70%); -webkit-mask-image: radial-gradient(90% 90% at 86% 12%, #000 0%, transparent 70%);
}
.card-rings::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.025) 0 1px, transparent 1px 5px);
  mask-image: linear-gradient(90deg, #000, transparent 60%); -webkit-mask-image: linear-gradient(90deg, #000, transparent 60%);
}
.card-sheen {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; mix-blend-mode: plus-lighter;
  background:
    radial-gradient(55% 70% at var(--mx) var(--my), rgba(255,255,255,.2), transparent 60%),
    linear-gradient(105deg, transparent 30%, rgba(255,255,255,.06) 45%, rgba(147,197,253,.08) 50%, transparent 62%);
  background-size: 100% 100%, 250% 100%; background-position: 0 0, var(--sx, 120%) 0;
}
.card-edge {
  position: absolute; inset: -1px; border-radius: 23px; padding: 1px; pointer-events: none;
  background: radial-gradient(45% 70% at var(--mx) var(--my), #dbeafe, rgba(96,165,250,.45) 40%, rgba(255,255,255,.06) 75%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.card-in { position: absolute; inset: 0; padding: 6.4cqw 6.6cqw; display: flex; flex-direction: column; transform: translateZ(12px); }
.c-top { display: flex; justify-content: space-between; align-items: center; }
.c-brand { display: inline-flex; align-items: center; gap: 2.2cqw; color: var(--t1); font-weight: 600; font-size: 3.7cqw; letter-spacing: -0.02em; }
.c-brand img { width: 6.4cqw; height: 6.4cqw; }
.c-label { font: 500 max(8.5px, 2.1cqw)/1 var(--mono); letter-spacing: .28em; color: var(--t3); }
.c-mid { margin-top: 6.5cqw; display: flex; align-items: center; gap: 3cqw; }
.chip { width: 11cqw; height: auto; fill: rgba(253,230,138,.05); stroke: rgba(253,230,138,.5); stroke-width: 1; }
.chip rect { fill: url(#none); fill: rgba(250,204,21,.07); }
.wave { width: 5cqw; height: 5cqw; fill: none; stroke: rgba(255,255,255,.35); stroke-width: 1.4; stroke-linecap: round; }
.c-key { margin-top: auto; font: 500 5.1cqw/1 var(--mono); letter-spacing: .02em; color: var(--t1); white-space: nowrap; text-shadow: 0 0 18px rgba(147,197,253,.35); }
.c-key .scr { color: var(--blue2); }
.c-rows { margin: 4.6cqw 0 0; display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 2cqw; }
.c-rows div { min-width: 0; }
.c-rows dt { font: 500 max(8.5px, 1.75cqw)/1 var(--mono); letter-spacing: .22em; color: var(--t4); }
.c-rows dd { margin: max(5px, 1.3cqw) 0 0; font: 400 max(10.5px, 2.55cqw)/1.2 var(--mono); color: var(--t2); white-space: nowrap; }

.stage-cap { margin-top: 48px; display: flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--t4); opacity: 0; animation: up 1s var(--ease) 1.6s both; }
.stage-cap i { width: 24px; height: 1px; background: var(--line2); }

/* ---------- sections ---------- */
.sec { position: relative; max-width: 1120px; margin: 0 auto; padding: 140px 16px 0; }
.sec-head { text-align: center; display: flex; flex-direction: column; align-items: center; }
.eyebrow { font: 500 11.5px/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--t3); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before, .eyebrow::after { content: ""; width: 18px; height: 1px; background: var(--line2); }
.sec-head h2 { margin-top: 18px; font-size: clamp(36px, 5.2vw, 64px); line-height: 1.02; letter-spacing: -0.045em; }
.sub { margin-top: 18px; max-width: 540px; font-size: 16px; color: var(--t2); text-wrap: balance; }

/* reveal */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

/* glass surface base */
.glass, .diff, .fam, .tile, .q, .pal-box {
  background: linear-gradient(180deg, rgba(23,23,23,.7), rgba(10,10,10,.75));
  border: 1px solid var(--line); box-shadow: var(--hi);
}

/* ---------- code diff ---------- */
.diff { margin: 56px auto 0; max-width: 860px; border-radius: 20px; overflow: hidden; position: relative; }
.diff::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 50% at 50% 0%, rgba(59,130,246,.08), transparent 70%); }
.diff-bar { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 2px; padding: 3px; background: rgba(0,0,0,.5); border: 1px solid var(--line); border-radius: 12px; }
.tabs button { height: 40px; padding: 0 14px; border-radius: 9px; font-size: 13.5px; color: var(--t3); transition: color .2s, background .2s; }
.tabs button:hover { color: var(--t1); }
.tabs button[aria-selected="true"] { color: var(--t1); background: var(--s3); box-shadow: var(--hi), 0 0 0 1px var(--line2); }
.diff-file { margin-left: auto; font-size: 12px; color: var(--t4); }
.copy { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 10px; font-size: 13px; color: var(--t2); border: 1px solid var(--line2); background: var(--s2); transition: color .2s, border-color .2s; }
.copy:hover { color: var(--t1); border-color: rgba(255,255,255,.22); }
.copy svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.copy.ok { color: var(--green2); border-color: rgba(34,197,94,.35); }
.diff-body { position: relative; margin: 0; padding: 18px 0; overflow-x: auto; font: 400 13.5px/1.75 var(--mono); color: #d4d4d4; min-height: 420px; }
.diff-body code { background: none; border: 0; padding: 0; font-size: inherit; color: inherit; display: block; min-width: max-content; }
.ln { display: grid; grid-template-columns: 44px 20px 1fr; padding-right: 24px; position: relative; }
.ln .n { color: #404040; text-align: right; padding-right: 10px; user-select: none; }
.ln .m { color: var(--t5); user-select: none; text-align: center; }
.ln.del { background: rgba(239,68,68,.09); }
.ln.del .m, .ln.del .n { color: #f87171; }
.ln.del .t { color: #fca5a5; }
.ln.del .t .c { text-decoration: line-through; text-decoration-color: rgba(252,165,165,.4); }
.ln.add { background: rgba(34,197,94,.09); }
.ln.add .m, .ln.add .n { color: #4ade80; }
.ln.add .t { color: #bbf7d0; }
.ln.del::before, .ln.add::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; }
.ln.del::before { background: #ef4444; }
.ln.add::before { background: #22c55e; }
.tk-s { color: #93c5fd; }
.tk-k { color: #c4b5fd; }
.tk-c { color: #525252; }
.ln.add .tk-s { color: #bbf7d0; }
.ln.del .tk-s { color: #fca5a5; }
/* diff reveal: new lines type in once in view */
.js .diff .ln.add .t { clip-path: inset(0 100% 0 0); }
.js .diff .ln.add { background: rgba(34,197,94,0); }
.js .diff .ln.del .t .c { text-decoration-color: transparent; }
.diff.play .ln.del .t .c { text-decoration-color: rgba(252,165,165,.45); transition: text-decoration-color .4s .2s; }
.diff.play .ln.add { background: rgba(34,197,94,.09); transition: background .5s .5s; }
.diff.play .ln.add .t { clip-path: inset(0 0 0 0); transition: clip-path .9s steps(28) .6s; }
.diff.play .ln.add + .ln.add .t { transition-delay: 1.2s; }
.diff-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 14px 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--t3); }
.legend { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 12px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.lg-del { background: rgba(239,68,68,.5); }
.lg-add { background: rgba(34,197,94,.55); }
.foot-note { margin-left: auto; }

/* ---------- model families ---------- */
.fams { margin-top: 56px; display: grid; grid-template-columns: 1fr 56px 1fr; grid-template-rows: auto auto; row-gap: 22px; align-items: stretch; }
.fam-ds { grid-area: 1 / 1; } .fam-glm { grid-area: 1 / 3; } .fam-kimi { grid-area: 2 / 1; } .fam-mimo { grid-area: 2 / 3; }
.bridge { grid-column: 2; grid-row: 1 / 3; }
.fam { position: relative; border-radius: 22px; padding: 26px 22px 18px; overflow: hidden; transition: border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease); }
.fam::before { content: ""; position: absolute; inset: 0; pointer-events: none; }
.fam-ds::before { background: radial-gradient(90% 55% at 20% 0%, rgba(59,130,246,.2), transparent 70%); }
.fam-glm::before { background: radial-gradient(90% 55% at 80% 0%, rgba(45,212,191,.16), transparent 70%); }
.fam-kimi::before { background: radial-gradient(90% 55% at 20% 0%, rgba(139,92,246,.18), transparent 70%); }
.fam-mimo::before { background: radial-gradient(90% 55% at 80% 0%, rgba(236,72,153,.13), transparent 70%); }
.fam-ds:hover { border-color: rgba(96,165,250,.35); box-shadow: var(--hi), 0 30px 80px -40px rgba(59,130,246,.6); transform: translateY(-2px); }
.fam-glm:hover { border-color: rgba(94,234,212,.3); box-shadow: var(--hi), 0 30px 80px -40px rgba(45,212,191,.5); transform: translateY(-2px); }
.fam-kimi:hover { border-color: rgba(167,139,250,.35); box-shadow: var(--hi), 0 30px 80px -40px rgba(139,92,246,.6); transform: translateY(-2px); }
.fam-mimo:hover { border-color: rgba(249,168,212,.3); box-shadow: var(--hi), 0 30px 80px -40px rgba(236,72,153,.5); transform: translateY(-2px); }
.fam-head { position: relative; display: flex; align-items: center; gap: 14px; }
.fam-head .glyph { width: 48px; height: 48px; border-radius: 14px; font-size: 15px; }
.fam-head h3 { font-size: 26px; letter-spacing: -0.035em; }
.fam-head p { font-size: 13.5px; color: var(--t3); }
.fam-cols { position: relative; margin-top: 34px; padding: 0 12px 10px; display: grid; grid-template-columns: 1fr 84px 84px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--t4); border-bottom: 1px solid var(--line); }
.fam-cols span:not(:first-child), .row .pr { text-align: right; }
.rows { position: relative; list-style: none; margin: 0; padding: 0; }
.row { position: relative; display: grid; grid-template-columns: 1fr 84px 84px; align-items: center; gap: 0; padding: 16px 12px; }
.row + .row { box-shadow: inset 0 1px 0 var(--line); }
.row::before { content: ""; position: absolute; inset: 2px 0; border-radius: 12px; background: rgba(255,255,255,.03); opacity: 0; transition: opacity .25s; pointer-events: none; }
.row:hover::before { opacity: 1; }
.row-name { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.row-name b { color: var(--t1); font-weight: 550; font-size: 16px; letter-spacing: -0.02em; }
.row-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row-meta .id { font: 400 12px/1 var(--mono); color: var(--t3); }
.chipk { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font: 500 11px/1 var(--mono); color: var(--t2); border: 1px solid var(--line2); background: rgba(255,255,255,.03); }
.row .pr { font: 500 14px/1 var(--mono); color: var(--t1); }
.row .pr small { display: block; margin-top: 5px; font-size: 10.5px; color: var(--t4); font-weight: 400; }
.soon { grid-column: 2 / 4; justify-self: end; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font: 500 12px/1 var(--mono); color: var(--amber2); border: 1px solid rgba(245,158,11,.3); background: rgba(245,158,11,.06); }
.soon::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.bridge { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.bridge span { flex: 1; width: 1px; background: linear-gradient(180deg, transparent, rgba(147,197,253,.35), transparent); }
.bridge b { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--t3); font-weight: 500; }
.fams-foot { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 13.5px; color: var(--t3); text-align: center; }

/* ---------- bento ---------- */
.bento { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile { position: relative; border-radius: 20px; padding: 22px; overflow: hidden; display: flex; flex-direction: column; gap: 20px; transition: border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease); }
.tile:hover { border-color: rgba(96,165,250,.28); transform: translateY(-2px); box-shadow: var(--hi), 0 24px 60px -30px rgba(59,130,246,.45); }
.tile h3 { font-size: 19px; letter-spacing: -0.03em; }
.tile-txt p { margin-top: 6px; font-size: 14.5px; line-height: 1.55; color: var(--t2); }
.t-stream { grid-column: span 2; flex-direction: row; align-items: stretch; }
.t-stream .tile-txt { flex: 0 0 34%; }
.ill { position: relative; flex: 1; border-radius: 14px; border: 1px solid var(--line); background: rgba(0,0,0,.55); }
.tag { position: absolute; right: 10px; top: 9px; font: 500 10px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--t3); }
.term { display: flex; flex-direction: column; min-height: 170px; }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.term-bar i { width: 9px; height: 9px; border-radius: 50%; background: #262626; }
.term-bar span { margin-left: auto; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--t3); }
.term-body { padding: 14px 16px; font-size: 13px; line-height: 1.7; color: var(--t1); }
.dimc { color: var(--t4); }
.streamed { margin-top: 6px; min-height: 3.4em; }
.term-body .fin { margin-top: 10px; transition: opacity .5s var(--ease); }
.js .term-body .fin:not(.on) { opacity: 0; }
.streamed .cur { display: inline-block; width: 7px; height: 14px; background: var(--blue2); vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.json { margin: 0; padding: 16px; font-size: 13px; line-height: 1.75; color: var(--t2); white-space: pre; overflow: hidden; }
.json .k { color: #e5e5e5; } .json .s { color: #93c5fd; } .json .b { color: #c4b5fd; } .json .p { color: var(--t4); }
.logs { padding: 34px 12px 10px; font-size: 12px; min-height: 150px; overflow: hidden; }
.logs-h, .lrow { display: grid; grid-template-columns: minmax(0,2fr) .65fr .75fr; gap: 6px; padding: 6px 6px; }
.logs { container-type: inline-size; }
@container (max-width: 262px) { /* narrow tile (3 columns on a tablet): model and cost only */
  .logs-h, .lrow { grid-template-columns: minmax(0,1fr) auto; }
  .logs-h span:nth-child(2), .lrow span:nth-child(2) { display: none; }
}
@container (max-width: 200px) { .logs-h, .lrow { padding-left: 4px; padding-right: 4px; } .lrow { font-size: 10.5px; } }
.lrow span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logs-rows { height: calc(4 * 33px); overflow: hidden; }
.logs-h { color: var(--t4); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.lrow { color: var(--t2); border-bottom: 1px solid rgba(255,255,255,.04); }
.lrow span:last-child, .logs-h span:last-child { text-align: right; }
.lrow.new { animation: rowIn .7s var(--ease); }
@keyframes rowIn { from { opacity: 0; transform: translateY(-8px); background: rgba(59,130,246,.15); } to { opacity: 1; transform: none; background: transparent; } }
.keys { padding: 34px 12px 12px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; min-height: 150px; }
.krow { display: grid; grid-template-columns: 62px 1fr 56px 30px; align-items: center; gap: 8px; padding: 7px 6px; color: var(--t3); }
.krow .kname { color: var(--t1); }
.krow-h { padding-top: 0; padding-bottom: 6px; color: var(--t4); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.krow-h .kname, .krow-h span { color: var(--t4); }
.krow span:last-child { text-align: right; }
.bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.07); overflow: hidden; }
.bar i { display: block; height: 100%; width: calc(var(--w) * 100%); background: linear-gradient(90deg, var(--blue), var(--blue2)); border-radius: inherit; transform-origin: left; }
.js .t-keys:not(.in) .bar i { transform: scaleX(0); }
.t-keys .bar i { transition: transform 1.2s var(--ease) .4s; }
.bill { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 18px 16px; min-height: 150px; background: radial-gradient(80% 80% at 0% 0%, rgba(59,130,246,.12), transparent 70%), rgba(0,0,0,.55); }
.zero { display: flex; align-items: baseline; gap: 10px; }
.zero b { font-size: 54px; line-height: 1; letter-spacing: -0.05em; color: var(--t1); font-weight: 650; }
.zero span { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--t3); }
.formula { margin-top: 14px; font-size: 12px; color: var(--t3); }
.formula sub { font-size: .75em; }

/* ---------- steps rail ---------- */
.rail-steps { position: relative; list-style: none; margin: 64px auto 0; padding: 0; max-width: 880px; display: grid; gap: 28px; }
.rail-line { position: absolute; left: 50%; top: 12px; bottom: 12px; width: 1px; background: var(--line2); transform: translateX(-50%); }
.rail-line i { position: absolute; left: -0.5px; top: 0; width: 2px; height: calc(var(--p, 0) * 100%); background: linear-gradient(180deg, rgba(96,165,250,.2), var(--blue2)); box-shadow: 0 0 12px rgba(59,130,246,.8); border-radius: 2px; }
.rail-line i::after { content: ""; position: absolute; bottom: -4px; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: #dbeafe; box-shadow: 0 0 12px 3px rgba(96,165,250,.8); opacity: calc(var(--p, 0) * 10); }
.rs { position: relative; display: grid; grid-template-columns: 1fr 64px 1fr; align-items: center; }
.rs-n {
  grid-column: 2; justify-self: center; position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; color: var(--t3); background: #050505; border: 1px solid var(--line2); transition: color .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.rs.on .rs-n { color: #dbeafe; border-color: rgba(96,165,250,.6); box-shadow: 0 0 0 4px rgba(59,130,246,.12), 0 0 24px rgba(59,130,246,.5); }
.rs-c { grid-row: 1; padding: 22px 24px; border-radius: 18px; background: linear-gradient(180deg, rgba(23,23,23,.6), rgba(10,10,10,.6)); border: 1px solid var(--line); box-shadow: var(--hi); transition: border-color .5s var(--ease), opacity .6s var(--ease), transform .6s var(--ease); opacity: .45; transform: translateY(6px); }
.rs.on .rs-c { opacity: 1; transform: none; border-color: rgba(255,255,255,.12); }
.rs:nth-child(odd) .rs-c { grid-column: 1; text-align: right; }
.rs:nth-child(even) .rs-c { grid-column: 3; }
.rs-c h3 { font-size: 21px; letter-spacing: -0.03em; }
.rs-c p { margin-top: 6px; font-size: 14.5px; color: var(--t2); }
.rs-c .link { margin-top: 4px; font: 500 13px/1 var(--mono); padding: 6px 0; min-height: 40px; }
.fams-foot .link { min-height: 40px; }
.q p .link { padding-block: 8px; }

/* ---------- FAQ single column ---------- */
.qs { margin: 56px auto 0; max-width: 720px; display: grid; gap: 10px; }
.q { border-radius: 16px; transition: border-color .3s var(--ease), background .3s var(--ease); }
.q[open] { border-color: rgba(255,255,255,.14); background: linear-gradient(180deg, rgba(28,28,28,.75), rgba(12,12,12,.8)); }
.q summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 14px 20px; color: var(--t1); font-size: 16.5px; font-weight: 500; letter-spacing: -0.015em; border-radius: 16px; }
.q summary::-webkit-details-marker { display: none; }
.q summary i { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line2); transition: transform .35s var(--ease), border-color .3s, background .3s; }
.q summary i::before, .q summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--t2); transform: translate(-50%,-50%); border-radius: 1px; }
.q summary i::after { transform: translate(-50%,-50%) rotate(90deg); transition: transform .35s var(--ease); }
.q[open] summary i { transform: rotate(180deg); border-color: rgba(96,165,250,.5); background: rgba(59,130,246,.1); }
.q[open] summary i::after { transform: translate(-50%,-50%) rotate(0deg); }
.q summary:hover i { border-color: rgba(255,255,255,.25); }
.q p { padding: 0 20px 20px; font-size: 15px; line-height: 1.65; color: var(--t2); max-width: 620px; }
.q[open] p { animation: up .5s var(--ease); }

/* ---------- close ---------- */
.close { position: relative; overflow-x: clip; max-width: 1120px; margin: 0 auto; padding: 170px 16px 120px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.mini-wrap { position: relative; width: 300px; perspective: 900px; margin-bottom: 52px; }
.mini-glow { position: absolute; left: 50%; bottom: -40px; width: 140%; height: 80px; transform: translateX(-50%); background: radial-gradient(50% 50% at 50% 50%, rgba(59,130,246,.5), transparent 70%); filter: blur(16px); }
.mini {
  position: relative; aspect-ratio: 1.586; border-radius: 16px; padding: 18px; display: flex; flex-direction: column; text-align: left;
  background: radial-gradient(120% 90% at 0% 0%, rgba(59,130,246,.24), transparent 55%), linear-gradient(145deg, rgba(38,38,42,.95), rgba(10,10,12,.98) 60%);
  border: 1px solid rgba(255,255,255,.14); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 30px 60px -30px #000;
  transform: rotateX(14deg) rotateY(-10deg) rotateZ(2deg); animation: bob 6s ease-in-out infinite;
}
@keyframes bob { 50% { transform: rotateX(10deg) rotateY(-4deg) rotateZ(1deg) translateY(-6px); } }
.mini-top { display: flex; align-items: center; gap: 8px; color: var(--t1); font-weight: 600; font-size: 13px; }
.mini-top em { margin-left: auto; font: 500 9px/1 var(--mono); letter-spacing: .26em; color: var(--t4); font-style: normal; }
.mini-key { margin-top: auto; font-size: 15px; color: var(--t1); text-shadow: 0 0 14px rgba(147,197,253,.4); }
.mini-bot { margin-top: 12px; display: flex; justify-content: space-between; font-size: 10px; color: var(--t3); letter-spacing: .06em; }
.close h2 { font-size: clamp(36px, 5.4vw, 66px); line-height: 1.02; letter-spacing: -0.045em; max-width: 820px; text-wrap: balance; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 26px 16px 34px; }
.foot-in, .foot-fine { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; }
.foot-links a { color: var(--t2); padding: 11px 0; border-radius: 4px; }
.foot-links a:hover { color: var(--t1); }
.foot-k { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--t3); min-height: 40px; padding: 0 4px; border-radius: 8px; }
.foot-fine { margin-top: 18px; font-size: 12.5px; color: var(--t4); justify-content: space-between; }

/* ---------- palette ---------- */
.pal { position: fixed; inset: 0; z-index: 90; display: grid; justify-items: center; align-items: start; padding: 14vh 16px 16px; }
.pal[hidden] { display: none; }
.pal-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .25s var(--ease); }
.pal-box { position: relative; width: min(560px, 100%); border-radius: 18px; overflow: hidden; background: rgba(14,14,14,.94); border-color: var(--line2); box-shadow: var(--hi), 0 40px 120px -20px rgba(0,0,0,.9), 0 0 0 1px rgba(59,130,246,.08); animation: pop .3s var(--ease); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.pal-in { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.pal-in svg { width: 16px; height: 16px; fill: none; stroke: var(--t3); stroke-width: 1.5; stroke-linecap: round; flex: none; }
.pal-in input { flex: 1; min-width: 0; height: 54px; background: none; border: 0; color: var(--t1); font: 400 16px var(--sans); outline: none; }
.pal-in input::placeholder { color: var(--t4); }
.pal-list { list-style: none; margin: 0; padding: 6px; max-height: 52vh; overflow: auto; }
.pal-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--t2); cursor: pointer; font-size: 14.5px; }
.pal-list li small { font: 400 12px var(--mono); color: var(--t4); }
.pal-list li[aria-selected="true"] { background: rgba(59,130,246,.14); color: var(--t1); box-shadow: inset 0 0 0 1px rgba(96,165,250,.25); }
.pal-list li[aria-selected="true"] small { color: var(--blue2); }
.pal-list .none { color: var(--t4); cursor: default; }
.pal-foot { display: flex; gap: 16px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--t4); }
.pal-foot span { display: inline-flex; align-items: center; gap: 4px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .node-ds { margin-left: 0; } .node-glm { margin-right: 0; }
  .node-kimi { margin-left: 4%; } .node-mimo { margin-right: 4%; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-menu { display: inline-flex; }
  .nav-k { display: none; }
  .nav-cta .long { display: none; } .nav-cta .short { display: inline; }
  .nav-cap { width: 100%; max-width: 440px; justify-content: space-between; }
  .nav-cap .brand { margin-right: auto; }
  .btn-sm { height: 40px; }
  .nav.tight .nav-cap { transform: none; }
}
@media (max-width: 760px) {
  .hero { padding-top: 96px; min-height: 0; }
  .hero-h { font-size: clamp(40px, 11.6vw, 64px); }
  .hero-h .l2 { white-space: nowrap; font-size: min(.86em, calc((100vw - 34px) / 7.4)); }
  .hero-h .l2 > span { display: block; }
  .lede { font-size: 16px; }
  .cta-row { width: 100%; }
  .hero .cta-row { flex-wrap: nowrap; }
  .hero .cta-row .btn { flex: 1 1 auto; padding: 0 16px; }
  .stage { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 8px; margin-top: 40px; }
  .card-wrap { grid-column: 1 / -1; grid-row: 1; width: 100%; }
  .node { justify-self: stretch !important; align-self: start !important; margin: 96px 0 0 !important; grid-row: 2 !important;
    flex-direction: column; gap: 8px; padding: 12px 4px 11px; border-radius: 16px; text-align: center; }
  .node-ds { grid-column: 1; } .node-glm { grid-column: 2; } .node-kimi { grid-column: 3; } .node-mimo { grid-column: 4; }
  .node .glyph { width: 34px; height: 34px; font-size: 12px; border-radius: 10px; }
  .node-t { align-items: center; }
  .node-t b { font-size: 13.5px; }
  .node-t small { font-size: 10.5px; }
  .node-t small .lv { display: none; }
  .floor { bottom: -50px; height: 90px; }
  .stage-cap { margin-top: 40px; gap: 8px; font-size: 10px; letter-spacing: .14em; flex-wrap: wrap; justify-content: center; }
  .stage-cap i { width: 12px; }
  .sec { padding-top: 104px; }
  .diff-bar { flex-wrap: wrap; }
  .diff-file { display: none; }
  .copy { margin-left: auto; }
  .diff-body { font-size: 12px; min-height: 0; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .diff-body.at-end { -webkit-mask-image: none; mask-image: none; }
  .br-d { display: none; }
  .ln { grid-template-columns: 30px 16px 1fr; }
  .foot-note { margin-left: 0; flex-basis: 100%; }
  .fams { grid-template-columns: 1fr; grid-template-rows: none; gap: 14px 0; }
  .fam-ds, .fam-glm, .fam-kimi, .fam-mimo, .bridge { grid-area: auto; }
  .bridge { flex-direction: row; height: 40px; }
  .bridge span { height: 1px; width: auto; background: linear-gradient(90deg, transparent, rgba(147,197,253,.35), transparent); }
  .bridge b { writing-mode: horizontal-tb; transform: none; }
  .fam { min-height: 0; padding: 22px 14px 12px; }
  .fam-cols, .row { grid-template-columns: 1fr 64px 64px; column-gap: 12px; padding-left: 8px; padding-right: 8px; }
  .fam-cols { font-size: 10px; letter-spacing: .06em; }
  .bento { grid-template-columns: 1fr; }
  .t-stream { grid-column: auto; flex-direction: column; }
  .rail-line { left: 22px; }
  .rs { grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
  .rs-n { grid-column: 1; }
  .rs:nth-child(odd) .rs-c, .rs:nth-child(even) .rs-c { grid-column: 2; text-align: left; }
  .rs-c { padding: 16px 18px; }
  .close { padding: 120px 16px 90px; }
  .mini-wrap { width: 260px; }
  .close .cta-row .btn { flex: 1 1 160px; }
  .foot-k { margin-left: 0; }
}


/* short laptop screens: the whole card and both nodes on the first screen */
@media (min-width: 761px) and (max-height: 820px) {
  .hero { padding-top: 84px; }
  .hero-h { font-size: clamp(44px, min(5.9vw, 8.4vh), 86px); }
  .stage { margin-top: 28px; }
  .card-wrap { width: min(520px, 42vw, 56vh); }
  .stage-cap { margin-top: 40px; }
}
@media (max-width: 359px) {
  .hero .cta-row { flex-wrap: wrap; }
}

/* ---------- reduced motion: everything still and visible ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
  .node { opacity: 1; transform: none; }
  .rail { stroke-dashoffset: 0; }
  .pulse { display: none; }
  .status .dot::after { display: none; }
  .stage-cap { opacity: 1; }
  .frags { display: none; }
  .js .diff .ln.add .t { clip-path: none; }
  .js .diff .ln.add { background: rgba(34,197,94,.09); }
  .js .diff .ln.del .t .c { text-decoration-color: rgba(252,165,165,.45); }
  .js .t-keys:not(.in) .bar i { transform: none; }
  .js .term-body .fin:not(.on) { opacity: 1; }
  .rs-c { opacity: 1; transform: none; }
  .rail-line i { height: 100%; }
  .rs-n { color: #dbeafe; border-color: rgba(96,165,250,.6); }
  .mini { transform: rotateX(12deg) rotateY(-8deg) rotateZ(2deg); }
}
