/*
  sr-scroll-unified.css — ONE scrollbar only (absolute last)
*/
html {
  overflow-x: clip !important;
  overflow-y: scroll !important;
  height: auto !important;
  min-height: 100% !important;
  scrollbar-gutter: stable !important;
  scroll-behavior: auto !important;
}

html body,
html body.sr-site,
html body.sr-site.sr-flagship {
  overflow-x: clip !important;
  overflow-y: hidden !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}

body.sr-site .site-wrapper,
body.sr-site main,
body.sr-site section[id],
body.sr-site footer.footer-premium {
  overflow-x: clip !important;
  overflow-y: hidden !important;
  height: auto !important;
  max-height: none !important;
}

body.sr-graph-gate-open {
  overflow: hidden !important;
}

body.sr-graph-gate-open html {
  overflow: hidden !important;
}


/* Smooth scroll behavior */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth !important;
    scroll-behavior: auto !important; /* disable native, we use custom */
  }
}

/* Section reveal on scroll - professional staggered animation */
body.sr-site .sr-flow-section {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

body.sr-site .sr-flow-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Navigation fade on scroll */
body.sr-site .nav-glass {
  transition: background 0.4s ease,
              backdrop-filter 0.4s ease,
              box-shadow 0.4s ease !important;
}

body.sr-site .nav-glass.nav-scrolled {
  background: rgba(4, 6, 14, 0.88) !important;
  backdrop-filter: blur(36px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(36px) saturate(180%) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) !important;
}

/* Hero scroll indicator */
.sr-scroll-indicator {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  opacity: 0;
  animation: srScrollFadeIn 1s ease 3s forwards;
  z-index: 10;
  pointer-events: none;
}

@keyframes srScrollFadeIn {
  to { opacity: 0.7; }
}

.sr-scroll-indicator span {
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(186, 230, 253, 0.5);
}

.sr-scroll-mouse {
  width: 1.25rem;
  height: 2rem;
  border: 1.5px solid rgba(186, 230, 253, 0.35);
  border-radius: 999px;
  position: relative;
}

.sr-scroll-mouse::after {
  content: '';
  position: absolute;
  top: 0.3rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 0.4rem;
  background: rgba(186, 230, 253, 0.6);
  border-radius: 999px;
  animation: srScrollMouseAnim 1.8s ease infinite;
}

@keyframes srScrollMouseAnim {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  80% { opacity: 0; transform: translateX(-50%) translateY(0.7rem); }
  100% { opacity: 0; transform: translateX(-50%) translateY(0.7rem); }
}

/* Section dividers for visual flow */
.sr-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45,212,191,0.12), transparent);
  margin: 0;
  border: 0;
}


/* ===== Custom thin themed scrollbar ===== */
html::-webkit-scrollbar { width: 7px !important; }
html::-webkit-scrollbar-track { background: #05080f !important; }
html::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2dd4bf55, #818cf855) !important;
  border-radius: 4px !important;
  border: 1px solid rgba(45,212,191,0.12) !important;
}
html::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #2dd4bf88, #818cf888) !important;
}
html { scrollbar-width: thin !important; scrollbar-color: #2dd4bf44 #05080f !important; }
/* ===== End custom scrollbar ===== */


/* ===== Hero entrance animation (on DOMContentLoaded) ===== */
.sr-hero-entrance .sr-hero-pro__intro > * {
  opacity: 0;
  transform: translateY(18px);
  animation: srHeroEntrance 0.7s cubic-bezier(0.16,1,0.3,1) both;
}
.sr-hero-entrance .sr-hero-pro__intro > *:nth-child(1) { animation-delay: 0.10s; }
.sr-hero-entrance .sr-hero-pro__intro > *:nth-child(2) { animation-delay: 0.22s; }
.sr-hero-entrance .sr-hero-pro__intro > *:nth-child(3) { animation-delay: 0.34s; }
.sr-hero-entrance .sr-hero-pro__intro > *:nth-child(4) { animation-delay: 0.46s; }
.sr-hero-entrance .sr-hero-pro__intro > *:nth-child(5) { animation-delay: 0.58s; }
.sr-hero-entrance .sr-hero-pro__intro > *:nth-child(6) { animation-delay: 0.70s; }
.sr-hero-entrance .sr-hero-pro__apex > * { animation-delay: 0.80s; }

@keyframes srHeroEntrance {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
/* ===== End hero entrance ===== */

/* Hide scrollbar on mobile (overlay is fine) */
@media (max-width: 768px) {
  html::-webkit-scrollbar { width: 0 !important; display: none !important; }
  html { -ms-overflow-style: none !important; scrollbar-width: none !important; }
}

/* gate-off 2026-06-01 */
.sr-graph-gate-modal,.sr-graph-gate-modal__card,.sr-graph-gate-modal__head,.sr-graph-gate-modal__title,.sr-graph-gate-modal__cta,.sr-graph-gate-modal__hint,.sr-graph-gate-modal__ad-label,.sr-graph-gate-native-root{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;position:absolute!important;left:-99999px!important;}
