/* ==========================================================================
   SPACE — A Space for Entrepreneurs
   Custom Premium Design System & Motion Framework
   Samagra Learning Solutions | Royal Blue & Gilded Gold Edition
   ========================================================================== */
/* Fonts loaded directly via <head> <link> for high performance */
:root {
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Executive Royal Blue & Vibrant Gold Palette (Reference Match) */
  --space-navy-950: #070E24;
  --space-navy-900: #091332;
  --space-navy-850: #0C183E;
  --space-navy-800: #10204C;
  --space-royal: #162C66;
  --space-royal-vibrant: #1C3B87;
  
  /* Reference Golden Yellow & Text Tones */
  --space-gold: #FFB800;
  --space-gold-light: #FFC820;
  --space-gold-pale: #FFE685;
  --space-gold-champagne: #CBD5E1;
  --space-gold-ivory: #FFFFFF;
  --space-gold-glow: rgba(255, 184, 0, 0.45);
  --space-gold-border: rgba(255, 184, 0, 0.28);
  --space-gold-border-bright: rgba(255, 184, 0, 0.7);

  /* Deep Royal Slate Accents */
  --space-slate-50: #091332;
  --space-slate-100: #0C183E;
  --space-slate-200: #10204C;
  --space-slate-800: #CBD5E1;
  --space-slate-900: #FFFFFF;
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--space-navy-950);
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--space-gold-champagne);
  background-color: var(--space-navy-950);
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  -webkit-tap-highlight-color: transparent;
}

/* Offset for fixed navbar anchor scroll navigation */
section[id] {
  scroll-margin-top: 88px;
}

/* Instant tap interaction across touch devices (eliminates 300ms delay) */
button,
a,
input,
select,
textarea,
.pillar-nav-btn,
.faq-trigger,
.video-filter-tab,
.expand-video-btn,
.open-membership-modal,
.modal-close-btn {
  touch-action: manipulation;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
  letter-spacing: -0.025em;
  color: var(--space-gold-light);
}

.font-display {
  font-family: var(--font-display);
}

