/* Qeep design system: dark developer look. Near-black canvas, white type, monospace body copy, display headlines with
   tight tracking, square controls, 8px cards, 1px slate borders and no shadows. One accent: Qeep mint, for actions and
   selection. Fonts: Inter (headlines) and IBM Plex Mono (body, labels, data). */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
  --bg: #070a09; --surface: #0b0f0e; --surface-2: #101614; --text: #fff; --muted: #9aa3a0; --dim: #66706d;
  --silver: #c9d1ce; --line: #2a3533; --line-2: #3b4a47;
  --accent: #3ad6a0; --accent-soft: #8ce9c6; --accent-ink: #04140e; --warn: #f5b84b; --bad: #ff6b6b;
  --hair: 0 0 0 1px var(--line) inset; --lift: none;
  --r: 8px; --r-sm: 8px; --pill: 0px;
  --s1: 8px; --s2: 16px; --s3: 28px; --s4: 40px; --s5: 72px;
  --sans: Inter, "Plus Jakarta Sans", "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "JetBrains Mono", "Source Code Pro", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.6 var(--mono); letter-spacing: 0.01em; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--text); }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* type: headlines in the grotesk, everything else mono */
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 400; margin: 0; letter-spacing: -0.03em; }
.d1 { font: 400 clamp(44px, 6vw, 88px)/1.04 var(--sans); letter-spacing: -0.045em; }
.d2 { font: 400 clamp(32px, 4vw, 44px)/1.06 var(--sans); letter-spacing: -0.04em; }
.h3 { font: 400 26px/1.15 var(--sans); letter-spacing: -0.03em; }
.h4 { font: 400 20px/1.25 var(--sans); letter-spacing: -0.02em; }
.h5 { font: 400 17px/1.25 var(--sans); letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.lead { font-size: 15px; line-height: 1.65; color: var(--muted); max-width: 560px; }
.label { font: 400 11px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.mono { font-family: var(--mono); font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
.accent { color: var(--accent); }
.break { word-break: break-all; }

/* layout */
.wrap { width: min(1240px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 48px); margin-inline: auto; }
.section { padding-block: var(--s5); border-top: 1px solid var(--line); }
.section.flush { border-top: 0; }
.stack > * + * { margin-top: var(--s2); }
.row { display: flex; gap: var(--s1); align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grid { display: grid; gap: var(--s2); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } .section { padding-block: 56px; } .wrap, .narrow { width: calc(100% - 32px); } }

/* section heading: small index label above the headline */
.kicker { display: flex; gap: 10px; font: 400 11px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); margin-bottom: var(--s3); }
.kicker b { font-weight: 400; color: var(--accent); }

/* announcement + header */
.announce { display: block; text-align: center; padding: 8px 20px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); }
.announce b { font-weight: 400; color: var(--text); }
.announce:hover { color: var(--text); }
.hdr { position: sticky; top: 0; z-index: 20; background: rgba(7, 10, 9, 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hdr .wrap { display: flex; align-items: center; gap: var(--s3); height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font: 500 17px/1 var(--sans); letter-spacing: -0.02em; }
.brand svg { width: 26px; height: 26px; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { padding: 8px 10px; color: var(--muted); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] { box-shadow: 0 -2px 0 var(--accent) inset; }
.hdr .menu-btn { display: none; }
@media (max-width: 1180px) {
  .nav { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; padding: 12px 24px 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .hdr .menu-btn { display: inline-flex; margin-left: auto; }
  .hdr .cta-sm { display: none; }
}

/* buttons: square, accent fill for the main action */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 0;
  font: 500 13px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; border: 0; cursor: pointer; white-space: nowrap; transition: background 0.15s, color 0.15s, box-shadow 0.15s; }
.btn-primary, .btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover, .btn-accent:hover { background: var(--accent-soft); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--text); box-shadow: 0 0 0 1px var(--line-2) inset; }
.btn-ghost:hover { box-shadow: 0 0 0 1px var(--silver) inset; }
.btn-link { background: none; color: var(--accent); padding: 0; height: auto; }
.btn-link:hover { color: var(--accent-soft); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 12px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.icon-btn { width: 40px; padding: 0; }

/* surfaces: 8px cards with a hairline, never a shadow */
.card { background: var(--surface); border-radius: var(--r); box-shadow: var(--hair); padding: var(--s3); }
.card.tight { padding: var(--s2); }
.card.flat { background: transparent; }
.frame { padding: 0; border-radius: var(--r); background: none; }
.frame > .card { border-radius: var(--r); background: var(--surface); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: 0; font: 400 11px/1 var(--mono); letter-spacing: 0.04em; box-shadow: var(--hair); color: var(--muted); }
.pill.ok { color: var(--accent); box-shadow: 0 0 0 1px rgba(58, 214, 160, 0.4) inset; }
.pill.warn { color: var(--warn); box-shadow: 0 0 0 1px rgba(245, 184, 75, 0.4) inset; }
.pill.bad { color: var(--bad); box-shadow: 0 0 0 1px rgba(255, 107, 107, 0.4) inset; }
.dot { width: 6px; height: 6px; background: currentColor; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s2) 0; }

/* forms */
.field { display: grid; gap: 8px; }
.field > span { font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }
.input, select.input, textarea.input { width: 100%; height: 46px; padding: 0 14px; border-radius: 0; border: 0; background: var(--surface-2); color: var(--text);
  box-shadow: var(--hair); font: 400 14px/1.4 var(--mono); }
textarea.input { height: auto; min-height: 120px; padding: 12px 14px; line-height: 1.6; resize: vertical; }
.input.mono { font-family: var(--mono); font-size: 13px; }
.input:focus { outline: none; box-shadow: 0 0 0 1px var(--accent) inset; }
.input-group { display: flex; gap: 0; padding: 0; background: var(--surface-2); box-shadow: var(--hair); }
.input-group .input { background: transparent; box-shadow: none; height: 46px; }
.input-group .btn { height: 46px !important; }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; }

/* tables / lists */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font: 400 11px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table.grid-lines td, .table.grid-lines th { border: 1px solid var(--line); }
.scroll-x { overflow-x: auto; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-family: var(--mono); font-size: 13px; word-break: break-all; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.ticks li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 8px; background: var(--accent); }

/* code */
pre.code { margin: 0; padding: var(--s2); border-radius: var(--r); background: var(--surface); box-shadow: var(--hair); overflow-x: auto; font: 400 13px/1.75 var(--mono); color: #d8dedc; }
pre.code .c { color: var(--dim); }
pre.code .k { color: var(--accent); }
code { font-family: var(--mono); font-size: 0.92em; }

/* panel: a card with a title bar (code, terminal, file tree) */
.panel { border-radius: var(--r); box-shadow: var(--hair); background: var(--surface); overflow: hidden; }
.panel-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.panel-bar b { font-weight: 400; color: var(--text); }
.panel pre { margin: 0; padding: var(--s2); overflow-x: auto; font: 400 13px/1.8 var(--mono); color: #d8dedc; }
.panel pre .c { color: var(--dim); }
.panel pre .k { color: var(--accent); }
.copy { all: unset; cursor: pointer; font: 400 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 6px 8px; box-shadow: var(--hair); }
.copy:hover { color: var(--text); }

/* home: hero with pixel mosaic */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-block: 96px var(--s5); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--s4); align-items: center; }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-block: 64px 56px; } }
.mosaic { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; image-rendering: pixelated;
  -webkit-mask-image: linear-gradient(100deg, transparent 38%, #000 85%); mask-image: linear-gradient(100deg, transparent 38%, #000 85%); opacity: 0.85; }
@media (max-width: 1000px) { .mosaic { -webkit-mask-image: linear-gradient(180deg, #000, transparent 60%); mask-image: linear-gradient(180deg, #000, transparent 60%); opacity: 0.5; } }
.hero .panel { background: rgba(11, 15, 14, 0.94); }

/* ticker: one line of chips, scrolling */
.ticker { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg); }
.ticker-track { display: flex; width: max-content; animation: tick 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { display: inline-flex; align-items: center; gap: 14px; padding: 12px 14px 12px 0; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--silver); white-space: nowrap; }
.ticker span::after { content: ""; width: 6px; height: 6px; background: var(--accent); }
@keyframes tick { to { transform: translateX(-50%); } }

/* tiles: logo-style cards that wrap; one can be the call to action */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.tile { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 16px; border-radius: var(--r); box-shadow: var(--hair); background: var(--surface); font-size: 13px; }
.tile .sq { width: 10px; height: 10px; flex: none; background: var(--line-2); }
.tile.on .sq { background: var(--accent); }
.tile.cta { background: var(--accent); color: var(--accent-ink); box-shadow: none; justify-content: space-between; }
.tile.cta:hover { background: var(--accent-soft); color: var(--accent-ink); }

/* numbered list (features, use cases) */
.nlist { border-top: 1px solid var(--line); }
.nlist > * { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.3fr) max-content; gap: var(--s2); align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); }
.nlist .n { font-size: 12px; color: var(--dim); }
.nlist .t { font: 400 20px/1.25 var(--sans); letter-spacing: -0.02em; }
.nlist p { margin: 0; color: var(--muted); font-size: 14px; }
.nlist .tag { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); text-align: right; }
@media (max-width: 820px) { .nlist > * { grid-template-columns: 40px 1fr; } .nlist p, .nlist .tag { grid-column: 2; text-align: left; } }
.ep { display: inline-block; margin-top: 14px; padding: 4px 8px; font-size: 12px; color: var(--accent); box-shadow: var(--hair); }

/* metrics: big figures with short labels */
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.metrics > * { padding: var(--s3) var(--s2); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (max-width: 900px) { .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.metrics b { display: block; font: 400 clamp(36px, 4.4vw, 60px)/1 var(--sans); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; margin-bottom: 14px; }
.metrics b small { font: 400 14px/1 var(--mono); letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.metrics span { font-size: 13px; color: var(--muted); }
.band { background: var(--accent); color: var(--accent-ink); }
.band .metrics, .band .metrics > * { border-color: rgba(4, 20, 14, 0.25); }
.band .metrics span, .band .metrics b small, .band .lead, .band .kicker { color: rgba(4, 20, 14, 0.72); }
.band .kicker b { color: var(--accent-ink); }

.rail { display: grid; gap: 4px; }
.rail a { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 16px; border-radius: var(--r); color: var(--muted); }
.rail a:hover { background: var(--surface); box-shadow: var(--hair); color: var(--text); }
.rail b { font-weight: 400; color: var(--text); display: block; }
.rail .label { padding-top: 3px; }
.stat b { display: block; font: 400 34px/1.2 var(--sans); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.chapter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--s4); align-items: start; }
@media (max-width: 960px) { .chapter { grid-template-columns: 1fr; } }
.chapter .idx { font: 400 12px/1 var(--mono); color: var(--muted); }
.chapter-copy { position: sticky; top: 100px; }
@media (max-width: 960px) { .chapter-copy { position: static; } }
.promo { border-radius: var(--r); padding: var(--s5) var(--s4); background: var(--surface); box-shadow: var(--hair); }
.price b { font: 400 44px/1.1 var(--sans); letter-spacing: -0.04em; }
.price.featured { box-shadow: 0 0 0 1px var(--accent) inset; }
.quote { font-size: 18px; line-height: 1.5; }

/* footer */
.ftr { border-top: 1px solid var(--line); padding-block: var(--s4) var(--s3); color: var(--muted); font-size: 13px; }
.ftr-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: var(--s3); }
@media (max-width: 760px) { .ftr-grid { grid-template-columns: 1fr 1fr; } }
.ftr h4 { font: 400 11px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }

/* app */
.app-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--s3); padding-block: var(--s4) var(--s5); }
@media (max-width: 860px) { .app-grid { grid-template-columns: 1fr; } }
.side { display: grid; gap: 0; align-content: start; position: sticky; top: 84px; border-left: 1px solid var(--line); }
@media (max-width: 860px) { .side { position: static; grid-auto-flow: column; overflow-x: auto; border-left: 0; border-bottom: 1px solid var(--line); } }
.side button { all: unset; cursor: pointer; padding: 10px 14px; color: var(--muted); font: 400 12px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; box-shadow: -1px 0 0 transparent; }
.side button:hover { color: var(--text); }
.side button[aria-selected="true"] { color: var(--text); background: var(--surface); box-shadow: inset 2px 0 0 var(--accent); }
@media (max-width: 860px) { .side button[aria-selected="true"] { box-shadow: inset 0 -2px 0 var(--accent); } }
.notice { padding: 12px 14px; border-radius: 0; box-shadow: var(--hair); font-size: 13px; color: var(--muted); }
.notice.warn { box-shadow: 0 0 0 1px rgba(245, 184, 75, 0.4) inset; color: #f3d8a6; }
.notice.bad { box-shadow: 0 0 0 1px rgba(255, 107, 107, 0.4) inset; color: #ffc0c0; }
.notice.ok { box-shadow: 0 0 0 1px rgba(58, 214, 160, 0.4) inset; color: #bff3df; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 50; max-width: min(440px, 100% - 40px); padding: 14px 16px; border-radius: 0;
  background: var(--surface-2); box-shadow: 0 0 0 1px var(--line-2) inset; font-size: 13px; }
.skel { display: inline-block; min-width: 4ch; height: 1em; background: linear-gradient(90deg, #121816, #1d2522, #121816); background-size: 200% 100%; animation: sk 1.4s infinite; vertical-align: -2px; }
@keyframes sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.hidden { display: none !important; }

/* ---------------------------------------------------------------- illustrations, scroll reveal (flat: no glows) */
.glow-top { position: relative; }
.shine { color: var(--text); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; height: 28px; padding: 0 10px 0 0; box-shadow: var(--hair); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.eyebrow b { font: 500 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent); padding: 8px 8px; }
.edge { position: relative; }
.art { position: relative; border-radius: var(--r); overflow: hidden; background: var(--surface); box-shadow: var(--hair); }
.art svg { width: 100%; height: auto; }
.art-cap { position: absolute; left: 16px; bottom: 14px; font: 400 11px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.orb { display: none; }
.cta-mark { width: 72px; height: 72px; color: #fff; }

/* reveal on scroll: only hidden when JS runs (html.js), always visible with reduced motion */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--d, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; } }

/* scroll motion (home.js adds the hooks; nothing is hidden without JS or with reduced motion) */
/* reading progress */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 30; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); pointer-events: none; }
/* headlines rise word by word */
.words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.words .w > span { display: inline-block; transform: translateY(105%); transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: calc(var(--i) * 45ms); }
.words.in .w > span { transform: none; }
/* children appear one after another */
.js [data-stagger] > * { opacity: 0; transform: translateY(14px); transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-stagger].in > * { opacity: 1; transform: none; }
/* panels print top to bottom, like a terminal, with a scan line */
.js .wipe { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s steps(18, end); position: relative; }
.js .wipe.in { clip-path: inset(0 0 0 0); }
.js .wipe::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--accent); opacity: 0; pointer-events: none; }
.js .wipe.in::after { animation: scan 1.1s steps(18, end) forwards; }
@keyframes scan { 0% { top: 0; opacity: 1; } 95% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
/* list rows: the divider draws across */
.js .nlist.draw-rows > * { border-bottom-color: transparent; position: relative; }
.js .nlist.draw-rows > *::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--line); transform: scaleX(0); transform-origin: left; transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
.js .nlist.draw-rows.in > *::after { transform: none; }
.nlist > *:hover .t { color: var(--accent); }
/* cards lift their border to the accent on hover */
.card, .tile { transition: box-shadow 0.2s, transform 0.2s; }
.grid > .card:hover, .tile:not(.cta):hover { box-shadow: 0 0 0 1px var(--line-2) inset; }
.ep { transition: background 0.2s, color 0.2s; }
.card:hover .ep { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
@media (prefers-reduced-motion: reduce) {
  .words .w > span, .js [data-stagger] > *, .js .wipe { transform: none !important; opacity: 1 !important; clip-path: none !important; }
  .js .nlist.draw-rows > *::after { transform: none; }
  .progress { display: none; }
}

/* illustration motion: runs only once the art is in view (.in) */
.art * { animation-play-state: paused; }
.art.in * { animation-play-state: running; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ping { 0% { r: 4; opacity: 0.9; } 100% { r: 18; opacity: 0; } }
@keyframes twinkle { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.9; } }
@keyframes draw { from { stroke-dashoffset: var(--len, 900); } to { stroke-dashoffset: 0; } }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.sweep { transform-origin: 240px 160px; animation: spin 6s linear infinite; }
.ping { animation: ping 2.2s ease-out infinite; }
.tw { animation: twinkle 3.2s ease-in-out infinite; }
.draw { stroke-dasharray: var(--len, 900); animation: draw 2.6s cubic-bezier(0.6, 0, 0.2, 1) forwards; }
.bar { transform-box: fill-box; transform-origin: left; animation: fill 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.floaty { animation: floaty 5s ease-in-out infinite; }

/* older home blocks still used by other pages */
.hero.center { text-align: center; }
.hero.center .eyebrow { margin-inline: auto; }
.strip-wrap { border-block: 1px solid var(--line); }
.strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; padding-block: 18px; }
.strip .label:not(:first-child) { margin-left: 16px; }
.art.wide svg { max-height: 380px; width: auto; margin-inline: auto; }
.feat p { margin: 0; font-size: 14px; }
.feat .ico { width: 36px; height: 36px; display: grid; place-items: center; background: var(--surface-2); box-shadow: var(--hair); color: var(--text); }
.feat .ico svg { width: 18px; height: 18px; }
.step .idx { font: 400 12px/1 var(--mono); color: var(--accent); }
.step p { margin: 0; }
.step .mini { display: grid; gap: 10px; margin-top: auto; padding: 16px; border-radius: var(--r); background: var(--surface-2); box-shadow: var(--hair); }
.step .mini-art { margin-top: auto; }
.perm td:first-child { min-width: 180px; }
.perm td:first-child b { display: block; font: 400 15px/1.3 var(--sans); }
.perm td:first-child span { display: block; font-size: 12px; }
.perm td { font-size: 13px; color: var(--muted); }
.tick { width: 16px; height: 16px; }
.steps { list-style: none; counter-reset: st; padding: 0; margin: 8px 0 0; display: grid; gap: 14px; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 40px 1fr; gap: 2px 14px; color: var(--muted); }
.steps li::before { content: counter(st, decimal-leading-zero); grid-row: span 2; font: 400 12px/1.9 var(--mono); color: var(--accent); }
.steps b { font-weight: 400; color: var(--text); }
.step { display: flex; flex-direction: column; }
.tok-pill { background: none; border: 0; cursor: pointer; gap: 8px; }
@media (max-width: 1180px) { .tok-pill { display: none; } }

/* ---------------------------------------------------------------- home layout: centred hero, key hub, section heads, framed cell grids */
/* header nav as a framed box between the logo and the call to action */
.nav { margin-inline: auto; padding: 3px; box-shadow: var(--hair); }
.nav a[aria-current="page"] { box-shadow: none; background: var(--surface-2); }
@media (max-width: 1180px) { .nav { margin: 0; padding: 12px 24px 20px; box-shadow: none; } }

.tagline { display: inline-flex; align-items: center; gap: 10px; font: 400 11px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.tagline .sq, .chip .sq { width: 7px; height: 7px; background: var(--accent); flex: none; }

.hero.center { padding-block: 88px 0; }
.hero-copy { display: grid; justify-items: center; gap: 24px; text-align: center; }
.hero-copy .d1 { max-width: 18ch; }
.hero-copy .lead { margin: 0; max-width: 640px; }
.hero.center .mosaic { -webkit-mask-image: linear-gradient(180deg, transparent 38%, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, transparent 38%, #000 70%, transparent 100%); opacity: 0.45; }

/* key hub: nodes on both sides wired to the vault in the middle */
.hub { position: relative; display: grid; grid-template-columns: 1fr 160px 1fr; align-items: center; gap: 0 12%; height: 300px; margin-block: 48px 40px; }
.hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hub-lines path { fill: none; stroke: var(--line-2); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 4 6; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -20; } }
.hub-side { position: relative; display: grid; align-content: space-between; height: 100%; padding-block: 34px; }
.hub-side:first-of-type { justify-items: end; }
.hub-side:last-of-type { justify-items: start; }
.node { display: inline-flex; gap: 10px; align-items: center; padding: 8px 12px; background: var(--surface); box-shadow: var(--hair); font-size: 12px; color: var(--silver); white-space: nowrap; }
.node b { font-weight: 400; color: var(--accent); }
.hub-core { position: relative; width: 160px; height: 160px; display: grid; place-items: center; background: var(--surface); box-shadow: 0 0 0 1px var(--accent) inset; }
.hub-core img { width: 110px; height: 110px; }
@media (max-width: 760px) {
  .hub { grid-template-columns: 1fr 1fr; height: auto; gap: 12px; }
  .hub-lines { display: none; }
  .hub-core { grid-row: 1; grid-column: 1 / -1; justify-self: center; width: 120px; height: 120px; }
  .hub-core img { width: 84px; height: 84px; }
  .hub-side { height: auto; padding: 0; gap: 8px; justify-items: stretch !important; }
  .node { white-space: normal; justify-content: space-between; }
}

.chainbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-block: 16px; border-top: 1px solid var(--line); }
.chainbar .label:not(:first-child) { margin-left: 14px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 10px; background: var(--surface); box-shadow: var(--hair); font-size: 12px; color: var(--silver); }
.chip.on { color: var(--text); box-shadow: 0 0 0 1px rgba(58, 214, 160, 0.45) inset; }

/* section head: label and headline left, short paragraph right */
.sec-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s3) var(--s4); align-items: end; margin-bottom: var(--s4); }
.sec-head .lead { margin: 0; }
.sec-head.center { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.sec-head.center .kicker { margin-bottom: 0; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; } }

