/* ============================================================
   TRADE MASTERS PREMIUM — DESIGN SYSTEM v3.0
   GOD MODE: Premium 3D · Dual-Theme · Next-Level
   ============================================================ */

/* ============================================================
   CSS CUSTOM PROPERTIES — NEXT LEVEL DESIGN TOKENS
   ============================================================ */
:root {
  /* --- Matte Monolith Institutional Dark Palette --- */
  --clr-bg-primary:      #07090D;
  --clr-bg-secondary:    #0C0F15;
  --clr-bg-tertiary:     #11161F;
  --clr-bg-card:         #111620;
  --clr-bg-card-hover:   #151C28;
  --clr-bg-glass:        rgba(17, 22, 32, 0.92);
  --clr-bg-glass-hover:  rgba(21, 28, 40, 0.95);
  --clr-bg-glass-active: rgba(27, 36, 50, 0.98);

  /* --- Institutional Accents (Precision / Telemetry) --- */
  --clr-cyan:         #38BDF8;
  --clr-cyan-dim:     #0284C7;
  --clr-cyan-glow:    rgba(56, 189, 248, 0.12);
  --clr-cyan-strong:  rgba(56, 189, 248, 0.25);

  /* --- Algorithmic Green (Confirmation / Active) --- */
  --clr-emerald:      #00E599;
  --clr-emerald-dim:  #059669;
  --clr-emerald-glow: rgba(0, 229, 153, 0.12);

  /* --- Institutional Amber (Trial / Warning) --- */
  --clr-gold:         #F59E0B;
  --clr-gold-2:       #D97706;
  --clr-gold-dim:     #B45309;
  --clr-gold-glow:    rgba(245, 158, 11, 0.12);

  /* --- Precision Red (Bearish / Critical) --- */
  --clr-red:          #F43F5E;
  --clr-red-dim:      #BE123C;
  --clr-red-glow:     rgba(244, 63, 94, 0.12);

  /* --- Neutral Slate Accent --- */
  --clr-violet:       #818CF8;
  --clr-violet-dim:   #4F46E5;
  --clr-violet-glow:  rgba(129, 140, 248, 0.10);

  /* --- Monolith Text Hierarchy --- */
  --clr-text-primary:   #F0F4F8;
  --clr-text-secondary: #94A3B8;
  --clr-text-muted:     #475569;
  --clr-text-inverse:   #07090D;

  /* --- Engineered Precision Hairline Borders --- */
  --clr-border:        #1B222E;
  --clr-border-soft:   #242E3E;
  --clr-border-cyan:   rgba(56, 189, 248, 0.4);
  --clr-border-gold:   rgba(245, 158, 11, 0.4);
  --clr-border-green:  rgba(0, 229, 153, 0.4);

  /* --- Matte Monolith Gradients & Surfaces (No blur/rainbow) --- */
  --grad-brand:        #38BDF8;
  --grad-gold:         #F59E0B;
  --grad-green:        #00E599;
  --grad-hero-bg:      #07090D;
  --grad-card-dark:    #111620;
  --grad-shimmer:      transparent;

  /* --- Spacing (8px grid) --- */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* --- Typography --- */
  --font-heading: 'Plus Jakarta Sans', 'Space Grotesk', 'Inter', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  --fs-2xs: clamp(0.55rem, 1vw,   0.65rem);
  --fs-xs:  clamp(0.65rem, 1.5vw, 0.75rem);
  --fs-sm:  clamp(0.75rem, 2vw,   0.875rem);
  --fs-base:clamp(0.875rem,2.5vw, 1rem);
  --fs-md:  clamp(1rem,    2.5vw, 1.125rem);
  --fs-lg:  clamp(1.125rem,3vw,   1.25rem);
  --fs-xl:  clamp(1.25rem, 3.5vw, 1.5rem);
  --fs-2xl: clamp(1.5rem,  4vw,   2rem);
  --fs-3xl: clamp(1.875rem,5vw,   2.5rem);
  --fs-4xl: clamp(2.25rem, 6vw,   3.5rem);
  --fs-5xl: clamp(2.75rem, 7vw,   4.5rem);
  --fs-6xl: clamp(3rem,    8vw,   6rem);

  /* --- Border Radius --- */
  --radius-xs:   4px;
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   18px;
  --radius-xl:   24px;
  --radius-2xl:  32px;
  --radius-full: 9999px;

  /* --- Shadows --- */
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.5);
  --shadow-md:    0 4px 24px rgba(0,0,0,0.6);
  --shadow-lg:    0 8px 48px rgba(0,0,0,0.7);
  --shadow-xl:    0 16px 64px rgba(0,0,0,0.8);
  --shadow-cyan:  0 0 40px rgba(0,229,255,0.15), 0 0 80px rgba(0,229,255,0.06);
  --shadow-gold:  0 0 40px rgba(255,215,0,0.15),  0 0 80px rgba(255,215,0,0.06);
  --shadow-green: 0 0 40px rgba(0,255,163,0.12), 0 0 80px rgba(0,255,163,0.05);
  --shadow-card:  0 4px 32px rgba(0,0,0,0.5), 0 1px 0 rgba(255,255,255,0.04) inset;

  /* --- Transitions — Apple-grade physics-based curves --- */
  --t-fast:       0.12s cubic-bezier(0.4, 0, 0.2, 1);
  --t-base:       0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow:       0.4s  cubic-bezier(0.4, 0, 0.2, 1);
  --t-spring:     0.5s  cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ── Premium Apple-grade easing tokens ── */
  --ease-out-expo:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:      cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-decelerate:  cubic-bezier(0, 0, 0.2, 1);
  --ease-standard:    cubic-bezier(0.4, 0, 0.2, 1);

  /* ── Silk transition shortcuts ── */
  --t-silk:   0.65s var(--ease-smooth);
  --t-snap:   0.35s var(--ease-spring);
  --t-reveal: 0.75s var(--ease-smooth);

  /* Backward compat aliases */
  --transition-fast:   var(--t-fast);
  --transition-base:   var(--t-base);
  --transition-slow:   var(--t-slow);
  --transition-bounce: var(--t-spring);
  --clr-neon-blue:      var(--clr-cyan);
  --clr-neon-blue-dim:  var(--clr-cyan-dim);
  --clr-neon-blue-glow: var(--clr-cyan-glow);
  --clr-border-glow:    var(--clr-border-cyan);

  /* --- Z-index --- */
  --z-base:    0;
  --z-raised:  10;
  --z-overlay: 100;
  --z-modal:   200;
  --z-nav:     300;
  --z-toast:   400;

  /* font alias */
  --font-family-heading: var(--font-heading);
  --font-family-body:    var(--font-body);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  min-width: 320px;
  font-size: 16px;
  background: var(--clr-bg-primary);
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--clr-text-primary);
  background: var(--clr-bg-primary);
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.15;
  color: var(--clr-text-primary);
}

