/* ==========================================================================
   LANBO LAB — Neo-Brutalist system
   ========================================================================== */
:root {
  --paper: #f3efe4;
  --paper-2: #e9e3d3;
  --ink: #0e0e0c;
  --ink-soft: #3b3a35;
  --muted: #6b685e;
  --blue: #2f3cff;
  --blue-ink: #ffffff;
  --volt: #e4ff3a;
  --red: #ff4a1c;
  --pink: #ffb4d9;
  --line: 2.5px;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --shadow-lg: 10px 10px 0 var(--ink);

  --font-display: "Cabinet Grotesk", "Satoshi", "Inter", sans-serif;
  --font-body: "Satoshi", "Inter", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.85rem + 0.15vw, 0.9375rem);
  --text-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.25rem + 1.2vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.4rem + 3vw, 3.75rem);
  --text-3xl: clamp(2.75rem, 1.6rem + 5.5vw, 6rem);
  --text-hero: clamp(3.25rem, 1.2rem + 9.5vw, 10.5rem);

  --wrap: 1320px;
  --gutter: clamp(1rem, 3vw, 2.5rem);
  --radius: 0px;
  --ease: cubic-bezier(.2,.9,.25,1.2);
  color-scheme: light;
}
[data-theme="dark"] {
  --paper: #121210;
  --paper-2: #1c1c19;
  --ink: #f3efe4;
  --ink-soft: #d4cfc1;
  --muted: #9c988b;
  --blue: #5b66ff;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .3s, color .3s;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.02; letter-spacing: -0.02em; }
p { margin: 0; }
::selection { background: var(--volt); color: #0e0e0c; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 999;
  background: var(--volt); color: #0e0e0c; padding: .6rem 1rem; border: var(--line) solid #0e0e0c; font-weight: 700;
}
.skip-link:focus { left: 8px; }

/* Grain-free paper grid */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background-image:
    linear-gradient(to right, color-mix(in oklab, var(--ink) 6%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, var(--ink) 6%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 0, #000 70vh, transparent 100vh);
}

.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.mono { font-family: var(--font-mono); }
.display { font-family: var(--font-display); font-weight: 800; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Labels / chips ---------- */
.tag {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  padding: .3rem .6rem; border: 2px solid var(--ink); background: var(--paper);
}
.tag--volt { background: var(--volt); color: #0e0e0c; border-color: #0e0e0c; }
.tag--blue { background: var(--blue); color: #fff; border-color: var(--ink); }
.tag--ink { background: var(--ink); color: var(--paper); }
.dot { width: .55rem; height: .55rem; background: currentColor; display: inline-block; }
.dot--live { background: #1fd15a; box-shadow: 0 0 0 0 #1fd15a; animation: pulse 1.8s infinite; border-radius: 50%; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31,209,90,.6);} 70% { box-shadow: 0 0 0 8px rgba(31,209,90,0);} 100% { box-shadow: 0 0 0 0 rgba(31,209,90,0);} }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--paper); --fg: var(--ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .75rem 1.25rem;
  font-family: var(--font-body); font-weight: 700; font-size: var(--text-sm);
  text-decoration: none; cursor: pointer;
  background: var(--bg); color: var(--fg);
  border: var(--line) solid var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform .12s var(--ease), box-shadow .12s var(--ease), background-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn--blue { --bg: var(--blue); --fg: #fff; }
.btn--volt { --bg: var(--volt); --fg: #0e0e0c; }
.btn--ink { --bg: var(--ink); --fg: var(--paper); }
.btn--lg { min-height: 60px; padding: 1rem 1.6rem; font-size: var(--text-base); }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(4px) rotate(-8deg); }
.btn[disabled] { opacity: .7; cursor: progress; }

kbd {
  font-family: var(--font-mono); font-size: .75em; font-weight: 600;
  padding: .1rem .4rem; border: 1.5px solid currentColor; border-bottom-width: 3px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: var(--line) solid var(--ink);
  transition: transform .3s ease;
}
.site-header.is-hidden { transform: translateY(-100%); }
.nav { display: flex; align-items: center; gap: 1.25rem; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand .slash { display: inline-block; color: var(--blue); transition: transform .4s var(--ease); }
.brand:hover .slash { transform: rotate(180deg); }
.brand:hover .logo-probe { transform: translate(2px,-2px); }
.logo-probe { transition: transform .3s var(--ease); }
.nav-links { display: flex; gap: .25rem; margin-left: 1rem; list-style: none; padding: 0; margin-block: 0; }
.nav-links a {
  display: inline-block; padding: .45rem .75rem; text-decoration: none; font-weight: 600; font-size: var(--text-sm);
  border: 2px solid transparent;
}
.nav-links a:hover { border-color: var(--ink); background: var(--volt); color: #0e0e0c; }
.nav-links a[aria-current="page"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center; cursor: pointer;
  background: var(--paper); border: 2px solid var(--ink); box-shadow: var(--shadow-sm);
  transition: transform .12s var(--ease), box-shadow .12s var(--ease);
}
.icon-btn:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--ink); }
.icon-btn:active { transform: translate(3px,3px); box-shadow: none; }
.cmdk-trigger { display: inline-flex; align-items: center; gap: .5rem; height: 44px; padding: 0 .75rem; font-family: var(--font-mono); font-size: var(--text-xs); border: 2px solid var(--ink); background: var(--paper); cursor: pointer; }
.cmdk-trigger:hover { background: var(--volt); color: #0e0e0c; }
.menu-toggle { display: none; }

@media (max-width: 1020px) {
  .nav-links, .nav-right .hide-sm { display: none; }
  .menu-toggle { display: inline-grid; }
}
.mobile-menu {
  position: fixed; inset: 72px 0 0 0; background: var(--volt); color: #0e0e0c; z-index: 49;
  padding: 2rem var(--gutter); display: none; flex-direction: column; gap: .5rem; overflow-y: auto;
  border-top: var(--line) solid #0e0e0c;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; text-decoration: none; line-height: 1.1; border-bottom: 2px solid #0e0e0c; padding: .4rem 0; }
.mobile-menu .btn { margin-top: 1rem; font-size: 1rem; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: var(--line) solid var(--ink); background: var(--ink); color: var(--paper); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__item { display: flex; align-items: center; gap: 2rem; padding: 1rem 1rem; font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); text-transform: uppercase; white-space: nowrap; letter-spacing: -0.01em; }
.marquee__item .star { color: var(--volt); font-size: .8em; }
.marquee--volt { background: var(--volt); color: #0e0e0c; }
.marquee--volt .star { color: var(--blue); }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding-block: clamp(4rem, 9vw, 8rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink .muted { color: color-mix(in oklab, var(--paper) 65%, transparent); }
.section--blue { background: var(--blue); color: #fff; }
.section--volt { background: var(--volt); color: #0e0e0c; }
.bordered-top { border-top: var(--line) solid var(--ink); }

.eyebrow { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; display: flex; align-items: center; gap: .6rem; margin-bottom: 1.25rem; }
.eyebrow::before { content: ""; width: 28px; height: 2.5px; background: currentColor; }
.h-display { font-family: var(--font-display); font-weight: 800; font-size: var(--text-3xl); letter-spacing: -0.035em; line-height: .95; }
.h-section { font-family: var(--font-display); font-weight: 800; font-size: var(--text-2xl); letter-spacing: -0.03em; line-height: .98; }
.h-card { font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); letter-spacing: -0.02em; }
.lead { font-size: var(--text-lg); line-height: 1.5; max-width: 52ch; color: var(--ink-soft); }
.section--ink .lead, .section--blue .lead { color: inherit; opacity: .85; }
.hl { background: var(--volt); color: #0e0e0c; padding: 0 .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hl-blue { color: var(--blue); }
.strike { position: relative; display: inline-block; }
.strike::after { content: ""; position: absolute; left: -2%; right: -2%; top: 52%; height: .12em; background: var(--red); transform: rotate(-3deg) scaleX(0); transform-origin: left; transition: transform .6s var(--ease) .3s; }
.in-view .strike::after, .strike.in-view::after { transform: rotate(-3deg) scaleX(1); }

/* ---------- Cards ---------- */
.card {
  background: var(--paper); color: var(--ink); border: var(--line) solid var(--ink); box-shadow: var(--shadow);
  padding: clamp(1.25rem, 2.5vw, 2rem);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card--hover:hover { transform: translate(-4px,-4px) rotate(-.4deg); box-shadow: var(--shadow-lg); }
.card--volt { background: var(--volt); color: #0e0e0c; --ink-soft: #2a2a25; }
.card--blue { background: var(--blue); color: #fff; }
.card--ink { background: var(--ink); color: var(--paper); }
.card--pink { background: var(--pink); color: #0e0e0c; }

/* ---------- HERO ---------- */
.hero { padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 5rem); overflow: clip; }
.hero__title { font-family: var(--font-display); font-weight: 800; font-size: var(--text-hero); line-height: .86; letter-spacing: -0.05em; text-transform: none; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); animation: rise .9s var(--ease) forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: .08s; }
.hero__title .line:nth-child(3) > span { animation-delay: .16s; }
@keyframes rise { to { transform: translateY(0); } }
.hero__title .boxed { display: inline-block; background: var(--blue); color: #fff; padding: 0 .12em; border: var(--line) solid var(--ink); box-shadow: var(--shadow); transform: rotate(-1.5deg); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; margin-top: clamp(2rem, 4vw, 3.5rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem; }
@media (max-width: 960px) { .hero__grid { grid-template-columns: 1fr; } }

.sticker {
  position: absolute; z-index: 5; cursor: grab; user-select: none; touch-action: none;
  font-family: var(--font-display); font-weight: 800; text-align: center; line-height: 1;
  border: var(--line) solid #0e0e0c; box-shadow: var(--shadow-sm); color: #0e0e0c;
  transition: box-shadow .15s;
}
.sticker:active, .sticker.dragging { cursor: grabbing; box-shadow: 10px 12px 0 rgba(14,14,12,.85); }
.sticker--round { border-radius: 50%; width: 132px; height: 132px; display: grid; place-items: center; background: var(--volt); font-size: 1.05rem; padding: 1rem; }
.sticker--round span { display: block; }
.sticker--rect { padding: .6rem .9rem; background: var(--pink); font-size: 1rem; }
.sticker--blue { background: var(--blue); color: #fff; }
.sticker .spin { animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) { .sticker { display: none; } }

/* ---------- Playground (Break-the-bot) ---------- */
.playground { background: var(--paper); border: var(--line) solid var(--ink); box-shadow: var(--shadow-lg); position: relative; }
.pg__bar { display: flex; align-items: center; gap: .6rem; padding: .65rem .9rem; border-bottom: var(--line) solid var(--ink); background: var(--ink); color: var(--paper); font-family: var(--font-mono); font-size: var(--text-xs); }
.pg__bar .lights { display: flex; gap: 6px; }
.pg__bar .lights i { width: 11px; height: 11px; border: 1.5px solid var(--paper); display: block; }
.pg__bar .lights i:nth-child(1) { background: var(--red); }
.pg__bar .lights i:nth-child(2) { background: var(--volt); }
.pg__bar .lights i:nth-child(3) { background: var(--blue); }
.pg__toggle { margin-left: auto; display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; }
.switch { width: 42px; height: 22px; border: 2px solid var(--paper); position: relative; background: transparent; cursor: pointer; padding: 0; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; background: var(--paper); transition: transform .25s var(--ease), background .2s; }
.switch[aria-checked="true"] { background: #1fd15a; }
.switch[aria-checked="true"]::after { transform: translateX(20px); background: #0e0e0c; }
.pg__log { height: 330px; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .75rem; font-size: var(--text-sm); scroll-behavior: smooth; }
.msg { max-width: 88%; padding: .65rem .85rem; border: 2px solid var(--ink); line-height: 1.45; animation: pop .35s var(--ease); }
@keyframes pop { from { transform: scale(.92) translateY(6px); opacity: 0; } }
.msg--user { align-self: flex-end; background: var(--blue); color: #fff; }
.msg--bot { align-self: flex-start; background: var(--paper-2); }
.msg--leak { background: #ffd9cc; color: #0e0e0c; border-color: var(--red); }
.msg__who { display: block; font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; opacity: .75; margin-bottom: .2rem; }
.verdict { align-self: stretch; border: 2px solid var(--ink); font-family: var(--font-mono); font-size: var(--text-xs); animation: pop .35s var(--ease); }
.verdict__head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .45rem .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.verdict--block .verdict__head { background: var(--red); color: #0e0e0c; }
.verdict--pass .verdict__head { background: var(--volt); color: #0e0e0c; }
.verdict--warn .verdict__head { background: var(--pink); color: #0e0e0c; }
.verdict--miss .verdict__head { background: var(--ink); color: var(--paper); }
.verdict__body { padding: .55rem .7rem; display: grid; gap: .25rem; }
.verdict__row { display: flex; justify-content: space-between; gap: 1rem; }
.verdict__bar { height: 6px; background: var(--paper-2); border: 1px solid var(--ink); position: relative; margin-top: .2rem; }
.verdict__bar i { position: absolute; inset: 0 auto 0 0; background: var(--ink); width: 0; transition: width .8s var(--ease); }
.pg__presets { display: flex; gap: .4rem; flex-wrap: wrap; padding: .75rem 1rem 0; border-top: var(--line) solid var(--ink); }
.preset { font-family: var(--font-mono); font-size: .72rem; padding: .35rem .55rem; border: 2px solid var(--ink); background: var(--paper); cursor: pointer; transition: background .15s, transform .12s; }
.preset:hover { background: var(--volt); color: #0e0e0c; transform: translateY(-2px); }
.pg__form { display: flex; gap: .5rem; padding: .75rem 1rem 1rem; }
.pg__form input { flex: 1; min-width: 0; height: 48px; padding: 0 .8rem; border: 2px solid var(--ink); background: var(--paper); font-family: var(--font-mono); font-size: var(--text-sm); }
.pg__form input:focus { outline: none; background: var(--paper-2); box-shadow: inset 0 0 0 2px var(--blue); }
.pg__score { display: flex; border-top: var(--line) solid var(--ink); font-family: var(--font-mono); font-size: var(--text-xs); }
.pg__score div { flex: 1; padding: .55rem .8rem; border-right: 2px solid var(--ink); }
.pg__score div:last-child { border-right: 0; }
.pg__score b { display: block; font-family: var(--font-display); font-size: 1.5rem; line-height: 1; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; background: currentColor; animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .2; } }

/* ---------- Logo wall ---------- */
.logos { display: grid; grid-template-columns: repeat(6, 1fr); border: var(--line) solid var(--ink); }
.logos > div { display: grid; place-items: center; min-height: 96px; padding: 1rem; border-right: 2px solid var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; transition: background .2s, color .2s; }
.logos > div:last-child { border-right: 0; }
.logos > div:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 860px) { .logos { grid-template-columns: repeat(3, 1fr); } .logos > div:nth-child(3) { border-right: 0; } .logos > div:nth-child(-n+3) { border-bottom: 2px solid var(--ink); } }

/* ---------- Loop (Attack/Measure/Guard) ---------- */
.loop { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.25rem; margin-top: 3rem; }
.loop .card:nth-child(1) { grid-column: span 7; }
.loop .card:nth-child(2) { grid-column: span 5; margin-top: 4rem; }
.loop .card:nth-child(3) { grid-column: 3 / span 10; }
.loop .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(4rem, 10vw, 8rem); line-height: .8; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 2.5px var(--ink); display: block; margin-bottom: 1rem; }
.loop .card--volt .num { -webkit-text-stroke-color: #0e0e0c; }
.loop .card--blue .num { -webkit-text-stroke-color: #fff; }
.loop ul { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .5rem; }
.loop li { display: flex; gap: .6rem; font-size: var(--text-sm); }
.loop li::before { content: "→"; font-family: var(--font-mono); font-weight: 700; }
@media (max-width: 860px) { .loop .card { grid-column: 1 / -1 !important; margin-top: 0 !important; } }

/* ---------- Test grid ---------- */
.testgrid-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (max-width: 960px) { .testgrid-wrap { grid-template-columns: 1fr; } }
.testgrid { display: grid; grid-template-columns: repeat(24, 1fr); gap: 4px; padding: 1rem; border: var(--line) solid var(--paper); background: #0e0e0c; }
.testgrid i { aspect-ratio: 1; background: #2a2a26; transition: background .25s, transform .25s; }
.testgrid i.pass { background: var(--volt); }
.testgrid i.fail { background: var(--red); transform: scale(1.15); }
.testgrid i.run { background: #fff; }
.testgrid-stats { display: grid; grid-template-columns: repeat(3, 1fr); border: var(--line) solid var(--paper); border-top: 0; font-family: var(--font-mono); font-size: var(--text-xs); }
.testgrid-stats div { padding: .9rem; border-right: 2px solid var(--paper); }
.testgrid-stats div:last-child { border-right: 0; }
.testgrid-stats b { display: block; font-family: var(--font-display); font-size: var(--text-xl); line-height: 1; margin-top: .3rem; }

/* ---------- Big stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: var(--line) solid var(--ink); background: var(--paper); }
.stats > div { padding: clamp(1.25rem, 3vw, 2.25rem); border-right: 2px solid var(--ink); }
.stats > div:last-child { border-right: 0; }
.stats b { display: block; font-family: var(--font-display); font-weight: 800; font-size: var(--text-3xl); line-height: .9; letter-spacing: -0.04em; }
.stats span { display: block; margin-top: .6rem; font-size: var(--text-sm); color: var(--muted); }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } .stats > div:nth-child(2) { border-right: 0; } .stats > div:nth-child(-n+2) { border-bottom: 2px solid var(--ink); } }

/* ---------- Quote board (draggable cards) ---------- */
.board { position: relative; height: 620px; border: var(--line) solid var(--ink); background:
  radial-gradient(circle, color-mix(in oklab, var(--ink) 25%, transparent) 1.2px, transparent 1.5px) 0 0 / 22px 22px, var(--paper-2); overflow: hidden; }
.board__hint { position: absolute; left: 1rem; bottom: 1rem; z-index: 1; }
.qcard { position: absolute; width: min(340px, 80%); padding: 1.25rem 1.25rem 1rem; border: var(--line) solid #0e0e0c; box-shadow: var(--shadow); cursor: grab; user-select: none; touch-action: none; color: #0e0e0c; transition: box-shadow .15s; }
.qcard.dragging { cursor: grabbing; box-shadow: 14px 16px 0 rgba(14,14,12,.8); z-index: 20; }
.qcard p { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; line-height: 1.2; letter-spacing: -0.01em; }
.qcard footer { margin-top: 1rem; display: flex; align-items: center; gap: .6rem; font-size: var(--text-xs); font-family: var(--font-mono); }
.qcard .av { width: 34px; height: 34px; border: 2px solid #0e0e0c; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; background: #fff; }
.qcard .pin { position: absolute; top: -10px; left: 50%; width: 18px; height: 18px; border-radius: 50%; background: var(--red); border: 2px solid #0e0e0c; transform: translateX(-50%); }
@media (max-width: 760px) {
  .board { height: auto; padding: 1rem; display: grid; gap: 1.25rem; }
  .qcard { position: relative; width: 100%; left: auto !important; top: auto !important; transform: none !important; }
  .board__hint { display: none; }
}

/* ---------- Integrations ---------- */
.integrations { display: flex; flex-wrap: wrap; gap: .6rem; }
.integrations span { font-family: var(--font-mono); font-size: var(--text-sm); padding: .55rem .85rem; border: 2px solid var(--ink); background: var(--paper); transition: transform .15s var(--ease), background .15s; }
.integrations span:hover { transform: rotate(-3deg) scale(1.06); background: var(--volt); color: #0e0e0c; }

/* ---------- Blog cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem; }
.post-card { grid-column: span 4; display: flex; flex-direction: column; text-decoration: none; background: var(--paper); border: var(--line) solid var(--ink); box-shadow: var(--shadow); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.post-card:hover { transform: translate(-4px,-4px); box-shadow: var(--shadow-lg); }
.post-card--feature { grid-column: span 8; }
.post-card--feature .post-card__title { font-size: var(--text-2xl); }
.post-card__cover { aspect-ratio: 16/9; border-bottom: var(--line) solid var(--ink); position: relative; overflow: hidden; }
.post-card--feature .post-card__cover { aspect-ratio: 21/9; }
.post-card__body { padding: 1.25rem; display: flex; flex-direction: column; gap: .75rem; flex: 1; }
.post-card__title { font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); line-height: 1.02; letter-spacing: -0.02em; }
.post-card__meta { margin-top: auto; display: flex; gap: 1rem; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted); }
.post-card__excerpt { color: var(--ink-soft); font-size: var(--text-sm); }
@media (max-width: 960px) { .post-card, .post-card--feature { grid-column: span 6; } }
@media (max-width: 640px) { .post-card, .post-card--feature { grid-column: 1 / -1; } }

/* Generative covers */
.cover { position: absolute; inset: 0; display: grid; place-items: center; }
.cover--1 { background: var(--blue); }
.cover--2 { background: var(--volt); }
.cover--3 { background: #0e0e0c; }
.cover--4 { background: var(--pink); }
.cover--5 { background: var(--red); }
.cover--6 { background: var(--paper-2); }
.cover svg { width: 100%; height: 100%; }
.cover__label { position: absolute; left: 1rem; top: 1rem; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; padding: .55rem .85rem; border: 2px solid var(--ink); background: var(--paper); cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .12s, box-shadow .12s; }
.filter:hover { transform: translate(-1px,-1px); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); transform: translate(3px,3px); box-shadow: none; }
.post-card.is-hidden { display: none; }

/* ---------- Article ---------- */
.article-hero { padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.article-hero h1 { font-family: var(--font-display); font-weight: 800; font-size: var(--text-3xl); letter-spacing: -0.04em; line-height: .95; max-width: 18ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem; align-items: center; }
.article-cover { position: relative; height: clamp(220px, 34vw, 440px); border-block: var(--line) solid var(--ink); }
.article-layout { display: grid; grid-template-columns: 220px minmax(0, 68ch) 1fr; gap: clamp(1.5rem, 4vw, 4rem); padding-block: clamp(3rem, 6vw, 5rem); }
.toc { position: sticky; top: 96px; align-self: start; font-size: var(--text-sm); }
.toc b { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .08em; display: block; margin-bottom: .75rem; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; counter-reset: t; }
.toc a { text-decoration: none; display: block; padding: .3rem .5rem; border-left: 2.5px solid color-mix(in oklab, var(--ink) 20%, transparent); }
.toc a:hover, .toc a.active { border-left-color: var(--ink); background: var(--volt); color: #0e0e0c; }
.prose { font-size: 1.0625rem; line-height: 1.72; }
.prose > * + * { margin-top: 1.25rem; }
.prose h2 { font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); letter-spacing: -0.02em; margin-top: 3rem; scroll-margin-top: 100px; line-height: 1.05; }
.prose h3 { font-size: var(--text-lg); font-weight: 700; margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: .4rem; }
.prose a { text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--blue); }
.prose blockquote { margin: 2.5rem 0; padding: 1.5rem; border: var(--line) solid var(--ink); background: var(--volt); color: #0e0e0c; font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); line-height: 1.3; box-shadow: var(--shadow); }
.prose pre { background: #0e0e0c; color: #f3efe4; padding: 1.1rem 1.25rem; overflow-x: auto; font-family: var(--font-mono); font-size: .85rem; line-height: 1.6; border: var(--line) solid var(--ink); }
.prose code { font-family: var(--font-mono); font-size: .88em; background: var(--paper-2); padding: .1em .35em; border: 1px solid color-mix(in oklab, var(--ink) 25%, transparent); }
.prose pre code { background: none; border: 0; padding: 0; }
.prose .callout { border: 2px dashed var(--ink); padding: 1rem 1.25rem; font-size: var(--text-sm); }
.author-box { margin-top: 3rem; display: flex; gap: 1rem; align-items: center; padding: 1.25rem; border: var(--line) solid var(--ink); box-shadow: var(--shadow-sm); }
.read-progress { position: fixed; top: 0; left: 0; height: 5px; background: var(--blue); z-index: 60; width: 0; }
@media (max-width: 1080px) { .article-layout { grid-template-columns: minmax(0, 1fr); } .toc { position: static; } }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.75rem; }
.member { perspective: 1200px; height: 400px; cursor: pointer; }
.member__inner { position: relative; width: 100%; height: 100%; transition: transform .7s var(--ease); transform-style: preserve-3d; }
.member.flipped .member__inner { transform: rotateY(180deg); }
.member__face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border: var(--line) solid var(--ink); box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; background: var(--paper); }
.member__back { transform: rotateY(180deg); padding: 1.5rem; gap: 1rem; background: var(--ink); color: var(--paper); }
.member__photo { flex: 1; position: relative; border-bottom: var(--line) solid var(--ink); display: grid; place-items: center; overflow: hidden; }
.member__photo .initials { font-family: var(--font-display); font-weight: 800; font-size: 6rem; letter-spacing: -0.06em; line-height: 1; color: #0e0e0c; }
.member__photo .ph { position: absolute; left: .75rem; top: .75rem; }
.member__info { padding: 1rem 1.1rem; }
.member__name { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.02em; line-height: 1.05; }
.member__role { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .06em; margin-top: .35rem; color: var(--muted); }
.member__flip { position: absolute; right: .75rem; top: .75rem; }
.member__back p { font-size: var(--text-sm); line-height: 1.55; color: color-mix(in oklab, var(--paper) 85%, transparent); }
.member__back .prev { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--volt); }
.linkedin { margin-top: auto; display: inline-flex; align-items: center; gap: .6rem; padding: .75rem 1rem; background: #0a66c2; color: #fff; border: 2px solid var(--paper); text-decoration: none; font-weight: 700; font-size: var(--text-sm); box-shadow: 3px 3px 0 var(--paper); transition: transform .12s, box-shadow .12s; }
.linkedin:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--paper); }
.linkedin svg { width: 18px; height: 18px; }

/* ---------- Pricing ---------- */
.billing { display: inline-flex; border: var(--line) solid var(--ink); box-shadow: var(--shadow-sm); }
.billing button { padding: .7rem 1.1rem; border: 0; background: var(--paper); cursor: pointer; font-weight: 700; font-size: var(--text-sm); }
.billing button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.billing button + button { border-left: 2px solid var(--ink); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 1.1rem; }
.plan--hot { transform: translateY(-14px) rotate(-.6deg); }
.plan__price { font-family: var(--font-display); font-weight: 800; font-size: var(--text-3xl); line-height: .9; letter-spacing: -0.04em; }
.plan__price small { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600; letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: var(--text-sm); }
.plan li { display: flex; gap: .6rem; }
.plan li::before { content: "■"; font-size: .7em; line-height: 2.1; }
.plan .btn { margin-top: auto; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; } .plan--hot { transform: none; } }

.compare { width: 100%; border-collapse: collapse; border: var(--line) solid var(--ink); font-size: var(--text-sm); background: var(--paper); }
.compare th, .compare td { padding: .85rem 1rem; border-bottom: 2px solid var(--ink); text-align: left; }
.compare th { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .06em; background: var(--ink); color: var(--paper); }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.compare tr:hover td { background: var(--paper-2); }
.table-scroll { overflow-x: auto; }

/* ---------- Accordion ---------- */
.faq { border-top: var(--line) solid var(--ink); }
.faq details { border-bottom: var(--line) solid var(--ink); }
.faq summary { list-style: none; cursor: pointer; padding: 1.25rem 0; display: flex; justify-content: space-between; gap: 1rem; align-items: center; font-weight: 700; font-size: var(--text-lg); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { width: 36px; height: 36px; flex: none; border: 2px solid var(--ink); display: grid; place-items: center; font-family: var(--font-mono); font-size: 1.2rem; transition: transform .3s var(--ease), background .2s; }
.faq details[open] summary .plus { transform: rotate(45deg); background: var(--volt); color: #0e0e0c; }
.faq details p { padding: 0 0 1.4rem; max-width: 70ch; color: var(--ink-soft); }
.faq details.is-hidden { display: none; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .4rem; }
.field label, .field legend { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: .7rem .85rem; border: var(--line) solid var(--ink); background: var(--paper); font-size: var(--text-base); border-radius: 0; transition: box-shadow .15s, transform .15s; -webkit-appearance: none; appearance: none; }
.field select { background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: var(--shadow-sm); transform: translate(-2px,-2px); background: var(--paper); }
.field .err { font-size: var(--text-xs); color: var(--red); font-weight: 700; display: none; font-family: var(--font-mono); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red); animation: shake .35s; }
.field.invalid .err { display: block; }
@keyframes shake { 25% { transform: translateX(-5px);} 75% { transform: translateX(5px);} }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; border: 0; padding: 0; margin: 0; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: .5rem .8rem; border: 2px solid var(--ink); cursor: pointer; font-size: var(--text-sm); font-weight: 600; background: var(--paper); transition: background .15s, transform .12s; }
.chip span:hover { transform: translateY(-2px); }
.chip input:checked + span { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.chip input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Calendar */
.cal { border: var(--line) solid var(--ink); background: var(--paper); }
.cal__head { display: flex; align-items: center; justify-content: space-between; padding: .75rem 1rem; border-bottom: var(--line) solid var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; }
.cal__head button { width: 36px; height: 36px; border: 2px solid var(--ink); background: var(--paper); cursor: pointer; font-family: var(--font-mono); }
.cal__head button:hover { background: var(--volt); color: #0e0e0c; }
.cal__dow, .cal__days { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal__dow span { text-align: center; font-family: var(--font-mono); font-size: .7rem; padding: .5rem 0; text-transform: uppercase; color: var(--muted); }
.cal__days button { aspect-ratio: 1; border: 0; border-top: 1.5px solid color-mix(in oklab, var(--ink) 15%, transparent); background: transparent; font-weight: 700; cursor: pointer; font-size: var(--text-sm); }
.cal__days button:disabled { color: color-mix(in oklab, var(--ink) 25%, transparent); cursor: not-allowed; text-decoration: line-through; }
.cal__days button:not(:disabled):hover { background: var(--volt); color: #0e0e0c; }
.cal__days button.sel { background: var(--blue); color: #fff; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; padding: 1rem; border-top: var(--line) solid var(--ink); }
.slots button { padding: .6rem; border: 2px solid var(--ink); background: var(--paper); cursor: pointer; font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 600; }
.slots button:hover { background: var(--volt); color: #0e0e0c; }
.slots button.sel { background: var(--ink); color: var(--paper); }
.slots .empty { grid-column: 1/-1; font-size: var(--text-sm); color: var(--muted); }

/* Success state */
.success { display: none; text-align: left; }
.success.show { display: block; animation: pop .5s var(--ease); }
.stamp { display: inline-block; font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 5vw, 3.25rem); text-transform: uppercase; color: var(--red); border: 4px solid var(--red); padding: .2rem 1rem; transform: rotate(-8deg); letter-spacing: .02em; animation: stamp .55s var(--ease); }
@keyframes stamp { 0% { transform: rotate(-8deg) scale(3); opacity: 0; } 60% { transform: rotate(-8deg) scale(.92); opacity: 1; } 100% { transform: rotate(-8deg) scale(1); } }
.receipt { margin-top: 1.5rem; border: 2px dashed var(--ink); padding: 1rem 1.25rem; font-family: var(--font-mono); font-size: var(--text-sm); display: grid; gap: .35rem; }
.receipt div { display: flex; justify-content: space-between; gap: 1rem; }
.receipt div span:first-child { color: var(--muted); }
.timeline-steps { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .75rem; }
.timeline-steps li { display: flex; gap: .75rem; align-items: flex-start; font-size: var(--text-sm); }
.timeline-steps li b { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border: 2px solid var(--ink); font-family: var(--font-mono); font-size: .75rem; }
.timeline-steps li.done b { background: var(--volt); color: #0e0e0c; }

.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 100; }

/* ---------- Status ---------- */
.status-grid { display: grid; gap: 0; border: var(--line) solid var(--ink); }
.status-row { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; padding: .9rem 1rem; border-bottom: 2px solid var(--ink); background: var(--paper); }
.status-row:last-child { border-bottom: 0; }
.uptime { display: flex; gap: 2px; margin-top: .45rem; }
.uptime i { flex: 1; height: 22px; background: #1fd15a; }
.uptime i.minor { background: var(--volt); }
.uptime i.major { background: var(--red); }

/* ---------- Split layouts ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.split--wide { grid-template-columns: .85fr 1.15fr; }
@media (max-width: 960px) { .split, .split--wide { grid-template-columns: 1fr; } }

/* Code window */
.code { background: #0e0e0c; color: #f3efe4; border: var(--line) solid var(--ink); box-shadow: var(--shadow-lg); font-family: var(--font-mono); font-size: .84rem; }
.code__tabs { display: flex; border-bottom: 2px solid #3b3a35; }
.code__tabs button { padding: .65rem 1rem; background: transparent; border: 0; border-right: 2px solid #3b3a35; color: #9c988b; cursor: pointer; font-family: var(--font-mono); font-size: .78rem; }
.code__tabs button[aria-selected="true"] { color: #0e0e0c; background: var(--volt); }
.code pre { margin: 0; padding: 1.25rem; overflow-x: auto; line-height: 1.7; }
.code .k { color: #ff8db8; } .code .s { color: var(--volt); } .code .c { color: #7d7a70; } .code .f { color: #8f97ff; } .code .n { color: #ffb38a; }
.code [hidden] { display: none; }

/* Module tabs (product) */
.modules { display: grid; grid-template-columns: 300px 1fr; border: var(--line) solid var(--ink); box-shadow: var(--shadow-lg); background: var(--paper); }
.modules__nav { display: flex; flex-direction: column; border-right: var(--line) solid var(--ink); }
.modules__nav button { text-align: left; padding: 1.25rem; border: 0; border-bottom: 2px solid var(--ink); background: var(--paper); cursor: pointer; display: grid; gap: .25rem; transition: background .15s; }
.modules__nav button:last-child { border-bottom: 0; }
.modules__nav button b { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1; }
.modules__nav button span { font-size: var(--text-xs); font-family: var(--font-mono); color: var(--muted); }
.modules__nav button:hover { background: var(--paper-2); }
.modules__nav button[aria-selected="true"] { background: var(--volt); color: #0e0e0c; }
.modules__nav button[aria-selected="true"] span { color: #2a2a25; }
.modules__panel { padding: clamp(1.5rem, 3vw, 2.5rem); }
.modules__panel[hidden] { display: none; }
.modules__panel h3 { font-family: var(--font-display); font-weight: 800; font-size: var(--text-2xl); letter-spacing: -0.03em; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.75rem; }
.feature-list div { border: 2px solid var(--ink); padding: 1rem; }
.feature-list b { display: block; margin-bottom: .3rem; }
.feature-list p { font-size: var(--text-sm); color: var(--ink-soft); }
@media (max-width: 860px) { .modules { grid-template-columns: 1fr; } .modules__nav { border-right: 0; border-bottom: var(--line) solid var(--ink); flex-direction: row; overflow-x: auto; } .modules__nav button { border-bottom: 0; border-right: 2px solid var(--ink); min-width: 170px; } .feature-list { grid-template-columns: 1fr; } }

/* Architecture */
.arch { display: grid; grid-template-columns: 1fr auto 1.3fr auto 1fr; align-items: center; gap: .5rem; }
.arch .node { border: var(--line) solid var(--ink); padding: 1.1rem; background: var(--paper); box-shadow: var(--shadow-sm); font-weight: 700; text-align: center; }
.arch .node small { display: block; font-weight: 500; font-family: var(--font-mono); font-size: .72rem; color: var(--muted); margin-top: .3rem; }
.arch .node--probe { background: var(--volt); color: #0e0e0c; padding: 1.5rem; }
.arch .node--probe small { color: #2a2a25; }
.arch .wire { font-family: var(--font-mono); font-size: 1.4rem; font-weight: 700; position: relative; overflow: hidden; width: 70px; text-align: center; }
.arch .wire::after { content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 4px; background: var(--blue); animation: packet 1.6s linear infinite; }
@keyframes packet { from { left: -12px; } to { left: 100%; } }
@media (max-width: 860px) { .arch { grid-template-columns: 1fr; } .arch .wire { transform: rotate(90deg); margin-inline: auto; } }

/* Values list */
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: var(--line) solid var(--ink); }
.values > div { padding: clamp(1.25rem, 3vw, 2.25rem); border-bottom: 2px solid var(--ink); }
.values > div:nth-child(odd) { border-right: 2px solid var(--ink); }
.values > div:nth-last-child(-n+2) { border-bottom: 0; }
.values h3 { font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); margin-bottom: .5rem; }
.values > div:hover { background: var(--volt); color: #0e0e0c; }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; } .values > div { border-right: 0 !important; border-bottom: 2px solid var(--ink) !important; } .values > div:last-child { border-bottom: 0 !important; } }

.jobs { border-top: var(--line) solid var(--ink); }
.job { display: grid; grid-template-columns: 1fr auto auto; gap: 1.5rem; align-items: center; padding: 1.25rem .5rem; border-bottom: var(--line) solid var(--ink); text-decoration: none; transition: background .15s, padding .2s var(--ease); }
.job:hover { background: var(--ink); color: var(--paper); padding-inline: 1.25rem; }
.job b { font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); letter-spacing: -0.02em; }
.job span { font-family: var(--font-mono); font-size: var(--text-xs); }
@media (max-width: 640px) { .job { grid-template-columns: 1fr; gap: .4rem; } }

/* Page hero (inner) */
.page-hero { padding-block: clamp(3.5rem, 8vw, 7rem) clamp(2.5rem, 5vw, 4rem); border-bottom: var(--line) solid var(--ink); position: relative; overflow: clip; }
.page-hero h1 { font-family: var(--font-display); font-weight: 800; font-size: var(--text-3xl); line-height: .9; letter-spacing: -0.045em; max-width: 16ch; }
.page-hero .lead { margin-top: 1.5rem; }

/* ---------- Footer CTA ---------- */
.footer-cta { display: grid; grid-template-columns: 1.4fr 1fr; border-top: var(--line) solid var(--ink); }
.footer-cta > a { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; min-height: 340px; padding: clamp(1.5rem, 4vw, 3rem); text-decoration: none; overflow: hidden; transition: background .3s; }
.footer-cta__demo { background: var(--blue); color: #fff; border-right: var(--line) solid var(--ink); }
.footer-cta__support { background: var(--volt); color: #0e0e0c; }
.footer-cta .tag { align-self: flex-start; }
.footer-cta h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 2rem + 5vw, 7.5rem); line-height: .85; letter-spacing: -0.05em; }
.footer-cta p { max-width: 36ch; font-size: var(--text-base); }
.footer-cta .go { width: 72px; height: 72px; border: 3px solid currentColor; display: grid; place-items: center; font-size: 2rem; transition: transform .35s var(--ease), background .2s; align-self: flex-end; }
.footer-cta > a:hover .go { transform: rotate(-45deg) scale(1.1); background: currentColor; }
.footer-cta > a:hover .go span { color: var(--blue); }
.footer-cta__support:hover .go span { color: var(--volt) !important; }
.footer-cta > a:hover h2 { animation: jitter .4s steps(2) 2; }
@keyframes jitter { 50% { transform: translate(2px, -2px) skewX(-2deg); } }
.footer-cta__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
@media (max-width: 860px) { .footer-cta { grid-template-columns: 1fr; } .footer-cta__demo { border-right: 0; border-bottom: var(--line) solid var(--ink); } .footer-cta > a { min-height: 260px; } }

.site-footer { background: var(--ink); color: var(--paper); padding-top: clamp(3rem, 6vw, 5rem); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 2rem; }
.footer-grid h3 { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; color: var(--volt); font-weight: 600; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; font-size: var(--text-sm); }
.footer-grid a { text-decoration: none; opacity: .85; }
.footer-grid a:hover { opacity: 1; text-decoration: underline; text-decoration-color: var(--volt); text-decoration-thickness: 2px; }
.footer-news { display: flex; margin-top: 1.25rem; max-width: 380px; }
.footer-news input { flex: 1; min-width: 0; height: 48px; padding: 0 .8rem; background: transparent; border: 2px solid var(--paper); color: var(--paper); font-size: var(--text-sm); }
.footer-news input::placeholder { color: color-mix(in oklab, var(--paper) 55%, transparent); }
.footer-news button { height: 48px; padding: 0 1rem; border: 2px solid var(--paper); border-left: 0; background: var(--volt); color: #0e0e0c; font-weight: 700; cursor: pointer; }
.footer-news-msg { font-family: var(--font-mono); font-size: var(--text-xs); margin-top: .6rem; color: var(--volt); min-height: 1.2em; }
.footer-giant { font-family: var(--font-display); font-weight: 800; font-size: clamp(4rem, 21.5vw, 22rem); line-height: .78; letter-spacing: -0.06em; margin-top: clamp(3rem, 6vw, 5rem); white-space: nowrap; overflow: hidden; color: var(--paper); user-select: none; }
.footer-giant span { display: inline-block; transition: transform .35s var(--ease), color .2s; }
.footer-giant span:hover { transform: translateY(-14%) rotate(-6deg); color: var(--volt); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; border-top: 2px solid color-mix(in oklab, var(--paper) 25%, transparent); font-family: var(--font-mono); font-size: var(--text-xs); }
.footer-bottom a { text-decoration: none; }
.footer-social { display: flex; gap: .5rem; margin-top: 1.25rem; }
.footer-social a { width: 44px; height: 44px; display: grid; place-items: center; border: 2px solid var(--paper); opacity: 1 !important; }
.footer-social a:hover { background: var(--volt); color: #0e0e0c; }
.footer-social svg { width: 18px; height: 18px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- Command palette ---------- */
.cmdk { position: fixed; inset: 0; z-index: 200; display: none; align-items: flex-start; justify-content: center; padding-top: 12vh; background: color-mix(in oklab, #0e0e0c 55%, transparent); }
.cmdk.open { display: flex; }
.cmdk__box { width: min(640px, 92vw); background: var(--paper); border: var(--line) solid var(--ink); box-shadow: 12px 12px 0 var(--volt); animation: pop .25s var(--ease); }
.cmdk__input { display: flex; align-items: center; gap: .6rem; padding: 0 1rem; border-bottom: var(--line) solid var(--ink); }
.cmdk__input span { font-family: var(--font-mono); font-weight: 700; color: var(--blue); }
.cmdk__input input { flex: 1; height: 60px; border: 0; background: transparent; font-family: var(--font-mono); font-size: 1rem; outline: none; }
.cmdk__list { list-style: none; margin: 0; padding: .5rem; max-height: 50vh; overflow-y: auto; }
.cmdk__list li a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem .8rem; text-decoration: none; font-weight: 600; border: 2px solid transparent; }
.cmdk__list li a small { font-family: var(--font-mono); font-size: .7rem; color: var(--muted); }
.cmdk__list li.active a { background: var(--volt); color: #0e0e0c; border-color: #0e0e0c; }
.cmdk__list li.active a small { color: #2a2a25; }
.cmdk__group { font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: .6rem .8rem .3rem; }
.cmdk__foot { display: flex; gap: 1rem; padding: .6rem 1rem; border-top: 2px solid var(--ink); font-family: var(--font-mono); font-size: .7rem; color: var(--muted); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 200%); z-index: 300; background: var(--ink); color: var(--paper); border: var(--line) solid var(--ink); box-shadow: 6px 6px 0 var(--volt); padding: .8rem 1.1rem; font-family: var(--font-mono); font-size: var(--text-sm); transition: transform .35s var(--ease), visibility .35s; max-width: 92vw; visibility: hidden; }
.toast.show { transform: translate(-50%, 0); visibility: visible; }

/* ---------- Cursor label ---------- */
.cursor-tag { position: fixed; z-index: 400; pointer-events: none; padding: .3rem .55rem; background: var(--volt); color: #0e0e0c; border: 2px solid #0e0e0c; font-family: var(--font-mono); font-size: .7rem; font-weight: 700; text-transform: uppercase; transform: translate(14px, 14px) scale(0); transform-origin: top left; transition: transform .18s var(--ease); white-space: nowrap; }
.cursor-tag.on { transform: translate(14px, 14px) scale(1); }
@media (hover: none) { .cursor-tag { display: none; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- Legal ---------- */
.legal { max-width: 72ch; }
.legal h2 { font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); margin-top: 2.5rem; margin-bottom: .75rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal p + p { margin-top: 1rem; }

/* ---------- 404 ---------- */
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.nf h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(8rem, 30vw, 22rem); line-height: .8; letter-spacing: -0.07em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero__title .line > span { transform: none; }
  .reveal { opacity: 1; transform: none; }
}

/* grid overflow guards */
.split > *, .testgrid-wrap > *, .hero__grid > *, .post-grid > *, .loop > *, .modules > * { min-width: 0; }
figure.qcard { margin: 0; }
.logos { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 860px) { .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logos > div { font-size: 1.05rem; min-height: 72px; border-bottom: 2px solid var(--ink); border-right: 2px solid var(--ink) !important; }
  .logos > div:nth-child(2n) { border-right: 0 !important; }
  .logos > div:nth-last-child(-n+2) { border-bottom: 0; }
  .pg__bar > span:nth-child(2) { display: none; }
  .playground { box-shadow: var(--shadow); }
  .pg__log { height: 300px; }
  .hero__actions .btn { width: 100%; }
}
.plan > .tag { align-self: flex-start; }
.plan__price small { display: block; margin-top: .5rem; }
@media (min-width: 900px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
.field .chip input { width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; }
.chip { position: relative; }
.success { scroll-margin-top: 110px; }
