@import url('https://fonts.googleapis.com/css2?family=Anton&family=Caveat:wght@600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --ink-950: #05080A;
  --ink-900: #081114;
  --ink-800: #0D1E24;
  --ink-700: #16303A;
  --teal-700: #073B47;
  --teal-600: #0A5566;
  --cyan-500: #22D3EE;
  --cyan-400: #5FE3F7;
  --cyan-300: #8FE9FA;
  --gold-500: #F5C542;
  --gold-600: #D9A32B;
  --paper: #FFFFFF;
  --paper-2: #F4FAFC;
  --slate-600: #3E5A63;
  --slate-300: #C3D9E0;
  --live: #FF3B3B;
  --odds-bg: #E9F7EF;
  --odds-text: #17694A;
  --wa: #25D366;
  --wa-dark: #128C7E;
}

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

html {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--ink-950);
  color: var(--slate-300);
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

@media (min-width: 1024px) {
  html {
    font-size: 17px;
  }
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--ink-950);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 70px; /* Safe padding for mobile bottom bar */
}

@media (min-width: 1024px) {
  body {
    padding-bottom: 0;
  }
}

/* Typography Utility */
.font-display {
  font-family: 'Anton', impact, sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.9;
  font-style: italic;
}

.font-script {
  font-family: 'Caveat', cursive;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

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

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

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--cyan-400);
  outline-offset: 2px;
}

/* Buttons */
.btn-gold {
  background: linear-gradient(180deg, #FAD961 0%, #F5C542 50%, #D9A32B 100%);
  color: #05080A;
  font-weight: 700;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.4rem;
  font-size: 0.92rem;
  box-shadow: 0 4px 14px rgba(245, 197, 66, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 44px;
}

.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 197, 66, 0.5);
}

.btn-gold:active {
  transform: translateY(1px);
  background: var(--gold-600);
}

.btn-outline-dark {
  background: rgba(13, 30, 36, 0.6);
  border: 1px solid var(--ink-700);
  color: #FFFFFF;
  font-weight: 600;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.4rem;
  font-size: 0.92rem;
  backdrop-filter: blur(8px);
  transition: border-color 0.15s ease, background-color 0.15s ease;
  min-height: 44px;
}

.btn-outline-dark:hover {
  border-color: var(--cyan-400);
  background: rgba(34, 211, 238, 0.1);
  color: var(--cyan-300);
}

.btn-whatsapp {
  background-color: var(--wa);
  color: #FFFFFF;
  font-weight: 700;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  font-size: 1rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.15s ease, background-color 0.15s ease;
  min-height: 44px;
}

.btn-whatsapp:hover {
  background-color: var(--wa-dark);
  transform: translateY(-1px);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(5, 8, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ink-700);
}

.header-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-links {
  display: none;
  align-items: center;
  gap: 1.2rem;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
}

.nav-pill-active {
  background-color: var(--teal-700);
  color: var(--cyan-300);
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  border: 1px solid var(--cyan-500);
}

.nav-link {
  font-size: 0.9rem;
  color: #A0B3BC;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-link:hover {
  color: #FFFFFF;
}

/* Container */
.container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

/* Hero Section */
.hero-wrapper {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 75% 30%, rgba(34, 211, 238, 0.15) 0%, rgba(5, 8, 10, 0.95) 70%), var(--ink-950);
  border-bottom: 1px solid var(--ink-700);
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  min-height: 520px;
  padding: 2.5rem 0 3.5rem;
  position: relative;
  z-index: 10;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    min-height: 580px;
    padding: 3rem 0;
  }
}

.hero-title-giant {
  font-size: 3.5rem;
  line-height: 0.85;
  color: #FFFFFF;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .hero-title-giant {
    font-size: 5.5rem;
  }
}

@media (min-width: 1280px) {
  .hero-title-giant {
    font-size: 6.8rem;
  }
}

.hero-cyan-sub {
  color: var(--cyan-400);
  display: block;
  text-shadow: 0 0 20px rgba(34, 211, 238, 0.5);
}

