/* ===========================
   RESET & BASE
   =========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary:    #07091a;
  --bg-secondary:  #0b0f24;
  --bg-card:       #0f1530;
  --bg-card-hover: #141c3a;
  --border:        rgba(255,255,255,0.07);
  --border-accent: rgba(0,220,130,0.35);
  --green:         #00dc82;
  --green-dim:     #00b868;
  --gold:          #f5c518;
  --red:           #ff4757;
  --blue-mid:      #1e40af;
  --text-primary:  #f1f5f9;
  --text-secondary:#94a3b8;
  --text-muted:    #475569;
  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     20px;
  --shadow-card:   0 4px 32px rgba(0,0,0,0.5);
  --shadow-glow:   0 0 24px rgba(0,220,130,0.18);
  --transition:    0.3s ease;
}

html { scroll-behavior: smooth; }

/* Fixed full-screen background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    /* green pulse — bottom left */
    radial-gradient(ellipse 55% 45% at 5% 95%,  rgba(0, 220, 130, 0.07) 0%, transparent 65%),
    /* blue nebula — top right */
    radial-gradient(ellipse 70% 60% at 95% 5%,  rgba(30, 80, 220, 0.13) 0%, transparent 60%),
    /* violet accent — center right */
    radial-gradient(ellipse 40% 50% at 90% 55%,  rgba(120, 40, 200, 0.09) 0%, transparent 55%),
    /* cyan whisper — top center */
    radial-gradient(ellipse 50% 35% at 50% 0%,   rgba(0, 160, 220, 0.07) 0%, transparent 60%),
    /* warm gold — mid left */
    radial-gradient(ellipse 30% 30% at 0% 50%,   rgba(200, 140, 0, 0.05) 0%, transparent 55%),
    /* deep base */
    linear-gradient(160deg, #04060f 0%, #070b1e 25%, #060d1c 50%, #05081a 75%, #04060f 100%);
  background-attachment: fixed;
}

/* Subtle noise texture over the fixed bg */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 160px 160px;
  pointer-events: none;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: transparent;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Make all section backgrounds semi-transparent so the fixed bg shows through */
.races-section       { background: rgba(11, 15, 36, 0.72) !important; }
.why-section         { background: rgba(11, 15, 36, 0.65) !important; }
.faq-section         { background: rgba(11, 15, 36, 0.65) !important; }
.about-section       { background: transparent !important; }
.how-section         { background: transparent !important; }
.license-section     { background: rgba(5, 8, 26, 0.55) !important; }
.footer              { background: rgba(3, 4, 10, 0.88) !important; }
.cta-band            { background: rgba(8, 18, 40, 0.7) !important; }

/* Hero bg becomes a tinted overlay only */
.hero-bg {
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(0, 80, 200, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(0, 220, 130, 0.06) 0%, transparent 60%),
    linear-gradient(180deg, rgba(7,9,26,0.6) 0%, rgba(9,17,43,0.5) 50%, rgba(7,9,26,0.6) 100%);
}

/* Ticker, divider stay opaque */
.ticker  { background: rgba(0,0,0,0.55) !important; }
.divider { background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07), transparent); }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ===========================
   TYPOGRAPHY
   =========================== */
.display-title {
  font-family: 'Bebas Neue', 'Inter', sans-serif;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.75rem;
  display: block;
}
.lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ===========================
   LAYOUT HELPERS
   =========================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.text-center { text-align: center; }

