@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ==========================================================================
   SUPERFAST GLOBAL - LUXURY DESIGN SYSTEM TOKENS
   ========================================================================== */
:root {
  --bg-dark: #050505;
  --bg-deep: #080B10;
  --bg-navy: #07111F;
  --bg-card: rgba(10, 15, 26, 0.75);
  --bg-card-hover: rgba(16, 23, 38, 0.88);
  --bg-glass: rgba(5, 8, 15, 0.65);
  
  --gold-primary: #D4AF37;
  --gold-accent: #F5C542;
  --gold-light: #FFD76A;
  --gold-pale: #FFF1A8;
  --gold-dark: #996515;
  --gold-bronze: #845314;
  
  --gold-gradient: linear-gradient(135deg, #FFF1A8 0%, #F5C542 25%, #D4AF37 60%, #AA771C 100%);
  --gold-silver-gradient: linear-gradient(135deg, #FFFFFF 0%, #FFF1A8 30%, #D4AF37 75%, #8B6508 100%);
  --silver-gradient: linear-gradient(135deg, #FFFFFF 0%, #E2E8F0 50%, #94A3B8 100%);
  --cyber-blue-gradient: linear-gradient(135deg, #38BDF8 0%, #0284C7 50%, #0369A1 100%);
  
  --border-gold-subtle: rgba(212, 175, 55, 0.25);
  --border-gold-glow: rgba(245, 197, 66, 0.45);
  --border-glass: rgba(255, 255, 255, 0.08);

  --shadow-gold-sm: 0 4px 15px rgba(212, 175, 55, 0.15);
  --shadow-gold-md: 0 8px 30px rgba(212, 175, 55, 0.22);
  --shadow-gold-lg: 0 15px 50px rgba(212, 175, 55, 0.3);
  --shadow-neon-blue: 0 4px 20px rgba(56, 189, 248, 0.2);

  --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Grotesk', monospace;
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */
html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background-color: var(--bg-dark);
  font-family: var(--font-primary);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-dark);
  color: #E2E8F0;
  overflow-x: hidden;
  position: relative;
}

/* Custom Luxury Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #06090e;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #D4AF37 0%, #845314 100%);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #FFD76A;
}

::selection {
  background: rgba(212, 175, 55, 0.35);
  color: #FFF1A8;
}

/* ==========================================================================
   PRELOADER
   ========================================================================== */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(circle at center, #0B1324 0%, #050505 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s ease;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-glow-ring {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-glow-ring::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: #F5C542;
  border-right-color: #D4AF37;
  animation: radarSpin 1.5s linear infinite;
}

.preloader-bar-bg {
  width: 220px;
  height: 3px;
  background: rgba(212, 175, 55, 0.15);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 24px;
}

.preloader-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--gold-gradient);
  box-shadow: 0 0 15px #FFD76A;
  transition: width 0.4s ease;
}

/* ==========================================================================
   TYPOGRAPHY & GRADIENTS
   ========================================================================== */
.font-mono {
  font-family: var(--font-mono);
}

.gold-gradient-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.silver-gradient-text {
  background: var(--silver-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gold-silver-gradient-text {
  background: var(--gold-silver-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.cyber-blue-gradient-text {
  background: var(--cyber-blue-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gold-text-glow {
  text-shadow: 0 0 25px rgba(212, 175, 55, 0.45);
}

/* ==========================================================================
   GLASSMORPHISM & CARDS
   ========================================================================== */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-gold-subtle);
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-gold-subtle);
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-gold-glow);
  transform: translateY(-6px);
  box-shadow: var(--shadow-gold-md);
}

.glass-card-tilt {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 241, 168, 0.08) 50%,
    transparent 100%
  );
  transition: left 0.8s ease;
  pointer-events: none;
}

.glass-card:hover::before {
  left: 100%;
}

.gold-border-glow {
  border: 1px solid rgba(212, 175, 55, 0.38);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.15), inset 0 0 15px rgba(212, 175, 55, 0.05);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-gold {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gold-gradient);
  color: #080B10;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.35);
  border: 1px solid #FFF1A8;
  cursor: pointer;
}

.btn-gold::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: rgba(255, 255, 255, 0.4);
  transform: rotate(25deg);
  transition: all 0.7s ease;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 197, 66, 0.55);
}

.btn-gold:hover::after {
  left: 140%;
}

