/* ═══════════════════════════════════════════
   BATSENSE AI — styles.css
   Aesthetic: Dark Cosmic / Refined Futurist
   Fonts: Syne (display) + DM Sans (body)
═══════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
  --bg: #0A0E17;
  --bg-2: #111625;
  --bg-3: #161B22;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(139, 92, 246, 0.5);

  --purple: #8b5cf6;
  --purple-light: #a78bfa;
  --blue: #3b82f6;
  --cyan: #22d3ee;
  --green: #10b981;
  --red: #ef4444;
  --gold: #fbbf24;

  --grad-main: linear-gradient(135deg, var(--purple), var(--blue));
  --grad-text: linear-gradient(90deg, var(--purple-light), var(--cyan));
  --grad-hero: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(139, 92, 246, 0.2) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(34, 211, 238, 0.15) 0%, transparent 60%),
    var(--bg);

  --text: #f1f0ff;
  --text-muted: rgba(241, 240, 255, 0.55);
  --text-dim: rgba(241, 240, 255, 0.35);

  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Dashboard Layout (Removed) ── */
.main-content {
  background: var(--bg);
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
}

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

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ── Typography ── */
h1,
h2,
h3,
h4 {
  font-family: 'Syne', sans-serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Layout ── */
.section-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 100px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header p {
  color: var(--text-muted);
  margin-top: 12px;
  font-size: 1.05rem;
}

.section-tag {
  display: inline-block;
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--purple-light);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--grad-main);
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 100px;
  border: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity var(--transition);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.45);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 100px;
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.btn-outline:hover {
  border-color: var(--purple-light);
  color: var(--purple-light);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
}

.btn-block {
  display: block;
  text-align: center;
  width: 100%;
}

.btn-ghost {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 10px 18px;
  border-radius: 100px;
  transition: var(--transition);
}

.btn-ghost:hover {
  color: var(--text);
}

/* ── Glow Pulse Animation ── */
.pulse-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
  }

  50% {
    box-shadow: 0 0 35px rgba(139, 92, 246, 0.65), 0 0 60px rgba(96, 165, 250, 0.25);
  }
}

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  transition: background var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.logo-icon {
  font-size: 1.4rem;
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.8));
}

.logo-text em {
  font-style: normal;
  color: var(--purple-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-right: auto;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--grad-main);
  transition: width var(--transition);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--grad-hero);
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
}

#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.6;
}

/* Floating Geometric Shapes */
.hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
}

.shape-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  left: 5%;
  border: 1px solid rgba(139, 92, 246, 0.2);
  animation: floatShape 8s ease-in-out infinite;
}

.shape-2 {
  width: 200px;
  height: 200px;
  top: 20%;
  right: 8%;
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: floatShape 11s ease-in-out infinite reverse;
}

.shape-3 {
  width: 150px;
  height: 150px;
  bottom: 20%;
  left: 12%;
  border: 1px solid rgba(34, 211, 238, 0.15);
  border-radius: 0;
  transform: rotate(45deg);
  animation: floatShape 9s ease-in-out infinite 2s;
}

.shape-4 {
  width: 80px;
  height: 80px;
  bottom: 30%;
  right: 15%;
  border: 1px solid rgba(244, 114, 182, 0.2);
  border-radius: 0;
  animation: floatShape 7s ease-in-out infinite 1s;
}

@keyframes floatShape {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  33% {
    transform: translateY(-20px) rotate(5deg);
  }

  66% {
    transform: translateY(10px) rotate(-3deg);
  }
}

.shape-3 {
  animation-name: floatShapeSq;
}

@keyframes floatShapeSq {

  0%,
  100% {
    transform: rotate(45deg) translateY(0);
  }

  50% {
    transform: rotate(55deg) translateY(-15px);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-family: 'Syne', sans-serif;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--purple-light);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.25);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}

.hero-title {
  margin-bottom: 24px;
  color: var(--text);
  text-shadow: 0 0 80px rgba(139, 92, 246, 0.3);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}



.matches-category-tabs {
  display: flex;
  gap: 32px;
  padding: 16px 24px 0;
  border-bottom: 1px solid var(--border);
}

.match-cat-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding-bottom: 8px;
  cursor: pointer;
  position: relative;
  transition: color var(--transition);
}

