/* Landing Page - RPG Dark Theme */
:root {
  --bg-dark: #0a0a0f;
  --bg-card: #1a1a2e;
  --bg-card-hover: #22223a;
  --accent: #4fc3f7;
  --accent-glow: rgba(79, 195, 247, 0.3);
  --accent-bright: #81d4fa;
  --gold: #ffd700;
  --gold-glow: rgba(255, 215, 0, 0.3);
  --text-primary: #e0e0e0;
  --text-secondary: #9e9e9e;
  --text-muted: #616161;
  --border: #2a2a3e;
  --success: #66bb6a;
  --purple: #bb86fc;
  --red: #ef5350;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Press Start 2P', monospace;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

html {
  scroll-behavior: smooth;
}

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

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, white, transparent),
    radial-gradient(1px 1px at 60% 70%, white, transparent),
    radial-gradient(1px 1px at 50% 50%, white, transparent),
    radial-gradient(1px 1px at 80% 10%, white, transparent),
    radial-gradient(1px 1px at 90% 60%, white, transparent);
  background-size: 200% 200%;
  background-position: 0% 0%;
  animation: stars-drift 60s ease-in-out infinite;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

@keyframes stars-drift {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
}

body > * {
  position: relative;
  z-index: 1;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

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

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(79, 195, 247, 0.02) 0%, transparent 60%);
  pointer-events: none;
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: float-up 6s infinite;
  box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent-glow);
}

.particle:nth-child(3n) {
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold), 0 0 20px rgba(255, 215, 0, 0.4);
}

.particle:nth-child(5n) {
  background: var(--purple);
  box-shadow: 0 0 10px var(--purple), 0 0 20px rgba(187, 134, 252, 0.4);
}

@keyframes float-up {
  0% { opacity: 0; transform: translateY(100vh) scale(0) rotate(0deg); }
  10% { opacity: 0.9; }
  90% { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-10vh) scale(1.5) rotate(360deg); }
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(79, 195, 247, 0.1);
  border: 1px solid var(--accent);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  animation: pulse-glow 3s infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 5px var(--accent-glow); }
  50% { box-shadow: 0 0 20px var(--accent-glow); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 3.5rem);
  color: white;
  margin-bottom: 0.5rem;
  text-shadow:
    0 0 20px var(--accent-glow),
    0 0 40px var(--accent-glow),
    0 0 60px var(--accent-glow);
  line-height: 1.3;
  animation: title-glow 3s ease-in-out infinite;
}

@keyframes title-glow {
  0%, 100% {
    text-shadow:
      0 0 20px var(--accent-glow),
      0 0 40px var(--accent-glow),
      0 0 60px var(--accent-glow);
  }
  50% {
    text-shadow:
      0 0 30px var(--accent-glow),
      0 0 60px var(--accent-glow),
      0 0 90px var(--accent-glow);
  }
}

.hero-title .accent {
  color: var(--accent);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 700px;
  line-height: 1.6;
}

.hero-subtitle strong {
  color: var(--accent);
  font-weight: 700;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

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

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  text-shadow: 0 0 20px var(--accent-glow);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.25rem;
}

/* Hero CTA Group */
.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.cta-primary {
  background: linear-gradient(135deg, var(--accent), #0288d1);
  color: white;
  box-shadow:
    0 4px 20px var(--accent-glow),
    0 0 40px rgba(79, 195, 247, 0.2);
  animation: button-pulse 2s ease-in-out infinite;
}

.cta-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.cta-secondary:hover {
  background: rgba(79, 195, 247, 0.1);
  transform: translateY(-2px);
}

.cta-large {
  padding: 1.3rem 2.5rem;
  font-size: 1.2rem;
  flex-direction: column;
  gap: 0.5rem;
}

.cta-icon {
  font-size: 1.2rem;
}

.cta-badge {
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@keyframes button-pulse {
  0%, 100% {
    box-shadow:
      0 4px 20px var(--accent-glow),
      0 0 40px rgba(79, 195, 247, 0.2);
  }
  50% {
    box-shadow:
      0 4px 30px var(--accent-glow),
      0 0 60px rgba(79, 195, 247, 0.4);
  }
}

.cta-primary:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow:
    0 10px 40px var(--accent-glow),
    0 0 80px rgba(79, 195, 247, 0.5);
  animation: none;
}

.cta-button::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: rotate(45deg);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ===== SECTION COMMON ===== */
section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 3vw, 1.8rem);
  text-align: center;
  margin-bottom: 1rem;
  color: white;
  text-shadow: 0 0 20px var(--accent-glow);
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== WHAT YOU'LL LEARN ===== */
.journey-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.journey-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.journey-step:hover {
  border-color: var(--accent);
  transform: translateY(-6px) scale(1.03);
  box-shadow:
    0 12px 40px rgba(0,0,0,0.4),
    0 0 30px var(--accent-glow);
}

