/* ========================================
   BallBrain - Ana CSS Stil Dosyası
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700;800&display=swap');

/* --- Design Tokens --- */
:root {
  --bg-primary: hsl(222, 30%, 6%);
  --bg-secondary: hsl(222, 25%, 9%);
  --bg-card: hsla(222, 30%, 12%, 0.6);
  --accent-green: hsl(142, 72%, 50%);
  --accent-green-dim: hsla(142, 72%, 50%, 0.15);
  --accent-blue: hsl(210, 95%, 60%);
  --accent-blue-dim: hsla(210, 95%, 60%, 0.1);
  --text-primary: hsl(210, 30%, 96%);
  --text-secondary: hsl(210, 15%, 65%);
  --text-muted: hsl(210, 10%, 45%);
  --border-subtle: hsla(210, 30%, 70%, 0.1);
  --border-accent: hsla(142, 72%, 50%, 0.35);
  --glow-green: 0 0 30px hsla(142, 72%, 50%, 0.3), 0 0 60px hsla(142, 72%, 50%, 0.1);
  --glow-blue: 0 0 30px hsla(210, 95%, 60%, 0.25);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
  --transition-fast: 0.15s ease;
  --font-primary: 'Space Grotesk', sans-serif;
  --font-secondary: 'Inter', sans-serif;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-green);
  border-radius: 3px;
}

/* --- Utility --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-card {
  background: hsl(222, 25%, 12%);
  /* Brighter, solid background for contrast */
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transform: translateZ(0);
}

/* --- Animated Background --- */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(hsla(142, 72%, 50%, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, hsla(142, 72%, 50%, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.bg-gradient-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  transform: translateZ(0);
}

.orb-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, hsla(142, 72%, 40%, 0.12) 0%, transparent 70%);
  top: -250px;
  left: -250px;
  animation: orbFloat1 20s ease-in-out infinite;
}

.orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, hsla(210, 95%, 50%, 0.1) 0%, transparent 70%);
  top: 40%;
  right: -250px;
  animation: orbFloat2 25s ease-in-out infinite;
}

.orb-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, hsla(142, 72%, 40%, 0.08) 0%, transparent 70%);
  bottom: -150px;
  left: 30%;
  animation: orbFloat3 18s ease-in-out infinite;
}

@keyframes orbFloat1 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(60px, 80px) scale(1.1);
  }
}

@keyframes orbFloat2 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-80px, -60px) scale(1.15);
  }
}

@keyframes orbFloat3 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(40px, -80px) scale(1.05);
  }
}

/* --- Navigation --- */
nav {
  position: fixed;
  top: 36px;
  /* Offset for Ticker */
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: var(--transition);
}

nav.scrolled {
  top: 36px;
  /* Stay below the fixed ticker */
  background: hsl(222, 30%, 8%);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text-primary);
}

.nav-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-cta {
  background: linear-gradient(135deg, var(--accent-green), hsl(160, 80%, 45%));
  color: hsl(222, 30%, 6%) !important;
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  transition: var(--transition) !important;
  box-shadow: var(--glow-green);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px hsla(142, 72%, 50%, 0.5), 0 0 80px hsla(142, 72%, 50%, 0.2) !important;
  color: hsl(222, 30%, 6%) !important;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-green-dim);
  border: 1px solid var(--border-accent);
  border-radius: 30px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-green);
  margin-bottom: 24px;
  width: fit-content;
  animation: pulseBadge 3s ease-in-out infinite;
}

@keyframes pulseBadge {

  0%,
  100% {
    box-shadow: 0 0 0 0 hsla(142, 72%, 50%, 0.3);
  }

  50% {
    box-shadow: 0 0 0 8px hsla(142, 72%, 50%, 0);
  }
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.hero-title {
  font-family: var(--font-primary);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent-green), hsl(160, 80%, 45%));
  color: hsl(222, 30%, 6%);
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--glow-green);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 50px hsla(142, 72%, 50%, 0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  color: var(--text-primary);
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  background: hsla(222, 30%, 15%, 0.6);
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
}

