/* ============================= */
/* MOONRISE DARK MAGIC - Moonlight Theme */
/* ============================= */

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--cosmic-purple);
  color: var(--moon-glow);
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  z-index: 9999;
  font-weight: 600;
}

.skip-link:focus {
  left: 8px;
}

:root {
  /* Dark Theme Base Colors */
  --midnight-black: #0A0A0F;
  --deep-space: #12121A;
  --cosmic-purple: #1E1E2E;
  --moon-glow: #FCFAEE;
  --star-white: #FFFFFF;
  
  /* Moonlight Gradients */
  --gradient-moonlight: linear-gradient(135deg, 
    rgba(252, 250, 238, 0.15) 0%, 
    rgba(110, 182, 239, 0.08) 50%, 
    rgba(144, 119, 255, 0.05) 100%);
    
  --gradient-aurora-dark: linear-gradient(135deg, 
    #4FC3F7 0%, 
    #7E57C2 33%, 
    #F06292 66%, 
    #FFB74D 100%);
    
  --gradient-nebula-dark: linear-gradient(135deg, 
    #8B5CF6 0%, 
    #EC4899 50%, 
    #F59E0B 100%);
    
  --gradient-stardust-dark: linear-gradient(180deg, 
    rgba(139, 92, 246, 0.3) 0%, 
    rgba(236, 72, 153, 0.2) 50%, 
    rgba(245, 158, 11, 0.1) 100%);
    
  --gradient-cosmic-fog: radial-gradient(
    ellipse at top,
    rgba(110, 182, 239, 0.15) 0%,
    transparent 50%),
    radial-gradient(
    ellipse at bottom,
    rgba(144, 119, 255, 0.1) 0%,
    transparent 50%);
    
  /* Glass Effects */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.1);
  
  /* Glow Colors */
  --glow-purple: #8B5CF6;
  --glow-pink: #EC4899;
  --glow-blue: #4FC3F7;
  --glow-amber: #F59E0B;
}

/* ============================= */
/* DARK BODY & BACKGROUNDS */
/* ============================= */

body {
  background: var(--midnight-black);
  color: var(--moon-glow);
  position: relative;
  overflow-x: hidden;
}

/* Cosmic background layers */
.dark-hero {
  position: relative;
  min-height: 100vh;
  background: 
    var(--gradient-cosmic-fog),
    linear-gradient(180deg, 
      var(--midnight-black) 0%, 
      var(--deep-space) 50%, 
      var(--cosmic-purple) 100%);
  overflow: hidden;
}

/* Simple blurred gradient background */
.hero-gradient-bg {
  position: absolute;
  width: 110%;
  height: 110%;
  top: -5%;
  left: -5%;
  background: linear-gradient(135deg, 
    rgba(139, 92, 246, 0.2), 
    rgba(236, 72, 153, 0.15), 
    rgba(79, 195, 247, 0.1));
  filter: blur(100px);
  opacity: 0.5;
}

/* ============================= */
/* MOONLIGHT CARDS */
/* ============================= */

.card-moonlight {
  position: relative;
  padding: 32px;
  border-radius: 28px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Top shine effect */
.card-moonlight::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.3) 50%, 
    transparent 100%);
}

/* Hover glow effect */
.card-moonlight:hover {
  transform: translateY(-8px) scale(1.02);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 20px 40px rgba(139, 92, 246, 0.2),
    0 0 80px rgba(139, 92, 246, 0.1),
    inset 0 0 20px rgba(255, 255, 255, 0.05);
}

/* ============================= */
/* AURORA BUTTONS */
/* ============================= */

.btn-aurora {
  position: relative;
  padding: 18px 40px;
  border-radius: 50px;
  background: var(--gradient-aurora-dark);
  color: var(--star-white);
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 
    0 4px 20px rgba(139, 92, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Shimmer overlay */
.btn-aurora::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  transform: rotate(45deg);
  transition: all 0.6s;
  opacity: 0;
}

.btn-aurora:hover::before {
  animation: shimmer-slide 0.6s ease;
}

@keyframes shimmer-slide {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
    opacity: 0;
  }
}

