@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  /* Brand Colors — Dark gaming theme with vibrant accents */
  --color-bg: #0a0a0f;
  --color-surface: #12121a;
  --color-surface-light: #1a1a2e;
  --color-accent: #10b981;        /* Emerald green */
  --color-accent-dark: #059669;
  --color-accent-glow: rgba(16, 185, 129, 0.3);
  --color-secondary: #8b5cf6;     /* Purple */
  --color-text: #f1f5f9;
  --color-text-muted: #94a3b8;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-white: #ffffff;

  /* Legacy support for login.html which uses these vars */
  --color-primary: #10b981;
  --color-primary-dark: #059669;

  /* Typography */
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-accent: 'Playfair Display', serif;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px var(--color-accent-glow);
}

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.15;
  color: var(--color-white);
  font-weight: 800;
  letter-spacing: -0.5px;
}

img { max-width: 100%; display: block; }

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-accent { color: var(--color-accent); }

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-bg);
  box-shadow: 0 4px 20px var(--color-accent-glow);
}
.btn-primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--color-accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}
.btn-ghost:hover {
  color: var(--color-white);
  border-color: var(--color-accent);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.05rem;
}

.points-button {
    background-color: var(--color-accent);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(20px);
  z-index: 1000;
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo-icon { font-size: 1.5rem; }
.logo-text {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--color-white);
  letter-spacing: -0.5px;
}

.nav-toggle { display: none; }

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  font-weight: 600;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.nav-links a:hover { color: var(--color-white); }
.nav-links a.nav-member {
  color: var(--color-accent);
}

/* ========================================
   HERO
   ======================================== */
.hero {
  padding-top: 120px;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}

.free-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-accent);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.hero-text h1 {
  font-size: 3.8rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-text p {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  max-width: 90%;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-model-wrapper {
  width: 100%;
  max-width: 420px;
  background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
  border-radius: 30px;
  position: relative;
}

/* ========================================
   FEATURES
   ======================================== */
.features-section {
  padding: 100px 0;
  background: var(--color-surface);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.section-header p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--color-surface-light);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: var(--shadow-glow);
}

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

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ========================================
   HOW IT WORKS
   ======================================== */
.how-section {
  padding: 100px 0;
  background: var(--color-bg);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.step-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.step-number {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  color: white;
  margin: 0 auto 1.25rem;
}

.step-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ========================================
   CHARACTER SHOWCASE
   ======================================== */
.characters-section {
  padding: 100px 0;
  background: var(--color-surface);
}

.character-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: start;
}

.character-card {
  background: var(--color-surface-light);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.character-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}
.character-card.featured {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-glow);
  transform: scale(1.03);
}
.character-card.featured:hover {
  transform: scale(1.05) translateY(-8px);
}

.character-model {
  background: radial-gradient(ellipse at center bottom, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
  padding: 1rem 0 0;
}

.character-info {
  padding: 1.25rem 1.5rem 1.5rem;
  text-align: center;
}

.character-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text-muted);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}
.character-badge.accent {
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-accent);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.character-badge.rare {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.character-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.character-info p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
  padding: 100px 0;
  background: var(--color-bg);
}

.cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
}

.cta-content p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 3rem 0 2rem;
}

.footer-content {
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.footer-links a {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}
.footer-links a:hover {
  color: var(--color-accent);
}

.footer-copy {
  color: #4a5568;
  font-size: 0.8rem;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .hero-text h1 {
    font-size: 2.5rem;
  }
  .hero-text p {
    max-width: 100%;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-visual {
    order: -1;
  }
  .hero-model-wrapper {
    max-width: 300px;
  }
  .hero-model-wrapper model-viewer {
    height: 300px !important;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  .character-showcase {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin: 0 auto;
  }
  .character-card.featured {
    transform: none;
  }
  .character-card.featured:hover {
    transform: translateY(-8px);
  }

  .section-header h2 {
    font-size: 2rem;
  }
  .cta-content h2 {
    font-size: 2rem;
  }

  /* Mobile nav */
  .nav-toggle {
    display: block;
    cursor: pointer;
    color: var(--color-white);
    z-index: 9999;
  }
  .nav-links {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    z-index: 1001;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links a {
    font-size: 1rem;
    padding: 8px 0;
  }
  .nav-links .btn {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 2rem;
  }
  .btn-lg {
    padding: 16px 28px;
    font-size: 0.95rem;
  }
}