/* ===========================
   NAVIGATION
   =========================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 24px;
  height: 70px;
  display: flex; align-items: center;
  background: rgba(7,9,26,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.nav-inner {
  width: 100%; max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1rem; letter-spacing: 0.04em;
}
.nav-logo-icon {
  width: 36px; height: 36px;
  background: var(--green);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.nav-logo span { color: var(--green); }
.nav-links {
  display: flex; align-items: center; gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 0.88rem; font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a.active { color: var(--green); }
.nav-cta {
  display: flex; align-items: center; gap: 12px;
}
.nav-badge {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  padding: 4px 10px; border-radius: 20px;
  background: rgba(0,220,130,0.15);
  border: 1px solid rgba(0,220,130,0.3);
  color: var(--green);
}
.nav-burger {
  display: none;
  flex-direction: column; gap: 5px; cursor: pointer;
}
.nav-burger span {
  width: 24px; height: 2px;
  background: var(--text-secondary); border-radius: 2px;
  transition: var(--transition);
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-weight: 700; font-size: 0.9rem;
  border: none; cursor: pointer; border-radius: var(--radius-sm);
  padding: 14px 28px; transition: all 0.25s ease;
  letter-spacing: 0.02em; white-space: nowrap;
}
.btn-primary {
  background: var(--green);
  color: #04060f;
  box-shadow: 0 0 20px rgba(0,220,130,0.35);
}
.btn-primary:hover {
  background: #00f08e;
  box-shadow: 0 0 32px rgba(0,220,130,0.55);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid rgba(255,255,255,0.2);
}
.btn-outline:hover {
  border-color: var(--green);
  color: var(--green);
  background: rgba(0,220,130,0.06);
  transform: translateY(-1px);
}
.btn-gold {
  background: var(--gold);
  color: #04060f;
  box-shadow: 0 0 20px rgba(245,197,24,0.3);
}
.btn-gold:hover {
  box-shadow: 0 0 32px rgba(245,197,24,0.5);
  transform: translateY(-1px);
}
.btn-sm { padding: 9px 18px; font-size: 0.8rem; }
.btn-lg { padding: 18px 40px; font-size: 1rem; }

/* ===========================
   BADGE / CHIP
   =========================== */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 20px;
}
.badge-green { background: rgba(0,220,130,0.12); color: var(--green); border: 1px solid rgba(0,220,130,0.25); }
.badge-gold  { background: rgba(245,197,24,0.12); color: var(--gold);  border: 1px solid rgba(245,197,24,0.25); }
.badge-red   { background: rgba(255,71,87,0.12);  color: var(--red);   border: 1px solid rgba(255,71,87,0.25); }
.badge-blue  { background: rgba(99,179,237,0.12); color: #63b3ed;      border: 1px solid rgba(99,179,237,0.25); }
.badge-dot::before {
  content: ''; display: block;
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

/* ===========================
   CARDS
   =========================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: linear-gradient(135deg, rgba(0,220,130,0.04) 0%, transparent 60%);
  transition: opacity 0.3s ease;
}
.card:hover { border-color: rgba(0,220,130,0.25); box-shadow: var(--shadow-glow); }
.card:hover::before { opacity: 1; }

/* ===========================
   DIVIDER
   =========================== */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  margin: 0;
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
  min-height: 100vh;
  padding: 120px 24px 80px;
  display: flex; align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(0,80,200,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(0,220,130,0.08) 0%, transparent 60%),
    linear-gradient(180deg, #07091a 0%, #09112b 50%, #07091a 100%);
}
.hero-grid-lines {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 24px;
}
.hero-title { margin-bottom: 20px; }
.hero-title em { font-style: normal; color: var(--green); }
.hero-sub { max-width: 480px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats {
  display: flex; gap: 32px; flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-stat-num {
  font-size: 1.8rem; font-weight: 800;
  color: var(--text-primary); line-height: 1;
}
.hero-stat-num span { color: var(--green); }
.hero-stat-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; letter-spacing: 0.05em; }

/* --- HERO RIGHT: Odds Panel --- */
.hero-visual {
  position: relative;
}
.odds-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}
.odds-panel-header {
  padding: 16px 20px;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.odds-panel-title { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.odds-panel-body { padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.odds-row {
  padding: 14px 12px;
  border-radius: 10px;
  display: flex; align-items: center; gap: 12px;
  cursor: pointer; transition: background 0.2s;
}
.odds-row:hover { background: rgba(255,255,255,0.04); }
.odds-row.featured { background: rgba(0,220,130,0.06); border: 1px solid rgba(0,220,130,0.15); }
.odds-num { font-size: 0.78rem; font-weight: 700; color: var(--text-muted); width: 22px; }
.odds-horse { flex: 1; }
.odds-horse-name { font-size: 0.88rem; font-weight: 700; }
.odds-horse-jockey { font-size: 0.72rem; color: var(--text-muted); }
.odds-btn {
  background: rgba(0,220,130,0.15); color: var(--green);
  border: 1px solid rgba(0,220,130,0.3);
  border-radius: 6px; padding: 5px 12px;
  font-size: 0.82rem; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
}
.odds-btn:hover { background: rgba(0,220,130,0.28); }
.odds-panel-footer {
  padding: 14px 20px;
  background: rgba(0,0,0,0.2);
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.odds-panel-footer-text { font-size: 0.75rem; color: var(--text-muted); }

/* Mini stat strip above odds panel */
.hero-stat-strip {
  display: flex; gap: 8px; margin-bottom: 12px;
}
.stat-chip {
  flex: 1; background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 14px;
}
.stat-chip-val { font-size: 1.1rem; font-weight: 800; color: var(--green); }
.stat-chip-label { font-size: 0.68rem; color: var(--text-muted); margin-top: 2px; }

/* ===========================
   TICKER BAR
   =========================== */
.ticker {
  background: rgba(0,0,0,0.4);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0;
  overflow: hidden;
  height: 40px;
  display: flex; align-items: center;
}
.ticker-label {
  flex-shrink: 0;
  background: var(--green);
  color: #04060f;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0 16px; height: 100%;
  display: flex; align-items: center;
}
.ticker-track {
  display: flex; align-items: center;
  animation: ticker-scroll 28s linear infinite;
  white-space: nowrap;
}
.ticker-item {
  font-size: 0.78rem; color: var(--text-secondary);
  padding: 0 28px;
  display: flex; align-items: center; gap: 8px;
}
.ticker-item::after { content: '|'; opacity: 0.2; }
.ticker-sep { color: var(--green); font-weight: 700; }
@keyframes ticker-scroll { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ===========================
   RACE CARDS
   =========================== */
.races-section { background: var(--bg-secondary); }
.race-filter-bar {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 32px; flex-wrap: wrap;
}
.filter-btn {
  font-size: 0.78rem; font-weight: 600;
  padding: 8px 18px; border-radius: 6px;
  cursor: pointer; transition: var(--transition);
  border: 1px solid var(--border);
  background: transparent; color: var(--text-secondary);
  font-family: inherit;
}
.filter-btn.active, .filter-btn:hover {
  background: rgba(0,220,130,0.1);
  border-color: rgba(0,220,130,0.35);
  color: var(--green);
}
.race-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.race-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}
.race-card:hover {
  border-color: rgba(0,220,130,0.3);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 20px rgba(0,220,130,0.1);
  transform: translateY(-3px);
}
.race-card-top {
  padding: 18px 18px 0;
  display: flex; justify-content: space-between; align-items: flex-start;
}
.race-number {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted);
}
.race-card-body { padding: 14px 18px; }
.race-name { font-size: 1rem; font-weight: 800; margin-bottom: 4px; }
.race-track { font-size: 0.78rem; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.race-meta {
  display: flex; gap: 16px; margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--border);
}
.race-meta-item { flex: 1; }
.race-meta-val { font-size: 0.9rem; font-weight: 700; }
.race-meta-label { font-size: 0.68rem; color: var(--text-muted); }
.race-card-footer {
  padding: 14px 18px;
  background: rgba(0,0,0,0.2);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.race-timer { font-size: 0.8rem; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; }
.race-timer-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red); animation: pulse 1.5s infinite;
}

/* ===========================
   WAGER TYPES
   =========================== */
.wager-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 40px; }
.wager-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 16px; text-align: center;
  cursor: pointer; transition: all 0.25s ease;
  position: relative;
}
.wager-card:hover, .wager-card.selected {
  border-color: var(--green);
  background: rgba(0,220,130,0.07);
  box-shadow: 0 0 20px rgba(0,220,130,0.15);
}
.wager-card.selected::after {
  content: '✓';
  position: absolute; top: 8px; right: 10px;
  font-size: 0.75rem; color: var(--green); font-weight: 700;
}
.wager-name { font-size: 0.95rem; font-weight: 800; margin-bottom: 4px; }
.wager-desc { font-size: 0.7rem; color: var(--text-muted); line-height: 1.4; }
.wager-payout { font-size: 0.72rem; color: var(--green); font-weight: 700; margin-top: 8px; }

/* Wager panel */
.wager-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  align-items: start;
}
.wager-description-block h4 { font-size: 1.1rem; font-weight: 800; margin-bottom: 10px; }
.wager-description-block p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; }
.wager-table { border-collapse: collapse; width: 100%; }
.wager-table th, .wager-table td {
  padding: 10px 14px; font-size: 0.8rem; text-align: left;
  border-bottom: 1px solid var(--border);
}
.wager-table th { color: var(--text-muted); font-weight: 600; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }
.wager-table td:last-child { color: var(--green); font-weight: 700; }

