/* =========================================================
   Magnit — design system
   Aesthetic: industrial compute terminal. Warm charcoal,
   electric chartreuse accent, blueprint markers, real type.
   ========================================================= */

:root {
  --bg:        #0b0c10;
  --bg-2:      #101218;
  --panel:     #13151d;
  --ink:       #f2f3f7;
  --ink-dim:   #9aa0ad;
  --ink-faint: #5c626f;
  --line:      #23262f;
  --line-2:    #333845;

  --acc:       #ff2d7e;   /* hot pink (Magnit logo) */
  --acc-deep:  #d11f63;
  --acc-light: #ff9ec4;   /* light pink highlight (logo) */
  --warm:      #ff5470;   /* warm pink-red, alerts */
  --ok:        #ff86b8;   /* bright pink = active / online */

  --font-disp: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 64px);
  --r: 14px;
  --ease: cubic-bezier(.16,.84,.34,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-disp);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  selection-color: var(--bg);
}
::selection { background: var(--acc); color: var(--bg); }

a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }

.mono-dim { font-family: var(--font-mono); color: var(--ink-faint); }

/* ---------- grain / scanline overlay ---------- */
.grain {
  position: fixed; inset: 0; z-index: 9000; pointer-events: none;
  opacity: .045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.grain::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(0,0,0,.5) 3px 4px);
  opacity: .25;
}

/* ---------- status bar ---------- */
.statusbar {
  position: sticky; top: 0; z-index: 60;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em;
  color: var(--ink-dim);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.statusbar__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 7px var(--pad);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.statusbar .sep { color: var(--ink-faint); }
.statusbar .ok { color: var(--ok); }
.dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 8px var(--ok); animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 30px; z-index: 55;
  max-width: var(--maxw); margin: 0 auto; padding: 16px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav::before {
  content: ""; position: absolute; inset: 8px var(--pad); z-index: -1;
  background: rgba(12,13,11,.72); backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: var(--r);
}
.brand { display: inline-flex; align-items: baseline; gap: 9px; }
.brand__mark {
  width: 30px; height: 30px; align-self: center;
  image-rendering: pixelated; /* keep the pixel galaxy crisp */
  filter: drop-shadow(0 0 9px rgba(255,45,126,.4));
}
.brand__word { font-weight: 700; letter-spacing: .14em; font-size: 18px; }
.brand__tag { font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); }
.nav__links { display: flex; gap: 26px; }
.nav__links a {
  font-size: 14px; color: var(--ink-dim); display: inline-flex; gap: 6px; align-items: baseline;
  transition: color .2s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__idx { font-family: var(--font-mono); font-size: 10px; color: var(--acc-deep); }
.nav__cta { white-space: nowrap; }
.nav__actions { display: flex; align-items: center; gap: 10px; }
@media (max-width: 860px) { .nav__links { display: none; } }
@media (max-width: 560px) { .nav__cta--console { display: none; } }

/* ---------- wallet ---------- */
.wallet { position: relative; }
.wallet__btn { white-space: nowrap; }
.wallet__dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(11,12,16,.45);
  box-shadow: inset 0 0 0 1px rgba(11,12,16,.3);
}
.wallet__btn.is-connected { background: var(--panel); color: var(--ink); border-color: var(--line-2); }
.wallet__btn.is-connected:hover { border-color: var(--acc); color: var(--acc); box-shadow: none; }
.wallet__btn.is-connected .wallet__dot { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.wallet__menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 248px; z-index: 70;
  background: rgba(16,18,24,.96); backdrop-filter: blur(12px);
  border: 1px solid var(--line-2); border-radius: 12px; padding: 8px;
  box-shadow: 0 24px 50px -24px #000;
  animation: walletPop .16s var(--ease);
}
@keyframes walletPop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.wallet__head {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-faint); padding: 6px 10px 2px;
}
.wallet__addr {
  font-family: var(--font-mono); font-size: 12px; color: var(--acc); word-break: break-all;
  padding: 2px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px;
}
.wallet__item {
  display: block; width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-family: var(--font-mono); font-size: 13px; color: var(--ink-dim);
  padding: 9px 10px; border-radius: 8px; transition: background .15s, color .15s;
}
.wallet__item:hover { background: var(--bg-2); color: var(--ink); }
.wallet__item--danger:hover { color: var(--warm); }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: .02em;
  padding: 12px 20px; border-radius: 10px; cursor: pointer; border: 1px solid transparent;
  transition: transform .18s var(--ease), background .2s, color .2s, border-color .2s;
  overflow: hidden;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--solid { background: var(--acc); color: #0b0c08; font-weight: 700; }
.btn--solid:hover { background: #d6ff5a; box-shadow: 0 8px 30px -8px var(--acc); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--acc); color: var(--acc); }
.btn--block { width: 100%; justify-content: center; }
.btn--lg { padding: 16px 30px; font-size: 15px; }
.btn__spark {
  position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg);
}
.btn:hover .btn__spark { animation: spark .7s var(--ease); }
@keyframes spark { from { left: -60%; } to { left: 130%; } }

/* ---------- hero ---------- */
.hero {
  position: relative; max-width: var(--maxw); margin: 0 auto;
  padding: clamp(40px, 9vw, 110px) var(--pad) 0;
  min-height: 86vh; display: flex; flex-direction: column; justify-content: center;
}
.hero__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: -1; opacity: .9;
  mask-image: radial-gradient(120% 90% at 70% 35%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 70% 35%, #000 30%, transparent 78%);
}
.hero__meta {
  display: flex; gap: 18px; font-family: var(--font-mono); font-size: 12px;
  color: var(--acc-deep); letter-spacing: .08em; margin-bottom: 26px;
}
.hero__title {
  font-size: clamp(40px, 8.4vw, 104px); font-weight: 700; line-height: .98;
  letter-spacing: -.02em; margin-bottom: 26px;
}
.hero__title .line { display: block; }
.hero__title em {
  font-style: normal; color: var(--acc);
  text-shadow: 0 0 34px rgba(255,45,126,.35);
}
.hero__sub {
  max-width: 540px; font-size: clamp(15px, 2vw, 18px); color: var(--ink-dim);
  margin-bottom: 36px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }
.hero__stats {
  display: flex; gap: clamp(24px, 5vw, 60px); list-style: none; flex-wrap: wrap;
  padding-top: 30px; border-top: 1px solid var(--line);
}
.hero__stats b {
  display: block; font-size: clamp(28px, 4vw, 44px); font-weight: 700;
  font-variant-numeric: tabular-nums; line-height: 1;
}
.hero__stats span { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); }

