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

:root {
  --bg-dark: #0d0d1a;
  --bg-card: #141428;
  --bg-nav: #0a0a16;
  --accent: #7c3aed;
  --accent2: #06b6d4;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --border: #1e1e3a;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(124,58,237,0.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent2); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }

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

/* ===== NAVBAR ===== */
.navbar {
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0 2rem;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.5px;
}

.nav-logo span { color: var(--accent2); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: .95rem;
  transition: color .2s;
}

.nav-links a:hover,
.nav-links a.active { color: #fff; }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: .45rem 1.2rem;
  border-radius: 6px;
  font-weight: 600 !important;
}

.nav-cta:hover { background: #6d28d9; color: #fff !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.4);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.hero-badge {
  display: inline-block;
  background: rgba(124,58,237,.3);
  border: 1px solid var(--accent);
  color: var(--accent2);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 20px;
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  max-width: 700px;
}

.hero h1 em { font-style: normal; color: var(--accent2); }

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: .75rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
}

.btn-primary:hover { background: #6d28d9; color: #fff; transform: translateY(-2px); }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--text);
  padding: .75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color .2s, color .2s;
}

.btn-secondary:hover { border-color: var(--accent2); color: var(--accent2); }

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ===== SECTION ===== */
.section { padding: 5rem 2rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: .6rem; }
.section-header p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

.accent-line {
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 2px;
  margin: .8rem auto 0;
}

/* ===== CARDS GRID ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.card-img { width: 100%; height: 200px; object-fit: cover; }

.card-body { padding: 1.25rem; }

.card-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--accent2);
  margin-bottom: .5rem;
}

.card-body h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; color: #fff; }
.card-body p { font-size: .9rem; color: var(--text-muted); margin-bottom: 1rem; }

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .82rem;
  color: var(--text-muted);
}

.rating { color: #fbbf24; font-weight: 700; }

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 2rem;
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-num {
  font-size: 2.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label { font-size: .85rem; color: var(--text-muted); margin-top: .25rem; }

/* ===== TOURNAMENT TABLE ===== */
.tournament-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.tournament-table th {
  background: rgba(124,58,237,.2);
  padding: .9rem 1.2rem;
  text-align: left;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--text-muted);
}

.tournament-table td {
  padding: .9rem 1.2rem;
  border-top: 1px solid var(--border);
  font-size: .92rem;
}

.tournament-table tr:hover td { background: rgba(255,255,255,.03); }

.badge {
  display: inline-block;
  padding: .2rem .65rem;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
}

.badge-open { background: rgba(6,182,212,.15); color: var(--accent2); }
.badge-upcoming { background: rgba(124,58,237,.15); color: #a78bfa; }
.badge-closed { background: rgba(148,163,184,.1); color: var(--text-muted); }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, rgba(124,58,237,.25) 0%, rgba(6,182,212,.15) 100%);
  border: 1px solid rgba(124,58,237,.3);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
}

.cta-banner h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: .75rem; }
.cta-banner p { color: var(--text-muted); margin-bottom: 1.75rem; max-width: 520px; margin-left: auto; margin-right: auto; }

/* ===== NEWSLETTER ===== */
.newsletter-form {
  display: flex;
  gap: .75rem;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: .75rem 1rem;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: .95rem;
  outline: none;
  transition: border-color .2s;
}

.newsletter-form input[type="email"]:focus { border-color: var(--accent2); }
.newsletter-form input::placeholder { color: var(--text-muted); }

/* ===== CONTACT FORM ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 1rem; }
.contact-info p { color: var(--text-muted); margin-bottom: 1.5rem; }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: 1rem;
  font-size: .93rem;
}

.contact-icon {
  width: 36px;
  height: 36px;
  background: rgba(124,58,237,.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.contact-form-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: .4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .75rem 1rem;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: .95rem;
  outline: none;
  transition: border-color .2s;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent2); }

.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select option { background: var(--bg-card); }

.form-success {
  display: none;
  background: rgba(6,182,212,.1);
  border: 1px solid rgba(6,182,212,.3);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  color: var(--accent2);
  font-weight: 600;
  margin-top: 1rem;
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, rgba(124,58,237,.15), rgba(6,182,212,.08));
  border-bottom: 1px solid var(--border);
  padding: 4rem 2rem;
  text-align: center;
}

.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: .75rem; }
.page-hero p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-img { border-radius: var(--radius); overflow: hidden; }
.about-img img { width: 100%; height: 360px; object-fit: cover; }

.about-text h2 { font-size: 1.9rem; font-weight: 800; margin-bottom: 1rem; }
.about-text p { color: var(--text-muted); margin-bottom: 1rem; }

.feature-list { list-style: none; margin-top: 1.5rem; }
.feature-list li {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .93rem;
}

.feature-list li:last-child { border-bottom: none; }
.feature-list li::before { content: '✦'; color: var(--accent2); font-size: .7rem; }

/* ===== TEAM ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: transform .2s;
}

.team-card:hover { transform: translateY(-4px); }

.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 1rem;
}

.team-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .25rem; }
.team-card p { font-size: .85rem; color: var(--text-muted); }

/* ===== POLICY PAGES ===== */
.policy-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.policy-content h1 { font-size: 2rem; font-weight: 800; margin-bottom: .5rem; }
.policy-content .last-updated { color: var(--text-muted); font-size: .88rem; margin-bottom: 2rem; }
.policy-content h2 { font-size: 1.25rem; font-weight: 700; margin: 2rem 0 .75rem; color: var(--accent2); }
.policy-content p { color: var(--text-muted); margin-bottom: 1rem; }
.policy-content ul { color: var(--text-muted); padding-left: 1.5rem; margin-bottom: 1rem; }
.policy-content ul li { margin-bottom: .4rem; }
.policy-content a { color: var(--accent2); }

/* ===== FOOTER ===== */
footer {
  background: var(--bg-nav);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem 1.5rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand p { color: var(--text-muted); font-size: .9rem; margin-top: .75rem; max-width: 280px; }

.footer-col h4 { font-size: .9rem; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; color: var(--text); margin-bottom: 1rem; }

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a { color: var(--text-muted); font-size: .9rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--accent2); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .85rem;
  color: var(--text-muted);
}

.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--accent2); }

/* ===== COOKIE BANNER ===== */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  z-index: 9999;
  font-size: .9rem;
}

#cookie-banner p { color: var(--text-muted); flex: 1; min-width: 200px; }
#cookie-banner a { color: var(--accent2); }

.cookie-btns { display: flex; gap: .75rem; }

.btn-cookie-accept {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: .5rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: .9rem;
}

.btn-cookie-decline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: .5rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: .9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg-nav); border-bottom: 1px solid var(--border); padding: 1rem 2rem; gap: 1rem; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .tournament-table { font-size: .82rem; }
  .tournament-table th, .tournament-table td { padding: .65rem .75rem; }
}
