/* ==========================================================================
   Bluebird Hero Section — 60FPS Apple-Grade Canvas Image Sequence Scrub
   & Kinetic Tear & Split Glitch Transition (GSAP ScrollTrigger Driven)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design Tokens & Modern Variables
   -------------------------------------------------------------------------- */
:root {
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-watermark: 'Italiana', 'Bodoni Moda', serif;
  --font-editorial: 'Cormorant Garamond', Georgia, serif;

  /* Color Palette */
  --color-outer-bg: #08111c;
  --color-outer-glow: #112438;
  
  --color-blue-primary: #0060cc;
  --color-blue-electric: #0975ea;
  --color-blue-cyan: #22d3ee;
  
  --color-text-dark: #1b3852;
  --color-text-muted: #64829d;
  --color-text-white: #ffffff;
  --color-text-translucent: rgba(255, 255, 255, 0.88);
  
  /* Glassmorphism Tokens */
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.38);
  --glass-blur: blur(24px);
  --glass-shadow: 0 16px 36px -10px rgba(0, 10, 25, 0.35);
  
  /* Motion & Easing */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-hover: 0.3s;
}

/* --------------------------------------------------------------------------
   Reset & Baseline
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --------------------------------------------------------------------------
   Lenis Smooth Scrolling Baseline
   -------------------------------------------------------------------------- */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

html, body {
  width: 100%;
  min-height: 100vh;
  font-family: var(--font-sans);
  background-color: var(--color-outer-bg);
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(14, 52, 92, 0.45) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 110%, rgba(9, 36, 64, 0.35) 0%, transparent 70%);
  color: var(--color-text-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   Scroll Track & Sticky Viewport Shell
   -------------------------------------------------------------------------- */
.scroll-track {
  position: relative;
  width: 100%;
  height: 500vh; /* Smooth runway for 144 earth frames + resistance buildup + shake + tear split */
}

.sticky-container {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Cinematic Film Grain Noise Overlay (Depth & Texture)
   -------------------------------------------------------------------------- */
.cinematic-noise {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  mix-blend-mode: screen;
}

/* --------------------------------------------------------------------------
   Volumetric Ambient Light Cones (Atmospheric Depth & Mesh Glow)
   -------------------------------------------------------------------------- */
.ambient-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(85px);
  z-index: 0;
  will-change: transform, opacity;
}

.glow-top {
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: min(850px, 85vw);
  height: 280px;
  background: radial-gradient(ellipse at center, rgba(34, 211, 238, 0.16) 0%, rgba(9, 117, 234, 0.06) 50%, transparent 75%);
  animation: floatAmbientTop 10s ease-in-out infinite alternate;
}

.glow-bottom-right {
  bottom: 5%;
  right: 2%;
  width: min(520px, 50vw);
  height: 380px;
  background: radial-gradient(circle, rgba(0, 96, 204, 0.28) 0%, rgba(34, 211, 238, 0.1) 45%, transparent 70%);
  filter: blur(95px);
  animation: floatAmbientRight 8s ease-in-out infinite alternate;
}

.glow-bottom-left {
  bottom: 8%;
  left: 3%;
  width: min(480px, 45vw);
  height: 320px;
  background: radial-gradient(circle, rgba(9, 117, 234, 0.18) 0%, rgba(4, 25, 50, 0.1) 50%, transparent 70%);
  filter: blur(85px);
  animation: floatAmbientLeft 12s ease-in-out infinite alternate;
}

@keyframes floatAmbientTop {
  0% { transform: translateX(-50%) translateY(0) scale(1); opacity: 0.8; }
  100% { transform: translateX(-50%) translateY(-20px) scale(1.08); opacity: 1; }
}

@keyframes floatAmbientRight {
  0% { transform: translateY(0) scale(1); opacity: 0.75; }
  100% { transform: translateY(15px) scale(1.1); opacity: 1; }
}

@keyframes floatAmbientLeft {
  0% { transform: translateY(0) scale(1); opacity: 0.7; }
  100% { transform: translateY(-15px) scale(1.06); opacity: 0.95; }
}

/* --------------------------------------------------------------------------
   Screen Shake Container & Glitch Overlays
   -------------------------------------------------------------------------- */
.shake-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: auto;
  will-change: transform;
}

