:root {
  --bg: #0e0f12;
  --bg-soft: #14161c;
  --ink: #f7f5f0;
  --muted: #a6a4a0;
  --accent: #f4b540;
  --accent-2: #35d0b2;
  --accent-3: #ff6b4a;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius: 18px;
}

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

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #1b1f2a 0%, #0e0f12 55%, #0b0c0f 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, .brand-name {
  font-family: "Unbounded", sans-serif;
  letter-spacing: 0.3px;
}

p {
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
  font-family: inherit;
  cursor: pointer;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.18;
  pointer-events: none;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 7vw;
  position: sticky;
  top: 0;
  backdrop-filter: blur(20px);
  background: rgba(14, 15, 18, 0.75);
  z-index: 10;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.logo {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #1c1a14;
  font-weight: 700;
}

.brand-name {
  font-size: 1.1rem;
}

.brand-tag {
  color: var(--muted);
  font-size: 0.85rem;
}

.nav-links {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 18px;
  border-radius: 999px;
}

.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #1e1710;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.primary.small {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  padding: 12px 24px;
  border-radius: 999px;
}

main {
  display: flex;
  flex-direction: column;
  gap: 120px;
  padding: 60px 7vw 120px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 60px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-2);
  font-size: 0.85rem;
}

h1 {
  font-size: clamp(2.6rem, 4vw, 3.8rem);
  line-height: 1.05;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 12px;
}

.stat {
  font-size: 1.6rem;
  font-weight: 600;
}

.stat-label {
  color: var(--muted);
  font-size: 0.85rem;
}

.hero-panel {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateY(0);
  animation: float 6s ease-in-out infinite;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.4);
  font-size: 0.85rem;
  color: var(--muted);
}

.panel-header .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-2);
  opacity: 0.7;
}

.panel-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.queue {
  display: grid;
  gap: 14px;
}

.player-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(12, 12, 12, 0.4);
  border-radius: 14px;
  padding: 12px 14px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 600;
}

.meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.ready {
  color: var(--accent-2);
  font-weight: 600;
  font-size: 0.85rem;
}

.pending {
  color: var(--accent-3);
  font-weight: 600;
  font-size: 0.85rem;
}

.panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
}

.section {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.section-head {
  max-width: 520px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 12px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.game-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.tag {
  display: inline-flex;
  padding: 6px 12px;
  background: rgba(244, 181, 64, 0.15);
  color: var(--accent);
  border-radius: 999px;
  font-size: 0.75rem;
  width: fit-content;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
}

.salon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.salon-tile {
  background: linear-gradient(150deg, rgba(53, 208, 178, 0.15), rgba(255, 255, 255, 0.03));
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tournament {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr);
  gap: 40px;
  padding: 40px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(244, 181, 64, 0.12), rgba(255, 107, 74, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.list {
  margin: 18px 0 24px;
  display: grid;
  gap: 10px;
  color: var(--muted);
  list-style: none;
}

.list li::before {
  content: "* ";
  color: var(--accent);
}

.scoreboard {
  background: rgba(11, 11, 12, 0.6);
  padding: 24px;
  border-radius: 16px;
  display: grid;
  gap: 12px;
}

.score-title {
  font-weight: 600;
}

.score-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--muted);
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.community-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 40px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(53, 208, 178, 0.2), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 7vw 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 16px;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.is-visible {
  animation: rise 0.8s ease forwards;
}

.reveal.delay-1.is-visible { animation-delay: 0.1s; }
.reveal.delay-2.is-visible { animation-delay: 0.2s; }
.reveal.delay-3.is-visible { animation-delay: 0.3s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .salon-grid,
  .community-grid {
    grid-template-columns: 1fr;
  }

  .tournament {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}