.btn-aurora:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 
    0 8px 30px rgba(139, 92, 246, 0.4),
    0 0 60px rgba(236, 72, 153, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* ============================= */
/* MOONLIT FEATURE CHIPS */
/* ============================= */

.chip-moonlit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 50px;
  background: rgba(0, 0, 0, 0.3); /* Solid dark background, no backdrop-filter */
  border: 1px solid rgba(139, 92, 246, 0.2); /* Subtle purple border */
  color: var(--moon-glow);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: default;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
}

.chip-moonlit:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.2);
}

/* ============================= */
/* STARFIELD ANIMATION */
/* ============================= */

.starfield {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.star {
  position: absolute;
  background: var(--star-white);
  border-radius: 50%;
  opacity: 0.3; /* Start at animation's initial opacity */
  animation: twinkle 3s ease-in-out infinite;
}

.star.small {
  width: 1px;
  height: 1px;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
}

.star.medium {
  width: 2px;
  height: 2px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.star.large {
  width: 3px;
  height: 3px;
  box-shadow: 0 0 12px rgba(110, 182, 239, 0.8);
}

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

/* ============================= */
/* MOONLIGHT TEXT EFFECTS */
/* ============================= */

.text-moonlight {
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(135deg, 
    var(--moon-glow) 0%, 
    #8B5CF6 25%, 
    #EC4899 50%, 
    #4FC3F7 75%, 
    var(--moon-glow) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 8s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.text-glow {
  text-shadow: 
    0 0 20px rgba(139, 92, 246, 0.5),
    0 0 40px rgba(236, 72, 153, 0.3),
    0 0 60px rgba(79, 195, 247, 0.2);
}

/* ============================= */
/* FLOATING ORB ANIMATION */
/* ============================= */

.floating-orb {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, 
    rgba(139, 92, 246, 0.4) 0%, 
    rgba(236, 72, 153, 0.2) 50%, 
    transparent 70%);
  filter: blur(40px);
  animation: orb-float 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes orb-float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(100px, -100px) scale(1.2);
  }
  66% {
    transform: translate(-100px, 50px) scale(0.8);
  }
}

/* ============================= */
/* LOYALTY PROGRESS RINGS - DARK */
/* ============================= */

.progress-ring-dark {
  position: relative;
  width: 120px;
  height: 120px;
}

.progress-ring-bg {
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 8;
  fill: none;
}

.progress-ring-glow {
  stroke: url(#gradient-aurora);
  stroke-width: 8;
  fill: none;
  stroke-linecap: round;
  filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.6));
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { 
    filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.6)); 
  }
  50% { 
    filter: drop-shadow(0 0 20px rgba(236, 72, 153, 0.8)); 
  }
}

/* ============================= */
/* STATUS BADGES - DARK */
/* ============================= */

.badge-glow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 20px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #A78BFA;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.badge-glow.available {
  background: rgba(79, 195, 247, 0.1);
  border-color: rgba(79, 195, 247, 0.3);
  color: #4FC3F7;
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(79, 195, 247, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(79, 195, 247, 0);
  }
}

/* ============================= */
/* GLASSMORPHISM PANELS */
/* ============================= */