/* ============================================================
   GLOBAL DESIGN SYSTEM — NO BODY PSEUDO CONFLICTS
   Individual pages manage their own decorative backgrounds.
   ============================================================ */

/* Prevent any accidental white flash & stabilize layout */
html {
  background: var(--clr-bg-primary);
  scrollbar-gutter: stable;
}

/* Universal section dark foundation */
section, .section {
  background-color: transparent;
}

/* ============================================================
   GLASS MORPHISM — PRODUCTION GRADE
   ============================================================ */
.glass {
  background: var(--clr-bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--clr-border);
}

.glass-card {
  background: linear-gradient(145deg, rgba(18,26,46,0.6) 0%, rgba(8,12,20,0.8) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--clr-border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--t-base);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

/* Subtle inner glow top edge */
.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  pointer-events: none;
}

.glass-card:hover {
  background: linear-gradient(145deg, rgba(22,34,58,0.7) 0%, rgba(10,14,24,0.9) 100%);
  border-color: var(--clr-border-cyan);
  box-shadow: var(--shadow-card), var(--shadow-cyan);
  transform: translateY(-3px);
}

/* ============================================================
   GLOW BORDER UTILITY
   ============================================================ */
.glow-border {
  position: relative;
  border-radius: var(--radius-lg);
  isolation: isolate;
}
.glow-border::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: var(--grad-brand);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--t-base);
}
.glow-border:hover::after { opacity: 0.5; }

