:root {
  --bg: #0D0F12;
  --surface: #14171C;
  --surface-2: #1A1E24;
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.14);
  --grid: rgba(255,255,255,.045);
  --text: #EDEEF0;
  --dim: #9AA0AA;
  --faint: #8A909B;
  --amber: #F5A524;
  --amber-2: #FFC861;
  --amber-deep: #D9820F;
  --amber-soft: rgba(245,165,36,.12);
  --amber-line: rgba(245,165,36,.35);
  --on-amber: #14110A;
  --ok: #6EE7A0;
  --ok-soft: rgba(110,231,160,.1);
  --bad: #FF8A8A;
  --bad-soft: rgba(255,138,138,.1);
  --r: 16px;
  --r-lg: 24px;
  --wrap: 1160px;
  --head: 72px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "SF Pro Text", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "SF Pro Display", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "JetBrains Mono", "SF Mono", Consolas, Menlo, monospace;
  --ease: cubic-bezier(.2,.8,.2,1);
  color-scheme: dark;
  interpolate-size: allow-keywords;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { max-width: 100%; }
a { color: var(--amber); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--amber); color: var(--on-amber); }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 650; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; line-height: 1.3; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.grad { background: linear-gradient(100deg, var(--amber-2) 0%, var(--amber) 45%, var(--amber-deep) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--dim); font-size: 1.12rem; }

