/* ==========================================================================
   8Score Home Page Styles (Modern, Sporty, Dark Fresh Theme)
   Scoped to body.home so blog and feature pages remain 100% untouched.
   ========================================================================== */

:root {
  --h-bg: #0b1120;
  --h-bg-grad: radial-gradient(circle at 50% 0%, #152544 0%, #0b1120 70%);
  --h-card: rgba(18, 27, 47, 0.75);
  --h-card-hover: rgba(26, 38, 66, 0.9);
  --h-border: rgba(255, 255, 255, 0.09);
  --h-border-glow: rgba(59, 130, 246, 0.45);
  --h-text: #f1f5f9;
  --h-muted: #94a3b8;
  --h-emerald: #10b981;
  --h-emerald-glow: rgba(16, 185, 129, 0.25);
  --h-blue: #3b82f6;
  --h-blue-glow: rgba(59, 130, 246, 0.3);
  --h-gold: #fbbf24;
  --h-gold-glow: rgba(251, 191, 36, 0.25);
}

body.home {
  background: var(--h-bg);
  color: var(--h-text);
  overflow-x: hidden;
  position: relative;
}

/* Background floating sport SVGs and ambient gradients */
.hero-ambient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 900px;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.hero-glow-1 {
  position: absolute;
  top: -120px;
  left: 15%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, transparent 70%);
  filter: blur(60px);
  animation: floatGlow 14s ease-in-out infinite alternate;
}
.hero-glow-2 {
  position: absolute;
  top: 150px;
  right: 5%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  filter: blur(60px);
  animation: floatGlow 18s ease-in-out infinite alternate-reverse;
}

.float-item {
  position: absolute;
  opacity: 0.18;
  transition: opacity 0.3s ease;
  animation: floatDrift 20s ease-in-out infinite alternate;
}
.float-ball-8 { top: 120px; left: 4%; width: 54px; height: 54px; animation-duration: 16s; }
.float-pickleball { top: 480px; left: 8%; width: 64px; height: 64px; animation-duration: 22s; animation-delay: -4s; }
.float-tennis { top: 90px; right: 8%; width: 56px; height: 56px; animation-duration: 18s; animation-delay: -2s; }
.float-shuttle { top: 520px; right: 6%; width: 60px; height: 60px; animation-duration: 24s; animation-delay: -6s; }

@keyframes floatGlow {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 40px) scale(1.08); }
  100% { transform: translate(-20px, 20px) scale(0.95); }
}
@keyframes floatDrift {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-24px) rotate(15deg); }
  100% { transform: translateY(18px) rotate(-10deg); }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
body.home .hero {
  position: relative;
  z-index: 1;
  padding: 48px 0 64px;
  background: transparent;
}
body.home .hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  width: fit-content;
}
.hero-badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

body.home .hero h1 {
  font: 800 clamp(34px, 5.2vw, 56px)/1.1 "Bricolage Grotesque", -apple-system, sans-serif;
  letter-spacing: -0.03em;
  margin: 0;
  color: #ffffff;
}
body.home .hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #60a5fa 0%, #34d399 50%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

body.home .hero p.lead {
  font-size: 18px;
  line-height: 1.6;
  color: #cbd5e1;
  margin: 0;
  max-width: 580px;
}

/* Trust pills */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #94a3b8;
}
.trust-item svg {
  width: 16px;
  height: 16px;
  color: #34d399;
  flex-shrink: 0;
}

/* CTA buttons */
.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.btn-primary-glow {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.25s ease;
}
.btn-primary-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.5);
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}
.btn-secondary-glass {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff !important;
  transition: all 0.25s ease;
}
.btn-secondary-glass:hover {
  background: rgba(51, 65, 85, 0.85);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}
.btn-demo-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #38bdf8 !important;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  width: fit-content;
  padding: 4px 0;
  transition: gap 0.2s ease;
}
.btn-demo-link:hover {
  gap: 10px;
  color: #7dd3fc !important;
}

