/* ==========================================================================
   Baba FC — Design tokens
   Paleta oficial extraída do app (Configuracoes.cangalhas*)
   ========================================================================== */
:root {
  --primary: #042732;
  --primary-light: #0b3846;
  --primary-lighter: #114a5b;
  --secondary: #de5231;
  --secondary-light: #ff7a52;
  --tertiary: #005165;
  --bg: #03191f;
  --bg-alt: #06232b;
  --card: #0a2e3a;
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #f4f8f9;
  --text-muted: rgba(244, 248, 249, 0.64);
  --text-faint: rgba(244, 248, 249, 0.4);
  --green: #2ecc71;
  --red: #ff5b52;
  --gold: #ffc94d;
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1180px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Metropolis", "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary-light);
  background: rgba(222, 82, 49, 0.12);
  border: 1px solid rgba(222, 82, 49, 0.28);
  padding: 7px 14px;
  border-radius: 999px;
}

.eyebrow.alt {
  color: #7fd8ea;
  background: rgba(0, 81, 101, 0.35);
  border-color: rgba(0, 129, 158, 0.4);
}

h2.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  margin: 16px 0 14px;
  letter-spacing: -0.01em;
}

.section-lead {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 640px;
}

.section-head {
  margin-bottom: 48px;
}

.section-head.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-head.center .section-lead {
  margin-left: auto;
  margin-right: auto;
}

section {
  position: relative;
  padding: 100px 0;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary-light), var(--secondary));
  color: #fff;
  box-shadow: 0 14px 30px -10px rgba(222, 82, 49, 0.6);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px -8px rgba(222, 82, 49, 0.75);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
}

.btn-block {
  width: 100%;
}

/* ---------------- Header ---------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: padding 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.scrolled {
  padding: 12px 0;
  background: rgba(3, 25, 31, 0.85);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
}

.brand img {
  height: 34px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  position: relative;
  padding: 6px 2px;
  transition: color 0.2s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--secondary);
  transition: right 0.25s var(--ease);
  border-radius: 2px;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  right: 0;
}

.nav-links a.active {
  color: var(--text);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ---------------- Hero ---------------- */
.hero {
  padding: 190px 0 120px;
  position: relative;
  background: radial-gradient(ellipse 900px 600px at 80% -10%, rgba(0, 129, 158, 0.35), transparent 60%),
    radial-gradient(ellipse 700px 500px at 10% 10%, rgba(222, 82, 49, 0.2), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-copy .eyebrow {
  margin-bottom: 22px;
}

.hero-copy h1 {
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-copy h1 span {
  color: var(--secondary-light);
}

.hero-copy p.subtitle {
  margin-top: 22px;
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.hero-chips {
  display: flex;
  gap: 14px;
  margin-top: 46px;
  flex-wrap: wrap;
}

.hero-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.hero-chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 460px;
}

.hero-visual .glow {
  position: absolute;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(222, 82, 49, 0.35), transparent 70%);
  filter: blur(10px);
  z-index: 0;
}

.hero-visual .logo-plate {
  position: relative;
  z-index: 2;
  background: linear-gradient(160deg, var(--card), var(--primary));
  border: 1px solid var(--card-border);
  border-radius: 28px;
  padding: 42px;
  box-shadow: var(--shadow);
  animation: floatY 6s ease-in-out infinite;
}

.hero-visual .logo-plate img {
  width: 220px;
}

.floaty {
  position: absolute;
  opacity: 0.9;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.4));
}

.floaty.ball {
  width: 70px;
  top: 6%;
  right: 4%;
  animation: floatY 5s ease-in-out infinite, spin 14s linear infinite;
}

.floaty.badge {
  width: 84px;
  bottom: 4%;
  left: -4%;
  animation: floatY 7s ease-in-out infinite reverse;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  text-transform: uppercase;
}

.scroll-cue .line {
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--secondary), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0.3); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0.3); opacity: 0.4; }
}

/* ---------------- Reveal on scroll ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.in > * {
  transition-delay: calc(var(--i, 0) * 90ms);
}

/* ---------------- About ---------------- */
.about {
  background: var(--bg-alt);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 60px;
  align-items: center;
}

.about-art {
  position: relative;
  border-radius: var(--radius);
  padding: 46px;
  background: linear-gradient(160deg, var(--primary-light), var(--primary));
  border: 1px solid var(--card-border);
  text-align: center;
  overflow: hidden;
}