/* corners: a mint square on each corner of a block */
.corners { position: relative; }
.corners::before { content: ""; position: absolute; inset: -3px; pointer-events: none; z-index: 2;
  background: linear-gradient(var(--accent), var(--accent)) 0 0 / 6px 6px no-repeat, linear-gradient(var(--accent), var(--accent)) 100% 0 / 6px 6px no-repeat,
              linear-gradient(var(--accent), var(--accent)) 0 100% / 6px 6px no-repeat, linear-gradient(var(--accent), var(--accent)) 100% 100% / 6px 6px no-repeat; }

/* stage: a big visual, two panels over a mosaic */
.stage { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s2); padding: var(--s4); box-shadow: var(--hair); align-items: center; }
.stage .mosaic { -webkit-mask-image: none; mask-image: none; opacity: 0.55; }
.stage .panel { background: rgba(11, 15, 14, 0.94); }
@media (max-width: 900px) { .stage { grid-template-columns: 1fr; padding: var(--s2); } }

/* cells: a grid split by 1px lines, like a table */
.cells { display: grid; box-shadow: var(--hair); }
.cells + .cells, .stage + .cells, .metrics + .cells { margin-top: -1px; }
.cells > * { box-shadow: inset -1px -1px 0 var(--line); padding: var(--s3) var(--s2); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cells > * > p { margin: 0; color: var(--muted); font-size: 14px; }
.cells.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cells.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cells.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .cells.g3, .cells.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cells.g2, .cells.g3, .cells.g4 { grid-template-columns: 1fr; } }
.cells.status > * { padding: var(--s2); }
.cells > *:hover .h4 { color: var(--accent); }
.cells .h4 { transition: color 0.2s; }

