/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Raleway', sans-serif;
  background: #000;
  color: #fff;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Orbitron', sans-serif;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Accessible red — meets 4.5:1 on #000 background */
.text-red {
  color: #FF4D4D;
}

/* Screen reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== GLASS EFFECT ===== */
.glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children */
.about-grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
.about-grid .fade-in:nth-child(3) { transition-delay: 0.2s; }
.about-grid .fade-in:nth-child(4) { transition-delay: 0.3s; }
.games-grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
.games-grid .fade-in:nth-child(3) { transition-delay: 0.2s; }
.games-grid .fade-in:nth-child(4) { transition-delay: 0.3s; }
.stats-bar .fade-in:nth-child(2) { transition-delay: 0.1s; }
.stats-bar .fade-in:nth-child(3) { transition-delay: 0.2s; }
.stats-bar .fade-in:nth-child(4) { transition-delay: 0.3s; }

/* ===== HEADER / NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 44px;
  width: auto;
  transition: transform 0.3s ease;
}

.nav-logo img:hover {
  transform: scale(1.05);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 8px;
}

.nav-links a {
  padding: 8px 18px;
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
  color: #FF4D4D;
  background: rgba(255, 77, 77, 0.08);
}

/* Focus visible for keyboard users */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #FF4D4D;
  outline-offset: 2px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  contain: layout style paint;
}

.hero-bg-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255, 77, 77, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}

/* Fixed dimensions for LCP — no layout shift */
.hero-logo {
  width: 180px;
  height: 180px;
  object-fit: contain;
  margin: 0 auto 32px;
  filter: brightness(1.8) drop-shadow(0 0 60px rgba(255, 77, 77, 0.5)) drop-shadow(0 0 120px rgba(255, 77, 77, 0.25));
  animation: logoFloat 4s ease-in-out infinite;
  aspect-ratio: 1 / 1;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.hero-tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}

.hero-tagline .line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #FF4D4D);
}

.hero-tagline .line:last-child {
  background: linear-gradient(90deg, #FF4D4D, transparent);
}

.hero-tagline p {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: #FF4D4D;
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background: #ff6666;
  box-shadow: 0 0 30px rgba(255, 77, 77, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-outline:hover {
  border-color: #FF4D4D;
  color: #fff;
  transform: translateY(-2px);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-indicator span {
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.15);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, #FF4D4D, transparent);
  animation: scrollPulse 1.5s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.6); }
}

/* ===== SECTIONS ===== */
.section {
  padding: 100px 0;
}

.section-dark {
  background: #050505;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  display: inline-block;
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #FF4D4D;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: 1px;
}

.section-divider {
  width: 60px;
  height: 2px;
  background: #FF4D4D;
  margin: 16px auto 0;
}

/* Section intro paragraphs */
.section-intro {
  max-width: 780px;
  margin: -24px auto 48px;
  font-size: 15px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.about-card {
  padding: 36px 28px;
  transition: all 0.4s ease;
}

.about-card:hover {
  border-color: rgba(255, 77, 77, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(255, 77, 77, 0.06);
}

.about-card h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.about-card p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
}

.about-card p strong {
  color: rgba(255, 255, 255, 0.85);
}

.about-founder {
  padding: 28px 36px;
  text-align: center;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.8;
}

.about-founder strong {
  color: #FF4D4D;
}

/* ===== STATS BAR ===== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.stat {
  text-align: center;
  padding: 28px 16px;
  background: rgba(255, 77, 77, 0.04);
  border: 1px solid rgba(255, 77, 77, 0.1);
  border-radius: 12px;
}

.stat-value {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 900;
  color: #FF4D4D;
  text-shadow: 0 0 20px rgba(255, 77, 77, 0.4);
  margin-bottom: 4px;
}

.stat-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

/* ===== RESULTS TABLE ===== */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.results-table caption {
  text-align: left;
}

.results-table thead {
  background: rgba(255, 77, 77, 0.06);
}

.results-table th {
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  padding: 16px 20px;
  text-align: left;
  white-space: nowrap;
}

.results-table td {
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.7);
  vertical-align: middle;
}

.results-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.tier-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
}

.tier-badge.s-tier {
  background: rgba(255, 77, 77, 0.12);
  color: #FF4D4D;
  border: 1px solid rgba(255, 77, 77, 0.25);
}

