/* ============================================================
   noban.gg - marketing site
   Lane: "The Inspect Screen" — in-game item inspect × trading desk.
   The float bar is the signature motif; CS2 rarity is the color language.
   ============================================================ */

:root {
  /* base — near-black, faint violet tint (the desk at night) */
  --bg: oklch(0.155 0.012 285);
  --bg-2: oklch(0.185 0.013 285);
  --surface: oklch(0.21 0.014 285);
  --surface-2: oklch(0.25 0.016 285);
  --line: oklch(0.31 0.014 285);
  --line-soft: oklch(0.26 0.013 285);

  /* ink — AA-safe on the dark base */
  --ink: oklch(0.97 0.004 285);
  --ink-2: oklch(0.81 0.006 285);
  --ink-3: oklch(0.70 0.009 285);

  /* CS2 rarity spectrum — a data language, never decoration */
  --blue: oklch(0.66 0.16 256);   /* mil-spec */
  --violet: oklch(0.62 0.21 285); /* restricted — lead accent */
  --magenta: oklch(0.66 0.25 330);/* classified */
  --red: oklch(0.64 0.21 22);     /* covert / live / loss */
  --gold: oklch(0.85 0.18 95);    /* knife / pro / profit */
  --green: oklch(0.78 0.18 150);  /* safe / simulation / good float */

  --violet-soft: oklch(0.62 0.21 285 / 0.16);
  --gold-soft: oklch(0.85 0.18 95 / 0.12);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 7px;
  --wrap: 1200px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1); /* ease-out-expo-ish */

  --z-header: 100;

  --font-display: "Saira", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;
}

/* ---------------- reset ---------------- */
*,
*::before,
*::after { box-sizing: border-box; }
* { margin: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* desk vignette + faint instrument grid */
  background-image:
    radial-gradient(125% 80% at 82% -8%, oklch(0.62 0.21 285 / 0.12), transparent 58%),
    radial-gradient(90% 70% at -5% 0%, oklch(0.66 0.25 330 / 0.07), transparent 52%);
  background-attachment: fixed;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
p { text-wrap: pretty; }
code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  padding: 0.06em 0.36em;
  color: var(--ink);
}

/* ---------------- a11y ---------------- */
.skip-link {
  position: fixed;
  top: 0.5rem; left: 0.5rem;
  z-index: 300;
  background: var(--violet);
  color: oklch(0.99 0 0);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }
:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}
.conn-sr,
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.975rem;
  letter-spacing: 0.005em;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 0.18s var(--ease),
    background 0.18s var(--ease),
    border-color 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}
.btn-lg { padding: 0.9rem 1.55rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary {
  /* darkened from var(--violet) so the label passes 4.5:1 AA contrast */
  background: oklch(0.56 0.21 285);
  color: oklch(0.99 0.01 285);
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.2) inset, 0 10px 30px -14px var(--violet);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.28) inset, 0 16px 34px -14px var(--violet);
}
.btn-ghost {
  background: oklch(1 0 0 / 0.025);
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: color-mix(in oklch, var(--violet) 60%, var(--line));
  background: var(--violet-soft);
  transform: translateY(-2px);
}
.btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