/* Center Horizontal Fracture / Laser Crack Line */
.tear-crack-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 3px;
  transform: translateY(-50%) scaleX(0);
  transform-origin: center center;
  background: linear-gradient(90deg, transparent 0%, #22d3ee 12%, #ffffff 50%, #22d3ee 88%, transparent 100%);
  box-shadow: 
    0 0 16px #22d3ee,
    0 0 35px rgba(34, 211, 238, 0.95),
    0 0 65px rgba(9, 117, 234, 0.85);
  z-index: 60;
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 0 12px #ffffff);
  will-change: transform, opacity;
}

/* CRT Glitch Scanlines & Jitter Overlay */
.glitch-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 55;
  opacity: 0;
  background: 
    repeating-linear-gradient(
      0deg,
      rgba(34, 211, 238, 0.18) 0px,
      rgba(34, 211, 238, 0.18) 2px,
      transparent 2px,
      transparent 5px
    ),
    radial-gradient(ellipse at center, rgba(34, 211, 238, 0.3) 0%, transparent 75%);
  mix-blend-mode: screen;
  will-change: opacity;
}

/* --------------------------------------------------------------------------
   Split Layers (Top & Bottom Halves with Serrated Jagged Torn Clip-Path)
   -------------------------------------------------------------------------- */
.split-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  will-change: transform, opacity;
  overflow: hidden;
}

.split-inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Top Half: Raw Irregular Organic Torn Paper Edge */
.split-layer-top {
  z-index: 12;
  clip-path: polygon(
    0% 0%,
    100% 0%,
    100% 50.0%,
    98.4% 48.9%,
    96.8% 50.8%,
    95.0% 49.2%,
    93.2% 51.8%,
    91.5% 51.0%,
    89.3% 53.5%,
    87.0% 48.8%,
    85.2% 48.1%,
    83.4% 51.9%,
    81.0% 49.4%,
    79.2% 50.2%,
    77.0% 52.8%,
    75.1% 48.5%,
    73.0% 47.1%,
    71.2% 50.5%,
    69.4% 51.8%,
    67.0% 53.1%,
    65.2% 48.7%,
    63.5% 49.3%,
    61.8% 51.7%,
    60.1% 51.0%,
    58.3% 52.4%,
    56.0% 48.8%,
    54.2% 47.4%,
    52.5% 49.1%,
    50.8% 51.2%,
    49.1% 53.8%,
    47.0% 50.6%,
    45.2% 52.0%,
    43.0% 47.8%,
    41.4% 46.8%,
    39.1% 48.5%,
    36.8% 52.9%,
    35.0% 49.8%,
    33.5% 50.4%,
    31.0% 51.2%,
    29.2% 48.6%,
    27.5% 48.0%,
    25.8% 49.7%,
    24.0% 52.1%,
    22.1% 51.5%,
    20.4% 53.4%,
    18.0% 48.2%,
    16.5% 47.6%,
    14.2% 50.8%,
    12.8% 49.3%,
    11.0% 50.1%,
    8.5% 52.6%,
    6.0% 48.9%,
    4.8% 48.4%,
    3.2% 51.8%,
    1.5% 49.1%,
    0% 50.2%
  );
}