.hero-stat-item {
  text-align: center;
}

.hero-stat-value {
  font-family: var(--font-primary);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-green);
  display: block;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* --- Hero Visual (Phone Mockup) --- */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  width: 280px;
  height: 560px;
  background: hsl(222, 30%, 10%);
  border-radius: 40px;
  border: 2px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 80px hsla(0, 0%, 0%, 0.5), var(--glow-green);
  animation: phoneFloat 5s ease-in-out infinite;
}

@keyframes phoneFloat {

  0%,
  100% {
    transform: translateY(0px) rotate(-2deg);
  }

  50% {
    transform: translateY(-20px) rotate(-2deg);
  }
}

.phone-notch {
  width: 100px;
  height: 28px;
  background: hsl(222, 30%, 6%);
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.phone-screen {
  padding: 12px 16px;
  height: calc(100% - 28px);
  overflow: hidden;
}

.phone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.phone-app-name {
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 700;
}

.phone-ai-badge {
  background: var(--accent-green-dim);
  border: 1px solid var(--border-accent);
  color: var(--accent-green);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

.phone-match-card {
  background: hsla(222, 30%, 16%, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
}

.match-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.match-vs {
  font-size: 0.6rem;
  color: var(--text-muted);
  background: var(--accent-green-dim);
  padding: 2px 8px;
  border-radius: 6px;
}

.match-prediction-bar {
  display: flex;
  gap: 4px;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}

.bar-home {
  background: var(--accent-green);
  border-radius: 4px 0 0 4px;
}

.bar-draw {
  background: hsl(45, 90%, 60%);
}

.bar-away {
  background: hsl(0, 80%, 60%);
  border-radius: 0 4px 4px 0;
}

.match-odds {
  display: flex;
  justify-content: space-between;
  font-size: 0.6rem;
}

.odd-item {
  text-align: center;
}

.odd-value {
  font-weight: 700;
  font-size: 0.7rem;
}

.odd-label {
  color: var(--text-muted);
}

.phone-ai-thinking {
  background: var(--accent-green-dim);
  border: 1px solid var(--border-accent);
  border-radius: 14px;
  padding: 12px;
  font-size: 0.65rem;
  color: var(--accent-green);
  margin-top: 8px;
  animation: aiPulse 3s ease-in-out infinite;
}

@keyframes aiPulse {

  0%,
  100% {
    opacity: 0.7;
  }

  50% {
    opacity: 1;
  }
}

.ai-thinking-dots {
  display: inline-flex;
  gap: 3px;
  margin-left: 6px;
}

.ai-thinking-dots span {
  width: 4px;
  height: 4px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: dotBounce 1.4s ease-in-out infinite;
}

.ai-thinking-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.ai-thinking-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dotBounce {

  0%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-6px);
  }
}

.phone-glow-ring {
  position: absolute;
  width: 350px;
  height: 350px;
  border: 1px solid var(--border-accent);
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  animation: ringPulse 4s ease-in-out infinite;
  pointer-events: none;
}

.phone-glow-ring-2 {
  position: absolute;
  width: 450px;
  height: 450px;
  border: 1px solid hsla(142, 72%, 50%, 0.08);
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  animation: ringPulse 4s ease-in-out infinite 1s;
  pointer-events: none;
}

@keyframes ringPulse {

  0%,
  100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
  }
}

/* --- Floating Cards --- */
.floating-card {
  position: absolute;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.75rem;
  animation: cardFloat 4s ease-in-out infinite;
}

.floating-card-1 {
  top: 10%;
  left: -10%;
  animation-delay: 0s;
}

.floating-card-2 {
  bottom: 20%;
  right: -8%;
  animation-delay: 1.5s;
}

@keyframes cardFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.fc-label {
  color: var(--text-muted);
  font-size: 0.65rem;
  margin-bottom: 2px;
}

