/* ==========================================================================
   Bracket Soccer — stadium-night theme
   ========================================================================== */

:root {
  --bg:        #07150f;
  --bg-1:     #0a1e16;
  --bg-2:     #0e2b1f;
  --surface:  #143025;
  --surface-2:#1a3b2d;
  --line:     rgba(253, 224, 71, 0.12);
  --line-2:   rgba(255, 255, 255, 0.08);
  --text:     #f3f6f4;
  --muted:    #94a89c;
  --dim:      #6e8579;
  --gold:     #fde047;
  --gold-2:   #fbbf24;
  --emerald:  #34d399;
  --emerald-2:#10b981;
  --danger:   #ef4444;
  --radius:   14px;
  --radius-sm:8px;
  --shadow:   0 18px 40px -18px rgba(0, 0, 0, 0.6);
  --pitch-stripe: rgba(255,255,255,0.025);
}

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

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(ellipse at top, rgba(52,211,153,0.08), transparent 55%),
    repeating-linear-gradient(90deg, transparent 0 80px, var(--pitch-stripe) 80px 160px),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Bebas Neue', 'Inter', sans-serif; letter-spacing: 0.5px; font-weight: 400; line-height: 1.05; color: var(--text); }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 12px; }
h3 { font-size: 1.35rem; margin-bottom: 8px; letter-spacing: 1px; text-transform: uppercase; }
h4 { font-size: 0.78rem; letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 14px; color: var(--gold); font-weight: 400; }
p  { margin-bottom: 14px; color: var(--muted); }

a { color: var(--gold); text-decoration: none; transition: color .15s; }
a:hover { color: var(--gold-2); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 22px; }