/* header + scroll progress */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(13,15,18,.72); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--head); flex-wrap: wrap; }
.brand img { display: block; height: 22px; width: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav a { color: var(--dim); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: .95rem; transition: color .15s, background-color .15s; }
.site-nav a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.site-nav .btn { margin-left: 10px; padding: 9px 16px; font-size: .92rem; color: var(--on-amber); }
.site-nav .btn:hover { background: var(--amber-2); color: var(--on-amber); }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--amber-deep), var(--amber-2)); transform-origin: 0 50%; transform: scaleX(0); }
[data-motion="off"] .progress { display: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 600; font-size: 1rem; line-height: 1; padding: 15px 22px; border-radius: 12px; border: 1px solid transparent; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, box-shadow .2s; }
.btn svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--amber); color: var(--on-amber); box-shadow: 0 0 0 1px rgba(255,200,97,.4) inset, 0 10px 30px -10px rgba(245,165,36,.55); }
.btn-primary:hover { background: var(--amber-2); color: var(--on-amber); box-shadow: 0 0 0 1px rgba(255,220,150,.5) inset, 0 14px 36px -10px rgba(245,165,36,.7); }
.btn-ghost { color: var(--text); border-color: var(--line-2); background: rgba(255,255,255,.02); text-decoration: none; }
.btn-ghost:hover { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.05); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 80px; isolation: isolate; --mx: -999px; --my: -999px; }
.hero::before, .hero .grid-hot { content: ""; position: absolute; inset: -72px 0 0; z-index: -3; background-size: 56px 56px; }
.hero::before {
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, #000 35%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, #000 35%, transparent 78%);
}
.hero .grid-hot {
  z-index: -2; pointer-events: none;
  background-image: linear-gradient(rgba(245,165,36,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(245,165,36,.5) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(240px circle at var(--mx) var(--my), #000, transparent 72%);
  mask-image: radial-gradient(240px circle at var(--mx) var(--my), #000, transparent 72%);
}
.net { position: absolute; left: 0; top: -72px; width: 100%; height: calc(100% + 72px); z-index: -1; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 85% 80% at 62% 38%, #000 30%, transparent 85%); mask-image: radial-gradient(ellipse 85% 80% at 62% 38%, #000 30%, transparent 85%); }
[data-motion="calm"] .hero .grid-hot, [data-motion="off"] .hero .grid-hot, [data-motion="calm"] .net, [data-motion="off"] .net { display: none; }
.hero::after { content: ""; position: absolute; z-index: -2; pointer-events: none; width: 760px; height: 760px; right: -180px; top: -200px; background: radial-gradient(closest-side, rgba(245,165,36,.20), rgba(245,165,36,.05) 55%, transparent); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--dim); padding: 6px 14px 6px 8px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); margin-bottom: 26px; }
.pill b { white-space: nowrap; font-weight: 600; font-size: .78rem; color: var(--on-amber); background: var(--amber); border-radius: 999px; padding: 3px 10px; }
.hero h1 { font-size: clamp(2.7rem, 5.6vw, 4.5rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; margin-bottom: 22px; }
.hero h1 .paren { color: var(--amber); font-family: var(--mono); font-weight: 600; letter-spacing: -.05em; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.w > span { display: inline-block; }
[data-motion="full"] .h1 .w > span, [data-motion="calm"] .h1 .w > span { transform: translateY(112%); }
[data-motion="full"] .h1.play .w > span, [data-motion="calm"] .h1.play .w > span { animation: wordUp .9s var(--ease) both; animation-delay: calc(var(--i) * 75ms + 80ms); }
.hero .lead { font-size: 1.15rem; max-width: 32em; margin-bottom: 20px; }
.auto-line { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .92rem; color: var(--dim); margin-bottom: 30px; min-height: 1.6em; }
.auto-line .pr { color: var(--amber); }
.auto-line b { color: var(--text); font-weight: 500; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.checks { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: .93rem; color: var(--dim); }
.checks li { display: inline-flex; align-items: center; gap: 8px; }
.checks svg { width: 16px; height: 16px; color: var(--amber); flex: none; }
[data-motion="full"] .hero-fade, [data-motion="calm"] .hero-fade { opacity: 0; }
[data-motion="full"] .hero-fade.play, [data-motion="calm"] .hero-fade.play { animation: fadeIn .8s ease both; animation-delay: calc(var(--d, 0) * 1ms + 500ms); }
.cursor { display: inline-block; width: 8px; height: 1.05em; background: var(--amber); vertical-align: -2px; margin-left: 3px; animation: blink 1.1s steps(1) infinite; }
[data-motion="off"] .cursor { display: none; }

/* automation scene */
.scene-box { position: relative; }
.scene { display: block; width: 100%; height: auto; overflow: visible; }
.link { fill: none; stroke: rgba(255,200,97,.38); stroke-width: 1.6; stroke-dasharray: 3 7; stroke-linecap: round; }
.link.out { stroke: rgba(110,231,160,.34); }
.link.inb { animation: dash 1.2s linear infinite; }
.link.out { animation: dash 1.2s linear infinite reverse; }
.node-box { fill: #181C22; stroke: rgba(255,255,255,.16); stroke-width: 1; transition: stroke .3s; }
.node.hit .node-box { animation: nodeHit .9s ease; }
.node-ic { fill: none; stroke: var(--amber); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.node-lbl { fill: var(--dim); font: 13px var(--mono); text-anchor: middle; }
.ring { fill: none; }
.r1 { stroke: rgba(245,165,36,.45); stroke-width: 1.5; stroke-dasharray: 2 9; stroke-linecap: round; animation: rot 50s linear infinite; }
.r2 { stroke: rgba(245,165,36,.3); stroke-width: 1; stroke-dasharray: 46 14 6 14; animation: rot 26s linear infinite reverse; }
.r3 { stroke: rgba(255,200,97,.55); stroke-width: 2; stroke-dasharray: 30 200; stroke-linecap: round; animation: rot 3.2s linear infinite; }
.orb-g.pulse { animation: orb .7s var(--ease); }
.halo { animation: breathe 5s ease-in-out infinite; }
.core-txt { font: 700 22px var(--display); fill: #1b1305; text-anchor: middle; letter-spacing: -.02em; }
.pk-lbl { font: 11px var(--mono); fill: var(--dim); }
.ripple { fill: none; stroke-width: 1.6; transform-box: fill-box; transform-origin: center; animation: ripple .8s ease-out forwards; }
.toast-in { animation: toast 2s ease forwards; }
.toast-bg { fill: #10231a; stroke: rgba(110,231,160,.4); }
.toast-tx { fill: var(--ok); font: 12px var(--mono); }
.toast-ck { fill: none; stroke: var(--ok); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.live { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 10px; font-family: var(--mono); font-size: .8rem; color: var(--faint); flex-wrap: wrap; }
.live .dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(110,231,160,.6); animation: livePulse 1.8s infinite; display: inline-block; margin-right: 8px; }
.live b { color: var(--amber); font-weight: 500; font-variant-numeric: tabular-nums; }
[data-motion="off"] .live .dot-live { animation: none; }

/* tools marquee */
.tools { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; background: rgba(255,255,255,.012); overflow: hidden; }
.tools .wrap { display: flex; align-items: center; gap: 28px; }
.tools p { margin: 0; font-size: .85rem; color: var(--faint); white-space: nowrap; }
.marq-view { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marq { display: flex; width: max-content; animation: marq 36s linear infinite; }
.marq:hover { animation-play-state: paused; }
.marq ul { list-style: none; margin: 0; padding: 0 13px; display: flex; gap: 26px; font-family: var(--mono); font-size: .9rem; color: var(--dim); white-space: nowrap; }
[data-motion="calm"] .marq, [data-motion="off"] .marq { animation: none; width: auto; flex-wrap: wrap; }
[data-motion="calm"] .marq-dup, [data-motion="off"] .marq-dup { display: none; }
[data-motion="calm"] .marq ul, [data-motion="off"] .marq ul { flex-wrap: wrap; }
[data-motion="calm"] .marq-view, [data-motion="off"] .marq-view { -webkit-mask-image: none; mask-image: none; }

/* ---------- section basics ---------- */
section.block { padding: 112px 0; position: relative; }
.head { max-width: 720px; margin-bottom: 56px; }
.head .lead { margin: 0; }

/* ---------- see it work ---------- */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.shot { border-radius: var(--r-lg); border: 1px solid var(--line-2); background: linear-gradient(180deg, #171A20, #101216); box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), 0 0 70px -35px rgba(245,165,36,.3); overflow: hidden; font-size: .95rem; }
.shot-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); font-family: var(--mono); font-size: .74rem; color: var(--faint); }
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2C3038; }
.shot-bar span { margin-left: 8px; }
.shot-bar em { margin-left: auto; font-style: normal; border: 1px solid var(--line-2); border-radius: 6px; padding: 2px 8px; font-size: .7rem; }
.shot-body { padding: 20px 22px; min-height: 190px; }
.duo-cap { margin: 14px 4px 0; color: var(--dim); font-size: .95rem; }
.duo-cap strong { color: var(--text); font-weight: 600; }
.online { display: inline-flex; align-items: center; gap: 7px; color: var(--ok); }
.online::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: livePulse 1.8s infinite; }
.chat { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 56px); mask-image: linear-gradient(180deg, transparent 0, #000 56px); height: 330px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 18px; overflow: hidden; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 14px; line-height: 1.5; font-size: .95rem; }
.js:not([data-motion="off"]) .msg { animation: msgIn .45s var(--ease) both; }
.msg.user { align-self: flex-end; background: var(--amber-soft); border: 1px solid var(--amber-line); border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: rgba(255,255,255,.05); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.gone { animation: msgOut .35s ease forwards !important; }
.dots { display: inline-flex; gap: 4px; padding: 6px 0 4px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--dim); animation: dotb 1s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
.tests { list-style: none; margin: 0; padding: 12px 10px 8px; display: grid; gap: 2px; min-height: 280px; align-content: start; }
.test { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 10px; font-size: .86rem; transition: background-color .3s; }
.test + .test { border-top: 1px dashed rgba(255,255,255,.06); }
.test q { quotes: none; font-family: var(--mono); font-size: .8rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.test q::before { content: "\201C"; color: var(--faint); }
.test q::after { content: "\201D"; color: var(--faint); }
.test .bar { position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--amber-deep), var(--amber-2)); transform-origin: 0 50%; transform: scaleX(0); opacity: 0; border-radius: 2px; }
.test[data-s="run"] { background: rgba(245,165,36,.05); }
.test[data-s="run"] .bar { opacity: 1; transform: scaleX(1); transition: transform 1.1s linear; }
.test[data-s="bad"] { background: var(--bad-soft); }
.tchip { min-width: 74px; text-align: center; font-family: var(--mono); font-size: .7rem; padding: 3px 9px; border-radius: 999px; color: var(--faint); background: rgba(255,255,255,.04); transition: color .3s, background-color .3s; }
.test[data-s="run"] .tchip { color: var(--amber); background: var(--amber-soft); }
.test[data-s="ok"] .tchip, .test[data-s="fixed"] .tchip { color: var(--ok); background: var(--ok-soft); }
.test[data-s="bad"] .tchip { color: var(--bad); background: rgba(255,138,138,.15); animation: shake .4s ease; }
.fixnote { grid-column: 1 / -1; overflow: hidden; height: 0; opacity: 0; font-size: .8rem; color: var(--dim); transition: height .4s var(--ease), opacity .4s; }
.test[data-s="fixed"] .fixnote, .test[data-s="bad"] .fixnote.show { height: auto; opacity: 1; padding-top: 2px; }
.fixnote b { color: var(--ok); font-weight: 600; }
.t-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); font-family: var(--mono); font-size: .76rem; color: var(--faint); }
.t-stats div { padding: 12px 16px; }
.t-stats div + div { border-left: 1px solid var(--line); }
.t-stats b { display: block; font-size: 1.15rem; color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.t-stats .bad b { color: var(--bad); }
.t-stats .good b { color: var(--ok); }

/* ---------- scroll story ---------- */
.story { height: 360vh; position: relative; }
.stick { position: sticky; top: var(--head); height: calc(100vh - var(--head)); height: calc(100svh - var(--head)); display: flex; align-items: center; }
.stick .wrap { width: 100%; }
.story .head { margin-bottom: 34px; max-width: 640px; }
.story .head h2 { margin-bottom: .3em; }
.track { position: relative; margin-bottom: 36px; }
.rail { position: absolute; left: 18px; width: 75%; top: 17px; height: 2px; background: var(--line-2); border-radius: 2px; }
.rail .fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--amber-deep), var(--amber-2)); transform-origin: 0 50%; transform: scaleX(var(--f, 0)); border-radius: 2px; }
.rail .packet { position: absolute; top: 50%; left: calc(var(--f, 0) * 100%); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--amber-2); box-shadow: 0 0 0 4px rgba(245,165,36,.2), 0 0 24px 4px rgba(245,165,36,.55); }
.nodes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.nodes li { display: flex; flex-direction: column; gap: 14px; padding-right: 12px; color: var(--faint); transition: color .4s; }
.nodes .dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line-2); box-shadow: 0 0 0 6px var(--bg); transition: border-color .4s, background-color .4s, color .4s, box-shadow .4s; color: var(--faint); }
.nodes .dot svg { width: 16px; height: 16px; }
.nodes strong { font-weight: 600; font-size: .98rem; line-height: 1.25; }
.nodes li.on { color: var(--text); }
.nodes li.on .dot { border-color: var(--amber); color: var(--amber); background: #1b1608; }
.nodes li.now .dot { box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px var(--amber-line), 0 0 28px 2px rgba(245,165,36,.35); }
.stage { display: grid; }
.step { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: center; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s .45s; }
.step.active { opacity: 1; visibility: visible; transition-delay: 0s; }
.step h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 12px; }
.step .copy p { color: var(--dim); font-size: 1.08rem; max-width: 24em; margin: 0; }
.rise { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .6s var(--ease); }
.step.active .rise { opacity: 1; transform: none; transition-delay: calc(var(--d, 0) * 90ms + 120ms); }
.mail-from { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--amber-soft); border: 1px solid var(--amber-line); color: var(--amber); display: grid; place-items: center; font-weight: 600; font-size: .9rem; flex: none; }
.mail-from b { display: block; line-height: 1.2; }
.mail-from small { color: var(--faint); font-size: .8rem; }
.mail-sub { font-weight: 600; margin-bottom: 6px; }
.mail-body { color: var(--dim); margin: 0; }
.scan { position: relative; margin-top: 14px; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line-2); font-family: var(--mono); font-size: .8rem; color: var(--dim); overflow: hidden; }
.scan::after { content: ""; position: absolute; top: 0; bottom: 0; width: 38%; left: -45%; background: linear-gradient(90deg, transparent, rgba(245,165,36,.2), transparent); }
.step.active .scan::after { animation: sweep 2.4s ease-in-out .5s infinite; }
.fields { display: grid; gap: 8px; margin-top: 14px; }
.field-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 12px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--line); font-size: .9rem; }
.field-row span { color: var(--faint); }
.field-row b { font-weight: 600; color: var(--amber); }
.sheet { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .86rem; }
.sheet th { text-align: left; font-weight: 500; color: var(--faint); padding: 8px 10px; border-bottom: 1px solid var(--line-2); font-family: var(--mono); font-size: .74rem; }
.sheet td { padding: 10px; border-bottom: 1px solid var(--line); color: var(--dim); }
.sheet td:first-child { color: var(--faint); font-family: var(--mono); font-size: .78rem; }
.sheet tr.new td { color: var(--text); background: rgba(245,165,36,.08); }
.sheet tr.new td:first-child { color: var(--amber); }
.step.active .sheet tr.new { animation: rowFlash 1.8s ease .5s both; }
.summary { display: grid; gap: 14px; }
.sum-head { display: flex; align-items: center; gap: 12px; }
.sum-check { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); border: 1px solid rgba(110,231,160,.3); color: var(--ok); flex: none; }
.sum-check svg { width: 16px; height: 16px; }
.sum-check path { stroke-dasharray: 20; stroke-dashoffset: 20; }
.step.active .sum-check path { animation: draw .6s ease .6s forwards; }
.sum-head b { display: block; line-height: 1.25; }
.sum-head small { color: var(--faint); font-size: .8rem; }
.sum-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sum-list li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 12px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--line); font-size: .9rem; color: var(--dim); }
.sum-list b { color: var(--text); font-weight: 600; }
.example-tag { display: inline-block; margin-top: 16px; font-family: var(--mono); font-size: .76rem; color: var(--faint); }