.fc-value {
  font-weight: 700;
  color: var(--accent-green);
  font-size: 0.9rem;
}

/* --- Sections --- */
section {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--accent-green);
  border-radius: 1px;
}

.section-title {
  font-family: var(--font-primary);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

/* --- Features --- */
.features {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.features-header {
  text-align: center;
  margin-bottom: 60px;
}

.features-header .section-label,
.features-header .section-subtitle {
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: linear-gradient(135deg, hsla(222, 30%, 12%, 0.6), hsla(222, 30%, 8%, 0.8));
  backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  /* GPU acceleration */
}

.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, hsla(142, 72%, 50%, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.feature-card:hover {
  border-color: hsla(142, 72%, 50%, 0.4);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px hsla(0, 0%, 0%, 0.4), 0 0 20px hsla(142, 72%, 50%, 0.1);
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 20px;
  background: var(--accent-green-dim);
  border: 1px solid var(--border-accent);
}

.feature-card:nth-child(2) .feature-icon {
  background: var(--accent-blue-dim);
  border-color: hsla(210, 95%, 60%, 0.3);
}

.feature-card:nth-child(3) .feature-icon {
  background: hsla(280, 70%, 60%, 0.1);
  border-color: hsla(280, 70%, 60%, 0.3);
}

.feature-card:nth-child(5) .feature-icon {
  background: hsla(40, 90%, 60%, 0.1);
  border-color: hsla(40, 90%, 60%, 0.3);
}

.feature-card:nth-child(6) .feature-icon {
  background: hsla(0, 70%, 60%, 0.1);
  border-color: hsla(0, 70%, 60%, 0.3);
}

.feature-title {
  font-family: var(--font-primary);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Stats Section --- */
.stats {
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.stat-card {
  padding: 36px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
}

.stat-number {
  font-family: var(--font-primary);
  font-size: 2.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* --- How It Works --- */
.how-it-works {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.how-header {
  text-align: center;
  margin-bottom: 60px;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

.how-steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(16.6% + 20px);
  right: calc(16.6% + 20px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-accent), var(--border-accent), transparent);
}

.step-card {
  text-align: center;
}

.step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent-green-dim);
  border: 2px solid var(--border-accent);
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-green);
  position: relative;
  box-shadow: var(--glow-green);
}

.step-title {
  font-family: var(--font-primary);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Demo / Prediction Widget --- */
.demo-section {
  padding: 80px 0;
}

.demo-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.demo-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px;
  backdrop-filter: blur(20px);
}

.demo-title {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.demo-match-selector {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.demo-match-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-secondary);
}

.demo-match-btn:hover,
.demo-match-btn.active {
  border-color: var(--border-accent);
  background: var(--accent-green-dim);
  color: var(--text-primary);
}

.demo-match-btn.active .demo-match-arrow {
  color: var(--accent-green);
}

.demo-result {
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
  display: none;
}

.demo-result.visible {
  display: block;
}

.demo-result-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 16px;
}

.demo-result-vs {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 4px 10px;
  border-radius: 8px;
}

.prediction-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.prediction-bar-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.prediction-bar-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  width: 60px;
}

.prediction-bar-track {
  flex: 1;
  height: 8px;
  background: var(--bg-secondary);
  border-radius: 4px;
  overflow: hidden;
}

.prediction-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0;
}

.fill-home {
  background: linear-gradient(90deg, var(--accent-green), hsl(160, 80%, 45%));
}

.fill-draw {
  background: linear-gradient(90deg, hsl(45, 90%, 55%), hsl(35, 90%, 55%));
}

.fill-away {
  background: linear-gradient(90deg, hsl(210, 90%, 60%), hsl(220, 90%, 65%));
}

.prediction-bar-percent {
  font-size: 0.8rem;
  font-weight: 700;
  width: 36px;
  text-align: right;
}

.demo-ai-verdict {
  background: var(--accent-green-dim);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 0.85rem;
  color: var(--accent-green);
  font-weight: 600;
  text-align: center;
}