/* ---------------- header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: oklch(0.155 0.012 285 / 0.74);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 66px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-mark { color: var(--violet); display: grid; place-items: center; }
.brand-name { font-size: 1.06rem; }
.site-nav {
  display: flex;
  gap: 1.5rem;
  margin-inline: auto;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.site-nav a { position: relative; padding: 0.3rem 0; transition: color 0.18s var(--ease); }
.site-nav a:hover { color: var(--ink); }
.site-nav a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  height: 2px; width: 0;
  background: var(--violet);
  transition: width 0.22s var(--ease);
}
.site-nav a:hover::after { width: 100%; }
.header-cta { display: flex; gap: 0.6rem; }

/* ---------------- hero ---------------- */
.hero { padding-top: clamp(2.5rem, 6vw, 5rem); position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-2);
  letter-spacing: 0.01em;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
}
.flag-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px oklch(0.78 0.18 150 / 0.2);
}
#hero-title {
  font-size: clamp(2.7rem, 1.5rem + 5vw, 5.4rem);
  font-weight: 800;
  margin-top: 1.15rem;
  letter-spacing: -0.035em;
}
.accent-ink { color: var(--gold); }
.hero-sub {
  color: var(--ink-2);
  font-size: clamp(1.05rem, 1rem + 0.45vw, 1.22rem);
  max-width: 54ch;
  margin-top: 1.3rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.hero-trust {
  list-style: none; padding: 0;
  margin-top: 1.9rem;
  display: flex; flex-wrap: wrap;
  gap: 0.55rem 1.5rem;
  font-size: 0.92rem;
  color: var(--ink-2);
}
.hero-trust li { display: inline-flex; align-items: center; gap: 0.5rem; }
.tick {
  width: 16px; height: 16px; flex: none;
  border-radius: 5px;
  background: var(--gold-soft);
  border: 1px solid color-mix(in oklch, var(--gold) 40%, transparent);
  position: relative;
}
.tick::after {
  content: "";
  position: absolute; left: 5px; top: 2px;
  width: 4px; height: 8px;
  border: solid var(--gold);
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}

/* ---------------- inspect card (signature) ---------------- */
.inspect {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 50% -20%, oklch(0.62 0.21 285 / 0.14), transparent 60%),
    linear-gradient(180deg, var(--surface), var(--bg-2));
  box-shadow:
    0 1px 0 oklch(1 0 0 / 0.05) inset,
    0 50px 90px -50px oklch(0 0 0 / 0.85);
  overflow: hidden;
}
.inspect-chrome {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.95rem;
  border-bottom: 1px solid var(--line-soft);
  background: oklch(0.2 0.014 285 / 0.6);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-3);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-r { background: var(--red); }
.dot-g { background: var(--green); }
.dot-b { background: var(--blue); }
.inspect-route { margin-left: 0.4rem; }
.inspect-badge {
  margin-left: auto;
  color: var(--green);
  border: 1px solid color-mix(in oklch, var(--green) 40%, transparent);
  background: oklch(0.78 0.18 150 / 0.1);
  border-radius: 5px;
  padding: 0.06rem 0.45rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}
.inspect-body {
  padding: 1.15rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}

/* skin header: paint swatch + identity */
.skin { display: flex; gap: 1rem; align-items: stretch; }
.skin-swatch {
  position: relative;
  width: 116px; flex: none;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  /* diagonal "redline" paint treatment in rarity color */
  background:
    linear-gradient(125deg, oklch(0.2 0.02 22) 0%, oklch(0.32 0.12 22) 42%, var(--red) 58%, oklch(0.18 0.02 22) 60%, oklch(0.26 0.04 22) 100%);
}
.skin-swatch[data-rarity="restricted"] {
  box-shadow: inset 0 -3px 0 var(--violet);
}
.skin-grade {
  position: absolute; top: 0.45rem; left: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--gold);
  letter-spacing: 0.04em;
}
.skin-shine {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, oklch(1 0 0 / 0.18) 47%, transparent 56%);
  transform: translateX(-100%);
}
.inspect.in .skin-shine { animation: shine 2.6s var(--ease) 0.5s 1; }
@keyframes shine { to { transform: translateX(100%); } }
.skin-id { display: flex; flex-direction: column; justify-content: center; gap: 0.12rem; min-width: 0; }
.skin-weapon { font-family: var(--font-display); font-size: 0.92rem; color: var(--ink-3); letter-spacing: 0.02em; }
.skin-paint { font-family: var(--font-display); font-weight: 700; font-size: 1.55rem; letter-spacing: -0.02em; }
.skin-wear { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-2); margin-top: 0.15rem; }