/* ============================================================
   BUTTON SYSTEM — PRODUCTION GRADE
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.025em;
  transition: all var(--t-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  isolation: isolate;
  cursor: pointer;
}

/* Shimmer effect */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.12) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.btn:hover::before { transform: translateX(100%); }

/* Primary — Cyan-Violet Gradient */
.btn-primary {
  background: linear-gradient(135deg, #00E5FF 0%, #7B5FFF 100%);
  color: #05070D;
  font-weight: 700;
  box-shadow: 0 4px 24px rgba(0,229,255,0.25), 0 1px 0 rgba(255,255,255,0.2) inset;
  border: 1px solid rgba(0,229,255,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 8px 32px rgba(0,229,255,0.35), 0 1px 0 rgba(255,255,255,0.2) inset;
}
.btn-primary:active { transform: translateY(0) scale(0.99); }

/* Gold */
.btn-gold {
  background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
  color: #05070D;
  font-weight: 700;
  box-shadow: 0 4px 24px rgba(255,215,0,0.25), 0 1px 0 rgba(255,255,255,0.2) inset;
  border: 1px solid rgba(255,215,0,0.3);
}
.btn-gold:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 8px 32px rgba(255,215,0,0.35);
}

/* Outline */
.btn-outline {
  background: transparent;
  color: var(--clr-cyan);
  border: 1px solid rgba(0,229,255,0.4);
  box-shadow: inset 0 0 0 0 var(--clr-cyan);
}
.btn-outline:hover {
  background: rgba(0,229,255,0.08);
  border-color: var(--clr-cyan);
  box-shadow: 0 0 24px rgba(0,229,255,0.15);
  transform: translateY(-2px);
}

/* Ghost */
.btn-ghost {
  background: var(--clr-bg-glass);
  color: var(--clr-text-primary);
  border: 1px solid var(--clr-border-soft);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: var(--clr-bg-glass-hover);
  border-color: var(--clr-border-cyan);
  box-shadow: 0 0 20px rgba(0,229,255,0.08);
  transform: translateY(-1px);
}

/* Sizes */
.btn-lg {
  padding: var(--space-4) var(--space-10);
  font-size: var(--fs-md);
  letter-spacing: 0.03em;
}
.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--fs-xs);
}
.btn-icon {
  width: 40px; height: 40px;
  padding: 0;
  border-radius: var(--radius-md);
}

/* Ripple */
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  width: 4px; height: 4px;
  background: rgba(255,255,255,0.4);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}
@keyframes ripple {
  to { transform: scale(80); opacity: 0; }
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: 1300px;
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.section {
  padding-block: clamp(60px, 10vw, 120px);
  position: relative;
}

.section-sm { padding-block: var(--space-12); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
.text-gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.text-gradient-green {
  background: var(--grad-green);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-muted { color: var(--clr-text-secondary); }
.text-green { color: var(--clr-emerald); }
.text-red   { color: var(--clr-red); }
.text-xs    { font-size: var(--fs-xs); }
.text-sm    { font-size: var(--fs-sm); }
.text-lg    { font-size: var(--fs-lg); }
.text-xl    { font-size: var(--fs-xl); }
.text-center{ text-align: center; }
.mono       { font-family: var(--font-mono); }

/* Section header components */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 5px var(--space-4);
  background: rgba(0, 229, 255, 0.07);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--clr-cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
  backdrop-filter: blur(8px);
}

.section-heading {
  font-family: var(--font-heading);
  font-size: var(--fs-4xl);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: var(--space-5);
  letter-spacing: -0.02em;
}

.section-subtext {
  font-size: var(--fs-lg);
  color: var(--clr-text-secondary);
  max-width: 600px;
  margin-bottom: var(--space-10);
  line-height: 1.75;
}

/* Section separator glow line */
.section::after {
  content: none;
}

/* ============================================================
   BADGE & STATUS CHIPS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.badge-green {
  background: rgba(0, 255, 163, 0.10);
  color: var(--clr-emerald);
  border: 1px solid rgba(0, 255, 163, 0.25);
}
.badge-red {
  background: rgba(255, 61, 90, 0.10);
  color: var(--clr-red);
  border: 1px solid rgba(255, 61, 90, 0.25);
}
.badge-blue {
  background: rgba(0, 229, 255, 0.10);
  color: var(--clr-cyan);
  border: 1px solid var(--clr-border-cyan);
}
.badge-gold {
  background: rgba(255, 215, 0, 0.10);
  color: var(--clr-gold);
  border: 1px solid rgba(255, 215, 0, 0.25);
}
.badge-violet {
  background: rgba(157, 110, 255, 0.10);
  color: var(--clr-violet);
  border: 1px solid rgba(157, 110, 255, 0.25);
}

/* Pulsing LIVE dot */
.badge-pulse::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-dot 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 currentColor; }
  50%       { opacity: 0.7; transform: scale(0.85); }
}

