@font-face { font-family: "Geist Pixel"; src: url(../fonts/GeistPixel.woff2) format("woff2"); font-display: swap; }
/* Modern DOS 8x16 by Jayvee Enaguas (HarvettFox96), CC0 1.0 — same font as the app. */
@font-face { font-family: "Modern DOS"; src: url(../fonts/ModernDOS8x16.ttf) format("truetype"); font-display: swap; }

:root {
  --bg: #000;
  --bg-2: #050a06;
  --panel: #070f09;
  --fg: #e8ffe9;
  --text: #a9c2ad;
  --dim: #6f8f74;
  --line: #16301b;
  --line-2: #1f4527;
  --green: #5cff7a;
  --green-2: #2bd94f;
  --green-deep: #0b2a12;
  --pale: #c8ffd4;
  --pixel: "Geist Pixel", "Modern DOS", monospace;
  --dos: "Modern DOS", "JetBrains Mono", monospace;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --sans: "Geist", system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { background: var(--bg); color: var(--fg); font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
code { font-family: var(--mono); color: var(--green); font-size: .92em; }
::selection { background: var(--green); color: #000; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--green); color: #000; padding: 8px 12px; }
.skip:focus { left: 8px; }

/* ---------- CRT overlays ----------
   Three fixed layers over everything:
   body::before  moving static grain; .crt-vignette darkens the edges
   body::after   fine horizontal scanlines (lit row / gap row) with a slow drift and flicker
   .crt-sweep    the beam: irregular, flickering, with a phosphor afterglow trail */
body::before {
  content: ""; position: fixed; inset: -50%; z-index: 89; pointer-events: none;
  background:
    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='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .36 0 0 0 0 1 0 0 0 0 .48 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .05;
  animation: grain .9s steps(1) infinite;
}
.crt-vignette { position: fixed; inset: 0; z-index: 89; pointer-events: none; background: radial-gradient(ellipse 75% 70% at 50% 50%, transparent 60%, rgba(0,0,0,.5) 100%); }
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); }
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background: repeating-linear-gradient(to bottom,
    rgba(92,255,122,.028) 0 1px,
    rgba(0,0,0,0) 1px 2px,
    rgba(0,0,0,.32) 2px 3px);
  animation: scanDrift 12s linear infinite, crtFlicker 5.3s steps(1) infinite;
}
@keyframes scanDrift { to { background-position: 0 3px; } }
@keyframes crtFlicker {
  0%, 100% { opacity: 1; } 7% { opacity: .86; } 7.6% { opacity: 1; } 31% { opacity: .93; } 31.4% { opacity: 1; }
  58% { opacity: .9; } 58.3% { opacity: .98; } 58.7% { opacity: 1; } 83% { opacity: .95; } 83.2% { opacity: 1; }
}

/* The beam, shared by the page sweep and the device screens. The element is a
   tall band: a faint afterglow trail on top, a hot uneven core at the bottom edge. */
