:root {
  color-scheme: dark;
  --bg: #090c0f; --bg-2: #0e1216; --card: #12171c; --card-2: #181f25; --line: #232b33; --line-2: #333e49;
  --text: #eef1f4; --soft: #a2adb8; --faint: #6f7b87;
  --accent: #3ddc97; --accent-2: #8af0c2; --on-accent: #05130d; --accent-wash: rgba(61, 220, 151, .12);
  --amber: #f5b64f; --amber-wash: rgba(245, 182, 79, .12); --red: #ff6b76;
  --shadow: 0 30px 80px -24px rgba(0, 0, 0, .75);
  --grid: rgba(255, 255, 255, .045);
  --sans: "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", "Cascadia Mono", Consolas, ui-monospace, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f7f8f9; --bg-2: #eff1f3; --card: #ffffff; --card-2: #f2f4f6; --line: #e0e4e9; --line-2: #c9d0d8;
    --text: #12171c; --soft: #55606c; --faint: #7d8894;
    --accent: #0b8a6a; --accent-2: #066a51; --on-accent: #ffffff; --accent-wash: rgba(11, 138, 106, .1);
    --amber: #a86400; --amber-wash: rgba(168, 100, 0, .1); --red: #c8323f;
    --shadow: 0 30px 70px -28px rgba(20, 30, 40, .3);
    --grid: rgba(10, 20, 30, .05);
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f8f9; --bg-2: #eff1f3; --card: #ffffff; --card-2: #f2f4f6; --line: #e0e4e9; --line-2: #c9d0d8;
  --text: #12171c; --soft: #55606c; --faint: #7d8894;
  --accent: #0b8a6a; --accent-2: #066a51; --on-accent: #ffffff; --accent-wash: rgba(11, 138, 106, .1);
  --amber: #a86400; --amber-wash: rgba(168, 100, 0, .1); --red: #c8323f;
  --shadow: 0 30px 70px -28px rgba(20, 30, 40, .3);
  --grid: rgba(10, 20, 30, .05);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--accent); text-underline-offset: 3px; }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--on-accent); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { width: min(1160px, 100%); margin: 0 auto; padding: 0 24px; }

