/* ============================================
   NETWORK INTELLIGENCE v5 - THE SUPERHUMAN UPDATE
   Aesthetic: Mobile-First / Financial Terminal / AI Utility
   ============================================ */

/* Reset & Base */
:root {
  --bg-color: #050505;
  --text-primary: #ffffff;
  --text-primary: #ffffff;
  --text-secondary: #E5E5E5;
  --text-muted: rgba(255, 255, 255, 0.6);
  --accent-color: #ffffff;
  --highlight-color: #ff3333;
  --card-bg: rgba(10, 10, 10, 0.7);
  --card-border: rgba(255, 255, 255, 0.15);

  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* System Spacing */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;

  --section-spacing: 180vh;
  /* Slower scroll animation as requested */
}

/* ... existing code ... */

.grey-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1.2;
}

/* ... existing code ... */

/* Personas Readability */
.persona-col .body-text {
  color: #E5E5E5 !important;
  /* Force readability over vibration */
  opacity: 0.9;
}

/* Product Cards Scale */
.glass-card {
  /* Removed transform: scale(1.15) to fix sub-pixel blur on Windows/Chrome */
  /* Instead, dimensions increased by 15% directly */
  background: rgba(10, 10, 10, 0.85);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Topology Labels */
.topology-label {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: none;
  opacity: 0;
  animation: fadeUp 1s ease 1s forwards;
  /* Delayed fade in */
}

.label-dot {
  width: 8px;
  height: 8px;
  background: var(--highlight-color);
  /* Red accent */
  border-radius: 50%;
  box-shadow: 0 0 10px var(--highlight-color);
}

.label-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Footer Polish */
.footer-section {
  padding-top: 10vh;
  padding-bottom: 10vh;
  /* More breathing room */
}

/* Button Glow */
.cta-btn:hover {
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
  border-color: #fff;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  /* Fix for iOS dynamic viewport */
  height: -webkit-fill-available;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
  overscroll-behavior-y: none;
  line-height: 1.5;
  /* Fix for iOS dynamic viewport */
  min-height: 100vh;
  min-height: -webkit-fill-available;
  /* Improve touch responsiveness */
  -webkit-tap-highlight-color: transparent;
  touch-action: pan-y;
}

/* ============================================
   WEBGL BACKGROUND
   ============================================ */
#webgl-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  /* Dynamic viewport height for mobile */
  z-index: -1;
  pointer-events: none;
  touch-action: none;
}

/* Static Background for Mobile/Reduced Motion */
.static-bg {
  background: var(--bg-color);
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255, 0, 0, 0.05) 0%, transparent 40%);
  z-index: -1;
}

/* ============================================
   UTILITY & TYPOGRAPHY
   ============================================ */
.mono-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: var(--space-2);
}

.headline {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.04em;
  padding-bottom: 0.1em;
  text-wrap: balance;
  /* Fix orphaned words */
}

.headline.xl {
  /* Fix Mobile Overlap: Clamp ensures it shrinks enough on small screens */
  font-size: clamp(2rem, 8vw, 5rem);
}

.headline.lg {
  font-size: clamp(2rem, 6vw, 3.5rem);
}

.headline.md {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: var(--space-3);
}

.body-text {
  font-family: var(--font-sans);
  font-size: clamp(1.1rem, 4vw, 1.35rem);
  color: #E5E5E5;
  /* Solid color for crisp text contrast */
  line-height: 1.6;
  font-weight: 300;
  margin-top: var(--space-2);
}

.terminal-highlight {
  background: rgba(255, 255, 255, 0.1);
  padding: 0 4px;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: #fff;
}

/* ============================================
   NAVIGATION
   ============================================ */
.fixed-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: var(--space-2) clamp(var(--space-2), 5vw, var(--space-4));
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  /* Blur for Sticky Header Readability */
  background: rgba(5, 5, 5, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.system-status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  opacity: 0.7;
}

.trust-signal {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 1rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.8;
}

.nav-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
}

.nav-btn:hover {
  background: #fff;
  color: #000;
}

/* ============================================
   TERMINAL FOOTER (FIXED)
   ============================================ */
.terminal-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 12px clamp(var(--space-2), 5vw, var(--space-4));
  z-index: 100;
  background: rgba(5, 5, 5, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  /* Let clicks pass through if needed, but signature is text */
}