/* the float bar — reused on the page and in the app */
.floatbar { display: flex; flex-direction: column; gap: 0.4rem; }
.floatbar-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.06em; color: var(--ink-3);
}
.floatbar-val { color: var(--ink); font-size: 0.84rem; }
.floatbar-track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  /* quality scale: low float (good) → high float (worn) */
  background: linear-gradient(90deg,
    oklch(0.78 0.18 150 / 0.55) 0%,
    oklch(0.85 0.18 95 / 0.5) 38%,
    oklch(0.7 0.18 50 / 0.5) 60%,
    oklch(0.64 0.21 22 / 0.55) 100%);
  overflow: hidden;
}
/* wear-zone boundary ticks at 7 / 15 / 38 / 45% */
.floatbar-track::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(90deg, transparent calc(7% - 1px), oklch(0 0 0 / 0.45) 7%, transparent calc(7% + 1px)),
    linear-gradient(90deg, transparent calc(15% - 1px), oklch(0 0 0 / 0.45) 15%, transparent calc(15% + 1px)),
    linear-gradient(90deg, transparent calc(38% - 1px), oklch(0 0 0 / 0.45) 38%, transparent calc(38% + 1px)),
    linear-gradient(90deg, transparent calc(45% - 1px), oklch(0 0 0 / 0.45) 45%, transparent calc(45% + 1px));
}
.floatbar-fill {
  position: absolute; inset: 0 auto 0 0;
  width: calc(var(--f) * 100%);
  background: oklch(1 0 0 / 0.1);
  border-right: 1px solid oklch(1 0 0 / 0.15);
}
.inspect.in .floatbar-fill { animation: floatfill 1.1s var(--ease) 0.35s 1 backwards; }
@keyframes floatfill { from { width: 0; } }
.floatbar-marker {
  position: absolute; top: -3px; bottom: -3px;
  left: calc(var(--f) * 100%);
  width: 2px;
  background: var(--ink);
  box-shadow: 0 0 8px oklch(1 0 0 / 0.6);
  transform: translateX(-1px);
}
.floatbar-marker::after {
  content: "";
  position: absolute; top: -4px; left: 50%;
  width: 7px; height: 7px;
  background: var(--ink);
  border-radius: 2px;
  transform: translateX(-50%) rotate(45deg);
}
.inspect.in .floatbar-marker { animation: floatmark 1.1s var(--ease) 0.35s 1 backwards; }
@keyframes floatmark { from { left: 0; } }
.floatbar-zones {
  display: grid;
  grid-template-columns: 0.07fr 0.08fr 0.23fr 0.07fr 0.55fr;
  font-size: 0.62rem;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.floatbar-zones span { text-align: center; }
.floatbar-zones span:nth-child(3) { color: var(--ink); } /* FT = active zone for 0.2143 */

/* rarity tier bar */
.rarity-row { display: flex; align-items: center; gap: 0.7rem; }
.rarity-bar { display: inline-flex; gap: 4px; }
.rarity-bar i {
  width: 22px; height: 5px; border-radius: 2px;
  background: var(--line);
}
.rarity-bar i[data-on] { background: var(--violet); box-shadow: 0 0 8px oklch(0.62 0.21 285 / 0.5); }
.rarity-label { font-size: 0.72rem; color: var(--violet); letter-spacing: 0.08em; }

/* buy → sell → net spread */
.spread {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.6rem 0.9rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
}
.spread-leg { display: flex; flex-direction: column; gap: 0.18rem; }
.leg-label { font-size: 0.66rem; color: var(--ink-3); letter-spacing: 0.06em; }
.leg-price { font-size: 1.15rem; color: var(--ink); }
.spread-arrow { color: var(--ink-3); font-size: 1.1rem; }
.spread-net {
  grid-column: 1 / -1;
  display: flex; align-items: baseline; gap: 0.6rem;
  padding-top: 0.7rem; margin-top: 0.1rem;
  border-top: 1px solid var(--line-soft);
}
.net-label { font-size: 0.66rem; color: var(--ink-3); letter-spacing: 0.06em; }
.net-val { font-size: 1.35rem; font-weight: 600; color: var(--gold); }
.net-pct { font-size: 0.82rem; color: var(--gold); margin-left: auto; }

/* mini venue chart */
.chart { display: flex; flex-direction: column; gap: 0.5rem; }
.chart-head {
  display: flex; justify-content: space-between;
  font-size: 0.68rem; letter-spacing: 0.05em; color: var(--ink-3);
}
.muted { color: var(--ink-3); }
.chart-svg { width: 100%; height: 96px; }
.chart-legend { display: flex; gap: 1.1rem; font-size: 0.68rem; color: var(--ink-3); }
.chart-legend span { display: inline-flex; align-items: center; gap: 0.35rem; }
.chart-legend i { width: 14px; height: 3px; border-radius: 2px; }

/* ---------------- live tape ---------------- */
.tape {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border-block: 1px solid var(--line-soft);
  background: oklch(0.18 0.013 285 / 0.5);
  overflow: clip; /* the animated rail is wider than the viewport */
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.tape-rail {
  display: flex;
  gap: 2.2rem;
  width: max-content;
  padding: 0.6rem 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-2);
  animation: tape 40s linear infinite;
}
.tape:hover .tape-rail { animation-play-state: paused; }
@keyframes tape { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tape-item { display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap; }
.tape-item .t-rk { width: 7px; height: 7px; border-radius: 2px; }
.tape-item .t-dl { color: var(--gold); }
.tape-item .t-dl.down { color: var(--red); }
.tape-sep { color: var(--line); }

/* ---------------- proof readout ---------------- */
.proof { padding-block: clamp(1.6rem, 3vw, 2.4rem); }
.proof-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.proof-item {
  display: flex; flex-direction: column; gap: 0.3rem;
  padding: 0.4rem 1.5rem;
  border-left: 1px solid var(--line-soft);
}
.proof-item:first-child { border-left: 0; padding-left: 0; }
.proof-item dt {
  font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.2rem);
  font-weight: 600;
  color: var(--gold);
  letter-spacing: -0.02em;
}
.proof-item dd { font-size: 0.9rem; color: var(--ink-2); line-height: 1.4; }

/* ---------------- sections ---------------- */
.section { padding-block: clamp(3.8rem, 8vw, 7rem); }
.section-head { max-width: 60ch; margin-bottom: clamp(2.2rem, 4vw, 3.2rem); }
.section-head h2 {
  font-size: clamp(2rem, 1.35rem + 2.8vw, 3.2rem);
  letter-spacing: -0.03em;
}
.section-head h2 em { font-style: normal; color: var(--gold); }
.section-head p {
  color: var(--ink-2);
  font-size: clamp(1.02rem, 1rem + 0.32vw, 1.18rem);
  margin-top: 1rem;
}

/* ---------------- safety console ---------------- */
.console {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1.4rem;
  align-items: start;
}
.console-rails { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.rail {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.4rem 1.4rem 1.5rem;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), background 0.22s var(--ease);
}
.rail:hover {
  transform: translateY(-3px);
  border-color: color-mix(in oklch, var(--c, var(--violet)) 55%, var(--line));
  background: color-mix(in oklch, var(--c, var(--violet)) 6%, var(--surface));
}
.rail-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  /* lifted toward white so small rarity-coded text keeps AA contrast */
  color: color-mix(in oklch, var(--c) 72%, white);
  border: 1px solid color-mix(in oklch, var(--c) 40%, transparent);
  background: color-mix(in oklch, var(--c) 12%, transparent);
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}
.rail h3 { font-size: 1.32rem; margin-bottom: 0.45rem; }
.rail p { color: var(--ink-2); font-size: 0.96rem; }