/* ------- Cookie banner ------- */
.cookie-banner {
  position: sticky; top: 0; z-index: 90;
  background: rgba(7,21,15,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.cookie-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 10px 0; color: var(--muted); }
.cookie-banner a { color: var(--gold); }
.cookie-banner button {
  background: var(--gold); color: var(--bg-1); border: none;
  border-radius: 999px; padding: 7px 18px; cursor: pointer;
  font-weight: 700; font-size: 13px; transition: transform .15s;
}
.cookie-banner button:hover { transform: translateY(-1px); }

/* ------- Navbar ------- */
.navbar { padding: 22px 0; position: relative; z-index: 100; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem; letter-spacing: 2.5px;
  color: var(--text); text-transform: uppercase;
}
.logo-mark {
  display: inline-flex; width: 38px; height: 38px;
  align-items: center; justify-content: center;
  background: var(--gold); color: var(--bg-1);
  border-radius: 10px; box-shadow: var(--shadow);
}
.logo-accent { color: var(--gold); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  color: var(--text); font-weight: 500; font-size: 14px;
  letter-spacing: 0.5px; position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 2px; background: var(--gold); transition: right .2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { right: 0; }

.nav-toggle {
  display: none; position: relative; z-index: 110;
  width: 44px; height: 44px; padding: 0;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; cursor: pointer;
  align-items: center; justify-content: center;
  transition: background .2s, border-color .2s;
}
.nav-toggle:hover { background: rgba(255,255,255,0.08); border-color: rgba(244,196,48,0.35); }
.nav-toggle .bar {
  display: block; position: absolute; left: 12px; right: 12px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease, top .25s ease, background .2s;
}
.nav-toggle .bar:nth-child(1) { top: 15px; }
.nav-toggle .bar:nth-child(2) { top: 21px; }
.nav-toggle .bar:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] .bar { background: var(--gold); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.nav-backdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(6, 18, 14, 0.6); backdrop-filter: blur(2px);
  z-index: 90; opacity: 0; transition: opacity .25s ease;
}
.nav-backdrop.is-open { display: block; opacity: 1; }

/* ------- Hero ------- */
.hero {
  position: relative; overflow: hidden;
  padding: 90px 0 110px;
  background-size: cover; background-position: center;
  border-bottom: 1px solid var(--line);
}
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(253,224,71,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(253,224,71,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 35%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 35%, transparent 75%);
}
.hero-inner { position: relative; z-index: 2; max-width: 880px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold); background: rgba(253,224,71,0.08);
  border: 1px solid rgba(253,224,71,0.25);
  padding: 8px 16px; border-radius: 999px; margin-bottom: 26px;
  font-weight: 600;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(253,224,71,0.6); animation: pulse 1.6s infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(253,224,71,0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(253,224,71,0); }
  100% { box-shadow: 0 0 0 0 rgba(253,224,71,0); }
}
.hero-accent { color: var(--gold); }
.hero-sub { font-size: 1.12rem; color: var(--muted); max-width: 640px; margin: 22px 0 32px; line-height: 1.65; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 50px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 580px; }
.stat {
  background: rgba(20,48,37,0.7); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 14px 16px; text-align: center;
  backdrop-filter: blur(6px);
}
.stat-num { display: block; font-family: 'Bebas Neue', sans-serif; font-size: 2.2rem; color: var(--gold); line-height: 1; }
.stat-lbl { display: block; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

/* ------- Buttons ------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  border-radius: 999px; padding: 12px 22px;
  font-weight: 600; font-size: 14px; letter-spacing: 0.4px;
  border: 1px solid transparent; cursor: pointer; transition: all .18s;
  font-family: 'Inter', sans-serif; text-decoration: none;
}
.btn-primary { background: var(--gold); color: var(--bg-1); }
.btn-primary:hover { background: var(--gold-2); color: var(--bg-1); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--line); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost { background: rgba(255,255,255,0.04); color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); color: var(--gold); }
.btn-lg { padding: 16px 30px; font-size: 15px; }
.btn-block { width: 100%; justify-content: center; padding: 14px; font-size: 15px; }

/* ------- Section heads ------- */
section { padding: 80px 0; }
.section-head { margin-bottom: 40px; max-width: 720px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.05rem; }
.kicker { display: inline-block; font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; font-weight: 600; }

/* ------- Bracket Section ------- */
.bracket-section { background: linear-gradient(180deg, transparent, var(--bg-1) 30%, var(--bg-1)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.bracket-controls { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.bracket-controls .btn { padding: 10px 18px; font-size: 13px; }

.bracket-scroll { overflow-x: auto; padding-bottom: 14px; margin: 0 -22px; padding: 0 22px 14px; }
.bracket-scroll::-webkit-scrollbar { height: 8px; }
.bracket-scroll::-webkit-scrollbar-thumb { background: var(--surface); border-radius: 4px; }

.bracket {
  display: grid;
  grid-template-columns: repeat(6, minmax(180px, 1fr));
  gap: 24px;
  align-items: stretch;
  min-width: 1180px;
}
.bracket-col { display: flex; flex-direction: column; justify-content: space-around; gap: 14px; position: relative; }
.bracket-col-head { font-family: 'Bebas Neue', sans-serif; font-size: 0.95rem; letter-spacing: 2px; color: var(--gold); text-align: center; padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }

.match {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .15s, transform .15s;
  position: relative;
}
.match::after {
  content: ''; position: absolute; right: -12px; top: 50%;
  width: 12px; height: 1px; background: var(--line); opacity: .7;
}
.bracket-col:last-child .match::after { display: none; }
.match-team {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 10px 12px;
  font-size: 13.5px; font-weight: 500;
  cursor: pointer; transition: background .15s, color .15s;
  background: transparent; border: none; color: var(--text);
  text-align: left; width: 100%; font-family: inherit;
  border-bottom: 1px solid var(--line-2);
}
.match-team:last-child { border-bottom: none; }
.match-team:hover:not(:disabled) { background: rgba(253,224,71,0.06); color: var(--gold); }
.match-team:disabled { cursor: default; color: var(--dim); }
.match-team .flag {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 16px; font-size: 10.5px; font-weight: 800;
  letter-spacing: 0.3px; border-radius: 2px;
  color: var(--bg-1); background: var(--gold); flex-shrink: 0;
}
.match-team .seed { color: var(--dim); font-size: 11px; font-weight: 600; margin-left: 6px; }
.match-team.winner { background: rgba(253,224,71,0.13); color: var(--gold); font-weight: 700; }
.match-team.winner .flag { background: var(--gold); }
.match-team.loser { color: var(--dim); text-decoration: line-through; }
.match.r-final { background: linear-gradient(180deg, rgba(253,224,71,0.08), var(--surface)); border-color: rgba(253,224,71,0.3); }

.match-empty {
  padding: 12px; text-align: center; font-size: 12px;
  color: var(--dim); font-style: italic;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--line-2);
}
.match-empty:last-child { border-bottom: none; }

.champion-card {
  margin-top: 36px; text-align: center;
  background: linear-gradient(135deg, rgba(253,224,71,0.06), rgba(52,211,153,0.05));
  border: 1px solid rgba(253,224,71,0.2);
  border-radius: var(--radius);
  padding: 28px 20px;
}
.champ-label { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.champ-pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(253,224,71,0.1); border: 1px solid var(--gold);
  border-radius: 999px; padding: 12px 24px;
  color: var(--gold); font-family: 'Bebas Neue', sans-serif;
  font-size: 1.55rem; letter-spacing: 2px;
}

/* ------- Scenarios ------- */
.scenarios-section { padding-top: 100px; }
.scenarios-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.scenario-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  cursor: pointer;
  transition: transform .18s, border-color .18s;
  display: flex; flex-direction: column; gap: 10px;
  text-align: left; color: inherit; font-family: inherit;
}
.scenario-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.scenario-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--emerald); font-weight: 700;
}
.scenario-title { font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; letter-spacing: 1.2px; color: var(--text); line-height: 1.15; }
.scenario-meta { color: var(--muted); font-size: 13.5px; }
.scenario-card .scenario-cta {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--gold); font-size: 13px; font-weight: 600; margin-top: 4px;
}