.footer-content {
  text-align: center;
}

.terminal-footer .mono-label {
  font-size: 0.65rem;
  letter-spacing: 1px;
  margin: 0;
}

@media (max-width: 768px) {
  .terminal-footer {
    padding: 10px 20px;
  }

  .terminal-footer .mono-label {
    font-size: 0.55rem;
    line-height: 1.4;
    word-wrap: break-word;
    white-space: normal;
    text-align: center;
  }
}


/* ============================================
   SCROLL SECTIONS
   ============================================ */
.story-section {
  min-height: var(--section-spacing);
  position: relative;
  display: flex;
  padding: 0 clamp(var(--space-2), 5vw, 80px);
  /* Use space var */
  pointer-events: none;
  /* Let clicks pass through to background if needed */
}

/* HERO SPECIFIC OVERRIDE */
#section-hero .content-wrapper {
  margin-top: 15vh;
  /* Positive spacing to clear the header */
}

/* Artifact Section */
#section-artifact {
  min-height: auto;
  padding: var(--space-4) 0;
  display: flex;
  justify-content: center;
}

.artifact-card {
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
  text-align: left;
  /* Override centered wrapper */
}

.high-fidelity {
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 255, 255, 0.05);
  background: rgba(15, 15, 15, 0.9);
  /* Darker, flatter */
}

.high-fidelity .card-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
}

.artifact-target {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.target-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: #fff;
}

.blur-text {
  filter: blur(4px);
  opacity: 0.7;
}

.match-score {
  font-family: var(--font-mono);
  color: #33ff33;
  /* Success Green */
  font-size: 0.8rem;
  padding: 2px 6px;
  background: rgba(51, 255, 51, 0.1);
  border-radius: 4px;
}

