/* RaceHost — visual language deliberately mirrors the SRS Racing site. */

:root {
  --bg: #08090b;
  --bg-secondary: #111317;
  --panel: #181b20;
  --panel-hover: #1e2128;
  --red: #e31b23;
  --red-bright: #ff202b;
  --text: #f4f4f4;
  --text-secondary: #9a9da3;
  --border: #292d33;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-sans: "Inter", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--red);
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--red);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 640px) {
  .container {
    padding: 0 32px;
  }
}

.display {
  font-family: var(--font-display);
  text-transform: uppercase;
}

.mono {
  font-family: var(--font-mono);
}

.red {
  color: var(--red);
}

.bg-topo {
  background-image: radial-gradient(circle at 1px 1px, rgba(244, 244, 244, 0.06) 1px, transparent 0);
  background-size: 28px 28px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 16px;
  padding: 14px 28px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

.btn-primary {
  background: var(--red);
  color: #fff;
}
.btn-primary:hover {
  background: var(--red-bright);
}

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-secondary:hover {
  border-color: var(--red);
  color: var(--red);
}

.btn-small {
  padding: 11px 22px;
  font-size: 14px;
}

/* ---------- Logo ---------- */

.logo {
  display: inline-block;
  line-height: 0;
}
.logo img {
  width: auto;
}
.logo-nav img {
  height: 34px;
}
.logo-foot img {
  height: 44px;
}
.hero-logo {
  width: min(560px, 82vw);
  height: auto;
  margin: 0 auto 44px;
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
}
.nav.scrolled,
.nav.open {
  background: rgba(8, 9, 11, 0.95);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--border);
}
.nav-inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 40px;
}
.nav-links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--red);
}
.nav-cta {
  display: none;
}
.nav-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s, opacity 0.2s;
}
.nav.open .nav-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav.open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
.nav.open .nav-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 8px 20px 24px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.nav.open .nav-mobile {
  display: flex;
}
.nav-mobile a:not(.btn) {
  padding: 14px 0;
  border-bottom: 1px solid rgba(41, 45, 51, 0.6);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}
.nav-mobile .btn {
  margin-top: 20px;
}

@media (min-width: 1024px) {
  .nav-links,
  .nav-cta {
    display: flex;
  }
  .nav-toggle,
  .nav-mobile {
    display: none !important;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 168px 0 0;
  text-align: center;
}
.hero .glow {
  position: absolute;
  top: 18%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translateX(-50%);
  background: rgba(227, 27, 35, 0.1);
  border-radius: 50%;
  filter: blur(160px);
  pointer-events: none;
}
.hero .fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--bg), rgba(8, 9, 11, 0.7), var(--bg));
  pointer-events: none;
}
.hero-inner {
  position: relative;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--red);
}
.eyebrow::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--red);
}
.hero h1 {
  margin-top: 20px;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.92;
  font-size: clamp(54px, 11vw, 118px);
}
.hero-sub {
  max-width: 680px;
  margin: 28px auto 0;
  font-size: clamp(19px, 2.2vw, 22px);
  line-height: 1.6;
  color: var(--text-secondary);
}
.hero-actions {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }
}
.hero-note {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
}

