/* =========================================================
   TESSERA · Browser cloud for AI agents
   Design tokens, layout frame, components, sections
   ========================================================= */

:root {
  --bg: #050506;
  --bg-2: #08090B;
  --panel: #0C0D10;
  --panel-2: #111216;
  --panel-3: #17191E;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  --line-3: rgba(255, 255, 255, .2);

  --ink: #F2F3F5;
  --ink-2: #A8ADB7;
  --ink-3: #6C717C;
  --ink-4: #43474F;

  --cobalt: #3B64F4;
  --cobalt-hi: #7C9BFF;
  --cobalt-lo: #1534AD;
  --steel: #A5BBD6;
  --mint: #3CD49A;
  --amber: #F2C27A;
  --coral: #F0846F;

  --sans: 'Satoshi', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --w: 1240px;
  --pad: 48px;
  --nav-h: 64px;
  --r: 14px;
  --r-lg: 20px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, pre, figure, blockquote { margin: 0; }
pre .ln { display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(59, 100, 244, .45); color: #fff; }
:focus-visible { outline: 2px solid var(--cobalt-hi); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* =========================================================
   FRAME — vertical rails + full-bleed section rules
   ========================================================= */
.wrap {
  position: relative; max-width: var(--w); margin: 0 auto;
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
}
.sec { position: relative; border-top: 1px solid var(--line); }
.sec > .wrap::before, .sec > .wrap::after {
  content: ""; position: absolute; top: -6px; width: 11px; height: 11px; z-index: 3; pointer-events: none;
  background:
    linear-gradient(var(--line-3), var(--line-3)) center / 1px 100% no-repeat,
    linear-gradient(var(--line-3), var(--line-3)) center / 100% 1px no-repeat;
}
.sec > .wrap::before { left: -6px; }
.sec > .wrap::after { right: -6px; }
.pad { padding: 112px var(--pad); }
.pad-sm { padding: 72px var(--pad); }

/* =========================================================
   TYPE
   ========================================================= */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .02em; color: var(--ink-3);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--cobalt); border-radius: 1px; box-shadow: 0 0 12px var(--cobalt); }
.h2 {
  font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 500;
  text-wrap: balance;
}
.h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.02em; font-weight: 500; }
.mute { color: var(--ink-3); }
.lede { font-size: 1.0625rem; line-height: 1.65; color: var(--ink-2); max-width: 520px; text-wrap: pretty; }
.small { font-size: .875rem; color: var(--ink-2); line-height: 1.6; }
.mono { font-family: var(--mono); }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 64px; }
.sec-head .eyebrow { margin-bottom: 22px; }
.sec-head .lede, .sec-head .aside { justify-self: end; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  --h: 46px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 20px; border-radius: 10px; font-size: .9375rem; font-weight: 500; letter-spacing: -0.01em;
  white-space: nowrap; transition: background .3s var(--ease), border-color .3s var(--ease), color .3s, transform .3s var(--ease), box-shadow .3s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--ink); color: #08090B; padding-left: 6px; box-shadow: 0 0 0 1px rgba(255,255,255,.2) inset, 0 8px 30px -10px rgba(124, 155, 255, .5); }
.btn-primary:hover { background: #fff; box-shadow: 0 0 0 1px #fff inset, 0 10px 40px -8px rgba(124, 155, 255, .7); }
.btn-primary .ico {
  width: calc(var(--h) - 12px); height: calc(var(--h) - 12px); border-radius: 7px; background: #0B0C0F; color: var(--ink);
  display: grid; place-items: center; transition: background .3s, transform .5s var(--ease);
}
.btn-primary:hover .ico { background: var(--cobalt); transform: rotate(-90deg); }
.btn-primary .ico svg { width: 14px; height: 14px; }
.btn-ghost { border: 1px solid var(--line-3); color: var(--ink); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.06); }
.btn-cobalt { background: var(--cobalt); color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.18) inset, 0 10px 34px -10px rgba(59,100,244,.8); }
.btn-cobalt:hover { background: #4A72FF; }
.btn-sm { --h: 36px; padding: 0 14px; font-size: .84rem; border-radius: 8px; }
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 500; color: var(--ink); }
.link-arrow svg { width: 14px; height: 14px; transition: transform .35s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* =========================================================
   SMALL COMPONENTS
   ========================================================= */
.pill {
  display: inline-flex; align-items: center; gap: 10px; height: 32px; padding: 0 6px 0 6px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.03); font-size: .8125rem; color: var(--ink-2);
  transition: border-color .3s, background .3s;
}
.pill:hover { border-color: var(--line-3); background: rgba(255,255,255,.05); }
.pill .tag { font-family: var(--mono); font-size: 11px; color: #fff; background: var(--cobalt); padding: 3px 8px; border-radius: 999px; }
.pill .chev { width: 20px; height: 20px; display: grid; place-items: center; color: var(--ink-3); }
.pill .chev svg { width: 12px; height: 12px; transition: transform .3s var(--ease); }
.pill:hover .chev svg { transform: translateX(2px); }

.badge {
  display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 9px; border-radius: 6px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .01em; color: var(--ink-2);
  border: 1px solid var(--line-2); background: rgba(255,255,255,.025);
}
.badge.cobalt { color: #C7D4FF; border-color: rgba(124,155,255,.35); background: rgba(59,100,244,.12); }
.badge.mint { color: #A9F0CF; border-color: rgba(60,212,154,.3); background: rgba(60,212,154,.08); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); flex: none; }
.dot.live { box-shadow: 0 0 0 0 rgba(60,212,154,.6); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(60,212,154,.55); } 80%, 100% { box-shadow: 0 0 0 7px rgba(60,212,154,0); } }

.kbd { font-family: var(--mono); font-size: 11px; padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line-2); border-bottom-width: 2px; color: var(--ink-2); background: var(--panel-2); }

.cmd {
  display: inline-flex; align-items: center; gap: 12px; height: 40px; padding: 0 6px 0 14px; border-radius: 10px;
  font-family: var(--mono); font-size: 13px; color: var(--ink-2); background: rgba(255,255,255,.025); border: 1px solid var(--line-2);
}
.cmd .p { color: var(--ink-4); }
.cmd b { font-weight: 400; color: var(--ink); }
.copy {
  position: relative; width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; color: var(--ink-3);
  transition: background .25s, color .25s;
}
.copy:hover { background: rgba(255,255,255,.07); color: var(--ink); }
.copy svg { width: 14px; height: 14px; }
.copy .i-done { display: none; color: var(--mint); }
.copy.done .i-copy { display: none; }
.copy.done .i-done { display: block; }

.check { width: 16px; height: 16px; flex: none; color: var(--cobalt-hi); }

/* =========================================================
   IMAGE SLOTS — placeholder until images/<file> exists
   ========================================================= */
.slot {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(120% 90% at 70% 0%, rgba(59,100,244,.10), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.028) 0 1px, transparent 1px 11px),
    var(--panel);
}
.slot::after {
  content: ""; position: absolute; inset: 10px; border: 1px dashed rgba(255,255,255,.12); border-radius: 10px; pointer-events: none; z-index: 0;
}
.slot > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.slot:has(> img)::after { display: none; }
.slot-label {
  position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 9px; padding: 28px; text-align: center;
}
.slot-label b { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.slot-label code { font-family: var(--mono); font-size: 12px; color: var(--ink); background: var(--panel-3); border: 1px solid var(--line-2); padding: 4px 10px; border-radius: 7px; }
.slot-label span { font-size: 12.5px; line-height: 1.5; color: var(--ink-3); max-width: 300px; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h);
  border-bottom: 1px solid var(--line);
  background: rgba(5,5,6,.72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  transition: background .4s;
}
.nav.scrolled { background: rgba(5,5,6,.88); }
.nav .wrap { height: 100%; display: grid; grid-template-columns: 240px 1fr auto; }
.nav-cell { display: flex; align-items: center; height: 100%; }
.nav-cell + .nav-cell { border-left: 1px solid var(--line); }
.brand-cell { padding: 0 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; letter-spacing: -0.04em; }
.brand svg { width: 24px; height: 24px; transition: transform .8s var(--ease); }
.brand:hover svg { transform: rotate(90deg); }
.links-cell { justify-content: center; }
.links { display: flex; align-items: center; justify-content: center; gap: 4px; height: 100%; }
.links > li { position: relative; height: 100%; display: flex; align-items: center; }
.nl {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 8px;
  font-size: .875rem; color: var(--ink-2); transition: color .25s, background .25s;
}
.nl:hover, .has-menu.open .nl { color: var(--ink); background: rgba(255,255,255,.05); }
.nl svg { width: 10px; height: 10px; transition: transform .35s var(--ease); opacity: .7; }
.has-menu.open .nl svg { transform: rotate(180deg); }
.nav-actions { padding: 0 12px 0 16px; gap: 8px; }
.nav-actions .signin { font-size: .875rem; color: var(--ink-2); padding: 0 12px; height: 36px; display: inline-flex; align-items: center; transition: color .25s; }
.nav-actions .signin:hover { color: var(--ink); }

/* mega menu */
.menu {
  position: absolute; top: calc(100% - 6px); left: 50%; width: 640px; padding: 8px;
  border-radius: 16px; border: 1px solid var(--line-2); background: rgba(12,13,16,.96);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(0,0,0,.4);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: grid; grid-template-columns: 1fr 1fr 220px; gap: 4px;
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px) scale(.98); transform-origin: top center;
  transition: opacity .25s var(--ease), transform .35s var(--ease), visibility 0s .35s;
}
.menu.narrow { width: 460px; grid-template-columns: 1fr 1fr; }
.has-menu.open .menu { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); transition-delay: 0s; }
.mi { display: flex; gap: 12px; padding: 12px; border-radius: 10px; transition: background .2s; }
.mi:hover { background: rgba(255,255,255,.045); }
.mi .mi-ico { width: 34px; height: 34px; flex: none; border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel-2); display: grid; place-items: center; color: var(--steel); transition: color .25s, border-color .25s; }
.mi:hover .mi-ico { color: #fff; border-color: rgba(124,155,255,.5); }
.mi .mi-ico svg { width: 16px; height: 16px; }
.mi b { display: block; font-size: .875rem; font-weight: 500; color: var(--ink); }
.mi span { display: block; font-size: .8rem; color: var(--ink-3); line-height: 1.45; margin-top: 2px; }
.menu-feature {
  grid-row: span 2; grid-column: 3; border-radius: 10px; padding: 14px; border: 1px solid var(--line);
  background: radial-gradient(120% 80% at 100% 0%, rgba(59,100,244,.25), transparent 60%), var(--panel-2);
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
}
.menu-feature .slot { aspect-ratio: 16/10; border-radius: 8px; }
.menu-feature .slot-label { padding: 8px; gap: 5px; }
.menu-feature .slot-label span { display: none; }
.menu-feature b { font-size: .875rem; font-weight: 500; }
.menu-feature p { font-size: .78rem; color: var(--ink-3); line-height: 1.45; margin-top: 4px; }

.burger { display: none; width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--line-2); position: relative; }
.burger i { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .4s var(--ease), top .4s var(--ease); }
.burger i:nth-child(1) { top: 15px; } .burger i:nth-child(2) { top: 23px; }
.menu-open .burger i:nth-child(1) { top: 19px; transform: rotate(45deg); }
.menu-open .burger i:nth-child(2) { top: 19px; transform: rotate(-45deg); }

