@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&family=Outfit:wght@600;700;800&display=swap");

:root {
  --bg: #030712;
  --bg-elev: #0a1220;
  --fg: #f2f7ff;
  --accent: #2ee6d0;
  --accent-hot: #5eead4;
  --volt: #a3e635;
  --gold: #fbbf24;
  --muted: #8ba3bd;
  --line: rgba(46, 230, 208, 0.22);
  --font-display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  background:
    radial-gradient(ellipse 90% 55% at 85% -10%, rgba(46, 230, 208, 0.16), transparent 55%),
    radial-gradient(ellipse 70% 45% at -10% 30%, rgba(163, 230, 53, 0.07), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 110%, rgba(14, 165, 233, 0.1), transparent 55%),
    var(--bg);
  color: var(--fg);
  line-height: 1.55;
  min-height: 100vh;
}

.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(3, 7, 18, 0.92) 0%, rgba(3, 7, 18, 0.72) 38%, rgba(3, 7, 18, 0.35) 62%, rgba(3, 7, 18, 0.7) 100%),
    linear-gradient(180deg, transparent 40%, #030712 100%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 55% 40% at 78% 42%, rgba(46, 230, 208, 0.2), transparent 60%);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: pulseGlow 7s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  filter: saturate(0.75) hue-rotate(-18deg) brightness(0.82) contrast(1.08);
  animation: heroDrift 22s ease-in-out infinite alternate;
}

@keyframes heroDrift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(72rem, 100%);
  margin: 0 auto;
  padding: 4.5rem 1.5rem 3.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 2rem 2.5rem;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 0;
  max-width: 44rem;
}

.hero-device {
  margin: 0;
  justify-self: end;
  width: min(100%, 38rem);
  animation: deviceRise 1s ease-out both;
}

@keyframes deviceRise {
  from { opacity: 0; transform: translateY(18px) rotate(1.5deg); }
  to { opacity: 1; transform: translateY(0) rotate(-1.25deg); }
}

.hero-device-chrome {
  position: relative;
  border-radius: 18px;
  padding: 0.55rem;
  background:
    linear-gradient(145deg, rgba(148, 163, 184, 0.35), rgba(15, 23, 42, 0.9));
  box-shadow:
    0 0 0 1px rgba(46, 230, 208, 0.35),
    0 28px 70px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(46, 230, 208, 0.18);
}