.artifact-rationale {
  font-size: 0.95rem;
  color: #ddd;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}

.connection-path {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  /* Horizontal Scrolling setup */
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;

  /* Hide Scrollbars */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.connection-path::-webkit-scrollbar {
  display: none;
}

@media (max-width: 480px) {
  .connection-path {
    gap: 4px;
    font-size: 0.7rem;
  }

  .path-node {
    padding: 3px 6px;
  }
}

.path-node {
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
  color: #fff;
}

.target-node {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.path-arrow {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.artifact-confidence {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.confidence-high {
  color: #ddd;
}

/* Default Wrapper */
.content-wrapper {
  max-width: 600px;
  z-index: 10;
  margin-top: 0;
  /* Reset default negative margin */
  pointer-events: auto;
  /* Re-enable clicks for content */
}

/* Position Classes */
.centered {
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.centered .content-wrapper {
  /* Reading Scrim: Subtle radial gradient behind text */
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
  padding: 2rem;
  /* Add some padding so the gradient has room to breathe */
  /* margin-top: -15vh; Removed to prevent overlap */
  /* Ensure centering is maintained */
  text-align: center;
}

.left-aligned {
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

.bottom-aligned {
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 20vh;
  text-align: center;
  width: 100%;
}

/* ============================================
   NEW SECTIONS: PERSONAS & FEATURES
   ============================================ */

/* Personas */
.personas-container {
  display: flex;
  gap: var(--space-5);
  margin-top: var(--space-3);
  justify-content: center;
  text-align: left;
}

.persona-col {
  flex: 1;
  max-width: 300px;
  background: rgba(255, 255, 255, 0.03);
  padding: 24px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
}

.amber-text {
  color: #FFBF00;
  /* Electric Amber */
  font-family: var(--font-mono);
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
}

.cyan-text {
  color: #00FFFF;
  /* Cyan */
  font-family: var(--font-mono);
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
}


/* Ingestion: The Gap Section */
.glass-box {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  /* Subtle box */
  padding: 3rem;
  /* Breathing room */
}

#section-ingestion .content-wrapper {
  max-width: 800px;
  /* Wider for better reading flow */
}


/* Sticky Features */
.pinned-features-track {
  width: 100%;
  height: 300vh;
  /* Exactly 3 steps of 100vh */
  position: relative;
}

.sticky-feature {
  height: 100vh;
  position: sticky;
  /* The magic */
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  /* Let clicks pass */
}

/* Stack Logic: Ensure they layer nicely */
.sticky-feature:nth-child(1) {
  z-index: 10;
}

.sticky-feature:nth-child(2) {
  z-index: 20;
}

.sticky-feature:nth-child(3) {
  z-index: 30;
}

.feature-card-style {
  background: #111;
  /* Dark Card Background as requested */
  border: 1px solid #333;
  /* Thin grey border */
  border-radius: 10px;
  /* 10px rounded */
  padding: 3rem;
  max-width: 500px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  /* Deep shadow */
  pointer-events: auto;
  /* Re-enable clicks inside card */
  text-align: center;
}

/* ============================================
   STICKY STEP SECTIONS (Deck Layout)
   ============================================ */
.sticky-step {
  position: sticky;
  top: 0;
  height: 100vh !important;
  height: 100dvh !important;
  /* Dynamic viewport for mobile */
  display: flex;
  align-items: center;
  background: transparent !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  touch-action: pan-y;
}

/* Z-Index Stacking: Incoming cards slide OVER previous */
#section-pressure {
  z-index: 10;
}

#section-relief {
  z-index: 20;
}

#section-how-it-works {
  z-index: 30;
}

/* Scrim and Transition for choreographed fading */
.sticky-step .content-wrapper {
  margin-top: 0;
  background: radial-gradient(circle at center, rgba(5, 5, 5, 0.8) 0%, transparent 70%);
  padding: 4rem;
  border-radius: 20px;
  transition: opacity 0.2s ease, transform 0.2s ease;
  /* Snappier response */
  opacity: 0;
  /* Start hidden, JS will show Step 01 */
  visibility: hidden;
  will-change: opacity, transform;
  animation: none !important;
  /* CRITICAL: Prevent CSS animation from locking opacity at 1 */
}

.accent-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--highlight-color);
  /* Highlight color */
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

/* ============================================
   MOBILE RESPONSIVE STACK
   ============================================ */
.cards-container {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.bottom-aligned {
  align-items: center;
  /* Changed from flex-end to center */
  justify-content: center;
  padding-bottom: 0;
  /* Removed large bottom padding */
  text-align: center;
  width: 100%;
}

/* ... existing styles ... */

/* MOBILE FIRST ADJUSTMENTS */
@media (max-width: 768px) {
  .mobile-hidden {
    display: none;
  }

  /* Fix nav button cutoff on mobile */
  .fixed-nav {
    padding: var(--space-2) 16px;
  }

  .nav-btn {
    padding: 8px 12px;
    font-size: 0.65rem;
    flex-shrink: 0;
  }

  .logo {
    font-size: 0.8rem;
  }

  /* Less padding on glass boxes for mobile screens */
  .glass-box {
    padding: 1.5rem;
  }

  :root {
    --section-spacing: 100vh;
    /* Shorter flow for mobile thumb */
  }

  .subtitle br,
  .section-title br {
    display: none;
    /* Let text flow naturally on small screens */
  }

  .content-wrapper {
    margin-top: 10vh;
    /* Push DOWN on mobile, don't pull up */
    text-align: left;
    /* Usually easier to read left-aligned on mobile */
  }

  .centered .content-wrapper {
    text-align: center;
  }

  /* Stack Cards Vertically */
  .cards-container,
  .personas-container {
    flex-direction: column;
    align-items: stretch;
    /* Cards go full width */
    max-width: 400px;
    margin: 0 auto;
    gap: 24px;
  }

  .persona-col {
    max-width: 100%;
  }

  .glass-card {
    width: 100%;
    /* Full width */
    min-height: auto;
  }

  .glass-card {
    width: 100%;
    /* Full width */
    min-height: auto;
  }

  /* Disable Sticky on Mobile - prevents glitchy behavior with dynamic address bars */
  .sticky-step {
    position: relative;
    height: auto;
    min-height: auto;
  }

  /* Timeline View: Convert card stack to vertical timeline flow */
  .sticky-step .content-wrapper {
    border-left: 2px solid var(--highlight-color);
    padding-left: 1.5rem;
    margin-left: 1rem;
  }

  /* Remove card backgrounds on mobile for timeline look */
  .sticky-step .step-number {
    margin-left: -1rem;
  }

  /* Footer Overlap Fix: Ensure final CTA clears the fixed footer */
  .footer-section {
    padding-bottom: 80px;
  }
}

/* DESKTOP ADJUSTMENTS */
@media (min-width: 1024px) {
  .content-wrapper {
    max-width: 900px;
    /* Relax width on desktop */
    margin-top: -5vh;
    /* Less aggressive shift */
  }

}

/* DESKTOP ADJUSTMENTS */
@media (min-width: 1024px) {
  .content-wrapper {
    max-width: 900px;
    /* Relax width on desktop */
    margin-top: -5vh;
    /* Less aggressive shift */
  }

  .story-section {
    padding: 0 10vw;
    /* More side breathing room */
  }

  .headline.xl {
    font-size: 6rem;
    /* Fixed large size for clarity */
    line-height: 1.1;
  }

  .cards-container {
    gap: var(--space-5);
    /* Standardized large gap */
  }
}

/* ============================================
   GLASS CARDS (Superhuman Style)
   ============================================ */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  padding: 28px;
  /* Increased from 24px by ~15% */
  width: 391px;
  /* Increased from 340px by ~15% */
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  cursor: default;
}

/* Removed hover effect to reduce click confusion
.glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.4);
}
*/

.card-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tag::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
}

.tag.accent {
  color: #fff;
}

.tag.accent::before {
  background: var(--highlight-color);
  box-shadow: 0 0 8px var(--highlight-color);
}

.card-body p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.card-body strong {
  color: #fff;
  font-weight: 600;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.4);
}