/* ---------- numbers ---------- */
.terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.terms > div { padding: 34px 28px; }
.terms > div + div { border-left: 1px solid var(--line); }
.terms .big { color: var(--text); font-family: var(--display); font-size: clamp(2.4rem, 4.5vw, 3.4rem); font-weight: 650; letter-spacing: -.035em; line-height: 1; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.terms .big small { font-size: 1rem; color: var(--dim); font-weight: 500; letter-spacing: 0; margin-right: 6px; }
.terms h3 { font-size: 1.05rem; margin-bottom: 6px; }
.terms p { color: var(--dim); font-size: .95rem; margin: 0; }

/* ---------- services ---------- */
.svc-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.panel { --x: 50%; --y: 0%; position: relative; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface-2), var(--surface) 60%); padding: 30px 26px 26px; display: flex; flex-direction: column; isolation: isolate; overflow: hidden; }
.panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px circle at var(--x) var(--y), rgba(245,165,36,.16), transparent 45%); opacity: 0; transition: opacity .3s; }
.panel::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: radial-gradient(260px circle at var(--x) var(--y), rgba(255,200,97,.9), transparent 60%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); opacity: 0; transition: opacity .3s; pointer-events: none; }
[data-motion="full"] .panel:hover::before, [data-motion="full"] .panel:hover::after { opacity: 1; }
.panel.feature { border-color: var(--amber-line); }
.tile { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--amber-soft); border: 1px solid var(--amber-line); color: var(--amber); margin-bottom: 22px; }
.tile svg { width: 22px; height: 22px; }
.panel h3 { font-size: 1.35rem; margin-bottom: 8px; }
.panel p { color: var(--dim); font-size: .98rem; margin-bottom: 24px; }
.price { margin-top: auto; align-self: flex-start; font-family: var(--mono); font-size: .84rem; color: var(--amber); padding: 5px 11px; border-radius: 8px; background: var(--amber-soft); }
.price em { font-style: normal; opacity: .85; }
.clock-hand { transform-origin: 12px 12px; }
[data-motion="full"] .panel:hover .clock-hand { animation: spin 2.4s linear infinite; }
.spark { transform-origin: 12px 10px; }
[data-motion="full"] .panel:hover .spark { animation: pulse 1.2s ease-in-out infinite; }
.shield-check path { stroke-dasharray: 14; stroke-dashoffset: 0; }
.shield-check.pre path { stroke-dashoffset: 14; }
.shield-check.in path { animation: draw .7s ease .2s both; }