.matrix {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-2), var(--surface));
  padding: 1.1rem 1.2rem 1.3rem;
  font-family: var(--font-mono);
}
.matrix-head,
.matrix-row {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.9fr 1fr;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
}
.matrix-head { color: var(--ink-3); letter-spacing: 0.06em; padding-bottom: 0.6rem; border-bottom: 1px solid var(--line-soft); }
.matrix-row { padding: 0.55rem 0; border-bottom: 1px solid var(--line-soft); }
.matrix-row .v { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ink); }
.matrix-row .v i { width: 8px; height: 8px; border-radius: 2px; }
.matrix b { font-weight: 500; }
[data-cap="auto"] { color: var(--green); }
[data-cap="assisted"] { color: var(--blue); }
[data-cap="manual"] { color: var(--ink-2); }
[data-cap="unsupported"] { color: var(--red); }
.matrix-foot {
  margin-top: 0.9rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--ink-3);
  line-height: 1.5;
}

/* ---------------- how it works — flow ---------------- */
.flow {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  position: relative;
}
/* connective float rail under the steps */
.flow::before {
  content: "";
  position: absolute;
  top: 1.05rem; left: 1.3rem; right: 1.3rem;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--gold) 45%, var(--violet));
  opacity: 0.45;
}
.flow-step { position: relative; padding-top: 2.6rem; }
.flow-n {
  position: absolute; top: 0; left: 0;
  display: grid; place-items: center;
  width: 2.2rem; height: 2.2rem;
  border-radius: 999px;
  font-size: 0.86rem; font-weight: 500;
  color: var(--violet);
  background: var(--bg);
  border: 1.5px solid color-mix(in oklch, var(--violet) 50%, var(--line));
}
.flow-step h3 { font-size: 1.18rem; margin-bottom: 0.4rem; }
.flow-step p { color: var(--ink-2); font-size: 0.94rem; }
.flow-handback {
  margin-top: 1.8rem;
  display: flex; align-items: baseline; gap: 0.7rem;
  flex-wrap: wrap;
  color: var(--ink-2);
  font-size: 0.96rem;
  max-width: 80ch;
}
.hb-pill {
  font-size: 0.72rem; color: var(--ink-2);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0.16rem 0.55rem; border-radius: 999px;
}