/* Bottom Half: Complementary Organic Interlocking Torn Edge */
.split-layer-bottom {
  z-index: 11;
  clip-path: polygon(
    0% 50.0%,
    1.5% 49.1%,
    3.2% 51.8%,
    4.8% 48.4%,
    6.0% 48.9%,
    8.5% 52.6%,
    11.0% 50.1%,
    12.8% 49.3%,
    14.2% 50.8%,
    16.5% 47.6%,
    18.0% 48.2%,
    20.4% 53.4%,
    22.1% 51.5%,
    24.0% 52.1%,
    25.8% 49.7%,
    27.5% 48.0%,
    29.2% 48.6%,
    31.0% 51.2%,
    33.5% 50.4%,
    35.0% 49.8%,
    36.8% 52.9%,
    39.1% 48.5%,
    41.4% 46.8%,
    43.0% 47.8%,
    45.2% 52.0%,
    47.0% 50.6%,
    49.1% 53.8%,
    50.8% 51.2%,
    52.5% 49.1%,
    54.2% 47.4%,
    56.0% 48.8%,
    58.3% 52.4%,
    60.1% 51.0%,
    61.8% 51.7%,
    63.5% 49.3%,
    65.2% 48.7%,
    67.0% 53.1%,
    69.4% 51.8%,
    71.2% 50.5%,
    73.0% 47.1%,
    75.1% 48.5%,
    77.0% 52.8%,
    79.2% 50.2%,
    81.0% 49.4%,
    83.4% 51.9%,
    85.2% 48.1%,
    87.0% 48.8%,
    89.3% 53.5%,
    91.5% 51.0%,
    93.2% 51.8%,
    95.0% 49.2%,
    96.8% 50.8%,
    98.4% 48.9%,
    100% 50.0%,
    100% 100%,
    0% 100%
  );
}

/* Luminous Torn Seam Accent Line */
.torn-edge-glow {
  position: absolute;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 15;
  opacity: 0;
  will-change: opacity;
}

.torn-edge-glow-top {
  bottom: 49.2%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.4) 20%, rgba(255, 255, 255, 0.8) 50%, rgba(34, 211, 238, 0.4) 80%, transparent);
  filter: drop-shadow(0 2px 6px rgba(34, 211, 238, 0.6));
}

.torn-edge-glow-bottom {
  top: 49.8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(9, 117, 234, 0.4) 20%, rgba(34, 211, 238, 0.8) 50%, rgba(9, 117, 234, 0.4) 80%, transparent);
  filter: drop-shadow(0 -2px 6px rgba(34, 211, 238, 0.6));
}

/* --------------------------------------------------------------------------
   Hero Canvas & Master Card
   -------------------------------------------------------------------------- */
.hero-canvas {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.hero-card {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 100vh;
  border-radius: 0;
  background: #060e18;
  border: none;
  box-shadow: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* --------------------------------------------------------------------------
   60FPS Canvas Image Sequence Background
   -------------------------------------------------------------------------- */
.hero-canvas-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 1;
}

.hero-canvas-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(110% 85% at 50% 25%, rgba(6, 16, 28, 0.05) 0%, rgba(4, 11, 20, 0.42) 100%);
}

/* --------------------------------------------------------------------------
   Navigation Bar
   -------------------------------------------------------------------------- */
.hero-nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(20px, 2.5vw, 36px) clamp(32px, 4.5vw, 64px);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  opacity: 0.95;
  transition: transform var(--duration-hover) var(--ease-spring), opacity var(--duration-hover) var(--ease-spring);
}

.nav-logo:hover {
  opacity: 1;
  transform: translateY(-1px) scale(1.04);
}

.logo-img {
  display: block;
  width: auto;
  height: 15px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(255, 255, 255, 0.4));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 28px);
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  letter-spacing: 0.015em;
  padding: 5px 8px;
  border-radius: 9999px;
  transition: all var(--duration-hover) var(--ease-spring);
}

.nav-link:hover {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.nav-link.active {
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  padding: 4px 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.btn-resources {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: #1a3a58;
  background: #ffffff;
  text-decoration: none;
  padding: 6.5px 18px;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: all var(--duration-hover) var(--ease-spring);
  display: inline-block;
}

.btn-resources:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 96, 204, 0.35);
  color: var(--color-blue-primary);
}

