/* CKSL — estilos */
:root {
  --bg: #0b0b0d;
  --surface: #141418;
  --surface-2: #1c1c22;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f4f4f6;
  --muted: #9a9aa6;
  --accent: #e3161d;
  --accent-dark: #a70f14;
  --yt: #ff0033;
  --gold: #ffcc33;
  --silver: #c9d1dc;
  --bronze: #d58a52;
  --radius: 14px;
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; line-height: 1.05; margin: 0 0 .4em; letter-spacing: .01em; text-transform: uppercase; }
h1 { font-size: clamp(2.4rem, 6.5vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.eyebrow { display: inline-block; font: 600 .75rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .7rem; }
.section { padding: clamp(40px, 7vw, 72px) 0 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 10px; font-weight: 600; font-size: .95rem; border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #f52a31; }
.btn-yt { background: var(--yt); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { background: var(--surface-2); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 11, 13, .8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand img { height: 42px; width: auto; }
.nav { display: flex; gap: 2px; align-items: center; }
.nav a { padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: .93rem; color: var(--muted); transition: color .15s, background .15s; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.active { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav a.nav-live { color: #fff; background: var(--yt); margin-left: 6px; display: inline-flex; align-items: center; gap: 7px; }
.nav a.nav-live:hover { background: #ff1f4b; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: transform .2s, opacity .2s; }
@media (max-width: 900px) {
  .burger { display: block; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 8px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .site-header.open .nav { display: flex; }
  .nav a { padding: 12px; font-size: 1rem; }
  .nav a.active { box-shadow: inset 3px 0 0 var(--accent); }
  .nav a.nav-live { margin: 8px 0 0; justify-content: center; }
  .site-header.open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.open .burger span:nth-child(2) { opacity: 0; }
  .site-header.open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- faixa de transmissão ---------- */
.live-strip { background: linear-gradient(90deg, var(--yt), #c4001f); color: #fff; font-weight: 600; font-size: .92rem; }
.live-strip .container { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 9px 0; text-align: center; flex-wrap: wrap; }
.live-strip a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 9vw, 110px) 0 clamp(40px, 6vw, 72px); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("../img/pista.jpg") center 60% / cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(11, 11, 13, .97) 0%, rgba(11, 11, 13, .88) 45%, rgba(11, 11, 13, .55) 100%), linear-gradient(0deg, var(--bg), transparent 40%); }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; }
.hero h1 span { color: var(--accent); }
.hero .lead { font-size: 1.12rem; color: #d6d6dc; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-f4 { width: min(320px, 70%); margin-bottom: 18px; }
.champs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.champ { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(20, 20, 24, .7); font-size: .85rem; }
.champ i { font-style: normal; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; padding: 2px 7px; border-radius: 999px; background: var(--accent); }
.champ.soon i { background: var(--surface-2); color: var(--muted); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- próxima etapa ---------- */
.next-card { background: linear-gradient(160deg, rgba(227, 22, 29, .22), rgba(20, 20, 24, .92) 55%); border-color: rgba(227, 22, 29, .35); }
.next-card h3 { font-size: 1.9rem; margin-bottom: 4px; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 18px 0; }
.countdown div { background: rgba(0, 0, 0, .35); border-radius: 10px; padding: 10px 4px; text-align: center; }
.countdown b { display: block; font: 800 2rem/1 var(--head); }
.countdown span { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

/* ---------- bloco ao vivo ---------- */
.live { position: relative; border-radius: 20px; overflow: hidden; background: radial-gradient(700px 360px at 90% 0%, rgba(255, 0, 51, .35), transparent 60%), var(--surface); border: 1px solid rgba(255, 0, 51, .35); padding: clamp(22px, 4vw, 40px); display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: center; }
.live .badge { display: inline-flex; align-items: center; gap: 8px; background: var(--yt); color: #fff; font: 700 .75rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; padding: 7px 11px; border-radius: 6px; margin-bottom: 14px; }
.live h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.live ul { margin: 0 0 20px; padding-left: 18px; color: #d6d6dc; }
.live li { margin-bottom: 4px; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 860px) { .live { grid-template-columns: 1fr; } }

/* ---------- líderes ---------- */
.leaders { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.leader { position: relative; overflow: hidden; }
.leader::after { content: ""; position: absolute; right: -18px; top: -18px; width: 90px; height: 90px; opacity: .07; background: repeating-conic-gradient(#fff 0 25%, transparent 0 50%) 0 0 / 22px 22px; }
.leader .cat { font: 600 .72rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.leader .name { font: 800 1.6rem/1.05 var(--head); text-transform: uppercase; margin: 10px 0 4px; }
.leader .pts { font: 700 2.4rem/1 var(--head); }
.leader .pts small { font-size: .9rem; color: var(--muted); margin-left: 4px; }
.leader .gap { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.kart { display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 6px; border-radius: 5px; background: #fff; color: #111; font: 800 .95rem/1 var(--head); }

/* ---------- parceiros ---------- */
.partners-tier { margin-bottom: 26px; }
.partners-tier h3 { font-size: 1rem; color: var(--muted); letter-spacing: .12em; }
.partners { display: grid; gap: 14px; }
.partners.master { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.partners.ouro { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.partners.apoio { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.partner { display: grid; place-items: center; background: #fff; border-radius: 12px; padding: 18px; min-height: 110px; transition: transform .15s; }
.partners.master .partner { min-height: 150px; }
.partner:hover { transform: translateY(-2px); }
.partner img { max-height: 90px; width: auto; object-fit: contain; }
.partner.empty { background: transparent; border: 2px dashed rgba(255, 255, 255, .16); color: var(--muted); text-align: center; font-size: .9rem; }
.partner.empty b { display: block; color: var(--text); font: 700 1.1rem/1.1 var(--head); text-transform: uppercase; }
.cta-partner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; background: linear-gradient(120deg, var(--accent-dark), var(--accent)); border-radius: var(--radius); padding: 22px 24px; }
.cta-partner h3 { margin: 0 0 4px; font-size: 1.6rem; }
.cta-partner p { margin: 0; color: #ffe1e2; }
.cta-partner .btn { background: #fff; color: #111; }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.tier h3 { font-size: 1.6rem; }
.tier ul { padding-left: 18px; margin: 0; color: #d6d6dc; }
.tier.master { border-color: rgba(255, 204, 51, .45); }
.tier .eyebrow { color: var(--gold); }

/* ---------- tabelas ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tab { padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: 600 .9rem/1 var(--body); cursor: pointer; }
.tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.tab:disabled { opacity: .45; cursor: not-allowed; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: 11px 10px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font: 600 .72rem/1 var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--surface-2); }
td.left, th.left { text-align: left; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255, 255, 255, .025); }
.pos { font: 800 1.15rem/1 var(--head); width: 44px; }
.p1 .pos { color: var(--gold); } .p2 .pos { color: var(--silver); } .p3 .pos { color: var(--bronze); }
.pilot { font-weight: 600; }
.total { font: 800 1.25rem/1 var(--head); color: #fff; }
.cell-nc, .cell-dc { color: #5f5f6b; font-size: .78rem; font-weight: 600; }
.cell-dc { color: #ff6b6b; }
.cell-win { color: var(--gold); font-weight: 700; }
.bonus { display: inline-block; font-size: .65rem; font-weight: 700; color: #111; background: var(--gold); border-radius: 4px; padding: 1px 4px; margin-left: 3px; vertical-align: 2px; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); margin-top: 12px; }
.note { font-size: .88rem; color: var(--muted); border-left: 3px solid var(--accent); padding: 4px 0 4px 12px; margin: 0 0 18px; }

/* ---------- calendário ---------- */
.cal-group { margin-bottom: 30px; }
.cal-list { display: grid; gap: 10px; }
.cal-item { display: grid; grid-template-columns: 86px 1fr auto; gap: 16px; align-items: center; }
.cal-date { text-align: center; background: var(--surface-2); border-radius: 10px; padding: 10px 6px; }
.cal-date b { display: block; font: 800 2rem/1 var(--head); }
.cal-date span { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.cal-item h3 { margin: 0 0 2px; }
.status { font: 600 .72rem/1 var(--body); text-transform: uppercase; letter-spacing: .08em; padding: 6px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.status.proxima { background: var(--accent); color: #fff; }
.status.realizada { background: rgba(48, 209, 88, .15); color: #4ade80; }
.cal-item.is-next { border-color: rgba(227, 22, 29, .5); }
@media (max-width: 560px) { .cal-item { grid-template-columns: 70px 1fr; } .cal-item .status { grid-column: 2; justify-self: start; } }

/* ---------- página ---------- */
.page-head { padding: clamp(36px, 6vw, 64px) 0 24px; }
.page-head p { color: var(--muted); max-width: 680px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- rodapé ---------- */
.site-footer { margin-top: 72px; border-top: 1px solid var(--line); background: #08080a; padding: 36px 0 28px; font-size: .9rem; color: var(--muted); }
.footer-row { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: start; }
.footer-row img { height: 52px; width: auto; }
.footer-nav { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-nav a:hover, .footer-links a:hover { color: var(--text); }
.footer-links { display: grid; gap: 6px; text-align: right; }
.copy { margin-top: 24px; font-size: .8rem; }
@media (max-width: 760px) { .footer-row { grid-template-columns: 1fr; } .footer-links { text-align: left; } }

/* evita estouro horizontal em telas estreitas */
.hero-grid > *, .live > *, .grid-2 > *, .cal-item > * { min-width: 0; }
th.etapa-head { color: var(--text); border-left: 1px solid var(--line); border-right: 1px solid var(--line); font-size: .7rem; }
.cell-desc { color: #6b6b78; text-decoration: line-through; text-decoration-color: var(--accent); }