/* ------- Format section ------- */
.format-section { background: linear-gradient(180deg, var(--bg-1), transparent); }
.format-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.checklist { list-style: none; margin-top: 22px; }
.checklist li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line-2); color: var(--text); }
.checklist li:last-child { border-bottom: none; }
.check-icn { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: rgba(52,211,153,0.15); color: var(--emerald); display: inline-flex; align-items: center; justify-content: center; }

.info-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; margin-bottom: 18px;
}
.info-card-head {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Bebas Neue', sans-serif; font-size: 1.2rem; letter-spacing: 1.5px;
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid var(--line-2); color: var(--gold);
}
.info-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.info-row span { color: var(--muted); }
.info-row strong { color: var(--text); font-weight: 600; }
.info-row.hl { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; }
.info-row.hl strong { color: var(--gold); }
.format-img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); object-fit: cover; max-height: 240px; }

/* ------- How section ------- */
.how-section { background: var(--bg-1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  position: relative; transition: transform .18s, border-color .18s;
}
.step-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.step-num {
  font-family: 'Bebas Neue', sans-serif; font-size: 3.2rem;
  color: var(--gold); line-height: 1; margin-bottom: 14px;
  opacity: 0.85;
}

/* ------- CTA ------- */
.cta-section {
  background:
    linear-gradient(135deg, rgba(253,224,71,0.05), rgba(52,211,153,0.06)),
    var(--bg-2);
  border-top: 1px solid var(--line);
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-text { max-width: 560px; }
.cta-text h2 { margin-bottom: 6px; }
.cta-text p { margin-bottom: 0; }

/* ------- Footer ------- */
.footer { background: var(--bg); padding: 70px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; }
.footer-brand .site-logo { font-size: 1.4rem; margin-bottom: 14px; }
.footer-brand p { font-size: 13px; line-height: 1.6; }
.footer h4 { color: var(--gold); }
.footer ul { list-style: none; }
.footer ul li { padding: 4px 0; }
.footer ul a { color: var(--muted); font-size: 14px; }
.footer ul a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 44px; padding: 22px 0; font-size: 13px; color: var(--dim); text-align: center; }

/* ------- Contact page ------- */
.contact-wrap { padding: 60px 0 90px; }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.contact-info-list { list-style: none; margin-top: 22px; }
.contact-info-list li { display: flex; gap: 14px; margin-bottom: 18px; align-items: flex-start; color: var(--muted); font-size: 14px; }
.contact-info-list .ic { flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px; background: rgba(253,224,71,0.08); color: var(--gold); display: inline-flex; align-items: center; justify-content: center; }
.contact-info-list strong { color: var(--text); display: block; margin-bottom: 2px; font-size: 13px; letter-spacing: 0.5px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 12.5px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; color: var(--muted); font-weight: 600; }
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%; padding: 12px 14px;
  background: var(--bg-1); color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-size: 14.5px;
  font-family: inherit; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(253,224,71,0.15); }
