/* =============================================================================
   AFFILIATE ROCKET - Bioluminescent Animation System
   Premium dark interface with atmospheric effects
   ============================================================================= */

/* -----------------------------------------------------------------------------
   CSS VARIABLES
   ----------------------------------------------------------------------------- */
:root {
  --color-base: #030712;
  --color-deep: #0A0F1E;
  --color-elevated: #0F172A;
  --color-surface: #1E293B;
  --color-cyan: rgba(34, 211, 238, 1);
  --color-teal: rgba(45, 212, 191, 1);
  --color-violet: rgba(167, 139, 250, 1);
  --color-amber: rgba(245, 158, 11, 1);
  --color-coral: rgba(251, 113, 133, 1);
  --text-primary: #F1F5F9;
  --text-secondary: #CBD5E1;
  --text-muted: #64748B;
  --glass-bg: rgba(15, 23, 42, 0.6);
  --glass-border: rgba(255, 255, 255, 0.1);
}

/* -----------------------------------------------------------------------------
   BASE STYLES
   ----------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

/* -----------------------------------------------------------------------------
   FLOATING ORB ANIMATIONS
   Organic, breathing movement for atmospheric background elements
   ----------------------------------------------------------------------------- */
@keyframes float-orb {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.5;
  }
  25% {
    transform: translate(15px, -25px) scale(1.08);
    opacity: 0.7;
  }
  50% {
    transform: translate(-10px, -15px) scale(0.95);
    opacity: 0.4;
  }
  75% {
    transform: translate(-20px, 10px) scale(1.05);
    opacity: 0.6;
  }
}

@keyframes float-orb-reverse {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.4;
  }
  25% {
    transform: translate(-20px, 15px) scale(0.92);
    opacity: 0.6;
  }
  50% {
    transform: translate(15px, 25px) scale(1.1);
    opacity: 0.5;
  }
  75% {
    transform: translate(10px, -20px) scale(0.98);
    opacity: 0.7;
  }
}

@keyframes float-orb-slow {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    opacity: 0.3;
  }
  33% {
    transform: translate(30px, -40px) rotate(120deg) scale(1.15);
    opacity: 0.5;
  }
  66% {
    transform: translate(-25px, 20px) rotate(240deg) scale(0.9);
    opacity: 0.4;
  }
}

/* -----------------------------------------------------------------------------
   BREATHING GLOW ANIMATIONS
   Color-specific pulsing effects for interactive elements
   ----------------------------------------------------------------------------- */
@keyframes breathe-glow-cyan {
  0%, 100% {
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.1), 0 0 40px rgba(34, 211, 238, 0.05);
  }
  50% {
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.2), 0 0 60px rgba(34, 211, 238, 0.1);
  }
}

@keyframes breathe-glow-teal {
  0%, 100% {
    box-shadow: 0 0 20px rgba(45, 212, 191, 0.1), 0 0 40px rgba(45, 212, 191, 0.05);
  }
  50% {
    box-shadow: 0 0 30px rgba(45, 212, 191, 0.25), 0 0 60px rgba(45, 212, 191, 0.12);
  }
}

@keyframes breathe-glow-amber {
  0%, 100% {
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.1), 0 0 30px rgba(245, 158, 11, 0.05);
  }
  50% {
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.2), 0 0 50px rgba(245, 158, 11, 0.1);
  }
}

@keyframes breathe-glow-coral {
  0%, 100% {
    box-shadow: 0 0 15px rgba(251, 113, 133, 0.1), 0 0 30px rgba(251, 113, 133, 0.05);
  }
  50% {
    box-shadow: 0 0 25px rgba(251, 113, 133, 0.2), 0 0 50px rgba(251, 113, 133, 0.1);
  }
}

@keyframes breathe-glow-violet {
  0%, 100% {
    box-shadow: 0 0 15px rgba(167, 139, 250, 0.1), 0 0 30px rgba(167, 139, 250, 0.05);
  }
  50% {
    box-shadow: 0 0 25px rgba(167, 139, 250, 0.2), 0 0 50px rgba(167, 139, 250, 0.1);
  }
}

/* -----------------------------------------------------------------------------
   AURORA BORDER ANIMATION
   Animated gradient borders for headers and highlight elements
   ----------------------------------------------------------------------------- */
@keyframes aurora-border {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes aurora-shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* -----------------------------------------------------------------------------
   REVEAL ANIMATIONS
   Staggered entrance animations for cinematic page loads
   ----------------------------------------------------------------------------- */
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes reveal-down {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes reveal-left {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes reveal-right {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes reveal-scale {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes reveal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* -----------------------------------------------------------------------------
   PULSE & GLOW ANIMATIONS
   For badges, status indicators, and attention elements
   ----------------------------------------------------------------------------- */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 8px currentColor; }
  50% { box-shadow: 0 0 15px currentColor, 0 0 25px currentColor; }
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 1; }
  50% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(0.95); opacity: 1; }
}

@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}

