/* Big Rig Empire front page. Same night-shift palette as the game: asphalt, highway-sign green, centerline yellow. */
:root {
  --asphalt: #14161a;
  --deck: #1c1f24;
  --deck-2: #242830;
  --rule: #323741;
  --paint: #eceae4;
  --muted: #959ba5;
  --centerline: #f3c13a;
  --sign: #0f6b45;
  --sign-ink: #f4f7f2;
  --land: #1a1d22;
  --road: #3a404a;
  --font: 'Overpass', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Overpass Mono', ui-monospace, Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--asphalt); color: var(--paint); font-family: var(--font); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--centerline); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

.wrap, .nav, main > section, .foot { padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
main > section { max-width: 1180px; margin: 0 auto; }

/* nav */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: rgba(20,22,26,0.92); }
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; background: rgba(20, 22, 26, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.sign { display: inline-flex; flex-direction: column; text-decoration: none; background: var(--sign); color: var(--sign-ink); border: 2px solid var(--sign-ink); border-radius: 7px; padding: 4px 11px 2px; box-shadow: 0 0 0 2px var(--sign); font-weight: 900; letter-spacing: 0.04em; line-height: 1; }
.sign .big { font-size: 18px; }
.nav-links { display: flex; align-items: center; gap: 22px; font-weight: 700; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--muted); }
.nav-links a:not(.btn):hover { color: var(--paint); }
@media (max-width: 720px) { .nav-links a:not(.btn) { display: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; padding: 9px 16px; font-weight: 800; font-size: 14px; letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none; border: 2px solid transparent; transition: filter 0.15s, transform 0.15s; }
.btn.go { background: var(--centerline); color: #1b1606; }
.btn.go:hover { filter: brightness(1.08); }
.btn.ghost { border-color: var(--rule); color: var(--paint); }
.btn.ghost:hover { border-color: var(--muted); }
.big-btn { padding: 14px 26px; font-size: 16px; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; padding-block: 56px 40px; }
.eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--centerline); }
h1 { margin: 0; font-size: clamp(36px, 5vw, 60px); line-height: 1.02; font-weight: 900; letter-spacing: -0.01em; text-wrap: balance; }
.lede { margin: 20px 0 0; font-size: 19px; color: #c9cbd0; max-width: 34em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.fine { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.hero-map { margin: 0; min-width: 0; background: var(--deck); border: 1px solid var(--rule); border-radius: 10px; padding: 10px; position: relative; }
.hero-map figcaption { display: flex; align-items: center; gap: 8px; padding: 8px 6px 2px; font-family: var(--mono); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; min-height: 2.6em; }
.hero-map .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--centerline); flex: none; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding-block: 36px 24px; } }

/* map (shared look with the game) */
.map-svg { width: 100%; height: auto; display: block; }
.land { fill: var(--land); stroke: #2b3038; stroke-width: 1.2; }
.road { stroke: var(--road); stroke-width: 1.6; stroke-linecap: round; }
.road.mtn { stroke-dasharray: 5 3; }
.hatch { stroke: var(--rule); }
.city circle { fill: #6c7380; }
.city.major circle { fill: #aab0b9; }
.city text { fill: var(--muted); font-size: 9.5px; font-family: var(--font); opacity: 0; }
.city.major text { opacity: 0.7; }
.route-line { fill: none; stroke: var(--centerline); stroke-width: 2.4; stroke-dasharray: 7 5; stroke-linecap: round; opacity: 0.9; }
.route-line.other { stroke: #8fd3b2; opacity: 0.4; stroke-width: 1.6; }
.truck-dot { fill: var(--centerline); stroke: var(--asphalt); stroke-width: 2; }
.truck-dot.hired { fill: #8fd3b2; }
.truck-dot.rival { fill: #c9a7f2; }
.truck-label { fill: var(--paint); font-size: 10.5px; font-weight: 700; font-family: var(--font); paint-order: stroke; stroke: var(--asphalt); stroke-width: 3px; }
.pulse { fill: none; stroke: var(--centerline); stroke-width: 1.5; animation: pulse 2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { from { opacity: 0.8; transform: scale(0.6); } to { opacity: 0; transform: scale(2.4); } }

/* mile strip */
.mile-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 3px solid var(--centerline); border-bottom: 1px solid var(--rule); padding-block: 22px; }
.mile-strip div { display: flex; flex-direction: column; align-items: flex-start; padding: 0 16px; border-left: 1px dashed var(--rule); }
.mile-strip div:first-child { border-left: 0; padding-left: 0; }
.mile-strip .num { font-family: var(--mono); font-size: clamp(26px, 3.4vw, 38px); font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.mile-strip .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); font-weight: 700; }
@media (max-width: 620px) { .mile-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; } .mile-strip div:nth-child(3) { border-left: 0; padding-left: 0; } }

/* sections */
.block { padding-block: 72px 8px; }
.section-sign { display: inline-block; margin: 0; background: var(--sign); color: var(--sign-ink); border: 2px solid var(--sign-ink); box-shadow: 0 0 0 2px var(--sign); border-radius: 7px; padding: 6px 14px 3px; font-size: clamp(22px, 2.6vw, 30px); font-weight: 900; letter-spacing: 0.02em; text-transform: uppercase; }
.section-lede { margin: 18px 0 0; font-size: 19px; color: #c9cbd0; max-width: 40em; }

.ladder { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ladder li { background: var(--deck); border: 1px solid var(--rule); border-radius: 8px; padding: 18px 18px 20px; position: relative; }
.ladder .step { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #1b1606; background: var(--centerline); border-radius: 3px; padding: 2px 7px 1px; }
.ladder h3 { margin: 12px 0 6px; font-size: 21px; line-height: 1.2; }
.ladder p { margin: 0; color: #c2c5cb; font-size: 15.5px; }
@media (max-width: 960px) { .ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ladder { grid-template-columns: 1fr; } }

.features { margin-top: 34px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; }
.features article { border-top: 2px solid var(--rule); padding-top: 14px; }
.features h3 { margin: 0 0 6px; font-size: 19px; }
.features p { margin: 0; color: #c2c5cb; font-size: 15.5px; }
@media (max-width: 860px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.mp-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; }
.mp-list li { padding: 14px 0; border-bottom: 1px dashed var(--rule); color: #c2c5cb; font-size: 16px; }
.mp-list li:first-child { padding-top: 0; }
.mp-list strong { color: var(--paint); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 20px; } }

.final { text-align: left; padding-block: 88px 72px; }
.final h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); font-weight: 900; line-height: 1.08; text-wrap: balance; }
.final p { margin: 12px 0 26px; color: var(--muted); font-size: 18px; }

.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 22px calc(22px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--rule); font-size: 13px; color: var(--muted); }
