/* styles.css - Universe Currency Hub (UCH) — Royal Espresso & 24K Gold Premium Theme */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================================
   DESIGN TOKENS — Royal Espresso & 24K Gold (NO BLACK, NO BLUE)
   ============================================================ */
:root {
  /* 24K Radiant Gold palette */
  --gold-light: #FFE8A3;
  --gold-mid:   #F5C443;
  --gold-dark:  #D49B1D;
  --gold-deep:  #A3720A;

  /* Warm Platinum / Silk White palette */
  --silver-lightest: #FFFFFF;
  --silver-light:    #FAF3E8;
  --silver-mid:      #E8D8C3;
  --silver-dark:     #C5B49D;
  --silver-deep:     #9A8A74;

  /* Backgrounds — Rich Warm Dark Mocha / Espresso */
  --bg-base:        #180E07;
  --bg-surface:     #24170F;
  --bg-card:        rgba(45, 29, 18, 0.78);
  --bg-card-deep:   rgba(35, 22, 13, 0.88);

  /* Text — Ultra High Contrast Silk White & Warm Ivory */
  --text-primary:   #FFF8F0;
  --text-secondary: #E8D8C3;
  --text-muted:     #C5B49D;

  /* Accents */
  --accent-gold: var(--gold-mid);
  --accent-glow: rgba(245, 196, 67, 0.4);
  --accent-glow-soft: rgba(245, 196, 67, 0.18);

  /* Transitions */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #180E07 0%, #28190E 35%, #1A0F08 70%, #2E1D12 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: 'Outfit', sans-serif;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-mid), var(--gold-dark));
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold-light); }

/* ============================================================
   SCROLL PROGRESS
   ============================================================ */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-mid), var(--gold-light));
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
}

/* ============================================================
   NAVIGATION — Radiant 24K Gold Bar
   ============================================================ */
.glass-nav {
  background: linear-gradient(135deg, #7A5308 0%, #B8891B 30%, #E6C15C 55%, #B8891B 75%, #7A5308 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 2px solid rgba(255, 235, 140, 0.6);
  box-shadow: 0 6px 30px rgba(184, 137, 27, 0.4), inset 0 1px 0 rgba(255,255,255,0.3);
}

/* ============================================================
   GLASS CARDS — Deep Espresso Glass with Gold Rim
   ============================================================ */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(245, 196, 67, 0.25);
  box-shadow: 0 10px 30px rgba(15, 8, 4, 0.5);
  transition: all 0.4s var(--ease-spring);
}

.glass-card:hover {
  border-color: rgba(245, 196, 67, 0.6);
  box-shadow: 0 20px 50px -10px rgba(245, 196, 67, 0.28), 0 0 20px rgba(245, 196, 67, 0.15);
  transform: translateY(-5px);
}

/* ============================================================
   GOLD FRAME (Disclaimer / Terms boxes)
   ============================================================ */
.gold-frame {
  border: 1px solid rgba(245, 196, 67, 0.45);
  position: relative;
  background: linear-gradient(180deg, rgba(48, 30, 18, 0.85) 0%, rgba(32, 20, 11, 0.9) 100%);
  backdrop-filter: blur(12px);
}
.gold-frame::before {
  content: '';
  position: absolute;
  top: 5px; left: 5px; right: 5px; bottom: 5px;
  border: 1px solid rgba(245, 196, 67, 0.18);
  pointer-events: none;
  border-radius: inherit;
}

/* ============================================================
   GRADIENT TEXT — Radiant 24K Gold & Platinum Shimmer
   ============================================================ */
