/* Hookworth — design system + page styles */
:root {
  --bg: #08080a;
  --bg-2: #0d0d10;
  --surface: #121216;
  --surface-2: #17171c;
  --surface-3: #1e1e24;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --line-3: rgba(255, 255, 255, 0.2);
  --text: #f4f4f5;
  --text-2: #b4b4bc;
  --text-3: #8b8b95;
  --accent: #ff5b2e;
  --accent-2: #ff8a63;
  --accent-soft: rgba(255, 91, 46, 0.12);
  --win: #45d69b;
  --win-soft: rgba(69, 214, 155, 0.12);
  --info: #8fa8ff;

  --font: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --serif: "Instrument Serif", Georgia, serif;

  /* 4px spacing scale */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  /* radii */
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 24px; --r-pill: 999px;

  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--font); letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(255, 91, 46, 0.35); color: #fff; }

.skip { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: var(--r-sm); font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--s5); }
.mono { font-family: var(--mono); font-feature-settings: "ss01"; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

/* ---------- buttons ---------- */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 18px; border-radius: var(--r-pill);
  font-weight: 550; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap;
  transition: background .2s var(--ease), color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(2px); }
.btn-primary { background: var(--text); color: #0a0a0c; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 8px 24px -8px rgba(255, 91, 46, 0.45); }
.btn-primary:hover { background: #fff; transform: translateY(-1px); }
.btn-ghost { color: var(--text); border: 1px solid var(--line-2); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--line-3); background: rgba(255,255,255,.05); }
.btn-sm { --h: 36px; padding: 0 14px; font-size: 14px; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .25s, border-color .25s, backdrop-filter .25s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(8, 8, 10, 0.72); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -0.03em; }
.brand svg { width: 26px; height: 26px; color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a:not(.btn) { padding: 8px 12px; font-size: 14px; color: var(--text-2); border-radius: var(--r-pill); transition: color .2s, background .2s; }
.nav-links a:not(.btn):hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav-cta { display: flex; gap: 8px; align-items: center; }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); align-items: center; justify-content: center; }
.menu-btn span { display: block; width: 16px; height: 1.5px; background: var(--text); position: relative; transition: transform .25s var(--ease); }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: var(--text); transition: transform .25s var(--ease), top .25s; }
.menu-btn span::before { top: -5px; } .menu-btn span::after { top: 5px; }
.nav.open .menu-btn span { background: transparent; }
.nav.open .menu-btn span::before { top: 0; transform: rotate(45deg); }
.nav.open .menu-btn span::after { top: 0; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 148px 0 56px; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -10% 0 auto 0; height: 900px; z-index: -2;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(255, 91, 46, 0.16), transparent 70%),
    radial-gradient(40% 40% at 85% 20%, rgba(143, 168, 255, 0.07), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top;
  mask-image: radial-gradient(70% 55% at 50% 15%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 55% at 50% 15%, #000 20%, transparent 75%);
  opacity: .55;
}
.hero-copy { text-align: center; max-width: 880px; margin: 0 auto; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); background: rgba(255,255,255,.03); font-size: 13px; color: var(--text-2);
}
.pill b { font-weight: 600; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-2); background: var(--accent-soft); padding: 3px 8px; border-radius: var(--r-pill); }
.hero h1 {
  font-size: clamp(44px, 6.6vw, 84px); line-height: 0.98; letter-spacing: -0.045em; font-weight: 600;
  margin: var(--s5) 0 var(--s5);
  background: linear-gradient(180deg, #fff 30%, #b9b9c2 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 .serif { font-size: 1.08em; letter-spacing: -0.02em; background: linear-gradient(100deg, #ffb59c, var(--accent) 60%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.hero-sub { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); max-width: 640px; margin: 0 auto var(--s6); line-height: 1.55; }
.hero-cta { display: flex; justify-content: center; gap: var(--s3); flex-wrap: wrap; }
.hero-note { margin-top: var(--s4); font-size: 13px; color: var(--text-3); }

/* ---------- product window (hero) ---------- */
.stage { position: relative; margin-top: var(--s8); }
.stage::before { content: ""; position: absolute; inset: 8% 6% -4% 6%; background: radial-gradient(50% 60% at 50% 40%, rgba(255, 91, 46, 0.18), transparent 70%); filter: blur(30px); z-index: -1; }
.app {
  border: 1px solid var(--line-2); border-radius: var(--r-xl); overflow: hidden;
  background: linear-gradient(180deg, rgba(23,23,28,.92), rgba(13,13,16,.96));
  box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 40px 120px -40px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.06);
}
.app-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); height: 48px; padding: 0 var(--s4); border-bottom: 1px solid var(--line); font-size: 13px; }
.crumbs { display: flex; align-items: center; gap: 8px; color: var(--text-3); min-width: 0; }
.crumbs svg { width: 18px; height: 18px; color: var(--text); flex: none; }
.crumbs b { color: var(--text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs i { font-style: normal; opacity: .5; }
.app-meta { display: flex; align-items: center; gap: var(--s2); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--r-pill); border: 1px solid var(--line-2); font-size: 12px; color: var(--text-2); white-space: nowrap; }
.chip .d { width: 6px; height: 6px; border-radius: 50%; background: var(--win); box-shadow: 0 0 0 3px var(--win-soft); }
.chip.accent { border-color: rgba(255,91,46,.35); color: var(--accent-2); background: var(--accent-soft); }

.app-body { display: grid; grid-template-columns: 250px 1fr 270px; min-height: 460px; }
.canvas { display: flex; align-items: center; }
.nowrap { white-space: nowrap; }
.panel { padding: var(--s5); border-right: 1px solid var(--line); }
.panel:last-child { border-right: 0; border-left: 1px solid var(--line); }
.panel h4 { margin: 0 0 var(--s3); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.brief { font-size: 14px; color: var(--text); line-height: 1.55; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s3) var(--s4); position: relative; }
.brief .caret { display: inline-block; width: 2px; height: 1em; background: var(--accent); vertical-align: -2px; margin-left: 2px; animation: blink 1.1s steps(1) infinite; }
.kv { margin-top: var(--s5); display: grid; gap: 10px; }
.kv div { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-3); }
.kv span:last-child { color: var(--text); }
.toggle { width: 28px; height: 16px; border-radius: 99px; background: var(--win); position: relative; }
.toggle::after { content: ""; position: absolute; right: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #08080a; }
.var-pick { margin-top: var(--s5); padding: var(--s3); border-radius: var(--r-md); border: 1px dashed rgba(255,91,46,.4); background: var(--accent-soft); font-size: 13px; }
.var-pick small { display: block; color: var(--text-3); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.var-pick b { color: var(--text); font-weight: 600; }

/* lineage canvas */
.canvas { position: relative; padding: var(--s4); background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 18px 18px; }
.lineage { position: relative; width: 100%; aspect-ratio: 600 / 440; }
.lineage svg.links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lineage .link { fill: none; stroke: var(--line-3); stroke-width: 1.5; stroke-dasharray: 400; stroke-dashoffset: 400; }
.lineage .link.hot { stroke: url(#hot); stroke-width: 2; }
.in .lineage .link { animation: draw 1.1s var(--ease) forwards; }
.node { position: absolute; transform: translate(-50%, -50%) scale(.92); opacity: 0; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.in .node { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.thumb {
  width: 100%; height: 100%; border-radius: 10px; position: relative; overflow: hidden;
  border: 1px solid var(--line-2); box-shadow: 0 10px 30px -10px rgba(0,0,0,.8);
  background: var(--g, linear-gradient(160deg, #3a2a20, #15100d));
}
.thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.6)); }
.thumb .cap { position: absolute; left: 6px; right: 6px; top: 16%; z-index: 1; background: rgba(255,255,255,.94); color: #0b0b0d; font-weight: 650; font-size: 7.4px; line-height: 1.2; padding: 4px 4px; border-radius: 4px; text-align: center; letter-spacing: -0.01em; }
.thumb .cap.changed { box-shadow: 0 0 0 1.5px var(--accent), 0 0 18px rgba(255,91,46,.5); }
.thumb .t { position: absolute; left: 6px; bottom: 5px; z-index: 1; font: 500 8px var(--mono); color: rgba(255,255,255,.8); }
.node-label { position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%); white-space: nowrap; font: 500 10.5px var(--mono); color: var(--text-3); }
.node-label b { color: var(--text-2); font-weight: 500; }
.badge { position: absolute; top: -9px; right: -10px; z-index: 2; font: 600 9.5px var(--mono); letter-spacing: .02em; padding: 3px 6px; border-radius: 6px; white-space: nowrap; }
.badge.lead { background: var(--win); color: #04120b; box-shadow: 0 0 0 4px var(--win-soft); }
.badge.rend { background: var(--surface-3); color: var(--text-2); border: 1px solid var(--line-2); }
.badge.rend::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid var(--text-3); border-top-color: var(--accent); margin-right: 4px; vertical-align: -1px; animation: spin .9s linear infinite; }
.badge.qa { background: var(--surface-3); color: var(--win); border: 1px solid rgba(69,214,155,.3); }
.learn-node { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; text-align: center; border: 1px solid rgba(255,91,46,.45); background: radial-gradient(circle at 50% 35%, rgba(255,91,46,.28), rgba(255,91,46,.06) 70%); font: 600 10px/1.2 var(--mono); color: var(--accent-2); box-shadow: 0 0 40px -6px rgba(255,91,46,.5); }
.learn-node::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(255,91,46,.25); animation: ring 2.6s var(--ease) infinite; }

/* right panel: next winner */
.rec { border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface-2); padding: var(--s4); }
.rec-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; margin-bottom: var(--s3); }
.rec-title .spark { width: 18px; height: 18px; border-radius: 6px; background: var(--accent-soft); display: grid; place-items: center; }
.rec-title .spark svg { width: 11px; height: 11px; color: var(--accent); }
.rec p { margin: 0 0 var(--s3); font-size: 13px; color: var(--text-2); line-height: 1.5; }
.rec ul { list-style: none; margin: 0 0 var(--s4); padding: 0; display: grid; gap: 8px; }
.rec li { display: flex; gap: 8px; font-size: 12.5px; color: var(--text-2); }
.rec li::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-top: 7px; }
.rec-foot { display: flex; justify-content: space-between; align-items: center; font: 500 12px var(--mono); color: var(--text-3); padding-top: var(--s3); border-top: 1px solid var(--line); }
.rec-btn { margin-top: var(--s3); width: 100%; height: 36px; border-radius: 10px; background: var(--text); color: #0a0a0c; font-weight: 600; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.queue { margin-top: var(--s5); display: grid; gap: 8px; }
.q { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; font-size: 12px; color: var(--text-3); }
.q b { color: var(--text-2); font-weight: 500; }
.q .bar { grid-column: 1 / -1; height: 3px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.q .bar i { display: block; height: 100%; width: var(--w, 50%); background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 3px; transform-origin: left; animation: grow 2.4s var(--ease) both; }
.stage-caption { text-align: center; margin-top: var(--s4); font-size: 12px; color: var(--text-3); }

/* mobile hero visual */
.mstage { display: none; }

/* ---------- sections ---------- */
section { position: relative; padding: var(--s10) 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); }
.eyebrow::before { content: ""; width: 14px; height: 1px; background: currentColor; }
.h2 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.03; letter-spacing: -0.04em; font-weight: 600; margin: var(--s4) 0 var(--s4); max-width: 16em; }
.h2 .serif { font-size: 1.08em; color: var(--accent-2); }
.lede { font-size: 18px; color: var(--text-2); max-width: 36em; margin: 0; }
.sec-head { margin-bottom: var(--s8); }
.sec-head.center { text-align: center; }
.sec-head.center .h2, .sec-head.center .lede { margin-left: auto; margin-right: auto; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.pillar { background: var(--bg); padding: var(--s6); position: relative; }
.pillar .num { font: 500 12px var(--mono); color: var(--text-3); }
.pillar h3 { font-size: 22px; letter-spacing: -0.03em; margin: var(--s5) 0 var(--s2); font-weight: 600; }
.pillar p { margin: 0; color: var(--text-2); font-size: 15px; }
.pillar .ic { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); display: grid; place-items: center; background: var(--surface); margin-top: var(--s5); }
.pillar .ic svg { width: 20px; height: 20px; color: var(--text); }

/* compare */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.cmp { border-radius: var(--r-lg); padding: var(--s6); border: 1px solid var(--line); background: var(--bg-2); }
.cmp.us { border-color: rgba(255,91,46,.3); background: linear-gradient(180deg, rgba(255,91,46,.07), rgba(255,91,46,.01) 60%), var(--bg-2); position: relative; }
.cmp h3 { margin: 0 0 var(--s5); font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.cmp h3 svg { width: 20px; height: 20px; }
.cmp ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.cmp li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--text-2); }
.cmp li:first-child { border-top: 0; padding-top: 0; }
.cmp.us li { color: var(--text); }
.cmp li svg { width: 18px; height: 18px; margin-top: 3px; }
.x { color: var(--text-3); } .ok { color: var(--win); }