/* ---------------- bento ---------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  grid-auto-rows: 1fr;
}
.bento-cell {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  padding: 1.5rem;
  display: flex; flex-direction: column;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease);
}
.bento-cell:hover { transform: translateY(-3px); border-color: color-mix(in oklch, var(--violet) 35%, var(--line)); }
.bento-lead { grid-row: span 2; }
.bento-wide { grid-column: span 2; }
.bento-tag {
  font-size: 0.72rem; color: var(--ink-3);
  letter-spacing: 0.05em; margin-bottom: 0.75rem;
}
.bento-cell h3 { font-size: 1.28rem; margin-bottom: 0.5rem; }
.bento-cell > p { color: var(--ink-2); font-size: 0.95rem; }
.bento-link { margin-top: auto; padding-top: 1rem; }
.bento-link a { font-family: var(--font-mono); font-size: 0.84rem; color: var(--gold); }
.bento-link a:hover { text-decoration: underline; text-underline-offset: 3px; }
.bento-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.1rem; }
.chip {
  font-size: 0.72rem; color: var(--ink-2);
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 999px;
  padding: 0.22rem 0.62rem;
}
.mini-term {
  margin-top: auto; padding-top: 1.2rem;
  display: flex; flex-direction: column; gap: 0.25rem;
}
.mini-row {
  display: grid;
  grid-template-columns: 8px 1fr auto auto;
  align-items: center; gap: 0.6rem;
  padding: 0.4rem 0.55rem;
  border-radius: 7px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
}
.mini-rk { width: 8px; height: 8px; border-radius: 2px; }
.mini-nm { font-size: 0.86rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-px { font-size: 0.82rem; color: var(--ink-2); }
.mini-dl { font-size: 0.82rem; color: var(--gold); }

/* ---------------- three layers — stack ---------------- */
.stack { display: flex; flex-direction: column; gap: 1rem; max-width: 980px; }
.layer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, color-mix(in oklch, var(--c) 9%, var(--surface)), var(--surface) 38%);
  padding: 1.5rem 1.6rem;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease);
}
.layer:hover { transform: translateX(4px); border-color: color-mix(in oklch, var(--c) 50%, var(--line)); }
.layer-mark {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 700;
  color: var(--c);
  width: 2.4rem;
  line-height: 1;
}
.layer-body h3 { font-size: 1.5rem; margin-bottom: 0.45rem; }
.layer-body > p { color: var(--ink-2); font-size: 0.98rem; max-width: 70ch; }
.layer-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1rem; }