.match-cat-btn::after {
  content: '';
  position: absolute;
  bottom: -1px;
  /* Align over border */
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--purple);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.match-cat-btn.active,
.match-cat-btn:hover {
  color: var(--text);
}

.match-cat-btn.active::after {
  transform: scaleX(1);
}

/* Spoda horizontal match list grid */
.sidebar-matches-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  width: 100%;
}

.match-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
  color: var(--text);
}

.match-card:hover,
.match-card.active {
  border-color: var(--purple-light);
  background: var(--surface-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.15);
}

.match-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.match-live-pulse {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--red);
}

.match-live-pulse .dot {
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: pulseLive 1.5s infinite;
}

.match-card-teams {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.team-row {
  display: flex;
  justify-content: space-between;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
}

.team-score {
  font-weight: 700;
}



/* ── Spoda-Style Match Center ── */
.spoda-top-header {
  width: 100%;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  position: relative;
  color: var(--text);
}

.spoda-back-arrow {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition);
}

.spoda-back-arrow:hover {
  color: var(--cyan);
}

.spoda-match-titles {
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#mcFullTitle {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: #fff;
  margin: 0;
}

#mcSubtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* Removed old .match-center-wrapper */

/* The new unified box wrapping the header, live action, and scorecard */
.spoda-match-center-box {
  background: linear-gradient(180deg, #1A1525 0%, #110E18 100%);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius);
  padding: 24px;
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* ── Spoda-Style Live Action Bar ── */
.live-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  background: transparent;
  color: #f1f0ff;
  font-family: 'DM Sans', sans-serif;
  gap: 24px;
}

.lab-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Left: Batting */
.lab-batting {
  flex: 1;
  gap: 12px;
}

.lab-team-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.lab-flag {
  font-size: 1.2rem;
  line-height: 1;
  transform: translateY(2px);
}

.lab-team-name {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
}

.lab-score-main {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #ffffff;
}

.lab-score-overs {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  color: rgba(241, 240, 255, 0.6);
}

.lab-batters {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: rgba(241, 240, 255, 0.75);
}

.lab-batters div {
  display: flex;
  gap: 6px;
}

/* Center: Status & RR */
.lab-center {
  flex: 2;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 0 24px;
}

.lab-status-text {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
}

.lab-rr-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(241, 240, 255, 0.6);
  font-weight: 400;
}

.rr-divider {
  color: rgba(241, 240, 255, 0.3);
}

.lab-toggle-btn {
  margin-top: 16px;
  background: none;
  border: none;
  color: var(--text);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}

.lab-toggle-btn:hover {
  color: var(--cyan);
}

.lab-toggle-btn span {
  font-size: 1.2rem;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform var(--transition);
}

.lab-toggle-btn.open span {
  transform: translateY(-1px) rotate(90deg);
}

/* Right: Bowling */
.lab-bowling {
  flex: 1;
  align-items: flex-end;
  text-align: right;
}

.lab-bowler {
  font-size: 0.85rem;
  color: rgba(241, 240, 255, 0.75);
}

/* Spoda Scorecard Dropdown Area */
.spoda-scorecard-dropdown {
  padding: 24px 0;
  color: var(--text);
  margin-top: 16px;
  animation: slideDown 0.3s ease-out forwards;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tables (Scorecard) */
.table-title {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  margin-bottom: 16px;
  color: #fff;
}

.mc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  font-family: 'DM Sans', sans-serif;
}

.mc-table th {
  text-align: left;
  padding: 12px 16px;
  color: rgba(241, 240, 255, 0.6);
  font-weight: 600;
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
  text-transform: uppercase;
  font-size: 0.75rem;
  background: rgba(17, 14, 24, 0.4);
}

.mc-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(241, 240, 255, 0.8);
}

.mc-table tr:last-child td {
  border-bottom: none;
}

.mc-table td:first-child {
  color: #fff;
  font-weight: 600;
}

/* Phase Stats */
.phase-group {
  margin-bottom: 20px;
}

.phase-label {
  font-size: 0.8rem;
  color: #667085;
  margin-bottom: 8px;
}