/* -----------------------------------------------------------------------------
   GRADIENT ANIMATIONS
   Slow-moving background effects for depth
   ----------------------------------------------------------------------------- */
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  25% { background-position: 50% 0%; }
  50% { background-position: 100% 50%; }
  75% { background-position: 50% 100%; }
}

@keyframes gradient-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* -----------------------------------------------------------------------------
   GLASS SHIMMER EFFECT
   Subtle light reflection on glass surfaces
   ----------------------------------------------------------------------------- */
@keyframes glass-shimmer {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(200%) rotate(45deg); }
}

/* -----------------------------------------------------------------------------
   ICON ANIMATIONS
   ----------------------------------------------------------------------------- */
@keyframes icon-float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-8px) rotate(3deg); }
  75% { transform: translateY(-4px) rotate(-3deg); }
}

@keyframes icon-bounce {
  0%, 100% { transform: translateY(0); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); }
  50% { transform: translateY(-10px); animation-timing-function: cubic-bezier(0, 0, 0.2, 1); }
}

/* -----------------------------------------------------------------------------
   UTILITY ANIMATION CLASSES
   ----------------------------------------------------------------------------- */

/* Floating Orbs */
.animate-float-orb { animation: float-orb 20s ease-in-out infinite; }
.animate-float-orb-reverse { animation: float-orb-reverse 25s ease-in-out infinite; }
.animate-float-orb-slow { animation: float-orb-slow 35s ease-in-out infinite; }

/* Breathing Glows */
.animate-breathe-cyan { animation: breathe-glow-cyan 4s ease-in-out infinite; }
.animate-breathe-teal { animation: breathe-glow-teal 4s ease-in-out infinite; }
.animate-breathe-amber { animation: breathe-glow-amber 4s ease-in-out infinite; }
.animate-breathe-coral { animation: breathe-glow-coral 4s ease-in-out infinite; }
.animate-breathe-violet { animation: breathe-glow-violet 4s ease-in-out infinite; }

/* Aurora Effects */
.animate-aurora { animation: aurora-border 8s ease infinite; background-size: 200% 200%; }
.animate-aurora-shimmer { animation: aurora-shimmer 3s linear infinite; }

/* Reveals - Apply to elements for entrance animations */
.animate-reveal-up {
  opacity: 0;
  animation: reveal-up 0.6s ease-out forwards;
}
.animate-reveal-down {
  opacity: 0;
  animation: reveal-down 0.6s ease-out forwards;
}
.animate-reveal-left {
  opacity: 0;
  animation: reveal-left 0.6s ease-out forwards;
}
.animate-reveal-right {
  opacity: 0;
  animation: reveal-right 0.6s ease-out forwards;
}
.animate-reveal-scale {
  opacity: 0;
  animation: reveal-scale 0.5s ease-out forwards;
}
.animate-reveal-fade {
  opacity: 0;
  animation: reveal-fade 0.8s ease-out forwards;
}

/* Staggered Animation Delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
.delay-600 { animation-delay: 600ms; }
.delay-700 { animation-delay: 700ms; }
.delay-800 { animation-delay: 800ms; }
.delay-1000 { animation-delay: 1000ms; }
.delay-1500 { animation-delay: 1500ms; }
.delay-2000 { animation-delay: 2000ms; }

/* Pulse Effects */
.animate-pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }
.animate-pulse-ring { animation: pulse-ring 2s ease-in-out infinite; }
.animate-pulse-soft { animation: pulse-soft 3s ease-in-out infinite; }
.animate-ping { animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite; }

/* Icon Animations */
.animate-icon-float { animation: icon-float 4s ease-in-out infinite; }
.animate-icon-bounce { animation: icon-bounce 2s ease-in-out infinite; }

/* Gradient Animations */
.animate-gradient-shift { animation: gradient-shift 15s ease infinite; background-size: 400% 400%; }
.animate-gradient-rotate { animation: gradient-rotate 20s linear infinite; }

/* Glass Shimmer */
.animate-glass-shimmer { animation: glass-shimmer 8s ease-in-out infinite; }

/* -----------------------------------------------------------------------------
   HOVER STATE UTILITIES
   ----------------------------------------------------------------------------- */
.hover-glow-cyan { transition: box-shadow 0.3s ease, transform 0.3s ease; }
.hover-glow-cyan:hover { box-shadow: 0 0 20px rgba(34, 211, 238, 0.3), 0 0 40px rgba(34, 211, 238, 0.15); }

.hover-glow-teal { transition: box-shadow 0.3s ease, transform 0.3s ease; }
.hover-glow-teal:hover { box-shadow: 0 0 20px rgba(45, 212, 191, 0.3), 0 0 40px rgba(45, 212, 191, 0.15); }