textarea { min-height: 120px; resize: vertical; }
.form-consent {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 18px 0; font-size: 13px; line-height: 1.55; color: var(--muted);
}
.form-consent input[type="checkbox"] {
  margin-top: 3px; flex-shrink: 0; width: 18px; height: 18px;
  accent-color: var(--gold); cursor: pointer;
}
.form-consent label { margin-bottom: 0; font-size: 13px; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); cursor: pointer; }
.form-consent a { color: var(--gold); }
.success-message { display: none; margin-top: 16px; padding: 12px 16px; background: rgba(52,211,153,0.13); color: var(--emerald); border-radius: var(--radius-sm); font-size: 14px; }
.success-message.show { display: block; }

/* ------- Legal pages ------- */
.page-header { padding: 60px 0 36px; border-bottom: 1px solid var(--line); }
.page-header h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
.page-header p { color: var(--muted); max-width: 720px; margin-top: 12px; }
.legal-content { max-width: 820px; padding: 50px 0 80px; }
.legal-content h2 { margin: 32px 0 12px; font-size: 1.5rem; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); }
.legal-content h3 { margin-top: 22px; color: var(--text); font-size: 1.1rem; }
.legal-content p { color: var(--muted); }
.legal-content ul, .legal-content ol { margin: 12px 0 18px 22px; color: var(--muted); }
.legal-content li { margin-bottom: 8px; }
.legal-content strong { color: var(--text); }
.legal-content a { color: var(--gold); text-decoration: underline; }

/* ------- Tips page ------- */
.tips-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 26px; }
.tip-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.tip-num { font-family: 'Bebas Neue', sans-serif; color: var(--gold); font-size: 1.4rem; letter-spacing: 1.5px; margin-bottom: 8px; display: block; }
.tip-card h3 { font-size: 1.15rem; letter-spacing: 0.8px; text-transform: none; color: var(--text); }
.tip-card p { color: var(--muted); font-size: 14px; margin: 0; }

/* ------- Responsive ------- */
@media (max-width: 980px) {
  .format-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .tips-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-inner { flex-wrap: nowrap; gap: 12px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(82vw, 320px);
    background: linear-gradient(180deg, #0c2620 0%, #061811 100%);
    border-left: 1px solid rgba(244,196,48,0.18);
    box-shadow: -20px 0 60px rgba(0,0,0,0.45);
    padding: 92px 28px 32px;
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 100;
    overflow-y: auto;
  }
  .site-nav.is-open { transform: translateX(0); }
  .nav-links {
    flex-direction: column; align-items: stretch;
    gap: 4px;
  }
  .nav-links li { border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a {
    display: block; padding: 14px 4px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.35rem; letter-spacing: 2px;
    text-transform: uppercase;
  }
  .nav-links a::after { display: none; }
  body.nav-open { overflow: hidden; }
  .hero { padding: 60px 0 80px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
  .bracket { min-width: 1100px; }
  .cta-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .cta-inner .btn { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
}