.text-gradient-gold {
  background: linear-gradient(135deg, #FFF0B3 0%, #F5C443 35%, #FFDF80 55%, #E0A820 80%, #FFF5CC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 250% auto;
  animation: goldShine 5s linear infinite;
}

.text-gradient-silver {
  background: linear-gradient(135deg, #C5B49D 0%, #E8D8C3 35%, #FFFFFF 55%, #E8D8C3 75%, #C5B49D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 250% auto;
  animation: goldShine 6s linear infinite;
}

.text-glow-gold {
  text-shadow: 0 0 25px rgba(245, 196, 67, 0.5), 0 0 50px rgba(245, 196, 67, 0.25);
}

/* ============================================================
   BUTTON STYLES
   ============================================================ */
.btn-gold {
  background: linear-gradient(135deg, #F5C443 0%, #E0A820 50%, #B8810E 100%);
  color: #1A0E05;
  border: none;
  position: relative;
  overflow: hidden;
  font-weight: 800;
  letter-spacing: 0.08em;
  transition: all 0.4s var(--ease-spring);
  box-shadow: 0 4px 20px rgba(245, 196, 67, 0.4);
}
.btn-gold::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.4) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}
.btn-gold:hover::after { transform: translateX(100%); }
.btn-gold:hover {
  box-shadow: 0 8px 32px rgba(245, 196, 67, 0.6);
  transform: translateY(-2px);
}

.btn-silver-outline {
  background: rgba(255, 248, 240, 0.06);
  color: #FFF8F0;
  border: 1.5px solid rgba(245, 196, 67, 0.5);
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: all 0.3s ease;
}
.btn-silver-outline:hover {
  border-color: #F5C443;
  background: rgba(245, 196, 67, 0.18);
  color: #FFF8F0;
}

/* ============================================================
   HERO BADGE PULSE
   ============================================================ */
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 196, 67, 0); }
  50% { box-shadow: 0 0 0 8px rgba(245, 196, 67, 0.25); }
}
.animate-pulse-gold {
  animation: pulse-gold 3s ease-in-out infinite;
}

/* ============================================================
   FLOATING ELEMENTS
   ============================================================ */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(3deg); }
}
@keyframes float-reverse {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(14px) rotate(-3deg); }
}
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-delayed {
  animation: float-reverse 7s ease-in-out infinite;
  animation-delay: 1.2s;
}

/* ============================================================
   GOLD SHINE KEYFRAME
   ============================================================ */
@keyframes goldShine {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-spring), transform 0.9s var(--ease-spring);
}
.reveal-on-scroll.reveal-left  { transform: translateX(-40px); }
.reveal-on-scroll.reveal-right { transform: translateX(40px); }
.reveal-on-scroll.is-visible   { opacity: 1; transform: translate(0) !important; }

/* ============================================================
   SECTION WATERMARK
   ============================================================ */
.section-bg-watermark {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
  opacity: 0.05; mix-blend-mode: color-dodge;
  background-image: url('https://images.unsplash.com/photo-1639322537228-f710d846310a?q=80&w=1200&auto=format&fit=crop');
  background-size: cover; background-position: center;
  filter: grayscale(100%) contrast(150%);
}
.section-bg-watermark::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, var(--bg-base) 0%, rgba(245,196,67,0.08) 50%, var(--bg-base) 100%);
}

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline-line { position: relative; }
.timeline-line::before {
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, rgba(245,196,67,0.1) 0%, rgba(245,196,67,0.8) 50%, rgba(245,196,67,0.1) 100%);
  transform: translateX(-50%);
}
@media (max-width: 768px) {
  .timeline-line::before { left: 20px; transform: none; }
}

/* ============================================================
   ODOMETER / COUNTER STRIPS
   ============================================================ */
.odo-container {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  color: var(--gold-mid);
}
.odo-digit {
  display: inline-block; height: 4rem; overflow: hidden;
  position: relative; width: 2.3rem; text-align: center;
}
@media (max-width: 640px) { .odo-digit { height: 3rem; width: 1.7rem; } }

.odo-strip {
  display: flex; flex-direction: column;
  position: absolute; top: 0; left: 0; right: 0;
  transition: transform 2.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.odo-strip span {
  height: 4rem; line-height: 4rem; display: block;
  color: var(--gold-mid);
  text-shadow: 0 0 14px rgba(245, 196, 67, 0.6);
}
@media (max-width: 640px) { .odo-strip span { height: 3rem; line-height: 3rem; } }

/* ============================================================
   BLOCKCHAIN STEP INTERACTIVE
   ============================================================ */
.blockchain-step { cursor: pointer; transition: all 0.3s ease; }
.blockchain-step:hover { background: rgba(245, 196, 67, 0.12) !important; border-color: rgba(245, 196, 67, 0.6) !important; }
.blockchain-step-content { transition: opacity 0.3s ease; }

/* ============================================================
   DECORATIVE GRADIENT ORBS (Gold ambient lights)
   ============================================================ */
.orb-gold {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 196, 67, 0.18) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
  animation: orbPulse 8s ease-in-out infinite;
}
.orb-silver {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 216, 195, 0.15) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
  animation: orbPulse 10s ease-in-out infinite reverse;
}
@keyframes orbPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* ============================================================
   STAT COUNTER
   ============================================================ */
.stat-counter {
  background: linear-gradient(135deg, #FFF0B3 0%, var(--gold-mid) 50%, var(--gold-dark) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   HERO HIGHLIGHT LINE
   ============================================================ */
.hero-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-mid), var(--gold-light), var(--gold-mid), transparent);
  border: none; opacity: 0.6;
}

