/* ═══════════════════════════════════════════════════════════
   RideAlong — "Dusk Highway"
   Quant desk at golden hour: slate road, sunset accent, mono numerals.
   ═══════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'JetBrains Mono';
  src: url('/static/fonts/JetBrainsMono-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/static/fonts/JetBrainsMono-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/static/fonts/JetBrainsMono-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/static/fonts/JetBrainsMono-ExtraBold.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}

:root {
  --slate:      #0F1420;
  --slate-2:    #151b2b;
  --slate-3:    #1c2438;
  --line:       #253049;
  --line-soft:  rgba(37, 48, 73, .55);

  --ink:        #eef3fb;
  --ink-2:      #c9d3e6;
  --ink-3:      #8593ad;
  --ink-4:      #66718a;

  --amber:      #F5A524;
  --coral:      #FF6B4A;
  --mint:       #3DDC97;
  --rose:       #FF5470;

  --sunset:     linear-gradient(90deg, var(--amber), var(--coral));
  --sunset-135: linear-gradient(135deg, var(--amber), var(--coral));

  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --r:    14px;
  --r-sm: 9px;
  --pad:  clamp(18px, 4vw, 34px);
  --maxw: 1180px;

  --shadow: 0 18px 50px -22px rgba(0,0,0,.85);
  --glow:   0 0 0 1px rgba(245,165,36,.22), 0 12px 40px -18px rgba(255,107,74,.5);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--slate);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Dusk wash + faint grain, fixed behind everything */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1100px 620px at 50% -10%, rgba(245,165,36,.13), transparent 62%),
    radial-gradient(900px 520px at 88% 8%,  rgba(255,107,74,.10), transparent 60%),
    radial-gradient(760px 480px at 6% 22%,  rgba(61,220,151,.05), transparent 60%);
}
body::after {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .04;
  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='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3 { color: var(--ink); line-height: 1.16; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.16rem; font-weight: 600; }
p  { margin: 0 0 1.1em; }
a  { color: var(--amber); text-decoration: none; }
a:hover { color: var(--coral); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.gain { color: var(--mint); }
.loss { color: var(--rose); }
.muted { color: var(--ink-3); }
.tiny { font-size: .82rem; }

.eyebrow {
  font-family: var(--mono);
  font-size: .74rem; font-weight: 500;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--amber);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.eyebrow::after {
  content: ''; height: 1px; flex: 1;
  background: linear-gradient(90deg, rgba(245,165,36,.5), transparent);
}

/* ── Nav ─────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(14px);
  background: rgba(15,20,32,.82);
  border-bottom: 1px solid var(--line-soft);
}
.nav-in { max-width: var(--maxw); margin: 0 auto; padding: 13px var(--pad);
          display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--mono);
         font-weight: 800; font-size: 1.02rem; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--sunset); box-shadow: 0 0 14px rgba(255,107,74,.85);
  animation: pulse-dot 2.6s ease-in-out infinite;
}
.brand .tld { color: var(--ink-4); font-weight: 400; }
@keyframes pulse-dot { 0%,100% { opacity: 1; transform: scale(1); }
                       50% { opacity: .55; transform: scale(.82); } }

.nav-links { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-links a { color: var(--ink-3); font-size: .92rem; padding: 8px 13px; border-radius: 8px; }
.nav-links a:hover { color: var(--ink); background: rgba(255,255,255,.045); }
/* Buttons in the nav keep their own colours — beat `.nav-links a`. */
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #12141c; }
.nav-links a.btn-ghost:hover { color: var(--ink); }
.nav-toggle { display: none; }

/* ── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--mono); font-weight: 700; font-size: .92rem;
  padding: 13px 26px; border-radius: var(--r-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
  text-decoration: none;
}
.btn-primary { background: var(--sunset); color: #12141c; box-shadow: 0 10px 30px -12px rgba(255,107,74,.75); }
.btn-primary:hover { color: #12141c; transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(255,107,74,.9); }
.btn-ghost { background: rgba(255,255,255,.03); border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { color: var(--ink); border-color: var(--amber); background: rgba(245,165,36,.07); }
.btn-danger { background: rgba(255,84,112,.1); border-color: rgba(255,84,112,.42); color: #ffa8b6; }
.btn-danger:hover { background: rgba(255,84,112,.18); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: .82rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ── Panels ──────────────────────────────────────── */
.panel {
  background: linear-gradient(180deg, rgba(28,36,56,.62), rgba(21,27,43,.62));
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
  box-shadow: var(--shadow);
}
.panel-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.panel-head h3 { margin: 0; }
.panel-head .spacer { flex: 1; }

/* ── Hero ────────────────────────────────────────── */
.hero { position: relative; padding: clamp(56px, 11vh, 118px) 0 76px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 .grad {
  background: var(--sunset); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub { font-size: clamp(1.02rem, 1.6vw, 1.19rem); color: var(--ink-3); max-width: 54ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

.hero-odo { display: flex; gap: 38px; margin-top: 42px; flex-wrap: wrap; }
.odo-item .odo-val { font-family: var(--mono); font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.3rem);
                     color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.odo-item .odo-label { font-family: var(--mono); font-size: .68rem; letter-spacing: .2em;
                       text-transform: uppercase; color: var(--ink-4); }

/* The road: dashed centreline receding to a dusk horizon */
.road { position: relative; height: 340px; border-radius: var(--r); overflow: hidden;
        border: 1px solid var(--line); background: linear-gradient(180deg, #1b2233 0%, #0e131f 100%); }
.road::before {   /* horizon glow */
  content: ''; position: absolute; left: 50%; top: 34%; transform: translate(-50%,-50%);
  width: 130%; height: 46%;
  background: radial-gradient(closest-side, rgba(245,165,36,.5), rgba(255,107,74,.16), transparent 72%);
  filter: blur(6px);
}
.road svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.road .dash { stroke: var(--amber); stroke-width: 3; stroke-dasharray: 16 22;
              animation: road-run 1.5s linear infinite; opacity: .9; }
@keyframes road-run { to { stroke-dashoffset: -38; } }
.road .edge { stroke: rgba(255,255,255,.13); stroke-width: 1.5; }
.road .sun  { fill: url(#sunGrad); }

/* ── Stats strip ─────────────────────────────────── */
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); gap: 14px; }
.tile {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(28,36,56,.72), rgba(21,27,43,.72));
  border: 1px solid var(--line); border-radius: var(--r); padding: 18px 18px 12px;
  transition: border-color .2s ease, transform .2s ease;
}
.tile:hover { border-color: rgba(245,165,36,.42); transform: translateY(-2px); }
.tile .t-label { font-family: var(--mono); font-size: .66rem; letter-spacing: .19em;
                 text-transform: uppercase; color: var(--ink-4); margin-bottom: 7px; }
.tile .t-val { font-family: var(--mono); font-weight: 700; font-size: 1.72rem; color: var(--ink);
               font-variant-numeric: tabular-nums; letter-spacing: -.028em; line-height: 1.1; }
.tile .t-spark { display: block; width: 100%; height: 30px; margin-top: 8px; overflow: visible; }

.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 8px;
              vertical-align: middle; }
.status-dot.on   { background: var(--mint); box-shadow: 0 0 12px var(--mint); animation: pulse-dot 2.2s ease-in-out infinite; }
.status-dot.idle { background: var(--amber); box-shadow: 0 0 12px var(--amber); }
.status-dot.off  { background: var(--ink-4); }

/* ── Sections ────────────────────────────────────── */
section { padding: clamp(56px, 9vh, 96px) 0; }
.section-head { max-width: 62ch; margin-bottom: 44px; }
.section-head p { color: var(--ink-3); }

/* Steps along the road line */
.steps { position: relative; display: grid; gap: 20px; }
.steps::before {
  content: ''; position: absolute; left: 25px; top: 12px; bottom: 12px; width: 2px;
  background: repeating-linear-gradient(180deg, var(--amber) 0 12px, transparent 12px 26px);
  opacity: .34;
}
.step { display: grid; grid-template-columns: 52px 1fr; gap: 20px; align-items: start; }
.step-num {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700; color: var(--amber);
  background: var(--slate-2); border: 1px solid var(--line); position: relative; z-index: 1;
}
.step.in .step-num { border-color: var(--amber); box-shadow: var(--glow); color: var(--ink); background: var(--slate-3); }
.step-body h3 { margin-bottom: 6px; }
.step-body p { margin: 0; color: var(--ink-3); }

/* Reveal on scroll. Only hides when JS is running, so a failed script can
   never leave the page blank. */
.js .reveal, .js .step { opacity: 0; transform: translateY(22px);
                         transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in, .js .step.in { opacity: 1; transform: none; }

/* ── Chart ───────────────────────────────────────── */
.chart-wrap { position: relative; }
.chart-wrap canvas { display: block; width: 100%; height: 300px; }
.chart-empty { position: absolute; inset: 0; display: grid; place-items: center;
               color: var(--ink-4); font-family: var(--mono); font-size: .85rem; text-align: center; }

/* ── Tables ──────────────────────────────────────── */
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 480px; }
th { text-align: left; font-family: var(--mono); font-size: .68rem; letter-spacing: .17em;
     text-transform: uppercase; color: var(--ink-4); font-weight: 500;
     padding: 0 14px 11px 0; border-bottom: 1px solid var(--line); }
td { padding: 13px 14px 13px 0; border-bottom: 1px solid var(--line-soft); }
tbody tr:last-child td { border-bottom: none; }
td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.empty-row { color: var(--ink-4); font-style: italic; }

/* ── Risk callout: never soften this ─────────────── */
.risk {
  border: 1px solid rgba(255,84,112,.38);
  background: linear-gradient(180deg, rgba(255,84,112,.09), rgba(255,84,112,.035));
  border-radius: var(--r); padding: 20px 22px;
}
.risk h3 { color: #ffb3c0; display: flex; align-items: center; gap: 10px; }
.risk p:last-child { margin-bottom: 0; }
.risk strong { color: #fff; }

/* ── FAQ ─────────────────────────────────────────── */
.faq details {
  border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 16px 20px; margin-bottom: 10px; background: rgba(28,36,56,.42);
}
.faq details[open] { border-color: rgba(245,165,36,.36); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none;
               display: flex; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: '+'; font-family: var(--mono); color: var(--amber); font-weight: 700; }
.faq details[open] summary::before { content: '–'; }
.faq details p { margin: 12px 0 0; color: var(--ink-3); }

/* ── Forms ───────────────────────────────────────── */
.auth-shell { min-height: 74vh; display: grid; place-items: center; padding: 48px 0; }
.auth-card { width: 100%; max-width: 470px; }
.field { margin-bottom: 17px; }
.field label { display: block; font-family: var(--mono); font-size: .7rem; letter-spacing: .16em;
               text-transform: uppercase; color: var(--ink-4); margin-bottom: 7px; }
.field input[type=text], .field input[type=email], .field input[type=password],
.field input[type=number] {
  width: 100%; padding: 12px 14px; border-radius: var(--r-sm);
  background: rgba(10,14,23,.72); border: 1px solid var(--line);
  color: var(--ink); font-family: var(--mono); font-size: .94rem;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field input:focus { outline: none; border-color: var(--amber);
                     box-shadow: 0 0 0 3px rgba(245,165,36,.14); }
.field .hint { font-size: .78rem; color: var(--ink-4); margin-top: 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: .89rem;
         color: var(--ink-3); line-height: 1.55; }
.check input { margin-top: 4px; accent-color: var(--coral); width: 16px; height: 16px; flex: none; }

/* ── Flash ───────────────────────────────────────── */
.flashes { margin-bottom: 20px; display: grid; gap: 9px; }
.flash { padding: 12px 16px; border-radius: var(--r-sm); font-size: .9rem; border: 1px solid; }
.flash.ok    { background: rgba(61,220,151,.09);  border-color: rgba(61,220,151,.36);  color: #a6f0cd; }
.flash.error { background: rgba(255,84,112,.09);  border-color: rgba(255,84,112,.38);  color: #ffb3c0; }
.flash.warn  { background: rgba(245,165,36,.09);  border-color: rgba(245,165,36,.38);  color: #ffd995; }

/* ── Dashboard ───────────────────────────────────── */
.ribbon {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 14px 20px; border: 1px solid var(--line); border-radius: var(--r);
  background: rgba(21,27,43,.72); margin-bottom: 20px;
}
.ribbon .sep { width: 1px; height: 22px; background: var(--line); }
.ribbon .item { font-family: var(--mono); font-size: .82rem; color: var(--ink-3); }
.ribbon .item b { color: var(--ink); font-weight: 600; }
.badge { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
         padding: 5px 11px; border-radius: 999px; border: 1px solid; }
.badge.paper { color: var(--amber); border-color: rgba(245,165,36,.42); background: rgba(245,165,36,.09); }
.badge.live  { color: var(--rose);  border-color: rgba(255,84,112,.44); background: rgba(255,84,112,.1); }
.badge.on    { color: var(--mint);  border-color: rgba(61,220,151,.42); background: rgba(61,220,151,.09); }
.badge.off   { color: var(--ink-3); border-color: var(--line); }

.dash-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
/* Grid items default to min-width:auto, so a 480px-min table would silently
   widen the whole page on phones. Let panels shrink; the table scrolls inside. */
.dash-grid .panel { min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px,1fr)); gap: 12px; margin-bottom: 18px; }

.pos-card { border: 1px solid var(--line); border-radius: var(--r); padding: 18px;
            background: rgba(28,36,56,.5); }
.pos-card.pulse { animation: pos-pulse 1.1s ease; }
@keyframes pos-pulse { 0% { box-shadow: 0 0 0 0 rgba(245,165,36,.4); } 100% { box-shadow: 0 0 0 16px rgba(245,165,36,0); } }
.pos-sym { font-family: var(--mono); font-weight: 800; font-size: 1.45rem; color: var(--ink); }
.pos-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin-top: 14px; }
.pos-rows div { font-size: .84rem; color: var(--ink-4); font-family: var(--mono); }
.pos-rows b { display: block; color: var(--ink-2); font-weight: 500; font-size: .96rem; }

.log { font-family: var(--mono); font-size: .76rem; line-height: 1.75; max-height: 320px;
       overflow-y: auto; background: rgba(8,11,18,.62); border: 1px solid var(--line);
       border-radius: var(--r-sm); padding: 13px 15px; }
.log div { color: var(--ink-3); white-space: pre-wrap; word-break: break-word;
           border-bottom: 1px solid rgba(37,48,73,.28); padding: 2px 0; }
.log div:last-child { border-bottom: none; }
.log div.new { animation: log-in .5s ease; }
@keyframes log-in { from { opacity: 0; transform: translateX(-6px); background: rgba(245,165,36,.09); } }

.ai-feed { display: grid; gap: 11px; max-height: 320px; overflow-y: auto; }
.ai-item { border-left: 2px solid var(--amber); padding: 9px 0 9px 14px; }
.ai-item .ai-t { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em;
                 text-transform: uppercase; color: var(--ink-4); }
.ai-item p { margin: 4px 0 0; font-size: .86rem; color: var(--ink-3); }

.offline-banner {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid rgba(245,165,36,.36); background: rgba(245,165,36,.07);
  color: #ffd995; border-radius: var(--r-sm); padding: 12px 16px;
  font-family: var(--mono); font-size: .84rem; margin-bottom: 18px;
}

/* ── Dashboard components ────────────────────────── */
.wrap.wide { max-width: 1320px; }

.t-sub { font-size: .78rem; margin-top: 4px; font-variant-numeric: tabular-nums; }

.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg-btn { font-family: var(--mono); font-size: .78rem; font-weight: 700; padding: 6px 14px;
           background: transparent; border: none; color: var(--ink-3); cursor: pointer;
           transition: background .15s ease, color .15s ease; }
.seg-btn + .seg-btn { border-left: 1px solid var(--line); }
.seg-btn.active { background: rgba(245,165,36,.14); color: var(--amber); }
.seg-btn:hover:not(.active) { color: var(--ink); }

.pos-top { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.pos-live { font-size: 1.3rem; font-weight: 700; color: var(--ink); }
.pos-live.tick { animation: price-tick .6s ease; }
@keyframes price-tick { 0% { color: var(--amber); } 100% { color: var(--ink); } }

.hold-bar { height: 4px; border-radius: 999px; background: var(--line-soft); margin-top: 14px; overflow: hidden; }
.hold-fill { height: 100%; border-radius: 999px; background: var(--sunset);
             transition: width .8s ease; }

.pos-ai { margin-top: 12px; padding: 10px 12px; border-left: 2px solid var(--amber);
          background: rgba(245,165,36,.05); border-radius: 0 var(--r-sm) var(--r-sm) 0;
          color: var(--ink-3); line-height: 1.55; }

.gauge-wrap { display: grid; place-items: center; }
.gauge { width: 100%; max-width: 210px; display: block; }
.gauge-read { text-align: center; margin-top: 10px; }   /* in flow: never under the needle */
.gauge-score { font-size: 1.7rem; font-weight: 800; color: var(--ink); line-height: 1; }
.gauge-label { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
               color: var(--ink-4); margin-top: 4px; }

.rings { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ring-item { display: grid; place-items: center; gap: 8px; }
.ring { width: 64px; height: 64px; }
.ring-fg { transition: stroke-dashoffset .9s linear, stroke .3s ease; }
.ring-txt { fill: var(--ink-2); font-family: var(--mono); font-size: 11px; }
.ring-cap { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
            color: var(--ink-4); text-align: center; }

.kv { display: grid; gap: 2px; }
.kv-row { display: flex; align-items: center; justify-content: space-between; gap: 14px;
          padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: .9rem;
          color: var(--ink-3); }
.kv-row b { color: var(--ink); font-weight: 600; }
.kv-row:last-child { border-bottom: none; }
.kv-total { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 12px; }
.kv-total span { color: var(--ink-2); font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: .74rem; padding: 6px 12px; border-radius: 999px;
        border: 1px solid var(--line); background: rgba(28,36,56,.5); color: var(--ink-2); }

/* ── Footer ──────────────────────────────────────── */
footer { border-top: 1px solid var(--line-soft); padding: 46px 0 60px; margin-top: 40px; }
.foot { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; }
.foot .spacer { flex: 1; }
.foot a { color: var(--ink-3); font-size: .88rem; }
.foot a:hover { color: var(--amber); }
.foot-note { color: var(--ink-4); font-size: .8rem; margin-top: 22px; max-width: 76ch; line-height: 1.6; }

/* ── Error page ──────────────────────────────────── */
.err { min-height: 66vh; display: grid; place-items: center; text-align: center; }
.err .code { font-family: var(--mono); font-weight: 800; font-size: 5rem;
             background: var(--sunset); -webkit-background-clip: text; background-clip: text;
             -webkit-text-fill-color: transparent; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid, .dash-grid { grid-template-columns: 1fr; }
  .road { height: 230px; }
  .nav-links a.hide-sm { display: none; }
}

@media (max-width: 560px) {
  /* Keep the whole nav on screen at phone widths. */
  .nav-in { gap: 10px; padding: 11px 14px; }
  .brand { font-size: .9rem; gap: 8px; }
  .brand .tld { display: none; }
  .nav-links { gap: 2px; }
  .nav-links a { padding: 6px 8px; font-size: .84rem; }
  .nav-links .btn { padding: 8px 12px; font-size: .78rem; }
  .ribbon .sep { display: none; }
}

/* ── Landing v2: the ride, the coin, the ticker ──── */
.road .coin { fill: url(#coinGrad); stroke: #FFE3A3; stroke-width: 2;
              filter: drop-shadow(0 0 16px rgba(245,165,36,.85)); }
.road .coin-ring { fill: none; stroke: rgba(18,20,28,.3); stroke-width: 2; }
.road .coin-sym { fill: #12141c; font-family: var(--mono); font-weight: 800; font-size: 38px;
                  text-anchor: middle; dominant-baseline: central; }
.road .btc { animation: btc-float 5s ease-in-out infinite; }
@keyframes btc-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* Alt-coin badges: dark disc, coloured rim, bright symbol */
.road .alt circle { fill: rgba(21,27,43,.92); stroke-width: 1.6; }
.road .alt text { font-family: var(--mono); font-weight: 800; font-size: 15px;
                  text-anchor: middle; dominant-baseline: central; }
.road .alt { animation: alt-drift 7s ease-in-out infinite; }
.alt-eth  circle { stroke: #8A9BFF; } .alt-eth  text { fill: #B7C2FF; }
.alt-sol  circle { stroke: #3DDC97; } .alt-sol  text { fill: #7CEFC0; font-size: 13px; }
.alt-doge circle { stroke: #F5A524; } .alt-doge text { fill: #FFD27D; font-size: 14px; }
.alt-ltc  circle { stroke: #C9D3E6; } .alt-ltc  text { fill: #EEF3FB; font-size: 13px; }
.alt-sol  { animation-delay: 1.4s; }
.alt-doge { animation-delay: 2.8s; }
.alt-ltc  { animation-delay: 4.2s; }
@keyframes alt-drift { 0%, 100% { opacity: .65; transform: translateY(0); }
                       50% { opacity: 1; transform: translateY(-7px); } }

.road .car { animation: car-bob 1.5s ease-in-out infinite; }
@keyframes car-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(2px); } }
.car .c-body  { fill: #1a2133; stroke: rgba(255,255,255,.22); stroke-width: 1.4; }
.car .c-win   { fill: rgba(245,165,36,.16); stroke: rgba(255,255,255,.1); stroke-width: 1; }
.car .c-light { fill: var(--coral); filter: drop-shadow(0 0 6px rgba(255,107,74,.95)); }
.car .c-plate { fill: rgba(238,243,251,.1); }
.car .c-wheel { fill: #080b12; }

.ticker { overflow: hidden; margin-top: 58px; padding: 13px 0;
          border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
          -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; gap: 36px; width: max-content;
                animation: ticker-roll 52s linear infinite; }
.tick { display: flex; align-items: center; gap: 8px; white-space: nowrap;
        font-family: var(--mono); font-size: .8rem; font-weight: 700;
        letter-spacing: .06em; color: var(--ink-2); }
.tick::before { content: ''; width: 6px; height: 6px; border-radius: 50%;
                background: var(--sunset); opacity: .8; flex: none; }
.tick i { font-style: normal; font-weight: 400; color: var(--ink-4); }
@keyframes ticker-roll { to { transform: translateX(-50%); } }

/* The engine showcase */
.engine-panel { padding: clamp(20px, 3vw, 34px);
                border-color: rgba(245,165,36,.3); box-shadow: var(--glow), var(--shadow); }
.engine-top { display: grid; grid-template-columns: minmax(230px, .9fr) 1.6fr;
              gap: 24px; align-items: center; margin: 6px 0 20px; }
.big-stat .b-label { font-family: var(--mono); font-size: .68rem; letter-spacing: .2em;
                     text-transform: uppercase; color: var(--ink-4); margin-bottom: 8px; }
.big-stat .b-val { font-family: var(--mono); font-weight: 800; color: var(--ink);
                   font-size: clamp(2.7rem, 5.5vw, 4.1rem); letter-spacing: -.04em;
                   line-height: 1; font-variant-numeric: tabular-nums; }
.big-stat .t-spark { height: 40px; margin-top: 12px; }
.engine-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
              margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.engine-cta span { flex: 1; min-width: 220px; }

/* Three beats */
.mini-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mini-step { border: 1px solid var(--line); border-radius: var(--r); padding: 22px;
             background: linear-gradient(180deg, rgba(28,36,56,.55), rgba(21,27,43,.55));
             transition: border-color .2s ease, transform .2s ease; }
.mini-step:hover { border-color: rgba(245,165,36,.4); transform: translateY(-2px); }
.mini-step .ms-num { font-weight: 800; color: var(--amber); font-size: .8rem;
                     letter-spacing: .2em; margin-bottom: 12px; }
.mini-step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.mini-step p { margin: 0; font-size: .92rem; color: var(--ink-3); }

@media (max-width: 900px) {
  .engine-top, .mini-steps { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  .ticker { margin-top: 38px; }
}

/* ── Motion opt-out ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal, .js .step { opacity: 1; transform: none; }
}