.status-strip {
  position: relative;
  margin-top: 88px;
  border-top: 1px solid var(--border);
  background: rgba(17, 19, 23, 0.8);
  backdrop-filter: blur(6px);
}
.status-strip .container {
  padding-top: 16px;
  padding-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 32px;
  font-family: var(--font-mono);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
}
@media (min-width: 640px) {
  .status-strip .container {
    justify-content: space-between;
  }
}
.status-strip b {
  color: var(--text);
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

/* ---------- Sections ---------- */

section {
  position: relative;
}
.section {
  padding: 96px 0;
}
.section-alt {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 640px) {
  .section {
    padding: 128px 0;
  }
}

.heading .eyebrow {
  margin-bottom: 14px;
}
.heading h2 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.95;
  font-size: clamp(42px, 7vw, 78px);
}
.heading p {
  max-width: 640px;
  margin-top: 20px;
  font-size: 19px;
  color: var(--text-secondary);
}
.heading.center {
  text-align: center;
}
.heading.center .eyebrow {
  justify-content: center;
}
.heading.center p {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Product preview ---------- */

.preview {
  margin-top: 64px;
  display: grid;
  gap: 24px;
  text-align: left;
}
@media (min-width: 900px) {
  .preview {
    grid-template-columns: 1.15fr 1fr;
    align-items: start;
  }
}
.window {
  background: var(--panel);
  border: 1px solid var(--border);
}
.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}
.window-bar .title {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
}
.window-bar .meta {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.sched-row {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.sched-row:last-child {
  border-bottom: 0;
}
.sched-row::before,
.sched-row::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--c);
}
.sched-row::before {
  left: 0;
}
.sched-row::after {
  right: 0;
}
.sched-row .glow-l,
.sched-row .glow-r {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  opacity: 0.14;
  pointer-events: none;
}
.sched-row .glow-l {
  left: 0;
  background: linear-gradient(to right, var(--c), transparent);
}
.sched-row .glow-r {
  right: 0;
  background: linear-gradient(to left, var(--c), transparent);
}
.sched-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 32px;
  color: var(--text-secondary);
  transform: skewX(-6deg);
}
.sched-track {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
}
.sched-sub {
  margin-top: 2px;
  font-size: 15px;
  color: var(--text-secondary);
}
.sched-sub i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  background: var(--c);
  transform: skewX(-6deg);
}
.pill {
  padding: 5px 10px;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
}
.next-tag {
  margin-left: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--red);
}

table.standings {
  width: 100%;
  border-collapse: collapse;
}
.standings th {
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}
.standings td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
}
.standings tr:last-child td {
  border-bottom: 0;
}
.standings .pos {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 20px;
}
.standings .pts {
  font-family: var(--font-mono);
  font-weight: 700;
}
.standings .num {
  font-family: var(--font-mono);
  color: var(--text-secondary);
}
.standings .name {
  font-weight: 600;
}
.standings .name img {
  display: inline-block;
  height: 13px;
  width: auto;
  margin-right: 8px;
  vertical-align: -1px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.standings tr.podium {
  background: rgba(227, 27, 35, 0.06);
}
.standings tr.podium .name {
  color: var(--red);
}
.preview-caption {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  text-align: center;
}

/* ---------- Cards ---------- */

.grid {
  margin-top: 64px;
  display: grid;
  gap: 24px;
}
@media (min-width: 700px) {
  .grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1000px) {
  .grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  position: relative;
  padding: 32px 28px 30px 32px;
  background: var(--panel);
  border: 1px solid var(--border);
  transition: background-color 0.2s, border-color 0.2s;
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: var(--red);
}
.card:hover {
  background: var(--panel-hover);
  border-color: rgba(227, 27, 35, 0.5);
}
.card .tag {
  display: inline-block;
  margin-bottom: 18px;
  padding: 4px 10px;
  border: 1px solid rgba(227, 27, 35, 0.5);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--red);
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  text-transform: uppercase;
  line-height: 1.05;
}
.card p {
  margin-top: 12px;
  font-size: 16.5px;
  color: var(--text-secondary);
}

/* ---------- Steps ---------- */

.steps {
  margin-top: 64px;
  display: grid;
  gap: 0;
  border: 1px solid var(--border);
  background: var(--border);
}
@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
  }
}
.step {
  padding: 40px 32px;
  background: var(--bg);
}
.section-alt .step {
  background: var(--bg-secondary);
}
.step .n {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 66px;
  line-height: 1;
  color: var(--red);
  transform: skewX(-6deg);
  display: inline-block;
}
.step h3 {
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  text-transform: uppercase;
}
.step p {
  margin-top: 10px;
  font-size: 17px;
  color: var(--text-secondary);
}