/* ===========================
   LICENSE BLOCK
   =========================== */
.license-section {
  background: linear-gradient(135deg, #07091a 0%, #0b1233 50%, #07091a 100%);
  position: relative; overflow: hidden;
}
.license-glow {
  position: absolute; top: -100px; right: -100px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,220,130,0.06) 0%, transparent 70%);
}
.license-grid {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: start;
}
.license-badge-block {
  background: var(--bg-card);
  border: 1px solid rgba(0,220,130,0.2);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  box-shadow: 0 0 40px rgba(0,220,130,0.07);
}
.license-seal {
  width: 90px; height: 90px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,220,130,0.2), rgba(0,130,80,0.1));
  border: 2px solid rgba(0,220,130,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 20px;
}
.license-number {
  font-size: 2.2rem; font-weight: 900; letter-spacing: 0.06em;
  color: var(--green); margin-bottom: 6px;
}
.license-type-label { font-size: 0.78rem; color: var(--text-muted); }
.license-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.license-info-card {
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.lic-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 4px; }
.lic-value { font-size: 0.88rem; font-weight: 700; }
.lic-value.green { color: var(--green); }
.lic-value.gold { color: var(--gold); }

.license-detail-list { display: flex; flex-direction: column; gap: 20px; }
.lic-row {
  display: flex; align-items: flex-start; gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.lic-row:last-child { border-bottom: none; padding-bottom: 0; }
.lic-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 10px;
  background: rgba(0,220,130,0.1);
  border: 1px solid rgba(0,220,130,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.lic-content-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 3px; }
.lic-content-val { font-size: 0.95rem; font-weight: 700; }

/* ===========================
   ABOUT SECTION
   =========================== */
.about-section { background: var(--bg-primary); }
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.about-content p { color: var(--text-secondary); margin-bottom: 16px; font-size: 0.95rem; }
.about-pillars { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.pillar {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.3s;
}
.pillar:hover { border-color: rgba(0,220,130,0.25); }
.pillar-icon { font-size: 1.3rem; margin-top: 2px; }
.pillar h5 { font-size: 0.88rem; font-weight: 700; margin-bottom: 3px; }
.pillar p { font-size: 0.78rem; color: var(--text-muted); margin: 0; }
.about-visual {
  position: relative;
}
.about-img-card {
  border-radius: var(--radius-lg); overflow: hidden;
  position: relative; aspect-ratio: 3/2;
  background: linear-gradient(135deg, #0d1a3a 0%, #07091a 100%);
  border: 1px solid var(--border);
}
.about-img-card img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; opacity: 0.7; }
.about-img-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 24px;
  background: linear-gradient(0deg, rgba(7,9,26,0.95) 0%, transparent 100%);
}

/* ===========================
   WHY CHOOSE
   =========================== */
.why-section { background: var(--bg-secondary); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-card {
  padding: 32px 24px; border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  text-align: center; transition: all 0.3s;
}
.why-card:hover {
  border-color: rgba(0,220,130,0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4), 0 0 20px rgba(0,220,130,0.1);
}
.why-icon {
  width: 60px; height: 60px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, rgba(0,220,130,0.15), rgba(0,100,60,0.08));
  border: 1px solid rgba(0,220,130,0.2);
}
.why-card h4 { font-size: 1rem; font-weight: 800; margin-bottom: 10px; }
.why-card p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.65; }