/* ---------- faq ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-weight: 600; font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); background: no-repeat center / 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23F5A524' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M6 2v8M2 6h8'/%3E%3C/svg%3E"); transition: transform .3s var(--ease), background-color .2s; }
.faq summary:hover::after { background-color: var(--amber-soft); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--dim); margin: -6px 0 22px; max-width: 40em; }
[data-motion="full"] .faq details::details-content, [data-motion="calm"] .faq details::details-content { height: 0; overflow: clip; opacity: 0; transition: height .4s var(--ease), opacity .3s ease, content-visibility .4s allow-discrete; }
[data-motion="full"] .faq details[open]::details-content, [data-motion="calm"] .faq details[open]::details-content { height: auto; opacity: 1; }

/* ---------- cta ---------- */
.cta { position: relative; isolation: isolate; padding: 64px 56px; border-radius: 28px; border: 1px solid var(--amber-line); background: radial-gradient(80% 90% at 0% 0%, rgba(245,165,36,.13), transparent 60%), linear-gradient(180deg, var(--surface-2), var(--surface)); box-shadow: 0 40px 120px -50px rgba(245,165,36,.35); display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; overflow: hidden; }
.cta h2 { font-size: clamp(2rem, 3.6vw, 2.7rem); max-width: 14em; margin-bottom: .3em; }
.cta p { color: var(--dim); font-size: 1.08rem; margin: 0; max-width: 28em; }
.cta-zone { padding: 36px 40px; margin: -36px -40px; }
.magnetic { will-change: transform; transition: transform .35s var(--ease), background-color .15s, box-shadow .2s; font-size: 1.1rem; padding: 18px 28px; }
.magnetic.live { transition: transform .08s linear, background-color .15s, box-shadow .2s; }

