/* SHADOW landing page. Monochrome: near-black, light grey. Green/red appear only as diff and pass marks in the demo. */

@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/InstrumentSans.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --bg: #0b0c0d;
  --bg-2: #0f1113;
  --panel: #131518;
  --line: #24272b;
  --line-2: #34383d;
  --fg: #e4e4e1;
  --fg-2: #b3b5b7;
  --muted: #8a8e93;
  --hero: #dcdcd8;
  --ink: #0b0c0d;
  --ok: #8fd6a0;
  --bad: #f08a7a;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --wrap: 1240px;
  --pad: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --lh: 25px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
html.boot-on body { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img, svg, canvas { display: block; }
::selection { background: var(--fg); color: var(--ink); }

.mono { font-family: var(--mono); }
.dim { color: var(--muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: -60px; z-index: 300;
  background: var(--fg); color: var(--ink); padding: 10px 16px; font-weight: 600;
  transition: top .2s var(--ease);
}
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

/* Content hidden until its intro plays. Falls back to visible after 4 s if scripts fail. */
html.js [data-hide] { visibility: hidden; animation: unhide 0s 4s forwards; }
@keyframes unhide { to { visibility: visible; } }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.frame { border-inline: 1px solid var(--line); }
.section { position: relative; padding-block: clamp(88px, 12vw, 168px); }
.section + .section { border-top: 1px solid var(--line); }

/* ---------- Boot ---------- */
.boot {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: var(--bg); color: var(--fg);
  align-items: center; justify-content: center;
}
html.boot-on .boot { display: flex; }
.boot-inner { font-size: 14px; line-height: 2; min-width: min(420px, 86vw); }
.boot-line { opacity: 0; }
.boot .hi { color: var(--fg); }
.boot-line:not(:first-child) { color: var(--fg-2); }
.boot-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line); }
.boot-bar i { display: block; height: 100%; background: var(--fg); transform: scaleX(0); transform-origin: left; }
.caret {
  display: inline-block; width: .55em; height: 1.05em; margin-left: 4px;
  vertical-align: -0.18em; background: currentColor; animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Global overlays ---------- */
.grain {
  position: fixed; inset: -100px; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  /* Static on purpose: an animated full-screen noise layer cost about a third of the frame budget while scrolling. */
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-30px, 20px); }
  40% { transform: translate(20px, -40px); } 60% { transform: translate(-50px, -10px); }
  80% { transform: translate(40px, 30px); } 100% { transform: translate(0, 0); }
}
.progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 120; pointer-events: none; mix-blend-mode: difference; }
.progress i { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }

/* Grey cursor that reads on both the light hero and the dark page. The native pointer is hidden while it shows. */
.cursor { position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none; display: none; --cur: #8f9399; }
html.has-cursor .cursor { display: block; }
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor input[type="text"], html.has-cursor input[type="email"] { cursor: text !important; }
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor-dot { width: 12px; height: 12px; margin: -6px 0 0 -6px; background: var(--cur); box-shadow: 0 0 0 1px rgba(11, 12, 13, .25); }
.cursor-ring { width: 54px; height: 54px; margin: -27px 0 0 -27px; border: 1.5px solid var(--cur); transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background-color .35s; }
.cursor.is-hover .cursor-ring { width: 82px; height: 82px; margin: -41px 0 0 -41px; background: rgba(143, 147, 153, .16); }
.cursor-label {
  position: absolute; inset: 0; display: grid; place-items: center;
  font: 600 10px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: #fff;
  opacity: 0; transition: opacity .3s;
}
.cursor.is-label .cursor-ring { width: 88px; height: 88px; margin: -44px 0 0 -44px; background: rgba(255,255,255,.06); }
.cursor.is-label .cursor-label { opacity: 1; }
.cursor.is-label .cursor-dot { opacity: 0; }

/* Spotlight: soft light follows the pointer inside cards (script sets --mx / --my and adds .spot). */
.spot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .065), transparent 65%);
}
.spot:hover::after { opacity: 1; }
.tp.spot { position: relative; }