/* ============================================================
   SECTION LABEL BADGE
   ============================================================ */
.section-label {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 999px;
  background: rgba(245, 196, 67, 0.14);
  border: 1px solid rgba(245, 196, 67, 0.4);
  color: var(--gold-mid);
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
}

/* ============================================================
   CARD HOVER GLOW BORDER
   ============================================================ */
.card-glow-hover {
  position: relative; overflow: hidden;
}
.card-glow-hover::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-mid), transparent);
  opacity: 0; transition: opacity 0.4s ease;
}
.card-glow-hover:hover::before { opacity: 1; }

/* ============================================================
   HERO SECTION — Deep Mocha Panel for Globe
   ============================================================ */
.hero-silver-panel {
  background: linear-gradient(135deg,
    rgba(52, 34, 21, 0.9) 0%,
    rgba(38, 24, 14, 0.95) 100%);
  border: 1.5px solid rgba(245, 196, 67, 0.35);
  backdrop-filter: blur(20px);
  box-shadow: 0 25px 70px rgba(0,0,0,0.5), 0 0 35px rgba(245, 196, 67, 0.15), inset 0 1px 0 rgba(255,255,255,0.1);
}

/* ============================================================
   BORDER TRACE BUTTON EFFECT
   ============================================================ */
.border-trace-btn {
  position: relative; overflow: hidden; z-index: 1;
}
.border-trace-btn::before {
  content: ''; position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: all 0.6s ease; z-index: -1;
}
.border-trace-btn:hover::before { left: 100%; }

/* ============================================================
   SECTION ALTERNATING BACKGROUNDS
   ============================================================ */
.bg-section-alt {
  background: linear-gradient(180deg,
    rgba(30, 18, 10, 0.85) 0%,
    rgba(42, 27, 16, 0.92) 50%,
    rgba(30, 18, 10, 0.85) 100%);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: linear-gradient(180deg, #180E07 0%, #100803 100%);
  border-top: 1px solid rgba(245, 196, 67, 0.25);
}

/* ============================================================
   INPUT FIELDS — Rich Mocha theme
   ============================================================ */
.input-silver {
  background: rgba(38, 23, 13, 0.8);
  border: 1.5px solid rgba(245, 196, 67, 0.3);
  color: #FFF8F0;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}
.input-silver:focus {
  outline: none;
  border-color: #F5C443;
  box-shadow: 0 0 0 3px rgba(245, 196, 67, 0.2);
  background: rgba(48, 30, 18, 0.95);
}
.input-silver::placeholder { color: #C5B49D; }

/* ============================================================
   BACK TO TOP BUTTON
   ============================================================ */
#back-to-top {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-mid));
  color: #1A0E05;
  box-shadow: 0 4px 20px rgba(245, 196, 67, 0.5);
}
#back-to-top:hover {
  box-shadow: 0 6px 28px rgba(245, 196, 67, 0.7);
  transform: translateY(-2px);
}

/* =========================================================
   MOBILE MENU
   ============================================================ */
#mobile-menu {
  background: linear-gradient(135deg, #7A5308 0%, #B8891B 30%, #E6C15C 55%, #B8891B 75%, #7A5308 100%);
  backdrop-filter: blur(20px);
  border-bottom: 2px solid rgba(255, 235, 140, 0.5);
  box-shadow: 0 6px 24px rgba(184, 137, 27, 0.4);
}

/* ============================================================
   REVEAL ANIMATION (legacy support for .reveal-hidden)
   ============================================================ */
.reveal-hidden {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.8s var(--ease-spring), transform 0.8s var(--ease-spring);
}
.reveal-hidden.reveal-left  { transform: translateX(-30px); }
.reveal-hidden.reveal-right { transform: translateX(30px); }
.reveal-hidden.is-visible,
.reveal-on-scroll.is-visible,
.reveal-hidden.reveal-visible,
.reveal-on-scroll.reveal-visible { opacity: 1; transform: translate(0) !important; }

/* ============================================================
   DECORATIVE DOT GRID
   ============================================================ */
.dot-grid-bg {
  background-image: radial-gradient(rgba(245, 196, 67, 0.15) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ============================================================
   SHIMMER LOADING KEYFRAME (for animated borders)
   ============================================================ */
@keyframes borderShimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.animated-gold-border {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
    linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark)) border-box;
  background-size: 200% auto;
  animation: borderShimmer 4s linear infinite;
}

/* ============================================================
   PARTICLE CANVAS
   ============================================================ */
#particle-canvas {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0; opacity: 0.65;
}