.about-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 26px);
}

.about-art img {
  position: relative;
  z-index: 1;
  max-width: 240px;
  margin: 0 auto;
}

.about-list {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.about-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.about-item .ico {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(222, 82, 49, 0.14);
  border: 1px solid rgba(222, 82, 49, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}

.about-item h4 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
}

.about-item p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------------- Steps / How it works ---------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.step-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 30px 24px;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

.step-card:hover {
  transform: translateY(-8px);
  border-color: rgba(222, 82, 49, 0.4);
}

.step-card .step-num {
  font-size: 13px;
  font-weight: 800;
  color: var(--secondary-light);
  letter-spacing: 0.08em;
}

.step-card .step-emoji {
  font-size: 34px;
  margin: 14px 0 16px;
}

.step-card h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.step-connector {
  position: absolute;
  top: 46px;
  right: -22px;
  color: var(--text-faint);
  font-size: 20px;
  display: none;
}

/* ---------------- Formation / court ---------------- */
.formation-section {
  background: var(--bg-alt);
}

.formation-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: center;
}

.court {
  position: relative;
  aspect-ratio: 3 / 4;
  max-width: 380px;
  margin: 0 auto;
  border-radius: 20px;
  background: linear-gradient(180deg, #0d5c3d, #0a4a31);
  border: 3px solid rgba(255, 255, 255, 0.25);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.court::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 40px, transparent 40px 80px);
}

.court::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 120px;
  height: 120px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.court .midline {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
}

.court .goal-area {
  position: absolute;
  left: 50%;
  width: 150px;
  height: 60px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: none;
  border-radius: 0 0 60px 60px;
  transform: translateX(-50%);
  bottom: -2px;
}

.player-dot {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 2;
}

.player-dot .puck {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--secondary-light), var(--secondary));
  border: 2px solid #fff;
  box-shadow: 0 8px 16px -6px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
}

.player-dot.gk .puck {
  background: linear-gradient(160deg, var(--gold), #e8a300);
}

.player-dot .puck-label {
  font-size: 10.5px;
  font-weight: 800;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.player-dot.captain .puck::after {
  content: "C";
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  background: var(--gold);
  color: #05202a;
  border-radius: 50%;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-alt);
}

.player-dot.captain .puck {
  position: relative;
}

.formation-legend {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 18px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
}

.formation-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.formation-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.formation-copy .rule-mini {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-top: 1px solid var(--card-border);
}

.formation-copy .rule-mini:first-of-type {
  border-top: none;
}

.formation-copy .rule-mini .tag {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(0, 81, 101, 0.4);
  color: #7fd8ea;
  white-space: nowrap;
}

.formation-copy .rule-mini p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

.formation-copy .rule-mini strong {
  color: var(--text);
}

/* ---------------- Market phone mockup ---------------- */
.market-section {
  overflow: hidden;
}

.market-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.phone {
  max-width: 300px;
  margin: 0 auto;
  border-radius: 34px;
  border: 8px solid #0c1a1f;
  background: var(--primary);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.phone .notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 18px;
  background: #0c1a1f;
  border-radius: 0 0 12px 12px;
  z-index: 5;
}

.phone-bar {
  background: var(--primary);
  padding: 22px 16px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.phone-bar .lbl {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 800;
  letter-spacing: 0.06em;
}

.phone-bar .val {
  font-size: 15px;
  font-weight: 800;
  margin-top: 2px;
}

.phone-body {
  background: var(--bg-alt);
  padding: 14px;
  display: grid;
  gap: 10px;
}

.mock-card {
  background: var(--primary);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mock-card .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--tertiary), var(--primary-lighter));
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.mock-card .info {
  flex: 1;
  min-width: 0;
}

.mock-card .info .name {
  font-size: 12.5px;
  font-weight: 800;
}

.mock-card .info .pos {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 1px;
}

.mock-card .price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 6px 8px;
}

.mock-card .price {
  color: var(--secondary-light);
  font-weight: 800;
  font-size: 13px;
}

.mock-card .valor-up {
  color: #58e08a;
  font-size: 10.5px;
  font-weight: 800;
  background: rgba(46, 204, 113, 0.15);
  padding: 2px 6px;
  border-radius: 6px;
}

.mock-card .valor-down {
  color: #ff8a80;
  font-size: 10.5px;
  font-weight: 800;
  background: rgba(255, 91, 82, 0.15);
  padding: 2px 6px;
  border-radius: 6px;
}