.crt-sweep, .device .screen::after {
  pointer-events: none;
  background: linear-gradient(to bottom,
    transparent 0%, rgba(92,255,122,.025) 35%, rgba(92,255,122,.07) 70%,
    rgba(92,255,122,.16) 86%, rgba(200,255,210,.75) 93%, rgba(92,255,122,.28) 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.35), #000 9%, rgba(0,0,0,.72) 23%, #000 41%, rgba(0,0,0,.82) 58%, #000 74%, rgba(0,0,0,.6) 90%, rgba(0,0,0,.25));
          mask-image: linear-gradient(90deg, rgba(0,0,0,.35), #000 9%, rgba(0,0,0,.72) 23%, #000 41%, rgba(0,0,0,.82) 58%, #000 74%, rgba(0,0,0,.6) 90%, rgba(0,0,0,.25));
}
.crt-sweep {
  position: fixed; left: 0; right: 0; top: 0; height: 90px; z-index: 91; opacity: .7;
  animation: pageBeam 11.3s cubic-bezier(.42, 0, .58, 1) infinite, beamFlicker 1.9s steps(1) infinite;
}
@keyframes pageBeam { 0% { transform: translateY(-100px); } 68%, 100% { transform: translateY(100vh); } }
@keyframes beamFlicker {
  0%, 100% { opacity: .7; } 13% { opacity: .45; translate: 1px 0; } 14% { opacity: .75; translate: 0 0; }
  41% { opacity: .55; } 42% { opacity: .8; translate: -1px 0; } 43% { translate: 0 0; } 77% { opacity: .5; } 78% { opacity: .7; }
}

/* ---------- Cursor blink (phosphor decay) ---------- */
@keyframes blink { 0%, 55% { opacity: 1; } 70% { opacity: .12; } 85% { opacity: 0; } 100% { opacity: 1; } }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 28px; padding: 14px var(--gutter); border-bottom: 1px solid var(--line); background: rgba(0,0,0,.65); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.logo { display: inline-flex; align-items: center; gap: 4px; font: 32px/1 var(--dos); letter-spacing: .02em; color: var(--pale);
  text-shadow: 0 0 8px rgba(92,255,122,.35); -webkit-font-smoothing: none; text-decoration: none; white-space: nowrap; }
.logo i { align-self: flex-end; width: .5em; height: 4px; margin: 0 0 6px 4px; background: var(--green); box-shadow: 0 0 6px rgba(92,255,122,.6); animation: blink 1.2s infinite; }
.logo .by { align-self: flex-end; margin: 0 0 3px 10px; font: 16px/1 var(--dos); letter-spacing: .04em; color: var(--dim); text-shadow: none; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font: 13px var(--mono); }
.nav-links a { color: var(--dim); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--green); }
.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font: 500 15px var(--sans); padding: 14px 20px; text-decoration: none; border: 0; cursor: pointer; transition: box-shadow .25s var(--ease), background .2s; }
.btn-light { background: var(--fg); color: #000; }
.btn-green { background: var(--green); color: #001a06; }
.btn:hover { box-shadow: 0 0 0 1px var(--green), 0 0 24px rgba(92,255,122,.45); }
.btn-small { padding: 9px 14px; font-size: 13px; background: transparent; color: var(--green); box-shadow: inset 0 0 0 1px var(--line-2); }

/* bracket corners, like the app's ADD HOST button */
.bracket, .bracket-btn { position: relative; }
.bracket::before, .bracket-btn::before {
  content: ""; position: absolute; inset: -1px; pointer-events: none;
  --c: var(--green-2); --s: 14px; --t: 2px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--s) var(--t),
    linear-gradient(var(--c), var(--c)) top left / var(--t) var(--s),
    linear-gradient(var(--c), var(--c)) top right / var(--s) var(--t),
    linear-gradient(var(--c), var(--c)) top right / var(--t) var(--s),
    linear-gradient(var(--c), var(--c)) bottom left / var(--s) var(--t),
    linear-gradient(var(--c), var(--c)) bottom left / var(--t) var(--s),
    linear-gradient(var(--c), var(--c)) bottom right / var(--s) var(--t),
    linear-gradient(var(--c), var(--c)) bottom right / var(--t) var(--s);
  background-repeat: no-repeat;
  transition: inset .35s var(--ease);
}
.bracket:hover::before { inset: -6px; }
.bracket-btn { padding: 18px 34px; font: 22px var(--pixel); letter-spacing: .04em; background: transparent; color: var(--green); box-shadow: inset 0 0 0 1px var(--line-2); }
.bracket-btn::before { inset: 6px; }
.bracket-btn:hover::before { inset: 0; }

/* ---------- Type ---------- */
h1, h2 { font-family: var(--pixel); font-weight: 400; letter-spacing: -.01em; color: var(--fg); }
[data-scramble] { white-space: pre-line; }
.ch { position: relative; }
.ch.wait { color: transparent; }
.ch.scr { color: transparent; }
.ch.scr::after { content: attr(data-g); position: absolute; left: 0; right: 0; text-align: center; color: var(--green); opacity: .75; text-shadow: 0 0 .25em rgba(92,255,122,.5); }
.ch.cur::before { content: ""; position: absolute; left: .04em; width: .52em; bottom: .02em; height: .09em; background: var(--green); box-shadow: 0 0 .12em rgba(92,255,122,.55); }
.inverted .ch.cur::before { background: #000; box-shadow: none; }
.ch.hit { animation: chCool .6s var(--ease) both; }
@keyframes chCool { from { color: var(--green); text-shadow: 0 0 .3em rgba(92,255,122,.7); } to { color: inherit; text-shadow: none; } }
.inverted .ch.scr::after { color: #000; opacity: .45; text-shadow: none; }
@keyframes chCoolInv { from { color: #0a5a1c; } to { color: inherit; } }
.inverted .ch.hit { animation-name: chCoolInv; }
h2 { font-size: clamp(34px, 5vw, 64px); line-height: 1.05; margin: 10px 0 20px; }
/* two-column sections: the column is half width, so size headings to keep their lines whole */
.split > div { container-type: inline-size; }
.split h2 { font-size: clamp(28px, 8.6cqi, 48px); }
h3 { font: 400 24px/1.15 var(--pixel); color: var(--fg); margin-bottom: 10px; }
.kicker { font: 13px var(--mono); color: var(--green); letter-spacing: .06em; text-transform: uppercase; }
.eyebrow { font: 13px var(--mono); color: var(--green); letter-spacing: .08em; }
.intro { max-width: 60ch; color: var(--text); font-size: clamp(16px, 1.4vw, 19px); line-height: 1.5; }
.fineprint { font: 12px var(--mono); color: var(--dim); }

/* reveal */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; border-bottom: 1px solid var(--green-2); }
.hero-src { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.hero-stage { position: absolute; inset: 0; }
.dither-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-stage.no-webgl { background: url(../media/hero-poster.webp) 70% center / cover no-repeat; }
.hero-copy { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 64px var(--gutter) 0; max-width: 1040px; pointer-events: none; }
.hero-copy > * { pointer-events: auto; }
.hero h1 { line-height: 1.04; }
.hero h1 .h1-kicker { display: block; margin-bottom: 22px; font-family: var(--mono); line-height: 1.4; }
.cursor { display: inline-block; width: .52em; height: .09em; margin-left: .08em; background: var(--green); box-shadow: 0 0 .12em rgba(92,255,122,.55); vertical-align: baseline; animation: blink 1.2s infinite; }
.lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.4; color: var(--text); max-width: 42ch; }
.ctas { display: flex; flex-wrap: wrap; }

/* ---------- Ticker ---------- */
.ticker { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.ticker-track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker span { font: 16px var(--dos); color: var(--dim); padding: 12px 28px; white-space: nowrap; border-right: 1px solid var(--line); }
.ticker span:nth-child(3n+2) { color: var(--green); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections / grid lines ---------- */
.section { position: relative; padding: clamp(80px, 11vw, 150px) 0; border-bottom: 1px solid var(--line); }
.wrap { position: relative; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 900px; }
.section > .wrap::before, .section > .wrap::after { content: ""; position: absolute; top: calc(-1 * clamp(80px, 11vw, 150px)); bottom: calc(-1 * clamp(80px, 11vw, 150px)); width: 1px; background: var(--line); }
.section > .wrap::before { left: 0; }
.section > .wrap::after { right: 0; }
.section::before { content: ""; position: absolute; top: -5px; left: calc(50% - min(50vw, var(--max) / 2) - 5px); width: 10px; height: 10px; background: var(--green-2); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }

.define { padding: 44px 0; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.define p { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.55; color: var(--text); }
.define b { color: var(--fg); font-weight: 500; }

/* ---------- Story (terminal readout) ---------- */
.story { background: radial-gradient(ellipse at 50% 30%, #04140a, #000 70%); }
.term { max-width: 760px; margin: 0 auto; border: 1px solid var(--line-2); border-radius: 14px; background: linear-gradient(180deg, #06130a, #020703); box-shadow: 0 0 0 1px #000, 0 0 60px rgba(43,217,79,.08), inset 0 0 80px rgba(0,0,0,.6); overflow: hidden; }
.term-bar { display: flex; justify-content: space-between; padding: 10px 18px; font: 16px var(--dos); color: var(--dim); border-bottom: 1px solid var(--line); background: #030904; }
.term-body { padding: clamp(22px, 4vw, 44px); font: 24px/1.5 var(--dos); color: #b9d9bd; text-shadow: 0 0 6px rgba(92,255,122,.25); }
.term-title { font: 48px/1 var(--dos); color: var(--green); margin-bottom: 18px; letter-spacing: .02em; }
.term-body p + p { margin-top: 1em; }
.term-body .punch { color: var(--fg); }
.type-cursor { display: inline-block; width: .55em; height: .12em; margin-left: .1em; background: var(--green); vertical-align: baseline; animation: blink 1.2s infinite; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.stat { padding: 40px clamp(18px, 3vw, 36px); border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat::before { inset: 14px; }
.stat b { display: block; font: 400 clamp(36px, 4vw, 56px)/1 var(--pixel); color: var(--fg); margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.stat span { font: 13px var(--mono); color: var(--dim); }

/* ---------- Ticks ---------- */
.ticks { list-style: none; display: grid; gap: 12px; margin-top: 28px; }
.ticks li { position: relative; padding-left: 22px; color: var(--text); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; background: var(--green); }
.ticks.cols { grid-template-columns: 1fr; }

/* ---------- Agents ---------- */
.agents { display: grid; grid-template-columns: minmax(240px, 1fr) 1.4fr; margin-top: 48px; border: 1px solid var(--line); }
.agents-tabs { display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.agents-tabs button { flex: 1; position: relative; text-align: left; font: 24px var(--dos); letter-spacing: .06em; color: var(--dim); background: none; border: 0; border-bottom: 1px solid var(--line); padding: 26px 24px; cursor: pointer; transition: color .2s, background .3s; }
.agents-tabs button i { font-style: normal; margin-right: 10px; }
.agents-tabs button:hover { color: var(--fg); }
.agents-tabs button[aria-selected="true"] { color: var(--green); background: linear-gradient(90deg, rgba(43,217,79,.12), transparent); }
.agents-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: calc(var(--tab-progress, 1) * 100%); background: var(--green); }
.agents-panel { padding: clamp(20px, 3vw, 36px); background: var(--panel); }
.agents-desc { font: 24px/1.4 var(--dos); color: var(--pale); margin: 22px 0 0; min-height: 2.6em; }
.mock { border: 1px solid var(--line-2); border-radius: 12px; padding: 16px; background: #020603; font-family: var(--dos); }
.mock-head, .mock-foot { display: flex; justify-content: space-between; font-size: 16px; color: var(--dim); letter-spacing: .06em; }
.mock-head { padding-bottom: 10px; border-bottom: 1px solid var(--line-2); color: var(--fg); }
.mock-foot { padding-top: 10px; margin-top: 4px; }
.mock-sessions { list-style: none; display: grid; gap: 8px; padding: 12px 0; }
.mock-sessions li { display: grid; grid-template-columns: 14px 1fr auto auto; gap: 12px; align-items: center; font-size: 24px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); animation: rowIn .45s var(--ease) both; }
.mock-sessions li:nth-child(2) { animation-delay: .06s; } .mock-sessions li:nth-child(3) { animation-delay: .12s; }
@keyframes rowIn { from { opacity: 0; transform: translateX(-10px); } }
.mock-sessions b { font-weight: 400; color: var(--fg); }
.mock-sessions .agent { color: var(--dim); }
.mock-sessions .state { font-size: 16px; padding: 2px 8px; border: 1px solid var(--line-2); color: var(--dim); }
.mock-sessions .dot { width: 10px; height: 10px; background: var(--dim); }
.st-working .dot { background: var(--green); animation: pulse 1s ease-in-out infinite; }
.st-working .state { color: var(--green); border-color: var(--green-2); }
.st-needs-you { border-color: var(--green) !important; background: rgba(92,255,122,.07); }
.st-needs-you .dot { background: var(--pale); animation: blink .7s infinite; }
.st-needs-you .state { background: var(--green); color: #000 !important; border-color: var(--green) !important; }
.st-done .dot { background: var(--pale); }
.st-done .state { color: var(--pale); }
@keyframes pulse { 50% { opacity: .25; transform: scale(.7); } }

/* ---------- Flow diagram ---------- */
.flow { margin: 56px 0; border: 1px solid var(--line); background: var(--bg-2); padding: clamp(12px, 3vw, 32px); }
.flow svg { width: 100%; height: auto; display: block; }
.flow .flow-v { display: none; max-width: 420px; margin: 0 auto; }
.menu-cta { display: none; }
.flow-lines use { fill: none; stroke: var(--green-2); stroke-width: 1.5; stroke-dasharray: 3 5; animation: dash 1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -8; } }
.packets rect { fill: var(--pale); filter: drop-shadow(0 0 4px var(--green)); }
.node rect { fill: #030904; stroke: var(--line-2); }
.node.hot rect { stroke: var(--green); }
.node text, .label { font: 16px var(--dos); fill: var(--fg); text-anchor: middle; }
.node .sub { fill: var(--dim); font-size: 16px; }
.label { fill: var(--green); font-size: 16px; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cell { padding: 32px 28px 36px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); transition: background .35s; }
.cell::before { --c: transparent; }
.cell:hover { background: var(--panel); }
.cell:hover::before { --c: var(--green-2); }
.cell p { color: var(--text); font-size: 15px; }

/* ---------- Keyboard (same layout and look as the app's keyboard) ---------- */
.kb { border: 1px solid var(--line-2); border-radius: 18px; background: #020603; padding: 14px; font-family: var(--dos); box-shadow: 0 0 50px rgba(43,217,79,.06); }
.kb-screen { height: 190px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; font-size: 24px; line-height: 1.25; color: var(--pale); padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 12px; background: #010401; text-shadow: 0 0 6px rgba(92,255,122,.3); }
.kb-screen .prompt { color: var(--green); }
.kb-screen .reply { color: var(--dim); }
.kb-row { display: flex; gap: 6px; margin-top: 7px; }
.kb-row.inset { padding: 0 5%; }
.kb-acc { margin-top: 0; padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.key { flex: 1; min-width: 0; height: 46px; display: grid; place-items: center; font: 24px var(--dos); color: var(--green); border: 1.5px solid #2a7a3d; border-radius: 8px; background: #051509; transition: background .08s, color .08s, box-shadow .15s; }
.kb-acc .key { height: 36px; font-size: 16px; }
.key.wide { flex: 1.45; font-size: 16px; }
.key.space { flex: 4.6; font-size: 16px; letter-spacing: .06em; }
.key.down { background: var(--green); color: #000; border-color: var(--green); box-shadow: 0 0 16px rgba(92,255,122,.6); }

/* ---------- Devices ---------- */
.device-row { display: grid; grid-template-columns: 1fr 1fr 1.9fr; gap: clamp(16px, 3vw, 40px); align-items: end; margin-top: 56px; }
.devices .ticks.cols { grid-template-columns: 1fr 1fr; column-gap: 40px; margin-top: 40px; }
.device { position: relative; border: 1px solid var(--line-2); background: #000; overflow: hidden; --reveal-bg: #000; }
.device.phone { border-radius: 28px; padding: 10px; }
.device.tablet { border-radius: 22px; padding: 12px; }
.device .screen { position: relative; border-radius: 18px; overflow: hidden; }
.device img { opacity: 0; transition: opacity .2s; }
/* The app's scan line, sweeping down each device screen (see the shared beam style above). */
.device .screen::after {
  content: ""; position: absolute; left: 0; right: 0; top: -60px; height: 60px;
  animation: deviceBeam var(--scan-dur, 7.3s) cubic-bezier(.45, .05, .55, .95) infinite var(--scan-delay, 0s),
             beamFlicker 1.6s steps(1) infinite var(--scan-delay, 0s);
}
@keyframes deviceBeam { 0% { top: -60px; } 74%, 100% { top: 100%; } }
.pixel-reveal:not(.revealed) .screen::after { opacity: 0; }
.pixel-reveal.revealed img { opacity: 1; }
.pixel-reveal-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---------- Look ---------- */
.crt-art { position: relative; margin: 0; --reveal-bg: #000; }
.crt-art img { width: 100%; opacity: 0; transition: opacity .2s; }
.crt-art::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 2px, rgba(0,0,0,.38) 2px 3px); }
.crt-art.revealed { animation: artFlicker 6.7s steps(1) infinite; }
@keyframes artFlicker { 0%, 100% { filter: brightness(1); } 11% { filter: brightness(.82); } 11.6% { filter: brightness(1.05); } 12.2% { filter: brightness(1); } 57% { filter: brightness(.9); } 57.5% { filter: brightness(1); } }
/* live code on the PC's screen glass */
.pc-screen { position: absolute; left: 35.7%; top: 21.1%; width: 32.1%; height: 28.4%; border-radius: 9% / 11%; overflow: hidden; container-type: inline-size;
  background: radial-gradient(ellipse at 50% 45%, #05200c, #010502 78%); box-shadow: inset 0 0 18px rgba(0,0,0,.95); transition: opacity .3s .9s; }
.crt-art:not(.revealed) .pc-screen { opacity: 0; }
.pc-code { position: absolute; inset: 7% 8%; display: flex; flex-direction: column; justify-content: flex-end; font: 7.2cqi/1.25 var(--dos); color: #8dffa3; text-shadow: 0 0 .4em rgba(92,255,122,.75); white-space: pre; }
.pc-code .type-cursor { height: .14em; }

/* ---------- Inverted (security) ---------- */
.inverted { background: var(--green); color: #001a06; border-bottom-color: #000; }
.inverted .section, .inverted > .wrap::before, .inverted > .wrap::after { background: rgba(0,0,0,.15); }
.inverted h2 { color: #000; }
.inverted .kicker { color: #0a3a14; }
.inverted .intro, .inverted .ticks li { color: #0b2a12; }
.inverted .ticks li::before { background: #000; }
.inverted::before { background: #000; }
.screen-box { background: #000; border-radius: 22px; padding: 18px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); }
.px-edge { position: absolute; z-index: 1; --s: clamp(22px, 2.8vw, 40px); width: calc(var(--s) * 7); height: calc(var(--s) * 4); pointer-events: none; }
.px-edge.tl { left: 0; top: 0; }
.px-edge.br { right: 0; bottom: 0; transform: rotate(180deg); }
.px-edge i { position: absolute; left: calc(var(--c) * var(--s)); top: calc(var(--r) * var(--s)); width: var(--s); height: var(--s); background: #000; opacity: 0; transition: opacity .14s steps(2), background .2s; }
.px-edge i.on { opacity: 1; }
.px-edge i.hot { opacity: 1; background: var(--fg); }

/* ---------- Rules ---------- */
.rules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 40px; border-top: 1px solid var(--line); }
.rule { padding: 28px 24px 28px 0; border-right: 1px solid var(--line); }
.rule + .rule { padding-left: 24px; }
.rule:last-child { border-right: 0; }
.rule b { font: 40px var(--pixel); color: var(--green); display: block; margin-bottom: 12px; font-weight: 400; }
.rule p { color: var(--text); font-size: 15px; }

/* ---------- Roadmap ---------- */
.roadmap { list-style: none; margin: 40px 0 24px; border-top: 1px solid var(--line); }
.roadmap li { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: 17px; }
.tag { font: 16px var(--dos); letter-spacing: .08em; color: var(--green); border: 1px solid var(--line-2); padding: 1px 8px; justify-self: start; }
.tag.prog { background: var(--green); color: #000; border-color: var(--green); }
.tag.dim { color: var(--dim); }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); margin-top: 36px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font: clamp(19px, 2vw, 24px)/1.2 var(--pixel); color: var(--fg); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--dos); font-size: 32px; color: var(--green); line-height: .8; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--green); }
.faq details p { padding: 0 0 24px; color: var(--text); max-width: 65ch; }

/* ---------- Final CTA ---------- */
.final { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 80vh; border-bottom: 1px solid var(--green-2); overflow: hidden; }
.final-art { position: relative; height: 100%; min-height: 420px; }
.final-src { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.final-art.no-webgl { background: url(../media/hero-poster.webp) 80% center / cover no-repeat; transform: scaleX(-1); }
.final-copy { position: relative; z-index: 2; padding: 60px var(--gutter); display: grid; gap: 20px; justify-items: start; }
.final-art { z-index: 0; }
.smoke-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.final h2 { font-size: clamp(34px, 4.6vw, 72px); margin: 0; white-space: nowrap; }

/* ---------- Footer ---------- */
.footer { padding: 56px var(--gutter); background: repeating-linear-gradient(90deg, transparent 0 63px, var(--line) 63px 64px); }
.footer-panel { max-width: var(--max); margin: 0 auto; display: grid; gap: 28px; padding: clamp(28px, 4vw, 44px); background: #000; border: 1px solid var(--line-2); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: baseline; }
.footer-top p { font: 24px var(--dos); color: var(--dim); }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; font: 13px var(--mono); }
.footer-links a { color: var(--dim); text-decoration: none; }
.footer-links a:hover { color: var(--green); }
.copyright { font: 12px var(--mono); color: #3d5a42; }

/* ---------- Subpages ---------- */
.sub-hero { height: 82svh; min-height: 560px; }
/* Subpage headline: sized to its column so each half stays on one line (longest half ≈ 13.7em wide). */
/* Hero copy never runs over the face: its column ends where the dither engine says the face begins. */
.hero-copy { container-type: inline-size; width: min(1040px, calc(var(--face-left, 100% + 24px) - 24px)); max-width: none; box-sizing: border-box; }
.hero h1 { font-size: clamp(34px, calc(100cqi / 10.6), 88px); }
.sub-hero h1 { font-size: clamp(22px, calc(100cqi / 14.2), 60px); }
.h1-line { display: block; text-wrap: balance; }
.crumbs { font: 13px var(--mono); color: var(--dim); }
.crumbs a { color: var(--green); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.tldr-section { padding: 64px 0; }
.term-body .prompt, .code .prompt { color: var(--green); }
.term-body .dim { color: var(--dim); }
.term-body b { color: var(--fg); font-weight: 400; }
.steps-list { list-style: none; margin-top: 40px; border-top: 1px solid var(--line); }
.step-item { display: grid; grid-template-columns: 80px 1fr minmax(220px, 280px); gap: 32px; align-items: start; padding: 40px 0; border-bottom: 1px solid var(--line); }
.step-shot { margin: 0; }
.step-shot.device.phone, .step-shot.device.tablet { width: 100%; }
/* placeholder frame for app screens still to be captured */
.step-shot.placeholder .screen { aspect-ratio: 920 / 2000; background: repeating-linear-gradient(135deg, #031006 0 12px, #020803 12px 24px); display: grid; place-items: center; }
.step-shot.placeholder::before { content: "SCREEN · " attr(data-screen); position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; width: 80%; text-align: center; font: 16px var(--dos); color: var(--dim); }
/* desktop terminal mock (step 1) */
.step-shot.desk { border: 1px solid var(--line-2); border-radius: 10px; background: #020603; overflow: hidden; font: 16px/1.45 var(--dos); color: var(--pale); align-self: center; }
.desk-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: #061209; border-bottom: 1px solid var(--line); color: var(--dim); font-size: 16px; }
.desk-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.desk-bar span { margin-left: 8px; }
.desk-body { padding: 12px 14px; min-height: 200px; display: grid; gap: 4px; align-content: start; text-shadow: 0 0 6px rgba(92,255,122,.25); }
.desk-body .prompt { color: var(--green); }
.desk-body .dim { color: var(--dim); }
.cc-box { color: #e7a17a; white-space: pre; font-size: 16px; line-height: 1.1; margin: 6px 0; overflow: hidden; }
.tmux-bar { display: flex; justify-content: space-between; padding: 2px 10px; background: var(--green); color: #001a06; font-size: 16px; }
/* plain SSH vs tmux */
.vs { display: grid; grid-template-columns: 1fr 1fr; margin: 40px 0 8px; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.vs-col ul { list-style: none; }
.vs-col li { display: grid; gap: 2px; padding: 16px 20px; border-top: 1px solid var(--line); }
.vs-col li span { color: var(--text); font-size: 15px; }
.vs-col li em { font: 16px var(--dos); font-style: normal; }
.vs-head { padding: 14px 20px; font: 16px var(--dos); letter-spacing: .08em; text-transform: uppercase; }
.vs-col.bad { background: #070404; }
.vs-col.bad .vs-head, .vs-col.bad em { color: #ff6b6b; }
.vs-col.bad em::before { content: "✕ "; }
.vs-col.good { background: rgba(92,255,122,.04); border-left: 1px solid var(--line-2); }
.vs-col.good .vs-head { color: var(--green); }
.vs-col.good em { color: var(--green); }
.vs-col.good em::before { content: "✓ "; }
#why-tmux .intro b, .rule strong { color: var(--fg); font-weight: 500; }
.step-n { font: 40px var(--pixel); color: var(--green); font-weight: 400; }
.step-item p { color: var(--text); max-width: 65ch; }
.step-item p + p, .step-item .code + p { margin-top: 10px; }
.step-item b { color: var(--fg); font-weight: 500; }
.note { font-size: 14px; color: var(--dim) !important; }
.code { margin-top: 14px; padding: 14px 18px; background: #020603; border: 1px solid var(--line-2); border-radius: 8px; font: 16px/1.5 var(--dos); color: var(--pale); overflow-x: auto; text-shadow: 0 0 6px rgba(92,255,122,.25); }
.table-wrap { margin: 36px 0 18px; overflow-x: auto; border: 1px solid var(--line-2); border-radius: 10px; }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15px; }
.compare th, .compare td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font: 16px var(--dos); letter-spacing: .04em; color: var(--dim); background: var(--panel); }
.compare thead th:last-child { color: var(--green); }
.compare tbody th { font-weight: 400; color: var(--fg); width: 22%; }
.compare td { color: var(--text); }
.compare td:last-child { color: var(--pale); background: rgba(92,255,122,.04); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.fineprint a { color: var(--green); }
.sub-final { min-height: 0; grid-template-columns: 1fr; padding: 40px 0; }
.sub-final .final-copy { max-width: 720px; }
.see-also { margin-top: 18px; font: 14px var(--mono); }
.see-also a { color: var(--green); }

/* ---------- iPad mock: the app with two tmux panes side by side ---------- */
.ipad-mock { position: relative; margin: 0 auto; width: 100%; max-width: 860px; aspect-ratio: 4 / 3; padding: 2.4%; border-radius: 4.2% / 5.6%; background: #050805; border: 1px solid var(--line-2); box-shadow: 0 0 0 1px #000, 0 30px 80px -30px rgba(43,217,79,.25); container-type: inline-size; }
.ipad-mock .ip-screen { position: relative; height: 100%; border-radius: 2.2% / 3%; background: #020603; overflow: hidden; display: grid; grid-template-rows: auto auto 1fr auto; font: 2cqi/1.35 var(--dos); color: var(--pale); }
.ipad-mock .ip-screen::after { content: ""; position: absolute; left: 0; right: 0; top: -60px; height: 60px; animation: deviceBeam 8.4s cubic-bezier(.45,.05,.55,.95) infinite, beamFlicker 1.6s steps(1) infinite; }
.ip-head { display: flex; align-items: center; gap: 2cqi; padding: 1.4cqi 2cqi; border-bottom: 1px solid var(--line); color: var(--dim); }
.ip-head b { color: var(--pale); font-weight: 400; }
.ip-head .ip-back { border: 1px solid var(--line-2); border-radius: .6cqi; padding: .2cqi 1cqi; color: var(--green); }
.ip-tabs { display: flex; gap: 1cqi; padding: 1cqi 2cqi; border-bottom: 1px solid var(--line); }
.ip-tabs span { border: 1px solid var(--line-2); border-radius: .6cqi; padding: .2cqi 1.2cqi; color: var(--dim); }
.ip-tabs span.on { border-color: var(--green-2); color: var(--green); }
.ip-tabs .dot { display: inline-block; width: .9cqi; height: .9cqi; border-radius: 50%; background: var(--green); margin-right: .8cqi; vertical-align: middle; animation: pulse 1.2s ease-in-out infinite; }
.ip-panes { display: grid; grid-template-columns: 1fr 1fr; min-height: 0; }
.ip-pane { padding: 1.4cqi 1.8cqi; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: .3cqi; text-shadow: 0 0 .6cqi rgba(92,255,122,.25); }
.ip-pane + .ip-pane { border-left: 1px solid var(--green-2); }
.ip-pane .g { color: var(--green); } .ip-pane .d { color: var(--dim); } .ip-pane .w { color: var(--fg); }
.ip-pane .bar { display: inline-block; height: 1.1cqi; background: var(--green-2); vertical-align: middle; }
.ip-status { display: flex; justify-content: space-between; padding: .3cqi 1.8cqi; background: var(--green); color: #001a06; }
.ip-caption { text-align: center; margin-top: 14px; font: 13px var(--mono); color: var(--dim); }
.ipad-feature { margin-top: 48px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .rules { grid-template-columns: 1fr 1fr; }
  .rule:nth-child(2) { border-right: 0; }
  .rule:nth-child(3) { padding-left: 0; }
  .device-row { grid-template-columns: 1fr 1fr; }
  .device.tablet { grid-column: 1 / -1; max-width: 560px; justify-self: center; }
}
@media (max-width: 1000px) {
  .step-item { grid-template-columns: 64px 1fr; }
  .step-shot { grid-column: 2; max-width: 280px; }
  .step-shot.desk { max-width: 520px; }
}
@media (max-width: 820px) {
  .nav-links, .nav-cta { display: none; }
  /* old-school terminal key: [ MENU ] / [ CLOSE ] with the app's bracket corners */
  .nav-toggle { display: block; margin-left: auto; position: relative; padding: 8px 14px 7px; font: 16px var(--dos); letter-spacing: .12em; color: var(--green);
    background: #041008; border: 1px solid var(--line-2); border-radius: 4px; box-shadow: inset 0 -3px 0 #020803, 0 2px 0 #000; cursor: pointer; }
  .nav-toggle::before { content: ""; position: absolute; inset: 3px; pointer-events: none; --c: var(--green-2);
    background: linear-gradient(var(--c),var(--c)) top left / 6px 1px, linear-gradient(var(--c),var(--c)) top left / 1px 6px,
      linear-gradient(var(--c),var(--c)) top right / 6px 1px, linear-gradient(var(--c),var(--c)) top right / 1px 6px,
      linear-gradient(var(--c),var(--c)) bottom left / 6px 1px, linear-gradient(var(--c),var(--c)) bottom left / 1px 6px,
      linear-gradient(var(--c),var(--c)) bottom right / 6px 1px, linear-gradient(var(--c),var(--c)) bottom right / 1px 6px;
    background-repeat: no-repeat; }
  .nav-toggle:active, .menu-open .nav-toggle { transform: translateY(1px); box-shadow: inset 0 2px 0 #020803; background: #062010; text-shadow: 0 0 6px rgba(92,255,122,.6); }
  .nav-toggle::before { transition: inset .18s var(--ease); }
  .nav-toggle.pressing { animation: keyPress .26s var(--ease); }
  .nav-toggle.pressing::before { inset: 6px; }
  @keyframes keyPress {
    0% { transform: translateY(0); }
    35% { transform: translateY(2px); background: var(--green); color: #001a06; box-shadow: 0 0 18px rgba(92,255,122,.7); }
    100% { transform: translateY(1px); }
  }
  /* the menu opens like a CRT: from a bright line to the full panel, links appear one by one */
  .menu-open .nav-links { animation: crtOpen .34s var(--ease) both; transform-origin: top; }
  @keyframes crtOpen {
    0% { clip-path: inset(0 0 100% 0); filter: brightness(3); }
    40% { clip-path: inset(0 0 60% 0); filter: brightness(1.8); }
    100% { clip-path: inset(0 0 0 0); filter: brightness(1); }
  }
  .menu-open .nav-links a { animation: linkIn .3s var(--ease) both; }
  .menu-open .nav-links a:nth-child(2) { animation-delay: .04s; } .menu-open .nav-links a:nth-child(3) { animation-delay: .08s; }
  .menu-open .nav-links a:nth-child(4) { animation-delay: .12s; } .menu-open .nav-links a:nth-child(5) { animation-delay: .16s; }
  .menu-open .nav-links a:nth-child(6) { animation-delay: .2s; } .menu-open .nav-links a:nth-child(7) { animation-delay: .24s; }
  @keyframes linkIn { from { opacity: 0; transform: translateX(-12px); } }
  .menu-open .nav-links { display: grid; position: fixed; top: 67px; left: 0; right: 0; background: #000; border-bottom: 1px solid var(--line-2); padding: 12px var(--gutter) 24px; gap: 0; }
  .menu-open .nav-links a { font: 32px var(--dos); padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--fg); }
  .menu-open .nav-links .menu-cta { display: block; color: var(--green); border-bottom: 0; }
  .split, .agents { grid-template-columns: 1fr; }
  .agents-tabs { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .agents-tabs button { flex: 1 0 auto; padding: 16px; font-size: 16px; border-bottom: 0; border-right: 1px solid var(--line); }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  /* terminal + look: show the visual right after the intro, the list after it */
  #terminal .split > div:first-child, #look .split > div:last-child { display: contents; }
  #look .kicker, #terminal .kicker { order: 1; }
  #look h2, #terminal h2 { order: 2; }
  #look .intro, #terminal .intro { order: 3; }
  #terminal .split > .kb, .crt-art.pc { order: 4; margin-top: 28px; }
  #terminal .ticks, #look .ticks { order: 5; }
  .crt-art.pc { max-width: 460px; justify-self: center; width: 100%; }
  #look .split, #terminal .split { gap: 0; }

  .section::before { left: 11px; }
}
@media (max-width: 640px) {
  .final { grid-template-columns: 1fr; }
  .final-art { min-height: min(92vw, 520px); order: -1; }
}
@media (max-width: 560px) {
  /* headings: let lines wrap naturally and evenly instead of forcing desktop breaks */
  h2[data-scramble]:not(.keep-lines) { white-space: normal; text-wrap: balance; }
  h1 [data-scramble] { text-wrap: balance; }
  /* SSH diagram: vertical version */
  .flow .flow-h { display: none; }
  .flow .flow-v { display: block; }
  .flow { margin: 40px 0; }
  /* agent states: 2x2 grid of tabs */
  .agents-tabs { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; }
  .agents-tabs button { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 12px; }
  .agents-tabs button:nth-child(2n) { border-right: 0; }
  /* tmux feature boxes: tighter */
  .cell { padding: 22px 18px 24px; }
  .cell h3 { font-size: 20px; }
  /* reliability: number beside the text */
  .rule { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: baseline; padding: 18px 0; }
  .rule b { font-size: 28px; margin: 0; }
  /* green section: smaller pixel cutouts so they clear the label */
  .px-edge { --s: 14px; }
  .footer-top p { font-size: 16px; }
  .bento, .rules { grid-template-columns: 1fr; }
  .rule { border-right: 0; padding-left: 0 !important; border-bottom: 1px solid var(--line); }
  .devices .ticks.cols { grid-template-columns: 1fr; }
  .step-item { grid-template-columns: 1fr; gap: 10px; padding: 28px 0; }
  .step-shot { max-width: 240px; margin-top: 10px; }
  .step-shot.desk { max-width: none; }
  .vs { grid-template-columns: 1fr; }
  .vs-col.good { border-left: 0; border-top: 1px solid var(--line-2); }
  .step-n { font-size: 28px; }
  .code { font-size: 16px; padding: 12px 14px; }
  .device.phone { border-radius: 20px; padding: 6px; }
  .device .screen { border-radius: 14px; }
  .roadmap li { grid-template-columns: 1fr; gap: 8px; }
  .key { height: 34px; font-size: 16px; border-radius: 6px; }
  .kb-acc .key { height: 28px; font-size: 16px; }
  .kb-row { gap: 4px; }
  .kb-acc .key:nth-child(n+9) { display: none; }
  .kb-screen { font-size: 16px; height: 150px; }
  .term-body { font-size: 16px; line-height: 1.5; padding: 20px 18px 24px; }
  .term-title { font-size: 32px; margin-bottom: 12px; }
  .term-bar { padding: 8px 14px; }
  .story .wrap { padding: 0 12px; }
  .story { padding: 56px 0; }
  .agents-desc { font-size: 16px; }
  .mock-sessions li { font-size: 16px; grid-template-columns: 12px 1fr auto; }
  .mock-sessions .agent { display: none; }
}
@media (max-aspect-ratio: 1/1) {
  .hero-copy { justify-content: flex-end; padding-bottom: 64px; }
  .hero-copy::before { content: ""; position: absolute; inset: 30% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.88) 22%, #000 40%); z-index: -1; }
}
@media (max-width: 719px) and (max-aspect-ratio: 1/1) {
  .hero { height: auto; min-height: 100svh; }
  .hero-copy { justify-content: flex-start; padding-top: calc(100vw * 2.1 * 9 / 16 + 24px); padding-bottom: 56px; }
  .hero-copy::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .crt-sweep { display: none; }
  .ticker-track { flex-wrap: wrap; width: auto; }
}
