
:root {
  --tex-blobs: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.011 .015' numOctaves='4' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 9 0 0 0 -4.5'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.2 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  --tex-blobs-soft: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.011 .015' numOctaves='4' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 9 0 0 0 -4.5'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 .12 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  --tex-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='1' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 16 0 0 0 -9.9'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.34 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  --tex-ice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.011 .015' numOctaves='4' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.02 0 0 0 0 0.38 0 0 0 0 0.94 9 0 0 0 -4.5'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  --hatch: repeating-linear-gradient(135deg, transparent 0 4px, oklch(0.52 0.235 262 / .16) 4px 5px);
  --hatch-grey: repeating-linear-gradient(135deg, transparent 0 5px, oklch(0.5 0.03 262 / .1) 5px 6px);
  --ice-top: oklch(0.66 0.17 252);
}
/* Brainfeed. Scene: a founder at a laptop on Monday morning, daylight, five minutes
   between tasks. Light, cool neutral ground, one committed cobalt. Product first. */
:root {
  color-scheme: light;
  --bg: oklch(0.985 0.004 258);
  --surface: #fff;
  --sunk: oklch(0.962 0.008 258);
  --ink: oklch(0.19 0.035 262);
  --muted: oklch(0.43 0.025 262);
  --faint: oklch(0.56 0.02 262);
  --line: oklch(0.915 0.01 260);
  --line-strong: oklch(0.84 0.02 260);
  --blue: oklch(0.52 0.235 262);
  --blue-deep: oklch(0.42 0.2 263);
  --blue-ink: oklch(0.34 0.15 264);
  --blue-soft: oklch(0.955 0.035 262);
  --green: oklch(0.48 0.12 160);
  --green-soft: oklch(0.955 0.04 160);
  --red: oklch(0.52 0.19 28);
  --red-soft: oklch(0.96 0.03 25);
  --dark: oklch(0.17 0.03 262);
  --font: "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --display: "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --lift: 0 1px 2px oklch(0.2 0.05 262 / .06), 0 24px 48px -24px oklch(0.2 0.08 262 / .22);
  --lift-xl: 0 2px 4px oklch(0.2 0.05 262 / .05), 0 40px 90px -30px oklch(0.25 0.12 262 / .38);
  --section: clamp(72px, 9vw, 128px);
  --z-nav: 30;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; }
a { color: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.narrow { max-width: 780px; }
.blue { color: var(--blue); }

/* skip link */
.skip { position: absolute; left: 16px; top: -64px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 10px; font-weight: 500; text-decoration: none; }
.skip:focus { top: 12px; }

/* icons: SVG as a mask so it takes the text color */
.ico { display: inline-block; width: 1.1em; height: 1.1em; flex: none; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; vertical-align: -0.15em; }
.i-arrow { --i: url(https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/arrow-right.svg); }
.i-check { --i: url(https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/check.svg); }
.i-x { --i: url(https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/x.svg); }
.i-copy { --i: url(https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/copy.svg); }
.i-file { --i: url(https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/file-text.svg); }
.i-inbox { --i: url(https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/inbox.svg); }
.i-lock { --i: url(https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/lock.svg); }
.fav { width: 18px; height: 18px; border-radius: 4px; flex: none; }

/* nav */
.nav { position: sticky; top: 0; z-index: var(--z-nav); background: var(--bg); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.03em; text-decoration: none; }
.nav-links { display: flex; gap: 32px; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--muted); text-decoration: none; transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 8px; align-items: center; }