.hero-device-chrome::before {
  content: "";
  position: absolute;
  inset: -18% -8% auto;
  height: 55%;
  background: radial-gradient(ellipse at 50% 80%, rgba(46, 230, 208, 0.28), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-device-chrome img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(46, 230, 208, 0.22);
  background: #020617;
}

.hero-device figcaption {
  margin-top: 0.85rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-hot);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.hero h1 {
  margin: 0.35rem 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.85rem, 8vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.98;
  text-shadow: 0 10px 48px rgba(0, 0, 0, 0.65);
}

.lede {
  color: var(--fg);
  font-size: clamp(1.12rem, 2.4vw, 1.35rem);
  font-weight: 600;
  max-width: 34rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.15rem 0 1.35rem;
}

.hero-tags span {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(3, 7, 18, 0.55);
  color: var(--accent-hot);
  backdrop-filter: blur(8px);
}

.eyebrow {
  margin: 0;
  color: var(--volt);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

a { color: var(--accent); }

h1, h2 {
  font-family: var(--font-display);
}

h1 {
  margin: 0.35rem 0 0.75rem;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.03em;
}

.btn {
  display: inline-flex;
  align-items: center;
  margin: 0.25rem 0.65rem 0.25rem 0;
  padding: 0.78rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #14b8a6);
  color: #031412;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(46, 230, 208, 0.35), 0 12px 32px rgba(46, 230, 208, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(46, 230, 208, 0.5), 0 16px 40px rgba(46, 230, 208, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: none;
}

.links { font-size: 0.95rem; }
.links a:not(.btn) {
  margin-left: 0.35rem;
  opacity: 0.85;
}

main { max-width: 68rem; margin: 0 auto; padding: 1rem 1.5rem 4rem; }

.feature {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.25rem;
  align-items: center;
  margin: 3.25rem 0;
  padding: 1.5rem;
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(46, 230, 208, 0.07), transparent 45%),
    rgba(10, 18, 32, 0.72);
  border: 1px solid rgba(46, 230, 208, 0.14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.feature.reverse { grid-template-columns: 1.2fr 1fr; }
.feature.reverse > div:first-child { order: 2; }

.feature img {
  width: 100%;
  border-radius: 16px;
  display: block;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(46, 230, 208, 0.16);
  filter: saturate(0.8) hue-rotate(-14deg) brightness(0.9);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.feature img.shot {
  filter: none;
  background: #020617;
}

.feature:hover img {
  transform: scale(1.015);
  filter: saturate(0.95) hue-rotate(-10deg) brightness(0.95);
}

.feature:hover img.shot {
  filter: none;
}

.feature-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.55rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.feature p { color: var(--muted); margin: 0; font-size: 1.02rem; }
.feature strong { color: var(--accent-hot); font-weight: 700; }

.shot-placeholder {
  margin: 0;
  position: relative;
}

.shot-placeholder img {
  width: 100%;
  border-radius: 16px;
  display: block;
  border: 1px dashed rgba(46, 230, 208, 0.45);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  background: #020617;
  filter: none;
}

.shot-placeholder figcaption {
  margin-top: 0.55rem;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-align: center;
}

.feature:hover .shot-placeholder img {
  transform: none;
  filter: none;
}

.train-steps {
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.train-steps li {
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  gap: 0.65rem;
  align-items: start;
  color: var(--muted);
  font-size: 1.02rem;
}

.train-steps li span {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: rgba(46, 230, 208, 0.16);
  color: var(--accent-hot);
  font-weight: 800;
  font-size: 0.85rem;
}

.pricing {
  margin: 3.5rem 0 1rem;
  padding: 2.6rem 1.5rem;
  border: 1px solid rgba(46, 230, 208, 0.32);
  border-radius: 22px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(46, 230, 208, 0.16), transparent 58%),
    radial-gradient(ellipse at 80% 100%, rgba(163, 230, 53, 0.08), transparent 45%),
    var(--bg-elev);
}

.pricing h2 { margin-bottom: 0.75rem; }
.pricing p { color: var(--muted); margin: 0 auto; max-width: 36rem; }
.pricing strong { color: var(--accent); }

footer {
  padding: 2rem 1.5rem 3rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.mark {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  margin-bottom: 0.75rem;
}

@media (max-width: 800px) {
  .feature, .feature.reverse {
    grid-template-columns: 1fr;
    padding: 1.1rem;
  }
  .feature.reverse > div:first-child { order: 0; }
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 3.5rem 1.25rem 2.5rem;
    gap: 1.75rem;
  }
  .hero-device {
    justify-self: stretch;
    width: 100%;
    order: -1;
  }
  .hero-device {
    animation: deviceRise 0.9s ease-out both;
  }
  @keyframes deviceRise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0) rotate(0deg); }
  }
  .hero-device-chrome {
    transform: none;
  }
}

/* —— Companion evaluator —— */
.page-companion {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 70% 40% at 20% 0%, rgba(46, 230, 208, 0.1), transparent 50%),
    var(--bg);
}
.top-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid rgba(46, 230, 208, 0.15);
  background: rgba(3, 7, 18, 0.92);
  position: sticky;
  top: 0;
  z-index: 10;
}
.top-nav a { color: inherit; text-decoration: none; }
.top-nav strong a { color: var(--accent); }
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  font-size: 0.82rem;
}
.nav-links a {
  color: rgba(242, 247, 255, 0.65);
  padding: 0.2rem 0.35rem;
  border-radius: 6px;
}
.nav-links a:hover { color: var(--fg); }
.nav-links a.active {
  color: var(--accent);
  background: rgba(46, 230, 208, 0.12);
}
.companion-main {
  flex: 1;
  overflow: auto;
  padding: 1.1rem 1.25rem 2rem;
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
}
.lede-sm {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0.35rem 0 1.25rem;
  max-width: 38rem;
}
.panel h2 { margin: 0 0 0.4rem; color: var(--accent); }
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0.85rem 0;
  font-size: 0.85rem;
}
.field input {
  background: #0b1220;
  border: 1px solid #3a4d6b;
  border-radius: 10px;
  color: var(--fg);
  padding: 0.65rem 0.75rem;
  font: inherit;
}
.btn-row { display: flex; gap: 0.65rem; }
.btn-primary, .btn-outline {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  border-radius: 10px;
  padding: 0.65rem 1rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.btn-row .btn-primary, .btn-row .btn-outline { flex: 1; }
.btn-primary {
  background: var(--accent);
  color: #042012;
}
.btn-outline {
  background: transparent;
  border-color: #3a4d6b;
  color: var(--fg);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-primary.inline { display: inline-block; padding: 0.5rem 0.9rem; }
.status-line { min-height: 1.2em; font-size: 0.85rem; opacity: 0.7; }
.muted { opacity: 0.55; font-size: 0.9rem; }
.well {
  background: #0b1220;
  border: 1px solid #24324a;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  margin: 0.75rem 0;
}
.well h3 { margin: 0 0 0.35rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.75rem 0; }
.chip {
  background: transparent;
  border: 1px solid #3a4d6b;
  color: var(--fg);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}
.chip.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(46, 230, 208, 0.12);
}
.maker-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.maker-chip img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 3px;
}
.maker-chips { max-height: 7.5rem; overflow: auto; }
.stack { display: flex; flex-direction: column; gap: 0.55rem; }
.race-card {
  display: grid;
  grid-template-columns: 96px auto 1fr;
  gap: 0.85rem;
  align-items: center;
}
.race-thumb {
  width: 96px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
  background: #0a1424;
  border: 1px solid rgba(255,255,255,0.08);
}
.race-code {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(46, 230, 208, 0.15);
  color: var(--accent);
  font-weight: 700;
}
.list { display: flex; flex-direction: column; gap: 0.35rem; margin-top: 0.5rem; }
.list-row {
  display: grid;
  grid-template-columns: 4.2rem 1fr;
  gap: 0.65rem;
  align-items: start;
  background: #0b1220;
  border: 1px solid #24324a;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
}
.list-row.car-row, .list-row.track-row {
  grid-template-columns: 72px 1fr;
  align-items: center;
  cursor: pointer;
}
.list-row.car-row:hover, .list-row.track-row:hover {
  border-color: rgba(46, 230, 208, 0.35);
}
.car-thumb, .track-thumb {
  width: 72px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  background: #0a1424;
  border: 1px solid rgba(255,255,255,0.08);
}
.car-thumb-fallback, .track-id-fallback {
  width: 72px;
  height: 48px;
  border-radius: 8px;
  display: none;
  align-items: center;
  justify-content: center;
  place-items: center;
  background: linear-gradient(135deg, rgba(46,230,208,0.35), #0b1220);
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
  border: 1px solid rgba(46,230,208,0.35);
}
.car-meta { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.car-name { font-weight: 600; font-size: 0.92rem; }
.list-row .code {
  font-family: ui-monospace, Consolas, monospace;
  color: var(--gold);
  font-size: 0.85rem;
}
.list-row p { margin: 0.15rem 0 0; }
.car-detail-head {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  align-items: center;
}
.car-thumb-lg {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  background: #0a1424;
  border: 1px solid rgba(255,255,255,0.08);
}
.well.profile-hero {
  background: linear-gradient(160deg, #122238, #0a1424);
  border-color: rgba(46, 230, 208, 0.28);
}
.rating-big {
  display: flex;
  gap: 1.5rem;
  margin: 0.5rem 0 0.75rem;
}
.rating-big div { text-align: center; }
.rating-big strong {
  display: block;
  font-size: 2rem;
  color: var(--accent);
  font-style: italic;
}
.rating-big .sr strong { color: var(--gold); }

.dr-gauge {
  margin: 0.85rem 0 0.35rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: rgba(8, 16, 28, 0.65);
  border: 1px solid rgba(91, 140, 255, 0.28);
}
.dr-gauge-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}
.dr-gauge-pts {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.dr-gauge-next {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  text-align: right;
}
.dr-gauge-track {
  position: relative;
  height: 28px;
  margin-bottom: 0.35rem;
}
.dr-gauge-rail {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 12px;
  margin-top: -6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.dr-gauge-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(91, 140, 255, 0.45), var(--accent), rgba(61, 214, 198, 0.85));
  min-width: 2%;
}
.dr-gauge-marker {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  margin-left: -9px;
  border-radius: 50%;
  background: #0b1220;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 2px rgba(11, 18, 32, 0.5);
}
.dr-gauge-marker::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--accent);
}
.dr-gauge-ends {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}
.dr-gauge-ends strong {
  display: block;
  color: var(--accent);
  font-size: 0.95rem;
}
.dr-gauge-ends .muted { opacity: 0.55; }
.dr-gauge-note {
  margin: 0.45rem 0 0;
  font-size: 0.75rem;
  opacity: 0.5;
}