.tier-badge.a-tier {
  background: rgba(255, 215, 0, 0.08);
  color: #FFD700;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.tier-badge.b-tier {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Placement badges (shared in table & elsewhere) */
.placement {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 32px;
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  font-weight: 900;
  border-radius: 6px;
  letter-spacing: 1px;
}

.placement.champion {
  background: rgba(255, 77, 77, 0.12);
  color: #FF4D4D;
  border: 1px solid rgba(255, 77, 77, 0.3);
  text-shadow: 0 0 12px rgba(255, 77, 77, 0.5);
}

.placement.gold {
  background: rgba(255, 215, 0, 0.08);
  color: #FFD700;
  border: 1px solid rgba(255, 215, 0, 0.25);
}

.placement.bronze {
  background: rgba(205, 127, 50, 0.08);
  color: #CD7F32;
  border: 1px solid rgba(205, 127, 50, 0.25);
}

.placement.top5 {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== GAMES ===== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.game-card {
  padding: 36px 24px;
  text-align: center;
  transition: all 0.4s ease;
}

.game-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(255, 77, 77, 0.25);
  box-shadow: 0 12px 40px rgba(255, 77, 77, 0.08);
}

/* Fixed dimensions — zero layout shift */
.game-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 20px;
  border-radius: 16px;
  transition: transform 0.3s ease;
  aspect-ratio: 1 / 1;
}

.game-card:hover img {
  transform: scale(1.1);
}

.game-card h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.game-card p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
}

/* ===== FAQ ===== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  padding: 32px 28px;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(255, 77, 77, 0.15);
}

.faq-item h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  color: #FF4D4D;
}

.faq-item p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.8;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #030303;
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
}

.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.7;
  max-width: 360px;
}

.footer-links h3,
.footer-social h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #FF4D4D;
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

.social-icon:hover {
  color: #FF4D4D;
  border-color: rgba(255, 77, 77, 0.3);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px 0;
  text-align: center;
}

.footer-address {
  text-align: center;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-style: normal;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
}

.footer-address a {
  color: #FF4D4D;
  transition: opacity 0.3s ease;
}

.footer-address a:hover {
  opacity: 0.8;
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.2);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    flex-direction: column;
    padding: 100px 32px 32px;
    gap: 4px;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    overflow-y: auto;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    padding: 16px 18px;
    font-size: 13px;
    display: block;
    border-radius: 8px;
  }

  .nav-links a:active {
    background: rgba(255, 77, 77, 0.12);
  }

  .hero-logo {
    width: 120px;
    height: 120px;
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .section {
    padding: 64px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about-card {
    padding: 28px 22px;
  }

  .about-founder {
    padding: 22px 20px;
    font-size: 14px;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 40px;
  }

  .stat {
    padding: 20px 12px;
  }

  .results-table th,
  .results-table td {
    padding: 12px 14px;
    font-size: 12px;
  }

  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .game-card {
    padding: 28px 18px;
  }

  .game-card img {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
  }

  .faq-item {
    padding: 24px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .social-icons {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .nav-container {
    padding: 0 16px;
  }

  .hero-logo {
    width: 100px;
    height: 100px;
  }

  .hero h1 {
    font-size: 1.75rem;
    letter-spacing: 1px;
  }

  .hero-tagline {
    gap: 8px;
  }

  .hero-tagline .line {
    width: 24px;
  }

  .hero-tagline p {
    font-size: 8px;
    letter-spacing: 3px;
  }

  .btn {
    padding: 14px 24px;
    font-size: 11px;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .section-label {
    font-size: 9px;
    letter-spacing: 4px;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 8px;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .results-table th,
  .results-table td {
    padding: 10px 10px;
    font-size: 11px;
  }

  .scroll-indicator {
    display: none;
  }
}

/* Touch device improvements */
@media (hover: none) {
  .about-card:hover,
  .game-card:hover,
  .faq-item:hover {
    transform: none;
    box-shadow: none;
  }

  .btn-primary:hover {
    transform: none;
  }

  .btn-outline:hover {
    transform: none;
  }

  .btn:active {
    transform: scale(0.97);
    transition: transform 0.1s ease;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }
}