.hero__ticker {
  margin-top: 60px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 10px 0;
}
.ticker__track {
  display: flex; gap: 40px; white-space: nowrap; width: max-content;
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-dim);
  animation: scroll-x 38s linear infinite;
}
.ticker__track span b { color: var(--acc); }
@keyframes scroll-x { from { transform: translateX(0);} to { transform: translateX(-50%);} }

/* ---------- generic section ---------- */
.section {
  max-width: var(--maxw); margin: 0 auto; padding: clamp(70px, 11vw, 140px) var(--pad);
}
.section--alt {
  max-width: none; background: var(--bg-2); border-block: 1px solid var(--line);
}
.section--alt > * { max-width: var(--maxw); margin-inline: auto; }
.section__head { max-width: 680px; margin-bottom: 50px; }
.section__marker {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em;
  color: var(--acc-deep); margin-bottom: 18px;
}
.section__title {
  font-size: clamp(30px, 5vw, 56px); font-weight: 700; letter-spacing: -.02em; line-height: 1.02;
}
.section__lede { margin-top: 18px; color: var(--ink-dim); font-size: clamp(15px,2vw,18px); max-width: 560px; }

/* ---------- fleet ---------- */
.fleet__filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.chip {
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-dim);
  background: transparent; border: 1px solid var(--line-2); border-radius: 999px;
  padding: 8px 16px; cursor: pointer; transition: all .18s var(--ease);
}
.chip:hover { color: var(--ink); border-color: var(--ink-faint); }
.chip.is-active { background: var(--acc); color: #0b0c08; border-color: var(--acc); font-weight: 700; }

.fleet__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px;
}
.card {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r); padding: 24px; overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx,50%) var(--my,0%), rgba(255,45,126,.10), transparent 60%);
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 24px 50px -30px #000; }
.card:hover::before { opacity: 1; }
.card.is-hidden { display: none; }
.card__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.card__name { font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.card__vendor { font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); }
.card__badge {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--ink-dim);
}
.card__badge--hot { color: var(--warm); border-color: rgba(255,107,61,.4); }
.card__badge--new { color: var(--acc); border-color: rgba(255,45,126,.4); }
.card__specs { list-style: none; display: grid; gap: 9px; margin: 20px 0; }
.card__specs li {
  display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 12.5px;
  color: var(--ink-dim); padding-bottom: 9px; border-bottom: 1px dashed var(--line);
}
.card__specs li b { color: var(--ink); font-weight: 500; }
.card__price { display: flex; align-items: baseline; gap: 6px; margin-top: 18px; }
.card__price b { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; }
.card__price small { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); }
.card__bar { height: 4px; border-radius: 4px; background: var(--line); margin-top: 16px; overflow: hidden; }
.card__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--acc-deep), var(--acc)); width: 0; transition: width 1s var(--ease); }
.card__perf { font-family: var(--font-mono); font-size: 10px; color: var(--ink-faint); margin-top: 7px; }

