/* ZipXP website — hand-written, no build step. */

:root {
  --ink: #0b0b0c;
  --ink-2: #232325;
  --body: #434347;
  --muted: #636366;
  --line: #e3e8ef;
  --line-2: #eef2f7;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --dark: #0a1a33;
  --dark-2: #11264a;
  --accent: #1d58d8;
  --accent-2: #2f7df6;
  --accent-ink: #1747c4;
  --cyan: #12c2e9;
  --amber: #f2a93b;
  --green: #18b67a;
  --red: #e5484d;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(10, 26, 51, .06), 0 2px 6px rgba(10, 26, 51, .05);
  --shadow: 0 2px 5px rgba(50, 50, 93, .08), 0 12px 32px -6px rgba(50, 50, 93, .18), 0 6px 16px -8px rgba(0, 0, 0, .18);
  --shadow-lg: 0 30px 60px -12px rgba(50, 50, 93, .25), 0 18px 36px -18px rgba(0, 0, 0, .3);
  --max: 1120px;
  --gutter: 24px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-feature-settings: "ss01", "cv11";
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { color: var(--ink); margin: 0; letter-spacing: -.02em; line-height: 1.1; }
p { margin: 0; }
code, kbd, pre { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
@media (max-width: 640px) { :root { --gutter: 16px; } body { font-size: 16px; } }

/* ---------- Guides (Stripe-like vertical grid lines) ---------- */
.guides { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.guides .container { height: 100%; display: grid; grid-template-columns: repeat(4, 1fr); }
.guides span { border-left: 1px dashed rgba(10, 26, 51, .07); }
.guides span:last-child { border-right: 1px dashed rgba(10, 26, 51, .07); }
.section--dark .guides span { border-color: rgba(255, 255, 255, .06); }
@media (max-width: 760px) { .guides { display: none; } }

/* ---------- Announcement bar ---------- */
.announce {
  position: relative; z-index: 30;
  background: var(--dark); color: #d2d2d2;
  font-size: 13.5px; text-align: center; padding: 9px 16px;
}
.announce a { color: #fff; font-weight: 600; }
.announce a:hover { color: var(--cyan); }
.announce .pill { display: inline-block; background: rgba(255,255,255,.12); color: #fff; font-weight: 600; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; border-radius: 99px; padding: 2px 8px; margin-right: 8px; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  transition: background .25s var(--ease), box-shadow .25s var(--ease), backdrop-filter .25s;
}
.nav.is-stuck { background: rgba(255, 255, 255, .82); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); box-shadow: 0 1px 0 rgba(10, 26, 51, .07); }
.nav__inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); letter-spacing: -.03em; }
.brand:hover { color: var(--ink); }
.brand svg { width: 30px; height: 30px; }
.brand small { font-weight: 600; font-size: 12px; color: var(--muted); letter-spacing: 0; border: 1px solid var(--line); border-radius: 99px; padding: 1px 8px; }
.nav__links { display: flex; gap: 4px; margin-left: 8px; }
.nav__links a, .nav__links button {
  font: inherit; font-size: 15px; font-weight: 600; color: var(--ink-2); background: none; border: 0; cursor: pointer;
  padding: 8px 12px; border-radius: 99px; transition: background .2s, color .2s;
}
.nav__links a:hover, .nav__links button:hover { background: rgba(10, 26, 51, .06); color: var(--ink); }
.nav__spacer { flex: 1; }
.nav__cta { display: flex; gap: 10px; align-items: center; }
.nav__menu { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav__menu span, .nav__menu span::before, .nav__menu span::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .25s var(--ease), background .2s; }
.nav__menu span::before, .nav__menu span::after { content: ""; position: absolute; left: 0; }
.nav__menu span::before { top: -6px; } .nav__menu span::after { top: 6px; }
.nav.is-open .nav__menu span { background: transparent; }
.nav.is-open .nav__menu span::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__menu span::after { transform: translateY(-6px) rotate(-45deg); }
.nav__drawer { display: none; }
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__menu { display: inline-flex; }
  .nav.is-open { background: #fff; box-shadow: 0 1px 0 var(--line); }
  .nav.is-open .nav__drawer { display: block; padding-block: 8px 22px; border-top: 1px solid var(--line-2); }
  .nav__drawer a { display: block; padding: 12px 0; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line-2); }
  .nav__drawer .btn { margin-top: 16px; width: 100%; justify-content: center; }
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--accent); --fg: #fff;
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: 15px; font-weight: 650; line-height: 1;
  padding: 12px 18px; border-radius: 99px; border: 0; cursor: pointer;
  background: var(--bg); color: var(--fg);
  transition: background .2s, transform .2s var(--ease), box-shadow .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { color: var(--fg); background: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn .arrow { display: inline-block; width: 10px; height: 10px; position: relative; margin-left: 2px; }
.btn .arrow::before { content: ""; position: absolute; left: 0; top: 4px; width: 0; height: 2px; background: currentColor; border-radius: 2px; transition: width .2s var(--ease); }
.btn .arrow::after { content: ""; position: absolute; left: 0; top: 1px; width: 6px; height: 6px; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); transition: transform .2s var(--ease); }
.btn:hover .arrow::before { width: 9px; }
.btn:hover .arrow::after { transform: translateX(3px) rotate(45deg); }
.btn--ghost { --bg: transparent; --fg: var(--ink); }
.btn--ghost:hover { --fg: var(--accent-ink); background: rgba(29, 88, 216, .08); }
.btn--light { --bg: #fff; --fg: var(--ink); box-shadow: var(--shadow-sm); }
.btn--light:hover { background: #f1f3ff; --fg: var(--accent-ink); }
.btn--sm { padding: 9px 14px; font-size: 14px; }
.btn--lg { padding: 15px 22px; font-size: 16px; }

/* ---------- Hero ---------- */
.hero { position: relative; margin-top: -68px; padding-top: 68px; overflow: hidden; isolation: isolate; }
.hero__bg {
  position: absolute; inset: 0 0 auto 0; height: 100%; z-index: -1;
  transform-origin: 0 100%; transform: skewY(-8deg); top: -22%;
  overflow: hidden;
}
.hero__bg canvas, .hero__bg .fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__bg .fallback {
  background:
    radial-gradient(60% 80% at 15% 30%, #8b9cff 0%, transparent 60%),
    radial-gradient(50% 70% at 70% 20%, #4cc2ff 0%, transparent 60%),
    radial-gradient(60% 80% at 90% 80%, #6ea4ff 0%, transparent 60%),
    radial-gradient(50% 60% at 40% 90%, #9fe8ff 0%, transparent 60%),
    #2f7df6;
}
.hero__bg canvas { opacity: 0; transition: opacity 1.2s ease; }
.hero__bg canvas.is-ready { opacity: 1; }
.hero__inner { position: relative; display: grid; grid-template-columns: .95fr 1.05fr; gap: 40px; align-items: center; padding-block: 80px 110px; }
.eyebrow-chip {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink);
  background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .7); backdrop-filter: blur(8px);
  padding: 5px 12px 5px 6px; border-radius: 99px; margin-bottom: 26px;
}
.eyebrow-chip b { background: var(--ink); color: #fff; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; }
.hero h1 {
  font-size: clamp(48px, 6vw, 82px); font-weight: 800; letter-spacing: -.045em; line-height: .98;
  color: var(--ink);
}
.hero__lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink); font-weight: 450; max-width: 520px; margin-top: 26px; line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 30px; font-size: 13.5px; color: var(--ink-2); font-weight: 500; }
.hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero__meta svg { width: 16px; height: 16px; color: var(--ink); }
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; padding-block: 60px 120px; gap: 56px; }
  .hero__bg { top: -30%; }
}

/* ---------- Screenshots ---------- */
.mock-wrap { position: relative; perspective: 1600px; }
.shot { margin: 0; border-radius: 14px; overflow: hidden; background: #1c2333; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.12); }
.shot img { width: 100%; height: auto; }
.shot--hero { transform: rotateY(-9deg) rotateX(4deg); transition: transform .6s var(--ease); }
.mock-wrap:hover .shot--hero { transform: rotateY(-4deg) rotateX(2deg); }
@media (max-width: 980px) { .shot--hero, .mock-wrap:hover .shot--hero { transform: none; } }
.mock-note { position: absolute; right: 8px; bottom: -28px; font-size: 12px; color: var(--muted); }
.float-card {
  position: absolute; background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 12px 14px; font-size: 12.5px; color: var(--ink);
  display: flex; align-items: center; gap: 10px; z-index: 3; animation: bob 6s ease-in-out infinite;
}
.float-card svg { width: 28px; height: 28px; flex: none; }
.float-card small { display: block; color: var(--muted); font-size: 11px; }
.float-card--a { left: -34px; bottom: 56px; }
.float-card--b { right: -18px; top: -22px; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-8px); } }
@media (max-width: 640px) { .float-card { display: none; } }
@media (prefers-reduced-motion: reduce) { .float-card { animation: none; } }
.tour { position: relative; z-index: 1; }
.tour__tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 99px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); margin-bottom: 26px; }
.tour__tabs button { font: inherit; font-size: 14.5px; font-weight: 600; color: #bababa; background: none; border: 0; padding: 9px 16px; border-radius: 99px; cursor: pointer; transition: background .2s, color .2s; }
.tour__tabs button:hover { color: #fff; }
.tour__tabs button[aria-selected="true"] { background: #fff; color: var(--ink); }
.tour .shot[hidden] { display: none; }
.tour figcaption { padding: 14px 18px; font-size: 14.5px; color: #d2d2d2; background: #121a2b; border-top: 1px solid rgba(255,255,255,.08); }

/* ---------- Generic sections ---------- */
.section { position: relative; padding: 120px 0; isolation: isolate; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--dark); color: #bababa; }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--tight { padding: 72px 0; }
@media (max-width: 760px) { .section { padding: 80px 0; } }
.eyebrow { display: inline-block; font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 14px; letter-spacing: -.01em; }
.section--dark .eyebrow { color: #fff; }
.h-xl { font-size: clamp(34px, 4.6vw, 54px); font-weight: 750; letter-spacing: -.035em; }
.h-lg { font-size: clamp(28px, 3.4vw, 40px); font-weight: 750; letter-spacing: -.03em; }
.lede { font-size: clamp(17px, 1.5vw, 19px); max-width: 640px; margin-top: 20px; }
.section-head { max-width: 760px; margin-bottom: 64px; position: relative; z-index: 1; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lede { margin-inline: auto; }
/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Tech strip ---------- */
.strip { padding: 34px 0 10px; position: relative; z-index: 1; }
.strip p { text-align: center; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.strip ul { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 44px; }
.strip li { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 19px; color: #696969; letter-spacing: -.02em; }
.strip li svg { width: 22px; height: 22px; }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; position: relative; z-index: 1; }
@media (max-width: 960px) { .pillars { grid-template-columns: 1fr; } }
.pillar { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--line-2); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pillar__art { height: 210px; position: relative; overflow: hidden; background: var(--bg-soft); border-bottom: 1px solid var(--line-2); }
.pillar__body { padding: 26px 26px 30px; }
.pillar__body .num { font-family: var(--mono); font-size: 12px; color: var(--muted); font-weight: 600; }
.pillar h3 { font-size: 22px; margin: 6px 0 10px; }
.pillar p { font-size: 15.5px; }
.pillar ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14.5px; }
.pillar li { display: flex; gap: 10px; }
.pillar li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 4px; border-radius: 50%; background: #e3edff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%231747c4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

/* pillar art: analyze (treemap) */
.treemap { position: absolute; inset: 22px; display: grid; grid-template-columns: 2fr 1.2fr 1fr; grid-template-rows: 1.3fr 1fr; gap: 6px; }
.treemap div { border-radius: 6px; padding: 8px; font-size: 11px; font-weight: 600; color: rgba(255,255,255,.92); display: flex; flex-direction: column; justify-content: flex-end; transition: transform .4s var(--ease), filter .3s; }
.treemap div small { font-weight: 500; opacity: .8; }
.treemap div:hover { transform: scale(1.03); filter: brightness(1.08); }
.treemap .t1 { grid-row: span 2; background: linear-gradient(160deg, #2f7df6, #1747c4); }
.treemap .t2 { background: linear-gradient(160deg, #22c7ef, #1592c9); }
.treemap .t3 { background: linear-gradient(160deg, #6b7cff, #4553e0); }
.treemap .t4 { background: linear-gradient(160deg, #2dd4bf, #0f9488); }
.treemap .t5 { background: linear-gradient(160deg, #8aa0c2, #5a6f92); }

/* pillar art: automate (queue) */
.queue { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 0 22px; }
.qitem { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; font-size: 12px; color: var(--ink); box-shadow: var(--shadow-sm); }
.qitem code { font-size: 11.5px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qitem .bar { width: 70px; height: 5px; background: #eef1f6; border-radius: 5px; overflow: hidden; flex: none; }
.qitem .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--cyan)); border-radius: inherit; }
.qitem.run .bar i { animation: fill 2.6s var(--ease) infinite; }
@keyframes fill { 0% { width: 0; } 70%, 100% { width: 100%; } }
.qitem.done .bar i { width: 100%; background: var(--green); }

/* pillar art: account (ledger) */
.ledger { position: absolute; inset: 22px; display: flex; align-items: flex-end; gap: 7px; padding-top: 30px; }
.ledger div { flex: 1; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #6ea4ff, #1d58d8); height: var(--h); transform-origin: bottom; transform: scaleY(.1); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 60ms); }
.ledger div.amber { background: linear-gradient(180deg, #ffd08a, #f2a93b); }
.is-in .ledger div { transform: none; }
.ledger::before { content: "Last 12 scans"; position: absolute; top: 0; left: 0; font-size: 11px; font-weight: 600; color: var(--muted); }
.ledger::after { content: "amber = incomplete"; position: absolute; top: 0; right: 0; font-size: 11px; color: var(--muted); font-weight: 600; }

/* ---------- Steps (how it works) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; z-index: 1; counter-reset: s; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 28px 28px 34px; border-top: 1px solid var(--line); position: relative; }
.step::before { counter-increment: s; content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--muted); }
.step::after { content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 2px; background: linear-gradient(90deg, var(--accent), var(--cyan)); transition: width 1s var(--ease); transition-delay: var(--d, 0s); }
.step.is-in::after { width: 42px; }
.step h3 { font-size: 19px; margin: 12px 0 8px; }
.step p { font-size: 15.5px; }

/* ---------- Playground (policy gates) ---------- */
.play { display: grid; grid-template-columns: 1fr 1.15fr; gap: 28px; align-items: stretch; position: relative; z-index: 1; }
@media (max-width: 960px) { .play { grid-template-columns: 1fr; } }
.panel { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--line-2); padding: 26px; }
.panel h3 { font-size: 18px; }
.panel > p { font-size: 14.5px; margin-top: 6px; }
.gates { display: grid; gap: 8px; margin-top: 20px; }
.gate { display: flex; align-items: center; gap: 14px; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; transition: border-color .2s, background .2s; user-select: none; }
.gate:hover { border-color: #cfd6e3; background: #fafbfd; }
.gate .gi { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-soft); color: var(--ink-2); flex: none; transition: background .2s, color .2s; }
.gate .gi svg { width: 18px; height: 18px; }
.gate .gt { flex: 1; min-width: 0; }
.gate .gt b { display: block; color: var(--ink); font-size: 15px; font-weight: 650; }
.gate .gt span { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; }
.switch { position: relative; width: 42px; height: 24px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: #8a8f98; transition: background .2s; pointer-events: none; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.18), 0 1px 3px rgba(0,0,0,.25); transition: transform .25s var(--ease); }
.switch input:checked + i { background: #a35d00; }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.gate.is-active { border-color: #f6d19a; background: #fffaf1; }
.gate.is-active .gi { background: #fff0d6; color: #b4730f; }

.worker { display: flex; flex-direction: column; gap: 18px; background: linear-gradient(180deg, #0d1f3d, #0a1a33); color: #d1d1d1; border: 0; }
.worker h3 { color: #fff; }
.worker__status { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.orb { width: 46px; height: 46px; border-radius: 50%; flex: none; position: relative; background: radial-gradient(circle at 35% 35%, #7cf5c8, #18b67a 60%); box-shadow: 0 0 24px rgba(24,182,122,.6); transition: background .4s, box-shadow .4s; }
.orb::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(124,245,200,.4); animation: ring 1.8s ease-out infinite; }
@keyframes ring { from { transform: scale(.8); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }
.worker.is-waiting .orb { background: radial-gradient(circle at 35% 35%, #ffe0a6, #f2a93b 60%); box-shadow: 0 0 24px rgba(242,169,59,.55); }
.worker.is-waiting .orb::after { border-color: rgba(255,208,138,.4); animation-duration: 3.2s; }
.worker.is-paused .orb { background: radial-gradient(circle at 35% 35%, #c7d0df, #6b7a92 60%); box-shadow: none; }
.worker.is-paused .orb::after { animation: none; opacity: 0; }
.worker__status b { display: block; color: #fff; font-size: 17px; }
.worker__status span { display: block; font-size: 13.5px; color: #a2a2a2; }
.wq { display: grid; gap: 7px; }
.wq__row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.035); font-family: var(--mono); font-size: 12.5px; overflow: hidden; position: relative; }
.wq__row > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #e3e3e3; }
.wq__row em { font-style: normal; font-size: 11.5px; padding: 2px 8px; border-radius: 99px; background: rgba(255,255,255,.08); color: #a2a2a2; white-space: nowrap; }
.wq__row.is-run em { background: rgba(47,125,246,.25); color: #d2d2d2; }
.wq__row.is-done em { background: rgba(24,182,122,.2); color: #dfdfdf; }
.wq__row.is-skip em { background: rgba(242,169,59,.18); color: #d7d7d7; }
.wq__row .prog { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: linear-gradient(90deg, var(--accent-2), var(--cyan)); }
.worker__foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 14px; margin-top: auto; }
.worker__foot b { color: #fff; font-variant-numeric: tabular-nums; }
.worker__actions { display: flex; gap: 8px; }
.chip-btn { font: inherit; font-size: 12.5px; font-weight: 600; color: #e3e3e3; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); border-radius: 99px; padding: 6px 12px; cursor: pointer; transition: background .2s; }
.chip-btn:hover { background: rgba(255,255,255,.16); }

/* ---------- Safety pipeline (dark) ---------- */
.pipeline { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 980px) { .pipeline { grid-template-columns: 1fr; } }
.pstage { position: relative; padding: 22px 20px 24px; border-radius: 16px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08); transition: background .4s, border-color .4s, transform .4s var(--ease); }
.pstage .pn { font-family: var(--mono); font-size: 12px; color: #9a9a9a; }
.pstage .pic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin: 12px 0 14px; background: rgba(255,255,255,.06); color: #c9d3e6; transition: background .4s, color .4s, box-shadow .4s; }
.pstage .pic svg { width: 20px; height: 20px; }
.pstage h3 { font-size: 16px; margin-bottom: 6px; }
.pstage p { font-size: 13.5px; line-height: 1.5; }
.pstage code { font-size: 12px; color: #fff; }
.pstage.is-lit { background: rgba(47,125,246,.12); border-color: rgba(110,164,255,.45); transform: translateY(-4px); }
.pstage.is-lit .pic { background: linear-gradient(135deg, var(--accent-2), var(--cyan)); color: #fff; box-shadow: 0 8px 24px -6px rgba(29,88,216,.8); }
.pstage::after { content: ""; position: absolute; right: -14px; top: 50%; width: 14px; height: 1px; background: rgba(255,255,255,.15); }
.pstage:last-child::after { display: none; }
@media (max-width: 980px) { .pstage::after { right: auto; left: 40px; top: auto; bottom: -14px; width: 1px; height: 14px; } }
.excl { margin-top: 64px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; position: relative; z-index: 1; }
@media (max-width: 900px) { .excl { grid-template-columns: 1fr; gap: 28px; } }
.excl h3 { font-size: 26px; letter-spacing: -.02em; }
.excl p { margin-top: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-size: 13.5px; font-weight: 500; color: #e3e3e3; padding: 7px 13px; border-radius: 99px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); display: inline-flex; gap: 7px; align-items: center; }
.chips span::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--amber); transform: rotate(45deg); }
.chips span.no::before { background: #b3b3b3; border-radius: 50%; transform: none; }

/* ---------- Accounting ---------- */
.acct { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; z-index: 1; }
@media (max-width: 1000px) { .acct { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .acct { grid-template-columns: 1fr; } }
.acard { background: #fff; border-radius: var(--radius); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); padding: 22px 22px 24px; position: relative; overflow: hidden; }
.acard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--c); }
.acard .ak { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--muted); }
.acard h3 { font-size: 17px; margin: 10px 0 8px; }
.acard p { font-size: 14.5px; line-height: 1.55; }
.acard .eq { margin-top: 14px; font-family: var(--mono); font-size: 12px; background: var(--bg-soft); color: var(--ink-2); padding: 8px 10px; border-radius: 8px; overflow-x: auto; white-space: nowrap; }
.callout { margin-top: 28px; display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius); background: #fff8ec; border: 1px solid #f6dfb5; color: #505050; font-size: 15px; position: relative; z-index: 1; }
.callout svg { width: 22px; height: 22px; flex: none; color: #c98216; margin-top: 2px; }
.callout b { color: #373737; }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; z-index: 1; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } }
.stat { padding: 8px 24px 8px 20px; border-left: 1px solid var(--line); }
@media (max-width: 860px) { .stat { padding: 18px 16px; } }
.stat strong { display: block; font-size: clamp(36px, 4.4vw, 54px); font-weight: 750; color: var(--ink); letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat strong sup { font-size: .45em; vertical-align: top; margin-left: 2px; }
.stat span { display: block; margin-top: 10px; font-size: 14.5px; color: var(--body); max-width: 220px; }

/* ---------- Developer / code ---------- */
.dev { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
@media (max-width: 960px) { .dev { grid-template-columns: 1fr; } }
.dev ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.dev li { display: grid; grid-template-columns: 38px 1fr; gap: 14px; }
.dev li .gi { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(143,240,255,.08); color: #8ff0ff; border: 1px solid rgba(143,240,255,.16); }
.dev li .gi svg { width: 18px; height: 18px; }
.dev li b { display: block; color: #fff; font-weight: 650; }
.dev li span { font-size: 15px; }
.term { border-radius: 16px; background: #071428; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), 0 0 0 1px rgba(47,125,246,.08); overflow: hidden; min-width: 0; }
.term__tabs { display: flex; gap: 2px; padding: 10px 10px 0; background: #0b1a33; border-bottom: 1px solid rgba(255,255,255,.06); overflow-x: auto; }
.term__tabs button { font: inherit; font-size: 13px; font-weight: 600; color: #999999; background: none; border: 0; padding: 9px 14px 11px; border-radius: 8px 8px 0 0; cursor: pointer; white-space: nowrap; position: relative; }
.term__tabs button[aria-selected="true"] { color: #fff; background: #071428; }
.term__tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--accent-2), var(--cyan)); border-radius: 2px; }
.term__body { position: relative; }
.term pre { margin: 0; padding: 22px 96px 26px 22px; font-size: 13.5px; line-height: 1.75; color: #d1d1d1; overflow-x: auto; min-height: 290px; }
.term pre[hidden] { display: none; }
.term .c { color: #9a9a9a; } .term .k, .term .f { color: #fff; font-weight: 600; } .term .s { color: #e0e0e0; } .term .p { color: #9a9a9a; user-select: none; }
.copy { position: absolute; top: 12px; right: 12px; font: inherit; font-size: 12px; font-weight: 600; color: #d1d1d1; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.copy:hover { background: rgba(255,255,255,.14); }

/* ---------- Reversible (split) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; position: relative; z-index: 1; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.actions-list { display: grid; gap: 12px; }
.alist { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 18px 20px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.alist:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.alist .gi { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--c, var(--accent)); }
.alist .gi svg { width: 20px; height: 20px; }
.alist b { display: block; color: var(--ink); font-size: 16px; }
.alist span { font-size: 14.5px; }
.split ul.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.split ul.checks li { display: flex; gap: 10px; font-size: 15.5px; }
.split ul.checks li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: #e6f7ef url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%230f8a5c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; position: relative; z-index: 1; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: 18px; font-weight: 650; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.5v9M3.5 8h9' fill='none' stroke='%230a1a33' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center/14px no-repeat; transition: transform .3s var(--ease), background-color .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background-color: #e3edff; }
.faq summary:hover { text-decoration: underline; text-underline-offset: 4px; }
.faq .ans { padding: 0 48px 24px 0; font-size: 16px; }
.faq .ans p + p { margin-top: 10px; }
.faq code { font-size: 14px; background: var(--bg-soft); padding: 1px 6px; border-radius: 5px; color: var(--ink); }

/* ---------- Final CTA ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; padding: 130px 0 120px; }
.cta__bg { position: absolute; inset: 0; z-index: -1; transform: skewY(-6deg); transform-origin: 100% 0; top: 18%; }
.cta__bg canvas, .cta__bg .fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta__bg .fallback { background: radial-gradient(60% 80% at 20% 30%, #8b9cff, transparent 60%), radial-gradient(50% 70% at 80% 40%, #4cc2ff, transparent 60%), radial-gradient(60% 80% at 60% 90%, #9fe8ff, transparent 60%), #1d58d8; }
.cta__bg canvas { opacity: 0; transition: opacity 1.2s; }
.cta__bg canvas.is-ready { opacity: 1; }
.cta__card { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; background: rgba(255,255,255,.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: 26px; padding: 56px; box-shadow: var(--shadow-lg); }
@media (max-width: 860px) { .cta__card { grid-template-columns: 1fr; padding: 34px 26px; } }
.cta__card p { margin-top: 16px; font-size: 17.5px; }
.cta__actions { display: flex; flex-direction: column; gap: 12px; }
.cta__actions .btn { justify-content: center; }
.cta__fine { font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-soft); padding: 72px 0 40px; border-top: 1px solid var(--line-2); font-size: 14.5px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > :first-child { grid-column: 1 / -1; } }
.footer h2 { margin: 0 0 14px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer a { color: var(--body); }
.footer a:hover { color: var(--accent-ink); }
.footer__about p { margin-top: 14px; max-width: 320px; }
.footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13.5px; }

/* ---------- Docs page ---------- */
.docs-hero { position: relative; overflow: hidden; padding: 70px 0 60px; background: var(--dark); color: #bababa; isolation: isolate; }
.docs-hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 70%; height: 180%; background: radial-gradient(closest-side, rgba(47,125,246,.55), transparent), radial-gradient(closest-side at 70% 60%, rgba(18,194,233,.35), transparent); filter: blur(30px); z-index: -1; }
.docs-hero h1 { color: #fff; font-size: clamp(36px, 5vw, 56px); font-weight: 780; letter-spacing: -.04em; }
.docs-hero p { margin-top: 16px; max-width: 640px; font-size: 18px; }
.docs-hero .crumbs { font-size: 13.5px; margin-bottom: 18px; color: #999999; }
.docs-hero .crumbs a { color: #d2d2d2; }
.docs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding-block: 56px 100px; }
@media (max-width: 900px) { .docs { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.docs__nav { position: sticky; top: 90px; align-self: start; font-size: 14.5px; }
.docs__nav h2 { margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.docs__nav ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.docs__nav a { display: block; padding: 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--body); font-weight: 500; }
.docs__nav a:hover { color: var(--ink); }
.docs__nav a.is-active { color: var(--accent-ink); border-left-color: var(--accent); font-weight: 650; }
@media (max-width: 900px) { .docs__nav { position: static; } .docs__nav ol { display: flex; flex-wrap: wrap; gap: 6px; border: 0; } .docs__nav a { border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; margin: 0; font-size: 13.5px; } .docs__nav a.is-active { border-color: var(--accent); } }
.prose { max-width: 760px; min-width: 0; font-size: 16.5px; }
.prose section { padding-top: 8px; margin-bottom: 56px; }
.prose h2 { font-size: 30px; font-weight: 750; letter-spacing: -.03em; margin-bottom: 16px; }
.prose h3 { font-size: 19px; margin: 28px 0 10px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 7px; }
.prose li::marker { color: var(--body); }
.prose strong { color: var(--ink); }
.prose :not(pre) > code { font-size: .88em; background: var(--bg-soft); border: 1px solid var(--line-2); padding: 1px 6px; border-radius: 6px; color: var(--ink); word-break: break-word; }
.prose pre { position: relative; background: #071428; color: #d1d1d1; border-radius: 12px; padding: 18px 20px; font-size: 13.5px; line-height: 1.7; overflow-x: auto; margin: 0 0 18px; }
.prose pre .c { color: #9a9a9a; } .prose pre .p { color: #9a9a9a; user-select: none; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 0 0 18px; }
@media (max-width: 640px) { .prose table { display: block; overflow-x: auto; } }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink); font-weight: 650; background: var(--bg-soft); }
.note { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: #eef4ff; border: 1px solid #cfe0ff; color: #535353; font-size: 15px; margin: 0 0 18px; }
.note--warn { background: #fff8ec; border-color: #f6dfb5; color: #505050; }
.note b { color: inherit; }
@media (max-width: 980px) {
  .pipeline { gap: 10px; }
  .pstage { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; padding: 16px 18px; }
  .pstage .pn { display: none; }
  .pstage .pic { margin: 0; grid-row: span 2; }
  .pstage::after { left: 38px; bottom: -10px; height: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .reveal, .step::after, .ledger div, .shot--hero, .pillar, .alist, .pstage { transition: none !important; }
}

/* review follow-ups */
.section--dark :focus-visible, .worker :focus-visible, .term :focus-visible, .announce :focus-visible { outline-color: #8ab4ff; }
.h-xl, .h-lg, .hero h1, .prose h2 { text-wrap: balance; }
@media (max-width: 640px) { .term pre { padding: 54px 18px 22px; } }
.todo { margin-top: 56px; padding: 28px 30px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); position: relative; z-index: 1; }
.todo h3 { font-size: 20px; }
.todo ul { margin: 14px 0 16px; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; }
.todo li::marker { color: #bdbdbd; }
.todo a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.todo a:hover { color: #cfe0ff; }
.callout a, .note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.faq code { overflow-wrap: anywhere; }
@media (max-width: 640px) { .faq .ans { padding-right: 0; } }
.hero :focus-visible { outline-color: #0b0b0c; }
.chips-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 14px; font-size: 13px; color: #bababa; }
.chips-legend span { display: inline-flex; align-items: center; gap: 7px; }
.chips-legend span::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--amber); transform: rotate(45deg); }
.chips-legend span.no::before { background: #b3b3b3; border-radius: 50%; transform: none; }
.strip { padding-top: 0; }