.journey-step:hover .journey-step-icon {
  animation: icon-spin 0.6s ease;
}

@keyframes icon-spin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.2); }
  100% { transform: rotate(360deg) scale(1); }
}

.journey-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: var(--bg-dark);
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.journey-step-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.journey-step h3 {
  color: white;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.journey-step p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.journey-step p strong {
  color: var(--accent);
  font-weight: 700;
}

.step-xp {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), #0288d1);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  margin-top: 0.5rem;
  box-shadow: 0 2px 10px var(--accent-glow);
}

/* ===== CLASSES SECTION ===== */
.classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.class-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all 0.3s ease;
  cursor: default;
}

.class-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 8px 30px rgba(0,0,0,0.4),
    0 0 40px var(--accent-glow);
}

.class-card:hover .class-emoji {
  animation: emoji-bounce 0.5s ease;
}

@keyframes emoji-bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3) rotate(10deg); }
}

.class-emoji {
  font-size: 2rem;
  flex-shrink: 0;
}

.class-info h3 {
  color: white;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.class-tagline {
  color: var(--accent);
  font-size: 0.8rem;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.class-stats {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* ===== PREVIEW SECTION ===== */
.preview-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 3rem;
}

.preview-terminal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.terminal-header {
  background: #1a1a2e;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.terminal-dots {
  display: flex;
  gap: 0.5rem;
}

.terminal-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
}

.terminal-dots span:nth-child(1) { background: #ef5350; }
.terminal-dots span:nth-child(2) { background: #ffd700; }
.terminal-dots span:nth-child(3) { background: #66bb6a; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.terminal-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.8;
  background: #0a0a0f;
}

.terminal-line {
  margin-bottom: 0.75rem;
}

.prompt {
  color: var(--accent);
  font-weight: 600;
}

.command {
  color: var(--text-primary);
}

.response {
  color: var(--text-secondary);
  padding-left: 1rem;
}

.celebration {
  color: var(--accent);
  font-weight: 600;
  text-shadow: 0 0 10px var(--accent-glow);
}

.stats-label {
  color: var(--text-primary);
  font-weight: 600;
}

.accent {
  color: var(--accent);
  font-weight: 700;
}

.class-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), #0288d1);
  color: white;
  padding: 0.15rem 0.6rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

.cursor-blink {
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.preview-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.feature-item:hover {
  border-color: var(--accent);
  transform: translateX(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.feature-content h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.feature-content p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ===== CTA FINAL ===== */
.cta-section {
  text-align: center;
  padding: 6rem 2rem;
  background: linear-gradient(180deg, transparent, rgba(79, 195, 247, 0.03));
}

.cta-section .section-title {
  margin-bottom: 1rem;
}

.cta-section .section-subtitle {
  margin-bottom: 2.5rem;
}

.cta-group {
  margin-bottom: 1.5rem;
}

.cta-footnote {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 1.5rem;
}

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

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-section a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

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

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: -0.5rem;
}

.footer-detail {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.75rem;
}

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

  .preview-terminal {
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 1.5rem;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .cta-button {
    width: 100%;
  }

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

  .terminal-body {
    font-size: 0.8rem;
    padding: 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  section {
    padding: 3rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.3rem;
  }

  .hero-stats {
    gap: 1rem;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .stat-label {
    font-size: 0.65rem;
  }

  .cta-large {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  .journey-steps {
    grid-template-columns: 1fr;
  }

  .terminal-body {
    font-size: 0.75rem;
  }

  .feature-item {
    flex-direction: column;
    text-align: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}