/* ============================================================
   STAT CARD
   ============================================================ */
.stat-card {
  background: linear-gradient(145deg, rgba(18,26,46,0.6) 0%, rgba(8,12,20,0.8) 100%);
  border: 1px solid var(--clr-border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  text-align: center;
  transition: all var(--t-base);
  box-shadow: var(--shadow-card);
}
.stat-card:hover {
  border-color: var(--clr-border-cyan);
  box-shadow: var(--shadow-card), var(--shadow-cyan);
  transform: translateY(-2px);
}
.stat-value {
  font-size: var(--fs-3xl);
  font-weight: 800;
  font-family: var(--font-heading);
  line-height: 1;
}
.stat-label {
  font-size: var(--fs-xs);
  color: var(--clr-text-secondary);
  margin-top: var(--space-2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================================
   FORM SYSTEM
   ============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.form-label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-text-secondary);
  letter-spacing: 0.04em;
}
.form-input {
  background: rgba(12,18,32,0.8);
  border: 1px solid var(--clr-border-soft);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  color: var(--clr-text-primary);
  font-size: var(--fs-base);
  transition: all var(--t-base);
  outline: none;
  width: 100%;
  backdrop-filter: blur(8px);
}
.form-input::placeholder { color: var(--clr-text-muted); }
.form-input:focus {
  border-color: var(--clr-cyan);
  box-shadow: 0 0 0 3px rgba(0,229,255,0.12), 0 0 20px rgba(0,229,255,0.08);
  background: rgba(0,229,255,0.03);
}
.form-input:hover:not(:focus) { border-color: rgba(255,255,255,0.12); }

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(220, 230, 245, 0.65);
  pointer-events: none;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: color var(--t-base), transform var(--t-base);
}
.input-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}
.input-wrapper:focus-within .input-icon {
  color: var(--clr-cyan);
}
.input-wrapper .form-input {
  padding-left: 42px !important;
  width: 100%;
}

/* ============================================================
   SKELETON / SHIMMER
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.04) 25%,
    rgba(255,255,255,0.08) 50%,
    rgba(255,255,255,0.04) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.8s infinite;
  border-radius: var(--radius-md);
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS — Apple-grade, direction-aware
   ============================================================ */

/* ── Base reveal (slide up — default) ── */
.reveal,
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--t-reveal), transform var(--t-reveal);
  will-change: opacity, transform;
}

/* ── Slide from left ── */
.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity var(--t-reveal), transform var(--t-reveal);
  will-change: opacity, transform;
}

/* ── Slide from right ── */
.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity var(--t-reveal), transform var(--t-reveal);
  will-change: opacity, transform;
}

/* ── Scale reveal (zoom-up) ── */
.reveal-scale {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: opacity var(--t-reveal), transform var(--t-reveal);
  will-change: opacity, transform;
}

/* ── Word-by-word reveal (container stays visible, words animate) ── */
.reveal-word {
  overflow: visible; /* Ensure word units aren't clipped during translateY animation */
}

/* Individual word units injected by JS */
.word-reveal-unit {
  display: inline-block;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth);
  will-change: opacity, transform;
}

/* ── Revealed state for all variants ── */
.reveal.revealed,
.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed,
.reveal-scale.revealed {
  opacity: 1;
  transform: none;
  will-change: auto;
}

