/* ===== CUSTOM PROPERTIES ===== */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #161616;
  --accent-orange: #FF6B00;
  --accent-yellow: #FFD93D;
  --accent-orange-glow: rgba(255, 107, 0, 0.4);
  --accent-yellow-glow: rgba(255, 217, 61, 0.3);
  --text-primary: #ffffff;
  --text-secondary: #aaaaaa;
  --border-subtle: rgba(255, 107, 0, 0.15);
  --font-heading: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', 'Arial', sans-serif;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.1;
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-logo {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent-orange);
}

.nav-cta {
  padding: 0.5rem 1.25rem;
  background: var(--accent-orange);
  color: #000 !important;
  border-radius: 4px;
  font-weight: 800 !important;
  transition: background 0.2s, box-shadow 0.2s !important;
}

.nav-cta:hover {
  background: var(--accent-yellow) !important;
  box-shadow: 0 0 20px var(--accent-orange-glow) !important;
  color: #000 !important;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6rem 2rem 4rem;
}

#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(255, 107, 0, 0.08) 0%, transparent 70%),
              radial-gradient(ellipse 40% 40% at 20% 80%, rgba(255, 217, 61, 0.04) 0%, transparent 60%),
              var(--bg-primary);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  width: 100%;
}

.hero-logo {
  height: 100px;
  width: auto;
  margin: 0 auto 2rem;
  display: block;
  filter: drop-shadow(0 0 30px rgba(255, 107, 0, 0.5));
  animation: hero-logo-float 4s ease-in-out infinite;
}

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

.hero-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(255, 107, 0, 0.12);
  border: 1px solid rgba(255, 107, 0, 0.35);
  border-radius: 100px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent-orange);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 0.95;
}

.hero-headline .accent-orange {
  color: var(--accent-orange);
  text-shadow: 0 0 40px var(--accent-orange-glow), 0 0 80px rgba(255, 107, 0, 0.2);
}

.hero-headline .accent-yellow {
  color: var(--accent-yellow);
  text-shadow: 0 0 40px var(--accent-yellow-glow);
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 1.5rem auto 2.5rem;
  font-weight: 400;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.5rem;
  background: var(--accent-orange);
  color: #000;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 0 30px rgba(255, 107, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
}

.btn-primary:hover {
  background: var(--accent-yellow);
  box-shadow: 0 0 50px rgba(255, 107, 0, 0.6), 0 4px 20px rgba(255, 107, 0, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  box-shadow: 0 0 20px rgba(255, 107, 0, 0.15);
}

.hero-scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.3);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-heading);
}

.hero-scroll-hint .scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid rgba(255,255,255,0.3);
  border-bottom: 2px solid rgba(255,255,255,0.3);
  transform: rotate(45deg);
  animation: bounce-down 1.5s ease-in-out infinite;
}

@keyframes bounce-down {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(6px); }
}

/* ===== SECTION SHARED STYLES ===== */
.section {
  padding: 6rem 2rem;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-orange);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
  font-weight: 400;
}

/* ===== FEATURES SECTION ===== */
.features-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-orange), transparent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(255, 107, 0, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4), 0 0 30px rgba(255, 107, 0, 0.08);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 107, 0, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: background 0.3s;
}

.feature-card:hover .feature-icon {
  background: rgba(255, 107, 0, 0.2);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  color: var(--accent-orange);
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== GAME PREVIEW SECTION ===== */
.preview-section {
  background: var(--bg-primary);
}

.preview-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.preview-item {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  position: relative;
  aspect-ratio: 16/10;
  background: var(--bg-card);
  cursor: pointer;
  transition: all 0.3s;
}

.preview-item:hover {
  border-color: rgba(255, 107, 0, 0.5);
  box-shadow: 0 8px 40px rgba(255, 107, 0, 0.12);
  transform: scale(1.02);
}

.preview-item-main {
  grid-row: 1 / 3;
  aspect-ratio: auto;
}

.preview-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  min-height: 200px;
}

