/* ===========================================
   POKEVAULT — Dark Neon Korean Gaming Style
   =========================================== */

/* ---- Custom Properties ---- */
:root {
  --bg-base: #080812;
  --bg-surface: #0d0d1f;
  --bg-card: #111128;
  --bg-card-hover: #161638;
  --border-subtle: rgba(255,255,255,0.06);
  --border-glow: rgba(168,85,247,0.4);

  --purple: #a855f7;
  --purple-bright: #c084fc;
  --purple-dark: #7c3aed;
  --blue: #3b82f6;
  --blue-bright: #60a5fa;
  --cyan: #22d3ee;
  --pink: #ec4899;
  --neon-green: #4ade80;

  --text-primary: #f0f0ff;
  --text-secondary: #9ca3d8;
  --text-muted: #5a5a8a;

  --font-display: 'Orbitron', 'Exo 2', sans-serif;
  --font-body: 'Exo 2', 'Noto Sans KR', sans-serif;
  --font-korean: 'Noto Sans KR', sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  --shadow-glow-purple: 0 0 30px rgba(168,85,247,0.35);
  --shadow-glow-blue: 0 0 30px rgba(59,130,246,0.35);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.6);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-surface); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--purple), var(--blue)); border-radius: 3px; }

/* ---- Layout ---- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

/* ---- Section Headers ---- */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--purple-bright);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  margin-bottom: 16px;
}

.eyebrow-line {
  display: block;
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple));
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
}

.text-glow {
  background: linear-gradient(135deg, var(--purple-bright), var(--blue-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(168,85,247,0.5));
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: var(--transition);
}

.btn:hover::before { background: rgba(255,255,255,0.08); }

.btn-primary {
  background: linear-gradient(135deg, var(--purple-dark), var(--purple));
  color: white;
  box-shadow: 0 0 20px rgba(168,85,247,0.4), 0 4px 16px rgba(0,0,0,0.5);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(168,85,247,0.6), 0 8px 24px rgba(0,0,0,0.6);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.2);
}

.btn-ghost:hover {
  border-color: var(--purple);
  box-shadow: 0 0 16px rgba(168,85,247,0.3);
  transform: translateY(-2px);
}

.btn-sm { padding: 10px 20px; font-size: 12px; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(8, 8, 18, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 8px rgba(168,85,247,0.6));
}

.logo-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--text-primary);
}

.logo-accent {
  color: var(--purple-bright);
  text-shadow: 0 0 20px rgba(168,85,247,0.7);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: block;
  padding: 8px 14px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 16px;
  height: 2px;
  background: var(--purple);
  border-radius: 1px;
  transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-cta {
  background: linear-gradient(135deg, var(--purple-dark), var(--purple));
  color: white !important;
  padding: 8px 18px;
  margin-left: 8px;
  box-shadow: 0 0 16px rgba(168,85,247,0.3);
}

.nav-cta:hover {
  box-shadow: 0 0 24px rgba(168,85,247,0.5);
  transform: translateY(-1px);
}

.nav-cta::after { display: none; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: rgba(8, 8, 18, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 999;
  padding: 16px 24px;
  transform: translateY(-10px);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.mobile-menu.open {
  display: block;
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.mob-link {
  display: block;
  padding: 14px 0;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-fast);
}

.mob-link:hover { color: var(--purple-bright); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.35;
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.12); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(168,85,247,0.25) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 100% 50%, rgba(59,130,246,0.15) 0%, transparent 50%),
    linear-gradient(to bottom, rgba(8,8,18,0.3) 0%, rgba(8,8,18,0.7) 60%, rgba(8,8,18,0.98) 100%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.particle {
  position: absolute;
  border-radius: 50%;
  animation: particleFloat linear infinite;
  pointer-events: none;
}

@keyframes particleFloat {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px 24px 100px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--purple-bright);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  margin-bottom: 28px;
  padding: 8px 16px;
  background: rgba(168,85,247,0.1);
  border: 1px solid rgba(168,85,247,0.3);
  border-radius: 100px;
  width: fit-content;
}

.badge-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--purple-bright);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--purple-bright);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.hero-title {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.hero-title-line {
  display: block;
  color: var(--text-primary);
  text-shadow: 0 0 60px rgba(255,255,255,0.1);
}

.hero-title-glow {
  background: linear-gradient(90deg, var(--purple-bright) 0%, var(--blue-bright) 50%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(168,85,247,0.6));
  animation: titlePulse 4s ease-in-out infinite;
}

@keyframes titlePulse {
  0%, 100% { filter: drop-shadow(0 0 30px rgba(168,85,247,0.6)); }
  50%       { filter: drop-shadow(0 0 50px rgba(168,85,247,0.9)); }
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--purple-bright), var(--blue-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 4px;
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border-subtle);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.2em;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--purple), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1; transform: scaleY(1.2); }
}