.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; margin-top: 40px; color: var(--faint); font-size: .9rem; }
.site-footer p { margin: 0; max-width: 40em; }


/* ---------- full-site additions ---------- */
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

.nav-toggle { display: none; background: transparent; border: 1px solid var(--line-2); color: var(--text); border-radius: 10px; width: 42px; height: 40px; cursor: pointer; padding: 0; }
.nav-toggle svg { width: 20px; height: 20px; }
.site-nav a.active { color: var(--text); }

.svc-list { list-style: none; margin: 0; padding: 0; }
.svc-list li { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 15px 0; border-top: 1px solid var(--line); }
.svc-list strong { display: block; font-weight: 600; font-size: .98rem; }
.svc-list small { display: block; color: var(--dim); font-size: .86rem; line-height: 1.45; margin-top: 3px; }
.svc-list .price { margin: 1px 0 0; align-self: auto; white-space: nowrap; transition: background-color .2s, color .2s; }
.svc-list li:hover .price { background: var(--amber); color: var(--on-amber); }
.svc-list li.top { margin: 6px -12px 0; padding: 15px 12px; border: 1px solid transparent; border-radius: 14px;
  background: linear-gradient(#1b1708, #1b1708) padding-box, conic-gradient(from var(--a), rgba(245,165,36,.28) 0%, rgba(245,165,36,.28) 58%, #FFC861 80%, rgba(245,165,36,.28) 100%) border-box;
  animation: borderSpin 5s linear infinite; }
.svc-list li.top .price { background: var(--amber); color: var(--on-amber); }
.svc-list li.top .price em { color: rgba(20,17,10,.7); }
.flow { margin-top: auto; padding-top: 22px; }
.flow-box { border: 1px dashed var(--line-2); border-radius: 14px; padding: 16px; font-family: var(--mono); font-size: .78rem; color: var(--dim); }
.flow-box p { margin: 0 0 12px; color: var(--faint); font-size: .78rem; }
.flow-steps { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.flow-steps span { padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); color: var(--dim); transition: border-color .35s, background-color .35s, color .35s, box-shadow .35s; }
.flow-steps i { font-style: normal; color: var(--faint); transition: color .35s, transform .35s var(--ease); display: inline-block; }
.flow-steps span.lit { border-color: var(--amber-line); background: var(--amber-soft); color: var(--text); box-shadow: 0 0 18px -4px rgba(245,165,36,.5); }
.flow-steps i.lit { color: var(--amber); transform: translateX(2px); }
.flow-steps span.ok.lit { border-color: rgba(110,231,160,.35); background: var(--ok-soft); color: var(--ok); box-shadow: 0 0 18px -4px rgba(110,231,160,.45); }
.svc-note { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; padding: 18px 24px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); color: var(--dim); font-size: .93rem; }
.svc-note strong { color: var(--text); font-weight: 600; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; position: relative; }
.steps::before { content: ""; position: absolute; left: 24px; right: 24px; top: 24px; height: 1px; background: linear-gradient(90deg, var(--amber), var(--line) 85%); transform-origin: 0 50%; transition: transform 1.7s var(--ease); }
.steps li { position: relative; z-index: 1; }
.steps li:nth-child(2) { --i: 1; }
.steps li:nth-child(3) { --i: 2; }
.steps .num { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: .9rem; color: var(--amber); background: var(--bg); border: 1px solid var(--amber-line); box-shadow: 0 0 0 6px var(--bg); margin-bottom: 26px; transition: transform .6s var(--ease) calc(var(--i, 0) * 450ms), opacity .4s ease calc(var(--i, 0) * 450ms), box-shadow .6s ease calc(var(--i, 0) * 450ms); }
.steps li > :not(.num) { transition: opacity .6s ease calc(var(--i, 0) * 450ms + 200ms), transform .6s var(--ease) calc(var(--i, 0) * 450ms + 200ms); }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--dim); margin: 0; max-width: 30em; }
.js:not([data-motion="off"]) .steps:not(.in)::before { transform: scaleX(0); }
.js:not([data-motion="off"]) .steps:not(.in) .num { transform: scale(.5); opacity: 0; }
.js:not([data-motion="off"]) .steps:not(.in) li > :not(.num) { opacity: 0; transform: translateY(12px); }
.steps.in .num { box-shadow: 0 0 0 6px var(--bg), 0 0 26px -2px rgba(245,165,36,.35); }