.sheet {
  position: fixed; inset: var(--nav-h) 0 0; z-index: 99; background: var(--bg); padding: 24px 20px 32px;
  display: flex; flex-direction: column; gap: 4px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .4s var(--ease), visibility 0s .4s;
}
.menu-open .sheet { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.sheet a.sl { display: flex; justify-content: space-between; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 1.35rem; letter-spacing: -0.03em; font-weight: 500; }
.sheet a.sl span { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.sheet .sheet-cta { display: grid; gap: 10px; margin-top: 24px; }
.menu-open { overflow: hidden; }

/* =========================================================
   HERO
   ========================================================= */
.hero { padding-top: var(--nav-h); border-top: 0; }
.hero > .wrap::before, .hero > .wrap::after { display: none; }
.hero > .wrap { container-type: inline-size; }
.hero-stage {
  position: relative; aspect-ratio: 1240 / 880; overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 62px 62px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(70% 70% at 70% 45%, #000 0%, rgba(0,0,0,.35) 55%, transparent 85%);
          mask-image: radial-gradient(70% 70% at 70% 45%, #000 0%, rgba(0,0,0,.35) 55%, transparent 85%);
  opacity: .7;
}
.hero-visual { position: absolute; inset: 0; }
.hero-visual .iso { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

/* artboard scaling: 1em = 16px at 1240 */
.hero-art { font-size: 1.2903cqw; }
.hero-copy { position: absolute; left: 3.87%; top: 6%; width: 44%; z-index: 4; }
.hero-copy .pill { font-size: .8125em; height: 2.15em; }
.hero h1 {
  margin-top: .5em; font-size: 3.6em; line-height: 1.02; letter-spacing: -0.042em; font-weight: 500;
}
.hero h1 .mute { color: var(--ink-3); }
.hero-sub { margin-top: 1.25em; font-size: 1.0625em; line-height: 1.6; color: var(--ink-2); max-width: 30em; }
.hero-ctas { margin-top: 2em; display: flex; flex-wrap: wrap; gap: .75em; }
.hero-meta { margin-top: 1.75em; display: flex; align-items: center; gap: 1em; flex-wrap: wrap; }
.hero-meta .note { font-family: var(--mono); font-size: .72em; color: var(--ink-3); }

/* iso svg text */
.iso-t { font: 500 8px var(--mono); fill: #C9CED8; letter-spacing: .02em; }
.iso-t.dim { fill: #6D727D; }
.iso-t.on { fill: #fff; }
.iso-t.dim2 { fill: rgba(255,255,255,.72); }
.iso-t.big { font-size: 15px; fill: #DCE3F5; }
.lbl { font: 400 11px var(--mono); fill: #8A909B; }
.iso .flow { animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -16; } }
.iso .pulse { animation: pulse 2.6s var(--ease) infinite; transform-origin: 0 0; }
@keyframes pulse { 0% { transform: scale(.82); opacity: .9; } 100% { transform: scale(1.65); opacity: 0; } }
.iso .bar-run { animation: barrun 3.4s var(--ease-io) infinite alternate; }
@keyframes barrun { from { width: 14px; } to { width: 66px; } }
.iso-glow { animation: glow 6s ease-in-out infinite alternate; transform-origin: center; transform-box: fill-box; }
@keyframes glow { from { opacity: .75; } to { opacity: 1; } }

/* load-in choreography */
.js .iso .tile { opacity: 0; animation: tileIn .9s var(--ease) forwards; animation-delay: var(--d); }
@keyframes tileIn { from { opacity: 0; transform: translateY(-26px); } to { opacity: 1; transform: none; } }
.js .iso .iso-platform > g:first-child, .js .iso .iso-platform > path { animation: fadeIn .9s var(--ease) .15s backwards; }
.js .iso .iso-node, .js .iso .iso-lower, .js .iso .iso-label { animation: fadeUp 1s var(--ease) backwards; }
.js .iso .node-sdk { animation-delay: .9s; } .js .iso .node-proxy { animation-delay: 1s; } .js .iso .node-out { animation-delay: 1.1s; }
.js .iso .iso-lower { animation-delay: 1.2s; }
.js .iso .iso-label { animation-delay: 1.4s; }
.js .iso .packets { animation: fadeIn 1s 1.6s backwards; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }

/* code card (hero) */
.code-card {
  position: absolute; left: 3.87%; top: 64.6%; width: 30%; z-index: 4;
  border-radius: .8em; border: 1px solid var(--line-2); background: rgba(10,11,13,.9);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(0,0,0,.6);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  overflow: hidden; font-size: .75em;
}
.cc-head { display: flex; align-items: center; justify-content: space-between; height: 3em; padding: 0 1em; border-bottom: 1px solid var(--line); }
.cc-tabs { display: flex; gap: .25em; font-family: var(--mono); font-size: .92em; }
.cc-tabs span { padding: .3em .65em; border-radius: .4em; color: var(--ink-3); }
.cc-tabs span.on { color: var(--ink); background: rgba(255,255,255,.06); }
.cc-head .badge { font-size: .85em; height: 2em; }
.cc-body { margin: 0; padding: 1.1em 1.2em 1em; font-family: var(--mono); font-size: 1em; line-height: 1.75; white-space: pre; color: #D4D8E0; overflow: hidden; }
.cc-body .ln { display: block; }
.js .cc-body .ln { clip-path: inset(0 100% 0 0); }
.cc-body .ln.typed { clip-path: inset(0 0 0 0); transition: clip-path var(--t, .6s) steps(var(--n, 20)); }
.cc-foot { display: flex; align-items: center; gap: .7em; padding: .8em 1.2em; border-top: 1px solid var(--line); font-family: var(--mono); font-size: .92em; color: var(--ink-3); background: rgba(255,255,255,.015); }
.cc-foot .ok { color: var(--mint); display: inline-flex; gap: .5em; align-items: center; opacity: 0; transform: translateY(4px); transition: opacity .5s, transform .5s var(--ease); }
.cc-foot.done .ok { opacity: 1; transform: none; }
.cc-foot .ok svg { width: 1.1em; height: 1.1em; }
.cc-foot .time { margin-left: auto; }
.caret { display: inline-block; width: .55em; height: 1.15em; background: var(--cobalt-hi); vertical-align: -.2em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* syntax */
.tk-c { color: #5E6470; } .tk-k { color: #7FA2FF; } .tk-s { color: #9DDBB8; } .tk-f { color: #F2F3F5; }
.tk-n { color: #F2C27A; } .tk-p { color: #8A909B; } .tk-v { color: #C7D4FF; }

/* trusted strip */
.trusted { display: grid; grid-template-columns: 220px repeat(6, 1fr); border-top: 1px solid var(--line); }
.trusted > * { min-height: 92px; display: flex; align-items: center; justify-content: center; border-left: 1px solid var(--line); }
.trusted > :first-child { border-left: 0; justify-content: flex-start; padding: 0 24px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: #8E939D; font-weight: 700; letter-spacing: -0.03em; font-size: 1.05rem; transition: color .3s; }
.logo svg { width: 20px; height: 20px; }
.trusted > div:hover .logo { color: var(--ink); }

/* =========================================================
   WORKFLOW
   ========================================================= */
.flow-grid { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 56px; align-items: start; }
.steps { display: grid; gap: 4px; }
.step {
  position: relative; text-align: left; padding: 22px 22px 22px 64px; border-radius: 14px; border: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s;
}
.step .n { position: absolute; left: 22px; top: 22px; font-family: var(--mono); font-size: 12px; color: var(--ink-4); transition: color .3s; }
.step h3 { font-size: 1.125rem; font-weight: 500; letter-spacing: -0.02em; color: var(--ink-2); transition: color .3s; }
.step p { font-size: .9rem; color: var(--ink-3); margin-top: 6px; line-height: 1.6; }
.step .prog { position: absolute; left: 22px; right: 22px; bottom: 0; height: 1px; background: var(--line); overflow: hidden; opacity: 0; transition: opacity .3s; }
.step .prog i { position: absolute; inset: 0; background: var(--cobalt-hi); transform-origin: left; transform: scaleX(0); }
.step.on { background: var(--panel); border-color: var(--line); }
.step.on .n { color: var(--cobalt-hi); }
.step.on h3 { color: var(--ink); }
.step.on .prog { opacity: 1; }
.step.on .prog i { animation: prog var(--dur, 5s) linear forwards; }
.steps.paused .step.on .prog i { animation: none; transform: scaleX(1); }
@keyframes prog { to { transform: scaleX(1); } }

.ide { border-radius: var(--r-lg); border: 1px solid var(--line-2); background: var(--panel); overflow: hidden; box-shadow: 0 40px 100px -40px rgba(0,0,0,.9); }
.ide-head { display: flex; align-items: center; height: 48px; padding: 0 8px 0 16px; border-bottom: 1px solid var(--line); gap: 16px; }
.lights { display: flex; gap: 7px; }
.lights i { width: 10px; height: 10px; border-radius: 50%; background: #24262C; }
.tabs { display: flex; gap: 2px; height: 100%; flex: 1; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; height: 100%; padding: 0 12px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); transition: color .25s; white-space: nowrap; }
.tab:hover { color: var(--ink-2); }
.tab.on { color: var(--ink); }
.tab.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 1px; background: var(--cobalt-hi); }
.ide-body { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); font-family: var(--mono); font-size: 13px; line-height: 1.85; min-height: 372px; }
.gutter { padding: 18px 0; text-align: right; padding-right: 12px; color: var(--ink-4); user-select: none; border-right: 1px solid var(--line); }
.code-pane { display: none; padding: 18px 20px; white-space: pre; overflow-x: auto; color: #D4D8E0; }
.code-pane.on { display: block; }
.code-pane .ln { display: block; transition: opacity .45s var(--ease), filter .45s; }
.code-pane.focus .ln:not(.hl) { opacity: .28; }
.ide-out { border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.out-left { padding: 16px 20px; font-family: var(--mono); font-size: 12.5px; line-height: 1.75; color: var(--ink-2); white-space: pre; overflow-x: auto; min-height: 130px; }
.out-right { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 16px 20px; border-left: 1px solid var(--line); min-width: 190px; }
.kv { display: flex; justify-content: space-between; gap: 16px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.kv b { font-weight: 400; color: var(--ink); }

/* =========================================================
   BENTO
   ========================================================= */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.card {
  --mx: 50%; --my: 0%;
  position: relative; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--panel);
  overflow: hidden; isolation: isolate; display: flex; flex-direction: column;
  transition: border-color .4s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: 5; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(124,155,255,.55), transparent 45%);
  -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);
  opacity: 0; transition: opacity .4s;
}
.card:hover::before { opacity: 1; }
.card-copy { padding: 28px 28px 0; position: relative; z-index: 3; }
.card-copy .badge { margin-bottom: 18px; }
.card-copy > .badge { align-self: flex-start; }
.card-copy h3 { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.025em; line-height: 1.25; }
.card-copy p { margin-top: 8px; font-size: .9rem; color: var(--ink-3); line-height: 1.6; max-width: 400px; }
.card-vis { position: relative; flex: 1; min-height: 240px; margin-top: 24px; }
.c-4 { grid-column: span 4; } .c-2 { grid-column: span 2; } .c-3 { grid-column: span 3; } .c-6 { grid-column: span 6; }

/* stealth card */
.card-stealth { flex-direction: row; min-height: 440px; }
.card-stealth .card-copy { flex: 0 0 44%; padding-bottom: 28px; display: flex; flex-direction: column; }
.card-stealth .checks { margin-top: auto; display: grid; gap: 0; border-top: 1px solid var(--line); }
.card-stealth .checks li { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.card-stealth .checks li span { display: inline-flex; align-items: center; gap: 6px; color: var(--mint); font-size: 11px; }
.card-stealth .checks li span svg { width: 13px; height: 13px; }
.card-stealth .card-vis { margin: 0; flex: 1; }
.card-stealth .slot { position: absolute; inset: 0; }
.card-stealth .slot::after { inset: 14px; }
.fp-chip {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px;
  background: rgba(10,11,13,.82); border: 1px solid var(--line-2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); box-shadow: 0 20px 40px -16px rgba(0,0,0,.8);
}
.fp-chip b { font-weight: 400; color: var(--ink); }
.fp-chip.a { left: 8%; bottom: 10%; }
.fp-chip.b { right: 7%; top: 9%; }
.fp-chip .score { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: rgba(60,212,154,.12); color: var(--mint); font-size: 12px; }

/* globe card */
.card-globe .card-vis { margin: 24px 0 0; min-height: 280px; }
.card-globe .slot { position: absolute; inset: 0; }
.card-globe .slot::after { inset: 12px 12px 12px; }
.geo { position: absolute; z-index: 4; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(10,11,13,.86); border: 1px solid var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); }
.geo .cc { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 5px; border-radius: 5px; background: var(--panel-3); color: var(--ink); font-size: 10.5px; }
.geo .ms { margin-left: auto; color: var(--mint); }
.geo [data-geo] { transition: opacity .3s; }

/* live view card */
.lv { position: absolute; left: 24px; right: -1px; bottom: -1px; top: 0; border-radius: 12px 0 0 0; border: 1px solid var(--line-2); border-right: 0; border-bottom: 0; background: var(--bg-2); overflow: hidden; }
.lv-bar { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.lv-url { flex: 1; height: 20px; border-radius: 5px; background: var(--panel-2); font-family: var(--mono); font-size: 10px; color: var(--ink-3); display: flex; align-items: center; padding: 0 8px; white-space: nowrap; overflow: hidden; }
.rec { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 10px; color: var(--coral); }
.rec i { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); animation: blink 1.2s steps(1) infinite; }
.lv-page { padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sk { border-radius: 6px; background: var(--panel-2); }
.sk.h { height: 10px; width: 60%; grid-column: span 2; }
.sk.p { height: 64px; position: relative; }
.sk.p::after { content: ""; position: absolute; left: 8px; bottom: 8px; width: 40%; height: 5px; border-radius: 3px; background: rgba(255,255,255,.08); }
.sk.p.hit { outline: 1px solid var(--cobalt-hi); outline-offset: 2px; background: rgba(59,100,244,.14); transition: outline-color .3s, background .3s; }
.cursor { position: absolute; z-index: 3; width: 18px; height: 18px; left: 0; top: 0; transform: translate(60px, 60px); transition: transform 1.1s var(--ease); filter: drop-shadow(0 2px 4px rgba(0,0,0,.6)); }
.cursor .tagc { position: absolute; left: 14px; top: 16px; font-family: var(--mono); font-size: 9.5px; padding: 2px 6px; border-radius: 4px; background: var(--cobalt); color: #fff; white-space: nowrap; }
.scrub { position: absolute; left: 14px; right: 14px; bottom: 12px; height: 3px; border-radius: 3px; background: var(--panel-3); }
.scrub i { position: absolute; left: 0; top: 0; bottom: 0; width: 30%; border-radius: inherit; background: var(--cobalt-hi); animation: scrub 9s linear infinite; }
@keyframes scrub { from { width: 4%; } to { width: 100%; } }

/* autoscale card */
.bars { position: absolute; left: 28px; right: 28px; bottom: 28px; top: 76px; display: flex; align-items: flex-end; gap: 6px; }
.bars i { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(to top, rgba(59,100,244,.25), rgba(124,155,255,.9)); height: var(--h); transform-origin: bottom; transform: scaleY(.04); transition: transform 1.1s var(--ease), height .9s var(--ease); }
.bars i:nth-child(odd) { background: linear-gradient(to top, rgba(255,255,255,.05), rgba(255,255,255,.16)); }
.in .bars i { transform: scaleY(1); }
.bars-meta { position: absolute; left: 28px; top: 0; display: flex; gap: 18px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.bars-meta b { display: block; font-size: 1.5rem; font-family: var(--sans); font-weight: 500; letter-spacing: -0.03em; color: var(--ink); }

/* extract card */
.xt { position: absolute; inset: 0 24px 24px; display: grid; grid-template-rows: auto auto 1fr; gap: 10px; }
.xt-box { border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); font-family: var(--mono); font-size: 11.5px; line-height: 1.7; padding: 10px 12px; color: var(--ink-2); white-space: pre; overflow: hidden; }
.xt-box .t { display: block; font-size: 10px; color: var(--ink-4); margin-bottom: 4px; letter-spacing: .06em; text-transform: uppercase; }
.xt-arrow { display: flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--mono); font-size: 10.5px; color: var(--cobalt-hi); }
.xt-arrow i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--cobalt), transparent); }
.xt-box.json { border-color: rgba(124,155,255,.3); background: linear-gradient(180deg, rgba(59,100,244,.06), transparent 60%), var(--bg-2); }

/* stack card */
.card-stack { flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; padding: 28px; }
.card-stack .card-copy { padding: 0; }
.chips { display: grid; grid-template-columns: repeat(5, auto); gap: 8px; justify-content: end; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 6px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2); font-size: .875rem; color: var(--ink-2); transition: border-color .3s, color .3s, transform .4s var(--ease); }
.chip:hover { border-color: var(--line-3); color: var(--ink); transform: translateY(-2px); }
.chip .mg { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: var(--panel-3); font-family: var(--mono); font-size: 10.5px; color: var(--steel); }

/* =========================================================
   CONSOLE / DASHBOARD
   ========================================================= */
.console-stage { perspective: 1800px; }
.dash {
  border-radius: 18px; border: 1px solid var(--line-2); background: var(--bg-2); overflow: hidden;
  box-shadow: 0 60px 140px -50px rgba(59,100,244,.35), 0 40px 80px -40px rgba(0,0,0,.9);
  display: grid; grid-template-columns: 210px 1fr; min-height: 640px;
  transform: rotateX(14deg) scale(.94); transform-origin: 50% 0; opacity: .4;
  transition: transform 1.4s var(--ease), opacity 1.2s var(--ease);
}
.console-stage.in .dash { transform: none; opacity: 1; }
.d-side { border-right: 1px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; gap: 2px; background: var(--panel); }
.d-org { display: flex; align-items: center; gap: 10px; padding: 6px 8px 16px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.d-org .av { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(135deg, #3B64F4, #1534AD); display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; }
.d-org b { font-size: .84rem; font-weight: 500; display: block; line-height: 1.2; }
.d-org span { font-size: .72rem; color: var(--ink-3); }
.d-nav { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 8px; font-size: .82rem; color: var(--ink-3); }
.d-nav svg { width: 15px; height: 15px; }
.d-nav.on { background: rgba(255,255,255,.05); color: var(--ink); }
.d-nav .ct { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--ink-4); }
.d-side .d-usage { margin-top: auto; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); }
.d-usage .kv { margin-bottom: 8px; }
.meter { height: 5px; border-radius: 4px; background: var(--panel-3); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--cobalt), var(--cobalt-hi)); transition: width 1.6s var(--ease) .4s; }
.in .meter i { width: var(--v); }

.d-main { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.d-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.d-top h4 { font-size: 1.05rem; font-weight: 500; letter-spacing: -0.02em; }
.d-top .r { display: flex; gap: 8px; align-items: center; }
.seg { display: inline-flex; padding: 3px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); }
.seg span { padding: 4px 10px; border-radius: 6px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.seg span.on { background: var(--panel-3); color: var(--ink); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.kpi { padding: 14px 16px; border-left: 1px solid var(--line); background: var(--panel); }
.kpi:first-child { border-left: 0; }
.kpi .k { font-size: .75rem; color: var(--ink-3); }
.kpi .v { font-size: 1.6rem; font-weight: 500; letter-spacing: -0.035em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .d { font-family: var(--mono); font-size: 10.5px; color: var(--mint); }
.kpi .d.neg { color: var(--ink-3); }
.d-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; flex: 1; min-height: 0; }
.panel { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 14px 16px; display: flex; flex-direction: column; min-width: 0; }
.panel-h { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; margin-bottom: 8px; }
.panel-h span { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }
.chart { flex: 1; min-height: 190px; position: relative; }
.chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chart svg { clip-path: inset(0 100% 0 0); transition: clip-path 2.4s var(--ease) .3s; }
.in .chart svg { clip-path: inset(0 0 0 0); }
.chart-tip {
  position: absolute; transform: translate(-50%, -130%); padding: 5px 9px; border-radius: 7px; white-space: nowrap;
  background: var(--panel-3); border: 1px solid var(--line-2); font-family: var(--mono); font-size: 10.5px; color: var(--ink-3);
  opacity: 0; transition: opacity .6s 2.2s;
}
.chart-tip b { color: var(--ink); font-weight: 500; }
.chart-tip::after { content: ""; position: absolute; left: 50%; bottom: -14px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--cobalt-hi); box-shadow: 0 0 0 4px rgba(124,155,255,.2); }
.in .chart-tip { opacity: 1; }
.chart-y { position: absolute; left: 0; top: 0; bottom: 18px; display: flex; flex-direction: column; justify-content: space-between; font-family: var(--mono); font-size: 9.5px; color: var(--ink-4); }
.sess { display: grid; gap: 2px; overflow: hidden; }
.sess li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line); font-size: .78rem; animation: rowIn .6s var(--ease); }
.sess li:last-child { border-bottom: 0; }
.sess .cc { font-family: var(--mono); font-size: 10px; padding: 2px 6px; border-radius: 5px; background: var(--panel-3); color: var(--ink-2); }
.sess .u { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--mono); font-size: 11px; }
.sess .t { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }
@keyframes rowIn { from { opacity: 0; transform: translateY(-8px); } }
.d-table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); }
.d-table table { width: 100%; border-collapse: collapse; font-size: .78rem; }
.d-table th { text-align: left; font-weight: 400; font-size: .72rem; color: var(--ink-3); padding: 10px 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.015); }
.d-table td { padding: 10px 16px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-family: var(--mono); font-size: 11.5px; white-space: nowrap; }
.d-table tr:last-child td { border-bottom: 0; }
.d-table td:first-child { color: var(--ink); }

.console-notes { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 64px; border-top: 1px solid var(--line); }
.note-cell { padding: 32px 32px 0 0; }
.note-cell + .note-cell { padding-left: 32px; border-left: 1px solid var(--line); }
.note-cell .ni { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--steel); margin-bottom: 18px; }
.note-cell .ni svg { width: 17px; height: 17px; }
.note-cell h3 { font-size: 1rem; font-weight: 500; letter-spacing: -0.015em; }
.note-cell p { font-size: .875rem; color: var(--ink-3); margin-top: 6px; line-height: 1.6; }

/* =========================================================
   SCALE (stats over render)
   ========================================================= */
.scale { position: relative; }
.scale .slot { aspect-ratio: 21 / 9; border-radius: 0; }
.scale .slot::after { inset: 18px; }
.scale .slot > img { -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.scale-head { position: absolute; left: var(--pad); top: 72px; z-index: 4; max-width: 560px; }
.scale-head .eyebrow { margin-bottom: 20px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); position: relative; z-index: 4; background: var(--bg); }
.stat { padding: 36px var(--pad) 40px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat .v { font-size: clamp(2.2rem, 3.6vw, 3.25rem); font-weight: 500; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .v small { font-size: .45em; color: var(--ink-3); letter-spacing: -0.02em; margin-left: 2px; }
.stat .k { margin-top: 12px; font-size: .875rem; color: var(--ink-3); }

/* =========================================================
   USE CASES
   ========================================================= */
.uc-tabs { display: flex; gap: 0; border: 1px solid var(--line); border-radius: 12px; padding: 4px; width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; margin-bottom: 32px; background: var(--panel); }
.uc-tabs::-webkit-scrollbar { display: none; }
.uc-tab { position: relative; height: 38px; padding: 0 16px; border-radius: 9px; font-size: .875rem; color: var(--ink-3); white-space: nowrap; transition: color .3s, background .3s; }
.uc-tab:hover { color: var(--ink); }
.uc-tab.on { color: var(--ink); background: var(--panel-3); box-shadow: 0 0 0 1px var(--line-2) inset; }
.uc-panel { display: none; grid-template-columns: 1fr 1.25fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--panel); }
.uc-panel.on { display: grid; animation: ucIn .7s var(--ease); }
@keyframes ucIn { from { opacity: 0; transform: translateY(10px); } }
.uc-copy { padding: 44px; display: flex; flex-direction: column; }
.uc-copy h3 { font-size: 1.75rem; font-weight: 500; letter-spacing: -0.035em; line-height: 1.15; }
.uc-copy p { margin-top: 14px; color: var(--ink-2); font-size: .975rem; line-height: 1.65; }
.uc-list { margin-top: 26px; display: grid; gap: 12px; }
.uc-list li { display: flex; gap: 12px; font-size: .9rem; color: var(--ink-2); line-height: 1.5; }
.uc-metric { margin-top: auto; padding-top: 32px; display: flex; gap: 32px; }
.uc-metric div b { display: block; font-size: 2rem; font-weight: 500; letter-spacing: -0.04em; line-height: 1.1; }
.uc-metric div span { font-size: .8rem; color: var(--ink-3); }
.uc-vis { position: relative; min-height: 500px; border-left: 1px solid var(--line); }
.uc-vis .slot { position: absolute; inset: 0; }
.uc-float { position: absolute; z-index: 4; left: 24px; bottom: 24px; right: 24px; max-width: 360px; padding: 14px 16px; border-radius: 12px; background: rgba(10,11,13,.86); border: 1px solid var(--line-2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-family: var(--mono); font-size: 11.5px; line-height: 1.7; color: var(--ink-2); box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); }
.uc-float .h { display: flex; justify-content: space-between; color: var(--ink-3); font-size: 10.5px; margin-bottom: 6px; }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.case { display: grid; grid-template-columns: 400px 1fr; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--panel); }
.case .slot { aspect-ratio: 4 / 5; height: 100%; }
.case-body { padding: 48px; display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.case-body .logo { color: var(--ink); margin-bottom: 36px; }
.case-body blockquote { margin: 0; font-size: clamp(1.35rem, 2.1vw, 1.85rem); line-height: 1.32; letter-spacing: -0.03em; font-weight: 500; text-wrap: pretty; }
.case-body blockquote .mute { color: var(--ink-3); }
.who { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.who b { display: block; font-size: .9rem; font-weight: 500; }
.who span { font-size: .82rem; color: var(--ink-3); }
.case-metrics { margin-top: auto; padding-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.case-metrics > div { padding-top: 24px; }
.case-metrics > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.case-metrics b { display: block; font-size: 2rem; letter-spacing: -0.045em; font-weight: 500; line-height: 1.1; }
.case-metrics span { font-size: .8rem; color: var(--ink-3); }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.quote { padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; gap: 28px; }
.quote p { font-size: .975rem; line-height: 1.6; color: var(--ink-2); }
.quote p b { color: var(--ink); font-weight: 500; }
.quote .who { margin-top: auto; }
.av { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.av.slot::after { inset: 3px; border-radius: 50%; }
.av .slot-label { padding: 0; }
.av .slot-label b { font-size: 7px; letter-spacing: .06em; }
.av .slot-label code, .av .slot-label span { display: none; }

/* =========================================================
   PRICING
   ========================================================= */
.bill { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--panel); position: relative; }
.bill button { position: relative; z-index: 1; height: 34px; padding: 0 16px; border-radius: 8px; font-size: .85rem; color: var(--ink-3); transition: color .3s; display: inline-flex; align-items: center; gap: 8px; }
.bill button.on { color: var(--ink); }
.bill .knob { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 8px; background: var(--panel-3); box-shadow: 0 0 0 1px var(--line-2) inset; transition: transform .45s var(--ease), width .45s var(--ease); }
.bill .save { font-family: var(--mono); font-size: 10.5px; color: var(--mint); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.plan { position: relative; padding: 32px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; }
.plan.pop { border-color: rgba(124,155,255,.45); background: radial-gradient(90% 60% at 50% 0%, rgba(59,100,244,.16), transparent 70%), var(--panel); box-shadow: 0 40px 100px -40px rgba(59,100,244,.5); }
.plan .ptop { display: flex; justify-content: space-between; align-items: center; }
.plan h3 { font-size: 1.05rem; font-weight: 500; }
.plan .desc { margin-top: 8px; font-size: .875rem; color: var(--ink-3); line-height: 1.55; min-height: 3.1em; }
.price { margin-top: 28px; display: flex; align-items: baseline; gap: 6px; }
.price .amt { font-size: 3.25rem; font-weight: 500; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; display: inline-block; transition: opacity .25s, transform .35s var(--ease); }
.price .amt.flip { opacity: 0; transform: translateY(-8px); }
.price .per { font-size: .875rem; color: var(--ink-3); }
.price-note { margin-top: 6px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); min-height: 1.5em; }
.plan .btn { margin-top: 28px; }
.feat { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.feat li { display: flex; gap: 10px; font-size: .875rem; color: var(--ink-2); line-height: 1.5; }
.feat li .check { margin-top: 3px; }
.feat .mono { color: var(--ink); }
.ent { margin-top: 16px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding: 28px 32px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--panel); }
.ent h3 { font-size: 1.05rem; font-weight: 500; }
.ent p { font-size: .875rem; color: var(--ink-3); margin-top: 4px; }
.ent ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.est { margin-top: 16px; display: grid; grid-template-columns: 1fr 300px; border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; }
.est-l { padding: 28px 32px; }
.est-l .row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.est-l label { font-size: .95rem; font-weight: 500; }
.est-l output { font-family: var(--mono); font-size: 13px; color: var(--ink); }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--cobalt) var(--p, 30%), var(--panel-3) var(--p, 30%)); outline: none; cursor: pointer; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 5px solid var(--cobalt); box-shadow: 0 0 0 6px rgba(59,100,244,.18); transition: box-shadow .25s; }
.range::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 5px solid var(--cobalt); box-shadow: 0 0 0 6px rgba(59,100,244,.18); }
.range:hover::-webkit-slider-thumb { box-shadow: 0 0 0 9px rgba(59,100,244,.22); }
.ticks { display: flex; justify-content: space-between; margin-top: 10px; font-family: var(--mono); font-size: 10.5px; color: var(--ink-4); }
.est-r { padding: 28px 32px; background: var(--panel); border-left: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.est-r .k { font-size: .8rem; color: var(--ink-3); }
.est-r .v { font-size: 2.25rem; font-weight: 500; letter-spacing: -0.045em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.est-r .p { font-family: var(--mono); font-size: 11px; color: var(--cobalt-hi); margin-top: 4px; }

/* =========================================================
   SECURITY
   ========================================================= */
.sec-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.sec-cell { padding: 40px 32px; border-left: 1px solid var(--line); }
.sec-cell:first-child { border-left: 0; padding-left: var(--pad); }
.seal { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; margin-bottom: 22px; position: relative; color: var(--steel); background: radial-gradient(circle at 50% 30%, rgba(124,155,255,.12), transparent 70%); }
.seal::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 1px dashed var(--line-2); }
.seal svg { width: 20px; height: 20px; }
.sec-cell h3 { font-size: 1rem; font-weight: 500; letter-spacing: -0.01em; }
.sec-cell p { font-size: .85rem; color: var(--ink-3); margin-top: 6px; line-height: 1.6; }

/* =========================================================
   CHANGELOG
   ========================================================= */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.post { border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--panel); overflow: hidden; display: flex; flex-direction: column; transition: border-color .4s, transform .5s var(--ease); }
.post:hover { border-color: var(--line-2); transform: translateY(-4px); }
.post .slot { aspect-ratio: 16 / 10; }
.post .slot > img { transition: transform 1.2s var(--ease); }
.post:hover .slot > img { transform: scale(1.04); }
.post-b { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.post-b .meta { display: flex; gap: 10px; align-items: center; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.post-b h3 { font-size: 1.1rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.35; }
.post-b p { font-size: .875rem; color: var(--ink-3); line-height: 1.55; }

/* =========================================================
   FAQ
   ========================================================= */
.faq-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; }
.faq-side .h2 { margin-top: 22px; }
.faq-side .lede { margin-top: 18px; }
.faq-side .contact { margin-top: 32px; padding: 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); display: flex; gap: 14px; align-items: center; }
.faq-side .contact b { display: block; font-size: .9rem; font-weight: 500; }
.faq-side .contact span { font-size: .82rem; color: var(--ink-3); }
.faq-side .contact .btn { margin-left: auto; }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-size: 1.05rem; font-weight: 500; letter-spacing: -0.015em; transition: color .3s; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: #fff; }
.qa .pm { position: relative; width: 28px; height: 28px; flex: none; border-radius: 8px; border: 1px solid var(--line-2); transition: background .3s, border-color .3s; }
.qa .pm::before, .qa .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .4s var(--ease); }
.qa .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa[open] .pm { background: var(--cobalt); border-color: var(--cobalt); }
.qa[open] .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.qa .ans { overflow: hidden; }
.qa .ans p { padding: 0 48px 26px 0; color: var(--ink-2); font-size: .95rem; line-height: 1.7; }