.mock-btn {
  margin-top: 4px;
  align-self: center;
  background: var(--secondary);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 8px;
  height: fit-content;
  white-space: nowrap;
}

.market-copy .rule-list {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.rule-list li {
  display: flex;
  gap: 12px;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

.rule-list li .check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(46, 204, 113, 0.16);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-top: 1px;
}

.rule-list strong {
  color: var(--text);
}

/* ---------------- Scoring table ---------------- */
.scoring-section {
  background: var(--bg-alt);
}

.scoring-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.score-table {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--card-border);
  font-size: 14.5px;
}

.score-row:last-child {
  border-bottom: none;
}

.score-row .crit {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.score-row .crit .emoji {
  font-size: 18px;
}

.score-row .pts {
  font-weight: 800;
  font-size: 15px;
  padding: 4px 12px;
  border-radius: 999px;
}

.score-row .pts.pos {
  background: rgba(46, 204, 113, 0.14);
  color: #58e08a;
}

.score-row .pts.neg {
  background: rgba(255, 91, 82, 0.14);
  color: #ff8a80;
}

.multiplier-cards {
  display: grid;
  gap: 16px;
}

.mult-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.mult-card .pill {
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(150deg, var(--secondary-light), var(--secondary));
  border-radius: 12px;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mult-card h4 {
  font-size: 15.5px;
  font-weight: 800;
  margin-bottom: 6px;
}

.mult-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  font-weight: 800;
  font-size: 14px;
  color: var(--secondary-light);
}

.link-more .arrow {
  transition: transform 0.25s var(--ease);
}

.link-more:hover .arrow {
  transform: translateX(4px);
}

/* ---------------- Leagues / ranking ---------------- */
.league-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.ranking-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.ranking-head {
  background: linear-gradient(120deg, var(--primary-light), var(--tertiary));
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ranking-head span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
}

.ranking-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--card-border);
}

.ranking-row:last-child {
  border-bottom: none;
}

.ranking-row .pos {
  width: 26px;
  font-weight: 800;
  color: var(--text-faint);
  font-size: 13px;
}

.ranking-row:nth-child(1) .pos,
.ranking-row.top .pos {
  color: var(--gold);
}

.ranking-row .shield {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--tertiary);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.ranking-row .team {
  flex: 1;
  font-size: 13.5px;
  font-weight: 700;
}

.ranking-row .team small {
  display: block;
  font-size: 10.5px;
  color: var(--text-faint);
  font-weight: 600;
  margin-top: 1px;
}

.ranking-row .pts {
  font-weight: 800;
  font-size: 14px;
  color: var(--secondary-light);
}

.ranking-note {
  padding: 14px 22px;
  font-size: 11px;
  color: var(--text-faint);
  background: rgba(0, 0, 0, 0.15);
}

/* ---------------- Platforms ---------------- */
.platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.platform-card {
  background: linear-gradient(165deg, var(--card), var(--primary));
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 34px;
  position: relative;
  overflow: hidden;
}

.platform-card .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.platform-card.app .tag {
  background: rgba(222, 82, 49, 0.16);
  color: var(--secondary-light);
}

.platform-card.admin .tag {
  background: rgba(0, 81, 101, 0.35);
  color: #7fd8ea;
}

.platform-card h3 {
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 12px;
}

.platform-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 18px;
}

.platform-card ul {
  display: grid;
  gap: 10px;
}

.platform-card ul li {
  font-size: 13.5px;
  color: var(--text-muted);
  display: flex;
  gap: 10px;
}

.platform-card ul li::before {
  content: "›";
  color: var(--secondary-light);
  font-weight: 800;
}

/* ---------------- Final CTA ---------------- */
.final-cta {
  text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--tertiary) 100%);
  border-radius: 28px;
  margin: 0 24px;
  padding: 70px 30px;
  max-width: calc(var(--container) - 48px);
  margin-inline: auto;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(222, 82, 49, 0.35), transparent 55%);
}

.final-cta h2 {
  position: relative;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 14px;
}

.final-cta p {
  position: relative;
  color: rgba(255, 255, 255, 0.75);
  max-width: 520px;
  margin: 0 auto 30px;
  font-size: 16px;
}

.final-cta .hero-actions {
  position: relative;
  justify-content: center;
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: #021318;
  padding: 60px 0 30px;
  border-top: 1px solid var(--card-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--card-border);
}

