/* ==============================================
   NIGHT REALMS - Cyberpunk Design
   ============================================== */

:root {
  --gradient-cyber: linear-gradient(135deg, #ff00ff, #aa66ff);
  --glow-pink: 0 0 20px rgba(255, 0, 255, 0.15);
  --glow-cyan: 0 0 20px rgba(0, 255, 255, 0.1);
}

/* Hero */
.nr-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 80px;
  overflow: hidden;
  background: var(--bg-primary);
}

.nr-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 30% 0%, rgba(255, 0, 255, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 35% at 70% 100%, rgba(0, 255, 255, 0.04) 0%, transparent 50%);
  z-index: 0;
  pointer-events: none;
}

.nr-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ff00ff, #00ffff, #aa66ff, transparent);
  z-index: 0;
  opacity: 0.6;
}

.nr-hero-content {
  position: relative;
  z-index: 1;
  max-width: 750px;
  animation: fadeInUp 0.8s ease forwards;
}

.nr-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 4px;
  background: rgba(255, 0, 255, 0.08);
  color: #ff00ff;
  border: 1px solid rgba(255, 0, 255, 0.2);
  margin-bottom: 20px;
  font-family: var(--font-mono);
}

.nr-hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.nr-glow-text {
  background: linear-gradient(135deg, #ff00ff, #00ffff, #aa66ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 12px rgba(255, 0, 255, 0.2));
}

.nr-hero-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

.nr-hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-cyber-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 0, 255, 0.3) !important;
  box-shadow: 0 0 12px rgba(255, 0, 255, 0.06);
}

.btn-cyber-secondary:hover {
  background: rgba(255, 0, 255, 0.1);
  border-color: #ff00ff !important;
  transform: translateY(-2px);
  color: #fff;
}

/* About Section */
.nr-about {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 100px 24px;
  text-align: center;
}

.nr-about h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.nr-about > p {
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.nr-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.nr-feature-card {
  padding: 32px 24px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nr-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--nr-accent, #ff00ff), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nr-feature-card:hover::before {
  opacity: 0.8;
}

.nr-feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 0, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(255, 0, 255, 0.06);
}

.nf-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}

.nr-feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

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

/* Realms List */
.nr-realms-section {
  padding: 100px 24px;
  background: var(--bg-secondary);
  text-align: center;
  border-top: 1px solid rgba(255, 0, 255, 0.05);
}

.nr-realms-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.nr-section-sub {
  color: var(--text-secondary);
  margin-bottom: 48px;
  font-size: 1.05rem;
}

.nr-realms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nr-realm-card {
  padding: 36px 28px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  text-align: left;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nr-realm-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 60% at 50% 0%, rgba(255, 0, 255, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.nr-realm-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--nr-accent, #ff00ff);
  transform: translateY(-6px);
  box-shadow: 0 8px 32px rgba(255, 0, 255, 0.08);
}

.nr-realm-icon {
  font-size: 2.8rem;
  display: block;
  margin-bottom: 16px;
}

.nr-realm-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.nr-realm-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 12px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--nr-accent, #ff00ff) 15%, transparent);
  color: var(--nr-accent, #ff00ff);
  border: 1px solid color-mix(in srgb, var(--nr-accent, #ff00ff) 25%, transparent);
  margin-bottom: 12px;
}

.nr-realm-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.nr-realm-card p strong {
  color: var(--text-primary);
  font-weight: 600;
}

.nr-realm-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nr-realm-stats span {
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
}

/* CTA */
.nr-cta {
  padding: 100px 24px;
  text-align: center;
  background: var(--bg-primary);
  position: relative;
}

.nr-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 0, 255, 0.15), transparent);
}

.nr-cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.nr-cta h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.nr-cta p {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* Responsive */
@media (max-width: 768px) {
  .nr-hero { padding: 120px 16px 60px; }
  .nr-about { padding: 60px 16px; }
  .nr-realms-section { padding: 60px 16px; }
  .nr-cta { padding: 60px 16px; }
  .nr-realms-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .nr-hero-content h1 { font-size: 2rem; }
  .nr-hero-actions { flex-direction: column; align-items: center; }
}