.phase-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.phase-bar-container {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.p-bar {
  height: 24px;
  border-radius: 4px;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.local-bar {
  background: var(--blue);
}

.visitor-bar {
  background: var(--gold);
}

.p-val {
  font-size: 0.8rem;
  font-weight: 600;
  min-width: 30px;
}

.phase-legend {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  font-size: 0.8rem;
  color: #667085;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.l-box {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.local-box {
  background: var(--blue);
}

.visitor-box {
  background: var(--gold);
}

/* Insights Feed */
.insights-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.insight-card {
  background: #F9FAFB;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.insight-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.1);
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.insight-body {
  flex: 1;
}

.insight-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: #101828;
}

.insight-text {
  font-size: 0.85rem;
  color: #475467;
  line-height: 1.4;
}

.insight-val-box {
  text-align: right;
  flex-shrink: 0;
}

.i-val {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #101828;
}

.i-sub {
  font-size: 0.7rem;
  color: #667085;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.stat-num {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-dot {
  width: 6px;
  height: 6px;
  background: var(--purple-light);
  border-radius: 50%;
  animation: scrollBounce 2s ease-in-out infinite;
  box-shadow: 0 0 10px var(--purple);
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }

  50% {
    transform: translateY(12px);
    opacity: 0.3;
  }
}

/* ══════════════════════════════════════════
   FEATURES
══════════════════════════════════════════ */
.features {
  background: var(--bg-2);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  cursor: default;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--grad-main);
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(139, 92, 246, 0.1);
}

.feature-card:hover::before {
  opacity: 1;
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.feature-card h3 {
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.feature-card ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-card li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
}

.feature-card li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--purple-light);
  font-size: 0.75rem;
}

.card-glow {
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15), transparent 70%);
  pointer-events: none;
  transition: opacity var(--transition);
  opacity: 0;
}

.feature-card:hover .card-glow {
  opacity: 1;
}

/* ══════════════════════════════════════════
   HOW IT WORKS
══════════════════════════════════════════ */
.how-it-works {
  background: var(--bg);
}

.steps-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
}

.step-number {
  font-family: 'Syne', sans-serif;
  font-size: 4rem;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.3;
  line-height: 1;
}

.step-connector {
  position: absolute;
  top: 28px;
  right: -50%;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 1;
}

.connector-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--purple), var(--blue));
  position: relative;
  overflow: hidden;
}

.connector-line::after {
  content: '';
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: shimmer 2.5s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

.connector-arrow {
  color: var(--blue);
  font-size: 1.2rem;
}

.step-connector.hidden {
  display: none;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  width: 100%;
  transition: var(--transition);
}

.step-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.1);
}

.step-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

.step-card h3 {
  margin-bottom: 10px;
}

.step-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════════ */
.testimonials {
  background: var(--bg-2);
}

.testimonial-carousel {
  position: relative;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-slide {
  min-width: 100%;
  padding: 0 40px;
  text-align: center;
}

.stars {
  font-size: 1.4rem;
  color: #fbbf24;
  margin-bottom: 20px;
  letter-spacing: 4px;
}

.testimonial-slide blockquote {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
  max-width: 700px;
  margin: 0 auto 28px;
  position: relative;
}

.testimonial-slide blockquote::before {
  content: '"';
  font-size: 5rem;
  color: var(--purple);
  opacity: 0.2;
  position: absolute;
  top: -20px;
  left: -10px;
  font-family: serif;
  line-height: 1;
}

.testimonial-author {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 0.95rem;
}

.testimonial-author span {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  cursor: pointer;
}

.carousel-btn:hover {
  border-color: var(--purple);
  color: var(--text);
  background: rgba(139, 92, 246, 0.1);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 100px;
  background: var(--border);
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.carousel-dot.active {
  width: 24px;
  background: var(--grad-main);
}

/* ══════════════════════════════════════════
   PRICING
══════════════════════════════════════════ */
.pricing {
  background: var(--bg-3);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--transition);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.pricing-popular {
  border-color: var(--purple);
  background: rgba(139, 92, 246, 0.05);
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.15);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-main);
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}

.plan-name {
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-amount {
  font-family: 'Syne', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text);
}

.price-period {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.plan-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0;
  flex: 1;
}

.plan-features li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding-left: 22px;
  position: relative;
}

.plan-features li.yes::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #34d399;
  font-weight: 700;
}

.plan-features li.no {
  color: var(--text-dim);
  text-decoration: line-through;
}

.plan-features li.no::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: var(--text-dim);
}