/* loop */
.loop { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); position: relative; }
.loop::before { content: ""; position: absolute; left: 4%; right: 4%; top: 27px; height: 1px; background: linear-gradient(90deg, var(--line-2), rgba(255,91,46,.5), var(--line-2)); }
.step { position: relative; }
.step .dot { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line-2); position: relative; z-index: 1; font: 600 13px var(--mono); color: var(--text-2); transition: border-color .3s, color .3s, box-shadow .3s; }
.step:hover .dot, .step.on .dot { border-color: rgba(255,91,46,.6); color: var(--accent-2); box-shadow: 0 0 0 6px var(--accent-soft); }
.step h3 { margin: var(--s5) 0 var(--s2); font-size: 20px; letter-spacing: -0.03em; font-weight: 600; }
.step p { margin: 0; color: var(--text-2); font-size: 15px; max-width: 22em; }
.step .tagline { margin-top: var(--s3); font: 500 12px var(--mono); color: var(--text-3); }

/* variations (interactive) */
.vx { border: 1px solid var(--line-2); border-radius: var(--r-xl); background: var(--bg-2); overflow: hidden; }
.tabs { display: flex; gap: 4px; padding: 6px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { height: 38px; padding: 0 16px; border-radius: 10px; font-size: 14px; color: var(--text-2); white-space: nowrap; transition: background .2s, color .2s; }
.tab:hover { color: var(--text); background: rgba(255,255,255,.04); }
.tab[aria-selected="true"] { background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.vx-body { display: grid; grid-template-columns: 1fr 300px; }
.vx-grid { padding: var(--s6); display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); align-items: start; }
.vcard .frame { aspect-ratio: 9 / 16; border-radius: 14px; position: relative; overflow: hidden; border: 1px solid var(--line-2); background: var(--g); }
.vcard .frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.65)); }
.vcard .frame .cap { position: absolute; left: 10px; right: 10px; top: 14%; z-index: 2; background: #fff; color: #0b0b0d; font-weight: 650; font-size: 13px; line-height: 1.25; padding: 8px 9px; border-radius: 8px; text-align: center; letter-spacing: -0.015em; transition: opacity .3s, transform .3s var(--ease); }
.vcard .frame .lang { position: absolute; top: 10px; right: 10px; z-index: 2; font: 600 10px var(--mono); background: rgba(0,0,0,.55); padding: 3px 6px; border-radius: 5px; color: #fff; }
.vcard .frame .cta { position: absolute; left: 10px; right: 10px; bottom: 12px; z-index: 2; height: 30px; border-radius: 8px; background: rgba(255,255,255,.95); color: #0b0b0d; display: grid; place-items: center; font-size: 12px; font-weight: 650; }
.vcard .frame .subj { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; }
.vcard .frame .subj span { position: relative; width: 34%; aspect-ratio: .58; border-radius: 9px; background: linear-gradient(160deg, #f6ead9, #dcc29f); box-shadow: 0 18px 30px -12px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.7); transform: rotate(-7deg) translateY(6%); }
.vcard .frame .subj span::before { content: ""; position: absolute; left: 0; right: 0; top: 38%; height: 22%; background: #2b1a12; }
.vcard .frame .subj span::after { content: ""; position: absolute; left: 22%; right: 22%; top: 44%; height: 4%; border-radius: 2px; background: #ff8a63; }
.vcard.changed .frame { box-shadow: 0 0 0 1.5px var(--accent), 0 18px 40px -16px rgba(255,91,46,.6); border-color: transparent; }
.vcard .meta { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; }
.vcard .meta b { font-weight: 600; }
.vcard .meta span { color: var(--text-3); font: 500 11.5px var(--mono); align-self: center; }
.hl { outline: 1.5px solid var(--accent); outline-offset: 2px; box-shadow: 0 0 22px rgba(255,91,46,.55); }
.vx-side { border-left: 1px solid var(--line); padding: var(--s6) var(--s5); display: flex; flex-direction: column; gap: var(--s5); }
.vx-side h4 { margin: 0 0 var(--s2); font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.held { display: flex; flex-wrap: wrap; gap: 6px; }
.held span { font-size: 12.5px; padding: 4px 10px; border-radius: var(--r-pill); border: 1px solid var(--line-2); color: var(--text-2); }
.held span.chg { border-color: rgba(255,91,46,.5); color: var(--accent-2); background: var(--accent-soft); }
.vx-side p { margin: 0; font-size: 14px; color: var(--text-2); }

/* feature rows (genome / brand brain / next winner) */
.feature { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--s8); align-items: center; }
.feature.flip > :first-child { order: 2; }
.feature .h2 { font-size: clamp(30px, 3.6vw, 46px); }
.bullets { list-style: none; padding: 0; margin: var(--s5) 0 0; display: grid; gap: var(--s3); }
.bullets li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; color: var(--text-2); font-size: 15px; }
.bullets li svg { width: 18px; height: 18px; color: var(--accent-2); margin-top: 3px; }
.bullets b { color: var(--text); font-weight: 550; }

.panelx { border: 1px solid var(--line-2); border-radius: var(--r-xl); background: linear-gradient(180deg, var(--surface), var(--bg-2)); box-shadow: 0 30px 80px -40px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.05); overflow: hidden; }
.panelx-head { display: flex; justify-content: space-between; align-items: center; padding: 14px var(--s5); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.panelx-head b { color: var(--text); font-weight: 550; }

.genome { padding: var(--s5); display: grid; gap: 10px; }
.gene { display: grid; grid-template-columns: 120px 1fr auto; gap: var(--s4); align-items: center; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.015); transition: border-color .25s, background .25s; }
.gene:hover { border-color: var(--line-3); background: rgba(255,255,255,.03); }
.gene .k { font: 500 12px var(--mono); color: var(--text-3); }
.gene .v { font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gene .c { font: 500 11px var(--mono); padding: 3px 8px; border-radius: 6px; color: var(--text-2); background: var(--surface-3); white-space: nowrap; }
.gene.flag { border-color: rgba(255,91,46,.35); background: var(--accent-soft); }
.gene.flag .c { color: var(--accent-2); background: rgba(255,91,46,.15); }
.genome-strip { display: flex; gap: 3px; padding: 0 var(--s5) var(--s5); }
.genome-strip i { flex: 1; height: 22px; border-radius: 3px; background: var(--surface-3); }
.genome-strip i.a { background: var(--accent); } .genome-strip i.b { background: #ffb59c; } .genome-strip i.c { background: #6b6b75; } .genome-strip i.d { background: var(--info); opacity: .7; } .genome-strip i.e { background: var(--win); opacity: .75; }

.brain { padding: var(--s5); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.rule { border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s4); background: rgba(255,255,255,.015); }
.rule.wide { grid-column: 1 / -1; }
.rule h5 { margin: 0 0 8px; font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.rule p { margin: 0; font-size: 14px; color: var(--text); }
.rule .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rule .tags span { font-size: 12.5px; padding: 3px 9px; border-radius: var(--r-pill); background: var(--surface-3); color: var(--text-2); }
.rule .tags span.no { background: rgba(255,91,46,.12); color: var(--accent-2); text-decoration: line-through; text-decoration-color: rgba(255,138,99,.6); }
.rule .tags span.yes { background: var(--win-soft); color: var(--win); }
.swatches { display: flex; gap: 6px; }
.swatches i { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line-2); }
.guard { display: flex; align-items: center; gap: 10px; padding: 12px var(--s5); border-top: 1px solid var(--line); font: 500 12px var(--mono); color: var(--win); }
.guard .d { width: 6px; height: 6px; border-radius: 50%; background: var(--win); box-shadow: 0 0 0 3px var(--win-soft); }

.next { padding: var(--s4); display: grid; gap: 10px; }
.nx { display: grid; grid-template-columns: 28px 1fr auto; gap: var(--s3); align-items: center; padding: var(--s3) var(--s4); border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(255,255,255,.015); }
.nx.top { border-color: rgba(255,91,46,.4); background: linear-gradient(90deg, rgba(255,91,46,.1), rgba(255,91,46,.02)); }
.nx .r { font: 600 12px var(--mono); color: var(--text-3); }
.nx.top .r { color: var(--accent-2); }
.nx b { display: block; font-size: 14.5px; font-weight: 550; }
.nx small { display: block; font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.lvl { font: 500 11px var(--mono); padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
.lvl.h { color: var(--accent-2); background: rgba(255,91,46,.14); }
.lvl.m { color: var(--text-2); background: var(--surface-3); }
.why { margin: 0 var(--s4) var(--s4); padding: var(--s4); border-radius: var(--r-md); background: var(--surface-2); border: 1px dashed var(--line-2); font-size: 13.5px; color: var(--text-2); }
.why b { color: var(--text); font-weight: 550; }

/* agents */
.agents { display: grid; grid-template-columns: 1fr 1.15fr; gap: var(--s8); align-items: center; }
.term { border: 1px solid var(--line-2); border-radius: var(--r-lg); background: #060607; overflow: hidden; box-shadow: 0 30px 80px -40px rgba(0,0,0,.9); }
.term-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font: 500 12px var(--mono); color: var(--text-3); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); }
.term pre { margin: 0; padding: var(--s5); font: 400 13px/1.75 var(--mono); color: var(--text-2); overflow-x: auto; white-space: pre; }
.term .p { color: var(--accent-2); } .term .c { color: var(--text-3); } .term .o { color: var(--win); } .term .w { color: var(--text); }
.works { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s5); }
.works span { font: 500 12.5px var(--mono); padding: 6px 12px; border-radius: var(--r-pill); border: 1px solid var(--line-2); color: var(--text-2); }

/* use cases */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.case { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); background: var(--bg-2); transition: border-color .25s, transform .25s var(--ease), background .25s; }
.case:hover { border-color: var(--line-3); transform: translateY(-2px); }
.case.primary { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; padding: var(--s6); background: radial-gradient(80% 70% at 100% 0%, rgba(255,91,46,.14), transparent 60%), var(--bg-2); border-color: rgba(255,91,46,.28); }
.case .tag { font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.case.primary .tag { color: var(--accent-2); }
.case h3 { margin: var(--s3) 0 var(--s2); font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.case.primary h3 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.035em; line-height: 1.1; max-width: 13em; }
.case p { margin: 0; font-size: 14.5px; color: var(--text-2); }
.case.primary p { font-size: 16px; max-width: 32em; }
.case .ex { margin-top: var(--s5); display: grid; gap: 8px; }
.case .ex div { display: flex; gap: 10px; align-items: baseline; font-size: 14px; color: var(--text-2); }
.case .ex div span { font: 500 11px var(--mono); color: var(--accent-2); min-width: 64px; }

/* principles */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.pr { background: var(--bg); padding: var(--s6) var(--s5); }
.pr svg { width: 22px; height: 22px; color: var(--accent-2); }
.pr h3 { margin: var(--s5) 0 var(--s2); font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.pr p { margin: 0; font-size: 14.5px; color: var(--text-2); }

/* offer */
.offer { border-radius: var(--r-xl); border: 1px solid rgba(255,91,46,.3); padding: var(--s8); position: relative; overflow: hidden; display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s8); align-items: center; background: radial-gradient(70% 90% at 0% 0%, rgba(255,91,46,.16), transparent 60%), var(--bg-2); }
.offer::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px); background-size: 20px 20px; mask-image: linear-gradient(90deg, transparent, #000); -webkit-mask-image: linear-gradient(90deg, transparent, #000); }
.offer > * { position: relative; z-index: 1; }
.offer-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); counter-reset: s; }
.offer-steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: var(--s4); align-items: start; padding: var(--s4); border-radius: var(--r-md); border: 1px solid var(--line-2); background: rgba(8,8,10,.6); backdrop-filter: blur(6px); }
.offer-steps li::before { content: "0" counter(s); font: 600 13px var(--mono); color: var(--accent-2); width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); }
.offer-steps b { display: block; font-weight: 600; font-size: 15px; }
.offer-steps span { font-size: 14px; color: var(--text-2); }
.offer .fine { margin-top: var(--s4); font-size: 13px; color: var(--text-3); }

/* faq */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.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: var(--s5); padding: 22px 4px; font-size: 17px; font-weight: 550; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; transition: transform .3s var(--ease), border-color .2s; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--text-2); transform: translate(-50%, -50%); }
.faq summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s var(--ease); }
.faq details[open] summary .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq summary:hover .pm { border-color: var(--line-3); }
.faq .a { padding: 0 4px 24px; color: var(--text-2); font-size: 15.5px; max-width: 46em; }