/* --------------------------------------------------------------------------
   Giant Luxury Typography (CONNECT) with Interactive Glass/Matte Physics
   -------------------------------------------------------------------------- */
.hero-watermark {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-watermark);
  font-size: clamp(5.5rem, 13vw, 10.8rem);
  font-weight: 400;
  letter-spacing: clamp(0.1em, 1.8vw, 0.22em);
  user-select: none;
  pointer-events: auto;
  z-index: 5;
  line-height: 1;

  --matte-radius: 80px;

  background-image: 
    radial-gradient(
      circle var(--matte-radius, 80px) at var(--mouse-x, -9999px) var(--mouse-y, -9999px),
      rgba(255, 255, 255, 1) 0%,
      rgba(242, 250, 255, 0.9) 25%,
      rgba(205, 238, 255, 0.45) 55%,
      rgba(150, 215, 255, 0.12) 80%,
      transparent 100%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.45) 0%,
      rgba(255, 255, 255, 0.12) 20%,
      rgba(255, 255, 255, 0.02) 50%,
      rgba(255, 255, 255, 0.06) 75%,
      rgba(255, 255, 255, 0.22) 100%
    );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.38);
  filter: drop-shadow(0 2px 10px rgba(255, 255, 255, 0.14)) drop-shadow(0 15px 35px rgba(0, 0, 0, 0.45));
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.06);
  cursor: default;
  transition: filter var(--duration-hover) var(--ease-spring);
}

.hero-watermark span {
  display: inline-block;
}

.hero-watermark:hover {
  filter: drop-shadow(0 8px 30px rgba(0, 150, 255, 0.18)) drop-shadow(0 2px 10px rgba(0, 0, 0, 0.4));
}

/* --------------------------------------------------------------------------
   Hero Content Layer (Bottom Layout)
   -------------------------------------------------------------------------- */
.hero-content-layer {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 clamp(32px, 4.5vw, 64px) clamp(28px, 3.5vw, 48px);
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   Left Column: Headline & CTAs
   -------------------------------------------------------------------------- */
.hero-left-content {
  max-width: 380px;
  margin-bottom: 6px;
}

.hero-title {
  display: flex;
  flex-direction: column;
}

.title-primary {
  font-family: var(--font-sans);
  font-size: clamp(34px, 3.8vw, 46px);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.title-secondary {
  font-family: var(--font-editorial);
  font-size: clamp(38px, 4.3vw, 52px);
  font-weight: 400;
  font-style: italic;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-top: -2px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.hero-description {
  font-size: 12px;
  color: rgba(235, 246, 255, 0.88);
  line-height: 1.45;
  max-width: 250px;
  margin-top: 14px;
  margin-bottom: 0;
  font-weight: 400;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

/* --------------------------------------------------------------------------
   Right Column: Floating Badges & Glass Cards
   -------------------------------------------------------------------------- */
.hero-right-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* Active Users Pill — Ultra-Clear 3D Glass Pill with Soft Beveled Edges */
.active-users-pill {
  position: absolute;
  top: -42px;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 50%, rgba(255, 255, 255, 0.01) 100%);
  backdrop-filter: blur(14px) saturate(210%) contrast(105%);
  -webkit-backdrop-filter: blur(14px) saturate(210%) contrast(105%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-top-color: rgba(255, 255, 255, 0.48);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 6.5px 16px;
  box-shadow: 
    0 12px 28px -4px rgba(0, 6, 18, 0.45),
    0 4px 10px -2px rgba(0, 0, 0, 0.2),
    0 0 20px -2px rgba(0, 96, 204, 0.18),
    inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 1px 0 rgba(0, 0, 0, 0.2);
  transition: all var(--duration-hover) var(--ease-spring);
  z-index: 10;
  overflow: hidden;
  user-select: none;
}

.active-users-pill::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 52%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.01) 100%);
  border-radius: 9999px 9999px 0 0;
  pointer-events: none;
}

.active-users-pill:hover {
  transform: translateY(-2px) scale(1.02);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.02) 100%);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 
    0 18px 36px -4px rgba(0, 6, 18, 0.55),
    0 6px 14px -2px rgba(0, 0, 0, 0.3),
    0 0 25px rgba(34, 211, 238, 0.22),
    inset 0 1.5px 2px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 1px 0 rgba(0, 0, 0, 0.2);
}

