/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0f0f0f;
  --bg-raised: #181818;
  --bg-card:   #1e1e1e;
  --border:    #2a2a2a;
  --red:       #c41e3a;
  --red-dark:  #9b1630;
  --gold:      #c9a84c;
  --text:      #e2e2e2;
  --text-muted:#888;
  --header-h:  64px;
  --max-w:     1100px;
  --radius:    6px;
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Header ── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(15,15,15,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 24px rgba(0,0,0,0.5);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo img {
  height: 36px;
  width: auto;
  filter: none;
  transition: opacity var(--transition);
}
.header-logo:hover img { opacity: 0.75; }

nav { display: flex; gap: 2rem; }
nav a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform var(--transition);
}
nav a:hover,
nav a.active { color: var(--text); }
nav a:hover::after,
nav a.active::after { transform: scaleX(1); }

/* ── Shared Section ── */
section { padding: 6rem 2rem; }

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

p { color: var(--text-muted); max-width: 65ch; margin-bottom: 1.25rem; }

/* ── Button ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  background: var(--red);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  margin-top: 0.5rem;
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196,30,58,0.35);
}
.btn-primary svg {
  width: 20px;
  height: 20px;
  fill: #fff;
  flex-shrink: 0;
}

/* ── Hero ── */
#hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 3rem) 2rem 4rem;
  position: relative;
  background:
    radial-gradient(ellipse 120% 90% at 50% 30%, rgba(255,220,50,0.85) 0%, rgba(255,210,50,0.25) 40%, transparent 70%),
    var(--bg);
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(196,30,58,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196,30,58,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 0%, transparent 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.hero-logo {
  width: min(420px, 75vw);
  height: auto;
  filter: drop-shadow(0 0 40px rgba(196,30,58,0.3));
  margin-bottom: 0.5rem;
}

#hero h1 {
  font-size: clamp(1.5rem, 5vw, 3rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--gold);
  max-width: 42ch;
  margin-bottom: 0.5rem;
  font-style: italic;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 1.25rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── Secondary Button ── */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  background: transparent;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 2px solid var(--gold);
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
  margin-top: 0.5rem;
}
.btn-secondary svg {
  width: 20px;
  height: 20px;
  fill: var(--gold);
  flex-shrink: 0;
  transition: fill var(--transition);
}
.btn-secondary:hover {
  background: var(--gold);
  color: #0f0f0f;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.3);
}
.btn-secondary:hover svg { fill: #0f0f0f; }

/* ── About ── */
#about {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-row {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.stat { display: flex; flex-direction: column; gap: 0.25rem; }

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
}

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

/* ── Games ── */
#games { background: var(--bg); }

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.5);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.game-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

.game-card-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}

.game-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.game-card p {
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
}

.game-card ul li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.game-card ul li:last-child { border-bottom: none; }

.game-card ul li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

/* ── Event ── */
#event {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

#event::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 100% 50%, rgba(201,168,76,0.07) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Join ── */
#join {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  text-align: center;
}

#join .section-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.social-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

#join p { text-align: center; }

/* ── Footer ── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 1.5rem 2rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  :root { --header-h: 100px; }
  .header-inner {
    padding: 0.5rem 1.25rem;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  nav { gap: 1.5rem; }
  nav a { font-size: 0.8rem; }
  .stat-row { gap: 2rem; }
  section { padding: 4rem 1.25rem; }
}