code, pre, kbd { font-family: var(--mono); font-size: .88em; }
code { background: var(--card-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
kbd { display: inline-block; min-width: 26px; text-align: center; padding: 1px 7px; border-radius: 6px; background: var(--card-2); border: 1px solid var(--line-2); border-bottom-width: 2px; color: var(--text); font-size: 13px; }

/* Top bar */
.bar { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid transparent; transition: border-color .3s; }
.bar.scrolled { border-bottom-color: var(--line); }
.bar .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.bar-wide .wrap { width: 100%; max-width: none; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -.01em; color: var(--text); text-decoration: none; }
.brand svg { width: 30px; height: 30px; display: block; }
.links { display: flex; gap: 4px; margin-right: auto; }
.links a { color: var(--soft); text-decoration: none; font-size: 14px; padding: 6px 12px; border-radius: 8px; transition: color .2s, background .2s; }
.links a:hover, .links a[aria-current] { color: var(--text); background: var(--card-2); }
.bar-end { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.icon-btn { width: 38px; height: 38px; display: inline-grid; place-items: center; background: transparent; border: 1px solid var(--line); color: var(--soft); border-radius: 10px; cursor: pointer; transition: color .2s, border-color .2s; }
.icon-btn:hover { color: var(--text); border-color: var(--line-2); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 11px; font: 600 15px/1.2 var(--sans); text-decoration: none; cursor: pointer; border: 1px solid var(--line-2); background: var(--card); color: var(--text); transition: transform .25s var(--ease), background .2s, border-color .2s, box-shadow .25s; }
.btn:hover { transform: translateY(-2px); border-color: var(--faint); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 10px 34px -12px var(--accent); }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); box-shadow: 0 16px 44px -12px var(--accent); }
.btn.small { min-height: 38px; padding: 7px 14px; font-size: 14px; border-radius: 10px; }

/* Hero */
.hero { position: relative; padding: 76px 0 40px; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -68px 0 -80px; z-index: -2; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 80% 70% at 62% 34%, #000 25%, transparent 78%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 62% 34%, #000 25%, transparent 78%); }
.hero::after { content: ""; position: absolute; width: 620px; height: 620px; right: 4%; top: -60px; z-index: -1; background: radial-gradient(circle, var(--accent-wash), transparent 66%); animation: breathe 9s ease-in-out infinite; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: 36px; align-items: center; }
.tag { display: inline-flex; align-items: center; gap: 9px; font: 500 13px/1 var(--mono); color: var(--soft); padding: 7px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: ping 2.2s infinite; }
h1 { font-size: clamp(42px, 5.6vw, 66px); line-height: 1.02; letter-spacing: -.045em; font-weight: 600; margin: 22px 0 20px; text-wrap: balance; }
h1 .word { display: inline-block; }
.js h1 .word { opacity: 0; transform: translateY(.42em); filter: blur(6px); animation: rise .8s var(--ease) forwards; animation-delay: calc(var(--i) * 65ms + 80ms); }
h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: clamp(17px, 2vw, 20px); line-height: 1.55; color: var(--soft); max-width: 33em; margin: 0 0 30px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { font-size: 13.5px; color: var(--faint); margin: 16px 0 0; }

/* Phone windows */
.stage { position: relative; height: 590px; perspective: 1400px; }
.pw { position: absolute; width: 226px; border-radius: 16px; background: #05070a; border: 1px solid #2b343d; box-shadow: var(--shadow); overflow: hidden; color: #eef1f4; will-change: transform; transition: transform .5s var(--ease); }
.float { position: absolute; animation: drift 8s ease-in-out infinite; }
.f1 { left: 0; top: 74px; animation-delay: -2s; z-index: 1; }
.f2 { left: 50%; margin-left: -131px; top: 8px; z-index: 3; animation-delay: -5s; }
.f3 { right: 0; top: 112px; animation-delay: -1s; z-index: 2; }
.f2 .pw { position: relative; width: 262px; box-shadow: var(--shadow), 0 0 80px -20px var(--accent); }
.f1 .pw, .f3 .pw { position: relative; }
.strip { display: flex; align-items: center; gap: 2px; height: 32px; padding: 0 8px 0 11px; background: #101316; font-size: 11.5px; }
.strip b { font-weight: 500; margin-right: auto; }
.strip svg { width: 15px; height: 15px; opacity: .75; margin-left: 6px; flex: none; }
.screen { position: relative; height: 430px; padding: 18px 14px; display: flex; flex-direction: column; }
.f2 .screen { height: 510px; }
.calc { background: #0d1014; }
.calc-out { margin-top: auto; text-align: right; font: 500 54px/1.1 var(--sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.calc-exp { text-align: right; color: #7e8a96; font: 400 17px/1.3 var(--mono); min-height: 24px; }
.keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; }
.keys span { position: relative; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: #1b2229; font-size: 19px; transition: background .15s, transform .15s; }
.keys span.op { background: #17372b; color: #6ff0b8; }
.keys span.eq { background: #3ddc97; color: #05130d; font-weight: 600; }
.keys span.hit { background: #3b4752; transform: scale(.9); }
.keys span.op.hit { background: #2c6a52; }
.keys span.eq.hit { background: #8af0c2; }
.cursor { position: absolute; left: 0; top: 0; width: 20px; height: 20px; z-index: 5; pointer-events: none; transition: transform .5s var(--ease); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .7)); }
.clock { background: linear-gradient(170deg, #142822, #0a0f12 70%); align-items: center; }
.clock-time { font: 300 56px/1 var(--sans); margin: 28px 0 4px; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.clock-day { color: #93a1ad; font-size: 13px; }
.dial { width: 148px; height: 148px; margin-top: 34px; }
.dial .hand { transform-origin: 50px 50px; animation: spin 10s linear infinite; }
.dial .hand.slow { animation-duration: 90s; }
.list-app { background: #111419; gap: 9px; }
.list-app h4 { margin: 2px 0 8px; font-size: 19px; font-weight: 600; }
.row { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 11px; background: #1a2027; }
.dot { width: 28px; height: 28px; border-radius: 8px; flex: none; }
.lines { flex: 1; display: grid; gap: 5px; }
.lines i { display: block; height: 6px; border-radius: 3px; background: #39434e; }
.lines i + i { width: 62%; background: #2a323b; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 18px; background: var(--card); margin-top: 36px; overflow: hidden; }
.stat { padding: 24px 26px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font: 600 clamp(28px, 3.6vw, 38px)/1.1 var(--sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 14px; color: var(--soft); }
.note { font-size: 13px; color: var(--faint); margin: 12px 2px 0; }

/* Sections */
section.block { padding: 104px 0 0; }
.eyebrow { font: 500 13px/1 var(--mono); letter-spacing: .03em; color: var(--accent); margin: 0 0 16px; }
h2 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.06; letter-spacing: -.035em; font-weight: 600; margin: 0 0 16px; text-wrap: balance; max-width: 18em; }
.sub { color: var(--soft); font-size: 18px; max-width: 38em; margin: 0 0 44px; }
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* App shot */
.shot-frame { perspective: 1600px; margin-top: 8px; }
.shot { display: block; border-radius: 16px; border: 1px solid var(--line-2); box-shadow: var(--shadow); width: 100%; height: auto; transform: rotateX(var(--tilt, 0deg)) scale(var(--zoom, 1)); transform-origin: 50% 0; }

/* Signal path */
.path { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 56px; }
.node { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.node small { font: 500 12px/1 var(--mono); color: var(--faint); }
.node h3 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; margin: 10px 0 6px; }
.node p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--soft); }
.wire { position: absolute; top: 50%; left: 100%; width: 56px; height: 18px; margin-top: -9px; overflow: hidden; }
.wire::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: var(--line-2); }
.wire i { position: absolute; top: 4px; width: 14px; height: 4px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: flow 1.5s linear infinite; }
.wire i + i { top: 11px; background: var(--amber); box-shadow: 0 0 10px var(--amber); animation: flow-back 1.5s linear infinite; }
.legend { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 20px; font-size: 14px; color: var(--soft); }
.legend span { display: inline-flex; align-items: center; gap: 9px; }
.legend i { width: 18px; height: 4px; border-radius: 2px; background: var(--accent); }
.legend .back i { background: var(--amber); }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cell { --x: 50%; --y: 0%; position: relative; grid-column: span 2; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; overflow: hidden; transition: border-color .25s, transform .35s var(--ease); }
.cell::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s; background: radial-gradient(340px circle at var(--x) var(--y), var(--accent-wash), transparent 70%); pointer-events: none; }
.cell:hover { border-color: var(--line-2); transform: translateY(-3px); }
.cell:hover::before { opacity: 1; }
.cell.wide { grid-column: span 3; }
.cell-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-wash); color: var(--accent); margin-bottom: 18px; }
.cell-icon svg { width: 22px; height: 22px; }
.cell h3 { font-size: 19px; font-weight: 600; letter-spacing: -.015em; margin: 0 0 8px; }
.cell p { font-size: 15px; line-height: 1.55; color: var(--soft); margin: 0; }
.badge { display: inline-flex; align-items: center; gap: 6px; font: 500 12px/1 var(--mono); padding: 5px 9px; border-radius: 99px; color: var(--accent); background: var(--accent-wash); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.testing { color: var(--amber); background: var(--amber-wash); }
.badge.planned { color: var(--soft); background: var(--card-2); }
.cell .badge { position: absolute; top: 26px; right: 22px; }

/* Install */
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 18px; max-width: 100%; }
.tabs button { position: relative; min-height: 38px; padding: 7px 18px; background: transparent; border: 0; border-radius: 9px; color: var(--soft); font: 500 14.5px/1 var(--sans); cursor: pointer; transition: color .2s, background .2s; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 30px; }
.panel[hidden] { display: none; }
.panel:not([hidden]) { animation: fade-up .4s var(--ease); }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.steps > li { counter-increment: step; position: relative; padding-left: 46px; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: -1px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-wash); color: var(--accent); font: 600 14px/1 var(--mono); }
.term { position: relative; margin: 10px 0 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: 11px; padding: 13px 60px 13px 16px; overflow-x: auto; font-size: 14px; line-height: 1.6; }
.term code { background: none; border: 0; padding: 0; overflow-wrap: normal; font-size: 1em; }
.copy { position: absolute; top: 7px; right: 7px; min-height: 30px; padding: 4px 10px; font: 500 12px/1 var(--mono); color: var(--soft); background: var(--card); border: 1px solid var(--line); border-radius: 7px; cursor: pointer; transition: color .2s, border-color .2s; }
.copy:hover { color: var(--text); border-color: var(--line-2); }
.copy.done { color: var(--accent); border-color: var(--accent); }
.hash { font-size: 13px; color: var(--faint); margin-top: 18px; overflow-wrap: anywhere; }

/* Status */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chips button { min-height: 38px; padding: 7px 15px; font: 500 14px/1 var(--sans); color: var(--soft); background: transparent; border: 1px solid var(--line); border-radius: 99px; cursor: pointer; transition: color .2s, background .2s, border-color .2s; }
.chips button:hover { color: var(--text); border-color: var(--line-2); }
.chips button[aria-pressed="true"] { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.matrix { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--card); overflow: hidden; }
.matrix li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 22px; border-top: 1px solid var(--line); font-size: 15.5px; }
.matrix li:first-child { border-top: 0; }
.matrix li[hidden] { display: none; }

/* Closing band */
.cta { position: relative; margin-top: 104px; border: 1px solid var(--line); border-radius: 26px; background: var(--card); padding: 68px 32px; text-align: center; overflow: hidden; isolation: isolate; }
.cta::before { content: ""; position: absolute; left: 50%; top: 100%; width: 760px; height: 480px; transform: translate(-50%, -52%); background: radial-gradient(ellipse, var(--accent-wash), transparent 68%); z-index: -1; animation: breathe 9s ease-in-out infinite; }
.cta h2 { margin: 0 auto 14px; }
.cta p { color: var(--soft); margin: 0 auto 28px; max-width: 34em; font-size: 18px; }
.cta .actions { justify-content: center; }

footer { margin-top: 90px; border-top: 1px solid var(--line); padding: 34px 0 46px; font-size: 14px; color: var(--faint); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 40px; justify-content: space-between; }
footer p { margin: 0; max-width: 46em; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--soft); }

/* Docs */
.docs { display: grid; grid-template-columns: 268px minmax(0, 1fr) 200px; gap: 56px; width: min(1440px, 100%); margin: 0 auto; padding: 0 28px; }
.side { position: sticky; top: 68px; align-self: start; height: calc(100vh - 68px); overflow-y: auto; padding: 28px 8px 40px 0; }
.search { position: relative; margin-bottom: 20px; }
.search input { width: 100%; height: 42px; padding: 0 42px 0 14px; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 10px; font: 400 15px var(--sans); transition: border-color .2s; }
.search input::placeholder { color: var(--faint); }
.search input:focus { outline: 0; border-color: var(--accent); }
.search kbd { position: absolute; right: 9px; top: 9px; }
.side h5 { font: 500 12px/1 var(--mono); color: var(--faint); margin: 22px 0 8px 12px; }
.side a { display: block; padding: 6px 12px; color: var(--soft); font-size: 14.5px; line-height: 1.4; text-decoration: none; border-radius: 8px; transition: color .15s, background .15s; }
.side a:hover { color: var(--text); background: var(--card-2); }
.side a.active { color: var(--accent); background: var(--accent-wash); font-weight: 500; }
.no-hits { padding: 8px 12px; font-size: 14px; color: var(--faint); }
.doc { min-width: 0; padding: 44px 0 40px; max-width: 760px; }
.doc > header h1 { font-size: clamp(36px, 5vw, 52px); margin: 12px 0 14px; }
.doc > header p { color: var(--soft); font-size: 19px; line-height: 1.55; margin: 0; }
.doc section { padding-top: 56px; }
.doc h2 { font-size: 30px; letter-spacing: -.025em; margin: 0 0 12px; }
.doc h3 { font-size: 19px; letter-spacing: -.01em; font-weight: 600; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--soft); }
.doc strong { color: var(--text); font-weight: 600; }
.doc ul, .doc ol:not(.steps) { padding-left: 22px; }
.doc li { margin: 7px 0; }
.doc .steps > li { color: var(--soft); }
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; margin: 16px 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-weight: 500; color: var(--faint); background: var(--card); font-size: 13.5px; }
th, td { padding: 11px 16px; border-top: 1px solid var(--line); vertical-align: top; }
tr:first-child th { border-top: 0; }
td { color: var(--soft); }
td:first-child { color: var(--text); }
.callout { display: flex; gap: 12px; margin: 18px 0; padding: 14px 18px; border-radius: 12px; background: var(--accent-wash); font-size: 15px; color: var(--text); }
.callout.warn { background: var(--amber-wash); }
.callout p { margin: 0; color: inherit; }
details.q { border-top: 1px solid var(--line); }
details.q:last-of-type { border-bottom: 1px solid var(--line); }
details.q summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px 2px; font-weight: 500; color: var(--text); cursor: pointer; list-style: none; }
details.q summary::-webkit-details-marker { display: none; }
details.q summary::after { content: "+"; font: 400 21px/1 var(--mono); color: var(--faint); transition: transform .25s var(--ease); }
details.q[open] summary::after { transform: rotate(45deg); }
details.q > p { margin: 0 0 16px; }
.toc { position: sticky; top: 68px; align-self: start; padding-top: 52px; font-size: 13.5px; }
.toc h5 { font: 500 12px/1 var(--mono); color: var(--faint); margin: 0 0 12px; }
.toc p { color: var(--soft); line-height: 1.5; margin: 0 0 14px; }
.side-toggle { display: none; }
.progress { position: fixed; left: 0; top: 0; height: 2px; width: 100%; z-index: 60; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: 0 0; }

@keyframes rise { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes breathe { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes ping { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes flow { from { left: -14px; } to { left: 56px; } }
@keyframes flow-back { from { left: 56px; } to { left: -14px; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } }
.cta::before { animation-name: none; }

@media (max-width: 1180px) {
  .toc { display: none; }
  .docs { grid-template-columns: 248px minmax(0, 1fr); gap: 44px; }
}
@media (max-width: 980px) {
  .hero { padding-top: 48px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .path { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .wire { top: 100%; left: 50%; width: 18px; height: 40px; margin: 0 0 0 -9px; }
  .wire::before { left: 8px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .wire i { top: 0; left: 4px; width: 4px; height: 14px; animation-name: flow-v; }
  .wire i + i { top: 0; left: 11px; animation-name: flow-v-back; }
  .cell, .cell.wide { grid-column: span 3; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@keyframes flow-v { from { top: -14px; } to { top: 40px; } }
@keyframes flow-v-back { from { top: 40px; } to { top: -14px; } }
@media (max-width: 820px) {
  .links { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; padding: 12px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .links.open { display: flex; }
  .links a { padding: 11px 12px; font-size: 16px; }
  .menu-btn { display: inline-grid; }
  .docs { display: block; padding: 0 16px; }
  .side { position: static; height: auto; display: none; padding: 16px 0 0; }
  .side.open { display: block; }
  .side-toggle { display: flex; width: 100%; margin-top: 16px; }
  .doc { padding-top: 26px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .stage { height: 480px; }
  .f1, .f3 { display: none; }
  .f2 { top: 0; }
  .f2 .screen { height: 400px; }
  .calc-out { font-size: 44px; }
  .cell, .cell.wide { grid-column: span 6; }
  section.block { padding-top: 76px; }
  .panel { padding: 22px 18px; }
  .btn-full { width: 100%; }
  .actions .btn { flex: 1 1 100%; }
  .cta { padding: 48px 20px; margin-top: 76px; }
  .matrix li { padding: 13px 16px; }
  .brand-extra { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js h1 .word, .js .reveal { opacity: 1; transform: none; filter: none; }
  .cursor { display: none; }
}

.faq { max-width: 820px; }
.faq details.q > p { color: var(--soft); }

.dls { margin: 0 0 26px; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.dl { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--line); transition: background .2s; }
.dl:first-child { border-top: 0; }
.dl b { font-weight: 600; }
.dl small { display: block; font-size: 14px; color: var(--soft); }
.dl .btn { flex: none; }
.dl .rec { display: none; margin-left: 10px; font: 500 12px/1 var(--mono); color: var(--accent); }
.dl.recommended { background: var(--accent-wash); }
.dl.recommended .rec { display: inline; }
.dl.recommended .btn { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.preview { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--soft); font-size: 15px; }
.all-versions { font-size: 14.5px; color: var(--faint); margin: 16px 2px 0; }
@media (max-width: 640px) {
  .dl { flex-direction: column; align-items: stretch; }
  .dl .rec { display: none; }
  .dl.recommended .rec { display: block; margin: 4px 0 0; }
}