/* --- Download Section --- */
.download {
  text-align: center;
  padding: 100px 0;
}

.download-card {
  max-width: 700px;
  margin: 0 auto;
  padding: 60px 48px;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.download-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, hsla(142, 72%, 50%, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.download-title {
  font-family: var(--font-primary);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.download-subtitle {
  color: var(--text-secondary);
  margin-bottom: 36px;
  font-size: 1rem;
}

.download-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 24px;
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition);
  min-width: 180px;
}

.store-btn:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--glow-green);
}

.store-btn-icon {
  font-size: 28px;
}

.store-btn-text {
  text-align: left;
}

.store-btn-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.store-btn-name {
  font-weight: 700;
  font-size: 0.95rem;
}

/* --- Footer --- */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 32px;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
  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;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-badge {
    margin: 0 auto 24px;
  }

  .hero-subtitle {
    margin: 0 auto 40px;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .how-steps {
    grid-template-columns: 1fr;
  }

  .how-steps::before {
    display: none;
  }

  .demo-inner {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

/* --- Auth UI (Landing Page) --- */
.nav-google-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: hsl(222, 25%, 13%);
  border: 1px solid hsla(210, 30%, 70%, 0.14);
  border-radius: 30px;
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-google-btn:hover {
  border-color: var(--border-accent);
  background: hsl(222, 25%, 16%);
  transform: translateY(-1px);
}

.nav-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: hsl(222, 25%, 13%);
  border: 1px solid hsla(210, 30%, 70%, 0.14);
  border-radius: 30px;
  padding: 4px 12px 4px 4px;
}

.nav-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-accent);
}

.nav-user-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.nav-signout-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: var(--transition);
  font-family: var(--font-secondary);
}

.nav-signout-btn:hover {
  color: hsl(0, 70%, 60%);
}

/* ====================================
   Auth Modal (shared – index + chat)
   ==================================== */
.bb-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 16, 0.92);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.bb-modal-card {
  background: hsl(222, 28%, 10%);
  border: 1px solid hsla(210, 30%, 70%, 0.12);
  border-radius: 24px;
  padding: 36px 32px 32px;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(24px) scale(0.96);
  opacity: 0;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.18s ease;
}

.bb-modal-card.open {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.bb-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: hsl(222, 25%, 14%);
  border: 1px solid hsla(210, 30%, 70%, 0.1);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  color: hsl(210, 15%, 60%);
  cursor: pointer;
  transition: all 0.2s;
}

.bb-modal-close:hover {
  color: #fff;
  border-color: hsla(210, 30%, 70%, 0.25);
}

.bb-modal-logo {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, hsl(142, 72%, 50%), hsl(160, 70%, 40%));
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 26px;
  margin: 0 auto 12px;
  box-shadow: 0 0 32px hsla(142, 72%, 50%, 0.22);
}

.bb-modal-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 24px;
  color: #fff;
}

/* Tabs */
.bb-tabs {
  display: flex;
  background: hsl(222, 28%, 14%);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 24px;
}

.bb-tab {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: hsl(210, 15%, 55%);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.bb-tab.active {
  background: hsl(222, 28%, 19%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Form */
.bb-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bb-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.bb-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: hsl(210, 15%, 60%);
}

.bb-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.bb-input {
  width: 100%;
  background: hsl(222, 28%, 14%);
  border: 1px solid hsla(210, 30%, 70%, 0.1);
  border-radius: 10px;
  padding: 11px 14px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s;
}

.bb-input:focus {
  border-color: hsla(142, 72%, 50%, 0.4);
}

.bb-input::placeholder {
  color: hsl(210, 10%, 40%);
}

.bb-eye-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: hsl(210, 10%, 45%);
  padding: 4px;
  transition: color 0.2s;
}

.bb-eye-btn:hover {
  color: hsl(210, 25%, 70%);
}

.bb-error {
  font-size: 0.78rem;
  color: hsl(0, 70%, 62%);
  min-height: 18px;
  font-weight: 500;
}

.bb-submit-btn {
  background: linear-gradient(135deg, hsl(142, 72%, 44%), hsl(160, 70%, 38%));
  border: none;
  border-radius: 12px;
  color: hsl(222, 30%, 6%);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 13px;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 2px;
}

.bb-submit-btn:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
}