.fine { margin: 18px 0 0; color: var(--faint); font-size: .88rem; }
.terms { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.about .lead { font-size: 1.12rem; color: var(--dim); }
.feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feat { padding: 24px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); transition: border-color .25s, transform .3s var(--ease); }
.feat:hover { border-color: var(--amber-line); }
[data-motion="full"] .feat:hover { transform: translateY(-3px); }
.feat svg { width: 24px; height: 24px; color: var(--amber); margin-bottom: 14px; overflow: visible; }
.feat svg * { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js:not([data-motion="off"]) .feat:not(.in) svg * { stroke-dashoffset: 1; }
.feat.in svg * { animation: drawp 1.1s ease both; }
.feat:nth-child(2).in svg * { animation-delay: .15s; }
.feat:nth-child(3).in svg * { animation-delay: .3s; }
.feat:nth-child(4).in svg * { animation-delay: .45s; }
.feat h3 { font-size: 1.02rem; margin-bottom: 6px; }
.feat p { color: var(--dim); font-size: .92rem; margin: 0; }

.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; padding: 56px; border-radius: 28px; border: 1px solid var(--amber-line);
  background: radial-gradient(80% 90% at 0% 0%, rgba(245,165,36,.13), transparent 60%), linear-gradient(180deg, var(--surface-2), var(--surface)); box-shadow: 0 40px 120px -50px rgba(245,165,36,.35); }
.contact h2 { font-size: clamp(2rem, 3.6vw, 2.7rem); }
.contact .lead { color: var(--dim); font-size: 1.08rem; }
.contact-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; color: var(--dim); }
.contact-points li { display: flex; gap: 10px; align-items: center; }
.contact-points svg { width: 18px; height: 18px; color: var(--amber); flex: none; }
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.field input, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: rgba(0,0,0,.25); border: 1px solid var(--line-2); border-radius: 12px; padding: 13px 15px; transition: border-color .15s, box-shadow .2s; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 4px rgba(245,165,36,.15), 0 0 30px -8px rgba(245,165,36,.45); }
.field textarea { min-height: 150px; resize: vertical; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.form-foot .small { margin: 0; font-size: .86rem; color: var(--faint); }
.form-status { margin: 0; min-height: 1.4em; font-size: .93rem; }
.form-status.error { color: var(--bad); }
.btn[disabled] { opacity: .75; cursor: progress; }
.btn.sending svg { display: none; }
.btn.sending::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--on-amber); border-right-color: transparent; animation: spin .7s linear infinite; }
.sent { display: none; padding: 32px; border-radius: var(--r); border: 1px solid rgba(110,231,160,.3); background: var(--ok-soft); outline: none; }
.sent.show { display: block; animation: msgIn .55s var(--ease); }
.sent.show ~ .form { display: none; }
.sent h3 { color: var(--ok); margin-bottom: 6px; }
.sent p { margin: 0; color: var(--dim); }
.sent .demo-tag { margin-top: 14px; font-family: var(--mono); font-size: .78rem; color: var(--faint); }
.sent-ck { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(110,231,160,.14); border: 1px solid rgba(110,231,160,.4); color: var(--ok); margin-bottom: 16px; }
.sent-ck svg { width: 22px; height: 22px; }
.sent.show .sent-ck { animation: okpop .7s var(--ease); }
.sent.show .sent-ck path { stroke-dasharray: 20; animation: draw .6s ease .25s both; }