/* final */
.final { text-align: center; padding: var(--s10) 0 var(--s9); position: relative; overflow: hidden; }
.final::before { content: ""; position: absolute; left: 50%; bottom: -320px; width: 1100px; height: 600px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255,91,46,.22), transparent); z-index: -1; }
.final .h2 { margin-left: auto; margin-right: auto; font-size: clamp(38px, 5.6vw, 72px); max-width: 13em; }
.final .lede { margin: 0 auto var(--s6); }
.final-mark { width: 56px; height: 56px; margin: 0 auto var(--s5); border-radius: 16px; border: 1px solid var(--line-2); display: grid; place-items: center; background: var(--surface); box-shadow: 0 0 60px -10px rgba(255,91,46,.45); }
.final-mark svg { width: 30px; height: 30px; color: var(--text); }

/* footer */
.footer { border-top: 1px solid var(--line); padding: var(--s7) 0 var(--s6); font-size: 14px; color: var(--text-3); }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--s6); }
.footer h4 { margin: 0 0 var(--s3); font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { color: var(--text-2); transition: color .2s; }
.footer a:hover { color: var(--text); }
.footer .tag { margin: var(--s3) 0 0; max-width: 24em; color: var(--text-3); }
.footer-bottom { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; font-size: 13px; }

/* ---------- motion ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ring { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes flowdash { to { stroke-dashoffset: -24; } }
.in .lineage .link.hot { animation: draw 1.1s var(--ease) forwards, none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .app-body { grid-template-columns: 220px 1fr 250px; }
  .panel { padding: var(--s4); }
  .principles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  section { padding: var(--s9) 0; }
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .nav.open { background: rgba(8,8,10,.96); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
  .nav.open .nav-links { display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: var(--s3) var(--s5) var(--s5); background: rgba(8,8,10,.98); border-bottom: 1px solid var(--line); }
  .nav.open .nav-links a:not(.btn) { padding: 14px 4px; font-size: 16px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .app-body { grid-template-columns: 1fr; }
  .panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .panel:last-child { border-left: 0; border-bottom: 0; }
  .panel.side-l { display: none; }
  .pillars, .compare { grid-template-columns: 1fr; }
  .loop { grid-template-columns: 1fr 1fr; row-gap: var(--s7); }
  .loop::before { display: none; }
  .vx-body { grid-template-columns: 1fr; }
  .vx-side { border-left: 0; border-top: 1px solid var(--line); }
  .feature, .feature.flip, .agents, .offer { grid-template-columns: 1fr; gap: var(--s7); }
  .feature.flip > :first-child { order: 0; }
  .cases { grid-template-columns: 1fr 1fr; }
  .case.primary { grid-column: 1 / -1; grid-row: auto; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .offer { padding: var(--s6); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  section { padding: var(--s8) 0; }
  .nav-cta .btn-primary { display: none; }
  .hero { padding: 112px 0 32px; }
  .hero h1 { font-size: clamp(40px, 11.5vw, 54px); letter-spacing: -0.045em; }
  .hero-sub { font-size: 16.5px; margin-bottom: var(--s5); }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { --h: 50px; font-size: 16px; }
  .stage { display: none; }
  .mstage { display: block; margin-top: var(--s7); }
  .h2 { font-size: clamp(30px, 8.6vw, 40px); }
  .lede { font-size: 16.5px; }
  .sec-head { margin-bottom: var(--s6); }
  .pillar { padding: var(--s5); }
  .loop { grid-template-columns: 1fr; row-gap: var(--s5); }
  .step { display: grid; grid-template-columns: 48px 1fr; column-gap: var(--s4); }
  .step .dot { width: 48px; height: 48px; grid-row: span 3; }
  .step h3 { margin-top: 2px; }
  .vx-grid { grid-template-columns: 1fr 1fr; padding: var(--s4); gap: var(--s3); }
  .vcard .frame .cap { font-size: 11.5px; }
  .gene { grid-template-columns: 1fr auto; gap: 4px 10px; }
  .gene .k { grid-column: 1 / -1; }
  .brain { grid-template-columns: 1fr; }
  .cases { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .offer { padding: var(--s5); }
  .offer .btn { width: 100%; --h: 50px; }
  .term pre { font-size: 11.5px; padding: var(--s4); white-space: pre-wrap; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > :first-child { grid-column: 1 / -1; }
  .final .btn { width: 100%; --h: 50px; }
}

/* mobile hero visual */
.mapp { border: 1px solid var(--line-2); border-radius: var(--r-lg); background: linear-gradient(180deg, var(--surface), var(--bg-2)); overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0,0,0,.9), 0 0 60px -20px rgba(255,91,46,.3); }
.mapp .app-bar { height: 44px; padding: 0 12px; }
.mflow { padding: var(--s4); display: grid; gap: var(--s3); }
.mrow { display: flex; align-items: center; gap: var(--s3); }
.mrow .thumb { width: 54px; height: 86px; flex: none; }
.mrow .thumb .cap { font-size: 6.5px; padding: 3px; }
.mtext { font-size: 13px; color: var(--text-2); }
.mtext b { display: block; color: var(--text); font-weight: 600; font-size: 14px; }
.mvars { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); padding-left: 20px; border-left: 1px dashed var(--line-3); margin-left: 26px; }
.mvars .mv { position: relative; }
.mvars .thumb { height: auto; aspect-ratio: 9 / 15; }
.mvars .thumb .cap { font-size: 7.5px; }
.mvars .badge { right: -4px; top: -8px; font-size: 8.5px; }
.mvars .lbl { font: 500 10.5px var(--mono); color: var(--text-3); margin-top: 6px; text-align: center; }
.mrec { margin: 0 var(--s4) var(--s4); border-radius: var(--r-md); border: 1px solid rgba(255,91,46,.35); background: linear-gradient(90deg, rgba(255,91,46,.1), rgba(255,91,46,.02)); padding: var(--s3) var(--s4); font-size: 13px; color: var(--text-2); }
.mrec b { color: var(--text); }
.mrec small { display: block; font: 600 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .node { opacity: 1; transform: translate(-50%, -50%); }
  .lineage .link { stroke-dashoffset: 0; }
}