/* ---------- calculator ---------- */
.calc { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 820px) { .calc { grid-template-columns: 1fr; } }
.calc__controls {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(22px, 3vw, 34px); display: grid; gap: 30px;
}
.field { display: grid; gap: 12px; }
.field__row { display: flex; justify-content: space-between; align-items: baseline; }
.field label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: var(--ink-dim); text-transform: uppercase; }
.field__val { font-family: var(--font-mono); font-size: 18px; font-weight: 700; color: var(--acc); }
.field__scale { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10px; color: var(--ink-faint); }

.select-wrap { position: relative; }
.select-wrap::after {
  content: "▾"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  color: var(--acc); pointer-events: none; font-size: 12px;
}
select {
  width: 100%; appearance: none; background: var(--bg); color: var(--ink);
  border: 1px solid var(--line-2); border-radius: 10px; padding: 14px 16px;
  font-family: var(--font-mono); font-size: 14px; cursor: pointer;
}
select:focus { outline: none; border-color: var(--acc); }

input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px;
  background: var(--line-2); border-radius: 4px; cursor: pointer;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--acc); border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--acc-deep), 0 0 16px rgba(255,45,126,.5); cursor: grab;
  transition: transform .12s;
}
input[type=range]::-webkit-slider-thumb:active { transform: scale(1.15); cursor: grabbing; }
input[type=range]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: var(--acc);
  border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--acc-deep); cursor: grab;
}

.calc__out {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line-2); border-radius: var(--r); padding: clamp(22px,3vw,30px);
  position: sticky; top: 90px;
}
.calc__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.calc__rate { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.calc__rateval { font-family: var(--font-mono); font-weight: 700; }
.calc__rateval span { font-size: 18px; }
.calc__rateval small { color: var(--ink-faint); font-weight: 400; font-size: 11px; margin-left: 4px; }
.calc__big { padding: 22px 0; }
.calc__bignum {
  font-size: clamp(44px, 8vw, 66px); font-weight: 700; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums; line-height: 1; margin: 8px 0;
  color: var(--acc); text-shadow: 0 0 40px rgba(255,45,126,.22);
}
.calc__compare { font-family: var(--font-mono); font-size: 12px; color: var(--ok); }
.calc__breakdown { list-style: none; display: grid; gap: 9px; margin: 6px 0 22px; }
.calc__breakdown li { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-dim); }
.calc__breakdown li b { color: var(--ink); font-weight: 500; }
.calc__fine { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-faint); margin-top: 14px; text-align: center; }