.preview-placeholder .game-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.preview-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-yellow);
  text-transform: uppercase;
}

.video-area {
  max-width: 1100px;
  margin: 2rem auto 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: border-color 0.3s;
}

.video-area:hover {
  border-color: rgba(255, 107, 0, 0.4);
}

.video-play-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 107, 0, 0.15);
  border: 2px solid var(--accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  position: relative;
  z-index: 2;
}

.video-area:hover .video-play-btn {
  background: rgba(255, 107, 0, 0.3);
  box-shadow: 0 0 40px rgba(255, 107, 0, 0.4);
  transform: scale(1.1);
}

.video-play-btn svg {
  width: 32px;
  height: 32px;
  color: var(--accent-orange);
  margin-left: 4px;
}

.video-bg-text {
  position: absolute;
  font-family: var(--font-heading);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 900;
  color: rgba(255, 107, 0, 0.04);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  user-select: none;
}

/* ===== HOW TO PLAY SECTION ===== */
.howtoplay-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.steps-connector {
  position: absolute;
  top: 60px;
  left: calc(33.33% - 0px);
  right: calc(33.33% - 0px);
  height: 2px;
  background: linear-gradient(90deg, var(--accent-orange), var(--accent-yellow));
  z-index: 0;
  opacity: 0.3;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent-orange);
  box-shadow: 0 0 20px rgba(255, 107, 0, 0.2);
  position: relative;
}

.step-number .step-icon {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-number .step-icon svg {
  width: 14px;
  height: 14px;
  color: #000;
}

.step-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== COMMUNITY SECTION ===== */
.community-section {
  background: var(--bg-primary);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.community-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.community-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.community-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.community-title span {
  color: var(--accent-orange);
  text-shadow: 0 0 30px var(--accent-orange-glow);
}

.community-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  line-height: 1.6;
}

.community-links {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s;
  border: 1px solid transparent;
}

.social-btn svg {
  width: 22px;
  height: 22px;
}

.social-btn-discord {
  background: #5865F2;
  color: #fff;
}

.social-btn-discord:hover {
  background: #4752C4;
  box-shadow: 0 0 30px rgba(88, 101, 242, 0.4);
  transform: translateY(-2px);
}

.social-btn-twitter {
  background: transparent;
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.2);
}

.social-btn-twitter:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  box-shadow: 0 0 20px rgba(255, 107, 0, 0.15);
  transform: translateY(-2px);
}

.community-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent-orange);
  line-height: 1;
  margin-bottom: 0.3rem;
  text-shadow: 0 0 20px var(--accent-orange-glow);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-heading);
  font-weight: 600;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 2rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .footer-logo {
  height: 36px;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(0.9);
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 260px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col ul li a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--accent-orange);
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.footer-social-icon {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s;
}

.footer-social-icon:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  background: rgba(255, 107, 0, 0.08);
}

.footer-social-icon svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--accent-orange);
}

/* ===== DECORATIVE ELEMENTS ===== */
.glow-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-orange), var(--accent-yellow), transparent);
  opacity: 0.5;
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }

/* ===== PIXEL ART GAME SCENES (SVG-based) ===== */
.game-scene-canvas {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .preview-grid {
    grid-template-columns: 1fr 1fr;
  }

  .preview-item-main {
    grid-column: 1 / 3;
    grid-row: auto;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .section {
    padding: 4rem 1.25rem;
  }

  .steps-container {
    grid-template-columns: 1fr;
    max-width: 360px;
  }

  .steps-connector {
    display: none;
  }

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

  .preview-item-main {
    grid-column: 1;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .community-stats {
    gap: 2rem;
  }

  .hero-logo {
    height: 70px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
    max-width: 300px;
  }

  .community-links {
    flex-direction: column;
    align-items: center;
  }

  .social-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

/* ===== MOBILE NAV OVERLAY ===== */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.98);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav a {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.mobile-nav a:hover {
  color: var(--accent-orange);
}

.mobile-nav-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
}

.mobile-nav-close svg {
  width: 28px;
  height: 28px;
}