/* Reveal animations */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  animation: revealUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.6s; }

@keyframes revealUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   TYPE BADGES
   ============================================================ */
.type-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.type-fire     { background: rgba(239,68,68,0.2); color: #f87171; border: 1px solid rgba(239,68,68,0.4); }
.type-water    { background: rgba(59,130,246,0.2); color: #60a5fa; border: 1px solid rgba(59,130,246,0.4); }
.type-grass    { background: rgba(34,197,94,0.2); color: #4ade80; border: 1px solid rgba(34,197,94,0.4); }
.type-electric { background: rgba(234,179,8,0.2); color: #fbbf24; border: 1px solid rgba(234,179,8,0.4); }
.type-psychic  { background: rgba(236,72,153,0.2); color: #f472b6; border: 1px solid rgba(236,72,153,0.4); }
.type-ice      { background: rgba(34,211,238,0.2); color: #22d3ee; border: 1px solid rgba(34,211,238,0.4); }
.type-dragon   { background: rgba(99,102,241,0.2); color: #818cf8; border: 1px solid rgba(99,102,241,0.4); }
.type-dark     { background: rgba(107,114,128,0.2); color: #9ca3af; border: 1px solid rgba(107,114,128,0.4); }
.type-ghost    { background: rgba(139,92,246,0.2); color: #a78bfa; border: 1px solid rgba(139,92,246,0.4); }
.type-fighting { background: rgba(251,146,60,0.2); color: #fb923c; border: 1px solid rgba(251,146,60,0.4); }
.type-steel    { background: rgba(148,163,184,0.2); color: #94a3b8; border: 1px solid rgba(148,163,184,0.4); }
.type-flying   { background: rgba(125,211,252,0.2); color: #7dd3fc; border: 1px solid rgba(125,211,252,0.4); }
.type-poison   { background: rgba(168,85,247,0.2); color: #c084fc; border: 1px solid rgba(168,85,247,0.4); }
.type-normal   { background: rgba(209,213,219,0.2); color: #d1d5db; border: 1px solid rgba(209,213,219,0.3); }
.type-rock     { background: rgba(161,120,79,0.2); color: #d4a96a; border: 1px solid rgba(161,120,79,0.4); }
.type-fairy    { background: rgba(244,114,182,0.2); color: #f9a8d4; border: 1px solid rgba(244,114,182,0.4); }

/* ============================================================
   FEATURED SECTION + CAROUSEL
   ============================================================ */
.featured-section {
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(168,85,247,0.08) 0%, transparent 60%),
    var(--bg-surface);
}

.carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

.carousel-btn {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(168,85,247,0.15);
  border: 1px solid rgba(168,85,247,0.4);
  color: var(--purple-bright);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 2;
}

.carousel-btn:hover {
  background: rgba(168,85,247,0.3);
  box-shadow: 0 0 20px rgba(168,85,247,0.4);
  transform: scale(1.1);
}

.carousel-track-container {
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* ---- Pokemon Cards ---- */
.pokemon-card {
  flex: 0 0 calc(25% - 15px);
  min-width: 260px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: var(--transition);
  cursor: pointer;
}

.pokemon-card:hover {
  transform: translateY(-8px);
  border-color: rgba(168,85,247,0.4);
  box-shadow: var(--shadow-card), 0 0 40px rgba(168,85,247,0.2);
}

.card-glow {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  opacity: 0;
  transition: var(--transition-slow);
  pointer-events: none;
}

.pokemon-card:hover .card-glow { opacity: 1; }

.fire-glow     { background: radial-gradient(circle, rgba(239,68,68,0.3), transparent 70%); }
.psychic-glow  { background: radial-gradient(circle, rgba(236,72,153,0.3), transparent 70%); }
.dark-glow     { background: radial-gradient(circle, rgba(107,114,128,0.3), transparent 70%); }
.fighting-glow { background: radial-gradient(circle, rgba(251,146,60,0.3), transparent 70%); }
.ghost-glow    { background: radial-gradient(circle, rgba(139,92,246,0.3), transparent 70%); }
.dragon-glow   { background: radial-gradient(circle, rgba(99,102,241,0.3), transparent 70%); }
.electric-glow { background: radial-gradient(circle, rgba(234,179,8,0.3), transparent 70%); }
.arceus-glow   { background: radial-gradient(circle, rgba(255,255,255,0.2), transparent 70%); }

.card-number {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.card-image-wrap {
  position: relative;
  padding: 32px 24px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  background: linear-gradient(180deg, rgba(168,85,247,0.04) 0%, transparent 100%);
}

.card-img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  transition: var(--transition);
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.5));
}

.pokemon-card:hover .card-img {
  transform: scale(1.08) translateY(-4px);
}

.card-img-shadow {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 20px;
  border-radius: 50%;
  opacity: 0.4;
  transition: var(--transition);
  filter: blur(8px);
}

.fire-shadow     { background: radial-gradient(ellipse, rgba(239,68,68,0.6), transparent); }
.psychic-shadow  { background: radial-gradient(ellipse, rgba(236,72,153,0.6), transparent); }
.dark-shadow     { background: radial-gradient(ellipse, rgba(107,114,128,0.6), transparent); }
.fighting-shadow { background: radial-gradient(ellipse, rgba(251,146,60,0.6), transparent); }
.ghost-shadow    { background: radial-gradient(ellipse, rgba(139,92,246,0.6), transparent); }
.dragon-shadow   { background: radial-gradient(ellipse, rgba(99,102,241,0.6), transparent); }
.electric-shadow { background: radial-gradient(ellipse, rgba(234,179,8,0.6), transparent); }
.arceus-shadow   { background: radial-gradient(ellipse, rgba(200,200,255,0.6), transparent); }

.card-body {
  padding: 16px 20px 24px;
}

.card-types {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.card-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.card-name-kr {
  font-family: var(--font-korean);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.card-stats-mini {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mini-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.mini-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  width: 28px;
  flex-shrink: 0;
}

.mini-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.07);
  border-radius: 2px;
  overflow: hidden;
}

.mini-fill {
  height: 100%;
  border-radius: 2px;
  width: 0;
  animation: fillBar 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 0.5s;
  --w: 50%;
}

@keyframes fillBar {
  from { width: 0; }
  to   { width: min(var(--w), 100%); }
}

.mini-val {
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--text-muted);
  width: 24px;
  text-align: right;
  flex-shrink: 0;
}

.fire-fill     { background: linear-gradient(90deg, #ef4444, #f97316); }
.psychic-fill  { background: linear-gradient(90deg, #ec4899, #f472b6); }
.dark-fill     { background: linear-gradient(90deg, #6b7280, #9ca3af); }
.fighting-fill { background: linear-gradient(90deg, #f97316, #fb923c); }
.ghost-fill    { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.dragon-fill   { background: linear-gradient(90deg, #6366f1, #818cf8); }
.electric-fill { background: linear-gradient(90deg, #eab308, #fbbf24); }
.arceus-fill   { background: linear-gradient(90deg, #c084fc, #818cf8); }

/* Carousel Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.carousel-dot.active {
  background: var(--purple-bright);
  box-shadow: 0 0 10px var(--purple);
  width: 24px;
  border-radius: 4px;
}

/* ============================================================
   POKEDEX SECTION
   ============================================================ */
.pokedex-section {
  background: var(--bg-base);
}

/* Type Filters */
.type-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 48px;
}

.type-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.type-filter-btn:hover {
  color: var(--text-primary);
  border-color: rgba(168,85,247,0.4);
  background: rgba(168,85,247,0.08);
}

.type-filter-btn.active {
  color: white;
  background: linear-gradient(135deg, var(--purple-dark), var(--purple));
  border-color: var(--purple);
  box-shadow: 0 0 16px rgba(168,85,247,0.4);
}

/* Pokedex Grid */
.pokedex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.dex-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.dex-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(168,85,247,0.06), transparent);
  opacity: 0;
  transition: var(--transition);
}

.dex-card:hover {
  transform: translateY(-6px);
  border-color: rgba(168,85,247,0.4);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 24px rgba(168,85,247,0.15);
}

.dex-card:hover::before { opacity: 1; }

.dex-card.hidden {
  display: none;
}

.dex-num {
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.dex-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 10px;
  transition: var(--transition);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}

.dex-card:hover img {
  transform: scale(1.12) translateY(-4px);
  filter: drop-shadow(0 8px 16px rgba(168,85,247,0.3));
}

.dex-card h4 {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.dex-kr {
  font-family: var(--font-korean);
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.dex-types {
  display: flex;
  gap: 4px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   STATS & ABILITIES SECTION
   ============================================================ */
.stats-section {
  background:
    radial-gradient(ellipse 80% 50% at 0% 50%, rgba(59,130,246,0.06) 0%, transparent 50%),
    radial-gradient(ellipse 80% 50% at 100% 50%, rgba(168,85,247,0.06) 0%, transparent 50%),
    var(--bg-surface);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-ability-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-ability-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
  opacity: 0;
  transition: var(--transition);
}

.stat-ability-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168,85,247,0.3);
  box-shadow: var(--shadow-card), 0 0 30px rgba(168,85,247,0.1);
}

.stat-ability-card:hover::before { opacity: 1; }

.featured-ability {
  grid-column: span 1;
  background: linear-gradient(135deg, rgba(168,85,247,0.12), rgba(59,130,246,0.08));
  border-color: rgba(168,85,247,0.3);
}

.sac-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.sac-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.fire-icon     { background: rgba(239,68,68,0.15); color: #f87171; }
.psychic-icon  { background: rgba(236,72,153,0.15); color: #f472b6; }
.dragon-icon   { background: rgba(99,102,241,0.15); color: #818cf8; }
.electric-icon { background: rgba(234,179,8,0.15); color: #fbbf24; }
.special-icon  { background: rgba(168,85,247,0.15); color: var(--purple-bright); }
.ice-icon      { background: rgba(34,211,238,0.15); color: #22d3ee; }

.sac-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  line-height: 1.2;
}

.sac-type {
  font-size: 11px;
  margin-top: 2px;
}

.type-fire-text     { color: #f87171; }
.type-psychic-text  { color: #f472b6; }
.type-dragon-text   { color: #818cf8; }
.type-electric-text { color: #fbbf24; }
.type-fighting-text { color: #fb923c; }
.type-ice-text      { color: #22d3ee; }

.sac-power {
  margin-left: auto;
  text-align: center;
}

.power-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--purple-bright), var(--blue-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.power-label {
  display: block;
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.sac-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.sac-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.sac-stat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.sac-stat-row span:first-child { width: 64px; flex-shrink: 0; }
.sac-stat-row span:last-child  { width: 36px; text-align: right; flex-shrink: 0; }

.sac-bar {
  flex: 1;
  height: 5px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}

.sac-fill {
  height: 100%;
  border-radius: 3px;
  width: 0;
  animation: fillBar 1.4s cubic-bezier(0.4,0,0.2,1) forwards;
  animation-delay: 0.3s;
  --w: 50%;
}

.fire-bar     { background: linear-gradient(90deg, #ef4444, #f97316); }
.psychic-bar  { background: linear-gradient(90deg, #ec4899, #f472b6); }
.dragon-bar   { background: linear-gradient(90deg, #6366f1, #818cf8); }
.electric-bar { background: linear-gradient(90deg, #eab308, #fbbf24); }
.special-bar  { background: linear-gradient(90deg, var(--purple), var(--blue)); }
.ice-bar      { background: linear-gradient(90deg, #06b6d4, #22d3ee); }

.sac-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.sac-tag {
  display: inline-flex;
  padding: 3px 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--font-display);
  letter-spacing: 0.05em;
}

/* ============================================================
   FAN SPOTLIGHT SECTION
   ============================================================ */
.fan-section {
  background: var(--bg-base);
}

.fan-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
  margin-bottom: 64px;
}

.fan-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.fan-card:hover {
  border-color: rgba(168,85,247,0.4);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

.fan-large {
  grid-row: span 1;
}

.fan-wide {
  grid-column: span 2;
}

.fan-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.fan-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.fan-card:hover .fan-img-wrap img {
  transform: scale(1.05);
}

.fan-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,8,18,0.9) 0%, transparent 50%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.fan-card:hover .fan-overlay { opacity: 1; }

.fan-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.fan-artist {
  font-size: 12px;
  color: var(--text-secondary);
  font-family: var(--font-display);
  letter-spacing: 0.05em;
}

.fan-likes {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--pink);
  font-weight: 700;
}

.fan-placeholder-wrap {
  background: linear-gradient(135deg, rgba(168,85,247,0.08), rgba(59,130,246,0.08));
}

.fan-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-inner {
  text-align: center;
  padding: 32px;
}

.placeholder-inner i {
  font-size: 2.5rem;
  color: var(--purple-bright);
  margin-bottom: 16px;
  display: block;
  filter: drop-shadow(0 0 16px rgba(168,85,247,0.5));
}

.placeholder-inner h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.placeholder-inner p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.fan-body { padding: 20px; }

.fan-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.fan-caption {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.fan-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.fan-tag {
  display: inline-flex;
  padding: 3px 10px;
  background: rgba(168,85,247,0.1);
  border: 1px solid rgba(168,85,247,0.25);
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--purple-bright);
  letter-spacing: 0.05em;
}

/* Community Banner */
.community-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px;
  flex-wrap: wrap;
}

.comm-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 48px;
  text-align: center;
}

.comm-icon {
  font-size: 1.4rem;
  color: var(--purple-bright);
  filter: drop-shadow(0 0 10px rgba(168,85,247,0.5));
  margin-bottom: 4px;
}

.comm-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--purple-bright), var(--blue-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.comm-label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.comm-divider {
  width: 1px;
  height: 60px;
  background: var(--border-subtle);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.footer-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple), var(--blue), transparent);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 64px 0 48px;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  display: inline-flex;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  font-family: var(--font-korean);
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 14px;
  transition: var(--transition);
}

.social-link:hover {
  color: var(--purple-bright);
  border-color: rgba(168,85,247,0.4);
  background: rgba(168,85,247,0.1);
  box-shadow: 0 0 12px rgba(168,85,247,0.3);
  transform: translateY(-2px);
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer-list li {
  margin-bottom: 10px;
}

.footer-list a {
  font-size: 13px;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.footer-list a:hover {
  color: var(--purple-bright);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  text-align: center;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 600px;
}

.footer-copy-kr {
  font-family: var(--font-korean);
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.5;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--purple-dark), var(--purple));
  border-radius: 50%;
  color: white;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(168,85,247,0.5);
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  z-index: 900;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.back-to-top:hover {
  box-shadow: 0 6px 28px rgba(168,85,247,0.7);
  transform: translateY(-3px) scale(1.05);
}

/* ============================================================
   SCROLL-TRIGGERED ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.fade-in-left {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.08s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.16s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.24s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.32s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.48s; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.56s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Large tablets */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .pokemon-card {
    flex: 0 0 calc(33.33% - 14px);
    min-width: 220px;
  }
}

/* Tablets */
@media (max-width: 768px) {
  .section { padding: 72px 0; }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .hero-title {
    font-size: clamp(3rem, 12vw, 6rem);
  }

  .hero-stats {
    gap: 20px;
  }

  .hero-stat-divider { height: 28px; }

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

  .fan-large,
  .fan-wide {
    grid-column: span 2;
  }

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

  .community-banner {
    flex-wrap: wrap;
    gap: 24px;
    padding: 32px 20px;
  }

  .comm-stat { padding: 0 24px; }
  .comm-divider { display: none; }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .pokemon-card {
    flex: 0 0 calc(50% - 10px);
    min-width: 200px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }

  .section-title { font-size: 1.8rem; }

  .hero-title { font-size: clamp(2.8rem, 14vw, 4rem); }

  .hero-actions { flex-direction: column; align-items: flex-start; }

  .hero-stats {
    gap: 16px;
    flex-wrap: wrap;
  }

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

  .fan-large,
  .fan-wide { grid-column: span 1; }

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

  .pokedex-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }

  .pokemon-card {
    flex: 0 0 calc(80vw);
    min-width: unset;
  }

  .carousel-btn { display: none; }

  .type-filters { gap: 6px; }

  .type-filter-btn {
    padding: 7px 12px;
    font-size: 9px;
  }

  .back-to-top { bottom: 20px; right: 20px; }
}