.hover-glow-amber { transition: box-shadow 0.3s ease, transform 0.3s ease; }
.hover-glow-amber:hover { box-shadow: 0 0 20px rgba(245, 158, 11, 0.3), 0 0 40px rgba(245, 158, 11, 0.15); }

.hover-glow-coral { transition: box-shadow 0.3s ease, transform 0.3s ease; }
.hover-glow-coral:hover { box-shadow: 0 0 20px rgba(251, 113, 133, 0.3), 0 0 40px rgba(251, 113, 133, 0.15); }

.hover-glow-violet { transition: box-shadow 0.3s ease, transform 0.3s ease; }
.hover-glow-violet:hover { box-shadow: 0 0 20px rgba(167, 139, 250, 0.3), 0 0 40px rgba(167, 139, 250, 0.15); }

/* Lift on hover */
.hover-lift { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hover-lift:hover { transform: translateY(-4px); }

/* -----------------------------------------------------------------------------
   GLASS MORPHISM BASE STYLES
   ----------------------------------------------------------------------------- */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 1.5rem;
}

.glass-panel-subtle {
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
}

/* -----------------------------------------------------------------------------
   GRADIENT TEXT EFFECT
   ----------------------------------------------------------------------------- */
.text-gradient-cyan-teal {
  background: linear-gradient(135deg, var(--color-cyan), var(--color-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-glow {
  background: linear-gradient(135deg, var(--color-cyan), var(--color-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(34, 211, 238, 0.3));
}

/* -----------------------------------------------------------------------------
   LOGO ROCKET TEXT
   Fiery gradient for "Rocket" text - cyan to amber/coral like rocket exhaust
   ----------------------------------------------------------------------------- */
.logo-rocket {
  background: linear-gradient(
    135deg,
    var(--color-cyan) 0%,
    var(--color-teal) 25%,
    var(--color-amber) 60%,
    var(--color-coral) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: logo-gradient-shift 6s ease-in-out infinite;
}

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

/* -----------------------------------------------------------------------------
   AURORA ACCENT LINE
   Thin animated gradient line for headers
   ----------------------------------------------------------------------------- */
.aurora-line {
  height: 2px;
  background: linear-gradient(90deg,
    var(--color-cyan),
    var(--color-teal),
    var(--color-violet),
    var(--color-cyan)
  );
  background-size: 200% 100%;
  animation: aurora-border 8s ease infinite;
}

/* -----------------------------------------------------------------------------
   INNER GLOW OVERLAYS
   Subtle radial gradients inside panels for depth
   ----------------------------------------------------------------------------- */
.inner-glow-cyan {
  position: relative;
}
.inner-glow-cyan::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 0% 50%, rgba(34, 211, 238, 0.03) 0%, transparent 70%);
  border-radius: inherit;
}

.inner-glow-teal {
  position: relative;
}
.inner-glow-teal::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 100% 50%, rgba(45, 212, 191, 0.03) 0%, transparent 70%);
  border-radius: inherit;
}

/* -----------------------------------------------------------------------------
   NAVIGATION STYLES
   ----------------------------------------------------------------------------- */
.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.2s ease;
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--color-cyan), var(--color-teal));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links-desktop {
    display: none;
  }
}

/* -----------------------------------------------------------------------------
   BUTTON STYLES
   ----------------------------------------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-teal));
  box-shadow: 0 10px 40px -10px rgba(34, 211, 238, 0.4);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-4px);
  box-shadow: 0 15px 50px -10px rgba(34, 211, 238, 0.5);
}

.btn-primary svg {
  transition: transform 0.3s ease;
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-secondary);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.btn-secondary:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-primary);
}

/* -----------------------------------------------------------------------------
   CARD LINK STYLES
   ----------------------------------------------------------------------------- */
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.card-link svg {
  transition: transform 0.2s ease;
}

.card-link:hover svg {
  transform: translateX(4px);
}

/* -----------------------------------------------------------------------------
   FEATURE TAG STYLES
   ----------------------------------------------------------------------------- */
.feature-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

/* -----------------------------------------------------------------------------
   FOOTER LINK STYLES
   ----------------------------------------------------------------------------- */
.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--text-primary);
}

.footer-heading {
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* -----------------------------------------------------------------------------
   SECTION SPACING
   ----------------------------------------------------------------------------- */
.section-spacing {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (min-width: 768px) {
  .section-spacing {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }
}

/* -----------------------------------------------------------------------------
   REDUCED MOTION SUPPORT
   Respect user preferences for reduced motion
   ----------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .animate-float-orb,
  .animate-float-orb-reverse,
  .animate-float-orb-slow,
  .animate-breathe-cyan,
  .animate-breathe-teal,
  .animate-breathe-amber,
  .animate-breathe-coral,
  .animate-breathe-violet,
  .animate-aurora,
  .animate-ping {
    animation: none !important;
  }
}
