/* === CSS RESET & BASE === */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* LIGHT THEME TOKENS */
  --bg: #ffffff;
  --bg-offset: #f8fafc;
  --text: #0f172a;
  --text-muted: #64748b;
  --accent: #22c55e; /* Football Green */
  --accent-blue: #2563eb; /* FM Blue */
  --accent-glow: rgba(34, 197, 94, 0.5);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.05);
  --noise: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Chillax', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  font-size: 16px;
  overflow-x: clip;
  color: var(--text);
  background: var(--bg);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--noise);
  opacity: 0.03;
  pointer-events: none;
  z-index: 9999;
}

h1, h2, h3, h4 {
  font-family: 'General Sans', sans-serif;
  line-height: 1.1;
  font-weight: 700;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* === STRUCTURAL BASELINES === */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 5%;
  width: 100%;
}

section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.section-narrow {
  padding: 60px 0;
}

/* === PREMIUM UI BLOCKS === */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-glass);
}

.btn-neon {
  background: var(--text);
  color: #fff;
  padding: 1.25rem 2.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.btn-neon::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, var(--accent), var(--accent-blue));
  border-radius: calc(var(--radius-md) + 2px);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-neon:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 30px -10px var(--accent-glow);
}

.btn-neon:hover::after {
  opacity: 1;
}

.neon-pulse {
  animation: pulse-neon 2s infinite;
}

@keyframes pulse-neon {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* === NAVIGATION === */
.tactical-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: all 0.4s ease;
}

.tactical-nav.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  font-family: 'General Sans', sans-serif;
}

.nav-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
}

.nav-links {
  display: none;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
    gap: 2.5rem;
    font-weight: 600;
  }

  .nav-link {
    position: relative;
    padding: 0.5rem 0;
  }

  .nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
  }

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

/* === HERO === */
.stadium-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
  text-align: center;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent-blue);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-weight: 700;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #1e293b, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.hero-tagline {
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* === REVIEWS TICKER === */
.fan-voices {
  background: var(--bg-offset);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.ticker-wrap {
  width: 100%;
  overflow: hidden;
  padding: 2rem 0;
  position: relative;
}

.ticker {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: ticket-scroll 40s linear infinite;
}

@keyframes ticket-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.review-card {
  background: var(--bg);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  width: 320px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--glass-border);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.stars {
  color: #fbbf24;
  display: flex;
  gap: 2px;
}

.reviewer-name {
  font-weight: 700;
  font-size: 0.9rem;
}

.review-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: italic;
}

.aggregated-rating {
  text-align: center;
  margin-top: 3rem;
}

.rating-number {
  font-size: 3.5rem;
  font-weight: 700;
  font-family: 'General Sans', sans-serif;
  color: var(--text);
  line-height: 1;
}

/* === GALLERY === */
.match-gallery {
  background: var(--bg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 4rem;
}

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

.device-mockup {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  border: 3px solid #1e293b;
  border-radius: 40px;
  background: #1e293b;
  position: relative;
  padding: 8px;
  aspect-ratio: 9 / 16;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s ease;
}

.device-mockup:nth-child(odd) { transform: rotate(-3deg); }
.device-mockup:nth-child(even) { transform: rotate(3deg); }

.device-mockup:hover {
  transform: rotate(0) translateY(-10px) scale(1.05);
  z-index: 10;
}

.device-mockup::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 25px;
  background: #1e293b;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 2;
}

.device-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
}

/* === FEATURES === */
.manager-features {
  background: var(--bg-offset);
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-top: 4rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  padding: 2rem 0;
}

@media (min-width: 768px) {
  .feature-item {
    flex-direction: row;
    align-items: center;
  }

  .feature-item:nth-child(even) {
    flex-direction: row-reverse;
  }
}

.feature-visual {
  flex: 1;
}

.feature-visual img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
}

.feature-info {
  flex: 1;
  position: relative;
}

.feature-number {
  position: absolute;
  top: -1rem;
  left: -2rem;
  font-size: 8rem;
  font-family: 'General Sans', sans-serif;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.1;
  line-height: 1;
  pointer-events: none;
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: #fff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.feature-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text);
}

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

/* === STATS === */
.club-records {
  background: var(--bg);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.stat-card {
  padding: 3rem 2rem;
  text-align: center;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
}

.stat-card:nth-child(1) { border-bottom: 4px solid #3b82f6; }
.stat-card:nth-child(2) { border-bottom: 4px solid #10b981; }
.stat-card:nth-child(3) { border-bottom: 4px solid #f59e0b; }
.stat-card:nth-child(4) { border-bottom: 4px solid #8b5cf6; }

.stat-icon {
  font-size: 2.5rem;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.stat-number {
  font-size: 3rem;
  font-family: 'General Sans', sans-serif;
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.stat-label {
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8125rem;
}

/* === CTA === */
.final-whistle {
  height: 100vh;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at center, #f0fdf4 0%, #ffffff 100%);
  text-align: center;
}

.cta-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 2rem;
}

/* === FOOTER === */
.staff-footer {
  background: var(--bg-offset);
  padding: 80px 0 40px;
  border-top: 1px solid var(--glass-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.footer-card {
  padding: 2rem;
  background: var(--bg);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  font-family: 'General Sans', sans-serif;
}

.footer-logo img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
}

.footer-heading {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.newsletter-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: #fff;
  font-family: inherit;
}

.newsletter-btn {
  padding: 0.75rem;
  background: var(--text);
  color: #fff;
  border-radius: 12px;
  border: none;
  cursor: pointer;
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* === UTILS & ANIMATIONS === */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 4rem;
  font-size: 1.125rem;
}

.svg-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 1;
}

.svg-divider svg {
  display: block;
  width: 100%;
  height: 40px;
}

/* RESPONSIVE HAMBURGER */
.mobile-toggle {
  display: block;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

@media (min-width: 768px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu a {
  font-size: 2rem;
  font-weight: 700;
  font-family: 'General Sans', sans-serif;
}
