/* ── TOKENS ───────────────────────────────────────────── */
:root {
  --bg:        #080e1a;
  --surface:   #0d1626;
  --card:      #111f35;
  --border:    rgba(255,255,255,0.07);
  --border-hi: rgba(212,175,90,0.45);
  --gold:      #d4af5a;
  --gold-hi:   #f0cc78;
  --gold-dim:  rgba(212,175,90,0.12);
  --text:      #e2e8f0;
  --muted:     #64748b;
  --muted-hi:  #94a3b8;
  --white:     #ffffff;
}

/* ── RESET ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-hi); }
img { max-width: 100%; display: block; }

/* ── TYPOGRAPHY ──────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--white);
  line-height: 1.2;
}

/* ── NAV ─────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: #060c18;
  border-bottom: 1px solid rgba(212,175,90,0.3);
  backdrop-filter: blur(10px);
  height: 80px;
  display: flex; align-items: center;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo img {
  background: rgba(255,255,255,0.90);
  border-radius: 6px;
  padding: 4px 8px;
  height: 44px;
  width: auto;
}
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-size: 14px; font-weight: 600;
  color: var(--muted-hi); letter-spacing: 0.5px;
  text-transform: uppercase; font-size: 13px;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--text); font-size: 22px; }

/* ── HERO ────────────────────────────────────────────── */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; display: flex; align-items: center;
  background: var(--bg) url('img/pkr_table.jpg') no-repeat center center / cover;
  padding: 120px 24px 80px;
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(180deg, rgba(8,14,26,0.55) 0%, rgba(8,14,26,0.82) 60%, var(--bg) 100%),
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(59,130,246,0.08), transparent 70%);
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 0 auto; width: 100%;
  text-align: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--gold-dim); border: 1px solid var(--border-hi);
  border-radius: 40px; padding: 6px 18px;
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700; color: var(--white);
  margin-bottom: 20px; letter-spacing: -0.5px;
}
.hero h1 span { color: var(--gold); }
.hero p {
  font-size: 1.1rem; color: var(--muted-hi);
  max-width: 600px; margin: 0 auto 36px; line-height: 1.7;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── BUTTONS ─────────────────────────────────────────── */
.btn-gold {
  display: inline-block;
  background: var(--gold); color: #0a0f0d;
  padding: 14px 30px; border-radius: 6px;
  font-weight: 700; font-size: 14px; letter-spacing: 0.3px;
  border: none; cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 0 24px rgba(197,160,80,0.25);
}
.btn-gold:hover { background: var(--gold-hi); color: #0a0f0d; transform: translateY(-1px); }
.btn-outline {
  display: inline-block;
  background: transparent; color: var(--gold);
  padding: 14px 30px; border-radius: 6px;
  font-weight: 700; font-size: 14px;
  border: 1px solid var(--border-hi); cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.btn-outline:hover { background: var(--gold-dim); color: var(--gold-hi); }

/* ── SECTIONS ────────────────────────────────────────── */
.section { padding: 88px 24px; }
.section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.container { max-width: 1100px; margin: 0 auto; }
.section-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700; color: var(--white);
  margin-bottom: 14px;
}
.section-sub {
  font-size: 16px; color: var(--muted-hi);
  max-width: 560px; line-height: 1.7;
}

/* ── CARDS ───────────────────────────────────────────── */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 32px;
  transition: border-color 0.25s, transform 0.25s;
}
.card:hover { border-color: var(--border-hi); transform: translateY(-3px); }
.card-icon { font-size: 32px; margin-bottom: 16px; }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { font-size: 14px; color: var(--muted-hi); line-height: 1.7; }

/* ── TOURNAMENT CARDS ────────────────────────────────── */
.tournament-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.tournament-card:hover {
  border-color: var(--border-hi);
  box-shadow: 0 12px 40px rgba(197,160,80,0.1);
}
.tournament-card-header {
  background: linear-gradient(135deg, #080e1a, #111f35);
  padding: 32px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 20px;
}
.tournament-card-header img { height: 60px; width: auto; object-fit: contain; }
.tournament-card-header h3 { font-size: 1.4rem; color: var(--white); margin-bottom: 4px; }
.tournament-card-header p { font-size: 13px; color: var(--gold); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.tournament-card-body { padding: 28px 32px; }
.tournament-card-body p { font-size: 15px; color: var(--muted-hi); line-height: 1.7; margin-bottom: 20px; }

/* ── DIVIDER ─────────────────────────────────────────── */
.gold-rule {
  width: 60px; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 16px 0 24px;
}

/* ── STAT STRIP ──────────────────────────────────────── */
.stat-strip {
  background: var(--surface); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); padding: 32px 24px;
}
.stat-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.stat-cell {
  text-align: center; padding: 20px;
  border-right: 1px solid var(--border);
}
.stat-cell:last-child { border-right: none; }
.stat-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.8rem; font-weight: 700;
  color: var(--gold); line-height: 1;
}
.stat-label {
  font-size: 12px; color: var(--muted);
  margin-top: 6px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600;
}

/* ── FORM ────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted-hi); margin-bottom: 6px;
}
.form-input {
  width: 100%; background: var(--surface);
  border: 1px solid var(--border); color: var(--text);
  padding: 12px 14px; border-radius: 6px;
  font-size: 15px; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197,160,80,0.12);
}
.form-input::placeholder { color: var(--muted); }
textarea.form-input { min-height: 130px; resize: vertical; }

/* ── FOOTER ──────────────────────────────────────────── */
footer {
  background: #060c18;
  border-top: 1px solid rgba(212,175,90,0.3);
  padding: 48px 24px 32px;
  text-align: center;
}

footer img {
  height: 44px;
  width: auto;
  margin: 0 auto 16px;
  background: rgba(255,255,255,0.90);
  border-radius: 6px;
  padding: 4px 8px;
}
footer p { font-size: 13px; color: var(--muted); }
footer .footer-links {
  display: flex; gap: 24px; justify-content: center;
  list-style: none; margin-bottom: 20px;
}
footer .footer-links a { font-size: 13px; color: var(--muted-hi); }
footer .footer-links a:hover { color: var(--gold); }

/* ── GRID HELPERS ────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }

/* ── PAGE HERO (inner pages) ─────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #080e1a 0%, #0d1f3c 50%, #080e1a 100%);
  position: relative; overflow: hidden;
  padding: 140px 24px 80px; text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(-45deg, rgba(255,255,255,0.018) 0px, rgba(255,255,255,0.018) 1px, transparent 1px, transparent 48px);
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); color: var(--white); margin-bottom: 12px; }
.page-hero p { font-size: 1.05rem; color: var(--muted-hi); max-width: 560px; margin: 0 auto; line-height: 1.7; }

/* ── MOBILE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .stat-cell { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-cell:last-child { border-bottom: none; }
  .nav-links { display: none; flex-direction: column; gap: 0; position: fixed; top: 70px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 16px 0; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 24px; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: block; }
  .tournament-card-header { flex-direction: column; align-items: flex-start; }
}