/* thumb: a small mosaic picture with a code chip in the middle */
.thumb { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 16 / 9; display: grid; place-items: center; margin-bottom: 8px; box-shadow: var(--hair); }
.thumb .mosaic { -webkit-mask-image: none; mask-image: none; opacity: 0.7; }
.thumb code { padding: 6px 10px; background: rgba(7, 10, 9, 0.9); box-shadow: var(--hair); font-size: 12px; color: var(--silver); white-space: nowrap; }
.thumb .warn { color: var(--warn); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--s4); align-items: start; margin-top: var(--s5); }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* x402 steps as columns */
.steps.cols { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 0; box-shadow: var(--hair); }
.steps.cols li { grid-template-columns: 1fr; align-content: start; gap: 8px; padding: var(--s2); box-shadow: inset -1px -1px 0 var(--line); font-size: 13px; }
.steps.cols li::before { grid-row: auto; line-height: 1; }
@media (max-width: 900px) { .steps.cols { grid-template-columns: 1fr; } }

.links { display: grid; border-top: 1px solid var(--line); }
.links a { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.links a span { color: var(--accent); transition: transform 0.2s; }
.links a:hover { color: var(--text); }
.links a:hover span { transform: translateX(4px); }

.plans { padding: 1px; }

.cta-band { position: relative; isolation: isolate; overflow: hidden; padding-block: 96px; border-top: 1px solid var(--line); }
.cta-band .mosaic { -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 90%); mask-image: linear-gradient(90deg, transparent 20%, #000 90%); opacity: 0.7; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s3); }
.cta-band .tagline { margin-bottom: 16px; }
.corners .metrics b { font-size: clamp(30px, 3.2vw, 46px); overflow-wrap: anywhere; }
.cells .btn-link, .cells .btn { align-self: flex-start; }

/* ---------------------------------------------------------------- feature cards: bento, own illustration, spotlight on hover */
.cards { display: grid; gap: 14px; }
.cards.bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.bento .wide { grid-column: span 2; }
.cards.steps3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .cards.bento, .cards.steps3 { grid-template-columns: 1fr 1fr; } .cards.steps3 > :last-child { grid-column: 1 / -1; } }
@media (max-width: 640px) { .cards.bento, .cards.steps3 { grid-template-columns: 1fr; } .cards.bento .wide, .cards.steps3 > :last-child { grid-column: auto; } }

.fcard { --mx: 50%; --my: 0%; position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; border-radius: 14px;
  background: linear-gradient(180deg, #0d1312, #090d0c); box-shadow: 0 0 0 1px var(--line) inset;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s; }
/* spotlight following the pointer (home.js sets --mx/--my) */
.fcard::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.35s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(58, 214, 160, 0.13), transparent 60%); }
/* mint accent line that draws in along the top once the group is in view */
.fcard::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--i, 0) * 90ms + 200ms); }
.cards.in .fcard::after, html:not(.js) .fcard::after { transform: scaleX(1); }
.fcard:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(58, 214, 160, 0.55) inset, 0 18px 40px -20px rgba(58, 214, 160, 0.35); }
.fcard:hover::before { opacity: 1; }
.fnum { position: absolute; right: 18px; top: 10px; font: 500 64px/1 var(--sans); letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1px var(--line-2); transition: -webkit-text-stroke-color 0.35s; pointer-events: none; }
.fcard:hover .fnum { -webkit-text-stroke-color: rgba(58, 214, 160, 0.6); }
.fbody { display: grid; gap: 8px; padding: 6px 22px 24px; }
.fbody .label { color: var(--accent); text-transform: none; letter-spacing: 0.02em; }
.fbody p { margin: 0; color: var(--muted); font-size: 14px; }
.fcard .h4 { transition: color 0.2s; }
.fcard:hover .h4 { color: var(--accent); }

