/* ==========================================================================
   CRICKET LIVE SCORE : LIVE LINE - STYLESHEET
   Theme: Stadium Dark / Violet Neon / Sports Tech
   ========================================================================== */

:root {
  --bg-main: #0a0614;
  --bg-surface: #120a24;
  --bg-surface-elevated: #1a0f35;
  --bg-card: rgba(26, 15, 53, 0.75);
  --bg-card-hover: rgba(38, 22, 77, 0.85);
  --border-subtle: rgba(139, 92, 246, 0.2);
  --border-glow: rgba(168, 85, 247, 0.5);

  --primary: #8b5cf6;
  --primary-light: #a78bfa;
  --primary-glow: rgba(139, 92, 246, 0.4);
  --accent-purple: #7c3aed;
  --accent-cyan: #38bdf8;
  --live-red: #ef4444;
  --live-red-glow: rgba(239, 68, 68, 0.4);
  --gold: #f59e0b;
  --green: #10b981;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  --container-max: 1200px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 20% 15%, rgba(124, 58, 237, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 25%, rgba(56, 189, 248, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 50% 70%, rgba(139, 92, 246, 0.12) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: #ffffff;
  font-weight: 700;
  line-height: 1.2;
}

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

/* Badges & Pills */
.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ff6b6b;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 0 15px var(--live-red-glow);
}

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

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.2); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid var(--border-subtle);
  color: var(--primary-light);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 6, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-smooth);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 16px var(--primary-glow);
  border: 1.5px solid rgba(168, 85, 247, 0.4);
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--primary-light);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition-smooth);
  position: relative;
  padding: 0.35rem 0;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: var(--transition-smooth);
}

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

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: linear-gradient(135deg, #7c3aed, #9333ea);
  color: #ffffff;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.nav-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.6);
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
}

.nav-right-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  box-shadow: 0 6px 25px rgba(124, 58, 237, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.6);
  background: linear-gradient(135deg, #8b5cf6, #c084fc);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.playstore-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: #000000;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 0.65rem 1.4rem;
  transition: var(--transition-smooth);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.playstore-badge-btn:hover {
  border-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.35);
}

.playstore-badge-btn svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.playstore-badge-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.playstore-badge-text .sub {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  font-weight: 500;
}

.playstore-badge-text .main {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.appstore-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: #000000;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 0.65rem 1.4rem;
  transition: var(--transition-smooth);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.appstore-badge-btn:hover {
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

.appstore-badge-btn svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  fill: #ffffff;
}

.appstore-badge-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.appstore-badge-text .sub {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  font-weight: 500;
}

.appstore-badge-text .main {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.qr-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.25rem;
  border-radius: var(--radius-full);
}

.qr-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.qr-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 10px var(--primary-glow);
}

.device-detected-pill {
  display: none;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  margin-top: 0.35rem;
}

.device-detected-pill.visible {
  display: inline-flex;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  padding: 4rem 0 5rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.25) 0%, rgba(56, 189, 248, 0.05) 50%, transparent 70%);
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-tag {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, #a78bfa 70%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: 1rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
}

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