.reveal-word.revealed .word-reveal-unit {
  opacity: 1;
  transform: none;
}

/* ── Fix for gradient text inside word-reveal units ── */
[class*="text-gradient"] .word-reveal-unit,
.text-gradient .word-reveal-unit,
.text-gradient-gold .word-reveal-unit,
.text-gradient-green .word-reveal-unit,
.text-gradient-cyan .word-reveal-unit,
.word-reveal-unit.in-gradient {
  background: inherit;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  display: inline-block;
  padding-bottom: 0.08em;
}

/* ── Stagger delay classes ── */
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }
.reveal-delay-6 { transition-delay: 0.50s; }

/* ── Reduced motion: skip all animations ── */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-up, .reveal-left, .reveal-right, .reveal-scale, .reveal-word,
  .word-reveal-unit {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}

/* ============================================================
   CUSTOM SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--clr-bg-primary); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--clr-cyan), var(--clr-violet));
  border-radius: var(--radius-full);
  opacity: 0.6;
}
::-webkit-scrollbar-thumb:hover { opacity: 1; }

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: rgba(12, 18, 32, 0.95);
  border: 1px solid var(--clr-border-cyan);
  border-radius: var(--radius-md);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow-lg), var(--shadow-cyan);
  min-width: 300px;
  color: #F8FAFC;
  animation: slideInRight 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: all;
}
@keyframes slideInRight {
  from { transform: translateX(120px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

/* ============================================================
   LOCKED / PREMIUM OVERLAY
   ============================================================ */
.premium-overlay { position: relative; overflow: hidden; }
.premium-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(5,7,13,0.9) 45%, rgba(5,7,13,0.98) 100%);
  z-index: 5;
}
.premium-badge-overlay {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  text-align: center;
  white-space: nowrap;
}

/* ============================================================
   DIVIDERS
   ============================================================ */
.divider {
  width: 100%;
  height: 1px;
  background: var(--clr-border);
  margin-block: var(--space-6);
}
.divider-glow {
  background: linear-gradient(90deg, transparent, var(--clr-cyan), transparent);
  opacity: 0.3;
}

/* ============================================================
   PAGE TRANSITION — Silk fade (managed by premium-motion.js)
   ============================================================ */
#page-transition {
  position: fixed;
  inset: 0;
  background: var(--clr-bg-primary);
  z-index: 9999;
  opacity: 1; /* Starts visible, fades out on load */
  pointer-events: all;
  /* Transition is set dynamically by JS for precise control */
}
#page-transition.active {
  opacity: 1;
  pointer-events: all;
}

/* ============================================================
   CHIP / TAG
   ============================================================ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 4px var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  border: 1px solid var(--clr-border-soft);
  color: var(--clr-text-secondary);
  background: var(--clr-bg-glass);
  white-space: nowrap;
  backdrop-filter: blur(8px);
  letter-spacing: 0.03em;
}

/* ============================================================
   SECTION BACKGROUND DECORATIONS
   ============================================================ */
.section-glow-top {
  position: relative;
}
.section-glow-top::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,229,255,0.4), transparent);
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 479px) {
  .container { padding-inline: var(--space-4); }
  .section    { padding-block: var(--space-12); }
  .hide-mobile { display: none !important; }
}
@media (min-width: 480px) and (max-width: 767px) {
  .hide-mobile-up { display: none !important; }
}
@media (max-width: 767px) {
  .hide-tablet { display: none !important; }
}
@media (min-width: 768px) {
  .show-mobile-only { display: none !important; }
}
@media (min-width: 1024px) {
  .show-tablet-only { display: none !important; }
}

/* ============================================================
   GLOBAL BROADCAST NOTICE BAR
   ============================================================ */
.global-notice-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  position: relative;
  z-index: 1000;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  animation: slideDownNotice 0.4s ease-out forwards;
}

@keyframes slideDownNotice {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.global-notice-bar .notice-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.global-notice-bar .notice-icon {
  font-size: 1.1rem;
  animation: bounceMini 2s infinite ease-in-out;
  display: inline-flex;
  align-items: center;
}

@keyframes bounceMini {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.global-notice-bar .notice-close {
  background: none;
  border: none;
  color: var(--clr-text-secondary);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--t-base);
  opacity: 0.7;
}

.global-notice-bar .notice-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--clr-text-primary);
  opacity: 1;
}