.lineage .thumb.lg .cap { font-size: 8.6px; }
.lineage .thumb .cap { overflow-wrap: anywhere; }
@media (max-width: 640px) { .br-d { display: none; } }

h1, .h2 { text-wrap: balance; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); }
.plan { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); background: var(--bg-2); display: flex; flex-direction: column; }
.plan.feat { border-color: rgba(255,91,46,.4); background: linear-gradient(180deg, rgba(255,91,46,.08), rgba(255,91,46,0) 50%), var(--bg-2); position: relative; }
.plan.feat::before { content: "Recommended"; position: absolute; top: -11px; left: var(--s5); font: 600 11px var(--mono); color: #1a0a04; background: var(--accent-2); padding: 3px 8px; border-radius: 6px; }
.plan h3 { margin: 0; font-size: 16px; font-weight: 600; }
.plan .who { margin: 4px 0 var(--s4); font-size: 13.5px; color: var(--text-3); min-height: 40px; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price b { font-size: 40px; font-weight: 600; letter-spacing: -0.04em; }
.price span { color: var(--text-3); font-size: 14px; }
.plan .cr { font: 500 12.5px var(--mono); color: var(--accent-2); margin: 6px 0 var(--s4); }
.plan ul { list-style: none; margin: 0 0 var(--s5); padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--text-2); }
.plan li { display: grid; grid-template-columns: 16px 1fr; gap: 8px; }
.plan li svg { width: 16px; height: 16px; color: var(--win); margin-top: 3px; }
.plan .btn { margin-top: auto; width: 100%; }
.packs { margin-top: var(--s4); display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: space-between; align-items: center; border: 1px dashed var(--line-2); border-radius: var(--r-lg); padding: var(--s4) var(--s5); font-size: 14.5px; color: var(--text-2); }
.packs b { color: var(--text); font-weight: 600; }
.price-note { margin-top: var(--s4); font-size: 13px; color: var(--text-3); text-align: center; }
@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, 1fr); row-gap: var(--s5); } }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }

/* ---------- legal pages ---------- */
.legal { padding: 140px 0 var(--s9); }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(36px, 5vw, 52px); letter-spacing: -0.04em; font-weight: 600; margin: var(--s3) 0 var(--s2); line-height: 1.05; }
.legal .upd { font: 500 12.5px var(--mono); color: var(--text-3); margin-bottom: var(--s7); }
.legal h2 { font-size: 20px; letter-spacing: -0.02em; font-weight: 600; margin: var(--s7) 0 var(--s3); }
.legal p, .legal li { color: var(--text-2); font-size: 15.5px; line-height: 1.7; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.legal .box { border: 1px solid var(--line-2); border-radius: var(--r-md); padding: var(--s4) var(--s5); background: var(--bg-2); }
.footer-legal { display: flex; gap: var(--s4); flex-wrap: wrap; }