.hero-eyebrow {
  color: var(--cyan-400);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Trust Bar */
.trust-bar {
  background: var(--ink-900);
  border-bottom: 1px solid var(--ink-700);
  padding: 0.85rem 0;
}

.trust-flex {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #FFFFFF;
}

/* Tournament Strip */
.tournament-strip {
  background: #FFFFFF;
  padding: 0.6rem 0;
  color: #05080A;
}

.tournament-flex {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}

.tournament-flex::-webkit-scrollbar {
  display: none;
}

.tournament-badge-active {
  background: #05080A;
  color: #FFFFFF;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.tournament-badge-muted {
  color: #556B75;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
}

/* Cards & Grids */
.match-card {
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  border-radius: 14px;
  padding: 1.2rem;
  transition: transform 0.2s, border-color 0.2s;
  position: relative;
}

.match-card:hover {
  transform: translateY(-2px);
  border-color: var(--teal-600);
}

.live-badge {
  background-color: var(--live);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.live-badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: #FFFFFF;
  border-radius: 50%;
  animation: pulse-dot 1.2s infinite;
}

@keyframes pulse-dot {
  0% { opacity: 1; }
  50% { opacity: 0.3; }
  100% { opacity: 1; }
}

.odds-chip {
  background-color: var(--odds-bg);
  color: var(--odds-text);
  font-weight: 800;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  text-align: center;
}

/* Sports Grid */
.sports-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

@media (min-width: 640px) {
  .sports-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .sports-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
  }
}

.sport-card {
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/5;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  transition: transform 0.2s, border-color 0.2s;
}

.sport-card:hover {
  transform: translateY(-3px);
  border-color: var(--cyan-400);
}

.sport-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.3s;
}

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

.sport-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(5,8,10,0.1) 0%, rgba(5,8,10,0.85) 100%);
  z-index: 2;
}

.sport-card-content {
  position: relative;
  z-index: 3;
}

/* Table of Contents */
.toc-box {
  background: var(--ink-900);
  border: 1px solid var(--ink-700);
  border-radius: 14px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.toc-box a {
  color: var(--cyan-400);
  transition: color 0.15s;
}

.toc-box a:hover {
  color: var(--cyan-300);
  text-decoration: underline;
}

/* Comparison Table */
.comparison-table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: 12px;
  border: 1px solid var(--ink-700);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.comparison-table th {
  background: var(--ink-800);
  color: #FFFFFF;
  padding: 0.9rem 1.2rem;
  font-weight: 700;
  border-bottom: 1px solid var(--ink-700);
}

.comparison-table td {
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid var(--ink-700);
  background: var(--ink-900);
}

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

/* FAQ Accordion */
.faq-item {
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  border-radius: 12px;
  margin-bottom: 0.8rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.1rem 1.3rem;
  text-align: left;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: none;
  font-size: 1rem;
}

.faq-answer {
  padding: 0 1.3rem 1.2rem;
  color: var(--slate-300);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Mobile Bottom Tab Bar */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: rgba(5, 8, 10, 0.98);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--ink-700);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
}

@media (min-width: 1024px) {
  .mobile-bottom-bar {
    display: none;
  }
}

.bottom-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #7A939E;
  font-size: 0.72rem;
  font-weight: 600;
  gap: 0.2rem;
  padding: 0.4rem;
}

.bottom-tab-active {
  color: var(--cyan-400);
}

/* Floating WhatsApp FAB */
.whatsapp-fab {
  position: fixed;
  bottom: 76px;
  right: 18px;
  z-index: 99;
  background: var(--wa);
  color: #FFFFFF;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Popup Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 8, 10, 0.85);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-content {
  background: var(--ink-800);
  border: 1px solid var(--cyan-500);
  border-radius: 18px;
  max-width: 440px;
  width: 100%;
  padding: 2rem;
  position: relative;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(34, 211, 238, 0.2);
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: #A0B3BC;
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