html { scrollbar-color: #34383d #0b0c0d; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0b0c0d; }
::-webkit-scrollbar-thumb { background: #2a2d31; border: 2px solid #0b0c0d; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #3a3e44; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 110;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px var(--pad); color: var(--ink);
  transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s, padding .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-dark {
  color: var(--fg); background: rgba(11, 12, 13, .92); /* solid, no backdrop blur: blur re-renders the page under the nav on every scroll frame */
  border-bottom-color: var(--line); padding-block: 10px;
}
.nav.is-dark .btn-dark { background: var(--fg); color: var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.brand-mark { width: 26px; height: 26px; }
.brand-word { font-family: var(--mono); font-weight: 700; letter-spacing: .22em; font-size: 15px; }
.nav-links { display: flex; gap: 32px; font-size: 14px; }
.nav-links a { position: relative; padding: 12px 0; opacity: .8; transition: opacity .25s; }
.nav-links a:hover { opacity: 1; }
/* Text roll: a copy of the label sits one line below (text-shadow) and slides up on hover. */
.roll { display: block; overflow: hidden; height: 1.3em; line-height: 1.3em; }
.roll > span { display: block; text-shadow: 0 1.3em currentColor; transition: transform .55s var(--ease); }
.nav-links a:hover .roll > span, .nav-links a:focus-visible .roll > span { transform: translateY(-1.3em); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border: 0; cursor: pointer;
  font-family: var(--mono); font-size: 14px; font-weight: 600; letter-spacing: .02em; white-space: nowrap;
  transition: background-color .3s, color .3s; overflow: hidden;
}
.btn::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn-light::after { background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .95) 50%, transparent 65%); }
.btn:hover::after { transform: translateX(120%); }
.btn-chamfer { clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); }
.btn-chamfer:focus-visible { clip-path: none; }
.btn-dark { background: var(--ink); color: var(--hero); }
.btn-light { background: var(--fg); color: var(--ink); }
.btn-dark:hover { background: #22252a; }
.btn-light:hover { background: #fff; }
.btn-arrow { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn[disabled] { cursor: progress; opacity: .7; }

/* ---------- Tags ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px;
  border: 1px solid var(--line-2); background: var(--bg-2); color: var(--fg-2);
  font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
}
.tag-ico { width: 12px; height: 12px; }
.tag-dark { background: transparent; border-color: rgba(11, 12, 13, .3); color: var(--ink); }
.tag-dot { width: 7px; height: 7px; background: currentColor; animation: pulse 1.6s var(--ease) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* ---------- Section heads ---------- */
.sec-head { text-align: center; max-width: 1040px; margin: 0 auto clamp(48px, 7vw, 88px); }
.sec-head h2, .stack-title {
  margin-top: 28px; font-weight: 500; letter-spacing: -.035em; line-height: 1.02;
  font-size: clamp(2.4rem, 5.4vw, 4.5rem); text-wrap: balance;
}
.sec-sub { margin: 24px auto 0; max-width: 660px; color: var(--fg-2); font-size: 1.125rem; line-height: 1.65; }
.sec-head-left { text-align: left; margin-left: 0; padding: 0 clamp(0px, 3vw, 40px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
  background: var(--hero); color: var(--ink);
  display: flex; flex-direction: column;
}
.hero-field { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-watermark {
  position: absolute; right: -10vw; top: 50%; width: min(78vw, 980px); height: auto;
  transform: translateY(-50%); color: var(--ink); opacity: .08; pointer-events: none;
}
.scanlines {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0, 0, 0, .04) 2px 3px);
}
.hero-inner { position: relative; z-index: 2; padding-top: clamp(110px, 16vh, 170px); padding-bottom: 56px; flex: 1; }
.hero-title {
  margin-top: 28px; font-weight: 500; letter-spacing: -.045em; line-height: .92;
  font-size: clamp(3.2rem, 9.6vw, 8.2rem); max-width: 12ch;
}
.hero-title .char { display: inline-block; will-change: transform; }
/* SplitText line masks clip overflow; pad them so descenders (g, y) are not cut. */
.hl-mask, .line-mask { padding-bottom: .14em; margin-bottom: -.14em; }
.hero-sub { margin-top: 32px; max-width: 600px; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.55; color: #2b2e32; font-weight: 500; }
.hero-meta { margin-top: 22px; font-size: 12px; letter-spacing: .06em; color: #45494e; }

/* ---------- Signup ---------- */
.signup { margin-top: 36px; max-width: 560px; }
.signup-row { display: flex; gap: 10px; }
.signup input[type="email"] {
  flex: 1; min-width: 0; height: 48px; padding: 0 16px;
  font-family: var(--mono); font-size: 16px; border-radius: 0;
  background: transparent; border: 1px solid rgba(11, 12, 13, .35); color: var(--ink);
  transition: border-color .3s, background-color .3s;
}
.signup input[type="email"]::placeholder { color: #6c7075; }
.signup input[type="email"]:focus { outline: none; border-color: var(--ink); background: rgba(255, 255, 255, .35); }
.signup input[aria-invalid="true"] { border-color: #a3261b; }
.signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.signup-msg { min-height: 1.6em; margin-top: 10px; font-family: var(--mono); font-size: 13px; }
.signup-hero .signup-msg.is-error { color: #a3261b; }
.signup-hero .signup-msg.is-ok { color: #1f5f31; }
.signup-cta input[type="email"] { border-color: var(--line-2); color: var(--fg); background: rgba(11, 12, 13, .6); }
.signup-cta input[type="email"]::placeholder { color: var(--muted); }
.signup-cta input[type="email"]:focus { border-color: var(--fg); background: rgba(11, 12, 13, .85); }
.signup-cta input[aria-invalid="true"] { border-color: var(--bad); }
.signup-cta .signup-msg.is-error { color: var(--bad); }
.signup-cta .signup-msg.is-ok { color: var(--ok); }
.signup.is-done .signup-row { pointer-events: none; }

/* ---------- Ticker ---------- */
.ticker {
  position: relative; z-index: 2; overflow: hidden;
  border-top: 1px solid rgba(11, 12, 13, .18); padding-block: 14px; background: var(--hero);
}
.ticker-track { display: flex; width: max-content; will-change: transform; }
.ticker-list { display: flex; flex-shrink: 0; }
.ticker-list li {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase;
  white-space: nowrap; padding-inline: 28px; position: relative;
}
.ticker-list li::after { content: "■"; position: absolute; right: -4px; font-size: 7px; top: 50%; transform: translateY(-50%); opacity: .5; }

/* ---------- Problem ---------- */
.problem-grid { display: grid; grid-template-columns: 1fr 2fr; border-top: 1px solid var(--line); }
.funnel { padding: 36px; border-right: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.funnel-svg { width: 100%; max-width: 320px; height: auto; color: var(--line-2); overflow: visible; }
.svg-label { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; fill: var(--muted); }
.sig { visibility: hidden; } /* placed by script; unplaced boxes would pile up at the SVG origin */
.sig rect { fill: var(--panel); stroke: #4a4f55; }
.sig text { font-family: var(--mono); font-size: 9px; fill: var(--fg-2); }
.you rect { fill: var(--fg); }
.you text { font-family: var(--mono); font-size: 11px; font-weight: 700; fill: var(--ink); }
.backlog .bl { fill: #3a3e44; }
.cards { display: grid; grid-template-columns: 1fr 1fr; }
.card {
  position: relative; padding: clamp(24px, 3vw, 36px); min-height: 230px;
  border-bottom: 1px solid var(--line); transition: background-color .4s;
}
.card:nth-child(odd) { border-right: 1px solid var(--line); }
.card:nth-last-child(-n+2) { border-bottom: 0; }
.card::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--fg);
  transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease);
}
.card:hover { background: #101215; }
.card:hover::before { transform: scaleX(1); }
.card-k { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .14em; color: var(--muted); }
.card h3 { margin: 20px 0 12px; font-size: clamp(1.25rem, 1.9vw, 1.6rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.card p:last-child { color: var(--fg-2); font-size: 15px; }

/* ---------- Demo ---------- */
.demo .sec-head { margin-bottom: 0; padding-bottom: clamp(40px, 5vw, 64px); }
.demo-pin { padding-block: 24px 8px; }
.win {
  position: relative; border: 1px solid var(--line-2); border-radius: 14px; background: #0e0f11; overflow: hidden;
  box-shadow: 0 50px 140px -50px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .02) inset;
}
.win-bar, .win-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 11px 18px; font-size: 12px; color: var(--muted);
}
.win-bar { border-bottom: 1px solid var(--line); }
.win-foot { border-top: 1px solid var(--line); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.win-dots { display: flex; gap: 7px; }
.win-dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a2d31; }
.win-status, .win-foot span { display: inline-flex; align-items: center; gap: 8px; }
.live-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--fg); }
/* The pulse is a scaled ring (compositor only), not an animated box-shadow that repaints every frame. */
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--fg); animation: liveRing 2s ease-out infinite; }
@keyframes liveRing { from { transform: scale(1); opacity: .6; } to { transform: scale(2.8); opacity: 0; } }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(228, 228, 225, .45); } 70%, 100% { box-shadow: 0 0 0 8px rgba(228, 228, 225, 0); } }

.win-tag {
  position: absolute; left: 50%; top: 11px; transform: translateX(-50%); z-index: 5;
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line-2); padding: 3px 9px; border-radius: 999px; background: rgba(14, 15, 17, .85);
}
.app { display: grid; grid-template-columns: 260px 1fr; height: clamp(440px, calc(100vh - 290px), 600px); }
.side { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: #0c0d0f; }
.side-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; }
.side-plus { font-size: 20px; line-height: 1; color: var(--fg-2); }
.side-search { display: flex; align-items: center; gap: 8px; margin: 0 12px 10px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 8px; font-size: 12px; color: var(--muted); }
.side-search svg { width: 12px; height: 12px; }
.side-list { flex: 1; padding: 0 8px; overflow: hidden; }
.row { position: relative; display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; padding: 10px 8px; border-radius: 10px; transition: background-color .45s var(--ease), box-shadow .45s var(--ease); }
.row[data-scene] { cursor: pointer; }
.row.is-on { background: #1a1c1f; box-shadow: inset 0 0 0 1px var(--line-2); }
.row-main { display: flex; flex-direction: column; min-width: 0; }
.row-main b { font-weight: 600; font-size: 13.5px; }
.row-sum { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-t { align-self: start; margin-top: 3px; font-size: 10.5px; color: var(--muted); }
.unread { position: absolute; left: 36px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--fg); box-shadow: 0 0 0 2px #0c0d0f; animation: pulse 1.6s var(--ease) infinite; }
.av { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font: 700 13px/1 var(--mono); font-style: normal; color: var(--ink); }
.av-1 { background: #dcdcd8; } .av-2 { background: #a9aca8; } .av-3, .av-5 { background: var(--ok); } .av-4 { background: #c4c0b4; }
.av-grp { position: relative; width: 34px; height: 34px; }
.av-grp .av { position: absolute; width: 19px; height: 19px; font-size: 9px; border: 2px solid #0c0d0f; }
.av-grp .av:nth-child(1) { left: 0; top: 0; } .av-grp .av:nth-child(2) { right: 0; top: 5px; } .av-grp .av:nth-child(3) { left: 7px; bottom: 0; }
.side-me { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--fg-2); }
.av-me { width: 32px; height: 32px; font-size: 9px; background: transparent; color: var(--fg-2); border: 1px solid var(--line-2); }
.av-sm { width: 24px; height: 24px; font-size: 10px; }

.chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.chat-name { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; }
.chat-state { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.chat-body {
  position: relative; flex: 1; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22px, #000 calc(100% - 14px), transparent);
  mask-image: linear-gradient(to bottom, transparent 0, #000 22px, #000 calc(100% - 14px), transparent);
}
.scene { position: absolute; inset: 0; padding: 20px 22px 40px; visibility: hidden; }
.msgs { display: flex; flex-direction: column; gap: 10px; will-change: transform; }
.msg { align-self: flex-start; max-width: 78%; padding: 10px 14px; border-radius: 14px; border-bottom-left-radius: 4px; background: #1a1c1f; font-size: 13.5px; line-height: 1.5; }
.msg.me { align-self: flex-end; background: var(--fg); color: var(--ink); border-radius: 14px; border-bottom-right-radius: 4px; }
.msg code { font-family: var(--mono); font-size: 12px; padding: 1px 5px; border-radius: 4px; background: rgba(255, 255, 255, .07); }
.card-h { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 10.5px; letter-spacing: .12em; color: var(--fg-2); }
.plan, .approval { min-width: min(340px, 100%); border: 1px solid var(--line-2); background: #141619; }
.plan-list { display: grid; gap: 4px; font-size: 13px; color: var(--fg-2); counter-reset: p; }
.plan-list li { display: flex; gap: 8px; counter-increment: p; }
.plan-list li::before { content: counter(p); width: 14px; margin-top: 2px; font: 11px var(--mono); color: var(--muted); }
.ap-what { font-size: 13px; color: var(--fg-2); }
.ap-what b { color: var(--fg); }
.ap-cmd { padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: #0b0c0d; font-size: 12.5px; color: var(--fg); }
.ask { position: relative; display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.ask-btn { position: relative; display: inline-grid; place-items: center; height: 32px; padding: 0 14px; overflow: hidden; border-radius: 6px; background: var(--fg); color: var(--ink); font-weight: 700; font-size: 12.5px; }
.ab-a, .ab-b { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ab-b { transform: translateY(130%); }
.ab-b svg { width: 11px; height: 11px; }
.ask-alt { font-size: 11px; color: var(--muted); }
.checks p { display: flex; align-items: center; gap: 8px; margin: 2px 0; font-size: 13px; color: var(--fg-2); }
.checks b { color: var(--fg); font-weight: 600; }
.sys { align-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 11.5px; color: var(--muted); text-align: center; }
.sys svg { width: 13px; height: 13px; flex: none; }
.sys b { color: var(--fg); font-weight: 600; }
.who { margin-bottom: 3px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.diff { min-width: min(340px, 100%); padding: 0; overflow: hidden; border: 1px solid var(--line); background: #0b0c0d; font-size: 12px; }
.diff-h { display: flex; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid var(--line); color: var(--fg-2); }
.add-n, .del-n { font-style: normal; }
.add-n { color: var(--ok); } .del-n { color: var(--bad); }
.dl { padding: 3px 12px; white-space: pre; overflow: hidden; }
.dl.del { background: rgba(240, 138, 122, .1); color: #e8b3aa; }
.dl.add { background: rgba(143, 214, 160, .1); color: #bfe6c8; }
.diff-t { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--line); color: var(--fg-2); }
.tn { color: var(--fg); }
.chat-input { display: flex; align-items: center; gap: 12px; margin: 10px 16px 14px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; color: var(--muted); }
.ci-plus { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--line-2); border-radius: 50%; }
.ci-text { flex: 1; }
.ci-send { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--fg); color: var(--ink); }
.ci-send svg { width: 14px; height: 14px; }
.proof { position: relative; padding: 16px; border: 1px solid rgba(228, 228, 225, .3); border-radius: 12px; background: #131518; }
.proof-k { display: flex; justify-content: space-between; font-size: 10.5px; letter-spacing: .14em; color: var(--muted); }
.proof-ready { color: var(--ok); letter-spacing: .06em; }
.proof-rows p { display: flex; justify-content: space-between; padding: 8px 0; font-size: 12.5px; color: var(--fg-2); border-bottom: 1px dashed var(--line); }
.proof-rows b { color: var(--fg); font-weight: 600; }
.proof-rows b.pass { color: var(--ok); }
.approve-wrap { position: relative; display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.approve {
  position: relative; display: inline-grid; place-items: center; height: 40px; padding: 0 18px; overflow: hidden;
  background: var(--fg); color: var(--ink); font-weight: 700; font-size: 14px; border-radius: 4px;
}
.ap-a, .ap-b { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 6px; }
.ap-b { transform: translateY(130%); }
.ap-b svg { width: 12px; height: 12px; }
.ap-hint { font-size: 11px; }
.fake-cursor { position: absolute; left: 0; top: 0; width: 20px; height: 24px; pointer-events: none; z-index: 3; }
.toast {
  position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 4;
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 8px;
  background: var(--fg); color: var(--ink); font-size: 12.5px; font-weight: 600;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8);
}
.toast .ok-ico { border-color: var(--ink); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr) ; gap: 16px; margin-top: 22px; }
.step {
  position: relative; display: flex; justify-content: space-between; align-items: center;
  min-height: 48px; padding: 12px 0 8px; background: none; border: 0; border-top: 1px solid var(--line-2);
  color: var(--muted); font-size: 13px; cursor: pointer; text-align: left; transition: color .3s;
}
.step:hover, .step[aria-selected="true"] { color: var(--fg); }
.step-fill { position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: var(--fg); transform: scaleX(0); transform-origin: left; }
.step-copy { margin-top: 16px; display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: baseline; }
.step-k { font-size: 11px; letter-spacing: .16em; color: var(--muted); }
.step-text { font-size: clamp(1.1rem, 1.7vw, 1.4rem); letter-spacing: -.01em; min-height: 2.8em; }

/* ---------- Compare ---------- */
.cmp { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.cmp-panel { padding: clamp(24px, 3vw, 40px); position: relative; }
.cmp-slow { border-right: 1px solid var(--line); }
.cmp-fast::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--fg); transform: scaleX(var(--p, 0)); transform-origin: left; }
.cmp-k { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .14em; color: var(--fg-2); margin-bottom: 28px; }
.tl { position: relative; padding-left: 26px; }
.tl::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 1px; background: var(--line-2); transform: scaleY(var(--p, 0)); transform-origin: top; }
.tl li { position: relative; margin-bottom: 16px; font-size: 13px; color: var(--fg-2); }
.tl li span { display: inline-block; min-width: 54px; color: var(--muted); }
.tl li::before { content: ""; position: absolute; left: -26px; top: 5px; width: 9px; height: 9px; background: var(--bg); border: 1px solid var(--line-2); }
.cmp-fast .tl li::before { background: var(--fg); border-color: var(--fg); }
.cmp-total { display: flex; align-items: baseline; gap: 12px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.cmp-n { font-size: clamp(2.6rem, 4.4vw, 3.6rem); font-weight: 500; letter-spacing: -.04em; color: var(--fg); line-height: 1; }

/* ---------- How ---------- */
.how .sec-head { margin-bottom: 0; padding-bottom: clamp(40px, 5vw, 64px); }
.how-grid { display: grid; grid-template-columns: 5fr 7fr; border: 1px solid var(--line); }
.how-steps { border-right: 1px solid var(--line); }
.how-step { position: relative; padding: clamp(22px, 2.6vw, 32px); border-bottom: 1px solid var(--line); opacity: .32; transition: opacity .5s var(--ease); }
.how-step:last-child { border-bottom: 0; }
.how-step::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--fg); transform: scaleY(0); transform-origin: top; transition: transform .6s var(--ease); }
.how-step.is-on { opacity: 1; }
.how-step.is-on::before { transform: scaleY(1); }
.how-k { font-size: 11px; letter-spacing: .16em; color: var(--muted); }
.how-step h3 { margin: 8px 0 10px; font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 500; letter-spacing: -.025em; }
.how-step p:last-child { color: var(--fg-2); font-size: 15px; }
.how-fig { display: flex; align-items: center; justify-content: center; padding: clamp(16px, 3vw, 36px); }
.how-svg { width: 100%; height: auto; color: var(--line-2); overflow: visible; }
.node rect { fill: #111315; stroke: #3a3e44; transition: stroke .5s, fill .5s; }
.node text { font-family: var(--mono); font-size: 12px; fill: var(--fg-2); transition: fill .5s; }
.node .sub { font-size: 10.5px; fill: var(--muted); }
.node.lit rect { stroke: var(--fg); fill: #1a1c1f; }
.node.lit text { fill: var(--fg); }
.node .card-btn { fill: var(--fg); stroke: none; }
.node .card-btn-t { fill: var(--ink); font-size: 11px; font-weight: 700; }
.paths path { stroke: #2c3035; transition: stroke .5s; }
.paths path.lit { stroke: #8a8e93; }
.dot { fill: var(--fg); opacity: 0; }

/* ---------- Agents ---------- */
.agents-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.agent {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 2.6vw, 30px);
  border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); transition: background-color .6s var(--ease);
}
.agent:nth-child(3n) { border-right: 0; }
.agent:nth-last-child(-n+3) { border-bottom: 0; }
.agent::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: var(--fg);
  transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease);
}
.agent.is-active { background: #111316; }
.agent.is-active::before { transform: scaleX(1); }
.agent-k { display: flex; align-items: center; justify-content: space-between; }
.agent-name { display: inline-flex; align-items: center; gap: 10px; font-size: 1.5rem; font-weight: 500; letter-spacing: -.02em; }
.agent-name::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); opacity: 0; transition: opacity .4s; }
.agent.is-active .agent-name::after { opacity: 1; animation: pulse 1.2s var(--ease) infinite; }
.agent-tier { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-2); padding: 3px 8px; }
.agent-job { color: var(--fg-2); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 11.5px; color: var(--fg-2); border: 1px solid var(--line); border-radius: 4px; padding: 3px 8px; background: var(--bg-2); }
.agent-act { margin-top: auto; display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 11.5px; color: var(--muted); }
.agent-act b { font-weight: 600; color: var(--fg); text-align: right; }
.agent-act b.none { color: var(--muted); font-weight: 400; }
.agents-note { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 22px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--fg-2); letter-spacing: .04em; }
.agents-note svg { width: 13px; height: 13px; }

/* ---------- Trust ---------- */
.trust { overflow: hidden; }
.trust-head { margin-bottom: clamp(36px, 5vw, 64px); }
.trust-head h2 { margin-top: 28px; font-weight: 500; letter-spacing: -.035em; line-height: 1.02; font-size: clamp(2.4rem, 5.6vw, 4.9rem); max-width: 14ch; }
/* Cards wrap by default (reduced motion, no script); one long row only while the desktop scroll animation runs. */
.trust-track { display: flex; flex-wrap: wrap; gap: 20px; padding-inline: max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad))); }
.trust.is-h .trust-track { flex-wrap: nowrap; width: max-content; will-change: transform; }
.tp { flex: 1 1 280px; }
.trust.is-h .tp { flex: 0 0 clamp(280px, 30vw, 380px); }
.tp {
  min-height: 380px; display: flex; flex-direction: column;
  padding: 28px; border: 1px solid var(--line); background: var(--bg-2); transition: border-color .4s, background-color .4s;
}
.tp:hover { border-color: var(--line-2); background: #121417; }
.tp-n { font-size: 12px; color: var(--muted); }
.tp-ico { width: 52px; height: 52px; margin-top: 28px; color: var(--fg); }
.tp h3 { margin-top: auto; font-size: clamp(1.4rem, 2vw, 1.75rem); font-weight: 500; letter-spacing: -.02em; }
.tp p:last-child { margin-top: 10px; color: var(--fg-2); font-size: 15px; }

/* ---------- Stats ---------- */
.stats { padding-block: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(36px, 5vw, 64px) clamp(20px, 2.4vw, 32px); border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-n { display: block; font-size: clamp(3.4rem, 7vw, 6rem); font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.stat p { margin-top: 12px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- Stack ---------- */
.stack-title { text-align: center; margin-top: 0; font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.stack-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; text-align: center; }
.stack-k { font-size: 11px; letter-spacing: .16em; color: var(--muted); margin-bottom: 16px; }
.stack-col ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.stack-col li { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--fg-2); transition: color .3s, border-color .3s; }
.stack-col li:hover { color: var(--fg); border-color: var(--fg-2); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 980px; margin: 0 auto; border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  display: grid; grid-template-columns: 44px 1fr 24px; align-items: center; gap: 8px;
  min-height: 64px; padding: 18px 4px; cursor: pointer; list-style: none; font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  transition: color .3s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover .qa-q { color: #fff; }
.qa-n { font-size: 12px; color: var(--muted); }
.qa-ico { position: relative; width: 14px; height: 14px; justify-self: end; }
.qa-ico::before, .qa-ico::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: var(--fg-2); transition: transform .45s var(--ease); }
.qa-ico::after { transform: rotate(90deg); }
.qa[open] .qa-ico::after { transform: rotate(0deg); }
.qa-a { overflow: hidden; }
.qa-a p { padding: 0 32px 26px 56px; color: var(--fg-2); max-width: 820px; }

/* ---------- CTA ---------- */
.cta {
  position: relative; min-height: 92vh; display: grid; place-items: center; overflow: hidden;
  text-align: center; border-top: 1px solid var(--line);
}
.cta-mesh { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 45%, rgba(11, 12, 13, .85) 0, rgba(11, 12, 13, .35) 45%, transparent 75%); }
.cta-inner { position: relative; z-index: 2; padding-block: 140px; }
.cta-mark { width: 64px; height: 64px; margin: 0 auto; color: var(--fg); }
.cta-title { margin: 28px auto 18px; max-width: 13ch; font-size: clamp(3rem, 8vw, 7.4rem); font-weight: 500; letter-spacing: -.045em; line-height: .95; }
.cta-sub { color: var(--fg-2); font-size: 1.125rem; }
.signup-cta { margin: 36px auto 0; text-align: left; }

/* ---------- Footer ---------- */
.footer { background: #08090a; border-top: 1px solid var(--line); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-tag { margin-top: 12px; color: var(--muted); font-size: 14px; max-width: 280px; }
.footer-k { font-size: 11px; letter-spacing: .16em; color: var(--muted); margin-bottom: 12px; }
.footer-grid a:not(.brand) { display: block; padding: 6px 0; color: var(--fg-2); font-size: 14px; transition: color .25s; }
.footer-grid a:not(.brand):hover { color: var(--fg); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.footer-mark {
  margin-top: 48px; overflow: hidden; text-align: center; white-space: nowrap; user-select: none;
  font-weight: 600; font-size: clamp(72px, 21vw, 320px); line-height: .82; letter-spacing: -.05em; padding-bottom: .04em;
  color: #1a1c1f; /* dim fill, not an outline: variable-font outlines show overlapping inner contours */
}
.footer-mark .char { display: inline-block; transition: color .6s var(--ease); }
.footer-mark .char:hover { color: var(--fg); transition-duration: .15s; }

/* ---------- Screen control ---------- */
.desk-grid, .dev-grid { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; padding-inline: clamp(20px, 3vw, 40px); }
.desk-grid { grid-template-columns: 5fr 7fr; }
.dev-grid { grid-template-columns: 7fr 5fr; }
.desk-copy h2, .dev-grid h2 { margin-top: 28px; font-weight: 500; letter-spacing: -.035em; line-height: 1.02; font-size: clamp(2.2rem, 4.4vw, 3.8rem); text-wrap: balance; }
.desk-p { margin-top: 22px; max-width: 560px; color: var(--fg-2); font-size: 1.075rem; line-height: 1.65; }
.desk-p b { color: var(--fg); }
.desk-list { display: grid; gap: 8px; margin-top: 22px; font-size: 12.5px; color: var(--fg-2); }
.desk-list li { display: flex; gap: 10px; }
.desk-list li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 6px; background: var(--fg); }
.keys { margin-top: 28px; }
.key-stop { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px; border: 1px dashed var(--line-2); background: none; color: var(--muted); cursor: pointer; }
kbd {
  display: inline-grid; place-items: center; min-width: 54px; height: 42px; padding: 0 12px;
  font: 600 13px/1 var(--mono); color: var(--fg); background: #16181b;
  border: 1px solid var(--line-2); border-bottom-width: 4px; border-radius: 7px;
  transition: transform .12s, border-bottom-width .12s, border-color .3s;
}
.key-stop:hover kbd { border-color: var(--fg-2); }
.key-stop.is-down kbd { transform: translateY(3px); border-bottom-width: 1px; }
.key-hint { min-height: 1.5em; margin-top: 10px; font-size: 12px; color: var(--muted); }
.screen { position: relative; overflow: hidden; border: 1px solid var(--line-2); border-radius: 12px; background: #0e0f11; box-shadow: 0 50px 140px -50px rgba(0, 0, 0, .9); }
.screen::before { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; border: 2px solid var(--fg); border-radius: 12px; animation: ring 2s var(--ease) infinite; }
@keyframes ring { 0%, 100% { opacity: .7; } 50% { opacity: .2; } }
.screen-bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.screen-body { position: relative; display: grid; gap: 14px; padding: 70px 26px 30px; }
.form-row { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 14px; font-size: 12px; color: var(--muted); }
.field { display: flex; align-items: center; height: 38px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 6px; background: #121417; font: 13px var(--mono); color: var(--fg); transition: border-color .3s, box-shadow .3s; }
.field.is-focus { border-color: var(--fg); box-shadow: 0 0 0 3px rgba(228, 228, 225, .08); }
.typed::after { content: ""; display: inline-block; width: 1px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--fg); opacity: 0; }
.field.is-focus .typed::after { opacity: 1; animation: blink 1s steps(1) infinite; }
.field-sel { color: var(--ok); }
.screen-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.sbtn { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 6px; background: #121417; font: 12px var(--mono); color: var(--fg-2); }
.sbtn-ask { background: var(--fg); border-color: var(--fg); color: var(--ink); font-weight: 700; }
.desk-cursor { position: absolute; left: 0; top: 0; z-index: 3; width: 20px; height: 24px; pointer-events: none; }
.overlay {
  position: absolute; left: 50%; top: 54px; z-index: 4; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; white-space: nowrap;
  background: var(--fg); color: var(--ink); font-size: 11.5px; font-weight: 700; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .8);
  transition: opacity .4s;
}
.ov-dot { width: 8px; height: 8px; border-radius: 50%; background: #c0392b; animation: pulse 1.2s var(--ease) infinite; }
.stopped {
  position: absolute; inset: 0; z-index: 5; display: grid; place-content: center; justify-items: center; gap: 14px;
  background: rgba(11, 12, 13, .84); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  font-size: 15px; color: var(--fg); visibility: hidden; opacity: 0; transition: opacity .4s, visibility 0s .4s;
}
.ov-again { cursor: pointer; }
.screen.is-stopped::before { animation: none; opacity: 0; }
.screen.is-stopped .overlay { opacity: 0; }
.screen.is-stopped .stopped { visibility: visible; opacity: 1; transition: opacity .4s; }

/* ---------- Skills ---------- */
.skill-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.skill { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 300px; padding: clamp(22px, 2.6vw, 30px); border-right: 1px solid var(--line); }
.skill-k { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.skill-v { display: inline-flex; overflow: hidden; color: var(--fg); }
.skill-v b { display: inline-block; font-weight: 600; }
.skill h3 { margin-top: 12px; font: 600 15px var(--mono); }
.skill-d { color: var(--fg-2); font-size: 14.5px; }
.skill-dots { display: flex; gap: 6px; margin-top: auto; }
.skill-dots i { width: 22px; height: 4px; border-radius: 2px; background: var(--fg); transition: opacity .4s, background-color .4s; }
.skill-dots i.off { opacity: .15; }
.skill-flag .skill-dots i:last-child:not(.off) { background: var(--bad); }
.skill-btn { align-self: flex-start; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-2); background: none; color: var(--fg); font-size: 12px; cursor: pointer; transition: border-color .3s, background-color .3s; }
.skill-btn:hover { border-color: var(--fg); background: #15171a; }
.skill-btn[disabled] { opacity: .4; cursor: default; }
.skill-tag { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 12px; color: var(--fg-2); }
.skill-tag svg { width: 12px; height: 12px; }
.skill-chart { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: clamp(22px, 2.6vw, 30px); }
.spark { width: 100%; height: auto; overflow: visible; color: var(--fg); }
.spark-grid { color: var(--line); }
.spark-dot { fill: var(--ok); }
.skills-note { min-height: 3.4em; padding: 18px; border-top: 1px solid var(--line); text-align: center; font-size: 12.5px; color: var(--fg-2); }

/* ---------- Routines + groups ---------- */
.duo-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.duo-panel { position: relative; padding: clamp(24px, 3vw, 40px); }
.duo-panel:first-child { border-right: 1px solid var(--line); }
.clock { width: 140px; margin: 8px auto 20px; color: var(--fg); }
.clock svg { width: 100%; height: auto; }
.clock-ring { color: var(--line-2); }
.ticks line { stroke: var(--muted); }
.routines { display: grid; gap: 8px; font-size: 12.5px; }
.routines li { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #111316; color: var(--muted); transition: border-color .3s; }
.routines b { color: var(--fg); font-weight: 600; }
.r-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); transition: background-color .3s, box-shadow .3s; }
.routines li.is-run { border-color: var(--line-2); }
.routines li.is-run .r-dot { background: var(--ok); box-shadow: 0 0 0 4px rgba(143, 214, 160, .15); }
.duo-p { margin-top: 20px; color: var(--fg-2); font-size: 15px; }
.team { width: 100%; height: auto; margin: 8px 0 4px; overflow: visible; color: var(--line-2); }
.tnode circle { fill: #16181b; stroke: var(--fg-2); }
.tnode text { font: 700 12px var(--mono); fill: var(--fg); }
.tyou rect { fill: var(--fg); }
.tyou text { font-size: 10px; fill: var(--ink); }
.tbadge { opacity: 0; }
.tbadge rect { fill: #0b0c0d; stroke: var(--ok); }
.tbadge text { font: 600 9.5px var(--mono); fill: var(--ok); }
.tmsg { fill: var(--fg); opacity: 0; }

/* ---------- Trust: try-it approval card ---------- */
.trust-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 40px; }
.try { width: min(420px, 100%); padding: 18px; border: 1px solid var(--line-2); border-radius: 12px; background: #121417; }
.try-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tbtn { min-height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 6px; background: none; color: var(--fg); font: 600 12.5px var(--mono); cursor: pointer; transition: background-color .25s, border-color .25s; }
.tbtn:hover { border-color: var(--fg); }
.tbtn-main { background: var(--fg); border-color: var(--fg); color: var(--ink); }
.tbtn[aria-pressed="true"] { outline: 2px solid var(--ok); outline-offset: 2px; }
.try-out { min-height: 3em; margin-top: 12px; font-size: 12px; color: var(--fg-2); }
.try-out.is-ok { color: var(--ok); }
.try-out.is-deny { color: var(--bad); }

/* ---------- Developer pack ---------- */
.devpack .proof { justify-self: end; width: 100%; max-width: 440px; }
.stack-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .problem-grid, .cmp, .how-grid { grid-template-columns: 1fr; }
  .funnel { border-right: 0; border-bottom: 1px solid var(--line); }
  .cmp-slow { border-right: 0; border-bottom: 1px solid var(--line); }
  .how-steps { border-right: 0; border-bottom: 1px solid var(--line); }
  .app { grid-template-columns: 1fr; height: auto; }
  .side { display: none; }
  .chat-body { height: 480px; flex: none; }
  .desk-grid, .dev-grid, .duo-grid { grid-template-columns: 1fr; }
  .duo-panel:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .devpack .proof { justify-self: start; }
  .skill-grid { grid-template-columns: 1fr 1fr; }
  .skill:nth-child(2n) { border-right: 0; }
  .skill:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .step-copy { grid-template-columns: 1fr; gap: 6px; }
  .trust-track { flex-direction: column; width: auto; padding-inline: var(--pad); }
  .tp { flex: auto; min-height: 0; }
  .tp h3 { margin-top: 24px; }
  .agents-grid { grid-template-columns: 1fr 1fr; }
  .agent:nth-child(3n) { border-right: 1px solid var(--line); }
  .agent:nth-child(2n) { border-right: 0; }
  .agent:nth-last-child(3) { border-bottom: 1px solid var(--line); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .stack-grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .frame { border-inline: 0; }
  .cards { grid-template-columns: 1fr; }
  .agents-grid { grid-template-columns: 1fr; }
  .agent, .agent:nth-child(3n) { border-right: 0; }
  .agent:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .card:nth-child(odd) { border-right: 0; }
  .card:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .signup-row { flex-direction: column; }
  .signup .btn { width: 100%; }
  .nav .btn { padding: 0 16px; font-size: 13px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .msg { max-width: 92%; }
  .skill-grid { grid-template-columns: 1fr; }
  .skill { border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; }
  .stack-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 80px 1fr; }
  .overlay { font-size: 10.5px; }
  .qa-a p { padding-left: 4px; padding-right: 4px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain { animation: none; }
}

/* ---------- Demo: clickable chats ---------- */
.side-list li { list-style: none; }
.row { width: 100%; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.row:hover { background: #141619; }
.row:focus-visible { outline: 2px solid var(--fg); outline-offset: -2px; }
.ask-btn { border: 0; font-family: inherit; cursor: default; }
.ask-btn:not([disabled]) { cursor: pointer; }
.ask.is-waiting .ask-btn { animation: askPulse 1.4s var(--ease) infinite; }
@keyframes askPulse { 0% { box-shadow: 0 0 0 0 rgba(228, 228, 225, .55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(228, 228, 225, 0); } }
.ask.is-waiting .ask-alt::before { content: "your turn · "; color: var(--fg); }
.ci-text { min-width: 0; height: 30px; padding: 0 4px; border: 0; background: none; color: var(--fg); font: 13px var(--sans); }
.ci-text::placeholder { color: var(--muted); }
.ci-text:focus { outline: none; }
.chat-input:focus-within { border-color: var(--fg-2); }
.ci-send { border: 0; cursor: pointer; }
.ci-send:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.msg.added { animation: msgIn .45s var(--ease) both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(12px) scale(.97); } }

@media (max-width: 900px) {
  .side { display: block; border-right: 0; border-bottom: 1px solid var(--line); }
  .side-top, .side-search, .side-me { display: none; }
  .side-list { display: flex; gap: 6px; padding: 10px; overflow-x: auto; }
  .side-list li { flex: none; }
  .row { grid-template-columns: 30px auto; width: auto; padding: 8px 12px 8px 8px; }
  .row .av { width: 28px; height: 28px; font-size: 11px; }
  .row-sum, .row-t, .unread { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ask.is-waiting .ask-btn { animation: none; box-shadow: 0 0 0 3px rgba(228, 228, 225, .35); }
}
.steps { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) {
  .win-tag { display: none; }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .step { font-size: 11.5px; }
  .step > .mono { display: none; }
}
.ok-ico {
  flex: none; width: 10px; height: 6px; margin: -3px 1px 0;
  border-left: 1.7px solid var(--ok); border-bottom: 1.7px solid var(--ok); transform: rotate(-45deg);
}

/* ---------- Extra motion: drawn dividers and slow ambient light ---------- */
.section + .section::before, .cta::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; z-index: 1; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(228, 228, 225, .7) 50%, transparent);
  transform: scaleX(var(--ln, 0));
}
.demo, .desk, .duo, .skills { isolation: isolate; }
.demo::after, .desk::after, .duo::after, .skills::after {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 45%; width: min(70vw, 900px); aspect-ratio: 1; pointer-events: none;
  background: radial-gradient(circle, rgba(228, 228, 225, .065) 0, transparent 62%);
  transform: translate(-50%, -50%); animation: drift 16s ease-in-out infinite alternate;
}
.desk::after { left: 72%; animation-duration: 19s; }
.duo::after { left: 28%; animation-duration: 22s; }
.skills::after { top: 60%; animation-duration: 25s; animation-direction: alternate-reverse; }
@keyframes drift {
  0% { transform: translate(-58%, -54%) scale(1); }
  50% { transform: translate(-44%, -46%) scale(1.12); }
  100% { transform: translate(-52%, -40%) scale(.94); }
}
.hero-title .char { will-change: transform; }
@media (prefers-reduced-motion: reduce) {
  .section + .section::before, .cta::before { transform: none; opacity: .4; }
  .demo::after, .desk::after, .duo::after, .skills::after { animation: none; }
}

/* ---------- Performance ---------- */
.grain { will-change: transform; contain: strict; }
.hero { transition: border-radius .6s var(--ease); will-change: transform; }
.hero.is-card { border-radius: 28px; }
.ticker-track, .msgs, .trust-track { backface-visibility: hidden; }

/* download */
.btn-win { width: 16px; height: 16px; flex: none; }
.hero-dl { margin-top: 36px; }
.cta-dl { margin-top: 36px; display: flex; justify-content: center; }
.download .dl-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); max-width: 1040px; margin: 0 auto; padding: clamp(28px, 4vw, 56px); border: 1px solid var(--line); background: var(--panel); }
.dl-main { display: grid; align-content: start; justify-items: start; gap: 18px; }
.dl-meta { margin: 0; color: var(--muted); font-size: 0.8125rem; line-height: 1.6; }
.dl-notes h3 { margin: 0 0 6px; font-size: 1rem; font-weight: 600; }
.dl-notes h3:not(:first-child) { margin-top: 22px; }
.dl-notes p { margin: 0; color: var(--fg-2); line-height: 1.65; }
@media (max-width: 800px) { .download .dl-card { grid-template-columns: 1fr; } }