.card-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.action-cmd {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  opacity: 0.8;
}

.action-cmd span {
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
}

/* ============================================
   UI ELEMENTS
   ============================================ */
.cta-btn {
  background: #fff;
  border: 1px solid #fff;
  color: #000;
  padding: 14px 28px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.cta-btn:hover {
  background: transparent;
  color: #fff;
}

.shortcut-hint {
  font-size: 0.7rem;
  opacity: 0.5;
  font-weight: 400;
}

.legend {
  margin-top: var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  display: flex;
  gap: var(--space-3);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot.red {
  background: var(--highlight-color);
}

.dot.grey {
  background: #444;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Delays */
.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

/* Card Entrance Animation */
.card-enter-active {
  animation: cardFadeIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


/* ============================================
   LOADER & MODAL
   ============================================ */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #050505;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

#loader.fade-out {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0s 0.5s;
  /* Hide after fade completes */
}

.loader-content {
  text-align: center;
}

.loader-bar {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  margin-top: 10px;
  position: relative;
  overflow: hidden;
}

.loader-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: #fff;
  animation: load 1s infinite ease-in-out;
}

@keyframes load {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(200%);
  }
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.hidden-display {
  display: none !important;
}

.modal-content {
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 8px;
  width: 90%;
  max-width: 480px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.modal-overlay.hidden .modal-content {
  transform: translateY(20px);
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1.2rem;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.close-modal:hover {
  opacity: 1;
}

/* MOBILE BOTTOM SHEET OVERRIDE */
@media (max-width: 768px) {
  .modal-overlay {
    align-items: flex-end;
    /* Bottom Align */
    padding: 0;
  }

  .modal-content {
    width: 100%;
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    margin: 0;
    max-height: 90vh;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-bottom: none;
    padding-bottom: 40px;
    /* Safety padding for sticky CTA */
  }

  /* Stick CTA to bottom */
  #waitlist-form {
    display: flex;
    flex-direction: column;
  }

  /* Make sure scrolling works nicely */
  #modal-form-view {
    overflow-y: auto;
    max-height: 80vh;
  }

  .close-modal {
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

.input-group {
  margin-bottom: 20px;
}

/* Checkbox Styling */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 8px;
  /* Scrollbar padding */
}

/* Custom Scrollbar for Checkboxes */
.checkbox-group::-webkit-scrollbar {
  width: 4px;
}

.checkbox-group::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.checkbox-group::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1.4;
}

.checkbox-label:hover {
  color: #fff;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  /* Align with text top */
  cursor: pointer;
  appearance: auto;
  /* Use default checkbox for reliability, or custom if requested */
  accent-color: #fff;
}

/* Success Message Styling */
.success-message {
  text-align: center;
  padding: 20px;
  animation: fadeIn 0.5s ease;
}

.access-granted-text {
  color: #FFFFFF;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
  /* Pale Gold/White Glow */
  margin-bottom: 1rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   NEW SECTIONS: PERSONAS & FEATURES
   ============================================ */
/* ... (Existing Persona styles) ... */

/* Ingestion: The Gap Section */
.glass-box {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  /* Subtle box */
  padding: 3rem;
  /* Breathing room */
}

/* Widen the ingestion text container */
#section-ingestion .content-wrapper {
  max-width: 800px;
  /* Wider for better reading flow */
}

/* Sticky Features */
.pinned-features-track {
  width: 100%;
}

.sticky-feature {
  height: 100vh;
  position: sticky;
  /* The magic */
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  /* Let clicks pass */
}

/* Stack Logic: Ensure they layer nicely */
.sticky-feature:nth-child(1) {
  z-index: 10;
}

.sticky-feature:nth-child(2) {
  z-index: 20;
}

.sticky-feature:nth-child(3) {
  z-index: 30;
}

.feature-card-style {
  background: #111;
  /* Dark Card Background as requested */
  border: 1px solid #333;
  /* Thin grey border */
  border-radius: 10px;
  /* 10px rounded */
  padding: 3rem;
  max-width: 500px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  /* Deep shadow */
  pointer-events: auto;
  /* Re-enable clicks inside card */
}

.accent-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--highlight-color);
  /* Highlight color */
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

/* ... (Mobile Responsive) ... */

/* MODAL INPUTS */
input[type="text"],
input[type="email"],
textarea,
select {
  width: 100%;
  background: #222;
  /* Dark Background */
  border: 1px solid #333;
  /* Dark Border */
  padding: 12px;
  color: #fff;
  /* White Text */
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: border-color 0.2s, background 0.2s;
  resize: vertical;
  appearance: none;
  /* Remove default arrow */
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
}

.input-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

input:focus,
textarea:focus,
select:focus,
#waitlist-form input:focus {
  box-shadow: none;
  /* Removed gamer glow for terminal aesthetic */
  outline: none;
  border: 1px solid #FFFFFF;
  /* Hard 1px white border */
  background-color: #2a2a2a;
}