/* ---------- steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; counter-reset: s; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 28px;
  transition: border-color .25s, transform .25s var(--ease);
}
.step:hover { border-color: var(--line-2); transform: translateY(-3px); }
.step__num { font-family: var(--font-mono); font-size: 13px; color: var(--acc); margin-bottom: 18px; }
.step h3 { font-size: 21px; font-weight: 600; margin-bottom: 10px; }
.step p { color: var(--ink-dim); font-size: 15px; margin-bottom: 18px; }
.step__code {
  display: block; font-family: var(--font-mono); font-size: 12px; color: var(--acc);
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 11px 13px;
  overflow-x: auto;
}

/* ---------- marquee strip ---------- */
.strip { background: var(--acc); color: #0b0c08; overflow: hidden; padding: 14px 0; }
.strip__track {
  display: flex; gap: 28px; align-items: center; width: max-content; white-space: nowrap;
  font-family: var(--font-mono); font-weight: 700; font-size: 15px; letter-spacing: .02em;
  animation: scroll-x 26s linear infinite;
}
.strip__dot { font-size: 8px; opacity: .6; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer; color: var(--ink);
  font-family: var(--font-disp); font-size: clamp(17px,2.4vw,21px); font-weight: 500;
  padding: 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.faq__q:hover { color: var(--acc); }
.faq__sign { font-family: var(--font-mono); color: var(--acc); transition: transform .3s var(--ease); flex-shrink: 0; }
.faq__item.open .faq__sign { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq__a p { color: var(--ink-dim); font-size: 15px; padding: 0 0 24px; max-width: 700px; }

/* ---------- cta ---------- */
.cta {
  text-align: center; max-width: 760px; margin: 0 auto;
  padding: clamp(80px,14vw,160px) var(--pad);
}
.cta h2 { font-size: clamp(28px,5vw,52px); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; }
.cta p { color: var(--ink-dim); font-size: 18px; margin: 20px 0 36px; }

/* ---------- footer ---------- */
.footer {
  max-width: var(--maxw); margin: 0 auto; padding: 60px var(--pad);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px;
}
@media (max-width: 740px) { .footer { grid-template-columns: 1fr; } }
.footer__blurb { color: var(--ink-dim); font-size: 14px; max-width: 280px; margin-top: 14px; }
.footer__links { display: flex; gap: 50px; flex-wrap: wrap; }
.footer__links h4 { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); margin-bottom: 14px; }
.footer__links a { display: block; color: var(--ink-dim); font-size: 14px; padding: 5px 0; transition: color .2s; }
.footer__links a:hover { color: var(--acc); }
.footer__base {
  grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 30px; border-top: 1px solid var(--line); margin-top: 10px;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint);
}

/* ---------- live fleet heatmap ---------- */
.lf-rec {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--warm); margin-right: 8px; vertical-align: middle;
  box-shadow: 0 0 8px var(--warm); animation: pulse 1.4s infinite;
}
.livefleet__panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(18px, 3vw, 28px);
}
.livefleet__bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line);
}
@media (max-width: 680px) { .livefleet__bar { grid-template-columns: repeat(2,1fr); } }
.lf-stat span { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; color: var(--ink-faint); margin-bottom: 6px; }
.lf-stat b { font-family: var(--font-mono); font-size: clamp(18px, 2.6vw, 26px); font-weight: 700; color: var(--acc); font-variant-numeric: tabular-nums; }
.livefleet__canvas { width: 100%; height: 230px; display: block; cursor: crosshair; }
.livefleet__legend {
  display: flex; align-items: center; gap: 10px; margin-top: 16px;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint);
}
.lf-grad { width: 120px; height: 6px; border-radius: 4px; background: linear-gradient(90deg, #23262f, var(--acc-deep), var(--acc), var(--acc-light)); }
.lf-tip { margin-left: auto; color: var(--ink-dim); }
.lf-tip b { color: var(--acc); }

/* ---------- interactive terminal ---------- */
.term {
  border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden;
  background: #0a0b08; box-shadow: 0 40px 80px -50px #000;
}
.term__bar {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px;
  background: var(--bg-2); border-bottom: 1px solid var(--line);
}
.term__dots { display: inline-flex; gap: 7px; }
.term__dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.term__dots i:nth-child(1) { background: #ff5f57; }
.term__dots i:nth-child(2) { background: #febc2e; }
.term__dots i:nth-child(3) { background: #28c840; }
.term__titlebar { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); margin: 0 auto; }
.term__clear {
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-dim); cursor: pointer;
  background: none; border: 1px solid var(--line-2); border-radius: 6px; padding: 4px 10px;
  transition: all .18s var(--ease);
}
.term__clear:hover { color: var(--acc); border-color: var(--acc); }
.term__body {
  font-family: var(--font-mono); font-size: 13px; line-height: 1.65;
  padding: 18px; height: 380px; overflow-y: auto; cursor: text;
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.term__body::-webkit-scrollbar { width: 8px; }
.term__body::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; }
.term__out { white-space: pre-wrap; word-break: break-word; }
.term__out .ln { display: block; }
.term__out .c-acc   { color: var(--acc); }
.term__out .c-warm  { color: var(--warm); }
.term__out .c-ok    { color: var(--ok); }
.term__out .c-dim   { color: var(--ink-faint); }
.term__out .c-ink   { color: var(--ink); }
.term__out .c-cmd   { color: var(--ink); }
.term__out .prmpt   { color: var(--acc-deep); }
.term__inputline { display: flex; align-items: center; gap: 8px; cursor: text; }
.term__prompt { color: var(--acc-deep); white-space: nowrap; }
.term__path { color: var(--ink-faint); }
.term__input {
  flex: 1; background: none; border: none; outline: none; color: var(--ink);
  font-family: var(--font-mono); font-size: 13px; caret-color: var(--acc); padding: 0;
}
.term__hints {
  display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 18px;
  border-top: 1px solid var(--line); background: var(--bg-2);
}
.term__hint {
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-dim); cursor: pointer;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 6px; padding: 5px 11px;
  transition: all .16s var(--ease);
}
.term__hint:hover { color: var(--acc); border-color: var(--acc); transform: translateY(-1px); }
.term kbd {
  font-family: var(--font-mono); font-size: 11px; background: var(--bg); color: var(--acc);
  border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px;
}
.section__lede code, .section__lede kbd {
  font-family: var(--font-mono); font-size: .9em; color: var(--acc);
  background: var(--bg-2); padding: 2px 7px; border-radius: 5px; border: 1px solid var(--line);
}

/* ---------- custom crosshair cursor ---------- */
.cur { position: fixed; top: 0; left: 0; z-index: 9500; pointer-events: none; will-change: transform; }
.cur-dot {
  width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%;
  background: var(--acc); box-shadow: 0 0 8px var(--acc);
}
.cur-ring {
  width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%;
  border: 1px solid rgba(255,45,126,.55);
  transition: transform .1s ease-out, width .18s var(--ease), height .18s var(--ease),
              margin .18s var(--ease), border-radius .18s var(--ease), border-color .18s, background .18s;
}
.cur-ring.is-hot { border-color: var(--acc); background: rgba(255,45,126,.08); }
.cur-ring.is-snap {
  border-color: #fff; border-radius: 3px; background: rgba(255,45,126,.12);
  box-shadow: 0 0 14px rgba(255,45,126,.5);
}
html.has-cursor, html.has-cursor * { cursor: none !important; }
@media (hover: none), (pointer: coarse) { .cur { display: none; } }

/* ---------- GPU drag race ---------- */
.race {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(20px, 3vw, 32px);
}
.race__lanes { display: grid; gap: 16px; margin-bottom: 26px; }
.lane { display: grid; gap: 10px; }
.lane__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lane__sel {
  width: auto; min-width: 150px; padding: 9px 14px; font-size: 13px;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 8px; color: var(--ink);
  font-family: var(--font-mono); appearance: none; cursor: pointer;
}
.lane__sel:focus { outline: none; border-color: var(--acc); }
.lane__tps { font-family: var(--font-mono); font-size: 13px; color: var(--acc); font-variant-numeric: tabular-nums; }
.lane__track {
  position: relative; height: 30px; background: var(--bg); border: 1px solid var(--line);
  border-radius: 8px; overflow: hidden;
}
.lane__fill {
  position: absolute; inset: 0 auto 0 0; width: 0%;
  background: linear-gradient(90deg, rgba(255,45,126,.12), rgba(255,45,126,.34));
  border-right: 2px solid var(--acc);
  transition: width .05s linear;
}
.lane__track::after {
  content: ""; position: absolute; top: 0; bottom: 0; right: 18px; width: 1px;
  background: repeating-linear-gradient(0deg, var(--line-2) 0 4px, transparent 4px 8px);
}
.lane__runner {
  position: absolute; top: 50%; left: 0%; transform: translate(-50%, -50%);
  font-family: var(--font-mono); font-size: 14px; color: var(--acc);
  text-shadow: 0 0 10px var(--acc); transition: left .05s linear; z-index: 2;
}
.lane__foot {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-dim);
}
.lane__pct { color: var(--ink); font-variant-numeric: tabular-nums; min-width: 42px; }
.lane__time { color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.lane__badge { margin-left: auto; font-weight: 700; }
.lane__badge.win { color: var(--acc); }
.lane__badge.lose { color: var(--ink-faint); }
.lane.is-win .lane__track { border-color: var(--acc); box-shadow: 0 0 24px -6px var(--acc); }
.race__controls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.race__status { font-family: var(--font-mono); font-size: 12px; color: var(--ink-dim); }
.race__status b { color: var(--acc); }

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

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
