/* DriveForever site: the title screen's synthwave look (TitleScreen.NEON / menu_kit.gd). */
@font-face { font-family: Jost; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/jost-800.377c7a4278cc.woff2") format("woff2"); }
@font-face { font-family: Jost; font-weight: 800; font-style: italic; font-display: swap; src: url("fonts/jost-800-italic.02212e12d2f1.woff2") format("woff2"); }

:root {
  --bg: #0b0614;
  --bg-2: #160b26;
  --panel: rgba(13, 8, 26, 0.82);
  --line: rgba(255, 51, 158, 0.28);
  --line-strong: rgba(255, 51, 158, 0.4);
  --neon: #ff339e;
  --neon-core: #ffdbf2;
  --orange: #ff9e4d;
  --violet: #cc8cff;
  --text: #f3eaff;
  --soft: #b9a8d6;
  --error: #ffb3d6;
  /* Futura where the system has it (Apple), else Jost (self-hosted, OFL). */
  --drive: Futura, "Futura PT", Jost, "Avenir Next Condensed", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --glow: 0 0 12px rgba(255, 51, 158, 0.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--body);
}
a { color: var(--neon-core); text-decoration-color: var(--neon); text-underline-offset: 3px; }
a:hover { color: #fff; }
img { max-width: 100%; display: block; }
[id] { scroll-margin-top: 72px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Header */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 6, 20, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand {
  font: 800 22px/1 var(--drive);
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
  transform: skewX(-10deg);
  white-space: nowrap;
}
.brand span { color: var(--neon); text-shadow: 0 0 10px var(--neon); font-style: italic; }
.nav-links { display: flex; align-items: center; gap: 20px; font-weight: 600; font-size: 15px; }
.nav-links a:not(.btn) { color: var(--soft); text-decoration: none; }
.nav-links a:not(.btn):hover { color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 2px solid var(--neon);
  border-radius: 10px;
  background: rgba(255, 51, 158, 0.18);
  color: #fff;
  font: 800 15px/1 var(--drive);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 0 18px rgba(255, 51, 158, 0.4);
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}
.btn:hover, .btn:focus-visible { background: rgba(255, 51, 158, 0.34); box-shadow: 0 0 28px rgba(255, 51, 158, 0.7); color: #fff; }
.btn.sm { min-height: 40px; padding: 0 16px; border-radius: 8px; font-size: 14px; box-shadow: 0 0 14px rgba(255, 51, 158, 0.4); }
.btn.lg { min-height: 52px; padding: 0 32px; font-size: 17px; box-shadow: 0 0 22px rgba(255, 51, 158, 0.45), inset 0 0 12px rgba(255, 51, 158, 0.25); }
.btn.block { display: flex; width: 100%; }
.btn.ghost { border-color: var(--violet); background: transparent; box-shadow: none; }
.btn.ghost:hover { background: rgba(204, 140, 255, 0.14); }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-row.left { justify-content: flex-start; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }

/* Headings */
section { padding: 56px 0; }
h2 {
  font: 800 clamp(30px, 4.4vw, 48px)/1.1 var(--drive);
  margin: 0 0 24px;
  transform: skewX(-6deg);
  transform-origin: left;
}
h2 em, .display em { color: var(--neon); font-style: normal; text-shadow: var(--glow); }
h3 { font-size: 19px; margin: 0 0 6px; color: #fff; }
.display { font: 800 clamp(34px, 5.6vw, 64px)/1.05 var(--drive); margin: 0; color: #fff; transform: skewX(-6deg); text-wrap: balance; }
.display em { text-shadow: 0 0 16px rgba(255, 51, 158, 0.6); }
.lead { color: var(--soft); font-size: 19px; max-width: 720px; }

/* Hero: the logo-over-sunset artwork, text lives below it */
.hero {
  position: relative;
  min-height: clamp(230px, 46vw, 620px);
  background: #1a0b2a url("img/hero.6b71eb4b9678.jpg") center / cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 45%;
  background: linear-gradient(to bottom, rgba(11, 6, 20, 0), var(--bg));
}

/* Intro + trailer */
.intro { padding: 0 0 56px; position: relative; }
.intro .wrap { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.intro-copy { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 780px; }
.intro-copy p { margin: 0; color: var(--soft); font-size: clamp(17px, 2vw, 20px); text-wrap: pretty; }
.trailer {
  position: relative; width: 100%; max-width: 960px; aspect-ratio: 16 / 9;
  border-radius: 14px; overflow: hidden; border: 1px solid var(--line-strong); background: #000;
  box-shadow: 0 0 60px rgba(255, 51, 158, 0.28);
}
.trailer > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.trailer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play-wrap {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  text-decoration: none;
}
.play {
  width: 84px; height: 84px; border-radius: 50%; border: 2px solid var(--neon); background: rgba(11, 6, 20, 0.7);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 0 28px rgba(255, 51, 158, 0.6);
  transition: transform 0.15s;
}
.play-wrap:hover .play, .play-wrap:focus-visible .play { transform: scale(1.06); }
.play-label { font: 800 15px/1 var(--drive); letter-spacing: 0.12em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 8px #000; }

/* Waitlist panel */
.join { padding: 8px 0 72px; }
.join-page { padding-top: 56px; }
.join-card {
  display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: flex-start;
  background: var(--bg-2); border: 1px solid rgba(255, 51, 158, 0.35); border-radius: 18px;
  padding: clamp(22px, 4vw, 44px); box-shadow: inset 0 0 50px rgba(255, 51, 158, 0.12);
}
.join-copy { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.join-copy h2 { font-size: clamp(30px, 4vw, 42px); margin: 0; color: #fff; }
.join-lead { margin: 0; color: var(--soft); font-size: 18px; text-wrap: pretty; }
.join-note { margin: 0; color: var(--soft); font-size: 15px; }
.pill {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 6px 12px;
  border-radius: 999px; border: 1px solid rgba(255, 158, 77, 0.5);
  color: #ffc796; font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 8px var(--orange); }
.join-form { flex: 1.25 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.join-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.field-label { display: block; font-weight: 700; margin-bottom: 8px; padding: 0; color: #fff; }
.field-label span { font-weight: 400; color: var(--soft); }
.field {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 10px;
  border: 1px solid rgba(204, 140, 255, 0.4); background: rgba(0, 0, 0, 0.4); color: #fff; font: inherit;
}
.field:focus { outline: 2px solid var(--neon); outline-offset: 1px; border-color: transparent; }
.chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); gap: 10px; }
.chip {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: 10px;
  cursor: pointer; font-weight: 600; font-size: 15px;
  border: 2px solid rgba(204, 140, 255, 0.3); background: rgba(0, 0, 0, 0.3); color: #d9cdef;
  transition: border-color 0.12s, background 0.12s;
}
.chip svg { flex: none; }
.chip input { width: 18px; height: 18px; margin: 0; accent-color: var(--neon); flex: none; }
.chip:has(input:checked) { border-color: var(--neon); background: rgba(255, 51, 158, 0.18); color: #fff; box-shadow: 0 0 12px rgba(255, 51, 158, 0.3); }
.chip:focus-within { outline: 2px solid var(--neon); outline-offset: 2px; }
.perks { border-radius: 10px; background: rgba(0, 0, 0, 0.3); border: 1px dashed rgba(204, 140, 255, 0.35); padding: 12px 14px; font-size: 15px; }
.perks-empty { color: var(--soft); }
.perks b { display: block; color: #fff; margin-bottom: 4px; }
.perk-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.perk-list li { display: flex; gap: 8px; align-items: baseline; }
.perk-list li::before { content: "›"; color: var(--neon); }
.form-error { margin: 6px 0 0; color: var(--error); font-weight: 600; font-size: 15px; }
.join-form .fine { margin: 0; font-size: 13px; }
.g-recaptcha { min-height: 78px; }

/* Feature rows (media alternates sides on wide screens) */
.explore { padding: 24px 0 64px; }
.explore .wrap { display: flex; flex-direction: column; gap: clamp(48px, 7vw, 88px); }
.explore h2 { margin: 0; color: var(--text); }
.feature { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 56px; }
.media {
  position: relative; flex: 1.35 1 400px; min-width: 0; margin: 0; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255, 51, 158, 0.35); background: var(--bg-2); box-shadow: 0 0 36px rgba(255, 51, 158, 0.16);
}
.media img, .media video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.feature-copy { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.feature-copy h3 { margin: 0; font: 800 clamp(26px, 3vw, 34px)/1.15 var(--drive); }
.feature-copy p { margin: 0; color: var(--soft); font-size: 18px; text-wrap: pretty; }
.kicker { font: 800 14px/1 var(--drive); letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); }
@media (min-width: 761px) { .feature.flip > .media { order: 2; } }

/* Destinations */
.dest-sec, .platforms-sec { padding: 24px 0 64px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 22px; }
.sec-head h2 { margin: 0; }
.sec-head p { margin: 0; color: var(--soft); font-size: 15px; }
.dest { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 14px; }
.dest figure { margin: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.dest img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; height: auto; }
.dest figcaption { padding: 8px 12px; font-weight: 700; font-size: 15px; }

/* Platforms */
.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 18px; }
.plat { display: flex; flex-direction: column; gap: 10px; background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: 14px; padding: 24px; }
.plat.desk { border-color: rgba(204, 140, 255, 0.35); }
.plat-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plat h3 { margin: 0; font-size: 22px; }
.plat p { margin: 0; color: var(--soft); font-size: 16px; }
.badge {
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--violet); color: var(--text);
  font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}
.badge.solid { border-color: var(--neon); background: rgba(255, 51, 158, 0.18); color: #fff; }

/* Closing call to action */
.finale { position: relative; padding: 72px 0 88px; overflow: hidden; border-top: 1px solid rgba(255, 51, 158, 0.2); }
.finale-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.22; }
.finale::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, var(--bg), rgba(11, 6, 20, 0.6) 50%, var(--bg));
}
.finale .wrap { position: relative; z-index: 2; max-width: 720px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.finale .display { font-size: clamp(32px, 5vw, 56px); }
.finale p { margin: 0; color: var(--soft); font-size: 18px; }

/* Thanks / confirmed pages */
.done { position: relative; padding: clamp(48px, 9vw, 112px) 0; overflow: hidden; min-height: calc(100vh - 160px); }
.done-bg { position: absolute; inset: 0; background: url("img/sunset.ca43be78def7.jpg") center / cover no-repeat; opacity: 0.18; }
.done-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(11, 6, 20, 0.4), var(--bg) 85%); }
.done-body { position: relative; max-width: 640px; margin: 0 auto; padding: 0 16px; display: flex; flex-direction: column; gap: 22px; }
.done-body .display { font-size: clamp(36px, 6vw, 56px); transform-origin: left; }
.done-lead { margin: 0; color: var(--soft); font-size: 19px; }
.done-lead b { color: #fff; }
.done-body .fine { margin: 0; }
.check {
  width: 60px; height: 60px; border-radius: 50%; border: 2px solid var(--neon);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 0 24px rgba(255, 51, 158, 0.55);
}
.next-cards { display: flex; flex-direction: column; gap: 12px; }
.next { display: flex; gap: 14px; align-items: flex-start; background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: 14px; padding: 18px 20px; }
.next.desk { border-color: rgba(204, 140, 255, 0.35); }
.next svg { flex: none; margin-top: 2px; }
.next h2 { margin: 0 0 4px; font: 700 18px/1.4 var(--body); transform: none; color: #fff; }
.next p { margin: 0; color: var(--soft); font-size: 16px; }

/* Forms on other pages (support) */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  max-width: 620px;
}
.form p { margin: 0 0 18px; }
.form label { display: block; font-weight: 600; margin-bottom: 6px; }
.form input[type=text], .form input[type=email], .form select, .form textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 8px;
  border: 1px solid rgba(204, 140, 255, 0.35);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font: inherit;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--neon); outline-offset: 1px; border-color: transparent; }
.form ul, .form div[id^="id_"] { list-style: none; padding: 0; margin: 0; display: flex; gap: 10px 22px; flex-wrap: wrap; }
.form ul label, .form div[id^="id_"] label { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; margin: 0; cursor: pointer; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.errorlist { color: var(--error); font-size: 15px; margin: 6px 0 0; padding: 0; list-style: none; }
.errorlist.nonfield { margin-bottom: 18px; }
.fine { color: var(--soft); font-size: 14px; }

/* Prose pages (privacy, terms, press) */
.prose { max-width: 760px; }
.prose h2 { font-size: 28px; margin-top: 36px; }
.prose li { margin-bottom: 6px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose td, .prose th { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; vertical-align: top; }
.strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 24px; }
.strip figure { margin: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.strip img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.strip figcaption { padding: 8px 12px; font-weight: 700; font-size: 15px; }

details { border-bottom: 1px solid var(--line); padding: 12px 0; }
summary { cursor: pointer; font-weight: 700; }
details p { color: var(--soft); margin: 8px 0 0; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--soft); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--soft); }
footer nav { display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .nav-links { gap: 14px; }
  .nav-links .optional { display: none; }
  .brand { font-size: 19px; }
  section { padding: 40px 0; }
  .panel { padding: 20px 16px; }
  /* destinations become a swipeable row */
  .dest { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 10px; }
  .dest > figure { flex: 0 0 78%; scroll-snap-align: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .play, .btn, .chip { transition: none; }
}