/* Color variations */
.global-notice-bar.gold {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 152, 0, 0.15) 50%, rgba(255, 215, 0, 0.1) 100%);
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow: 0 2px 15px rgba(255, 215, 0, 0.06);
}
.global-notice-bar.gold .notice-content {
  color: #FFE066;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.global-notice-bar.cyan {
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.08) 0%, rgba(0, 184, 212, 0.15) 50%, rgba(0, 229, 255, 0.08) 100%);
  border-bottom: 1px solid rgba(0, 229, 255, 0.2);
  box-shadow: 0 2px 15px rgba(0, 229, 255, 0.06);
}
.global-notice-bar.cyan .notice-content {
  color: #66E3FF;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.global-notice-bar.emerald {
  background: linear-gradient(90deg, rgba(0, 255, 163, 0.08) 0%, rgba(0, 200, 115, 0.15) 50%, rgba(0, 255, 163, 0.08) 100%);
  border-bottom: 1px solid rgba(0, 255, 163, 0.2);
  box-shadow: 0 2px 15px rgba(0, 255, 163, 0.06);
}
.global-notice-bar.emerald .notice-content {
  color: #66FFA6;
  text-shadow: 0 0 10px rgba(0, 255, 163, 0.2);
}

.global-notice-bar.red {
  background: linear-gradient(90deg, rgba(255, 61, 90, 0.08) 0%, rgba(213, 0, 0, 0.15) 50%, rgba(255, 61, 90, 0.08) 100%);
  border-bottom: 1px solid rgba(255, 61, 90, 0.2);
  box-shadow: 0 2px 15px rgba(255, 61, 90, 0.06);
}
.global-notice-bar.red .notice-content {
  color: #FF8597;
  text-shadow: 0 0 10px rgba(255, 61, 90, 0.2);
}

/* Custom logo sizing across all pages */
.logo-svg {
  width: 30px;
  height: 30px;
  display: block;
}


/* ============================================================
   SPOTLIGHT EFFECT — Mouse-tracked glow inside glass cards
   ============================================================ */
.feature-card,
.pricing-card,
.glass-card,
.testi-card {
  --spotlight-x: 50%;
  --spotlight-y: 50%;
  position: relative;
}

.feature-card.spotlight-active::before,
.pricing-card.spotlight-active::after,
.glass-card.spotlight-active .spotlight-layer,
.testi-card.spotlight-active::before {
  opacity: 1;
}

.spotlight-active {
  background-image: radial-gradient(
    circle 180px at var(--spotlight-x) var(--spotlight-y),
    rgba(0, 229, 255, 0.04) 0%,
    transparent 70%
  ) !important;
}

/* ============================================================
   TILT CARD — 3D perspective tracking utility
   ============================================================ */
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ============================================================
   MAGNETIC — cursor-attraction utility
   ============================================================ */
.magnetic {
  will-change: transform;
  display: inline-flex;
}

/* ============================================================
   SECTION ENTERED — shimmer border on section scroll-in
   ============================================================ */
@keyframes shimmer-border-sweep {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

section[id].section-entered::before {
  opacity: 1 !important;
  animation: shimmer-border-sweep 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards !important;
}

/* ============================================================
   BUTTON SPRING PHYSICS — Upgrade from flat active state
   ============================================================ */
.btn {
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.22s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.22s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* ============================================================
   NAVBAR TRANSITION UPGRADE
   ============================================================ */
.navbar {
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1) !important;
  will-change: transform;
}

/* ============================================================
   GLASS CARD HOVER — premium spring-lift upgrade
   ============================================================ */
.glass-card:hover {
  transform: translateY(-4px) !important;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

/* ============================================================
   REDUCED MOTION — disable all premium effects
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .tilt-card,
  .magnetic,
  .glass-card,
  .btn,
  .navbar,
  .feature-card,
  .pricing-card {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    will-change: auto !important;
  }
}
