/* ==========================================================================
   CSS VARIABLES & RESET
   ========================================================================== */
:root {
  --bg-dark: #0a0e17;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --primary: #4B90FF;
  --primary-hover: #3a75d6;
  --secondary: #2C3545;
  --text-main: #ffffff;
  --text-muted: #a0aec0;
  --border-color: rgba(255, 255, 255, 0.1);
  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

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

/* ==========================================================================
   TYPOGRAPHY & UTILITIES
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: 1px;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-tag {
  display: inline-block;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.5rem;
  text-transform: uppercase;
}

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 1000;
  transition: var(--transition);
  background: transparent;
}
.navbar.scrolled {
  background: rgba(10, 14, 23, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 15px 0;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 900;
}
.logo span {
  color: var(--primary);
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}
.nav-link {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}
.nav-link:hover {
  color: var(--primary);
}
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(75, 144, 255, 0.3);
}
.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 20px rgba(75, 144, 255, 0.5);
}
.btn-secondary {
  background: var(--secondary);
  color: #fff;
}
.btn-secondary:hover {
  background: #384355;
}
.btn-full {
  width: 100%;
  margin-top: 20px;
}

/* Ripple Effect */
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 0.6s linear;
  background: rgba(255, 255, 255, 0.3);
  pointer-events: none;
}
@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 80px;
}
#hero-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
}
.hero-bg {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 1000px;
  z-index: 2;
  pointer-events: none;
}
.spotlight {
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(75,144,255,0.15) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
}
.spotlight-left { top: -100px; left: -100px; }
.spotlight-right { bottom: -100px; right: -100px; }

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
}
.hero-badge {
  display: inline-block;
  background: rgba(75, 144, 255, 0.1);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(75, 144, 255, 0.3);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 1px;
}
.hero-title {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 0 20px rgba(75, 144, 255, 0.3);
}
.hero-title span {
  color: var(--primary);
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}
.hero-visual-wrapper {
  margin-top: 50px;
  perspective: 1000px;
}
.hero-visual-card {
  transition: transform 0.1s;
  transform-style: preserve-3d;
}
.hero-image {
  width: 100%;
  max-width: 700px;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  border: 1px solid var(--border-color);
}

/* ==========================================================================
   PLATFORM SELECT
   ========================================================================== */
.platform-select-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 40px;
  backdrop-filter: blur(10px);
}
.platform-step-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--text-main);
}
.step-num {
  color: var(--primary);
  margin-right: 10px;
}
.platform-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
  margin-bottom: 40px;
}
.platform-select-card {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px 10px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.platform-select-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255,255,255,0.3);
}
.platform-select-card.selected {
  border-color: var(--primary);
  background: rgba(75, 144, 255, 0.1);
  box-shadow: 0 0 15px rgba(75, 144, 255, 0.2);
}
.platform-svg {
  width: 40px;
  height: 40px;
  fill: var(--text-main);
  margin-bottom: 10px;
  transition: var(--transition);
}
.platform-select-card.selected .platform-svg {
  fill: var(--primary);
}
.platform-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
}
.account-input-box {
  display: flex;
  gap: 15px;
  align-items: flex-end;
}
.input-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.input-label-wrapper {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.input-label {
  font-weight: 600;
  font-size: 0.9rem;
}
.input-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.custom-input {
  width: 100%;
  padding: 14px 20px;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: #fff;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: var(--transition);
}
.custom-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(75, 144, 255, 0.2);
}

/* ==========================================================================
   EDITIONS
   ========================================================================== */
.editions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.glass-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}
.edition-card.featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(75, 144, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  position: relative;
}
.featured-badge {
  position: absolute;
  top: 0; right: 30px;
  transform: translateY(-50%);
  background: var(--primary);
  color: #fff;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 20px;
  letter-spacing: 1px;
}
.edition-image-container {
  width: 100%;
  height: 180px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}
.edition-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.glass-card:hover .edition-image {
  transform: scale(1.05);
}
.edition-name {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.edition-price {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 25px;
}
.edition-price span {
  font-size: 1rem;
  color: var(--text-muted);
}
.edition-checklist {
  list-style: none;
  margin-bottom: 30px;
}
.edition-checklist li {
  margin-bottom: 12px;
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
}
.checklist-icon {
  color: var(--primary);
  margin-right: 10px;
  font-weight: bold;
}
.edition-content {
  flex-grow: 1;
}

/* ==========================================================================
   COUNTDOWN
   ========================================================================== */
.countdown-container {
  text-align: center;
  background: linear-gradient(45deg, rgba(75,144,255,0.05), transparent);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 60px 20px;
}
.timer-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}
.timer-box {
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(75, 144, 255, 0.3);
  border-radius: 8px;
  padding: 20px;
  width: 100px;
}
.timer-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
}
.timer-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-wrapper {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}
.faq-header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: rgba(0,0,0,0.2);
}
.faq-question {
  font-size: 1.1rem;
  font-family: var(--font-body);
  font-weight: 600;
}
.faq-icon {
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}
.faq-body {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  color: var(--text-muted);
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.active .faq-body {
  padding: 20px;
  max-height: 200px;
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-color);
  background: rgba(0,0,0,0.3);
  padding: 40px 0;
  margin-top: 50px;
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.footer-copy {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 20px 0;
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-link:hover {
  color: var(--primary);
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVE)
   ========================================================================== */
@media (max-width: 992px) {
  .hero-title { font-size: 3.5rem; }
  .account-input-box { flex-direction: column; align-items: stretch; }
}
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0;
    width: 100%;
    background: rgba(10, 14, 23, 0.95);
    flex-direction: column;
    padding: 20px;
    gap: 20px;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.3s ease-in-out;
  }
  .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  .mobile-menu-btn { display: block; }
  .hero-title { font-size: 2.8rem; }
  .timer-grid { flex-wrap: wrap; }
  .timer-box { width: calc(50% - 10px); }
}