/* ---------------- connectors marquee ---------------- */
.connectors { padding-block: clamp(2.6rem, 5vw, 4rem); }
.conn-title {
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.85rem);
  color: var(--ink-2);
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.marquee {
  display: flex;
  gap: 0.7rem;
  width: max-content;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  animation: marquee 38s linear infinite;
}
.connectors:hover .marquee { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 0.35rem)); } }
.marquee-track { display: flex; gap: 0.7rem; list-style: none; padding: 0; margin: 0; }
.conn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.9rem;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  white-space: nowrap;
}
.conn i { width: 8px; height: 8px; border-radius: 50%; }
.conn small { color: var(--ink-3); font-size: 0.72rem; }

/* ---------------- pricing ---------------- */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; align-items: stretch; }
.tier {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.6rem;
  display: flex; flex-direction: column;
}
.tier-pro {
  position: relative;
  border-color: color-mix(in oklch, var(--gold) 50%, var(--line));
  background: linear-gradient(180deg, var(--gold-soft), var(--surface) 42%);
  box-shadow: 0 24px 60px -34px oklch(0.85 0.18 95 / 0.55);
}
.tier-flag {
  position: absolute; top: -0.72rem; right: 1.4rem;
  font-size: 0.7rem; letter-spacing: 0.05em; font-weight: 500;
  color: oklch(0.2 0.04 95);
  background: var(--gold);
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
}
.tier-head { margin-bottom: 1.2rem; }
.tier-head h3 { font-size: 1.32rem; }
.tier-price { margin-top: 0.55rem; display: flex; align-items: baseline; gap: 0.5rem; }
.tier-price .amt { font-size: 2.5rem; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); }
.tier-pro .tier-price .amt { color: var(--gold); }
.tier-price .per { font-size: 0.85rem; color: var(--ink-3); }
.tier-note { margin-top: 0.5rem; font-size: 0.86rem; color: var(--ink-3); }
.tier-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.tier-list li { position: relative; padding-left: 1.5rem; color: var(--ink-2); font-size: 0.95rem; }
.tier-list li::before {
  content: "›"; position: absolute; left: 0.15rem; top: -0.05rem;
  color: var(--violet); font-family: var(--font-mono); font-weight: 600;
}
.tier-pro .tier-list li::before { color: var(--gold); }
.tier-foot { margin-top: 0.85rem; font-size: 0.8rem; color: var(--ink-3); text-align: center; }

/* ---------------- download ---------------- */
.download {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(110% 150% at 100% 0%, var(--violet-soft), transparent 58%),
    linear-gradient(180deg, var(--surface), var(--bg-2));
  padding: clamp(2rem, 5vw, 3.6rem);
  text-align: center;
}
.download h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.7rem); }
.download-copy > p { color: var(--ink-2); max-width: 52ch; margin: 0.9rem auto 0; }
.dl-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; margin-top: 1.9rem; }
.dl-note { margin-top: 1.3rem; font-size: 0.78rem; color: var(--ink-3); }