.footer-brand .brand {
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 340px;
}

.footer-col h5 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}

.footer-col ul {
  display: grid;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--secondary-light);
}

.footer-partners {
  padding: 30px 0 0;
  text-align: center;
}

.footer-partners p {
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 18px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-partners img {
  max-width: 460px;
  margin: 0 auto;
  opacity: 0.9;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  font-size: 12.5px;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------------- Rules page ---------------- */
.page-hero {
  padding: 170px 0 70px;
  background: radial-gradient(ellipse 800px 500px at 90% -10%, rgba(0, 129, 158, 0.3), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.page-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  margin: 16px 0 12px;
}

.page-hero p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.6;
}

.rules-tabs {
  position: sticky;
  top: 72px;
  z-index: 100;
  background: rgba(3, 25, 31, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  border-top: 1px solid var(--card-border);
}

.rules-tabs .container {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-top: 12px;
  padding-bottom: 12px;
  scrollbar-width: none;
}

.rules-tabs .container::-webkit-scrollbar {
  display: none;
}

.rules-tab {
  flex-shrink: 0;
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--text-muted);
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.rules-tab:hover {
  color: var(--text);
}

.rules-tab.active {
  background: var(--secondary);
  color: #fff;
}

.rule-block {
  padding: 80px 0;
  border-bottom: 1px solid var(--card-border);
}

.rule-block:last-child {
  border-bottom: none;
}

.rule-block-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 30px;
}

.rule-block-head .num {
  font-size: 15px;
  font-weight: 800;
  color: var(--secondary-light);
  background: rgba(222, 82, 49, 0.12);
  border-radius: 999px;
  padding: 4px 12px;
}

.rule-block-head h2 {
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 800;
}

.info-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 26px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-box {
  text-align: center;
  padding: 24px 16px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
}

.stat-box .num {
  font-size: 26px;
  font-weight: 800;
  color: var(--secondary-light);
}

.stat-box .lbl {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 700;
}

.formula-card {
  background: linear-gradient(160deg, var(--primary-light), var(--primary));
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 26px;
  margin-top: 20px;
}

.formula-card .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: #7fd8ea;
  background: rgba(0, 81, 101, 0.4);
  padding: 5px 10px;
  border-radius: 8px;
  margin-bottom: 14px;
}

.formula-card code {
  display: block;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 14.5px;
  background: rgba(0, 0, 0, 0.28);
  padding: 14px 16px;
  border-radius: 10px;
  color: #ffd7a8;
  line-height: 1.7;
  overflow-x: auto;
  white-space: pre-wrap;
}

.formula-card p.note {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 14px;
  line-height: 1.6;
}

.example-box {
  border-left: 3px solid var(--secondary);
  padding: 14px 18px;
  background: rgba(222, 82, 49, 0.06);
  border-radius: 0 12px 12px 0;
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.7;
}

.example-box strong {
  color: var(--text);
}

.bonus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.bonus-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
}

.bonus-card .amt {
  font-size: 22px;
  font-weight: 800;
  color: var(--green);
}

.bonus-card .desc {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.5;
}

.faq-item {
  border-bottom: 1px solid var(--card-border);
  padding: 20px 0;
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--secondary-light);
  transition: transform 0.25s var(--ease);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

.timeline {
  display: grid;
  gap: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-left: 2px solid var(--card-border);
  margin-left: 10px;
  padding-left: 30px;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 24px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--secondary);
  border: 3px solid var(--bg);
}

.timeline-item .status {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline-item h4 {
  font-size: 15.5px;
  font-weight: 800;
  margin-bottom: 6px;
}

.timeline-item p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .formation-grid,
  .market-grid,
  .scoring-grid,
  .league-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    min-height: 320px;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .platform-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .three-col,
  .bonus-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-links,
  .header-cta .btn-ghost {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  section {
    padding: 70px 0;
  }

  .hero {
    padding: 150px 0 80px;
  }

  .final-cta {
    margin: 0 16px;
    padding: 46px 22px;
  }
}

@media (max-width: 620px) {
  .timeline-item {
    grid-template-columns: 1fr;
  }
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(3, 20, 25, 0.98);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease);
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav a {
  font-size: 22px;
  font-weight: 800;
}

.mobile-nav .close-nav {
  position: absolute;
  top: 26px;
  right: 26px;
  font-size: 28px;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
}
