:root {
  --bg: #07070c;
  --bg-alt: #0d0d16;
  --card: #12121f;
  --text: #e8e6f0;
  --muted: #9b97b0;
  --green: #00ff9d;
  --red: #ff3b5c;
  --purple: #b57bff;
  --gold: #ffd700;
  --glow: 0 0 30px rgba(0, 255, 157, 0.15);
}

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

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

h1, h2, h3 {
  font-family: 'Cinzel', serif;
  font-weight: 600;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(7, 7, 12, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  color: var(--green);
  text-decoration: none;
  letter-spacing: 1px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 2rem;
  font-size: 0.95rem;
  transition: color 0.3s;
}

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

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 6rem 2rem 4rem;
  background-image: url('assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(7, 7, 12, 0.72) 0%,
    rgba(7, 7, 12, 0.5) 45%,
    rgba(7, 7, 12, 0.88) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
}

.hero h1 {
  font-size: clamp(2.8rem, 8vw, 5rem);
  background: linear-gradient(135deg, #00ff9d, #b57bff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
  text-shadow: 0 0 40px rgba(0, 255, 157, 0.3);
}

.tagline {
  font-size: 1.25rem;
  color: #e8e6f0;
  margin-bottom: 2.5rem;
  line-height: 1.8;
  text-shadow: 0 2px 12px rgba(0,0,0,0.9);
}

.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  background: transparent;
  border: 1px solid #00ff9d;
  color: #00ff9d;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s;
}

.btn:hover {
  background: #00ff9d;
  color: #000;
  box-shadow: 0 0 35px rgba(0, 255, 157, 0.55);
}

/* Soft glowing orbs */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 2;
  opacity: 0.45;
  animation: pulse 9s ease-in-out infinite;
}

.hero::before {
  width: 420px;
  height: 420px;
  background: #00ff9d;
  top: 8%;
  left: 8%;
}

.hero::after {
  width: 380px;
  height: 380px;
  background: #b57bff;
  bottom: 12%;
  right: 8%;
  animation-delay: 4.5s;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.12); }
}

/* Fairy dust */
.fairy-dust {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: 
    radial-gradient(1.5px 1.5px at 30px 40px, #00ff9d, transparent),
    radial-gradient(2px 2px at 80px 90px, #b57bff, transparent),
    radial-gradient(1px 1px at 140px 50px, #ffffff, transparent),
    radial-gradient(1.8px 1.8px at 200px 130px, #00ff9d, transparent),
    radial-gradient(1px 1px at 260px 70px, #b57bff, transparent),
    radial-gradient(2px 2px at 320px 160px, #00ff9d, transparent),
    radial-gradient(1.2px 1.2px at 380px 100px, #ffffff, transparent);
  background-size: 420px 220px;
  animation: dust 28s linear infinite;
  opacity: 0.65;
}

@keyframes dust {
  from { background-position: 0 0; }
  to { background-position: 420px 220px; }
}

/* Sections */
.section {
  padding: 6rem 2rem;
}

.section.alt {
  background: var(--bg-alt);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3.5rem;
  color: var(--green);
  letter-spacing: 1px;
}

/* Lore */
.lore-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.lore-text p {
  margin-bottom: 1.2rem;
  color: var(--muted);
}

.lore-text strong {
  color: var(--green);
}

.lore-text ul {
  margin: 1.5rem 0 1.5rem 1.5rem;
  color: var(--muted);
}

.green { color: var(--green); }
.flat { color: #aaa; }
.red { color: var(--red); }

.lore-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--glow);
  border: 1px solid rgba(0,255,157,0.15);
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), var(--glow);
}

.card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 1.5rem;
}

.card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.rank {
  font-size: 0.85rem;
  color: var(--green);
  margin-bottom: 0.8rem;
  font-weight: 500;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Archetypes slightly wider */
.archetypes {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
}

.gallery-item {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(255,255,255,0.08);
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: var(--glow);
}

/* Footer */
.footer {
  padding: 4rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer p {
  color: var(--green);
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.footer .small {
  color: var(--muted);
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 60px rgba(0,255,157,0.2);
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2.5rem;
  font-size: 3rem;
  color: white;
  cursor: pointer;
  line-height: 1;
}

/* Responsive */
@media (max-width: 900px) {
  .lore-grid {
    grid-template-columns: 1fr;
  }
  
  .nav-links {
    display: none;
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }
}