/* Glassmorphic Surfaces with Gilded Precision Frames */
.glass-nav {
  background: rgba(3, 10, 32, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(245, 190, 56, 0.2);
}

.glass-nav-scrolled {
  background: rgba(2, 7, 24, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(245, 190, 56, 0.38);
  box-shadow: 0 10px 35px -10px rgba(0, 0, 0, 0.7), 0 0 20px rgba(245, 190, 56, 0.08);
}

.glass-card-dark {
  background: linear-gradient(135deg, rgba(8, 24, 72, 0.72) 0%, rgba(4, 14, 46, 0.85) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--space-gold-border);
  box-shadow: inset 0 1px 0 rgba(255, 238, 175, 0.2), 0 18px 45px rgba(0, 0, 0, 0.45);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card-dark:hover,
.glass-card-dark:active,
.glass-card-dark.touch-hover {
  border-color: var(--space-gold-border-bright);
  background: linear-gradient(135deg, rgba(12, 34, 96, 0.8) 0%, rgba(6, 20, 60, 0.9) 100%);
  transform: translateY(-4px);
  box-shadow: inset 0 1px 0 rgba(255, 245, 195, 0.35), 0 24px 50px -10px rgba(0, 0, 0, 0.65), 0 0 28px rgba(245, 190, 56, 0.22);
}

.glass-card-light {
  background: linear-gradient(135deg, rgba(9, 28, 80, 0.8) 0%, rgba(5, 16, 52, 0.9) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--space-gold-border);
  box-shadow: inset 0 1px 0 rgba(255, 238, 175, 0.2), 0 18px 45px rgba(0, 0, 0, 0.45);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card-light:hover,
.glass-card-light:active,
.glass-card-light.touch-hover {
  border-color: var(--space-gold-border-bright);
  transform: translateY(-4px);
  box-shadow: inset 0 1px 0 rgba(255, 245, 195, 0.35), 0 24px 50px -10px rgba(0, 0, 0, 0.65), 0 0 28px rgba(245, 190, 56, 0.22);
}

.glass-stat-pill {
  background: rgba(5, 16, 50, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--space-gold-border);
  box-shadow: inset 0 1px 0 rgba(255, 238, 175, 0.2), 0 12px 30px -5px rgba(0, 0, 0, 0.5);
}

/* Background Grids & Ambient Lighting */
.bg-grid-subtle {
  background-size: 48px 48px;
  background-image: 
    linear-gradient(to right, rgba(245, 190, 56, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 68, 190, 0.08) 1px, transparent 1px);
}

.bg-grid-light {
  background-size: 48px 48px;
  background-image: 
    linear-gradient(to right, rgba(245, 190, 56, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 68, 190, 0.09) 1px, transparent 1px);
}

.radial-glow-hero {
  background: radial-gradient(circle at 70% 40%, rgba(20, 68, 198, 0.32) 0%, rgba(245, 190, 56, 0.08) 35%, rgba(6, 23, 70, 0.2) 60%, transparent 75%);
}

.radial-glow-center {
  background: radial-gradient(circle at center, rgba(20, 68, 198, 0.28) 0%, rgba(245, 190, 56, 0.06) 45%, transparent 75%);
}

/* Concentric Rings & Animations */
.concentric-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed rgba(245, 190, 56, 0.25);
  animation: rotateSlow 80s linear infinite;
}

.ring-1 { width: 340px; height: 340px; border-color: rgba(245, 190, 56, 0.45); }
.ring-2 { width: 520px; height: 520px; border-style: dotted; border-color: rgba(56, 189, 248, 0.22); animation-direction: reverse; animation-duration: 110s; }
.ring-3 { width: 700px; height: 700px; border-color: rgba(245, 190, 56, 0.22); animation-duration: 140s; }
.ring-4 { width: 880px; height: 880px; border-color: rgba(20, 68, 190, 0.18); animation-duration: 180s; }


/* Global Map Corridors & Radar Animations */
@keyframes dashFlight {
  to {
    stroke-dashoffset: -40;
  }
}

.flight-arc {
  stroke-dasharray: 6 6;
  animation: dashFlight 2.5s linear infinite;
}

@keyframes radarPing {
  0% {
    r: 6;
    opacity: 0.9;
  }
  100% {
    r: 26;
    opacity: 0;
  }
}

.radar-wave {
  animation: radarPing 2.2s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}

.map-node {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.map-node:hover, .map-node.active-node {
  r: 9;
  fill: #F5BE38;
  filter: drop-shadow(0 0 10px #F5BE38);
}

.corridor-tab.active {
  background: #F5BE38;
  color: #020718;
  border-color: #F5BE38;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(245, 190, 56, 0.4);
}

/* ==========================================================================
   Members in SPACE - Infinite Logo Marquee Styles
   ========================================================================== */
@keyframes marqueeLeft {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes marqueeRight {
  0% {
    transform: translate3d(-50%, 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

.marquee-track-left {
  display: flex;
  width: max-content;
  animation: marqueeLeft 75s linear infinite;
  will-change: transform;
}

.marquee-track-right {
  display: flex;
  width: max-content;
  animation: marqueeRight 75s linear infinite;
  will-change: transform;
}

.marquee-container:hover .marquee-track-left,
.marquee-container:hover .marquee-track-right,
.marquee-container.is-paused .marquee-track-left,
.marquee-container.is-paused .marquee-track-right {
  animation-play-state: paused;
}

.member-logo-card {
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

/* Luxurious Golden Light Beam Sweep Effect */
.member-logo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(245, 158, 11, 0.15) 35%,
    rgba(254, 240, 138, 0.75) 50%,
    rgba(245, 158, 11, 0.35) 65%,
    transparent 80%
  );
  transform: skewX(-20deg);
  pointer-events: none;
  z-index: 5;
}

/* Ambient Warm Golden Backlight Glow Inside Card */
.member-logo-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at center, rgba(234, 179, 8, 0.18) 0%, rgba(245, 158, 11, 0.06) 50%, transparent 80%);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 1;
}

.member-logo-card:hover,
.member-logo-card:active,
.member-logo-card.touch-hover {
  transform: translateY(-7px) scale(1.045);
  border-color: #f59e0b;
  box-shadow: 
    0 20px 40px -10px rgba(0, 0, 0, 0.5),
    0 0 35px rgba(245, 158, 11, 0.45),
    0 0 15px rgba(251, 191, 36, 0.6),
    inset 0 0 20px rgba(254, 240, 138, 0.25);
  background-color: #ffffff;
}

.member-logo-card:hover::before,
.member-logo-card:active::before,
.member-logo-card.touch-hover::before {
  animation: goldShimmerSweep 1.2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.member-logo-card:hover::after,
.member-logo-card:active::after,
.member-logo-card.touch-hover::after {
  opacity: 1;
}

@keyframes goldShimmerSweep {
  0% {
    left: -150%;
  }
  100% {
    left: 200%;
  }
}

/* Customer Logo Sizing & Optical Normalization Engine */
.member-logo-card {
  padding: 0.5rem 0.75rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.member-logo-card img {
  filter: none !important;
  opacity: 1;
  position: relative;
  z-index: 2;
  width: auto !important;
  height: auto !important;
  max-width: 92% !important;
  max-height: 84px !important;
  object-fit: contain !important;
  object-position: center !important;
  transform-origin: center center;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Optical scale boost for square, compact & tall logos so their visual presence matches the wide logos */
.member-logo-card img.logo-scale-boost,
.member-logo-card.logo-boost img {
  max-height: 88px !important;
  transform: scale(1.14);
}

.member-logo-card img.logo-scale-tall,
.member-logo-card.logo-tall img {
  max-height: 92px !important;
  transform: scale(1.22);
}

.member-logo-card:hover img,
.member-logo-card:active img,
.member-logo-card.touch-hover img {
  transform: scale(1.08);
  filter: drop-shadow(0 6px 12px rgba(217, 119, 6, 0.3)) contrast(105%) !important;
}

.member-logo-card:hover img.logo-scale-boost,
.member-logo-card:active img.logo-scale-boost,
.member-logo-card.touch-hover img.logo-scale-boost {
  transform: scale(1.22) !important;
}

.member-logo-card:hover img.logo-scale-tall,
.member-logo-card:active img.logo-scale-tall,
.member-logo-card.touch-hover img.logo-scale-tall {
  transform: scale(1.30) !important;
}

/* ==========================================================================
   Video Testimonials Slider & Carousel Styles
   ========================================================================== */
.video-card-container {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-card-container:hover,
.video-card-container:active,
.video-card-container.touch-hover {
  transform: translateY(-8px);
  border-color: rgba(0, 176, 238, 0.6);
  box-shadow: 0 20px 40px -15px rgba(0, 176, 238, 0.3), 0 0 25px rgba(0, 176, 238, 0.15);
}

.video-player-wrapper,
.reel-video-wrapper,
.video-card-container .video-player-wrapper,
#testimonials .video-player-wrapper {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 9 / 16 !important;
  padding-top: 0 !important;
  height: auto !important;
  background: #000000 !important;
  border-radius: 1.25rem !important;
  overflow: hidden !important;
  display: block !important;
}

@supports not (aspect-ratio: 9 / 16) {
  .video-player-wrapper,
  .reel-video-wrapper,
  .video-card-container .video-player-wrapper,
  #testimonials .video-player-wrapper {
    padding-top: 177.78% !important; /* 9:16 Reel Ratio */
    height: 0 !important;
  }
}

.video-player-wrapper iframe,
.reel-video-wrapper iframe,
.founder-film-video iframe {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  pointer-events: none !important; /* Direct all touches and clicks to tap-anywhere overlay */
}

/* ==========================================================================
   Full-Frame Touch-Anywhere Video Play/Pause Overlay & Indicator
   ========================================================================== */
.video-tap-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 6;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.22);
  transition: background 0.3s ease;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* When playing: overlay is completely transparent for unobstructed viewing */
.video-tap-overlay.is-playing {
  background: transparent;
}

/* Play/Pause Center Badge */
.video-play-btn-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(10, 17, 40, 0.88);
  border: 2px solid rgba(255, 184, 0, 0.85);
  box-shadow: 0 0 25px rgba(255, 184, 0, 0.45), 0 4px 15px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(255, 184, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFB800;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease, box-shadow 0.28s ease, background 0.2s ease;
  pointer-events: none;
}

/* Size for Founder Perspective 16:9 film */
.founder-film-video .video-play-btn-circle {
  width: 76px;
  height: 76px;
}

.video-play-btn-circle svg {
  width: 26px;
  height: 26px;
  transition: transform 0.2s ease;
}
.founder-film-video .video-play-btn-circle svg {
  width: 32px;
  height: 32px;
}

.video-play-btn-circle .pause-icon {
  display: none;
}
.video-play-btn-circle .play-icon {
  display: block;
  margin-left: 3px;
}

/* Hover effects when paused (desktop) */
@media (hover: hover) and (pointer: fine) {
  .video-tap-overlay:not(.is-playing):hover .video-play-btn-circle {
    transform: scale(1.12);
    border-color: #FFB800;
    box-shadow: 0 0 35px rgba(255, 184, 0, 0.75), 0 6px 20px rgba(0, 0, 0, 0.7), inset 0 0 20px rgba(255, 184, 0, 0.35);
  }
}

/* When video is playing: hide the persistent play circle */
.video-tap-overlay.is-playing .video-play-btn-circle {
  opacity: 0;
  transform: scale(0.65);
  pointer-events: none;
}

/* On desktop hover while playing: show subtle pause indicator */
@media (hover: hover) and (pointer: fine) {
  .video-tap-overlay.is-playing:hover {
    background: rgba(0, 0, 0, 0.28);
  }
  .video-tap-overlay.is-playing:hover .video-play-btn-circle {
    opacity: 0.88;
    transform: scale(0.95);
  }
  .video-tap-overlay.is-playing:hover .video-play-btn-circle .play-icon {
    display: none;
  }
  .video-tap-overlay.is-playing:hover .video-play-btn-circle .pause-icon {
    display: block;
    margin-left: 0;
  }
}

/* Momentary Flash Animation on Tap / Click (Visual Feedback) */
.video-flash-icon {
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(10, 17, 40, 0.92);
  border: 2px solid #FFB800;
  box-shadow: 0 0 30px rgba(255, 184, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFB800;
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
  transition: none;
  z-index: 7;
}

.video-flash-icon.flash-animate {
  animation: videoTapFlash 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes videoTapFlash {
  0% {
    opacity: 0.95;
    transform: scale(0.85);
  }
  45% {
    opacity: 1;
    transform: scale(1.15);
  }
  100% {
    opacity: 0;
    transform: scale(1.35);
  }
}

/* Watch in full screen expansion button: stays clean, elevated above tap overlay */
.expand-video-btn {
  z-index: 20 !important;
  pointer-events: auto !important;
  white-space: nowrap;
  overflow: hidden;
}

.expand-video-btn iframe,
.expand-video-btn div[data-vimeo-initialized],
.expand-video-btn .vp-placeholder,
.expand-video-btn svg:not(.lucide) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Member Growth Hero Showcase Quick-Switch Tabs */
.growth-member-tab {
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}
.growth-member-tab:hover {
  transform: translateY(-2px);
}
.growth-member-tab.active {
  border-color: rgba(255, 184, 0, 0.7) !important;
  background: rgba(255, 184, 0, 0.14) !important;
  box-shadow: 0 4px 20px rgba(255, 184, 0, 0.22) !important;
}

/* Lightbox Modal Video Frame: preserves identical 9:16 aspect ratio as landing page */
#video-lightbox-modal .glass-card-dark {
  width: auto !important;
  max-width: min(94vw, 440px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#video-lightbox-modal .reel-video-wrapper,
#video-lightbox-modal .video-player-wrapper {
  position: relative !important;
  aspect-ratio: 9 / 16 !important;
  height: min(70vh, 620px) !important;
  width: calc(min(70vh, 620px) * 9 / 16) !important;
  max-width: 88vw !important;
  max-height: 70vh !important;
  margin-left: auto !important;
  margin-right: auto !important;
  border-radius: 1.25rem !important;
  overflow: hidden !important;
  background: #000000 !important;
  display: block !important;
}


.founder-film-wrap {
  position: relative;
  width: min(92vw, 1180px);
  margin-left: auto;
  margin-right: auto;
}

.founder-film-video {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  overflow: hidden !important;
}

/* Logo Animation Video Banner (1920:740 Aspect Ratio) */
.logo-animation-wrapper {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 1920 / 740 !important;
  background: #000000 !important;
  overflow: hidden !important;
}

@supports not (aspect-ratio: 1920 / 740) {
  .logo-animation-wrapper {
    padding-top: 38.5416667% !important; /* 740 / 1920 * 100% */
  }
}

.logo-animation-wrapper iframe {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
}

.video-tab-btn {
  transition: all 0.25s ease-out;
}

.video-tab-btn.active {
  background: #00B0EE;
  color: #020617;
  border-color: #00B0EE;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(0, 176, 238, 0.4);
}

.video-slider-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.video-progress-dot {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-progress-dot.active {
  width: 2rem;
  background-color: #00B0EE;
}

@keyframes rotateSlow {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes pulseSubtle {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}

.animate-pulse-subtle {
  animation: pulseSubtle 6s ease-in-out infinite;
}

/* ==========================================================================
   Mashup Highlight Reel Feature Styling
   ========================================================================== */
.mashup-showcase-container {
  background: linear-gradient(135deg, rgba(11, 37, 107, 0.4) 0%, rgba(3, 9, 26, 0.88) 50%, rgba(2, 6, 23, 0.96) 100%);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.85), 0 0 40px rgba(0, 176, 238, 0.12);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.mashup-showcase-container:hover {
  border-color: rgba(0, 176, 238, 0.5);
  box-shadow: 0 35px 70px -15px rgba(0, 0, 0, 0.95), 0 0 50px rgba(0, 176, 238, 0.22);
}

@keyframes soundwave {
  0% { height: 4px; }
  100% { height: 14px; }
}

.soundwave-bar {
  display: inline-block;
  animation: soundwave 1.1s infinite ease-in-out alternate;
}

.soundwave-bar:nth-child(1) { animation-delay: 0.05s; }
.soundwave-bar:nth-child(2) { animation-delay: 0.3s; }
.soundwave-bar:nth-child(3) { animation-delay: 0.15s; }
.soundwave-bar:nth-child(4) { animation-delay: 0.4s; }

/* Floating animation for stat badges */
@keyframes floatSlow1 {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  50% { transform: translateY(-8px) translateX(4px); }
}

@keyframes floatSlow2 {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  50% { transform: translateY(8px) translateX(-4px); }
}

.float-stat-1 { animation: floatSlow1 7s ease-in-out infinite; }
.float-stat-2 { animation: floatSlow2 8s ease-in-out infinite; }

/* Custom Buttons & Pills - Gilded Gold & Royal Blue */
.btn-primary {
  background: linear-gradient(135deg, #FFF2B2 0%, #F5BE38 45%, #D48E08 100%) !important;
  color: #030A20 !important;
  font-weight: 800;
  border: 1px solid rgba(255, 245, 185, 0.85) !important;
  box-shadow: 0 6px 25px rgba(245, 190, 56, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: rotate(30deg) translateY(-100%);
  transition: transform 0.6s ease;
}

.btn-primary:hover::after,
.btn-primary:active::after,
.btn-primary.touch-hover::after {
  transform: rotate(30deg) translateY(100%);
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary.touch-hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(245, 190, 56, 0.6), 0 0 20px rgba(254, 217, 115, 0.4) !important;
}

.btn-secondary-dark {
  background: rgba(6, 20, 60, 0.65) !important;
  color: #FCD24A !important;
  border: 1px solid rgba(245, 190, 56, 0.42) !important;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.btn-secondary-dark:hover,
.btn-secondary-dark:active,
.btn-secondary-dark.touch-hover {
  background: rgba(245, 190, 56, 0.15) !important;
  border-color: rgba(254, 217, 115, 0.75) !important;
  color: #FFFDF5 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 15px rgba(245, 190, 56, 0.25) !important;
}

/* Gilded Gold Metallic Gradients */
.gradient-text-gold,
.gradient-text-cyan,
.gradient-text-blue {
  background: linear-gradient(135deg, #FFF9E6 0%, #FED973 32%, #F5BE38 68%, #DB9612 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* Group photo frame */
.group-photo-frame {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.group-photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 9, 26, 0) 60%, rgba(3, 9, 26, 0.85) 100%);
  pointer-events: none;
}

/* Pillar Step Active Styling */
.pillar-tab {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 3px solid transparent;
}

.pillar-tab.active {
  border-left-color: #00B0EE;
  background: linear-gradient(90deg, rgba(0, 176, 238, 0.08) 0%, transparent 100%);
}

/* Timeline & Milestone Line */
.timeline-line {
  position: absolute;
  top: 50%;
  left: 5%;
  right: 5%;
  height: 2px;
  background: linear-gradient(90deg, #00B0EE 0%, #0B256B 50%, #38BDF8 100%);
  z-index: 1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #020617;
}

::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #00B0EE;
}

/* Modal styles */
.modal-overlay {
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE SYSTEM & TOUCH OPTIMIZATIONS
   ========================================================================== */

/* Universal Touch & Tap Enhancements */
button, a, input, select, textarea, .cursor-pointer {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* iOS Safari Input Auto-Zoom Prevention */
@media screen and (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Safe Area Inset Support (iPhone X to 16 Pro Max) */
.safe-bottom {
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
}

.safe-top {
  padding-top: env(safe-area-inset-top, 0px);
}

/* Fluid Responsive Typography Clamping */
@media screen and (max-width: 640px) {
  h1, .hero-title {
    font-size: clamp(2rem, 7.5vw, 2.75rem) !important;
    line-height: 1.15 !important;
  }

  h2, .section-title {
    font-size: clamp(1.65rem, 5.8vw, 2.25rem) !important;
    line-height: 1.2 !important;
  }
  
  .glass-card-dark, .glass-card-light {
    padding: 1.25rem !important;
  }

  /* Responsive Marquee card sizing on mobile */
  .member-logo-card {
    width: 9.5rem !important;
    height: 5.5rem !important;
    padding: 0.35rem 0.5rem !important;
    margin-left: 0.5rem !important;
    margin-right: 0.5rem !important;
  }

  .member-logo-card img {
    max-height: 70px !important;
    max-width: 90% !important;
  }

  .member-logo-card img.logo-scale-boost,
  .member-logo-card.logo-boost img {
    max-height: 74px !important;
    transform: scale(1.12);
  }

  .member-logo-card img.logo-scale-tall,
  .member-logo-card.logo-tall img {
    max-height: 78px !important;
    transform: scale(1.18);
  }

  .member-logo-card:hover img.logo-scale-boost,
  .member-logo-card:active img.logo-scale-boost,
  .member-logo-card.touch-hover img.logo-scale-boost {
    transform: scale(1.18) !important;
  }

  .member-logo-card:hover img.logo-scale-tall,
  .member-logo-card:active img.logo-scale-tall,
  .member-logo-card.touch-hover img.logo-scale-tall {
    transform: scale(1.24) !important;
  }
}

/* Tablet Optimizations (641px to 1024px) */
@media screen and (min-width: 641px) and (max-width: 1024px) {
  .member-logo-card {
    width: 11.5rem !important;
    height: 6.25rem !important;
    padding: 0.45rem 0.65rem !important;
  }

  .member-logo-card img {
    max-height: 78px !important;
  }

  .video-slider-track {
    gap: 0;
  }
}

/* Carousel Touch Swiping */
.touch-carousel-track {
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

/* Floating Mobile Action Bar */
.mobile-floating-bar {
  background: rgba(3, 9, 26, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(0, 176, 238, 0.25);
  box-shadow: 0 -10px 25px -5px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   SMOOTH MOBILE SCROLL PERFORMANCE & HARDWARE LAYER ISOLATION
   ========================================================================== */

/* Restore silky 120Hz/60Hz native inertial momentum scrolling on iOS and Android */
@media (hover: none) and (pointer: coarse) {
  html,
  html.scroll-smooth {
    scroll-behavior: auto !important;
  }
  body {
    -webkit-overflow-scrolling: touch;
  }
}

/* High-performance rendering engine: CSS Content Visibility & Containment
   Skips rendering and style calculation of off-screen sections until user approaches them */
#the-problem,
#about,
#community,
#members,
#why-space,
#testimonials,
#promise,
#mission-2030,
#ipo-ready,
#leadership,
#faq,
footer {
  content-visibility: auto;
  contain-intrinsic-size: 1px 750px;
}

@media screen and (max-width: 768px) {

  /* Keep marquee tracks on their own hardware compositor layers */
  .marquee-track-left,
  .marquee-track-right {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }

  .member-logo-card {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }

  /* Mobile GPU fill-rate optimization for frosted glass cards */
  .glass-card-dark,
  .glass-card-light {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

/* Print and 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;
  }
}

/* ==========================================================================
   Executive Gold Palette — Permanent Native CSS System
   Ensures headings, highlights, borders and accents always render in vibrant gold
   ========================================================================== */
.text-gold-50 { color: #FFFBEA; }
.text-gold-100 { color: #FFF3C4; }
.text-gold-200 { color: #FFE685; }
.text-gold-300 { color: #FFD747; }
.text-gold-400 { color: #FFC814; }
.text-gold-500 { color: #FFB800; }
.text-gold-600 { color: #DB9400; }
.bg-gold-400 { background-color: #FFC814; }
.bg-gold-500 { background-color: #FFB800; }
.border-gold-300 { border-color: #FFD747; }
.border-gold-400 { border-color: #FFC814; }
.border-gold-500 { border-color: #FFB800; }