/* illustrations: mint on dark; their loops run on hover */
.illo { width: 100%; height: auto; max-height: 170px; padding: 22px 22px 8px; overflow: visible; }
.wide .illo { max-height: 190px; }
.illo .ln, .illo .ln * { fill: none; stroke: var(--line-2); stroke-width: 1.5; transition: stroke 0.35s; }
.fcard:hover .illo .ln, .fcard:hover .illo .ln * { stroke: var(--silver); }
.illo .t { font: 400 11px var(--mono); fill: var(--silver); letter-spacing: 0.04em; }
.illo .t.acc { fill: var(--accent); }
.illo .t.dim { fill: var(--dim); }
.illo .t.warn { fill: var(--warn); }
.illo .chip-bg { fill: rgba(58, 214, 160, 0.08); stroke: rgba(58, 214, 160, 0.5); }
.illo .chip-bg.warnb { fill: rgba(245, 184, 75, 0.08); stroke: rgba(245, 184, 75, 0.5); }
.illo .vault { fill: rgba(58, 214, 160, 0.08); stroke: var(--accent); stroke-width: 1.5; }
.illo * { animation-play-state: paused; }
.fcard:hover .illo * { animation-play-state: running; }
/* vault key: the signature writes itself once in view, and again on hover */
.illo .sig { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 220; stroke-dashoffset: 220; transition: stroke-dashoffset 1.6s cubic-bezier(0.6, 0, 0.2, 1) 0.4s; }
.cards.in .illo .sig, html:not(.js) .illo .sig { stroke-dashoffset: 0; }
.fcard:hover .illo .sig { animation: resign 2.4s ease-in-out infinite; }
@keyframes resign { 0% { stroke-dashoffset: 220; } 60%, 100% { stroke-dashoffset: 0; } }
/* recovery: the key drops into the drawer */
.illo .slide { animation: drop 2.6s ease-in-out infinite; }
@keyframes drop { 0%, 15% { transform: translateY(0); opacity: 1; } 55% { transform: translateY(46px); opacity: 1; } 70%, 100% { transform: translateY(46px); opacity: 0; } }
/* guard: batches wait in line, the timer runs */
.illo .q { fill: rgba(58, 214, 160, 0.1); stroke: var(--accent); stroke-width: 1.2; }
.illo .queue { animation: inch 2.4s steps(3, end) infinite; }
@keyframes inch { to { transform: translateX(34px); } }
.illo .ring-bg { fill: none; stroke: var(--line); stroke-width: 3; }
.illo .ring { fill: none; stroke: var(--accent); stroke-width: 3; stroke-dasharray: 100; stroke-dashoffset: 30; transform: rotate(-90deg); transform-origin: 196px 70px; animation: tickdown 4s linear infinite; }
@keyframes tickdown { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 100; } }
/* schedules: paid days light up one after another */
.illo .d { fill: transparent; stroke: var(--line); stroke-width: 1; }
.illo .d.on { fill: rgba(58, 214, 160, 0.22); stroke: var(--accent); }
.illo .cal .d:nth-child(7n+3) { animation: pay 2.8s ease-in-out infinite; }
.illo .cal .d:nth-child(7n+5) { animation: pay 2.8s ease-in-out 0.5s infinite; }
.illo .cal .d:nth-child(7n+7) { animation: pay 2.8s ease-in-out 1s infinite; }
@keyframes pay { 0%, 100% { fill: transparent; } 40%, 60% { fill: rgba(58, 214, 160, 0.22); } }
/* how it works: scan sweep, both keys feed the vault, coins hop across */
.illo .scanbar { fill: var(--accent); animation: sweep 2s ease-in-out infinite alternate; }
@keyframes sweep { to { transform: translateX(189px); } }
.illo .k1, .illo .k2 { animation: pulse 2s ease-in-out infinite; }
.illo .k2 { animation-delay: 0.6s; }
@keyframes pulse { 50% { stroke: var(--accent); } }
.illo .coin { fill: var(--accent); opacity: 0; animation: hop 2.4s cubic-bezier(0.6, 0, 0.3, 1) infinite; }
.illo .coin:first-child { opacity: 1; }
.illo .coin.c2 { animation-delay: 0.8s; }
.illo .coin.c3 { animation-delay: 1.6s; }
@keyframes hop { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: 1; } 50% { transform: translate(64px, -26px); } 85% { opacity: 1; } 100% { transform: translate(140px, 0); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fcard, .fcard:hover { transform: none; } .illo .sig { stroke-dashoffset: 0; } .fcard::after { transform: scaleX(1); } }

/* cards rise in with an animation (not a transition, so hover stays instant) */
.fcard:nth-child(2) { --i: 1; } .fcard:nth-child(3) { --i: 2; } .fcard:nth-child(4) { --i: 3; }
.js .cards:not(.in) > .fcard { opacity: 0; }
.cards.in > .fcard { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--i, 0) * 90ms) backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .js .cards:not(.in) > .fcard { opacity: 1; } }
.illo .slide .ln, .illo .slide .ln *, .fcard:hover .illo .slide .ln, .fcard:hover .illo .slide .ln * { stroke: var(--accent); }
.fcard:not(:hover) .illo * { animation: none !important; }   /* rest state when idle; loops only on hover */
.split > * { min-width: 0; }