.bb-submit-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Divider */
.bb-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 16px;
  color: hsl(210, 10%, 40%);
  font-size: 0.78rem;
}

.bb-divider::before,
.bb-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: hsla(210, 30%, 70%, 0.08);
}

/* Google Button */
.bb-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  background: hsl(222, 28%, 14%);
  border: 1px solid hsla(210, 30%, 70%, 0.12);
  border-radius: 12px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.bb-google-btn:hover {
  background: hsl(222, 28%, 17%);
  border-color: hsla(210, 30%, 70%, 0.22);
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .bb-modal-card {
    padding: 28px 20px 24px;
  }
}

/* Legal links */

/* --- Top Score Ticker --- */
.top-ticker {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 36px;
  background: hsl(222, 25%, 4%);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 101;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-wrapper {
  display: flex;
  white-space: nowrap;
  animation: tickerMarquee 40s linear infinite;
}

.ticker-item {
  display: flex;
  align-items: center;
  padding: 0 32px;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 500;
  border-right: 1px solid var(--border-subtle);
}

.ticker-live {
  color: #ff4d4d;
  font-weight: 800;
  margin-right: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ticker-live::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #ff4d4d;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.ticker-final {
  color: var(--accent-green);
  font-weight: 800;
  margin-right: 8px;
}

@keyframes tickerMarquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes pulse {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(1.2);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* --- Accuracy Section --- */
.accuracy {
  padding: 100px 0;
  background: relative;
}

.accuracy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.accuracy-stats {
  display: flex;
  gap: 48px;
  margin-top: 40px;
}

.acc-stat-value {
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-primary);
  color: var(--accent-green);
  line-height: 1;
  margin-bottom: 8px;
}

.acc-stat-label {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.accuracy-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.win-card {
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.win-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: hsla(142, 72%, 50%, 0.15);
  color: var(--accent-green);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 800;
  border: 1px solid var(--border-accent);
}

.win-match {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.win-type {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.win-odds {
  margin-top: 12px;
  font-weight: 600;
  color: var(--accent-blue);
}


/* --- Pricing Section --- */
.pricing {
  padding: 100px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  max-width: 900px;
  margin: 48px auto 0;
}

.pricing-card {
  padding: 48px 32px;
  text-align: center;
  position: relative;
}

.pricing-card.premium {
  border-color: var(--border-accent);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.popular-badge {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-green);
  color: var(--bg-primary);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
}

.price-title {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.price-value {
  font-size: 3.5rem;
  font-weight: 800;
  font-family: var(--font-primary);
  margin-bottom: 32px;
}

.price-value span {
  font-size: 1rem;
  color: var(--text-secondary);
}

.price-features {
  list-style: none;
  margin-bottom: 40px;
  text-align: left;
}

.price-features li {
  color: var(--text-secondary);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 12px;
}

.price-features li::before {
  content: '✓';
  color: var(--accent-green);
  font-weight: 800;
}

.price-btn {
  display: block;
  padding: 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  background: var(--bg-secondary);
  color: var(--text-primary);
  transition: var(--transition);
  border: 1px solid var(--border-subtle);
}

.price-btn.featured {
  background: linear-gradient(135deg, var(--accent-green), hsl(160, 80%, 45%));
  color: var(--bg-primary);
  border: none;
}

.price-btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
}

@media (max-width: 992px) {
  .accuracy-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .accuracy-stats {
    justify-content: center;
  }
}

/* --- Shared section header (pricing, developers portal) --- */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .section-label,
.section-header .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* --- Active nav link (set by main.js scroll observer) --- */
.nav-links a.active-nav {
  color: var(--text-primary);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