/* ==========================================================================
   Hero Phone Mockup & Live Scoreboard
   ========================================================================== */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  position: relative;
  width: 100%;
  max-width: 330px;
  border-radius: 44px;
  padding: 10px;
  background: linear-gradient(160deg, #334155 0%, #0f172a 50%, #1e293b 100%);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8),
              0 0 0 1px rgba(255, 255, 255, 0.12),
              0 0 40px rgba(59, 130, 246, 0.2);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.phone-mockup:hover {
  transform: translateY(-4px) scale(1.01);
}

.phone-screen {
  background: #0d1527;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 580px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Phone Top Island */
.phone-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 20px;
  background: #000;
  border-radius: 999px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
}
.phone-camera {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #111e38;
}

/* Phone Status Bar */
.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px 4px;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  z-index: 5;
}

/* Sport Tab Selector */
.live-tabs {
  display: flex;
  gap: 4px;
  padding: 6px 10px;
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.live-tab-btn {
  flex: 1;
  padding: 6px 4px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  white-space: nowrap;
}
.live-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}
.live-tab-btn.active {
  color: #ffffff;
  background: #1e293b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

/* Live Score Stage */
.live-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px;
  position: relative;
}

.sport-view {
  display: none;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}
.sport-view.active {
  display: flex;
  animation: fadeInScore 0.35s ease;
}
@keyframes fadeInScore {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Live Header inside board */
.board-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.board-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}
.board-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  animation: pulseDot 1.5s infinite;
}
.board-title {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
}