.dr-gauge-body {
  position: relative;
}
.dr-gauge-locked .dr-gauge-body {
  min-height: 4.5rem;
}
.dr-gauge-lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem;
  text-align: center;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.82), rgba(11, 18, 32, 0.92));
}
.dr-gauge-lock strong {
  color: var(--accent);
  font-size: 0.9rem;
}
.dr-gauge-lock span {
  font-size: 0.8rem;
  opacity: 0.85;
}
.dr-gauge-lock .btn {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  padding: 0.45rem 0.9rem;
}

.dr-demo {
  padding: 1.25rem 1.35rem;
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(18, 34, 56, 0.95), rgba(8, 16, 28, 0.98));
  border: 1px solid rgba(46, 230, 208, 0.35);
  box-shadow:
    0 0 0 1px rgba(91, 140, 255, 0.12),
    0 24px 48px rgba(0, 0, 0, 0.45);
}
.dr-demo-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.dr-demo .dr-gauge {
  margin: 0;
  border-color: rgba(46, 230, 208, 0.22);
}
.dr-demo-shot {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hidden { display: none !important; }

@media (max-width: 600px) {
  .race-card { grid-template-columns: 72px auto 1fr; }
  .race-thumb { width: 72px; height: 48px; }
  .car-detail-head { grid-template-columns: 1fr; }
}