.site-footer .wrap { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.site-footer a { color: var(--dim); text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.site-footer .brand { display: inline-block; margin-bottom: 8px; }
.site-footer .wrap p { margin: 0; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer .demo-note { width: 100%; max-width: none; font-size: .82rem; color: var(--faint); border-top: 1px solid var(--line); padding-top: 20px; }

@media (max-width: 1020px) {
  .terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .terms > div:nth-child(3) { border-left: 0; }
  .terms > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .about, .contact { grid-template-columns: 1fr; gap: 40px; }
  .contact { padding: 32px 24px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { left: 24px; right: auto; top: 24px; bottom: 24px; width: 1px; height: auto; background: linear-gradient(180deg, var(--amber), var(--line)); transform-origin: 50% 0; }
  .js:not([data-motion="off"]) .steps:not(.in)::before { transform: scaleY(0); }
  .steps li { padding-left: 76px; }
  .steps .num { position: absolute; left: 0; top: 0; }
}
@media (max-width: 560px) {
  .terms, .feats, .form-row { grid-template-columns: 1fr; }
  .terms > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .contact { padding: 24px 16px; }
}
@keyframes borderSpin { to { --a: 360deg; } }
@keyframes drawp { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes okpop { 0% { transform: scale(.5); opacity: 0; } 60% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); } }

/* ---------- keyframes ---------- */
@keyframes wordUp { from { transform: translateY(112%); } to { transform: none; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes draw { from { stroke-dashoffset: 20; } to { stroke-dashoffset: 0; } }
@keyframes marq { to { transform: translateX(-50%); } }
@keyframes sweep { to { left: 110%; } }
@keyframes rowFlash { 0% { background: rgba(245,165,36,.5); } 100% { background: transparent; } }
@keyframes pulse { 50% { transform: scale(1.18) rotate(8deg); } }
@keyframes dash { to { stroke-dashoffset: -20; } }
@keyframes rot { to { transform: rotate(360deg); } }
@keyframes orb { 0% { transform: scale(1); } 30% { transform: scale(1.14); } 100% { transform: scale(1); } }
@keyframes breathe { 50% { transform: scale(1.08); opacity: .8; } }
@keyframes ripple { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
@keyframes nodeHit { 0% { stroke: var(--ok); stroke-width: 2.5; } 100% { stroke: rgba(255,255,255,.16); stroke-width: 1; } }
@keyframes toast { 0% { opacity: 0; transform: translateY(10px); } 14% { opacity: 1; transform: none; } 78% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-8px); } }
@keyframes livePulse { 70% { box-shadow: 0 0 0 8px rgba(110,231,160,0); } 100% { box-shadow: 0 0 0 0 rgba(110,231,160,0); } }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes msgOut { to { opacity: 0; transform: translateY(-10px); } }
@keyframes dotb { 0%, 80%, 100% { transform: translateY(0); opacity: .4; } 40% { transform: translateY(-4px); opacity: 1; } }
@keyframes shake { 20%, 60% { transform: translateX(-3px); } 40%, 80% { transform: translateX(3px); } }

/* ---------- motion off: everything static and readable ---------- */
[data-motion="off"] .story { height: auto; }
[data-motion="off"] .stick { position: static; height: auto; padding: 112px 0; }
[data-motion="off"] .track { display: none; }
[data-motion="off"] .stage { gap: 56px; }
[data-motion="off"] .step { grid-area: auto; opacity: 1; visibility: visible; transition: none; }
[data-motion="off"] .rise { opacity: 1; transform: none; transition: none; }
[data-motion="off"] .shield-check.pre path { stroke-dashoffset: 0; }
[data-motion="off"] .sum-check path { stroke-dashoffset: 0; }
[data-motion="off"] *, [data-motion="off"] *::before, [data-motion="off"] *::after { animation: none !important; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .svc-grid { grid-template-columns: 1fr; max-width: 680px; }
}
@media (max-width: 900px) {
  .hero { padding: 48px 0 64px; }
  .hero .wrap, .faq-wrap, .duo { grid-template-columns: 1fr; gap: 40px; }
  .duo { gap: 32px; }
  section.block { padding: 80px 0; }
  .nav-toggle { display: grid; place-items: center; }
  .site-nav { display: none; width: 100%; padding: 4px 0 16px; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a { padding: 12px; display: block; }
  .site-nav .btn { margin: 8px 0 0; justify-content: center; display: flex; }
  .terms { grid-template-columns: 1fr; }
  .terms > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .cta { padding: 40px 28px; }
  .step { grid-template-columns: 1fr; gap: 20px; }
  .step h3 { font-size: 1.4rem; margin-bottom: 6px; }
  .step .copy p { font-size: 1rem; max-width: none; }
  .story .head { margin-bottom: 20px; }
  .story .head .lead { display: none; }
  .track { margin-bottom: 20px; }
  .nodes strong { font-size: .8rem; }
  .nodes li { gap: 10px; padding-right: 6px; }
  .shot-body { min-height: 0; padding: 16px; }
  .example-tag { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .tools .wrap { gap: 14px; }
  .tools p { white-space: normal; max-width: 7em; }
  .t-stats div { padding: 10px; }
  .chat { height: 300px; }
  .tchip { min-width: 64px; }
}

/* ---------- production additions ---------- */
:root { --danger: #FF8A8A; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 12px; background: var(--amber); color: var(--on-amber); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.amber { color: var(--amber); }
.sp { margin-left: 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sent:target { display: block; }
.sent:target ~ .form { display: none; }
.site-footer { padding-bottom: 48px; }
.site-header .wrap > .btn { margin-left: auto; }
.h1 .w:nth-child(1) { --i: 0; }
.h1 .w:nth-child(2) { --i: 1; }
.h1 .w:nth-child(3) { --i: 2; }
.h1 .w:nth-child(4) { --i: 3; }
.h1 .w:nth-child(5) { --i: 4; }
.h1 .w:nth-child(6) { --i: 5; }
.h1 .w:nth-child(7) { --i: 6; }
.d0 { --d: 0; }
.d1 { --d: 1; }
.d2 { --d: 2; }
.d3 { --d: 3; }
.d4 { --d: 4; }
.d5 { --d: 5; }
.d250 { --d: 250; }
.d350 { --d: 350; }
.d450 { --d: 450; }
.d550 { --d: 550; }
.d650 { --d: 650; }

/* ---------- pages: privacy and 404 ---------- */
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 0.82rem; color: var(--amber); margin: 0 0 18px; letter-spacing: .02em; }
.kicker::before { content: ""; width: 22px; height: 1px; background: var(--amber); }
.console {
  position: relative;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, #171A20 0%, #101216 100%);
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.03) inset, 0 0 80px -30px rgba(245,165,36,.25);
  overflow: hidden;
  font-family: var(--mono);
}
.console-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.02); }
.console-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2C3038; display: block; }
.console-bar span { margin-left: 10px; font-size: 0.78rem; color: var(--faint); }
.console-bar em { margin-left: auto; font-style: normal; font-size: 0.72rem; color: var(--faint); border: 1px solid var(--line-2); border-radius: 6px; padding: 2px 8px; }
.console-body { padding: 10px 8px 14px; }
/* simple pages (privacy, 404) */
.doc { max-width: 760px; padding: 72px 24px 40px; margin: 0 auto; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.doc h2 { font-size: 1.4rem; margin-top: 2.2em; }
.doc h3 { font-size: 1.05rem; margin-top: 1.4em; }
.doc p, .doc li { color: var(--dim); }
.doc ul { padding-left: 1.2em; }

/* 404 */
body:has(> .nf) { min-height: 100vh; display: flex; flex-direction: column; }
body:has(> .nf) > .nf { flex: 1; }
body:has(> .nf) > .site-footer { margin-top: 0; }
.nf { position: relative; isolation: isolate; display: flex; align-items: center; padding: 64px 0; }
.nf::before {
  content: ""; position: absolute; inset: -72px 0 0; z-index: -2;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 30%, transparent 75%);
}
.nf::after { content: ""; position: absolute; z-index: -1; width: 640px; height: 640px; left: 50%; top: 50%; transform: translate(-10%, -60%); background: radial-gradient(closest-side, rgba(245,165,36,.16), transparent); pointer-events: none; }
.nf-wrap { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; }
.nf h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; margin-bottom: 20px; }
.nf h1 .grad { font-family: var(--mono); letter-spacing: -0.04em; }
.nf .lead { font-size: 1.15rem; color: var(--dim); max-width: 30em; margin-bottom: 30px; }
.nf-code { padding: 22px 24px; font-size: 0.92rem; line-height: 2; }
.nf-code p { margin: 0; color: var(--text); }
.nf-code .str { color: #7DD3FC; }
.nf-code .err { color: var(--danger); padding-left: 16px; margin-bottom: 10px; }
.nf-code .sug { color: var(--faint); padding-left: 16px; }
.nf-code .sug a { color: var(--amber); text-decoration: none; }
.nf-code .sug a:hover { text-decoration: underline; }
@media (max-width: 900px) { .nf-wrap { grid-template-columns: 1fr; gap: 40px; } }