/* ══════════════════════════════════════════
   FOOTER / CTA
══════════════════════════════════════════ */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.cta-banner {
  background: radial-gradient(ellipse 80% 100% at 50% 0%, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
  text-align: center;
  padding: 100px 24px 80px;
  max-width: 800px;
  margin: 0 auto;
}

.cta-banner h2 {
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.cta-banner>p {
  color: var(--text-muted);
  margin-bottom: 40px;
}

.cta-form {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-form input {
  flex: 1;
  min-width: 180px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 14px 22px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
}

.cta-form input::placeholder {
  color: var(--text-dim);
}

.cta-form input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.form-note {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 14px;
}

.form-success {
  display: none;
  margin-top: 16px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #34d399;
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-size: 0.9rem;
}

/* ══════════════════════════════════════════
   LIVE ODDS INTEGRATION (PHASE 3)
══════════════════════════════════════════ */
.odds-bar {
  background: var(--surface-2);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.odds-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple-light), transparent);
  opacity: 0.5;
}

.odds-market-header {
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.odds-live-pulse {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #10b981;
  /* green */
  font-size: 0.75rem;
  font-weight: 700;
}

.odds-live-pulse .dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.odds-outcomes {
  display: flex;
  gap: 12px;
}

.odds-block {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  transition: all 0.2s ease;
  cursor: default;
}

.odds-block:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.5);
}

.odds-label {
  font-size: 0.9rem;
  color: var(--text-dim);
}

.odds-value {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.odds-trend.up {
  color: #10b981;
}

.odds-trend.down {
  color: #ef4444;
}

/* ══════════════════════════════════════════
   PREMIUM GATING
══════════════════════════════════════════ */
.premium-locked {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.premium-content-blur {
  filter: blur(8px);
  opacity: 0.3;
  pointer-events: none;
  user-select: none;
  transition: filter 0.5s ease, opacity 0.5s ease;
}

.premium-overlay-cta {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  width: 90%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.premium-overlay-cta svg {
  width: 32px;
  height: 32px;
  color: var(--purple-light);
  margin-bottom: 4px;
}

.premium-overlay-cta h4 {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  color: #fff;
  margin: 0;
}

.premium-overlay-cta p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

/* When a user logs in, the body gets this class, automatically hiding the lock */
body.user-logged-in .premium-overlay-cta {
  display: none !important;
}

body.user-logged-in .premium-content-blur {
  filter: blur(0) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  user-select: auto !important;
}

.footer-bottom {
  padding: 60px 24px 32px;
  max-width: 1180px;
  margin: 0 auto;
}

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

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 260px;
  line-height: 1.7;
}

.socials {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.socials a {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  color: var(--text-muted);
  transition: var(--transition);
}

.socials a:hover {
  border-color: var(--purple);
  color: var(--purple-light);
  background: rgba(139, 92, 246, 0.08);
}

.footer-col h4 {
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  transition: color var(--transition);
}

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

.footer-copyright {
  padding-top: 32px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ══════════════════════════════════════════
   SCROLL ANIMATIONS
══════════════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.delay-1 {
  animation-delay: 0.15s;
}

.delay-2 {
  animation-delay: 0.3s;
}

.delay-3 {
  animation-delay: 0.45s;
}

.delay-4 {
  animation-delay: 0.6s;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.in-view {
  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;
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-timeline {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .step-connector {
    display: none !important;
  }

  .step-item {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
  }

  .step-card {
    text-align: left;
  }

  .step-number {
    font-size: 2.5rem;
    min-width: 60px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }

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

@media (max-width: 768px) {

  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(7, 6, 15, 0.97);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    z-index: 999;
  }

  .nav-links.mobile-open a {
    font-size: 1.1rem;
  }

  .nav-actions.mobile-open {
    display: flex;
    position: fixed;
    top: 230px;
    left: 0;
    right: 0;
    padding: 0 24px 24px;
    background: rgba(7, 6, 15, 0.97);
    backdrop-filter: blur(20px);
    justify-content: center;
    gap: 12px;
    z-index: 999;
    border-bottom: 1px solid var(--border);
  }

  .hamburger {
    display: flex;
  }

  .hero-stats {
    gap: 20px;
    flex-wrap: wrap;
  }

  .stat-divider {
    display: none;
  }

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

  .form-row {
    flex-direction: column;
  }

  .form-row .btn-primary {
    border-radius: 100px;
  }

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

  .testimonial-slide {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .btn-lg {
    padding: 14px 24px;
  }
}