/* ===========================
   RACE DAY EXPERIENCE
   =========================== */
.raceday-section {
  position: relative; overflow: hidden;
  padding: 0;
}
.raceday-inner {
  min-height: 520px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  background:
    linear-gradient(135deg, rgba(7,9,26,0.97) 0%, rgba(7,9,26,0.7) 50%, rgba(7,9,26,0.97) 100%),
    url('images/raceday-hero.jpg') center/cover no-repeat;
  padding: 100px 24px;
}
.raceday-content { text-align: center; max-width: 700px; position: relative; z-index: 1; }
.raceday-content .section-title { margin-bottom: 20px; }
.raceday-content .lead { margin-bottom: 36px; }
.raceday-stats {
  display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
  padding-top: 48px; margin-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.raceday-stat { text-align: center; }
.raceday-stat-num { font-size: 2.5rem; font-weight: 900; color: var(--green); }
.raceday-stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

/* ===========================
   HOW IT WORKS
   =========================== */
.how-section { background: var(--bg-primary); }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.steps-grid::before {
  content: '';
  position: absolute; top: 36px; left: 15%; right: 15%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,220,130,0.2), rgba(0,220,130,0.2), rgba(0,220,130,0.2), transparent);
}
.step-card { text-align: center; padding: 32px 20px; }
.step-num {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--bg-card);
  border: 1.5px solid rgba(0,220,130,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 900; color: var(--green);
  margin: 0 auto 20px;
  position: relative; z-index: 1;
}
.step-card h4 { font-size: 1rem; font-weight: 800; margin-bottom: 10px; }
.step-card p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.65; }

