:root{
  --bg:#071B3A;
  --bg-soft:#0B2E63;
  --card:#103A78;
  --line:#1C4E97;

  --white:#f5f5f5;
  --muted:#C5D3EB;

  /* Mantive os nomes das variáveis para não precisar alterar o restante do CSS */
  --red:#F67824;
  --red-dark:#DB4126;

  --radius:18px;
  --maxw:1180px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--bg);
  color:var(--white);
  font-family:'Rajdhani',sans-serif;
  font-weight:500;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3{
  font-family:'Anton',sans-serif;
  font-weight:400;
  letter-spacing:.5px;
  text-transform:uppercase;
  margin:0 0 .4em;
}
p{margin:0 0 1em; color:var(--muted);}
a{color:inherit; text-decoration:none;}
.container{max-width:var(--maxw); margin:0 auto; padding:0 24px;}

/* background speed lines */
.speedlines{
  position:fixed; inset:0; z-index:0; pointer-events:none;
  background:
    repeating-linear-gradient(115deg, rgba(246,120,36,.05) 0 2px, transparent 2px 140px),
    radial-gradient(circle at 80% -10%, rgba(246,120,36,.18), transparent 45%);
}

/* header */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(10,10,10,.85);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  height:76px;
}
.brand{display:flex; align-items:center; gap:12px;}
.brand-logo{width:44px; height:44px; flex-shrink:0;}
.brand-name{
  font-family:'Anton',sans-serif;
  font-size:18px;
  letter-spacing:1px;
  text-transform:uppercase;
  color:var(--white);
}
.brand-name strong{color:var(--red);}
.brand-name.small{font-size:15px;}
.main-nav{display:flex; gap:28px;}
.main-nav a{
  font-weight:600; font-size:15px; color:var(--muted);
  text-transform:uppercase; letter-spacing:.5px;
  transition:color .15s;
}
.main-nav a:hover{color:var(--white);}

/* hero */
.hero{
  position:relative; z-index:1;
  padding:110px 0 90px;
  text-align:center;
  border-bottom:1px solid var(--line);
}
.eyebrow{
  display:inline-block;
  color:var(--red);
  font-weight:700;
  letter-spacing:3px;
  font-size:13px;
  margin-bottom:18px;
}
.hero h1{
  font-size:clamp(42px, 8vw, 84px);
  line-height:1.02;
  color:var(--white);
}
.hero h1 .accent{color:var(--red);}
.hero .lead{
  max-width:560px; margin:22px auto 36px;
  font-size:19px; color:var(--muted);
}
.hero-cta{display:flex; gap:16px; justify-content:center; flex-wrap:wrap;}

.btn{
  display:inline-block;
  padding:15px 32px;
  border-radius:999px;
  font-weight:700;
  font-size:15px;
  letter-spacing:.5px;
  text-transform:uppercase;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary{
  background:var(--red);
  color:#fff;
  box-shadow:0 8px 24px rgba(212,32,39,.35);
}
.btn-primary:hover{background:var(--red-dark); transform:translateY(-2px);}
.btn-ghost{
  background:transparent;
  color:var(--white);
  border:2px solid var(--line);
}
.btn-ghost:hover{border-color:var(--white); transform:translateY(-2px);}

/* how it works */
.how{padding:90px 0; position:relative; z-index:1; border-bottom:1px solid var(--line);}
.how h2{font-size:34px; text-align:center; margin-bottom:50px;}
.how-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:24px;
}
.how-card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:30px 26px;
}
.how-num{
  font-family:'Anton',sans-serif;
  font-size:15px;
  color:var(--red);
  letter-spacing:2px;
}
.how-card h3{font-size:20px; margin-top:12px;}
.how-card p{margin:0; font-size:15px;}

/* races */
.races{padding:90px 0; position:relative; z-index:1; border-bottom:1px solid var(--line);}
.races-head{text-align:center; margin-bottom:44px;}
.races-head h2{font-size:34px;}
.races-head p{max-width:480px; margin:0 auto;}
.live-dot-label{
  color:var(--red);
}
.races-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(300px, 1fr));
  gap:20px;
}
.race-card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:24px;
  display:flex;
  flex-direction:column;
  gap:14px;
  transition:border-color .15s, transform .15s;
}
.race-card:hover{transform:translateY(-3px);}
.race-card.is-live{border-color:rgba(212,32,39,.5);}
.race-top{display:flex; align-items:flex-start; justify-content:space-between; gap:10px;}
.race-city{font-size:13px; color:var(--muted); text-transform:uppercase; letter-spacing:1px;}
.race-name{font-family:'Anton',sans-serif; font-size:21px; color:var(--white); text-transform:uppercase; margin:2px 0 0;}
.race-date{font-size:14px; color:var(--muted);}

.status{
  display:inline-flex; align-items:center; gap:6px;
  font-size:11px; font-weight:700; letter-spacing:1px;
  text-transform:uppercase;
  padding:6px 10px;
  border-radius:999px;
  white-space:nowrap;
}
.status.live{background:rgba(212,32,39,.15); color:var(--red);}
.status.live .dot{
  width:7px; height:7px; border-radius:50%; background:var(--red);
  animation:pulse 1.4s infinite;
}
.status.upcoming{background:rgba(255,255,255,.06); color:var(--muted);}
.status.finished{background:rgba(255,255,255,.04); color:#6b6b6b;}

@keyframes pulse{
  0%{box-shadow:0 0 0 0 rgba(212,32,39,.55);}
  70%{box-shadow:0 0 0 8px rgba(212,32,39,0);}
  100%{box-shadow:0 0 0 0 rgba(212,32,39,0);}
}

.race-actions{
  margin-top:auto;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.race-action{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  text-align:center;
  padding:12px 18px;
  border-radius:999px;
  font-weight:700;
  font-size:14px;
  letter-spacing:.5px;
  text-transform:uppercase;
  border:2px solid var(--line);
  background:transparent;
  color:var(--muted);
  cursor:not-allowed;
  font-family:inherit;
  transition:background .15s, border-color .15s, transform .15s;
}
.race-card.is-live .race-action{
  border-color:var(--red);
  background:var(--red);
  color:#fff;
  cursor:pointer;
}
.race-card.is-live .race-action:hover{background:var(--red-dark); border-color:var(--red-dark); transform:translateY(-1px);}

/* botão secundário: assistir transmissão no YouTube */
.race-action-secondary{
  --yt-red:#ff0000;
}
.race-card.is-live .race-action-secondary{
  background:transparent;
  border-color:var(--yt-red);
  color:var(--yt-red);
}
.race-card.is-live .race-action-secondary:hover{
  background:var(--yt-red);
  border-color:var(--yt-red);
  color:#fff;
}
.race-action-secondary:disabled,
.race-action:disabled{
  opacity:.6;
}
.yt-icon{width:18px; height:auto; flex-shrink:0;}

.races-note{margin-top:30px; font-size:13px; text-align:center; color:#6b6b6b;}
.races-note code{background:var(--bg-soft); padding:2px 6px; border-radius:4px;}

/* cta band */
.cta-band{padding:80px 0; position:relative; z-index:1;}
.cta-inner{text-align:center;}
.cta-inner h2{font-size:30px;}
.cta-inner p{max-width:460px; margin:0 auto 26px;}

/* footer */
.site-footer{
  border-top:1px solid var(--line);
  padding:26px 0;
  position:relative; z-index:1;
}
.footer-inner{
  display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:10px;
  font-size:13px; color:#6b6b6b;
}

@media (max-width:820px){
  .how-grid{grid-template-columns:1fr;}
  .main-nav{display:none;}
}
