/* PitLynx website (pitlynx.com). Brand kit: Ink, Carbon, Graphite, Asphalt, Chalk, Signal Orange (the dot, accent only);
   Archivo Expanded ExtraBold for display, Archivo for text, JetBrains Mono for data. Fonts are self-hosted. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(/assets/fonts/archivo-wdth.woff2) format('woff2-variations');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/fonts/jetbrains-mono-latin-500-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/assets/fonts/jetbrains-mono-latin-700-normal.woff2) format('woff2');
}

:root {
  --ink: #101215;
  --carbon: #1A1D22;
  --graphite: #2A2E35;
  --asphalt: #8A8F98;
  --chalk: #F2F1EC;
  --orange: #FF6A1A;
  --orange-soft: #3A2116;
  --orange-fg: #FFA06B;

  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --radius: 16px;
  --wrap: 1160px;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--chalk);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.display {
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: -0.005em;
}
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

.skip { position: absolute; left: -9999px; top: 8px; padding: 8px 14px; border-radius: 10px; background: var(--chalk); color: var(--ink); z-index: 10; }
.skip:focus { left: 8px; }

/* Logo lockup: mark, then the wordmark at about half the mark's height in caps. */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo__mark { width: 22px; height: 31px; color: var(--chalk); flex-shrink: 0; }
.logo__word { font-stretch: 125%; font-weight: 800; font-size: 21px; line-height: 1; letter-spacing: .01em; text-transform: uppercase; }
.logo--sm .logo__mark { width: 18px; height: 25px; }
.logo--sm .logo__word { font-size: 17px; }

/* Buttons. Text on orange is Ink: Chalk on Signal Orange fails contrast. */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 12px;
  font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, opacity .15s;
}
.btn--accent { background: var(--orange); color: var(--ink); }
.btn--accent:hover { opacity: .9; }
.btn--ghost { border: 1px solid var(--graphite); color: var(--chalk); }
.btn--ghost:hover { background: var(--carbon); }
.btn--ink { background: var(--ink); color: var(--chalk); }
.btn--ink:hover { background: var(--carbon); }
.btn--line { border: 1.5px solid var(--ink); color: var(--ink); }
.btn--line:hover { background: rgba(16, 18, 21, .08); }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(16, 18, 21, .86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--graphite); }
.top__inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.top__nav { display: flex; gap: 24px; margin-right: auto; }
.top__nav a { color: var(--asphalt); text-decoration: none; font-weight: 500; }
.top__nav a:hover { color: var(--chalk); }
.top__login { min-height: 40px; padding: 0 16px; }

/* Hero */
.hero { padding: 88px 0 96px; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--asphalt); font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.hero__title { margin-top: 20px; font-size: clamp(36px, 4.6vw, 58px); }
.lead { margin-top: 22px; max-width: 36em; color: #C9CACB; font-size: 18px; line-height: 1.6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.fine { margin-top: 18px; color: var(--asphalt); font-size: 14px; }

/* Hero illustration */
.race { position: relative; aspect-ratio: 600 / 470; border-radius: 24px; background: var(--carbon); box-shadow: 0 0 0 1px var(--graphite); overflow: hidden; }
.race__track { position: absolute; inset: 0; width: 100%; height: 100%; }
.race__live { position: absolute; top: 18px; left: 18px; }
.race__card { position: absolute; left: 18px; right: 18px; bottom: 18px; max-width: 360px; padding: 16px 18px; }
.race__head { display: flex; align-items: center; gap: 10px; }
.race__callsign { font-weight: 700; font-size: 13px; }
.race__name { font-weight: 600; }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #F28C28; color: var(--ink); font-size: 12px; font-weight: 700; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.chip--live { background: var(--orange-soft); color: var(--orange-fg); }
.chip .dot { width: 6px; height: 6px; }

.card { background: var(--ink); border: 1px solid var(--graphite); border-radius: var(--radius); }
.race .card { background: rgba(16, 18, 21, .92); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.stats dt { color: var(--asphalt); font-size: 12px; }
.stats dd { margin-top: 2px; font-size: 20px; font-weight: 700; }
.stats small { margin-left: 3px; color: var(--asphalt); font-size: 11px; font-weight: 500; }

/* The telemetry health bar: one column per second, green while updates are fresh. */
.health { position: relative; height: 5px; margin-top: 14px; border-radius: 2px; background: var(--graphite); overflow: hidden; }
.health span {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0 18%, #3FCB73 18% 61%, #F2B33D 61% 64%, #3FCB73 64% 100%);
}

/* Sections */
.section { padding: 96px 0; }
.section--alt { background: var(--carbon); border-block: 1px solid var(--graphite); }
.section__title { font-size: clamp(30px, 3.6vw, 44px); }
.section__lead { margin-top: 16px; max-width: 40em; color: var(--asphalt); font-size: 17px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.feature { padding: 26px 24px; background: var(--carbon); }
.feature h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; }
.feature h3::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex-shrink: 0; }
.feature p { margin-top: 10px; color: var(--asphalt); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; counter-reset: none; }
.steps li { padding-top: 22px; border-top: 2px solid var(--graphite); }
.steps__n { color: var(--orange); font-weight: 700; font-size: 15px; }
.steps h3 { margin-top: 10px; font-size: 20px; font-weight: 700; }
.steps p { margin-top: 8px; color: var(--asphalt); }

/* Call to action on Signal Orange: Ink type only. */
.cta { background: var(--orange); color: var(--ink); }
.cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-top: 72px; padding-bottom: 72px; }
.cta__title { font-size: clamp(28px, 3.4vw, 42px); max-width: 15em; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
.foot { padding: 40px 0; }
.foot__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 20px; margin-right: auto; }
.foot__nav a, .foot__copy { color: var(--asphalt); font-size: 14px; text-decoration: none; }
.foot__nav a:hover { color: var(--chalk); }

@media (max-width: 960px) {
  .hero { padding: 56px 0 72px; }
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .top__nav { display: none; }
  .top__inner { gap: 16px; justify-content: space-between; }
  .section { padding: 72px 0; }
  .features, .steps { grid-template-columns: 1fr; }
  .hero__actions .btn, .cta__actions .btn { flex: 1 1 100%; }
  .race__card { padding: 14px; }
  .stats dd { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