/* =========================================================
   CTA
   ========================================================= */
.cta { position: relative; overflow: hidden; }
.cta .slot { position: absolute; inset: 0; }
.cta .slot::after { inset: 18px; }
.cta .slot-label { justify-content: flex-start; align-items: flex-end; text-align: right; padding: 36px 40px; }
.cta .slot > img { opacity: .9; }
.cta-in { position: relative; z-index: 4; padding: 140px var(--pad); text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta-in::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 50% 50%, rgba(5,5,6,.85), rgba(5,5,6,.2) 80%); pointer-events: none; }
.cta h2 { font-size: clamp(2.4rem, 5.2vw, 4.5rem); line-height: 1; letter-spacing: -0.045em; font-weight: 500; max-width: 900px; text-wrap: balance; }
.cta .lede { margin: 22px auto 0; text-align: center; }
.cta .hero-ctas { justify-content: center; margin-top: 36px; }
.cta .cmd { margin-top: 28px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer .wrap { padding: 72px var(--pad) 0; }
.f-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; }
.f-brand p { margin-top: 16px; font-size: .875rem; color: var(--ink-3); max-width: 280px; line-height: 1.6; }
.status { margin-top: 24px; display: inline-flex; align-items: center; gap: 10px; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); transition: border-color .3s; }
.status:hover { border-color: var(--line-2); }
.f-col h4 { font-family: var(--mono); font-size: 11.5px; font-weight: 400; color: var(--ink-3); margin-bottom: 18px; }
.f-col ul { display: grid; gap: 10px; }
.f-col a { font-size: .875rem; color: var(--ink-2); transition: color .25s; }
.f-col a:hover { color: var(--ink); }
.f-col .new { font-family: var(--mono); font-size: 10px; color: var(--cobalt-hi); margin-left: 6px; }
.f-mark { margin-top: 72px; overflow: hidden; }
.f-mark svg { width: 100%; height: auto; }
.f-bot { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0 28px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--ink-3); }
.f-bot .soc { display: flex; gap: 6px; }
.f-bot .soc a { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; color: var(--ink-3); transition: background .25s, color .25s; }
.f-bot .soc a:hover { background: rgba(255,255,255,.05); color: var(--ink); }
.f-bot .soc svg { width: 16px; height: 16px; }