/* ===========================
   FAQ
   =========================== */
.faq-section { background: var(--bg-secondary); }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden; transition: border-color 0.3s;
}
.faq-item.open { border-color: rgba(0,220,130,0.25); }
.faq-question {
  padding: 20px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  cursor: pointer; font-size: 0.92rem; font-weight: 600;
  user-select: none;
}
.faq-icon {
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 50%; background: var(--bg-secondary);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--text-muted);
  transition: all 0.3s;
}
.faq-item.open .faq-icon { background: rgba(0,220,130,0.1); border-color: rgba(0,220,130,0.3); color: var(--green); transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.35s ease;
  font-size: 0.85rem; color: var(--text-secondary); line-height: 1.75;
}
.faq-answer-inner { padding: 0 22px 20px; }
.faq-item.open .faq-answer { max-height: 300px; }

/* ===========================
   CTA BAND
   =========================== */
.cta-band {
  background: linear-gradient(135deg, #0b1233 0%, #061a0f 100%);
  border-top: 1px solid rgba(0,220,130,0.15);
  border-bottom: 1px solid rgba(0,220,130,0.15);
  padding: 80px 24px; text-align: center;
}
.cta-band h2 { font-size: clamp(1.8rem,4vw,3rem); font-weight: 900; margin-bottom: 16px; }
.cta-band p { color: var(--text-secondary); max-width: 560px; margin: 0 auto 36px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: #05060f;
  border-top: 1px solid var(--border);
  padding: 64px 24px 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 48px;
}
.footer-brand { max-width: 300px; }
.footer-tagline { font-size: 0.82rem; color: var(--text-muted); margin-top: 12px; line-height: 1.65; }
.footer-license-strip {
  margin-top: 20px; padding: 12px 14px; border-radius: 8px;
  background: rgba(0,220,130,0.05);
  border: 1px solid rgba(0,220,130,0.15);
  font-size: 0.72rem; color: var(--text-muted); line-height: 1.5;
}
.footer-license-strip span { color: var(--green); font-weight: 600; }
.footer-col h6 { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 0.85rem; color: var(--text-secondary); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--green); }
.footer-bottom {
  display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 20px;
  padding-top: 32px; border-top: 1px solid var(--border);
}
.footer-legal { font-size: 0.72rem; color: var(--text-muted); line-height: 1.7; max-width: 700px; }
.footer-legal a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }
.footer-rg {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.72rem; color: var(--text-muted);
  background: rgba(255,71,87,0.06);
  border: 1px solid rgba(255,71,87,0.15);
  border-radius: 6px; padding: 8px 12px;
}

