:root {
  --red: #eb0a1e;
  --red-dark: #c40819;
  --ok: #8fd4a4;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.14);
  --stroke: rgba(255, 255, 255, 0.22);
  --ink: #f7f7f7;
  --muted: rgba(255, 255, 255, 0.62);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.45;
  color: var(--ink);
  background: #090909;
  isolation: isolate;
}
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
}
body::before {
  inset: -20% -10% auto auto;
  width: 70vw;
  height: 70vw;
  max-width: 42rem;
  max-height: 42rem;
  background: radial-gradient(circle, rgba(235, 10, 30, 0.55), transparent 68%);
  filter: blur(8px);
}
body::after {
  right: -15%;
  bottom: -20%;
  width: 55vw;
  height: 55vw;
  max-width: 34rem;
  max-height: 34rem;
  background: radial-gradient(circle, rgba(235, 10, 30, 0.28), transparent 70%);
}

.glass {
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  border: 1px solid var(--stroke);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.brand {
  position: sticky;
  top: 0.75rem;
  z-index: 10;
  margin: 0.75rem auto 0;
  max-width: calc(44rem + 1.5rem);
  width: calc(100% - 1.5rem);
  border-radius: 1.35rem;
  color: #fff;
}
.brand-inner {
  padding: 0.8rem 1.15rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.mark {
  width: 2.4rem;
  height: 1.45rem;
  fill: none;
  stroke: #fff;
  stroke-width: 5.5;
  filter: drop-shadow(0 0 8px rgba(235, 10, 30, 0.55));
}
.wordmark {
  font-family: "Barlow Condensed", "Helvetica Neue", sans-serif;
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: 0.28em;
  line-height: 1;
  padding-left: 0.08em;
}
.vehicle {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.wrap { max-width: 44rem; margin: 0 auto; padding: 1.5rem 1.25rem 4.5rem; }
.wrap.slim { max-width: 24rem; padding-top: 2.2rem; }

.hero {
  margin-bottom: 1.15rem;
  padding: 1.35rem 1.2rem 1.45rem;
  border-radius: 1.35rem;
}
.kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ff6b78;
  font-weight: 700;
}
h1 {
  font-family: "Barlow Condensed", "Helvetica Neue", sans-serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 9vw, 4rem);
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 28px rgba(235, 10, 30, 0.35);
}
h1.over { color: #ff8a94; }
h1.under { color: var(--ok); }
.lede { margin: 0.55rem 0 0; color: var(--muted); font-size: 1.02rem; }

.cluster {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.cluster > div,
.card {
  border-radius: 1.25rem;
}
.cluster > div { padding: 1rem 0.95rem 1.05rem; }
.cluster span, .card span, .fine, .stats, label, legend, th {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.cluster span { display: block; margin-bottom: 0.3rem; }
.cluster strong, .big {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  margin: 1.1rem 0 0.7rem;
  border-radius: 999px;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ff4d5c, var(--red));
  box-shadow: 0 0 12px rgba(235, 10, 30, 0.7);
}

.fine, .stats { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 0.92rem; color: var(--muted); }
.card span { display: inline; text-transform: none; letter-spacing: 0; font-weight: 400; }

.card { padding: 1.35rem 1.2rem 1.5rem; margin: 1.15rem 0; }
.card h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.45rem;
}

form { display: grid; gap: 0.9rem; margin: 1rem 0; }
label { display: grid; gap: 0.4rem; }
input[type="number"], input[type="password"], input[type="text"] {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--stroke);
  color: var(--ink);
  padding: 0.75rem 0.8rem;
  font-size: 1.05rem;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  border-radius: 0.85rem;
}
input:focus {
  outline: none;
  border-color: rgba(235, 10, 30, 0.85);
  box-shadow: 0 0 0 3px rgba(235, 10, 30, 0.25);
}

.toggle { border: 0; padding: 0; margin: 0; }
.toggle legend { margin-bottom: 0.4rem; }
.pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}
.pills label {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.65rem;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--ink);
}
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills label:has(input:checked) {
  background: var(--red);
  color: #fff;
  box-shadow: 0 0 18px rgba(235, 10, 30, 0.45);
}

button {
  background: linear-gradient(180deg, #ff2a3c, var(--red));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.95rem 1.2rem;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(235, 10, 30, 0.35);
}
button:hover { background: var(--red-dark); }
button.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--stroke);
  margin-top: 1rem;
  box-shadow: none;
  backdrop-filter: blur(12px);
}
button.ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 0.95rem; }
th {
  text-align: left;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--stroke);
  color: #ff8a94;
}
td {
  padding: 0.7rem 0.4rem 0.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-variant-numeric: tabular-nums;
}

.timeline { list-style: none; padding: 0; margin: 0.6rem 0 0; }
.timeline li { padding: 0.85rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.timeline strong { display: block; font-weight: 700; }
.timeline span { color: var(--muted); font-size: 0.9rem; }

@media (max-width: 560px) {
  .cluster { grid-template-columns: 1fr; }
  .brand-inner { align-items: flex-start; flex-direction: column; gap: 0.35rem; }
}

@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .glass, .brand, .cluster > div, .card, .hero {
    background: rgba(22, 12, 14, 0.88);
  }
}
