/* =========================================================================
   eFootball™ Official Web Site — 2026 Master Esports Design System
   Brand Palette: Midnight Navy (#080c16), Electric Cyan (#00f2fe), Neon Emerald (#00ff88)
   ========================================================================= */

:root {
  --bg-primary: #070a13;
  --bg-secondary: #0d1322;
  --bg-card: rgba(16, 24, 42, 0.75);
  --bg-card-hover: rgba(22, 33, 58, 0.85);
  --border-glow: rgba(0, 242, 254, 0.25);
  --border-subtle: rgba(255, 255, 255, 0.08);

  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-cyan: #00f2fe;
  --accent-blue: #4facfe;
  --accent-neon: #00ff88;
  --accent-gold: #fbbf24;

  --gradient-brand: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  --gradient-neon: linear-gradient(135deg, #00ff88 0%, #00f2fe 100%);
  --gradient-dark: linear-gradient(180deg, #070a13 0%, #0d1322 100%);

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --shadow-glow: 0 0 25px rgba(0, 242, 254, 0.2);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* BASE RESETS */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
}

/* CSS CONTAINMENT FOR SUB-MILLISECOND WRS RENDERING */
.below-fold-containment {
  content-visibility: auto;
  contain-intrinsic-size: auto 480px;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.35rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--accent-cyan);
}

p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

strong {
  color: var(--text-primary);
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: all 0.25s ease;
}

a:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.6);
}

/* HEADER & NAVBAR */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 10, 19, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 0;
}

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

.brand-wrapper .logo-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.header-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.3);
}

.brand-badge {
  background: #e50914;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.brand-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
  letter-spacing: -0.02em;
}

.brand-text span {
  color: var(--accent-cyan);
  font-weight: 900;
}

.main-navigation .nav-list {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.btn-primary-glow {
  background: var(--gradient-brand);
  color: #070a13;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-glow);
  display: inline-block;
}

.btn-primary-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.5);
  color: #070a13;
}

/* MAIN LAYOUT */
.content-wrapper {
  max-width: 1240px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* HERO SECTION */
.hero-section {
  position: relative;
  padding: 4rem 2rem;
  background: radial-gradient(circle at 50% 20%, rgba(0, 242, 254, 0.12) 0%, rgba(7, 10, 19, 0) 70%), var(--bg-secondary);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: var(--accent-cyan);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.live-pulse {
  width: 8px;
  height: 8px;
  background: var(--accent-neon);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-neon);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 15px var(--accent-neon); }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-lead {
  font-size: 1.15rem;
  max-width: 860px;
  margin: 0 auto 2rem;
  color: #cbd5e1;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn-hero-primary {
  background: var(--gradient-brand);
  color: #070a13;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-glow);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  color: #070a13;
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-pill);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-cyan);
}

.hero-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 1.25rem 1rem;
  border-radius: var(--radius-md);
  text-align: center;
  backdrop-filter: blur(8px);
}

.metric-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-cyan);
  margin-bottom: 0.25rem;
}

.metric-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* INTENT MESH BAR */
.intent-mesh-bar {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin-bottom: 3rem;
}

.mesh-container {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: center;
}

.mesh-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 0.85rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
}

.mesh-chip:hover {
  background: rgba(0, 242, 254, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* SECTION HEADERS */
.section-header {
  margin-bottom: 2rem;
}

.section-header.text-center {
  text-align: center;
}

.sub-heading {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-neon);
  margin-bottom: 0.35rem;
}

/* CALCULATOR / UTILITY SECTION */
.utility-section {
  margin-bottom: 4rem;
}

.calculator-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

.calc-input-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 0.65rem;
}

.form-control {
  width: 100%;
  background: #060911;
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.25);
}

.range-slider {
  width: 100%;
  accent-color: var(--accent-cyan);
  margin-top: 0.5rem;
}

.range-value-display {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 0.4rem;
}

.range-value-display strong {
  color: var(--accent-cyan);
  font-size: 1.1rem;
}

.calc-results-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  background: rgba(6, 9, 17, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.result-box {
  text-align: center;
}

.result-title {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.result-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent-neon);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.result-number.text-cyan {
  color: var(--accent-cyan);
}

.result-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* TABLES (FACT BUNDLE MATRIX) */
.table-section {
  margin-bottom: 4rem;
}

.table-responsive {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

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

.fact-table th, .fact-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.fact-table thead th {
  background: rgba(13, 19, 34, 0.95);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
}

.fact-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.badge-active {
  display: inline-block;
  background: rgba(0, 255, 136, 0.12);
  border: 1px solid rgba(0, 255, 136, 0.3);
  color: var(--accent-neon);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

/* ARTICLES & PROSE CONTENT */
.guide-article {
  margin-bottom: 4rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}

.prose-content ul {
  list-style: none;
  margin: 1rem 0 1.5rem;
}

.prose-content ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.85rem;
  color: var(--text-secondary);
}

.prose-content ul li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-size: 1.1rem;
}

/* STEPS CONTAINER (HOW TO) */
.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.step-card {
  background: rgba(6, 9, 17, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
  transition: border-color 0.25s ease;
}

.step-card:hover {
  border-color: var(--accent-cyan);
}

.step-num {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  color: rgba(0, 242, 254, 0.3);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.step-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.step-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.step-card code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent-cyan);
  font-size: 0.85rem;
}

/* GLOSSARY */
.glossary-section {
  margin-bottom: 4rem;
}

.glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

.glossary-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.glossary-item dt {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
}

.glossary-item dd {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* FAQ ACCORDION */
.faq-section {
  margin-bottom: 4rem;
}

.faq-accordion {
  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: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: var(--border-glow);
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  outline: none;
  list-style: none;
  position: relative;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 1.5rem;
  font-size: 1.4rem;
  color: var(--accent-cyan);
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

/* FOOTER */
.site-footer {
  background: #04060d;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 1.5rem 2rem;
  color: var(--text-secondary);
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.brand-col .brand-badge {
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

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

.footer-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

.legal-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .main-navigation {
    display: none;
  }
  .hero-section {
    padding: 3rem 1.25rem;
  }
  .calculator-card {
    padding: 1.5rem;
  }
  .footer-container {
    grid-template-columns: 1fr;
  }
}