/* ===========================
   ANIMATIONS (SCROLL REVEAL)
   =========================== */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ===========================
   INNER PAGE HERO
   =========================== */
.page-hero {
  padding: 140px 24px 80px;
  background: rgba(11, 15, 36, 0.6);
  backdrop-filter: blur(2px);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 70% 50%, rgba(0,100,200,0.12) 0%, transparent 70%);
}
.page-hero-inner { position: relative; z-index: 1; max-width: 800px; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.78rem; color: var(--text-muted);
  margin-bottom: 20px;
}
.breadcrumb a:hover { color: var(--green); }
.breadcrumb-sep { opacity: 0.3; }

/* ===========================
   PROSE (legal pages)
   =========================== */
.prose { max-width: 800px; margin: 0 auto; }
.prose h2 { font-size: 1.4rem; font-weight: 800; margin: 40px 0 14px; padding-top: 40px; border-top: 1px solid var(--border); }
.prose h3 { font-size: 1.1rem; font-weight: 700; margin: 28px 0 10px; }
.prose p { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; }
.prose ul, .prose ol { padding-left: 24px; margin-bottom: 16px; }
.prose li { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 6px; }
.prose strong { color: var(--text-primary); font-weight: 700; }
.prose .info-box {
  background: var(--bg-card); border: 1px solid rgba(0,220,130,0.2);
  border-radius: var(--radius-sm); padding: 20px 22px; margin: 24px 0;
}
.prose .warn-box {
  background: rgba(255,71,87,0.05); border: 1px solid rgba(255,71,87,0.2);
  border-radius: var(--radius-sm); padding: 20px 22px; margin: 24px 0;
}

/* ===========================
   CONTACT PAGE
   =========================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact-form {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px;
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; letter-spacing: 0.05em; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; background: rgba(0,0,0,0.3);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 13px 16px; color: var(--text-primary); font-family: inherit; font-size: 0.9rem;
  transition: border-color 0.25s;
  outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: rgba(0,220,130,0.4);
  box-shadow: 0 0 0 3px rgba(0,220,130,0.08);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-info-list { display: flex; flex-direction: column; gap: 20px; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; }
.ci-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: rgba(0,220,130,0.1); border: 1px solid rgba(0,220,130,0.2);
  border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.ci-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 3px; }
.ci-value { font-size: 0.9rem; font-weight: 600; }

/* ===========================
   RACING GUIDE
   =========================== */
.guide-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 40px; }
.guide-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 28px; }
.guide-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.guide-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.75; }
.guide-card ul { padding-left: 18px; margin-top: 12px; }
.guide-card ul li { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.75; }

/* ===========================
   RESPONSIBLE GAMING
   =========================== */
.rg-alert {
  background: rgba(255,71,87,0.06); border: 1px solid rgba(255,71,87,0.2);
  border-radius: var(--radius-md); padding: 24px 28px;
  display: flex; gap: 16px; align-items: flex-start; margin-bottom: 40px;
}
.rg-alert-icon { font-size: 1.5rem; flex-shrink: 0; }
.rg-alert h4 { font-size: 1rem; font-weight: 700; color: var(--red); margin-bottom: 6px; }
.rg-alert p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; }
.rg-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rg-tool { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; text-align: center; }
.rg-tool-icon { font-size: 2rem; margin-bottom: 14px; }
.rg-tool h4 { font-size: 0.95rem; font-weight: 800; margin-bottom: 8px; }
.rg-tool p { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.65; }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1100px) {
  .grid-4, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .race-grid { grid-template-columns: repeat(2, 1fr); }
  .wager-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
  .rg-tools { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-inner, .about-grid, .license-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .guide-cards { grid-template-columns: 1fr; }
  .wager-panel { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .section { padding: 64px 0; }
  .display-title { font-size: 2.8rem; }
  .race-grid { grid-template-columns: 1fr; }
  .wager-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .raceday-stats { gap: 28px; }
  .rg-tools { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .license-cards { grid-template-columns: 1fr; }
}