/* Bi-a Board */
.bia-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.bia-player {
  background: #131d32;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.3s ease;
}
.bia-player.lead {
  border-color: rgba(251, 191, 36, 0.4);
  background: linear-gradient(160deg, #182542, #131d32);
  box-shadow: 0 4px 14px rgba(251, 191, 36, 0.1);
}
.player-name-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
}
.bia-score {
  font: 800 28px/1 "Bricolage Grotesque", sans-serif;
  color: #ffffff;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.bia-score.positive { color: #34d399; }
.bia-score.negative { color: #f87171; }
.ball-chips {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}
.ball-chip {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  display: grid;
  place-items: center;
  color: #fff;
}
.ball-chip.b3 { background: #dc2626; }
.ball-chip.b6 { background: #16a34a; }
.ball-chip.b9 { background: #ca8a04; color: #1e1e1e; }

.bia-action-banner {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #6ee7b7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: bannerFlash 4s infinite;
}
@keyframes bannerFlash {
  0%, 80%, 100% { opacity: 1; transform: scale(1); }
  85% { opacity: 0.7; transform: scale(0.98); }
}

/* Pickleball Board */
.match-teams-box {
  background: #131d32;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.team-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.team-info {
  display: flex;
  flex-direction: column;
}
.team-name {
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
}
.server-badge {
  font-size: 10px;
  color: #fbbf24;
  font-weight: 600;
}
.big-score-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 0;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 12px;
  margin: 4px 0;
}
.big-num {
  font: 800 46px/1 "Bricolage Grotesque", sans-serif;
  color: #ffffff;
  letter-spacing: -0.02em;
}
.big-num.accent { color: #38bdf8; }
.score-dash {
  font-size: 32px;
  color: #475569;
  font-weight: 300;
}
.server-digit {
  font-size: 24px;
  color: #fbbf24;
  font-weight: 800;
  background: rgba(251, 191, 36, 0.15);
  padding: 2px 8px;
  border-radius: 6px;
}

/* Tennis Board */
.tennis-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.tennis-table th {
  color: #64748b;
  font-weight: 600;
  font-size: 11px;
  padding: 4px 6px;
  text-align: center;
}
.tennis-table th:first-child { text-align: left; }
.tennis-table td {
  padding: 8px 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  font-weight: 700;
}
.tennis-table td:first-child {
  text-align: left;
  color: #f1f5f9;
}
.tennis-point {
  color: #38bdf8;
  font-size: 15px;
}

/* Real screenshot backdrop mode */
.phone-screenshot-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 8;
  background: #0d1527;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.phone-screenshot-layer.active {
  opacity: 1;
  pointer-events: auto;
}
.phone-screenshot-layer picture,
.phone-screenshot-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Phone Bottom Bar Controls */
.phone-bottom-control {
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 12;
}
.toggle-mode-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.toggle-mode-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

/* Floating Badges flanking phone */
.floating-card {
  position: absolute;
  background: rgba(18, 27, 47, 0.88);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
  z-index: 6;
  white-space: nowrap;
  animation: floatCard 8s ease-in-out infinite alternate;
}
.floating-card-top {
  top: 40px;
  right: -24px;
}
.floating-card-bottom {
  bottom: 50px;
  left: -28px;
  animation-delay: -4s;
}
@keyframes floatCard {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

.float-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.float-icon-box.green { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.float-icon-box.blue { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.float-text {
  display: flex;
  flex-direction: column;
}
.float-title {
  font-size: 12px;
  font-weight: 700;
  color: #f8fafc;
}
.float-sub {
  font-size: 11px;
  color: #94a3b8;
}

/* ==========================================================================
   Metrics Bar (Counter)
   ========================================================================== */
.metrics-section {
  position: relative;
  z-index: 2;
  margin-top: -10px;
  margin-bottom: 40px;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: rgba(18, 27, 47, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.metric-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.metric-card:last-child {
  border-right: none;
}
.metric-number {
  font: 800 clamp(28px, 4vw, 40px)/1.1 "Bricolage Grotesque", sans-serif;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.metric-label {
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
}
.metric-desc {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
}

/* ==========================================================================
   Why 8Score Cards
   ========================================================================== */
body.home .card {
  background: var(--h-card);
  border: 1px solid var(--h-border);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 28px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
body.home .card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
body.home .card:hover {
  transform: translateY(-5px);
  background: var(--h-card-hover);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), 0 0 25px rgba(59, 130, 246, 0.12);
}
body.home .card:hover::before {
  opacity: 1;
}

.card-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  display: grid;
  place-items: center;
  color: #60a5fa;
  margin-bottom: 16px;
}
body.home .card h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #ffffff;
}
body.home .card p {
  color: #94a3b8;
  font-size: 15px;
  line-height: 1.6;
}

/* ==========================================================================
   Interactive OBS & Live Sync Demo Section (#demo-sync)
   ========================================================================== */
.sync-demo-wrap {
  background: radial-gradient(circle at 50% 50%, #152544 0%, #0d1527 100%);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 25px 60px -20px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  margin-top: 24px;
}
.sync-demo-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}

/* Left: Referee Phone Simulation */
.sync-device-box {
  background: #10192e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sync-device-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
}
.sync-device-title {
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.referee-board {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #090e1a;
  border-radius: 12px;
  padding: 12px 16px;
}
.referee-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.referee-pname {
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
}
.referee-score {
  font: 800 36px/1 "Bricolage Grotesque", sans-serif;
  color: #ffffff;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.referee-score.highlight {
  color: #38bdf8;
  transform: scale(1.15);
}

.referee-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.btn-point {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.btn-point:hover {
  background: #2563eb;
  border-color: #3b82f6;
  transform: translateY(-2px);
}
.btn-point:active {
  transform: scale(0.96);
}

/* Center: Synced Pulse Beam */
.sync-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.sync-beam {
  width: 110px;
  height: 4px;
  background: rgba(59, 130, 246, 0.2);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}
.sync-packet {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 30px;
  background: linear-gradient(90deg, transparent, #38bdf8, transparent);
  border-radius: 999px;
  animation: beamFlow 1.8s infinite ease-in-out;
}
@keyframes beamFlow {
  0% { transform: translateX(-40px); }
  100% { transform: translateX(120px); }
}
.sync-badge {
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Right: OBS / Livestream Screen */
.obs-screen-wrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1e3a29 0%, #172554 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
}
.obs-tag {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 800;
  color: #f87171;
  background: rgba(0, 0, 0, 0.6);
  padding: 3px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.obs-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
}

/* OBS Scoreboard Overlay Bar */
.obs-overlay-bar {
  align-self: center;
  width: 90%;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  transition: box-shadow 0.3s ease;
}
.obs-overlay-bar.pulse-sync {
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.8);
  border-color: #38bdf8;
}
.obs-match-title {
  font-size: 10px;
  font-weight: 700;
  color: #fbbf24;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.obs-teams-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.obs-team {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.obs-point {
  background: #1e293b;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 800;
  color: #38bdf8;
  transition: all 0.25s ease;
}
.obs-point.flash {
  background: #38bdf8;
  color: #0f172a;
}

/* ==========================================================================
   Sports Section Cards (#cac-mon)
   ========================================================================== */
.sports-card {
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--h-card);
  border: 1px solid var(--h-border);
  border-radius: 20px;
  padding: 28px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.sports-card:hover {
  transform: translateY(-6px);
  border-color: var(--h-border-glow);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), 0 0 30px rgba(59, 130, 246, 0.15);
}
.sports-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #9bbdff;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.25);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
  width: fit-content;
}
.sports-card-highlight {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0;
}
.sport-chip {
  font-size: 11px;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 6px;
}

/* ==========================================================================
   Timeline: 30 Seconds Section
   ========================================================================== */
.timeline-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  margin-top: 24px;
}
.timeline-step {
  background: var(--h-card);
  border: 1px solid var(--h-border);
  border-radius: 20px;
  padding: 28px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease;
}
.timeline-step:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}
.step-number-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font: 800 18px "Bricolage Grotesque", sans-serif;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}
.timeline-step h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
}
.timeline-step p {
  font-size: 15px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
}

/* Connecting line across timeline steps */
@media (min-width: 901px) {
  .timeline-steps::before {
    content: "";
    position: absolute;
    top: 48px;
    left: 60px;
    right: 60px;
    height: 2px;
    background: linear-gradient(90deg, #2563eb 0%, #38bdf8 50%, #34d399 100%);
    opacity: 0.3;
    z-index: 0;
  }
}

/* ==========================================================================
   Pricing Cards
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.price-card {
  background: var(--h-card);
  border: 1px solid var(--h-border);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
}
.price-card.featured {
  border-color: #3b82f6;
  background: linear-gradient(170deg, rgba(30, 48, 86, 0.85) 0%, rgba(18, 27, 47, 0.85) 100%);
  box-shadow: 0 15px 40px -10px rgba(59, 130, 246, 0.3);
}
.price-card:hover {
  transform: translateY(-4px);
}
.price-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.price-title {
  font-size: 16px;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 8px;
}
.price-amount {
  font: 800 32px/1 "Bricolage Grotesque", sans-serif;
  color: #ffffff;
  margin-bottom: 12px;
}
.price-desc {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 16px;
}

/* ==========================================================================
   FAQ Section Styles
   ========================================================================== */
body.home .faq details {
  background: var(--h-card);
  border: 1px solid var(--h-border);
  border-radius: 16px;
  padding: 16px 20px;
  margin: 10px 0;
  transition: all 0.2s ease;
}
body.home .faq details[open] {
  border-color: rgba(59, 130, 246, 0.4);
  background: var(--h-card-hover);
}
body.home .faq summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  color: #f1f5f9;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
body.home .faq summary::-webkit-details-marker {
  display: none;
}
body.home .faq summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: #94a3b8;
  transition: transform 0.2s ease;
}
body.home .faq details[open] summary::after {
  content: "−";
  color: #38bdf8;
}
body.home .faq p {
  margin: 12px 0 0;
  color: #cbd5e1;
  font-size: 15px;
  line-height: 1.6;
}

/* ==========================================================================
   Scroll Reveal Animations (JS-enhanced)
   No-JS fallback: fully visible by default.
   ========================================================================== */
html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
html.js .reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay classes */
html.js .stagger-1 { transition-delay: 0.08s; }
html.js .stagger-2 { transition-delay: 0.16s; }
html.js .stagger-3 { transition-delay: 0.24s; }
html.js .stagger-4 { transition-delay: 0.32s; }

/* ==========================================================================
   Accessibility & Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html.js .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .float-item, .hero-glow-1, .hero-glow-2, .floating-card {
    animation: none !important;
  }
}

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid #38bdf8 !important;
  outline-offset: 3px !important;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 990px) {
  body.home .hero .wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-content {
    text-align: center;
    align-items: center;
  }
  .hero-trust {
    justify-content: center;
  }
  .hero-cta-buttons {
    justify-content: center;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .metric-card:nth-child(2) {
    border-right: none;
  }
  .timeline-steps {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .sync-demo-grid {
    grid-template-columns: 1fr;
  }
  .sync-beam {
    width: 4px;
    height: 40px;
  }
  .sync-connector {
    flex-direction: row;
    justify-content: center;
  }
  .floating-card {
    display: none;
  }
}

@media (max-width: 580px) {
  body.home .hero {
    padding: 28px 0 40px;
  }
  .metrics-grid {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .metric-card {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 12px;
  }
  .metric-card:last-child {
    border-bottom: none;
  }
  .phone-mockup {
    max-width: 290px;
    padding: 8px;
    border-radius: 36px;
  }
  .phone-screen {
    border-radius: 30px;
    min-height: 520px;
  }
  .sync-demo-wrap {
    padding: 18px;
  }
}

/* Force dark theme coherence on body.home */
body.home {
  color-scheme: dark;
}
body.home .site-head {
  background: rgba(11, 17, 32, 0.9) !important;
  backdrop-filter: blur(12px);
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}
body.home .brand {
  color: #ffffff !important;
}
body.home .site-head nav a {
  color: #94a3b8 !important;
}
body.home .site-head nav a:hover {
  color: #ffffff !important;
}
body.home .install-bar {
  background: rgba(11, 17, 32, 0.95) !important;
  backdrop-filter: blur(12px);
  border-top-color: rgba(255, 255, 255, 0.12) !important;
  color: #f1f5f9 !important;
}
body.home .btn.alt {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #f1f5f9 !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
}
body.home .btn.alt:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  color: #ffffff !important;
}
body.home .site-foot {
  background: #080d18 !important;
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}
body.home .site-foot a {
  color: #94a3b8 !important;
}
body.home .site-foot a:hover {
  color: #f1f5f9 !important;
}
body.home section.block {
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}
body.home section.block h2 {
  color: #ffffff;
}

@media (max-width: 640px) {
  .float-item {
    display: none;
  }
}

/* Global token lock for home page */
body.home {
  --muted: #94a3b8 !important;
  --text: #f1f5f9 !important;
  --border: rgba(255, 255, 255, 0.12) !important;
}
body.home .foot-title {
  color: #ffffff !important;
}
body.home a.more {
  color: #38bdf8 !important;
}
body.home .site-foot a {
  color: #94a3b8 !important;
}
body.home .site-foot a:hover {
  color: #ffffff !important;
}

/* Refined App Download Badges on Home Page */
body.home .app-btns {
  gap: 12px;
}
body.home .btn-store {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(255, 255, 255, 0.16);
}
body.home .btn-store:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: #38bdf8;
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.2);
}
body.home .btn-store-share {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
}
body.home .btn-store-share:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}
@media (max-width: 990px) {
  body.home .hero .app-btns {
    margin: 0 auto;
  }
}
