/* Reset & Base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: #0b0d17;
  color: #e0e0e0;
  line-height: 1.6;
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
}
a { color: #ff6b35; text-decoration: none; transition: color 0.3s; }
a:hover { text-decoration: underline; color: #ff8c5a; }
h1, h2, h3 { color: #ffffff; font-weight: 700; letter-spacing: 0.02em; }
h2 { font-size: 2rem; margin-bottom: 1.5rem; border-bottom: 2px solid #ff6b35; display: inline-block; padding-bottom: 0.3rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
img, svg { max-width: 100%; height: auto; display: block; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 2rem 1rem; }
section { padding: 4rem 0; position: relative; }

/* Header & Navigation */
header {
  background: rgba(18, 20, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(42, 45, 74, 0.5);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.3s;
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 1rem;
}
.logo { display: flex; align-items: center; transition: transform 0.3s; }
.logo:hover { transform: scale(1.05); }
.logo svg { width: 120px; height: 36px; }
.nav-links { list-style: none; display: flex; gap: 1.5rem; }
.nav-links a {
  color: #c0c0d0;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: #ff6b35;
  transition: width 0.3s;
}
.nav-links a:hover { color: #ff6b35; text-decoration: none; }
.nav-links a:hover::after { width: 100%; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  transition: transform 0.3s;
}
.nav-toggle:hover { transform: rotate(90deg); }
.nav-toggle .bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Hero Section */
#hero {
  background: linear-gradient(135deg, #0b0d17 0%, #1a1e3a 50%, #2a1a3a 100%);
  text-align: center;
  padding: 6rem 1rem;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(255,107,53,0.08) 0%, transparent 50%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  0% { transform: translate(0, 0); }
  100% { transform: translate(10%, 10%); }
}
.hero-content { position: relative; z-index: 1; }
#hero h1 {
  font-size: 2.5rem;
  max-width: 800px;
  margin: 0 auto 1rem;
  text-shadow: 0 2px 20px rgba(255,107,53,0.3);
  animation: fadeInUp 0.8s ease-out;
}
.hero-sub {
  font-size: 1.2rem;
  color: #b0b0c0;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}
.btn-primary {
  background: linear-gradient(135deg, #ff6b35, #e85a2a);
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  display: inline-block;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,107,53,0.4);
  background: linear-gradient(135deg, #ff7a45, #e85a2a);
  text-decoration: none;
}
.btn-secondary {
  background: transparent;
  border: 2px solid #ff6b35;
  color: #ff6b35;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-block;
}
.btn-secondary:hover {
  background: #ff6b35;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,107,53,0.3);
  text-decoration: none;
}
.hero-stats {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: #ff6b35;
  text-shadow: 0 0 10px rgba(255,107,53,0.3);
}
.stat-label { color: #9090a0; font-size: 0.9rem; }

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* About Section */
#about { background: #0b0d17; }
.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  animation: fadeInUp 0.6s ease-out both;
}
.about-text p { margin-bottom: 1rem; color: #c0c0d0; }
.about-text strong { color: #ff6b35; }
.about-info ul {
  list-style: none;
  background: rgba(26, 30, 58, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255,107,53,0.1);
}
.about-info li { margin-bottom: 0.8rem; color: #d0d0e0; }
.about-info li strong { color: #ff6b35; }

/* Esports Section */
#esports { background: linear-gradient(180deg, #0b0d17 0%, #12142a 100%); }
.section-desc { color: #b0b0c0; margin-bottom: 2rem; max-width: 800px; }
.esports-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.card {
  background: rgba(26, 30, 58, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid #ff6b35;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,107,53,0.05), transparent);
  transition: left 0.5s;
}
.card:hover::before { left: 100%; }
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255,107,53,0.15);
  background: rgba(26, 30, 58, 0.8);
}
.card h3 { color: #fff; margin-bottom: 0.5rem; }
.card p { color: #b0b0c0; font-size: 0.9rem; }
.card-tag {
  display: inline-block;
  background: #ff6b35;
  color: #fff;
  padding: 0.2rem 0.8rem;
  border-radius: 12px;
  font-size: 0.8rem;
  margin-top: 0.5rem;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Live Entertainment */
#live { background: #0b0d17; }
.live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.live-item {
  background: rgba(26, 30, 58, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(255,107,53,0.1);
}
.live-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255,107,53,0.15);
  border-color: rgba(255,107,53,0.3);
}
.live-item h3 { color: #ff6b35; margin-bottom: 0.5rem; }
.live-item p { color: #b0b0c0; font-size: 0.9rem; }

/* Features Section */
#features { background: linear-gradient(180deg, #12142a 0%, #0b0d17 100%); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}
.feature {
  padding: 1.5rem;
  background: rgba(26, 30, 58, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 12px;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  border: 1px solid transparent;
}
.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255,107,53,0.1);
  background: rgba(26, 30, 58, 0.7);
  border-color: rgba(255,107,53,0.2);
}
.feature svg { margin: 0 auto 1rem; transition: transform 0.3s; }
.feature:hover svg { transform: scale(1.1) rotate(5deg); }
.feature h3 { margin: 1rem 0 0.5rem; color: #fff; }
.feature p { color: #b0b0c0; font-size: 0.9rem; }

/* Knowledge Hub */
#knowledge { background: #0b0d17; }
.knowledge-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.knowledge-layout ul, .knowledge-layout ol { padding-left: 1.5rem; }
.knowledge-layout li { margin-bottom: 0.6rem; color: #c0c0d0; }
.knowledge-layout a { color: #ff6b35; transition: color 0.3s; }
.knowledge-layout a:hover { color: #ff8c5a; text-decoration: underline; }
.knowledge-layout ol li { margin-bottom: 0.5rem; }
.articles ul { list-style: none; padding-left: 0; }
.articles li { border-left: 2px solid #ff6b35; padding-left: 1rem; margin-bottom: 0.8rem; transition: border-color 0.3s; }
.articles li:hover { border-left-color: #ff8c5a; }
.howto ol { counter-reset: step; }
.howto ol li { counter-increment: step; margin-bottom: 0.6rem; }
.howto ol li::marker { color: #ff6b35; font-weight: 600; }

/* FAQ Section */
#faq { background: linear-gradient(180deg, #0b0d17 0%, #12142a 100%); }
.faq-list details {
  background: rgba(26, 30, 58, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 0.8rem;
  padding: 1rem 1.2rem;
  border-radius: 10px;
  border: 1px solid rgba(255,107,53,0.08);
  transition: background 0.3s, border-color 0.3s;
}
.faq-list details:hover {
  background: rgba(26, 30, 58, 0.7);
  border-color: rgba(255,107,53,0.2);
}
.faq-list details[open] {
  background: rgba(26, 30, 58, 0.8);
  border-color: rgba(255,107,53,0.3);
}
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  color: #ff6b35;
  outline: none;
  transition: color 0.3s;
}
.faq-list summary::-webkit-details-marker { color: #ff6b35; }
.faq-list summary:hover { color: #ff8c5a; }
.faq-list p {
  margin-top: 0.8rem;
  color: #c0c0d0;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255,107,53,0.1);
}

/* Contact Section */
#contact { background: #0b0d17; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.contact-info p { margin-bottom: 0.8rem; color: #c0c0d0; }
.contact-info strong { color: #ff6b35; }
.contact-note {
  background: rgba(26, 30, 58, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255,107,53,0.1);
}
.contact-note p { color: #c0c0d0; }

/* Footer */
footer {
  background: rgba(10, 11, 20, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(42, 45, 74, 0.5);
  padding: 2rem 1rem;
  text-align: center;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.footer-links a { color: #9090a0; transition: color 0.3s; font-size: 0.9rem; }
.footer-links a:hover { color: #ff6b35; }
.footer-legal p { color: #707080; font-size: 0.85rem; margin-bottom: 0.3rem; }

/* Back to Top */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, #ff6b35, #e85a2a);
  color: #fff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  z-index: 99;
  box-shadow: 0 4px 15px rgba(255,107,53,0.3);
  transition: transform 0.3s, box-shadow 0.3s, opacity 0.3s;
  opacity: 0;
}
#back-to-top.show { display: block; opacity: 1; }
#back-to-top:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(255,107,53,0.5);
}

/* Scroll animations (using Intersection Observer via class toggling) */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: rgba(18, 20, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    padding: 1rem;
    gap: 0.8rem;
    border-bottom: 1px solid rgba(42, 45, 74, 0.5);
  }
  .nav-links.active { display: flex; }
  .nav-toggle { display: block; }
  #hero h1 { font-size: 1.8rem; }
  .hero-sub { font-size: 1rem; }
  .hero-stats { gap: 1rem; }
  .stat-num { font-size: 1.4rem; }
  h2 { font-size: 1.5rem; }
  .about-grid, .knowledge-layout, .contact-grid { grid-template-columns: 1fr; }
  .esports-cards { grid-template-columns: 1fr; }
  .live-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 3rem 0; }
  .container { padding: 1.5rem 1rem; }
  .btn-primary, .btn-secondary { padding: 0.7rem 1.5rem; font-size: 0.95rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  #back-to-top { bottom: 1.5rem; right: 1.5rem; width: 42px; height: 42px; font-size: 1.2rem; }
}

@media (max-width: 480px) {
  #hero h1 { font-size: 1.5rem; }
  .features-grid { grid-template-columns: 1fr; }
  .nav-links a { font-size: 0.9rem; }
  .footer-links { gap: 1rem; }
  .footer-links a { font-size: 0.8rem; }
}

/* Dark mode support (based on system preference) */
@media (prefers-color-scheme: dark) {
  body { background: #0b0d17; color: #e0e0e0; }
  header { background: rgba(18, 20, 42, 0.9); }
  .card, .live-item, .feature, .faq-list details, .contact-note, .about-info ul {
    background: rgba(26, 30, 58, 0.6);
  }
}

/* Glassmorphism utility (applied via classes in HTML if needed) */
.glass {
  background: rgba(26, 30, 58, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.05);
}

/* Smooth scroll for anchor links */
html { scroll-behavior: smooth; }

/* Selection */
::selection { background: #ff6b35; color: #fff; }