.required-mark {
  color: var(--highlight-color);
  margin-left: 4px;
  text-shadow: 0 0 15px rgba(255, 51, 51, 0.4);
}

.full-width {
  width: 100%;
  justify-content: center;
}

.body-text.small {
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* ============================================
   NEW SECTIONS: PRESSURE, RELIEF, HOW-IT-WORKS
   ============================================ */

/* Micro Trust Line */
.micro-trust {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1rem;
  opacity: 0.7;
}

/* Pressure & Relief Scoping */
#section-pressure .headline.md,
#section-relief .headline.md {
  margin-bottom: 2rem;
}

#section-pressure {
  min-height: 120vh;
  /* Massive void */
}

#section-relief {
  min-height: 100vh;
}

/* Mobile: Reduce excessive gaps between sections */
@media (max-width: 768px) {
  #section-pressure {
    min-height: 80vh;
  }

  #section-relief {
    min-height: 70vh;
  }

  #section-how-it-works {
    min-height: 70vh;
  }

  /* Reduce hero section gap on mobile */
  #section-hero {
    min-height: 80vh;
  }

  .story-section {
    min-height: 70vh;
  }

  /* Ensure proper spacing between sections */
  .pinned-features-track {
    height: auto;
  }
}


/* How It Works Steps */
#section-how-it-works {
  min-height: auto;
  padding-bottom: 5vh;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-3);
  width: 100%;
}

.step-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 8px;
  text-align: left;
  backdrop-filter: blur(4px);
  transition: transform 0.3s ease, background 0.3s ease;
}

.step-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-5px);
}

.step-number {
  font-family: var(--font-mono);
  font-size: 2rem;
  color: var(--highlight-color);
  opacity: 0.5;
  display: block;
  margin-bottom: 1rem;
  font-weight: 700;
  text-shadow: 0 0 15px rgba(255, 51, 51, 0.4);
  /* Laser/LED glow */
}

.step-item .headline.sm {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #fff;
}

.step-item .body-text.small {
  font-size: 0.95rem;
  opacity: 1;
  color: #DDDDDD;
  /* Improved Contrast */
  margin-top: 0;
}

/* Social Proof */
#section-social {
  min-height: 40vh;
  /* Quick pause */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Adjustments for New Sections */
@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
    /* Stack vertically */
    gap: 3rem;
    /* Increase gap for better separation on mobile */
  }

  .step-item {
    padding: 1.5rem;
  }
}