/* Hero Visual / Mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-mockup-wrap {
  position: relative;
  max-width: 380px;
  width: 100%;
}

.phone-mockup-frame {
  position: relative;
  border-radius: 36px;
  padding: 10px;
  background: linear-gradient(135deg, #2b1754, #120925);
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.7),
    0 0 40px rgba(124, 58, 237, 0.35);
  border: 2px solid rgba(168, 85, 247, 0.4);
}

.phone-screen {
  border-radius: 28px;
  overflow: hidden;
  background: #000;
  display: block;
  position: relative;
}

.phone-screen img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.hero-mockup-wrap:hover .phone-screen img {
  transform: scale(1.02);
}

/* Floating overlay cards */
.floating-card {
  position: absolute;
  background: rgba(22, 12, 44, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 16px;
  padding: 0.75rem 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 2;
  animation: floatCard 4s ease-in-out infinite alternate;
}

.floating-card-1 {
  top: 15%;
  left: -20px;
}

.floating-card-2 {
  bottom: 12%;
  right: -20px;
  animation-delay: -2s;
}

@keyframes floatCard {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

.floating-card-inner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.floating-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(124, 58, 237, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  font-size: 1.1rem;
}

.floating-card-text {
  display: flex;
  flex-direction: column;
}

.floating-card-text .title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
}

.floating-card-text .desc {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ==========================================================================
   LIVE SIMULATOR / MATCH TICKER SECTION
   ========================================================================== */
.live-ticker-section {
  padding: 2.5rem 0;
  background: rgba(18, 10, 36, 0.6);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.ticker-card {
  background: linear-gradient(135deg, rgba(29, 17, 58, 0.85), rgba(16, 9, 34, 0.95));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
}

.ticker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ticker-match-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.ticker-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sim-toggle-btn {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid var(--primary);
  color: #ffffff;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.sim-toggle-btn:hover {
  background: var(--primary);
}

.ticker-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 2rem;
  align-items: center;
}

.team-score-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.team-name-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.25rem;
  font-weight: 800;
}

.team-flag {
  font-size: 1.4rem;
}

.live-score-number {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1;
}

.live-score-number span {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 0.4rem;
}

.current-batsmen {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.25);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.batsman-line {
  display: flex;
  justify-content: space-between;
}

.batsman-line.on-strike {
  color: #ffffff;
  font-weight: 700;
}

.batsman-line.on-strike span::after {
  content: ' *';
  color: var(--primary-light);
}

.over-balls-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.over-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.balls-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ball-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  transition: transform 0.2s;
}

.ball-circle.four {
  background: rgba(56, 189, 248, 0.2);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.ball-circle.six {
  background: rgba(139, 92, 246, 0.3);
  border-color: var(--primary-light);
  color: #c084fc;
  box-shadow: 0 0 10px var(--primary-glow);
}

.ball-circle.wicket {
  background: rgba(239, 68, 68, 0.25);
  border-color: var(--live-red);
  color: #fca5a5;
  box-shadow: 0 0 10px var(--live-red-glow);
}

.live-commentary-preview {
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  border-left: 3px solid var(--primary);
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.live-commentary-preview strong {
  color: #ffffff;
}

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */
.section-padding {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

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

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 25px rgba(124, 58, 237, 0.2);
}

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

.feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(168, 85, 247, 0.1));
  border: 1px solid rgba(168, 85, 247, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-light);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.feature-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   FEATURE DETAIL HIGHLIGHTS (alternating rows)
   ========================================================================== */
.feature-highlight-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
}

.feature-highlight-row.reverse {
  direction: rtl;
}

.feature-highlight-row.reverse .highlight-content,
.feature-highlight-row.reverse .highlight-image {
  direction: ltr;
}

.highlight-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.highlight-title {
  font-size: 2rem;
  font-weight: 800;
}

.highlight-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.highlight-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.highlight-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-main);
}

.highlight-list li svg {
  width: 20px;
  height: 20px;
  color: var(--primary-light);
  flex-shrink: 0;
  margin-top: 2px;
}

.highlight-image-wrap {
  display: flex;
  justify-content: center;
  position: relative;
}

.app-screenshot-frame {
  max-width: 260px;
  width: 100%;
  border-radius: 30px;
  padding: 8px;
  background: linear-gradient(135deg, #2e1654, #140929);
  border: 1.5px solid rgba(168, 85, 247, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(124, 58, 237, 0.25);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.app-screenshot-frame:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), 0 0 40px rgba(168, 85, 247, 0.4);
}

.app-screenshot-frame img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  display: block;
}

/* ==========================================================================
   APP SCREENSHOTS GALLERY
   ========================================================================== */
.gallery-section {
  background: rgba(14, 8, 28, 0.5);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.gallery-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.gallery-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(139, 92, 246, 0.3);
}

.gallery-thumb {
  width: 100%;
  max-width: 180px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.gallery-thumb img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s;
}

.gallery-card:hover .gallery-thumb img {
  transform: scale(1.05);
}

