@font-face { font-family: 'Titillium Web'; font-weight: 600; font-display: swap; src: url(fonts/titillium-web-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Titillium Web'; font-weight: 700; font-display: swap; src: url(fonts/titillium-web-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Titillium Web'; font-weight: 900; font-display: swap; src: url(fonts/titillium-web-latin-900-normal.woff2) format('woff2'); }
@font-face { font-family: 'Titillium Web'; font-weight: 700; font-display: swap; src: url(fonts/titillium-web-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+1E00-1EFF; }
@font-face { font-family: 'Titillium Web'; font-weight: 900; font-display: swap; src: url(fonts/titillium-web-latin-ext-900-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+1E00-1EFF; }
@font-face { font-family: 'Rajdhani'; font-weight: 600; font-display: swap; src: url(fonts/rajdhani-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Rajdhani'; font-weight: 700; font-display: swap; src: url(fonts/rajdhani-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Rajdhani'; font-weight: 700; font-display: swap; src: url(fonts/rajdhani-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+1E00-1EFF; }
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url(fonts/inter-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+1E00-1EFF; }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url(fonts/inter-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+1E00-1EFF; }
@font-face { font-family: 'Roboto Mono'; font-weight: 500; font-display: swap; src: url(fonts/roboto-mono-latin-500-normal.woff2) format('woff2'); }

@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

:root {
  --bg: #0a1220; --band: #0c1525; --card: #101b2e; --line: #1f2d47; --text: #e8f1ff; --muted: #93a4c0;
  --brand: #22d3ee; --brand2: #f472b6; --on-brand: #04212a;
  --green: #22c55e; --red: #ef4444; --amber: #f59e0b; --purple: #a855f7;
  --display: 'Rajdhani', 'Titillium Web', 'Arial Narrow', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Roboto Mono', ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--brand); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
img { max-width: 100%; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }

h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(42px, 7vw, 82px); font-weight: 700; }
h2 { font-size: clamp(32px, 4.8vw, 54px); font-weight: 700; }
h3 { font-size: 24px; font-weight: 700; }
p { margin: 0; }
.lede { color: var(--muted); font-size: clamp(17px, 2vw, 20px); max-width: 58ch; }
.kicker { font: 600 13px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.fine { color: var(--muted); font-size: 14px; }

header.top { position: sticky; top: 0; z-index: 10; background: rgba(10, 18, 32, .82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 24px; height: 62px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font: 700 24px/1 var(--display); color: var(--text); text-decoration: none; letter-spacing: .04em; }
.logo img { width: 26px; height: 26px; }
.logo b { color: var(--brand); }
nav.links { display: flex; gap: 22px; margin-left: auto; }
nav.links a { color: var(--muted); text-decoration: none; font-size: 15px; transition: color .2s; }
nav.links a:hover { color: var(--text); }
@media (max-width: 760px) { nav.links { display: none; } header.top .wrap { justify-content: space-between; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 16px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; text-decoration: none; padding: 14px 22px; border-radius: 6px; border: 1px solid transparent; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s, background .2s, border-color .2s; }
.btn.go { background: var(--brand); color: var(--on-brand); box-shadow: 0 0 0 0 rgba(34, 211, 238, .5); }
.btn.go:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px rgba(34, 211, 238, .7); }
.btn.ghost { border-color: var(--line); color: var(--text); }
.btn.ghost:hover { border-color: var(--brand); transform: translateY(-2px); }
.btn.small { padding: 10px 16px; font-size: 14px; }
.btn.big { padding: 20px 34px; font-size: 20px; }

section { padding-block: clamp(72px, 11vw, 128px); position: relative; }
section.band { background: var(--band); border-block: 1px solid var(--line); }
.head { display: grid; gap: 14px; margin-bottom: 48px; }
.head.center { justify-items: center; text-align: center; }
.head.center .lede { margin-inline: auto; }

[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal] > * { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.pills[data-reveal] > *, .perks[data-reveal] > *, .cues[data-reveal] > * { opacity: 0; transform: translateY(16px); }
.pills.in > *, .perks.in > *, .cues.in > * { opacity: 1; transform: none; }
.in > :nth-child(2) { transition-delay: .08s; } .in > :nth-child(3) { transition-delay: .16s; }
.in > :nth-child(4) { transition-delay: .24s; } .in > :nth-child(5) { transition-delay: .32s; }

.hero { padding-block: clamp(48px, 8vw, 100px) clamp(64px, 9vw, 112px); overflow: hidden; }
.hero .glow { position: absolute; inset: -20% -10% auto; height: 120%; pointer-events: none;
  background: radial-gradient(40% 45% at 75% 35%, rgba(34, 211, 238, .18), transparent 70%), radial-gradient(30% 35% at 90% 70%, rgba(244, 114, 182, .14), transparent 70%);
  animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(-4%, 3%) scale(1.08); } }
.hero .wrap { position: relative; display: grid; gap: 48px; align-items: center; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }
.hero .copy { display: grid; gap: 24px; }
.hero h1 em { font-style: normal; color: var(--red); text-shadow: 0 0 28px rgba(239, 68, 68, .55); animation: brake 3.2s ease-in-out infinite; }
@keyframes brake { 0%, 100% { text-shadow: 0 0 12px rgba(239, 68, 68, .25); } 50% { text-shadow: 0 0 36px rgba(239, 68, 68, .8); } }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.clip { margin: 0; border-radius: 14px; overflow: hidden; background: #15191d; line-height: 0; }
.clip video { width: 100%; height: auto; display: block; }
.clip.live { position: relative; padding: 2px; isolation: isolate;
  background: conic-gradient(from var(--a), transparent 0 62%, var(--brand) 76%, var(--brand2) 86%, transparent 96%), var(--line);
  animation: spin 7s linear infinite; box-shadow: 0 30px 80px -30px rgba(34, 211, 238, .35); }
.clip.live video { border-radius: 12px; }
@keyframes spin { to { --a: 360deg; } }
.clip.live:hover { box-shadow: 0 30px 90px -24px rgba(34, 211, 238, .55); }

.showcase { display: grid; gap: 28px; grid-template-columns: 220px minmax(0, 1fr); align-items: start; }
.tabs { display: grid; gap: 4px; }
.tabs button { position: relative; overflow: hidden; text-align: left; font: 600 17px/1 var(--display); letter-spacing: .03em; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 8px; padding: 13px 16px; cursor: pointer; transition: color .25s, background .25s, border-color .25s, transform .25s var(--ease); }
.tabs button:hover { color: var(--text); transform: translateX(3px); }
.tabs button.on { color: var(--text); background: var(--card); border-color: var(--line); }
.tabs button::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: linear-gradient(90deg, var(--brand), var(--brand2)); }
.tabs button.on::after { width: 100%; }
.tabs button.on.run::after { animation: progress 7s linear forwards; }
@keyframes progress { from { width: 0; } to { width: 100%; } }
.stage { display: grid; gap: 22px; }
.slides { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #0d1117; border: 1px solid var(--line); box-shadow: 0 40px 100px -40px rgba(34, 211, 238, .35); }
.slides figure { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; opacity: 0; transform: scale(1.05); filter: blur(8px); transition: opacity .7s var(--ease), transform .9s var(--ease), filter .7s var(--ease); background-size: cover; background-position: center; }
.slides figure::before { content: ""; position: absolute; inset: -40px; background: inherit; filter: blur(30px) brightness(.4) saturate(1.3); }
.slides figure.on { opacity: 1; transform: none; filter: none; }
.slides video { position: relative; max-width: 92%; max-height: 88%; width: auto; height: auto; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .55); }
.slides [data-panel=delta] { background-image: url(media/delta.jpg); } .slides [data-panel=sectors] { background-image: url(media/sectors.jpg); }
.slides [data-panel=versus] { background-image: url(media/versus.jpg); } .slides [data-panel=standings] { background-image: url(media/standings.jpg); }
.slides [data-panel=relative] { background-image: url(media/relative.jpg); } .slides [data-panel=fuel] { background-image: url(media/fuel.jpg); }
.slides [data-panel=pit] { background-image: url(media/pit.jpg); } .slides [data-panel=spotter] { background-image: url(media/spotter.jpg); }
.slides [data-panel=alerts] { background-image: url(media/alerts.jpg); } .slides [data-panel=trackmap] { background-image: url(media/trackmap.jpg); }
.slides [data-panel=flatmap] { background-image: url(media/flatmap.jpg); }
.caption > div { display: none; gap: 10px; }
.caption > div.on { display: grid; animation: rise .6s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.caption h3 { font-size: 30px; }
.caption p { color: var(--muted); font-size: 18px; }
.caption ul, .pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.caption li, .pills span { font: 600 13px/1 var(--mono); letter-spacing: .04em; color: var(--text); padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(34, 211, 238, .06); }
@media (max-width: 860px) {
  .showcase { grid-template-columns: minmax(0, 1fr); }
  .tabs { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; scrollbar-width: none; }
  .tabs button { flex: none; white-space: nowrap; }
  .tabs button:hover { transform: none; }
  .slides { aspect-ratio: 4 / 3; }
}

.pills { justify-content: center; margin-bottom: 36px; }

.keys { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 36px; }
@media (max-width: 700px) { .keys { grid-template-columns: minmax(0, 1fr); } }
.keys div { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; color: var(--muted); }
.keys b { flex: none; font: 700 18px/1 var(--mono); color: var(--bg); background: var(--text); border-radius: 8px; padding: 9px 12px; box-shadow: 0 4px 0 var(--muted); }
.keys div:nth-child(2) b { animation: key 6s infinite 2s; } .keys div:nth-child(3) b { animation: key 6s infinite 4s; } .keys div:nth-child(1) b { animation: key 6s infinite; }
@keyframes key { 0%, 12%, 100% { transform: none; box-shadow: 0 4px 0 var(--muted); } 4% { transform: translateY(3px); box-shadow: 0 1px 0 var(--muted); background: var(--brand); } }
.sims { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }
.sims span { font: 700 18px/1 var(--display); letter-spacing: .03em; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.sims span.now { color: var(--text); border-color: var(--brand); box-shadow: 0 0 24px -6px rgba(34, 211, 238, .6); }
.sims i { font: 600 11px/1 var(--mono); font-style: normal; letter-spacing: .1em; text-transform: uppercase; margin-left: 8px; color: var(--muted); }
.sims span.now i { color: var(--brand); }

.coach { background: radial-gradient(80% 50% at 50% 0%, #13233b 0%, transparent 70%); }
.cues { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 48px; }
@media (max-width: 700px) { .cues { grid-template-columns: minmax(0, 1fr); } }
.cue { --c: var(--amber); position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: grid; gap: 6px; overflow: hidden; }
.cue.red { --c: var(--red); } .cue.green { --c: var(--green); }
.cue i { height: 12px; border-radius: 6px; background: var(--c); margin-bottom: 10px; opacity: .25; animation: lit 6s infinite; }
.cue.red i { animation-delay: 2s; } .cue.green i { animation-delay: 4s; }
.cue::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 90% at 50% 0%, var(--c), transparent 70%); opacity: 0; animation: wash 6s infinite; pointer-events: none; }
.cue.red::before { animation-delay: 2s; } .cue.green::before { animation-delay: 4s; }
@keyframes lit { 0%, 100% { opacity: .25; box-shadow: none; } 6%, 30% { opacity: 1; box-shadow: 0 0 24px var(--c); } 36% { opacity: .25; box-shadow: none; } }
@keyframes wash { 0%, 100% { opacity: 0; } 6%, 30% { opacity: .16; } 36% { opacity: 0; } }
.cue b { position: relative; font: 700 28px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.cue span { position: relative; color: var(--muted); }

.duo { display: grid; gap: 20px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; margin-bottom: 48px; }
@media (max-width: 860px) { .duo { grid-template-columns: minmax(0, 1fr); } }
.perks { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.perks div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: grid; gap: 6px; align-content: start; transition: transform .3s var(--ease), border-color .3s; }
.perks div:hover { transform: translateY(-4px); border-color: var(--brand); }
.perks b { font: 700 20px/1.1 var(--display); }
.perks span { color: var(--muted); font-size: 15px; }

.free { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.free > div { display: grid; gap: 14px; }
.free .get { display: grid; gap: 10px; justify-items: start; max-width: 340px; }
.free .get .fine { font-size: 13px; }
.free .get b { color: var(--text); font-weight: 600; }

.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; transition: border-color .2s; }
.faq details[open] { border-color: var(--brand); }
.faq summary { cursor: pointer; font: 700 19px/1.3 var(--display); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin-top: 10px; }

footer { border-top: 1px solid var(--line); padding-block: 40px 56px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; }
footer a { color: var(--muted); }

.legal { max-width: 760px; padding-block: 56px 88px; display: grid; gap: 18px; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); }
.legal h2 { font-size: 24px; margin-top: 18px; }
.legal p, .legal li { color: #d4d4d8; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal], [data-reveal] > * { opacity: 1 !important; transform: none !important; }
}

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.contact .head { margin-bottom: 0; }
.contact .mail { color: var(--muted); }
.contact .mail a { color: var(--brand); }
.write { display: grid; gap: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.kinds label { cursor: pointer; }
.kinds input { position: absolute; opacity: 0; pointer-events: none; }
.kinds span { display: inline-block; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; font: 600 14px/1 var(--body); color: var(--muted); transition: border-color .2s, color .2s, background .2s; }
.kinds input:checked + span { border-color: var(--brand); color: var(--text); background: rgba(34, 211, 238, .12); }
.kinds input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.field { display: grid; gap: 8px; font: 600 14px/1.3 var(--body); }
.field i { font-style: normal; font-weight: 400; color: var(--muted); }
.field textarea, .field input { width: 100%; font: 400 16px/1.5 var(--body); color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; resize: vertical; transition: border-color .2s; }
.field textarea:focus, .field input:focus { outline: none; border-color: var(--brand); }
.field [aria-invalid="true"] { border-color: var(--red); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.send { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.send .btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.said { color: var(--muted); font-size: 15px; }
.said.ok { color: var(--green); } .said.no { color: var(--red); }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; gap: 28px; } }