.active-pulse-dot {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background: var(--color-blue-cyan, #22d3ee);
  box-shadow: 0 0 10px var(--color-blue-cyan, #22d3ee), 0 0 3px #ffffff;
  animation: pulsePillDot 2.2s infinite ease-in-out;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

@keyframes pulsePillDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); box-shadow: 0 0 4px var(--color-blue-cyan, #22d3ee); }
}

.users-text {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
  white-space: nowrap;
  letter-spacing: 0.015em;
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.users-count {
  font-weight: 700;
  color: #ffffff;
  margin-left: 3px;
}

/* Feature Cards Row */
.feature-cards-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   Card Base & Progress Capsule (Ultra-Clear 3D Soft Glass)
   -------------------------------------------------------------------------- */
.glass-card {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.03) 50%, rgba(255, 255, 255, 0.01) 100%);
  backdrop-filter: blur(15px) saturate(210%) contrast(105%);
  -webkit-backdrop-filter: blur(15px) saturate(210%) contrast(105%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top-color: rgba(255, 255, 255, 0.42);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  box-shadow: 
    0 24px 50px -10px rgba(0, 6, 18, 0.6),
    0 10px 20px -4px rgba(0, 0, 0, 0.3),
    0 0 35px -5px rgba(0, 96, 204, 0.15),
    inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1.5px 1px 0 rgba(0, 0, 0, 0.2),
    inset 0 0 20px 0 rgba(255, 255, 255, 0.03);
  transition: transform var(--duration-hover) var(--ease-spring), 
              box-shadow var(--duration-hover) var(--ease-spring),
              border-color var(--duration-hover) var(--ease-spring),
              background var(--duration-hover) var(--ease-spring);
  overflow: hidden;
  will-change: transform;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 52%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 65%, transparent 100%);
  border-radius: 26px 26px 60% 60% / 26px 26px 20px 20px;
  pointer-events: none;
  z-index: 1;
}

.glass-card:hover {
  transform: translateY(-5px) scale(1.015);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.02) 100%);
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: 
    0 32px 64px -12px rgba(0, 6, 18, 0.7),
    0 14px 28px -6px rgba(0, 0, 0, 0.4),
    0 0 40px -2px rgba(0, 96, 204, 0.22),
    inset 0 1.5px 2px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1.5px 1px 0 rgba(0, 0, 0, 0.2),
    inset 0 0 25px 0 rgba(255, 255, 255, 0.06);
}

.card-stat {
  width: 216px;
  min-height: auto;
  padding: 13px 16px 13px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
}

.card-stat .stat-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.stat-desc {
  font-family: var(--font-sans);
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.42;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 0;
}

/* Horizontal Linear Sine-Wave Progress Bar */
.sine-wave-wrapper {
  width: 100%;
  height: 12px;
  display: flex;
  align-items: center;
  margin-top: 2px;
  overflow: visible;
}

.sine-wave-svg {
  width: 100%;
  height: 12px;
  overflow: visible;
  display: block;
}

.wave-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 2;
  stroke-linecap: round;
}

.wave-progress {
  fill: none;
  stroke: url(#sineWaveGradTop);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 190;
  stroke-dashoffset: 190;
}

#scrollWaveProgressBottom {
  stroke: url(#sineWaveGradBottom);
}

/* --------------------------------------------------------------------------
   Buttons & CTAs
   -------------------------------------------------------------------------- */
.btn-primary {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
  background: linear-gradient(135deg, var(--color-blue-electric) 0%, var(--color-blue-primary) 100%);
  padding: 9px 12px 9px 22px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 22px -3px rgba(0, 96, 204, 0.55);
  transition: all var(--duration-hover) var(--ease-spring);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -3px rgba(0, 96, 204, 0.7);
}

.btn-arrow-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--color-blue-primary);
  display: grid;
  place-items: center;
  transition: transform var(--duration-hover) var(--ease-spring);
  font-weight: 700;
}