.btn-glass-gold {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(8, 12, 20, 0.7);
  backdrop-filter: blur(12px);
  color: #FFF1A8;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 13px 26px;
  border-radius: 12px;
  border: 1px solid var(--border-gold-glow);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-glass-gold:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: #FFD76A;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold-sm);
}

.btn-pill {
  border-radius: 9999px;
}

/* ==========================================================================
   BACKGROUND & CINEMATIC ELEMENTS
   ========================================================================== */
.bg-grid-pattern {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(212, 175, 55, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(212, 175, 55, 0.05) 1px, transparent 1px);
}

.bg-radial-glow {
  background: radial-gradient(circle at 50% 30%, rgba(212, 175, 55, 0.12) 0%, rgba(7, 17, 31, 0.5) 40%, #050505 80%);
}

.bg-radial-blue-gold {
  background: radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 20% 60%, rgba(212, 175, 55, 0.1) 0%, transparent 60%);
}

/* Gold light beam */
.light-beam {
  position: absolute;
  width: 150%;
  height: 200px;
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
  transform: rotate(-12deg);
  pointer-events: none;
}

/* ==========================================================================
   3D HERO CONTAINER & CANVAS
   ========================================================================== */
#hero-canvas-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#hero-three-canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  outline: none;
  cursor: grab;
}

#hero-three-canvas:active {
  cursor: grabbing;
}

/* Reflective Pedestal Floor */
.hero-pedestal-glow {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 480px;
  height: 120px;
  background: radial-gradient(ellipse at center, rgba(245, 197, 66, 0.35) 0%, rgba(212, 175, 55, 0.15) 45%, transparent 75%);
  filter: blur(25px);
  pointer-events: none;
  animation: pulseGlow 4s ease-in-out infinite alternate;
}

/* Orbiting Badges in 3D scene */
.floating-crypto-badge {
  position: absolute;
  background: rgba(10, 15, 28, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 9999px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(212, 175, 55, 0.2);
  pointer-events: none;
  z-index: 10;
  animation: floatSlow 6s ease-in-out infinite alternate;
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes radarSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulseGlow {
  0% { opacity: 0.45; transform: translateX(-50%) scale(0.95); }
  100% { opacity: 0.85; transform: translateX(-50%) scale(1.05); }
}

@keyframes floatSlow {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

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

@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  display: flex;
  width: max-content;
  animation: marquee 35s linear infinite;
}

.animate-marquee:hover {
  animation-play-state: paused;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 10px #22C55E;
  animation: pulseBadge 2s ease-in-out infinite;
}

.pulse-dot-gold {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #F5C542;
  box-shadow: 0 0 12px #F5C542;
  animation: pulseBadge 2s ease-in-out infinite;
}

/* ==========================================================================
   TIMELINE (HOW IT WORKS)
   ========================================================================== */
.timeline-step-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FFF1A8 0%, #D4AF37 50%, #6E4907 100%);
  color: #06090E;
  font-weight: 800;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(245, 197, 66, 0.45);
  position: relative;
  z-index: 2;
  border: 2px solid #FFFFFF;
}

.timeline-connector {
  position: absolute;
  top: 30px;
  left: 50px;
  right: -50px;
  height: 2px;
  background: linear-gradient(90deg, #D4AF37 0%, rgba(212, 175, 55, 0.2) 100%);
  z-index: 1;
}

/* ==========================================================================
   RANGE SLIDER (INCOME CALCULATOR)
   ========================================================================== */
input[type="range"].gold-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  outline: none;
}

input[type="range"].gold-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold-gradient);
  cursor: pointer;
  box-shadow: 0 0 15px #FFD76A;
  border: 2px solid #FFFFFF;
  transition: transform 0.15s ease;
}

input[type="range"].gold-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* ==========================================================================
   MODALS
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 8, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: #090E18;
  border: 1px solid var(--border-gold-glow);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(212, 175, 55, 0.2);
  border-radius: 24px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.modal-backdrop.active .modal-container {
  transform: scale(1);
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: rgba(10, 15, 26, 0.95);
  backdrop-filter: blur(14px);
  border: 1px solid var(--gold-accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.25);
  border-radius: 12px;
  padding: 14px 20px;
  color: #FFFFFF;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: toastIn 0.3s ease forwards;
  max-width: 360px;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ==========================================================================
   ACCESSIBILITY & PREFERS REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