.gallery-label {
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  color: #ffffff;
}

.gallery-caption {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

/* ==========================================================================
   TOURNAMENTS / LEAGUES
   ========================================================================== */
.tournaments-wrap {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2rem;
}

.tournament-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  transition: var(--transition-smooth);
}

.tournament-badge:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.tournament-badge .emoji {
  font-size: 1.1rem;
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  transition: var(--transition-smooth);
}

.testimonial-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
}

.testimonial-quote {
  font-size: 1.05rem;
  color: #f1f5f9;
  line-height: 1.6;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
}

.author-details {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.author-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.rating-stars {
  color: #f59e0b;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-wrap {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item.active {
  border-color: var(--border-glow);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  font-size: 1.25rem;
  transition: transform 0.3s;
  color: var(--primary-light);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 250px;
  padding: 0 1.5rem 1.25rem;
}

/* ==========================================================================
   DOWNLOAD BOTTOM BANNER & QR CODE
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, rgba(46, 21, 88, 0.9), rgba(18, 9, 38, 0.95));
  border: 1px solid var(--border-glow);
  border-radius: 28px;
  padding: 3.5rem 3rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 50px rgba(124, 58, 237, 0.3);
}

.cta-banner-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.3) 0%, transparent 70%);
  top: -50px;
  right: -50px;
  pointer-events: none;
}

.cta-banner-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.cta-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cta-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.qr-box-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(10, 6, 20, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 1.75rem;
  text-align: center;
  backdrop-filter: blur(10px);
}

.qr-image {
  width: 170px;
  height: 170px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgba(139, 92, 246, 0.3);
  margin-bottom: 0.75rem;
}

.qr-caption {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: #06030d;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4rem 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 320px;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-link {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.footer-link:hover {
  color: var(--primary-light);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ==========================================================================
   LIGHTBOX MODAL
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 2, 8, 0.9);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 2rem;
}

.lightbox-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 460px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 40px rgba(124, 58, 237, 0.4);
  border: 2px solid rgba(168, 85, 247, 0.4);
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3.5rem;
  }

  .hero-content {
    align-items: center;
  }

  .hero-subtitle {
    margin: 0 auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .ticker-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

  .feature-highlight-row,
  .feature-highlight-row.reverse {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
    direction: ltr;
  }

  .highlight-content {
    align-items: center;
  }

  .highlight-list {
    align-items: center;
    text-align: left;
  }

  .cta-banner-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-content {
    align-items: center;
  }

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

@media (max-width: 768px) {
  .navbar-container {
    height: 68px;
    padding: 0 0.5rem;
  }

  .brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .brand-title {
    font-size: 0.92rem;
  }

  .brand-sub {
    font-size: 0.65rem;
  }

  .nav-cta-btn {
    padding: 0.5rem;
    border-radius: 10px;
  }

  .nav-cta-text {
    display: none !important;
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    font-size: 1.25rem;
    cursor: pointer;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    width: 100%;
    background: rgba(12, 7, 24, 0.98);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
  }

  .nav-links.mobile-open {
    display: flex;
  }

  .hero-title {
    font-size: 1.65rem;
    line-height: 1.25;
    text-align: center;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .hero-tag {
    justify-content: center;
  }

  .hero-subtitle {
    font-size: 0.92rem;
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
    gap: 0.85rem;
  }

  .hero-actions .playstore-badge-btn,
  .hero-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    display: flex;
    justify-content: space-around;
    width: 100%;
  }

  .stat-item {
    text-align: center;
  }

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

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

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

  .floating-card-1 {
    left: 0;
    top: 5%;
  }

  .floating-card-2 {
    right: 0;
    bottom: 5%;
  }
}

@media (max-width: 480px) {
  .nav-cta-btn span {
    display: none;
  }
  .nav-cta-btn {
    padding: 0.45rem 0.6rem;
    border-radius: 10px;
  }
  .hero-title {
    font-size: 1.45rem;
    line-height: 1.25;
  }
  .hero {
    padding: 2rem 0 3rem;
  }
}