.btn-primary:hover .btn-arrow-circle {
  transform: translateX(3px);
}

.btn-secondary {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  color: #1a3a58;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.94);
  padding: 10px 22px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: all var(--duration-hover) var(--ease-spring);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: #ffffff;
  color: #0060cc;
  box-shadow: 0 6px 18px rgba(0, 96, 204, 0.25);
}

/* --------------------------------------------------------------------------
   Continuation Section: Fullscreen Interactive Character (Revealed from Center Rift)
   -------------------------------------------------------------------------- */
.section-continuation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 5;
  display: block;
  padding: 0;
  margin: 0;
  opacity: 0;
  transform: scale(0.9);
  filter: blur(10px);
  pointer-events: none;
  overflow: hidden;
  will-change: transform, opacity, filter;
}

.character-canvas-fullscreen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  object-fit: cover;
  pointer-events: none;
  z-index: 1;
  background-color: #03080e;
  image-rendering: auto;
}

.continuation-glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: min(800px, 90vw);
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(34, 211, 238, 0.25) 0%, rgba(9, 117, 234, 0.1) 45%, transparent 75%);
  filter: blur(80px);
  pointer-events: none;
  animation: floatAmbientTop 8s ease-in-out infinite alternate;
}

.continuation-inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.status-pill-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.continuation-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-blue-cyan);
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.35);
  padding: 5px 14px;
  border-radius: 9999px;
  box-shadow: 0 0 15px rgba(34, 211, 238, 0.15);
}

.live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 5px 14px;
  border-radius: 9999px;
  backdrop-filter: blur(10px);
}

.continuation-title {
  font-family: var(--font-sans);
  font-size: clamp(30px, 4.2vw, 50px);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin-bottom: 16px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.continuation-desc {
  font-size: clamp(13px, 1.3vw, 15.5px);
  color: rgba(235, 246, 255, 0.75);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  width: 100%;
  max-width: 740px;
  margin-bottom: 34px;
}

.stat-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top-color: rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.3);
  transition: transform var(--duration-hover) var(--ease-spring), border-color var(--duration-hover) var(--ease-spring);
}

.stat-item:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 15px 30px -4px rgba(0, 96, 204, 0.25);
}

.stat-big {
  font-family: var(--font-sans);
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  text-shadow: 0 0 20px rgba(34, 211, 238, 0.3);
}

.stat-sub {
  font-size: 0.52em;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 400;
  letter-spacing: 0;
}

.stat-label {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.01em;
}

.continuation-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* --------------------------------------------------------------------------
   Responsive Design & Fluid Adaptation
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .hero-card {
    height: 100%;
    min-height: 100vh;
  }
  .continuation-card {
    height: auto;
    min-height: 640px;
  }
  
  .hero-watermark {
    font-size: clamp(4rem, 11vw, 8rem);
    top: 22%;
  }

  .feature-cards-row {
    gap: 10px;
  }

  .card-stat {
    width: 200px;
  }
}

@media (max-width: 900px) {
  .hero-nav {
    padding: 18px 22px;
  }

  .nav-links {
    display: none;
  }

  .hero-content-layer {
    flex-direction: column;
    align-items: center;
    gap: 32px;
    padding: 0 22px 30px;
  }

  .hero-left-content {
    text-align: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    max-width: 100%;
  }

  .hero-right-content {
    align-items: center;
    width: 100%;
  }

  .active-users-pill {
    position: static;
    margin-bottom: 16px;
  }

  .feature-cards-row {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .status-pill-row {
    flex-direction: column;
    gap: 8px;
  }
}