/* ---------- Proof ---------- */

.proof {
  margin-top: 0;
  padding: 40px 28px;
  border: 1px solid rgba(227, 27, 35, 0.4);
  background: rgba(227, 27, 35, 0.05);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
@media (min-width: 800px) {
  .proof {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 48px 48px;
  }
}
.proof h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 4vw, 42px);
  text-transform: uppercase;
  line-height: 1;
}
.proof p {
  margin-top: 10px;
  max-width: 620px;
  color: var(--text-secondary);
}

/* ---------- Pricing ---------- */

.price-wrap {
  margin: 64px auto 0;
  max-width: 560px;
}
.price-card {
  position: relative;
  padding: 44px 36px 40px;
  background: var(--panel);
  border: 1px solid rgba(227, 27, 35, 0.5);
}
.price-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: var(--red);
}
.price-card .plan {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--red);
}
.price {
  margin-top: 14px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.price .amt {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 90px;
  line-height: 0.9;
  transform: skewX(-6deg);
}
.price .per {
  font-family: var(--font-mono);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}
.price-card ul {
  margin: 32px 0 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 14px;
}
.price-card li {
  display: flex;
  gap: 12px;
  font-size: 17px;
}
.price-card li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  background: var(--red);
  transform: skewX(-12deg);
}
.price-card .btn {
  width: 100%;
}

/* ---------- FAQ ---------- */

.faq {
  margin: 64px auto 0;
  max-width: 860px;
  border-top: 1px solid var(--border);
}
.faq details {
  border-bottom: 1px solid var(--border);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  text-transform: uppercase;
  transition: color 0.2s;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 26px;
  color: var(--red);
}
.faq details[open] summary::after {
  content: "–";
}
.faq summary:hover {
  color: var(--red);
}
.faq details p {
  padding: 0 4px 26px;
  max-width: 720px;
  color: var(--text-secondary);
}

/* ---------- Final CTA ---------- */

.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta .glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 500px;
  transform: translate(-50%, -50%);
  background: rgba(227, 27, 35, 0.1);
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
}
.cta .container {
  position: relative;
}
.cta .hero-actions {
  margin-top: 40px;
}

/* ---------- Footer ---------- */

footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}
.foot {
  padding: 64px 0 40px;
  display: grid;
  gap: 40px;
}
@media (min-width: 800px) {
  .foot {
    grid-template-columns: 2fr 1fr 1fr;
  }
}
.foot .tag {
  margin-top: 20px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 16px;
  color: var(--text-secondary);
}
.foot h4 {
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--text-secondary);
}
.foot li + li {
  margin-top: 12px;
}
.foot a {
  font-size: 16px;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.foot a:hover {
  color: var(--red);
}
.foot-bottom {
  padding: 28px 0 36px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  color: rgba(154, 157, 163, 0.6);
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .dot {
    animation: none;
  }
}

/* ---------- League logo slider ---------- */
.leagues {
  padding-bottom: 96px;
}
.slider {
  overflow: hidden;
  margin-top: 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.slider-track {
  display: flex;
  gap: 24px;
  width: max-content;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  animation: slide var(--slide-duration, 40s) linear infinite;
}
.slider:hover .slider-track,
.slider:focus-within .slider-track {
  animation-play-state: paused;
}
@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}
.league-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 180px;
  height: 96px;
  padding: 16px 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
a.league-logo:hover,
a.league-logo:focus-visible {
  border-color: var(--red);
  background: var(--panel-hover);
  transform: translateY(-2px);
}
.league-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
/* Few logos: a still, centred row instead of a scrolling loop. */
.slider.still {
  -webkit-mask-image: none;
  mask-image: none;
}
.slider.still .slider-track {
  animation: none;
  width: auto;
  flex-wrap: wrap;
  justify-content: center;
}
@media (prefers-reduced-motion: reduce) {
  .slider {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .slider-track {
    animation: none;
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
  }
}