/* ---------------- faq ---------------- */
.faq { max-width: 840px; display: flex; flex-direction: column; gap: 0.7rem; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.18s var(--ease);
}
.faq details[open] { border-color: color-mix(in oklch, var(--violet) 40%, var(--line)); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 1.1rem 1.3rem;
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.06rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  transition: color 0.18s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq-mark { position: relative; width: 14px; height: 14px; flex: none; }
.faq-mark::before, .faq-mark::after {
  content: ""; position: absolute; background: var(--violet);
  transition: transform 0.25s var(--ease);
}
.faq-mark::before { top: 6px; left: 0; width: 14px; height: 2px; }
.faq-mark::after { top: 0; left: 6px; width: 2px; height: 14px; }
.faq details[open] .faq-mark::after { transform: scaleY(0); }
.faq summary:hover { color: var(--gold); }
.faq details p { padding: 0 1.3rem 1.2rem; color: var(--ink-2); font-size: 0.96rem; max-width: 72ch; }
.faq a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }

/* ---------------- CTA band ---------------- */
.cta {
  position: relative;
  margin-block: clamp(3rem, 7vw, 5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(120deg, var(--violet-soft), oklch(0.66 0.25 330 / 0.08));
  padding: clamp(2.6rem, 6vw, 4.2rem);
  text-align: center;
  overflow: hidden;
}
.cta-glow {
  position: absolute; inset: auto -10% -60% -10%;
  height: 70%;
  background: radial-gradient(60% 100% at 50% 100%, oklch(0.62 0.21 285 / 0.35), transparent 70%);
  pointer-events: none;
}
.cta h2 { font-size: clamp(2rem, 1.4rem + 3vw, 3.3rem); position: relative; }
.cta p { color: var(--ink-2); max-width: 50ch; margin: 1rem auto 1.8rem; position: relative; }
.cta .btn { position: relative; }

/* ---------------- footer ---------------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  background: var(--bg-2);
  padding-block: clamp(2.6rem, 5vw, 3.6rem) 2rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line-soft);
}
.footer-tag { color: var(--ink-3); font-size: 0.92rem; margin-top: 0.8rem; max-width: 36ch; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer-nav h3 {
  font-size: 0.72rem; letter-spacing: 0.06em;
  color: var(--ink-3); font-weight: 500;
  text-transform: uppercase; margin-bottom: 0.85rem;
}
.footer-nav a { display: block; color: var(--ink-2); font-size: 0.92rem; padding: 0.22rem 0; transition: color 0.18s var(--ease); }
.footer-nav a:hover { color: var(--ink); }
.footer-fine { padding-top: 1.5rem; }
.footer-fine p { color: var(--ink-3); font-size: 0.82rem; max-width: 92ch; line-height: 1.6; }
.footer-fine strong { color: var(--ink-2); }
.footer-copy { margin-top: 0.8rem; }

/* ---------------- reveal motion ---------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- responsive ---------------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .inspect { order: 2; max-width: 560px; }
  .console { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-lead { grid-row: auto; }
  .bento-wide { grid-column: span 2; }
}
@media (max-width: 1000px) {
  /* 9 nav links + 2 CTAs need ~990px; below that the nav wraps and pushes the
     CTAs off-viewport, so hide the nav (links remain in the footer) */
  .site-nav { display: none; }
  .header-inner { justify-content: space-between; }
}
@media (max-width: 760px) {
  .header-cta .btn-ghost { display: none; }
  .footer-nav a { padding: 0.85rem 0; }
  .proof-rail { grid-template-columns: 1fr 1fr; gap: 1.2rem 0; }
  .proof-item { padding: 0.4rem 1rem; }
  .proof-item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .console-rails { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow::before { display: none; }
  .bento, .tiers { grid-template-columns: 1fr; }
  .bento-wide { grid-column: span 1; }
  .layer { grid-template-columns: 1fr; gap: 0.5rem; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .flow { grid-template-columns: 1fr; }
  .spread { grid-template-columns: 1fr; }
  .spread-arrow { justify-self: start; transform: rotate(90deg); }
}

/* ---------------- reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .tape-rail, .marquee { animation: none; }
}