/* =========================================================
   REVEAL
   ========================================================= */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--rd, 0s); }
.js .rv.in { opacity: 1; transform: none; }
.js .hero-copy > * { opacity: 0; transform: translateY(16px); animation: heroIn 1s var(--ease) forwards; }
.js .hero-copy > :nth-child(1) { animation-delay: .1s; } .js .hero-copy > :nth-child(2) { animation-delay: .2s; }
.js .hero-copy > :nth-child(3) { animation-delay: .32s; } .js .hero-copy > :nth-child(4) { animation-delay: .44s; }
.js .hero-copy > :nth-child(5) { animation-delay: .56s; }
.js .code-card { opacity: 0; animation: heroIn 1s var(--ease) .7s forwards; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .nav .wrap { grid-template-columns: auto 1fr auto; }
  .flow-grid { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .trusted { grid-template-columns: repeat(3, 1fr); }
  .trusted > :first-child { grid-column: 1 / -1; justify-content: center; min-height: 56px; border-bottom: 1px solid var(--line); }
  .trusted > :nth-child(2), .trusted > :nth-child(5) { border-left: 0; }
  .trusted > :nth-child(n+5) { border-top: 1px solid var(--line); }
  .dash { grid-template-columns: 1fr; }
  .d-side { display: none; }
  .f-top { grid-template-columns: 1fr 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
}

@media (max-width: 1023px) {
  :root { --pad: 32px; }
  .links-cell, .nav-actions .signin, .nav-actions .btn-ghost { display: none; }
  .burger { display: block; }
  .nav .wrap { grid-template-columns: 1fr auto; }

  /* hero becomes a stacked layout */
  .hero > .wrap { container-type: normal; }
  .hero-stage { aspect-ratio: auto; overflow: visible; }
  .hero-art { font-size: 16px; }
  .hero-copy { position: relative; left: auto; top: auto; width: auto; padding: 56px var(--pad) 8px; }
  .hero h1 { font-size: clamp(2.5rem, 7.4vw, 3.75rem); }
  .hero-visual { position: relative; inset: auto; aspect-ratio: 820 / 820; overflow: hidden; margin-top: -10px; }
  .hero-visual .iso { position: absolute; inset: auto; top: -9%; left: -51.2%; width: 151.2%; max-width: none; height: auto; }
  .iso .card-link { display: none; }
  .hero-grid { -webkit-mask-image: radial-gradient(80% 50% at 50% 70%, #000, transparent 85%); mask-image: radial-gradient(80% 50% at 50% 70%, #000, transparent 85%); }
  .code-card { position: relative; left: auto; top: auto; width: auto; margin: -64px var(--pad) 48px; font-size: 14px; }

  .sec-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 48px; }
  .sec-head .lede, .sec-head .aside { justify-self: start; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-4, .c-6 { grid-column: span 2; }
  .c-2, .c-3 { grid-column: span 1; }
  .card-stack { flex-direction: column; align-items: flex-start; }
  .chips { display: flex; flex-wrap: wrap; justify-content: flex-start; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi:nth-child(3) { border-left: 0; }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--line); }
  .d-row { grid-template-columns: minmax(0, 1fr); }
  .console-notes { grid-template-columns: 1fr; }
  .note-cell, .note-cell + .note-cell { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .scale .slot { aspect-ratio: 4 / 3; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .uc-panel.on { grid-template-columns: 1fr; }
  .uc-vis { border-left: 0; border-top: 1px solid var(--line); min-height: 380px; }
  .case { grid-template-columns: 1fr; }
  .case .slot { aspect-ratio: 16 / 10; height: auto; }
  .case-body { border-left: 0; border-top: 1px solid var(--line); }
  .quotes, .posts, .plans { grid-template-columns: 1fr; }
  .sec-grid { grid-template-columns: 1fr 1fr; }
  .sec-cell:nth-child(3) { border-left: 0; padding-left: var(--pad); }
  .sec-cell:nth-child(n+3) { border-top: 1px solid var(--line); }
  .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .est { grid-template-columns: 1fr; }
  .est-r { border-left: 0; border-top: 1px solid var(--line); }
  .ent { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  :root { --pad: 20px; --nav-h: 60px; }
  .pad { padding: 80px var(--pad); }
  .pad-sm { padding: 56px var(--pad); }
  .brand-cell { padding: 0 16px; }
  .nav-actions { padding: 0 12px; }
  .nav-actions .btn-primary { display: none; }
  .hero-copy { padding-top: 40px; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .code-card { margin: -40px 16px 40px; font-size: 12.5px; }
  .steps { grid-template-columns: 1fr; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .c-4, .c-6, .c-2, .c-3 { grid-column: auto; }
  .card-stealth { flex-direction: column; min-height: 0; }
  .card-stealth .card-copy { flex: none; }
  .card-stealth .card-vis { min-height: 300px; }
  .ide-body { font-size: 12px; min-height: 0; grid-template-columns: 34px minmax(0, 1fr); }
  .gutter { padding-right: 8px; }
  .ide-out { grid-template-columns: minmax(0, 1fr); }
  .out-right { border-left: 0; border-top: 1px solid var(--line); }
  .dash { min-height: 0; border-radius: 14px; }
  .d-main { padding: 14px; }
  .d-top .seg { display: none; }
  .kpi .v { font-size: 1.3rem; }
  .d-table { overflow-x: auto; }
  .scale-head { top: 40px; }
  .scale .slot { aspect-ratio: 3 / 4; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 28px var(--pad); }
  .uc-copy { padding: 28px 24px; }
  .uc-metric { gap: 24px; }
  .case-body { padding: 28px 24px; }
  .case-metrics { grid-template-columns: 1fr 1fr 1fr; }
  .case-metrics > div + div { padding-left: 14px; }
  .case-metrics b { font-size: 1.5rem; }
  .sec-grid { grid-template-columns: 1fr; }
  .sec-cell, .sec-cell:first-child, .sec-cell:nth-child(3) { padding: 32px var(--pad); border-left: 0; }
  .sec-cell + .sec-cell { border-top: 1px solid var(--line); }
  .est-l, .est-r, .ent, .plan { padding: 24px; }
  .est-l .row { flex-direction: column; gap: 6px; }
  .faq-side .contact { flex-wrap: wrap; }
  .faq-side .contact .btn { margin-left: 0; width: 100%; }
  .qa .ans p { padding-right: 0; }
  .cta-in { padding: 100px var(--pad); }
  .cta .slot-label { justify-content: flex-end; align-items: center; text-align: center; padding: 0 20px 26px; }
  .cta .slot-label span { display: none; }
  .cta-in { padding-bottom: 130px; }
  .cta .cmd { max-width: 100%; }
  .f-top { grid-template-columns: 1fr 1fr; }
  .f-bot { flex-direction: column-reverse; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .iso .packets { display: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   EXTRA COMPONENTS (inputs, switch, toast, tooltip)
   ========================================================= */
.field { display: grid; gap: 8px; }
.field label { font-size: .8rem; color: var(--ink-2); }
.input {
  height: 42px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel);
  color: var(--ink); font: inherit; font-size: .9rem; transition: border-color .25s, box-shadow .25s; width: 100%;
}
.input::placeholder { color: var(--ink-4); }
.input:focus { outline: none; border-color: rgba(124,155,255,.6); box-shadow: 0 0 0 4px rgba(59,100,244,.18); }
select.input { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%236C717C' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.switch { position: relative; width: 40px; height: 24px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--panel-3); border: 1px solid var(--line-2); transition: background .3s, border-color .3s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink-2); transition: transform .4s var(--ease), background .3s; }
.switch input:checked + span { background: var(--cobalt); border-color: var(--cobalt); }
.switch input:checked + span::after { transform: translateX(16px); background: #fff; }
.switch input:focus-visible + span { outline: 2px solid var(--cobalt-hi); outline-offset: 3px; }
.toast { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel-2); box-shadow: 0 24px 50px -20px rgba(0,0,0,.8); max-width: 380px; }
.toast .ti { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; background: rgba(60,212,154,.12); color: var(--mint); }
.toast .ti svg { width: 15px; height: 15px; }
.toast.warn .ti { background: rgba(242,194,122,.12); color: var(--amber); }
.toast b { display: block; font-size: .875rem; font-weight: 500; }
.toast span { font-size: .8rem; color: var(--ink-3); line-height: 1.5; }
.tip { position: relative; display: inline-flex; }
.tip::after {
  content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translate(-50%, 4px); white-space: nowrap;
  padding: 6px 10px; border-radius: 7px; background: var(--ink); color: #08090B; font-size: 12px; font-weight: 500;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .3s var(--ease);
}
.tip:hover::after, .tip:focus-within::after { opacity: 1; transform: translate(-50%, 0); }
.avatars { display: flex; }
.avatars .av { width: 32px; height: 32px; border: 2px solid var(--bg); margin-left: -8px; }
.avatars .av:first-child { margin-left: 0; }

/* =========================================================
   UI KIT PAGE
   ========================================================= */
.kit-hero { padding: calc(var(--nav-h) + 88px) var(--pad) 72px; }
.kit-hero h1 { margin-top: 22px; font-size: clamp(2.6rem, 5vw, 4.25rem); line-height: 1.02; letter-spacing: -0.045em; font-weight: 500; }
.kit-hero .lede { margin-top: 20px; }
.kit-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.kit-row { display: grid; grid-template-columns: 260px minmax(0, 1fr); }
.kit-row > header { padding: 48px var(--pad); border-right: 1px solid var(--line); }
.kit-row > header h2 { font-size: 1.05rem; font-weight: 500; letter-spacing: -0.015em; margin-top: 14px; }
.kit-row > header p { font-size: .85rem; color: var(--ink-3); margin-top: 6px; line-height: 1.55; }
.kit-demo { padding: 48px var(--pad); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; min-width: 0; }
.kit-demo.col { flex-direction: column; align-items: stretch; }
.kit-demo.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.kit-demo.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.swatch { border-radius: 12px; border: 1px solid var(--line); overflow: hidden; background: var(--panel); text-align: left; transition: border-color .3s, transform .4s var(--ease); }
.swatch:hover { border-color: var(--line-2); transform: translateY(-2px); }
.swatch i { display: block; height: 72px; border-bottom: 1px solid var(--line); }
.swatch div { padding: 10px 12px; }
.swatch b { display: block; font-size: .8rem; font-weight: 500; }
.swatch span { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.swatches { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; width: 100%; }
.type-row { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 24px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); width: 100%; }
.type-row:first-child { padding-top: 0; }
.type-row .meta { font-family: var(--mono); font-size: 11px; color: var(--ink-3); line-height: 1.6; }
.icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; width: 100%; }
.icons div { display: grid; place-items: center; gap: 10px; padding: 18px 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink-2); }
.icons svg { width: 20px; height: 20px; }
.icons span { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }
.kit-slot { width: 100%; max-width: 520px; aspect-ratio: 16 / 10; border-radius: 16px; }

@media (max-width: 1023px) {
  .kit-row { grid-template-columns: 1fr; }
  .kit-row > header { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 28px; }
  .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kit-demo.grid3 { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .kit-row > header, .kit-demo { padding: 32px var(--pad); }
  .kit-demo.grid2 { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .type-row { grid-template-columns: 1fr; gap: 6px; }
}

/* Art-directed image crops and contrast for the finished landing page. */
main .slot:has(> img), .menu-feature .slot:has(> img) { background: #050506; }
.card-stealth .slot > img { object-position: 50% 48%; }
.card-globe .slot > img { object-position: 50% 38%; }
.uc-vis .slot > img { object-position: 60% 45%; }
.case .slot > img { object-position: 50% 30%; }
.scale .slot::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(90deg, rgba(5,5,6,.7), transparent 65%);
}
@media (max-width: 700px) {
  .scale .slot > img { object-position: 72% center; }
  .scale .slot::before { background: linear-gradient(180deg, rgba(5,5,6,.94), rgba(5,5,6,.5) 45%, transparent 75%); }
  .case .slot > img { object-position: 50% 14%; }
  .cta-in { padding-bottom: 100px; }
}