.glass-panel {
  padding: 40px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(40px) brightness(1.1);
  -webkit-backdrop-filter: blur(40px) brightness(1.1);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

/* Removed iridescent shine effect */

/* ============================= */
/* RESPONSIVE DARK THEME */
/* ============================= */

@media (max-width: 768px) {
  .card-moonlight {
    padding: 24px;
    border-radius: 20px;
  }
  
  .text-moonlight {
    font-size: clamp(32px, 8vw, 48px);
  }
  
  .glass-panel {
    padding: 24px;
    border-radius: 24px;
  }
}

/* ============================= */
/* SCROLL REVEAL - DARK */
/* ============================= */

.reveal-dark {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal-dark.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Glow fade in */
.glow-reveal {
  opacity: 0;
  filter: blur(20px);
  transition: all 1s ease;
}

.glow-reveal.revealed {
  opacity: 1;
  filter: blur(0);
}

/* ============================= */
/* AURORA BOREALIS BACKGROUND */
/* ============================= */

.aurora-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0.3;
}

.aurora-bg::before,
.aurora-bg::after {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
}

.aurora-bg::before {
  background: linear-gradient(45deg, 
    transparent, 
    #8B5CF6, 
    transparent, 
    #EC4899, 
    transparent);
  animation: aurora-wave 15s ease-in-out infinite;
}

.aurora-bg::after {
  background: linear-gradient(-45deg, 
    transparent, 
    #4FC3F7, 
    transparent, 
    #F59E0B, 
    transparent);
  animation: aurora-wave 20s ease-in-out infinite reverse;
}

@keyframes aurora-wave {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(50%) translateY(-20%); }
}

/* ============================= */
/* NEW UTILITY CLASSES */
/* ============================= */

/* Hero subtitle */
.hero-sub {
  font-size: 18px;
  color: rgba(252, 250, 238, 0.78);
  line-height: 1.6;
  margin: 24px 0 32px;
}

/* Section headings - no gradient */
.section-heading {
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  text-align: center;
  font-size: 48px;
  margin-bottom: 60px;
  color: var(--moon-glow);
  font-weight: 700;
}

/* Process step titles */
.step-title {
  color: #FCFAEE;
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 600;
}

.step-desc {
  color: rgba(252, 250, 238, 0.5);
  font-size: 14px;
}

/* Progress label */
.progress-label {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(252, 250, 238, 0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Card link wrapper */
.card-link {
  text-decoration: none;
  display: block;
  color: inherit;
}

.card-link:focus-visible .card-moonlight {
  outline: 2px solid var(--glow-blue);
  outline-offset: 4px;
}

/* Button as link styling */
.btn-aurora {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--star-white);
}

/* Outline button variant */
.btn-aurora-outline {
  background: transparent !important;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-aurora-outline:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Animation delays via classes */
.card-delay-1 { animation-delay: 0.1s; }
.card-delay-2 { animation-delay: 0.2s; }

/* Footer styles */
.site-footer {
  background: var(--midnight-black);
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-nav {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: rgba(252, 250, 238, 0.6);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--moon-glow);
}

.footer-copyright {
  text-align: center;
  color: rgba(252, 250, 238, 0.4);
  font-size: 13px;
}

/* ============================= */
/* MOTION PREFERENCES */
/* ============================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
  }
  
  .aurora-bg,
  .hero-gradient-bg,
  .floating-orb,
  .star {
    animation: none !important;
  }
}

/* ============================= */
/* MOBILE OPTIMIZATIONS */
/* ============================= */

@media (max-width: 768px) {
  /* Adjust hero height for mobile URL bars */
  .dark-hero {
    min-height: 80vh;
  }
  
  /* Reduce backdrop blur for performance */
  .glass-panel,
  .card-moonlight {
    backdrop-filter: blur(20px) brightness(1.05);
    -webkit-backdrop-filter: blur(20px) brightness(1.05);
  }
  
  /* Hide larger stars on mobile */
  .star.medium,
  .star.large {
    display: none;
  }
  
  .star.small {
    opacity: 0.6;
  }
  
  /* Reduce floating orb size */
  .floating-orb {
    width: 150px;
    height: 150px;
  }
  
  /* Adjust section padding */
  section {
    padding: 60px 0;
  }
  
  /* Smaller section headings */
  .section-heading {
    font-size: 36px;
    margin-bottom: 40px;
  }
}

/* ============================= */
/* FOCUS STATES FOR ACCESSIBILITY */
/* ============================= */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--glow-blue);
  outline-offset: 4px;
  border-radius: 4px;
}

.btn-aurora:focus-visible {
  outline-offset: 6px;
}