/* buttons */
.btn { font: inherit; font-size: 16px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 12px; padding: 12px 22px; cursor: pointer; transition: background .15s, border-color .15s, transform .2s var(--ease), box-shadow .2s; text-decoration: none; white-space: nowrap; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn-blue, .btn-primary { background: var(--blue); color: #fff; box-shadow: 0 1px 0 oklch(1 0 0 / .25) inset, 0 8px 20px -8px oklch(0.45 0.22 262 / .7); }
.btn-blue:hover:not(:disabled), .btn-primary:hover:not(:disabled) { background: var(--blue-deep); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: oklch(0.28 0.04 262); }
.btn-ghost { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-white { background: #fff; color: var(--blue-deep); }
.btn-sm { font-size: 14px; padding: 8px 16px; border-radius: 10px; }
.btn-lg { font-size: 17px; padding: 15px 30px; }
.btn:disabled { opacity: .5; cursor: default; }
:is(.btn, a, input, summary, button, #swipe):focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* hero */
.hero { position: relative; padding: clamp(48px, 6vw, 88px) 0 0; }
.hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 8px 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 500; text-decoration: none; transition: border-color .2s; }
.pill:hover { border-color: var(--blue); }
.pill .tagnew { background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; }
.pill .ico { color: var(--faint); }
h1, h2, h3 { font-family: var(--display); }
h1 { font-size: clamp(42px, 6.1vw, 84px); line-height: .98; letter-spacing: -0.04em; font-weight: 700; margin: 26px 0 0; text-wrap: balance; max-width: 15em; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--muted); max-width: 32em; margin: 24px 0 0; text-wrap: balance; }
.email-form { display: flex; gap: 8px; width: 100%; max-width: 520px; margin-top: 34px; padding: 6px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: var(--lift); transition: border-color .15s, box-shadow .15s; }
.email-form input { flex: 1; min-width: 0; font: inherit; font-size: 16px; border: 0; background: transparent; padding: 10px 14px; color: var(--ink); }
.email-form input::placeholder { color: var(--faint); }
.email-form input:focus-visible { outline: none; }
.email-form .btn { border-radius: 11px; }
.email-form:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 18px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust .ico { color: var(--blue); width: 1em; height: 1em; }

/* hero load choreography: content is visible by default; this only adds movement */
@keyframes rise { from { transform: translateY(18px); filter: blur(6px); } to { transform: none; filter: none; } }
@keyframes lift-in { from { transform: translateY(48px) scale(.985); } to { transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * { animation: rise .9s var(--ease) both; }
  .hero-inner > :nth-child(2) { animation-delay: .06s; }
  .hero-inner > :nth-child(3) { animation-delay: .14s; }
  .hero-inner > :nth-child(4) { animation-delay: .22s; }
  .hero-inner > :nth-child(5) { animation-delay: .3s; }
  .stage { animation: lift-in 1.2s .25s var(--ease) both; }
}

/* the product, in the first fold */
.stage { position: relative; margin-top: clamp(40px, 5vw, 64px); }
.stage::before { content: ""; position: absolute; inset: 40px -2% 0; background: var(--blue); border-radius: 36px 36px 0 0; }
.stage-in { position: relative; padding: clamp(10px, 1.6vw, 22px) clamp(10px, 1.6vw, 22px) 0; }
.window { background: var(--surface); border-radius: 18px 18px 0 0; overflow: hidden; box-shadow: var(--lift-xl); }
.win-bar { display: flex; align-items: center; gap: 14px; padding: 12px 18px; background: var(--sunk); border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }
.win-title { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.win-title .ico { color: var(--blue); }
.win-badge { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--blue-deep); background: var(--blue-soft); padding: 3px 11px; border-radius: 999px; }
.win-body { display: grid; grid-template-columns: 240px minmax(0, 1fr) 300px; min-height: 500px; }
.win-side, .win-brain { padding: 22px 20px; background: var(--sunk); }
.win-side { border-right: 1px solid var(--line); }
.win-brain { border-left: 1px solid var(--line); }
.win-side h4, .win-brain h4 { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--muted); }
.src-list, .trusted { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 4px; }
.src-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; padding: 8px 10px; border-radius: 10px; }
.src-list li:first-child { background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.src-list li b { margin-left: auto; font-weight: 500; font-size: 12px; color: var(--muted); background: var(--line); border-radius: 999px; padding: 1px 8px; }
.trusted li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.35; padding: 8px 10px; border-radius: 10px; background: var(--green-soft); }
.trusted li .ico { color: var(--green); margin-top: 2px; }
.trusted li.fresh { animation: pop .4s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.win-main { padding: 40px 24px 32px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--surface); background-image: radial-gradient(oklch(0.2 0.05 262 / .09) 1px, transparent 1px); background-size: 20px 20px; }
#swipe { width: 100%; max-width: 400px; outline: none; }
.swipe-pile { position: relative; height: 268px; touch-action: pan-y; }
.swipe-pile::before, .swipe-pile::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.swipe-pile::before { transform: translateY(14px) scale(.94); opacity: .55; }
.swipe-pile::after { transform: translateY(7px) scale(.97); opacity: .85; }
.swipe-card { position: absolute; inset: 0; z-index: 1; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 12px; cursor: grab; user-select: none; box-shadow: var(--lift); }
.swipe-card:active { cursor: grabbing; }
.swipe-src { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.s-name { font-weight: 600; color: var(--ink); }
.s-date { margin-left: auto; font-family: var(--mono); font-size: 12px; }
.swipe-idea { font-family: var(--display); font-size: 21px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 600; margin: 0; flex: 1; }
.swipe-why { margin: 0; font-size: 14px; color: var(--muted); }
.rel { margin: 0; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; width: fit-content; }
.rel-builds { background: var(--blue-soft); color: var(--blue-ink); }
.rel-new { background: var(--green-soft); color: var(--green); }
.rel-conflict { background: var(--red-soft); color: var(--red); }
.stamp { position: absolute; top: 18px; font-weight: 700; font-size: 14px; padding: 3px 12px; border-radius: 8px; border: 2px solid; opacity: 0; transition: opacity .1s; background: var(--surface); text-transform: uppercase; letter-spacing: .06em; }
.stamp-yes { right: 18px; color: var(--green); transform: rotate(6deg); }
.stamp-no { left: 18px; color: var(--red); transform: rotate(-6deg); }
.swipe-card[data-dir="yes"] .stamp-yes, .swipe-card[data-dir="no"] .stamp-no { opacity: 1; }
/* a one-time nudge on the very first card shows the card can be dragged */
@keyframes nudge { 0%, 100% { transform: none; } 35%, 65% { transform: translateX(34px) rotate(3deg); } }
@keyframes nudge-stamp { 0%, 100% { opacity: 0; } 35%, 65% { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .swipe-card.hint { animation: nudge 1.8s 2.2s var(--ease) 1; }
  .swipe-card.hint .stamp-yes { animation: nudge-stamp 1.8s 2.2s var(--ease) 1; }
}
.swipe-actions { display: flex; gap: 12px; justify-content: center; margin-top: 34px; }
.swipe-actions .btn { min-width: 128px; }
.swipe-msg { min-height: 1.5em; margin: 14px 0 0; font-size: 14px; color: var(--muted); text-align: center; }
.swipe-done { min-height: 300px; display: grid; align-content: center; justify-items: center; gap: 12px; text-align: center; padding: 24px; background: var(--sunk); border: 1px solid var(--line); border-radius: 20px; }
.swipe-done h3 { margin: 0; font-size: 28px; letter-spacing: -0.03em; }
.swipe-done p { color: var(--muted); margin: 0; font-size: 15px; max-width: 28em; }
.done-cta { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; justify-content: center; }
.brain-file { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.bf-head { font-family: var(--mono); font-size: 12px; padding: 10px 14px; background: var(--sunk); border-bottom: 1px solid var(--line); color: var(--muted); }
.bf-body { padding: 12px; font-family: var(--mono); font-size: 12.5px; line-height: 1.7; }
.bf-body p { margin: 0; padding: 0 6px; border-radius: 4px; }
.bf-body p.hit { background: var(--blue-soft); }
.is-conflict .bf-body p.hit { background: var(--red-soft); }
.is-new .bf-head { background: var(--green-soft); color: var(--green); }
.bf-empty { font-family: var(--font); color: var(--muted); }
.brain-why { font-size: 13px; color: var(--muted); margin: 12px 2px 0; }
.caption { text-align: center; color: var(--muted); font-size: 14px; margin: 18px 0 0; }

/* logo strip */
.logos { padding: 36px 0 12px; text-align: center; }
.logos p { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.track { display: flex; gap: 52px; width: max-content; animation: slide 70s linear infinite; padding-inline: 26px; }
.track span { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; color: var(--muted); white-space: nowrap; }
.track .fav { width: 24px; height: 24px; filter: grayscale(1); opacity: .7; }
@keyframes slide { to { transform: translateX(-50%); } }

/* sections */
.section { padding-block: var(--section) 0; }
h2 { font-size: clamp(34px, 4.8vw, 62px); line-height: 1; letter-spacing: -0.038em; font-weight: 700; margin: 0; text-wrap: balance; }
h3 { font-size: 21px; font-weight: 600; margin: 0 0 6px; letter-spacing: -0.02em; }
.sub { color: var(--muted); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; margin: 20px 0 0; max-width: 34em; text-wrap: pretty; }
.center { text-align: center; }
.center > h2, .center > .sub { text-align: center; margin-inline: auto; }

/* the problem, in one statement */
.problem { padding-block: var(--section) 0; }
.statement { font-family: var(--display); font-size: clamp(30px, 4.6vw, 60px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 600; margin: 0; max-width: 20em; text-wrap: balance; color: var(--faint); }
.statement b { font-weight: 600; color: var(--ink); }
.statement .blue { color: var(--blue); }

/* bento: how it works */
.bento { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: clamp(40px, 5vw, 64px); text-align: left; }
.tile { border-radius: 28px; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 28px; overflow: hidden; min-width: 0; }
.tile h3 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.03em; margin-bottom: 8px; }
.tile p { margin: 0; font-size: 16px; line-height: 1.5; }
.t-a { grid-column: span 3; background: var(--surface); border: 1px solid var(--line); }
.t-b { grid-column: span 2; background: var(--surface); border: 1px solid var(--line); }
.t-c { grid-column: span 2; background: var(--blue); color: #fff; }
.t-d { grid-column: span 3; background: var(--dark); color: #fff; }
.t-a p, .t-b p { color: var(--muted); }
.t-c p { color: oklch(0.95 0.03 262); }
.t-d p { color: oklch(0.8 0.025 262); }
.tile .viz { margin-top: auto; }
.repo { display: flex; align-items: center; gap: 10px; background: var(--sunk); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-family: var(--mono); font-size: 13px; }
.repo .ico { width: 18px; height: 18px; }
.repo b { margin-left: auto; font-family: var(--font); font-size: 12px; font-weight: 600; color: var(--green); background: var(--green-soft); padding: 2px 10px; border-radius: 999px; }
.topic-demo { display: grid; gap: 10px; margin-top: 18px; }
.topic-demo div { display: grid; grid-template-columns: 130px 1fr; gap: 14px; align-items: center; font-size: 14px; }
.topic-demo .bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.topic-demo .fill { display: block; height: 100%; background: var(--blue); border-radius: 4px; }
.rank { display: grid; gap: 8px; }
.rank div { display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; font-weight: 500; background: var(--surface); }
.rank div.on { border-color: var(--blue); background: var(--blue-soft); }
.rank em { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.rank div.on em { color: var(--blue-ink); }
.mini-card { background: #fff; color: var(--ink); border-radius: 18px; padding: 20px; display: grid; gap: 6px; box-shadow: 0 24px 40px -20px oklch(0.2 0.15 264 / .6); }
.mini-card b { font-family: var(--display); font-size: 19px; letter-spacing: -0.02em; }
.mini-card span { font-size: 14px; color: var(--muted); }
.mini-btns { display: flex; gap: 8px; margin-top: 12px; }
.mini-btns i { font-style: normal; font-size: 13px; font-weight: 600; padding: 7px 16px; border-radius: 9px; border: 1px solid var(--line-strong); }
.mini-btns i.y { background: var(--blue); border-color: var(--blue); color: #fff; }
.t-d .code-card { background: oklch(0.12 0.025 262); border: 1px solid oklch(1 0 0 / .08); }
.t-d .code-head { border-color: oklch(1 0 0 / .1); }
.t-d pre { padding: 18px 20px; font-size: 13px; line-height: 1.75; }
.t-d .rules { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 15px; color: oklch(0.82 0.025 262); }
.t-d .rules b { color: #fff; font-weight: 600; }

/* same issue, two results */
.versus { display: grid; grid-template-columns: 5fr 7fr; gap: 16px; margin-top: clamp(40px, 5vw, 64px); text-align: left; align-items: stretch; }
.vs-col { border-radius: 28px; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; }
.vs-col > h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; }
.vs-sum { background: var(--sunk); border: 1px solid var(--line); }
.vs-sum > h3 { color: var(--muted); }
.vs-bf { background: var(--blue); color: #fff; }
.vs-quote { margin: 0; color: var(--muted); font-size: 20px; line-height: 1.55; flex: 1; }
.vs-foot { margin: 22px 2px 0; font-size: 15px; color: var(--muted); }
.vs-bf .vs-foot { color: oklch(0.97 0.02 262); font-weight: 500; }
.stack3 { display: grid; gap: 12px; }
.idea { background: #fff; color: var(--ink); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 18px 32px -18px oklch(0.2 0.15 264 / .6); }
.idea-src { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.idea h4 { margin: 2px 0 0; font-family: var(--display); font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.idea p { margin: 0; color: var(--muted); font-size: 15px; }
.idea .rel { margin-top: 6px; }

/* the gate: one flow, one line */
.gate-flow { display: flex; align-items: stretch; margin-top: clamp(40px, 5vw, 64px); border: 1px solid var(--line-strong); border-radius: 20px; background: var(--surface); overflow: hidden; text-align: left; }
.gstep { flex: 1; padding: 24px 22px; display: grid; gap: 4px; align-content: start; border-right: 1px solid var(--line); }
.gstep:last-child { border-right: 0; }
.gstep b { font-family: var(--display); font-size: 18px; letter-spacing: -0.02em; }
.gstep span { font-size: 14px; color: var(--muted); line-height: 1.4; }
.gstep.you { background: var(--blue); color: #fff; flex: 1.2; border-right-color: var(--blue); }
.gstep.you span { color: oklch(0.96 0.03 262); }
.gate-note { margin: 18px 0 0; font-size: 15px; color: var(--muted); }

/* integrate */
.dark-wrap { padding-block: var(--section) 0; }
.dark-panel { background: var(--dark); color: #fff; border-radius: 36px; padding: clamp(48px, 7vw, 96px) clamp(20px, 5vw, 64px); }
.dark-panel .sub { color: oklch(0.8 0.025 262); }
.tabs { margin-top: 44px; text-align: center; }
.tab-bar { display: inline-flex; gap: 4px; padding: 4px; background: oklch(1 0 0 / .07); border-radius: 14px; border: 1px solid oklch(1 0 0 / .12); flex-wrap: wrap; justify-content: center; }
.tab-bar button { font: inherit; font-size: 15px; font-weight: 500; border: 0; background: transparent; color: oklch(0.82 0.025 262); padding: 9px 18px; border-radius: 10px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.tab-bar button[aria-selected="true"] { background: #fff; color: var(--ink); }
.tab-bar em { font-style: normal; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--blue); color: #fff; }
.tab-panel { margin-top: 24px; text-align: left; }
.tab-panel[hidden] { display: none; }
.code-card, .term { background: oklch(0.13 0.025 262); border-radius: 16px; overflow: hidden; color: oklch(0.9 0.02 262); }
.dark-panel .term { max-width: 800px; margin-inline: auto; border: 1px solid oklch(1 0 0 / .1); }
.code-head, .term-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; border-bottom: 1px solid oklch(1 0 0 / .1); font-family: var(--mono); font-size: 12px; color: oklch(0.7 0.03 262); }
.code-head em, .tag { font-style: normal; font-size: 12px; font-weight: 600; background: oklch(1 0 0 / .1); color: oklch(0.88 0.03 262); padding: 3px 10px; border-radius: 999px; font-family: var(--font); }
pre { margin: 0; padding: 22px; overflow-x: auto; font-family: var(--mono); font-size: 13.5px; line-height: 1.8; }
code { font-family: inherit; white-space: pre; }
.c-dim { color: oklch(0.7 0.04 262); } .c-key { color: oklch(0.78 0.12 262); } .c-up { color: oklch(0.8 0.16 160); } .c-down { color: oklch(0.75 0.14 25); }
.copy-chip { font: inherit; font-size: 13px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; font-family: var(--mono); }
.copy-chip.on-dark { background: oklch(1 0 0 / .08); border-color: oklch(1 0 0 / .25); color: #fff; }
.copy-chip.on-dark:hover { border-color: oklch(0.78 0.12 262); }

/* compare */
.table-wrap { margin-top: clamp(40px, 5vw, 64px); overflow-x: auto; border: 1px solid var(--line-strong); border-radius: 24px; background: var(--surface); text-align: left; }
table { border-collapse: collapse; width: 100%; min-width: 700px; font-size: 16px; }
th, td { text-align: left; padding: 18px 24px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-weight: 600; font-size: 14px; color: var(--muted); background: var(--sunk); }
tbody th { font-weight: 600; letter-spacing: -0.01em; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
td.no { color: var(--faint); }
tr.us th, tr.us td { background: var(--blue); color: #fff; font-weight: 600; }
.yes::before { content: ""; display: inline-block; width: 1em; height: 1em; margin-right: 8px; vertical-align: -0.15em; background: currentColor; -webkit-mask: url(https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/check.svg) center / contain no-repeat; mask: url(https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/check.svg) center / contain no-repeat; }
.fine-left { color: var(--muted); font-size: 14px; margin-top: 16px; text-align: left; }

/* scan */
.scan-shell { margin-top: clamp(40px, 5vw, 64px); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 28px; box-shadow: var(--lift); }
.card { padding: clamp(22px, 4vw, 44px); text-align: left; }
.field-row { display: flex; gap: 12px; flex-wrap: wrap; }
#repo, #token { font: inherit; font-size: 16px; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); }
#repo { flex: 1 1 240px; min-width: 0; }
#token { width: 100%; margin-top: 12px; font-family: var(--mono); font-size: 14px; }
.token-box { margin-top: 16px; }
.token-box summary { cursor: pointer; color: var(--blue-deep); font-size: 15px; font-weight: 500; width: fit-content; }
.hint { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.inline-link { font: inherit; color: var(--blue-deep); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.status { min-height: 1.5em; margin: 16px 0 0; color: var(--muted); font-size: 15px; }
.status.error { color: var(--red); }
.meta { color: var(--muted); font-size: 14px; margin: 24px 0 0; }
#results h3 { margin-top: 32px; font-size: 22px; }
.topics .topic { display: grid; grid-template-columns: minmax(130px, 220px) 1fr; gap: 16px; align-items: center; padding: 8px 0; font-size: 15px; }
.bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.fill { display: block; height: 100%; background: var(--blue); border-radius: 4px; }
.picks { list-style: none; margin: 8px 0 0; padding: 0; }
.pick { display: grid; grid-template-columns: 24px 1fr auto; gap: 16px; align-items: start; padding: 18px 0; border-top: 1px solid var(--line); }
.pick input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--blue); }
.pick label { display: grid; gap: 2px; cursor: pointer; }
.pick-name { font-weight: 600; }
.pick-by { font-weight: 400; color: var(--muted); }
.pick-blurb { font-size: 15px; }
.pick-why { color: var(--muted); font-size: 14px; }
.pick-open { color: var(--blue-deep); text-decoration: none; font-size: 15px; font-weight: 500; padding-top: 2px; }
.actions { margin-top: 24px; }
.msg { color: var(--muted); }

/* faq */
.faq { margin-top: 40px; border-top: 1px solid var(--line-strong); text-align: left; }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { cursor: pointer; font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-strong); font-size: 20px; line-height: 1; font-family: var(--font); transition: background .2s, color .2s; }
.faq details[open] summary::after { content: "\2212"; background: var(--blue); border-color: var(--blue); color: #fff; }
.faq p { color: var(--muted); margin: 14px 0 0; max-width: 42em; font-size: 17px; }
#faq > h2 { text-align: center; }

/* final cta: flat cobalt, no texture */
.cta-wrap { padding-block: var(--section); }
.cta-block { background: var(--blue); color: #fff; border-radius: 40px; padding: clamp(64px, 9vw, 120px) 24px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta-block h2 { max-width: 12em; font-size: clamp(36px, 5.4vw, 72px); }
.cta-block p { color: oklch(0.96 0.02 262); font-size: 20px; margin: 20px 0 0; }
.email-form.on-blue { border-color: transparent; box-shadow: 0 24px 40px -20px oklch(0.2 0.15 264 / .7); }
.cta-block .founder { font-size: 15px; margin-top: 28px; color: oklch(0.93 0.04 262); }

/* footer */
.foot { padding: 8px 0 56px; }
.foot-row { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; padding-top: 48px; border-top: 1px solid var(--line); }
.foot-brand p { margin: 12px 0 0; color: var(--muted); font-size: 15px; }
.foot-cols { display: flex; gap: clamp(40px, 8vw, 112px); }
.foot-col { display: grid; gap: 10px; align-content: start; font-size: 15px; }
.foot-col h5 { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.foot-col a { text-decoration: none; }
.foot-col a:hover { color: var(--blue); }
.foot-note { width: 100%; margin: 8px 0 0; color: var(--muted); font-size: 14px; }

/* scroll reveal: progressive. Content is visible when unsupported. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .tile, .vs-col, .gate-flow, .statement {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }
    @keyframes reveal { from { transform: translateY(36px); } to { transform: none; } }
  }
}

/* responsive */
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .win-body { grid-template-columns: 1fr; }
  .win-side { display: none; }
  .win-brain { border-left: 0; border-top: 1px solid var(--line); }
  .bento { grid-template-columns: 1fr; }
  .t-a, .t-b, .t-c, .t-d { grid-column: auto; }
  .versus { grid-template-columns: 1fr; }
  .gate-flow { flex-direction: column; }
  .gstep { border-right: 0; border-bottom: 1px solid var(--line); }
  .gstep:last-child { border-bottom: 0; }
}
@media (max-width: 560px) {
  .dots { display: none; }
  .win-bar { padding: 12px 14px; }
  .nav-cta .btn-ghost { display: none; }
  .email-form { flex-direction: column; padding: 10px; }
  .email-form input { text-align: center; }
  .email-form .btn { width: 100%; }
  .topics .topic { grid-template-columns: 1fr; gap: 6px; }
  .pick { grid-template-columns: 24px 1fr; }
  .pick-open { grid-column: 2; }
  .win-main { padding: 28px 16px 24px; }
  .stage::before { inset: 28px 0 0; border-radius: 24px 24px 0 0; }
  .cta-block, .dark-panel { border-radius: 28px; }
  .topic-demo div { grid-template-columns: 100px 1fr; }
  .swipe-actions .btn { min-width: 0; flex: 1; }
  .swipe-pile { height: 316px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .track { animation: none; }
}

/* lead capture */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.email-form[hidden] { display: none; }
.lead-msg { margin: 14px 0 0; font-size: 15px; min-height: 0; }
.lead-msg:empty { display: none; }
.lead-msg.ok { color: var(--green); font-weight: 500; background: var(--green-soft); padding: 12px 20px; border-radius: 12px; }
.lead-msg.err { color: var(--red); }
.cta-block .lead-msg.ok { color: #fff; background: oklch(1 0 0 / .18); }
.cta-block .lead-msg.err { color: #fff; background: oklch(0.45 0.18 25 / .7); padding: 8px 16px; border-radius: 10px; }

/* ===== Frost layer: cold cobalt, dithered ice, frosted glass ===== */
/* Geist everywhere, as in the first version */
h1 { font-size: clamp(40px, 5.2vw, 68px); line-height: 1.04; letter-spacing: -0.045em; font-weight: 600; max-width: none; }
h2 { font-weight: 600; letter-spacing: -0.045em; font-size: clamp(32px, 4.4vw, 56px); }
h3, .swipe-idea, .statement, .idea h4, .mini-card b, .gstep b, .faq summary, .logo, .swipe-done h3 { letter-spacing: -0.03em; }
.logo { font-weight: 700; font-size: 21px; letter-spacing: -0.04em; }
.cta-block h2 { font-size: clamp(34px, 5vw, 64px); }

/* nav: frosted */
.nav { background: oklch(0.985 0.004 258 / .72); -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%); }

/* hero: the first version's hero, on a field of dithered ice */
.hero { overflow: hidden; padding: clamp(44px, 5vw, 72px) 0 0; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--tex-ice); background-size: 600px; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 18%, #000 10%, transparent 72%); mask-image: radial-gradient(ellipse 80% 70% at 50% 18%, #000 10%, transparent 72%); }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(oklch(0.2 0.05 262 / .05) 1px, transparent 1px), linear-gradient(90deg, oklch(0.2 0.05 262 / .05) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 25%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 70% at 50% 25%, #000 20%, transparent 75%); }
.hero-inner { position: relative; z-index: 2; }
.hero-inner > .pill { margin: 0; }
.pill { gap: 8px; padding: 6px 14px; background: oklch(1 0 0 / .7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.micro { color: var(--muted); font-size: 13px; margin: 14px 0 0; }
.works { display: flex; align-items: center; justify-content: center; gap: 12px 18px; flex-wrap: wrap; margin-top: 22px; }
.works-label { color: var(--muted); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.works-logos { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.wl { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid oklch(1 0 0 / .9); outline: 1px solid var(--line); outline-offset: -1px; border-radius: 10px; background: oklch(1 0 0 / .6); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 14px; font-weight: 500; }
.email-form { margin-top: 30px; }

/* floating frosted brand tiles around the headline */
.float { position: absolute; z-index: 1; width: 56px; height: 56px; display: none; place-items: center; background: oklch(1 0 0 / .55); border: 1px solid oklch(1 0 0 / .95); border-radius: 16px; box-shadow: 0 1px 0 #fff inset, 0 18px 34px -16px oklch(0.3 0.12 262 / .45), 0 0 0 1px oklch(0.84 0.03 262 / .6); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); }
.float img { width: 26px; height: 26px; border-radius: 6px; }
.float .ico { width: 24px; height: 24px; }
@media (min-width: 1360px) { .float { display: grid; } }
@media (prefers-reduced-motion: no-preference) { .float { animation: bob 8s ease-in-out infinite; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.f1 { left: 5%; top: 56px; } .f2 { left: 13%; top: 138px; animation-delay: -1s; } .f3 { left: 4%; top: 222px; animation-delay: -2s; } .f4 { left: 12%; top: 306px; animation-delay: -3s; } .f5 { left: 5%; top: 390px; animation-delay: -4s; } .f6 { left: 15%; top: 456px; animation-delay: -5s; }
.f7 { right: 5%; top: 56px; animation-delay: -6s; } .f8 { right: 13%; top: 138px; animation-delay: -1.5s; } .f9 { right: 4%; top: 222px; animation-delay: -2.5s; } .f10 { right: 12%; top: 306px; animation-delay: -3.5s; } .f11 { right: 5%; top: 390px; animation-delay: -4.5s; } .f12 { right: 15%; top: 456px; animation-delay: -5.5s; }

/* the cobalt surfaces become dithered ice */
.stage::before { background: var(--tex-grain), var(--tex-blobs), linear-gradient(180deg, var(--ice-top) 0%, var(--blue) 48%, var(--blue-deep) 100%); background-size: 300px, 600px, auto; }

.t-c, .vs-bf, .cta-block { background: var(--tex-grain), var(--tex-blobs-soft), linear-gradient(165deg, var(--ice-top) 0%, var(--blue) 42%, var(--blue-deep) 100%); background-size: 300px, 600px, auto; }
.cta-block { position: relative; }
.t-c { box-shadow: inset 0 1px 0 oklch(1 0 0 / .45); }
.vs-bf { box-shadow: inset 0 1px 0 oklch(1 0 0 / .45); }
.cta-block { box-shadow: inset 0 1px 0 oklch(1 0 0 / .45); }
tr.us th, tr.us td { background: var(--tex-grain), var(--blue); background-size: 300px, auto; }
.window { box-shadow: 0 0 0 1px oklch(1 0 0 / .5), var(--lift-xl); }

/* frosted glass chips on the cobalt band */
.frost-chip { position: absolute; z-index: 3; display: none; align-items: center; gap: 12px; padding: 12px 18px 12px 14px; border-radius: 16px; background: oklch(1 0 0 / .22); border: 1px solid oklch(1 0 0 / .55); box-shadow: 0 1px 0 oklch(1 0 0 / .6) inset, 0 24px 40px -18px oklch(0.2 0.15 264 / .6); -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%); color: #fff; font-size: 13px; line-height: 1.3; text-align: left; }
.frost-chip b { display: block; font-size: 14px; font-weight: 600; }
.frost-chip span { color: oklch(0.97 0.02 262); }
.frost-chip .ico { width: 22px; height: 22px; padding: 4px; border-radius: 8px; background: oklch(1 0 0 / .9); flex: none; }
.fc-l .ico { color: var(--green); }
.fc-r .ico { color: var(--red); }
.fc-l { left: 44px; top: 58px; }
.fc-r { right: 44px; top: 58px; }
@media (min-width: 1100px) { .frost-chip { display: flex; } .stage-in { padding-top: 132px; } }
@media (prefers-reduced-motion: no-preference) { .frost-chip { animation: bob 9s ease-in-out infinite; } .fc-r { animation-delay: -4s; } }

/* hatch and figure marks, after the cold technical-drawing look */
.win-badge { background: var(--hatch), var(--blue-soft); border: 1px solid oklch(0.52 0.235 262 / .25); }
.vs-sum { background: var(--hatch-grey), var(--sunk); }
.fig { margin: 16px 0 0; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--muted); text-align: left; }
.gate-flow, .scan-shell { position: relative; }
.gate-flow::before, .gate-flow::after, .scan-shell::before, .scan-shell::after { content: "+"; position: absolute; font-family: var(--mono); font-size: 18px; line-height: 1; color: var(--blue); z-index: 2; }
.gate-flow::before, .scan-shell::before { left: -6px; top: -11px; }
.gate-flow::after, .scan-shell::after { right: -6px; bottom: -10px; }
.gate-flow { overflow: visible; }
.gstep:first-child { border-radius: 19px 0 0 19px; }
.gstep:last-child { border-radius: 0 19px 19px 0; }
.gstep.you { background: var(--tex-grain), var(--blue); background-size: 300px, auto; }
.dark-panel { background: var(--tex-grain), radial-gradient(ellipse 70% 60% at 50% 0%, oklch(0.28 0.09 262), var(--dark) 70%); background-size: 300px, auto; box-shadow: inset 0 1px 0 oklch(1 0 0 / .14); }
@media (max-width: 1020px) { .gstep:first-child, .gstep:last-child { border-radius: 0; } .gate-flow { overflow: hidden; } .gate-flow::before, .gate-flow::after { display: none; } }

/* ===== Restored from the earlier version: steps, loop diagram, compounding ===== */
:root { --grad: linear-gradient(158deg, #c3d8ff 0%, #6a9bff 46%, #0562ef 100%); }
.i-arrow { --i: url(https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/arrow-right.svg); }
.i-check { --i: url(https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/check.svg); }
.i-x { --i: url(https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/x.svg); }
.i-copy { --i: url(https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/copy.svg); }
.i-mail { --i: url(https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/mail.svg); }
.i-bot { --i: url(https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/bot.svg); }
.i-notebook { --i: url(https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/notebook-text.svg); }
.i-terminal { --i: url(https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/terminal.svg); }
.i-file { --i: url(https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/file-text.svg); }
.i-inbox { --i: url(https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/inbox.svg); }
.i-repeat { --i: url(https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/repeat-2.svg); }
.i-align { --i: url(https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/align-left.svg); }
.frame { background: var(--grad); border-radius: 36px; padding: clamp(10px, 1.4vw, 18px); box-shadow: 0 40px 80px -40px rgba(5, 98, 239, .55); }
/* steps (Viktor plug-and-play cards) */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 48px 0 44px; text-align: left; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 14px 14px 28px; display: flex; flex-direction: column; }
.vis { height: 230px; background: var(--grad); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; justify-content: center; gap: 12px; overflow: hidden; position: relative; }
.vis::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .14) 1px, transparent 1px); background-size: 32px 32px; }
.vis > * { position: relative; }
.step-text { padding: 22px 12px 0; }
.num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--blue-soft); color: var(--blue-dark); font-family: var(--mono); font-size: 13px; font-weight: 500; margin-bottom: 14px; }
.step h3 { font-size: 24px; margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }
.mini-input { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 13px 14px; font-family: var(--mono); font-size: 13px; box-shadow: 0 10px 24px -10px rgba(5, 40, 120, .45); }
.mini-input b { margin-left: auto; font-family: var(--font); font-size: 12px; font-weight: 500; color: var(--green); background: var(--green-soft); padding: 2px 10px; border-radius: 999px; }
.mini-line { height: 9px; border-radius: 5px; background: rgba(255, 255, 255, .55); }
.mini-line.short { width: 60%; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .7); border-radius: 999px; padding: 7px 13px; font-size: 14px; font-weight: 500; color: var(--ink); }
.chip.on { background: #fff; box-shadow: 0 8px 18px -8px rgba(5, 40, 120, .5); }
.chip .ico { color: var(--blue); }
.mini-card { background: #fff; border-radius: 18px; padding: 18px; display: grid; gap: 4px; box-shadow: 0 16px 30px -12px rgba(5, 40, 120, .5); }
.mini-card b { font-size: 17px; letter-spacing: -0.02em; }
.mini-card span { font-size: 14px; color: var(--muted); }
.mini-btns { display: flex; gap: 8px; margin-top: 10px; }
.mini-btns i { font-style: normal; font-size: 13px; font-weight: 500; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); }
.mini-btns i.y { background: var(--blue); border-color: var(--blue); color: #fff; }

/* loop diagram (Supermemory dotted figure) */
.diagram { margin-top: 48px; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 4vw, 48px); background-image: radial-gradient(rgba(11, 16, 21, .09) 1px, transparent 1px); background-size: 20px 20px; }
.loop { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr; gap: 8px; align-items: stretch; }
.lnode { background: #fff; border: 1px solid var(--ink); border-radius: 16px; padding: 22px 14px; text-align: center; display: grid; gap: 4px; justify-items: center; align-content: start; box-shadow: 4px 4px 0 var(--ink); }
.lnode .ico { width: 28px; height: 28px; color: var(--blue); margin-bottom: 8px; }
.lnode b { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.lnode span { font-family: var(--mono); font-size: 11px; line-height: 1.4; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.lnode.gate { background: var(--blue); border-color: var(--ink); color: #fff; }
.lnode.gate .ico { color: #fff; }
.lnode.gate span { color: rgba(255, 255, 255, .85); }
.larrow { align-self: center; width: 22px; height: 0; border-top: 2px dashed var(--ink); position: relative; }
.larrow::after { content: ""; position: absolute; right: -1px; top: -6px; width: 9px; height: 9px; border-top: 2px solid var(--ink); border-right: 2px solid var(--ink); transform: rotate(45deg); }
.loop-back { margin: 28px auto 0; width: fit-content; max-width: 100%; display: flex; align-items: center; gap: 8px; text-align: left; font-size: 14px; color: var(--blue-dark); background: var(--blue-soft); padding: 8px 16px; border-radius: 999px; font-weight: 500; }


/* split + facts */
.split h2 { font-size: clamp(30px, 3.8vw, 48px); }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.facts { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts li { display: flex; gap: 16px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.facts li > .ico { width: 22px; height: 22px; color: var(--blue); margin-top: 3px; }
.facts b { display: block; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.facts span { color: var(--muted); font-size: 16px; }
.frame-code { padding: clamp(14px, 2vw, 28px); }
.code-card, .term { background: #0b1015; border-radius: 18px; overflow: hidden; color: #dbe4f5; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .6); }
.code-head, .term-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; border-bottom: 1px solid rgba(255, 255, 255, .1); font-family: var(--mono); font-size: 12px; color: #8fa0bd; }
.code-head em, .tag { font-style: normal; font-size: 11px; background: rgba(255, 255, 255, .1); color: #c6d3ec; padding: 3px 10px; border-radius: 999px; font-family: var(--mono); letter-spacing: .04em; text-transform: uppercase; }
pre { margin: 0; padding: 22px; overflow-x: auto; font-family: var(--mono); font-size: 13.5px; line-height: 1.8; }
code { font-family: inherit; white-space: pre; }
.c-dim { color: #7587a6; } .c-key { color: #8ab4ff; } .c-up { color: #5ad19a; } .c-down { color: #ff8b82; }
.copy-chip.on-dark { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .25); color: #e6eeff; }
.copy-chip.on-dark:hover { border-color: #8ab4ff; color: #fff; }


.split h2, .split .facts { text-align: left; }
.diagram { background-color: var(--surface); }
@media (max-width: 980px) {
  .steps3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .loop { grid-template-columns: 1fr; }
  .larrow { width: 0; height: 20px; border-top: 0; border-left: 2px dashed var(--ink); justify-self: center; }
  .larrow::after { right: -6px; top: auto; bottom: -1px; transform: rotate(135deg); }
}
.split > * { min-width: 0; }
