/* BlockHaven Manifesto Homepage Styles */
/* Font: Space Grotesk, all-caps for headlines */
/* Colors: #121212 (bg), #6C5CE7 (accent), #FAFAFA (text) */

/* Font imports are already in the HTML head, no need to duplicate here */

:root {
  --bg: #121212;
  --accent: #6C5CE7;
  --text: #FAFAFA;
  --muted: #23232a;
  --card-bg: #18181f;
  --cta-glow: 0 0 24px 4px #6C5CE755;
  --transition: 0.5s cubic-bezier(0.77,0,0.175,1);
  --max-width: 900px;
  --content-width: 660px;
  --section-margin-top: 60px;
  --paragraph-margin-bottom: 24px;
  --manifesto-paragraph-margin: 16px; /* Reduced for tighter spacing between heading and supporting text */
  --manifesto-section-margin: 32px; /* Added for spacing between sections (heading groups) */
  --nav-height: 64px;
  --footer-height: 80px;
}

html, body {
  height: auto;
  min-height: 100%;
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: 'Inter', 'IBM Plex Sans', Arial, sans-serif;
  font-size: 18px;
  letter-spacing: 0.01em;
}

body {
  display: block;
  background-color: #0A0A0A;
  background-image: linear-gradient(to bottom, #0A0A0A 0%, #121212 45%, #181818 100%);
  overflow-x: hidden;
  position: relative;
  scroll-snap-type: y proximity;
}

html { background-color: #0A0A0A; }

/* Add subtle noise texture for visual richness to entire site */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48ZmlsdGVyIGlkPSJhIiB4PSIwIiB5PSIwIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iLjc1IiBzdGl0Y2hUaWxlcz0ic3RpdGNoIi8+PGZlQ29sb3JNYXRyaXggdHlwZT0ic2F0dXJhdGUiIHZhbHVlcz0iMCIvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbHRlcj0idXJsKCNhKSIvPjwvc3ZnPg==');
  opacity: 0.025; /* 2.5% opacity for subtle effect */
  z-index: -1;
  pointer-events: none;
}

/* NAVIGATION */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(18,18,18,0.85);
  z-index: 1000;
  box-shadow: 0 2px 32px 0 #000a;
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1.5px solid rgba(108,92,231,0.12);
  opacity: 1;
  pointer-events: auto;
  transition: background 0.4s, box-shadow 0.4s;
}

.nav-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  box-sizing: border-box;
}
.nav-links {
  display: flex;
  gap: clamp(16px, 2.5vw, 32px);
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 0; /* Prevent shrinking */
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.logo-img {
  max-height: 74px;
  vertical-align: middle;
  object-fit: contain;
  display: block;
  padding: 2px 0;
}


/* Styling for nav links (Insights, Partner) */
.unblocked-link,
.partner-link {
  font-size: 1.2rem; /* Match the size of BlockHaven logo text */
  font-weight: 600; /* Semi-bold */
  text-decoration: none;
  color: var(--text);
  position: relative;
  display: inline-block; /* Ensure the element only takes up as much space as needed */
  transition: color 0.3s ease;
}

/* Hover effect - change text color and add glow */
.unblocked-link:hover,
.partner-link:hover {
  color: var(--accent); /* BlockHaven purple */
  text-shadow: 0 0 8px rgba(108, 92, 231, 0.4); /* Soft purple glow */
}


/* Mobile Navigation (Hamburger + Glassmorphic Dropdown) */
.nav-toggle {
  display: none; /* Hidden by default on desktop */
  background: none;
  border: 0;
  padding: 8px;
  margin-left: 8px;
  cursor: pointer;
  z-index: 1002; /* Ensure it's above other elements */
}

.nav-toggle .bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #FFFFFF;
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animate to X when open */
.nav-toggle.open .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open .bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}





/* Mobile navigation styles moved to responsive.css to avoid conflicts */

/* HERO SECTION */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 1;
  overflow: hidden;
  background: transparent;
  scroll-snap-align: start;
}

.hero-content {
  max-width: 740px; /* Tight block, true center */
  margin: 0 auto;
  padding: 140px 24px 80px 24px; /* Increased vertical padding for better breathing room */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px; /* Adjusted to 24px as requested */
  text-align: center;
}

.hero-headline {
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem); /* Responsive sizing: 40px min, scales with viewport, 72px max */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text);
  margin: 0;
  line-height: 1; /* Better line height for two-line layout */
  text-shadow: 0 2px 4px rgba(0,0,0,0.8), 0 4px 32px rgba(0,0,0,0.7);
  opacity: 1;
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-headline .line1,
.hero-headline .line2 {
  display: block;
  white-space: nowrap;
  text-align: center;
}

.hero-headline .line1 {
  margin-bottom: 0.1em; /* Very tight spacing between lines */
}
.hero-headline.hero-animate {
  opacity: 1;
  transform: translateY(0);
  z-index: 2; /* Ensure text is above background */
}

/* Updated hero subheadline styles - 2025-04-26 */
.hero-subheadline {
  font-size: 1.25rem; /* ~20px as specified */
  color: #bdbdbd;
  margin-bottom: 32px; /* Adjusted to 32px as requested */
  font-weight: 400;
  letter-spacing: 0.04em;
  opacity: 1; /* Set to visible by default */
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: center; /* Ensure center alignment */
  z-index: 2; /* Ensure text is above background */
}
.hero-subheadline.hero-animate {
  opacity: 1;
  transform: translateY(0);
}

.cta-btn {
  background: var(--accent);
  color: var(--text);
  border: none;
  border-radius: 32px;
  padding: 16px 35px;
  font-size: 1.1rem;
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: var(--cta-glow);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  margin-bottom: 0;
  outline: none;
  z-index: 2; /* Ensure text is above background */
  /* Enlarge button by 10% */
  transform: scale(1.1);
}

.cta-btn:hover,
.cta-btn:focus {
  background: var(--accent);
  box-shadow: 0 0 40px 10px #6C5CE799; /* Increased glow radius */
  transform: translateY(-2px) scale(1.13); /* Scale relative to the new base size */
  z-index: 2; /* Ensure text is above background */
}

.hero-subtext {
  color: #CCCCCC;
  font-size: 1.05rem; /* ~16-18px */
  margin-top: 8px; /* Adjusted to 8px as requested */
  font-weight: 400;
  text-align: center;
  z-index: 2; /* Ensure text is above background */
}

/* Scroll cue styling */
/* Chevron down icon styling */
.chevron-down {
  font-size: 24px; /* Size within the 18-24px range */
  color: #A0A0A0; /* Soft light gray */
  opacity: 0.7; /* 70% opacity */
  margin-top: 20px; /* 20px margin below the button */
  text-align: center;
  position: relative; /* Create stacking context for z-index */
  z-index: 5; /* Ensure it's above any overlap */
  animation: chevronPulse 2.5s ease-in-out infinite; /* 2.5-second pulse cycle (slowed by 25%) */
  transition: opacity 0.3s ease, transform 0.3s ease, text-shadow 0.3s ease;
  cursor: pointer; /* Indicate clickability */
  pointer-events: auto; /* Ensure it can receive clicks */
}

/* Pulse animation for the chevron */
@keyframes chevronPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); } /* Scale up by 15% for more visibility */
}

/* Hover effect with subtle glow */
.chevron-down:hover {
  text-shadow: 0 0 8px rgba(160, 160, 160, 0.4); /* Soft glow effect */
}

/* Hide chevron when scrolled down */
.chevron-hidden {
  opacity: 0;
  transform: translateY(10px);
}

.scroll-cue {
  font-size: 0.875rem; /* 14px */
  color: rgba(255, 255, 255, 0.75); /* Soft white with 75% opacity - more cinematic */
  margin-top: 48px;
  text-align: center;
  z-index: 2; /* Ensure text is above background */
  font-weight: 400; /* Ensure minimum font-weight of 400 */
  animation: pulse 4s ease-in-out infinite; /* Restored animation for cinematic effect */
  font-style: italic; /* Light italic style */
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

/* hero-bg is managed in assets/css/style.css (starfield overlay enabled) */

/* Remove the noise texture from hero since it's now on the body */
.hero-bg::after {
  display: none;
}

/* MANIFESTO SECTION */
.manifesto {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  background: transparent;
  padding: 0;
  margin-bottom: 40px;
  z-index: 1;
}

/* MANIFESTO, REALITY, FOR-YOU Sections */
section#manifesto-content,
section#reality,
section#for-you {
  align-items: flex-start;
  text-align: left;
}

.manifesto-bg {
  display: none; /* Remove manifesto background since we're using body background */
}

/* Remove gradient fades since we have one seamless background */
.manifesto::before,
.manifesto::after {
  display: none;
}

/* Manifesto Cinematic Scroll Text */
.manifesto-scroll-text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center; /* Center all content */
  gap: var(--manifesto-paragraph-margin);
  width: 100%;
  max-width: 600px; /* Max width for text block: 600px as specified */
  margin: 0 auto;
  padding: 80px 24px 80px 24px; /* Maintain 80px top/bottom spacing */
}

/* Add styling for the final CTA button in Apps vs System section */
#final-cta {
  margin-top: 32px;
  margin-bottom: 0;
}

/* Reduce width of "Who We're Building This For" section */
section#for-you {
  max-width: calc(var(--content-width) * 0.6);
}

/* Base styles for all manifesto text */
.manifesto-scroll-text p {
  font-family: 'Inter', 'IBM Plex Sans', Arial, sans-serif;
  font-size: 1.125rem; /* 18px as specified */
  font-weight: 400;
  color: #FAFAFA;
  text-align: center;
  letter-spacing: 0.01em;
  line-height: 1.45; /* 1.45em as specified */
  margin: 0;
  text-transform: none;
  opacity: 1; /* Make visible by default */
  transform: none; /* No transform by default */
  transition: opacity 1.1s cubic-bezier(0.77,0,0.175,1), transform 1.1s cubic-bezier(0.77,0,0.175,1);
  will-change: opacity, transform;
  background: none;
  position: relative;
  width: 100%;
}

/* Major header - first big emotional hit */
.manifesto-scroll-text .major-header {
  margin-bottom: 12px; /* Bottom margin to body text: 12px */
}

.manifesto-scroll-text .major-header strong {
  font-size: 1.75rem; /* 28px as specified */
}

/* Supporting text after headers */
.manifesto-scroll-text .supporting-text {
  margin-bottom: 55px; /* Reduced to create more consistent rhythm */
}

/* Regular section headers */
.manifesto-scroll-text .section-header {
  margin-bottom: 12px; /* Bottom margin to body text: 12px */
}

/* Special ending section styling */
.manifesto-scroll-text .ending-section-header {
  font-size: 1.5rem; /* 24px as specified */
  font-weight: 400; /* Regular weight as specified */
  margin-bottom: 8px; /* Reduced bottom margin for tighter grouping */
  margin-top: 40px; /* Reduced top margin for better flow */
}

.manifesto-scroll-text .welcome-header {
  margin-top: 12px; /* Reduced top margin for tighter grouping */
  margin-bottom: 6px; /* Reduced bottom margin for tighter grouping */
}

.manifesto-scroll-text .welcome-header strong {
  font-size: 2rem; /* 32px as specified */
}

.manifesto-scroll-text .radically-human {
  font-size: 1.125rem; /* 18px as specified */
  font-weight: 300; /* Light weight as specified */
  color: #CCCCCC; /* 85% white as specified */
  margin-top: 5px; /* Reduced margin for tighter grouping */
  animation: fadeIn 0.4s ease-in-out 0.4s forwards;
  opacity: 0; /* Start invisible for fade-in effect */
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.manifesto-scroll-text p.manifesto-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Common styling for all strong elements (headers) */
.manifesto-scroll-text p strong {
  display: block; /* Make headlines block elements */
  font-weight: 700; /* Bold weight (600-700) as specified */
  color: #FAFAFA;
  letter-spacing: 0.01em;
  font-size: 1.75rem; /* 28px as specified */
  line-height: 1.2; /* 1.2em as specified */
  margin-bottom: 0; /* No additional margin needed as the parent p has margin */
  background: none;
  font-family: 'Space Grotesk', Arial, sans-serif; /* Use Space Grotesk for headings as requested */
}

@media (max-width: 800px) {
  .manifesto-scroll-text p { 
    font-size: 1.08rem; 
  }
  .manifesto-scroll-text p strong { 
    font-size: 1.5rem; /* Proportionally scaled down for mobile */
  }
  .manifesto-scroll-text .ending-section-header {
    font-size: 1.3rem; /* Proportionally scaled down for mobile */
  }
  .manifesto-scroll-text .welcome-header strong {
    font-size: 1.7rem; /* Proportionally scaled down for mobile */
  }
  .manifesto-scroll-text .radically-human {
    font-size: 1rem; /* Proportionally scaled down for mobile */
  }
  .manifesto-scroll-text { 
    padding: 60px 8px 60px 8px; 
  }
}

@media (max-width: 600px) {
  .manifesto-scroll-text { 
    padding: 36px 2px 36px 2px; 
  }
  .manifesto-scroll-text p { 
    font-size: 0.98rem; 
  }
  .manifesto-scroll-text p strong { 
    font-size: 1.3rem; /* Proportionally scaled down for mobile */
  }
  .manifesto-scroll-text .ending-section-header {
    font-size: 1.2rem; /* Proportionally scaled down for mobile */
  }
  .manifesto-scroll-text .welcome-header strong {
    font-size: 1.5rem; /* Proportionally scaled down for mobile */
  }
  .manifesto-scroll-text .radically-human {
    font-size: 0.9rem; /* Proportionally scaled down for mobile */
  }
}

/* Removed unused manifesto block styles */

/* METRICS SECTION */
.metrics-section {
  width: 100%;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 60px 0;
  position: relative;
  z-index: 1;
  scroll-snap-align: start;
}

.metrics-title {
  font-family: 'Inter', 'IBM Plex Sans', Arial, sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: calc(1.5rem + 10px); /* Added 10px padding between title and metrics box */
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Light themed metrics section */
.light-metrics {
  background: transparent !important;
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 44px; /* Match vision section padding */
  box-sizing: border-box;
}

.light-metrics .metrics-list {
  background: #FAFAFA; /* Restore white background */
  border-radius: 16px; /* Match vision section border-radius */
  padding: 40px 20px;
  width: 100%;
  max-width: 100%; /* Take full width of parent */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); /* Enhanced shadow for cinematic depth */
  position: relative;
  z-index: 1;
  box-sizing: border-box; /* Ensure padding is included in width calculation */
}

/* Add responsive behavior for smaller screens */
@media (max-width: 640px) {
  .light-metrics {
    padding: 0 20px; /* Add horizontal padding on smaller screens */
  }
  .early-access-container {
    display: flex;
    justify-content: center;
    padding: 0 20px;
    box-sizing: border-box;
  }
}

.metrics-list {
  display: flex;
  flex-direction: column;
  gap: 40px; /* Tighter vertical spacing between metrics */
  align-items: center;
  justify-content: center;
  width: 100%;
}

.metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.metric-value {
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 700; /* Bold the numbers */
  color: #121212; /* Restore dark text color */
  letter-spacing: 0.01em;
  margin-bottom: 0;
  text-transform: none;
  text-align: center;
  position: relative; /* For the glow effect */
  opacity: 0; /* Start invisible for animation */
  transform: translateY(10px); /* Start slightly below for animation */
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}

/* Glow effect removed as requested */
.metric-value::before {
  display: none;
}

.metric-desc {
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 300; /* Lighter weight for description */
  color: #121212; /* Restore dark text color */
  text-align: center;
  letter-spacing: 0.01em;
  line-height: 1.4;
  margin: 0;
  text-transform: none;
  max-width: 500px; /* Constrain width for better readability */
  opacity: 0; /* Start invisible for animation */
  transform: translateY(10px); /* Start slightly below for animation */
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}

/* Animation class to be added via JavaScript */
.metric-value.animate, .metric-desc.animate {
  opacity: 1;
  transform: translateY(0);
}

/* SYSTEM IS BROKEN TIMELINE SECTION - Keeping only the card styling as required */

.system-broken-card {
  background: #111214; /* Restore original background */
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  width: 100%;
  max-width: none;
  min-width: 0;
  padding: 48px 0 56px 0;
  box-sizing: border-box;
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 1; /* Make visible by default */
  transform: none; /* No transform by default */
  transition: opacity 1.1s cubic-bezier(0.77,0,0.175,1), transform 1.1s cubic-bezier(0.77,0,0.175,1);
}
.system-broken-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.system-broken-title {
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: 2rem; /* ~32px */
  font-weight: 700;
  color: #F8F8F6;
  text-align: center;
  margin: 0 0 50px 0; /* Increased spacing below title */
  letter-spacing: 0.05em; /* ~0.5px letter spacing */
  text-transform: none;
  line-height: 1.2;
  z-index: 2;
}


/* NEW MANIFESTO SECTIONS */
section#manifesto-content, section#reality, section#vision, section#for-you {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--section-margin-top) 44px; /* Updated to match vision section padding */
  display: flex;
  flex-direction: column;
  align-items: center; /* Center the content horizontally */
  text-align: left; /* Keep text left-aligned */
  font-family: 'Inter', 'IBM Plex Sans', Arial, sans-serif;
  background: transparent;
  position: relative;
  overflow: visible;
  box-sizing: border-box;
  z-index: 1;
  scroll-snap-align: start;
}

/* Add subtle gradient separators between sections */
section#manifesto::after, 
section#reality::after, 

/* Remove separator from vision section */
section.vision-section::after {
  display: none;
}

/* Special styling for the manifesto section */
section#manifesto {
  padding-top: 40px;
}

section#manifesto h2, section#reality h2, section#vision h2, section#for-you h2, section#manifesto-content h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  width: 100%;
  text-align: left; /* Keep heading left-aligned */
  opacity: 1; /* Make visible by default */
  transform: none; /* No transform by default */
  transition: opacity 1s ease, transform 1s ease;
}

section#manifesto.section-visible h2, 
section#reality.section-visible h2, 
section#vision.section-visible h2, 
section#for-you.section-visible h2 {
  opacity: 1;
  transform: translateY(0);
}

section#manifesto h2 {
  margin-bottom: 1.5rem;
}

section#manifesto-content p {
  font-size: 1.35rem;
  font-weight: 400;
  color: #F5F5F5; /* Off-white text as specified */
  margin-bottom: 14px; /* Slightly less padding between thought groups */
  line-height: 1.3; /* Increased line height (120-130%) for easier reading flow */
  letter-spacing: 0.01em;
  opacity: 1; /* Make visible by default */
  transform: none; /* No transform by default */
  transition: opacity 1s ease, transform 1s ease;
  transition-delay: calc(var(--item-index, 0) * 0.1s);
  width: 100%;
  max-width: 600px; /* Constrain width for better readability */
}

/* Only the section title and intro line should be bold */
section#manifesto-content p strong {
  font-weight: 700;
}

section#manifesto.section-visible p {
  opacity: 1;
  transform: translateY(0);
}

section#for-you p {
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: var(--paragraph-margin-bottom);
  line-height: 1.6;
  letter-spacing: 0.01em;
  opacity: 1; /* Make visible by default */
  transform: none; /* No transform by default */
  transition: opacity 1s ease, transform 1s ease;
  transition-delay: calc(var(--item-index, 0) * 0.1s);
  width: 100%;
  max-width: 600px; /* Constrain width for better readability */
}

section#for-you.section-visible p {
  opacity: 1;
  transform: translateY(0);
}

/* Vision Section Styling */
.vision-section {
  width: 100%;
  max-width: var(--content-width);
  margin: 10px auto 0; /* Added 10px top margin */
  padding: var(--section-margin-top) 24px;
  display: flex;
  flex-direction: column;
  align-items: center; /* Center the content horizontally */
  text-align: left; /* Keep text left-aligned */
  font-family: 'Inter', 'IBM Plex Sans', Arial, sans-serif;
  background: transparent;
  position: relative;
  box-sizing: border-box;
  z-index: 1;
}

/* Animated outline for Vision section */
.vision-section {
  position: relative;
  padding-top: 30px; /* Added 10px as requested */
  padding-bottom: 40px;
  padding-left: 44px;
  padding-right: 44px;
  margin-bottom: 70px; /* Added 10px extra as requested */
}

/* The outline container that will be animated */
.vision-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  width: calc(100% - 40px);
  height: 100%;
  border-radius: 16px;
  pointer-events: none;
  border: 3px solid rgba(108, 92, 231, 0.356); /* Increased to 2px as requested */
  opacity: 0;
  box-sizing: border-box;
}

/* Animation class that will be added via JavaScript */
.vision-section.animate-outline::before {
  opacity: 1;
  animation: drawOutline 2.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes drawOutline {
  0% {
    clip-path: inset(0 100% 100% 0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  25% {
    clip-path: inset(0 0 100% 0);
  }
  50% {
    clip-path: inset(0 0 0 0);
  }
  100% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

.vision-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(108,92,231,0.3) 0%, rgba(108,92,231,0.1) 50%, rgba(108,92,231,0) 100%);
}

.vision-section h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 0; /* Remove default margin */
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: left; /* Keep heading left-aligned */
  width: 100%;
  opacity: 1; /* Make visible by default */
  transform: none; /* No transform by default */
  transition: opacity 1s ease, transform 1s ease;
}

.vision-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 600px; /* Constrain width for better readability */
  margin: 0 auto; /* Center the block horizontally */
}

.vision-block p,
.vision-block ul {
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 1rem; /* Exactly one line space between paragraphs */
  line-height: 1.4; /* Tighter line height for better visual cohesion */
  letter-spacing: 0.01em;
  text-align: left;
  width: 100%;
  opacity: 1; /* Always visible */
}

.vision-block ul {
  list-style-type: none;
  padding-left: 0;
}

.vision-block ul li {
  position: relative;
  padding-left: 1.35em; /* Reduced by another 10% from 1.5em to bring text even closer to arrow */
  margin-bottom: 0.5em;
}

.vision-block ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.25em; /* Adjusted to better center with text */
  width: 21px; /* Increased by 50% from 14px */
  height: 21px; /* Increased by 50% from 14px */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='21' height='21' viewBox='0 0 21 21'%3E%3Cpath d='M3 10.5h12M12 6l4.5 4.5-4.5 4.5' stroke='%236C5CE7' stroke-width='2.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Remove margin from the last paragraph */
.vision-block p:last-child {
  margin-bottom: 0;
}

@media (max-width: 800px) {
  .vision-section {
    padding: 30px 40px 40px 40px;
  }
  
  .vision-section h2 {
    font-size: 1.8rem;
    margin-bottom: var(--paragraph-margin-bottom);
  }
  
  .vision-section p {
    font-size: 1.2rem;
  }
}

@media (max-width: 600px) {
  .vision-section {
    padding: 30px 36px 36px 36px;
  }
  
  .vision-section h2 {
    font-size: 1.5rem;
    margin-bottom: var(--paragraph-margin-bottom);
  }
  
  .vision-section p {
    font-size: 1.1rem;
  }
}

/* Reality section with neural network background */
section#reality {
  position: relative;
  z-index: 1;
  padding-top: 80px;
  padding-bottom: 80px;
  background: transparent;
}

section#reality::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('Images/Neural Network Screenshot.png');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: -1;
  transform: translateY(var(--parallax-offset, 0));
  transition: transform 0.3s ease-out;
}

section#reality p {
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: var(--paragraph-margin-bottom);
  line-height: 1.6;
  letter-spacing: 0.01em;
  opacity: 1; /* Make visible by default */
  transform: none; /* No transform by default */
  transition: opacity 1s ease, transform 1s ease;
  transition-delay: calc(var(--item-index, 0) * 0.1s);
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 600px; /* Constrain width for better readability */
}

section#reality.section-visible p {
  opacity: 1;
  transform: translateY(0);
}

section#reality ul {
  list-style-type: disc;
  padding-left: 16px;
  margin: 20px 0;
  text-align: left;
  max-width: 600px; /* Match other content width */
  width: 100%;
  position: relative;
  z-index: 2;
  opacity: 1; /* Make visible by default */
  transform: none; /* No transform by default */
  transition: opacity 1s ease, transform 1s ease;
  transition-delay: 0.3s;
}

section#reality.section-visible ul {
  opacity: 1;
  transform: translateY(0);
}

section#reality li {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

section#manifesto strong, section#reality strong, section#vision strong, section#for-you strong {
  font-weight: 700;
  color: var(--text);
}

@media (max-width: 800px) {
  section#manifesto, section#reality, section#vision, section#for-you {
    padding: calc(var(--section-margin-top) + 20px) 40px 40px 40px;
  }
  
  section#manifesto {
    padding-top: 30px;
  }
  
  section#manifesto h2, section#reality h2, section#vision h2, section#for-you h2 {
    font-size: 1.8rem;
    margin-bottom: var(--paragraph-margin-bottom);
  }
  
  section#manifesto h2 {
    margin-bottom: 1.25rem;
  }
  
  section#manifesto p {
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
  }
  
  section#vision p, section#for-you p, section#reality p {
    font-size: 1.2rem;
  }
  
  section#reality li {
    font-size: 1.1rem;
  }
}

@media (max-width: 600px) {
  section#manifesto, section#reality, section#vision, section#for-you {
    padding: calc(var(--section-margin-top) + 16px) 36px 36px 36px;
  }
  
  section#manifesto {
    padding-top: 24px;
  }
  
  section#manifesto h2, section#reality h2, section#vision h2, section#for-you h2 {
    font-size: 1.5rem;
    margin-bottom: var(--paragraph-margin-bottom);
  }
  
  section#manifesto h2 {
    margin-bottom: 1rem;
  }
  
  section#manifesto p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
  }
  
  section#vision p, section#for-you p, section#reality p {
    font-size: 1.1rem;
  }
  
  section#reality li {
    font-size: 1rem;
  }
}


/* EARLY ACCESS SECTION */
.early-access {
  width: 100%;
  background: #000000;
  padding: 60px 0 120px 0; /* Decreased vertical spacing by 40px */
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Container for early access card - matches light-metrics container */
.early-access-container {
  background: transparent !important;
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 39px; /* Adjusted to compensate for the 5px shift */
  box-sizing: border-box;
}

.early-access-card {
  background: #181818; /* Very dark gray background */
  border-radius: 16px;
  box-shadow: 0 4px 32px 0 #6C5CE71a, 0 1.5px 0 0 #6C5CE705, inset 0 8px 24px rgba(0, 0, 0, 0.3); /* Enhanced inner shadow */
  padding: 40px 36px; /* Simplified symmetrical padding */
  width: 100%;
  max-width: 100%; /* Take full width of parent container */
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(209, 213, 216, 0.2); /* Surgical Steel at 20% opacity */
  position: relative;
  z-index: 1;
  box-sizing: border-box; /* Ensure padding is included in width calculation */
}

.early-access-title {
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 22px 0; /* Reduced by ~10% from 24px */
  letter-spacing: 0.01em;
  text-align: center;
  text-transform: none;
}

.early-access-desc {
  color: #e0e0e0;
  font-size: 1.15rem;
  font-weight: 400;
  margin: 0 0 32px 0;
  text-align: center;
  letter-spacing: 0.01em;
  line-height: 1.5;
  text-transform: none;
  font-style: italic; /* Added italic style */
}

.early-access-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
  transition: opacity 0.5s ease-out;
}

.early-access-form label {
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 4px;
  text-transform: none;
}

.early-access-form input[type="email"],
.early-access-form input[type="text"],
.early-access-form textarea {
  background: #232323;
  color: var(--text);
  border: 1.5px solid #333333;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: 'Space Grotesk', Arial, sans-serif;
  margin-bottom: 8px;
  outline: none;
  transition: border 0.2s;
  resize: none;
}

.early-access-form input[type="email"]:focus,
.early-access-form input[type="text"]:focus,
.early-access-form textarea:focus {
  border: 1.5px solid var(--accent);
}

.early-access-form .optional {
  color: #aaa;
  font-size: 0.95em;
  font-weight: 400;
  font-style: italic;
}

.early-access-btn {
  background: var(--accent);
  color: var(--text);
  border: none;
  border-radius: 32px;
  padding: 16px 35px;
  font-size: 1.1rem;
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: var(--cta-glow);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  margin-top: 12px;
  outline: none;
  /* Match hero button exactly */
  display: inline-block;
  width: auto;
  margin-left: auto;
  margin-right: auto;
  transform: scale(1.1); /* Match hero button scale */
}

.early-access-btn:hover,
.early-access-btn:focus {
  background: var(--accent);
  box-shadow: 0 0 40px 10px #6C5CE799; /* Match hero CTA glow */
  transform: translateY(-2px) scale(1.03); /* Match original hover scale */
}

.early-access-success {
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 12px;
  min-height: 24px;
  text-align: center;
  letter-spacing: 0.04em;
  transition: opacity 0.4s;
}

/* Consent checkbox styling */
.early-access-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1rem;
  margin-top: 0.5rem;
}

.early-access-consent input[type="checkbox"] {
  margin-top: 0.25rem;
}

.early-access-consent label {
  font-family: 'Inter', 'IBM Plex Sans', Arial, sans-serif;
  font-size: 0.9rem;
  line-height: 1.4;
  font-weight: 400;
  margin-bottom: 0;
}

/* Privacy notice styling */
.early-access-privacy {
  font-family: 'Inter', 'IBM Plex Sans', Arial, sans-serif;
  font-size: 0.8rem;
  color: #8A9299;
  margin-top: 0.5625rem; /* Reduced by another 25% from 0.75rem */
  line-height: 1.4;
  text-align: left;
}

.early-access-privacy a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.early-access-privacy a:hover {
  text-decoration: underline;
}

/* BLOG SECTION */
.blog-section {
  width: 100%;
  padding: 140px 0 100px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  z-index: 1;
}

.blog-title {
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: 1.5rem;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 48px;
  font-weight: 700;
  text-align: center;
}

.blog-cards {
  display: flex;
  flex-direction: row;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 900px;
}

.blog-card {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 2px 24px 0 #000a;
  padding: 32px 28px 32px 28px;
  min-width: 240px;
  max-width: 300px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
  border-left: 4px solid var(--accent);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.blog-card h3 {
  font-size: 1.1rem;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 12px 0;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.blog-card p {
  color: #bdbdbd;
  font-size: 1rem;
  margin: 0 0 18px 0;
  font-weight: 400;
}

.read-more {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1rem;
  margin-top: auto;
  transition: color 0.2s;
}

.read-more:hover,
.read-more:focus {
  color: #a29bfe;
  text-decoration: underline;
}

/* Transitional visual section between hero and manifesto */
.transition-visual {
  width: 100%;
  height: 180px; /* Adjust height as needed */
  position: relative;
  overflow: hidden;
  margin-top: -20px; /* Overlap slightly with hero section */
  margin-bottom: -20px; /* Overlap slightly with manifesto section */
  z-index: 1;
  transition: opacity 0.3s ease-out, visibility 0.3s ease-out; /* Smooth transition for opacity and visibility */
}

.video-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  background: none;
  z-index: 2;
}


.transition-visual video {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%; /* Shift focus to show more of the bottom portion */
  z-index: 2;
}

.video-top-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 25%;
  background: linear-gradient(to bottom, rgba(10,10,10,0.7) 0%, rgba(10,10,10,0.3) 50%, rgba(10,10,10,0) 100%);
  pointer-events: none;
  z-index: 3;
}

@media (max-width: 768px) {
  .video-top-mask {
    height: 30%;
  }
}

.noise-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48ZmlsdGVyIGlkPSJhIiB4PSIwIiB5PSIwIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iLjc1IiBzdGl0Y2hUaWxlcz0ic3RpdGNoIi8+PGZlQ29sb3JNYXRyaXggdHlwZT0ic2F0dXJhdGUiIHZhbHVlcz0iMCIvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbHRlcj0idXJsKCNhKSIvPjwvc3ZnPg==');
  opacity: 0.025; /* 2.5% opacity for subtle effect */
  z-index: 1;
  pointer-events: none;
}

/* Parallax effect for transition visual */
.parallax-container {
  position: relative;
  overflow: hidden;
  will-change: transform;
}

/* FOOTER */
.footer {
  width: 100%;
  background: transparent;
  color: #bdbdbd;
  font-size: 1rem;
  padding: 32px 0 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: auto;
  border-top: none; /* Remove default border */
  position: relative; /* For the glowing line */
  z-index: 1;
  overflow: hidden; /* Ensure glow doesn't spill outside */
}

/* Cinematic footer background glow */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse at center bottom,
    rgba(108, 92, 231, 0.25) 0%,
    rgba(108, 92, 231, 0.15) 20%,
    rgba(108, 92, 231, 0.05) 60%,
    rgba(108, 92, 231, 0) 100%
  );
  background-size: 120% 80%;
  background-repeat: no-repeat;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.8;
  z-index: 0;
}

/* Footer line with cinematic glow */
.footer-line {
  position: relative;
  width: 100%;
  height: 2px;
  margin-bottom: -1px; /* Connect with footer */
}

.footer-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: linear-gradient(
    to right, 
    rgba(108, 92, 231, 0) 0%, 
    rgba(108, 92, 231, 0.7) 50%, 
    rgba(108, 92, 231, 0) 100%
  );
  filter: blur(2px);
  opacity: 0.8;
  animation: footerGlowBreath 30s ease-in-out infinite;
  pointer-events: none;
}

/* Social Links */
.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.25rem;
  opacity: 0; /* Start invisible for fade-in effect */
  animation: fadeIn 0.6s ease-out forwards;
  animation-play-state: paused; /* Will be triggered by JS */
}

.social-icon {
  color: #8A9299;
  stroke: #8A9299;
  fill: none;
  transition: all 0.2s ease;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
}

.social-links a:hover .social-icon {
  color: var(--accent);
  stroke: var(--accent);
  transform: translateY(-3px);
}

.footer-links {
  display: flex;
  gap: 18px;
  margin-bottom: 8px;
  font-size: 1rem;
  justify-content: center;
}

.footer-links a {
  color: #bdbdbd;
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--accent);
  text-decoration: underline;
}

.footer-links .build-with-link {
  font-size: 0.95rem;
  color: #8A9299;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  opacity: 0.9;
}

.footer-links .build-with-link:hover,
.footer-links .build-with-link:focus {
  opacity: 1;
  text-decoration: underline;
}

.footer-divider {
  color: #23232a;
}

.footer-copy {
  color: #bdbdbd;
  font-size: 0.95rem;
  margin-top: 2px;
}

/* Vision Tagline */
.vision-tagline {
  margin-top: 24px;
  text-align: center;
}

.vision-tagline p {
  font-size: 90%;
  font-style: italic;
  opacity: 0.8;
  color: var(--text);
  transition: opacity 0.8s ease-in-out;
}

/* Styling for "Who We're Building This For" section */
section#for-you .emphasis {
  font-size: 1.4rem;
  font-weight: 500;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

section#for-you .foundation {
  font-size: 1.7rem; /* 25% larger than the regular text (1.35rem) */
  font-weight: 700;
  display: inline-block;
}

section#for-you {
  position: relative;
  overflow: visible;
}

/* Removed the glow after section#for-you as requested */

section#for-you .future {
  font-size: 1.37rem; /* +2px compared to standard body text (1.35rem) */
  font-weight: 500;
  margin-top: 2rem;
  margin-bottom: 1.6875rem; /* Reduced by another 25% from 2.25rem */
  font-style: italic;
  color: var(--text); /* Bone White (#FAFAFA) */
  text-align: left;
  position: relative;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1100px) {
  .blog-cards {
    max-width: 98vw;
    gap: 32px;
  }
}

/* Updated responsive styles for hero section - 2025-04-26 */
@media (max-width: 800px) {
  .hero-headline { 
    font-size: 3rem; /* ~48px for medium screens */
    line-height: 1.2; /* Slightly looser line height for better readability */
    max-width: 90%; /* Maintain proportional width constraint */
  }
  .hero-headline .line1,
  .hero-headline .line2 {
    white-space: nowrap; /* Keep each line as a single line */
  }
  .hero-subheadline {
    max-width: 90%; /* Maintain proportional width constraint */
  }
  .blog-cards { flex-direction: column; gap: 24px; }
}

/* Mobile responsive styles for the navigation */
@media (max-width: 768px) {
  .unblocked-link,
  .partner-link,
  .philosophy-link {
    font-size: 1.1rem; /* Slightly smaller on mobile */
    padding-right: 4px; /* Reduced right padding */
  }
}

@media (max-width: 500px) {
  .hero-headline { 
    font-size: 2.25rem; /* ~36px for small screens as requested */
    line-height: 1.1;
    letter-spacing: 0.01em; /* Minimal letter spacing for better fit on mobile */
    max-width: 95%;
    margin-bottom: 28px; /* Slightly reduced spacing on mobile */
  }
  .hero-headline .line1,
  .hero-headline .line2 {
    display: block; /* Keep as two distinct lines on mobile */
    white-space: nowrap; /* Prevent wrapping within each line */
    font-size: 0.9em; /* Slightly smaller to ensure no wrapping */
  }
  .hero-subheadline {
    font-size: 1.2rem; /* Slightly smaller on mobile but still readable */
    margin-bottom: 32px;
    max-width: 95%;
  }
  .nav-content { padding: 0 12px; }
  .unblocked-link,
  .partner-link,
  .philosophy-link {
    font-size: 1rem; /* Even smaller on very small screens */
  }
  .hero-content { padding: 80px 8px 48px 8px; }
  .blog-section, .early-access { padding: 80px 0 60px 0; }
  .early-access::before { width: 500px; height: 500px; } /* Scale down glow on mobile */
  .apps-vs-system { padding: 60px 8px; }
  .apps-vs-system-card { padding: 1.5rem 0.5rem; }
  .footer { padding: 18px 0 12px 0; }
}

/* Scroll Fade-in Animation */
.scroll-fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.scroll-fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hide scrollbars for cinematic effect */
body, .manifesto, .manifesto-slide {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
body::-webkit-scrollbar, .manifesto::-webkit-scrollbar, .manifesto-slide::-webkit-scrollbar {
  display: none;
}

/* Footer glow breathing animation */
@keyframes footerGlowBreath {
  0% { opacity: 0.8; }
  50% { opacity: 1.0; }
  100% { opacity: 0.8; }
}

/* CTA MOUNTAIN SECTION */
.cta-mountain-section {
  position: relative;
  width: 100%;
  min-height: 680px;
  height: 80vh;
  max-height: 900px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  content-visibility: auto;
  padding-bottom: 100px; /* Add consistent bottom padding for desktop */
}

/* Gradient bar at bottom of CTA mountain section */
.cta-mountain-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(
    to right,
    #00B0F0 0%,
    #215F9A 25%,
    #92AEC9 50%,
    #F2F2F2 60%,
    #AC9FD8 68%,
    #4928B2 85%,
    #6C5CE7 100%
  );
  z-index: 15;
  pointer-events: none;
}

/* Mountain background image */
.mountain-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.mountain-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  display: block;
}

/* Gradient overlay for brand consistency */
.mountain-overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    #0B0C12 0%,
    rgba(11,12,18,0.0) 30%,
    rgba(11,12,18,0.35) 65%,
    rgba(11,12,18,0.55) 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* Vignette overlay */
.mountain-overlay-vignette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse at center,
    rgba(0,0,0,0) 30%,
    rgba(0,0,0,0.22) 70%,
    rgba(0,0,0,0.28) 100%
  );
  z-index: 3;
  pointer-events: none;
}

/* Constellation canvas for subtle star effects */
.constellation-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
  opacity: 0.1;
}

/* CTA Card - glassmorphism design */
.cta-card {
  position: absolute;
  z-index: 10;
  max-width: 600px;
  width: calc(100% - 48px);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 32px;
  background: rgba(9,10,16,0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* CTA Card Typography */
.cta-headline {
  font-family: 'Inter', 'IBM Plex Sans', Arial, sans-serif;
  font-size: 1.875rem; /* 30px */
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 16px 0;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.cta-subline {
  font-family: 'Inter', 'IBM Plex Sans', Arial, sans-serif;
  font-size: 1.125rem; /* 18px */
  font-weight: 400;
  color: rgba(255,255,255,0.78);
  margin: 0 0 16px 0;
  line-height: 1.55;
  letter-spacing: 0.01em;
}

.cta-launch-note {
  font-family: 'Inter', 'IBM Plex Sans', Arial, sans-serif;
  font-size: 1rem; /* 16px */
  font-weight: 400;
  color: rgba(255,255,255,0.65);
  margin: 0 0 32px 0;
  line-height: 1.4;
  letter-spacing: 0.01em;
  font-style: italic;
}

/* CTA Form Styling */
.cta-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.cta-form-row {
  display: flex;
  gap: 16px;
  width: 100%;
}

.cta-form-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
}

.cta-form-group.full-width {
  width: 100%;
}

.cta-label {
  font-family: 'Inter', 'IBM Plex Sans', Arial, sans-serif;
  font-size: 0.8125rem; /* 13px */
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.cta-form input[type="text"],
.cta-form input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: #FFFFFF;
  font-family: 'Inter', 'IBM Plex Sans', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  outline: none;
  transition: border-color 0.3s ease, background-color 0.3s ease;
  box-sizing: border-box;
}

.cta-form input[type="text"]:focus,
.cta-form input[type="email"]:focus {
  border-color: #B8AEFF;
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 0 2px rgba(184,174,255,0.3);
}

.cta-form input::placeholder {
  color: rgba(255,255,255,0.45);
}

.cta-form textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: #FFFFFF;
  font-family: 'Inter', 'IBM Plex Sans', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  outline: none;
  transition: border-color 0.3s ease, background-color 0.3s ease;
  box-sizing: border-box;
  resize: none;
}

.cta-form textarea:focus {
  border-color: #B8AEFF;
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 0 2px rgba(184,174,255,0.3);
}

.cta-form textarea::placeholder {
  color: rgba(255,255,255,0.45);
}

.cta-label .optional {
  color: rgba(255,255,255,0.45);
  font-size: 0.95em;
  font-weight: 400;
  font-style: italic;
  text-transform: none;
}

/* CTA Consent checkbox styling */
.cta-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  margin-top: 12px;
  margin-bottom: 0.5rem;
}

.cta-consent input[type="checkbox"] {
  margin-top: 2px; /* aligns with text baseline */
}

.cta-consent label {
  display: block;
  text-align: left !important;
  line-height: 1.4;
  max-width: 560px; /* match form field width */
  font-family: 'Inter', 'IBM Plex Sans', Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  margin-bottom: 0;
  color: rgba(255,255,255,0.78);
  text-transform: none;
}

.cta-consent label .no-indent {
  display: block;       /* force a clean new line */
  margin-left: 0;       /* ensure flush-left alignment */
  text-indent: 0;       /* prevent any text indentation */
}

.cta-consent .consent-line1,
.cta-consent .consent-line2 {
  display: block;
}

/* CTA Privacy notice styling */
.cta-privacy {
  font-family: 'Inter', 'IBM Plex Sans', Arial, sans-serif;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin-top: 0.375rem;
  line-height: 1.4;
  text-align: left;
}

.cta-privacy a {
  color: #6C5CE7;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cta-privacy a:hover {
  text-decoration: underline;
}

/* Primary CTA Button */
.cta-primary-btn {
  background: #6C5CE7;
  color: #FFFFFF;
  border: none;
  border-radius: 24px;
  padding: 10px 20px;
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 6px 18px rgba(108,92,231,0.3);
  margin-top: 4px;
  align-self: center;
  min-width: 140px;
}

.cta-primary-btn:hover,
.cta-primary-btn:focus {
  background: #7B6EF6;
  box-shadow: 0 12px 32px rgba(108,92,231,0.45);
  transform: translateY(-2px);
}

.cta-primary-btn:focus {
  box-shadow: 0 12px 32px rgba(108,92,231,0.45), 0 0 0 2px #B8AEFF;
}

/* Success message */
.cta-success {
  color: #6C5CE7;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 8px;
  min-height: 24px;
  text-align: center;
  letter-spacing: 0.02em;
  transition: opacity 0.4s ease;
}

/* Responsive Design for CTA Mountain Section */
@media (max-width: 1279px) and (min-width: 768px) {
  .cta-mountain-section {
    height: 76vh;
    min-height: 560px;
    max-height: 800px;
    padding-bottom: 80px; /* Add bottom padding for better spacing */
  }
  
  .mountain-background img {
    object-position: 50% 40%;
  }
  
  .cta-card {
    max-width: 520px;
    padding: 28px;
    transform: translate(-50%, -50%);
  }
  
  .cta-headline {
    font-size: 1.75rem; /* 28px */
  }
  
  .cta-subline {
    font-size: 1.0625rem; /* 17px */
  }
}

@media (max-width: 767px) {
  .cta-mountain-section {
    height: auto; /* Allow section to grow with content */
    min-height: 100vh; /* Ensure full viewport coverage */
    max-height: none; /* Remove height restriction */
    padding: 0 20px 60px 20px !important; /* Force horizontal and bottom padding */
    box-sizing: border-box;
  }
  
  .mountain-background img {
    object-position: 50% 36%;
  }
  
  .cta-card {
    max-width: calc(100vw - 40px) !important; /* Wider mobile CTA card */
    width: calc(100vw - 40px) !important; /* Wider mobile CTA card */
    padding: 24px;
    transform: translate(-50%, -50%);
    left: 50% !important;
    right: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  .cta-headline {
    font-size: 1.625rem; /* 26px */
    margin-bottom: 12px;
  }
  
  .cta-subline {
    font-size: 1rem; /* 16px */
    margin-bottom: 28px;
  }
  
  .cta-form {
    gap: 14px;
  }
  
  .cta-form input[type="text"],
  .cta-form input[type="email"] {
    padding: 12px 14px;
    font-size: 0.9375rem; /* 15px */
  }
  
  .cta-primary-btn {
    padding: 12px 24px;
    font-size: 1rem;
    min-width: 180px;
  }

  /* Mobile consent text styling removed - handled in responsive.css */
}

/* Ultra-small phones (iPhone SE and similar) */
@media (max-width: 375px) {
  .cta-mountain-section {
    height: auto !important;
    min-height: 100vh !important;
    max-height: none !important;
    padding: 0 16px 40px 16px !important; /* Reduced padding for very small screens */
    box-sizing: border-box;
  }
  
  .cta-card {
    max-width: calc(100vw - 32px) !important; /* Wider for ultra-small screens */
    width: calc(100vw - 32px) !important;
    padding: 20px !important; /* Reduced internal padding */
    position: static !important; /* Remove absolute positioning */
    transform: none !important; /* Remove transform */
    left: auto !important;
    top: auto !important;
    margin: 20px auto !important; /* Center with margin */
    display: flex;
    flex-direction: column;
  }
  
  .cta-headline {
    font-size: 1.5rem; /* 24px - smaller for ultra-small screens */
    margin-bottom: 10px;
  }
  
  .cta-subline {
    font-size: 0.9375rem; /* 15px - smaller for ultra-small screens */
    margin-bottom: 24px;
  }
  
  .cta-form {
    gap: 14px; /* Tighter spacing */
  }
  
  .cta-form input[type="text"],
  .cta-form input[type="email"],
  .cta-form textarea {
    padding: 10px 12px; /* Reduced padding */
    font-size: 0.875rem; /* 14px */
  }
  
  .cta-primary-btn {
    padding: 10px 18px;
    font-size: 0.9375rem; /* 15px */
    min-width: 160px;
  }
  
  .cta-consent label,
  .cta-privacy {
    font-size: 0.8125rem; /* 13px - smaller text for ultra-small screens */
  }
}

/* Ultra-wide screens */
@media (min-width: 1920px) {
  .mountain-background img {
    object-position: 50% 44%;
  }
}

/* Performance optimizations */
.cta-mountain-section * {
  will-change: auto;
}

.cta-mountain-section:hover .cta-card {
  will-change: transform;
}

/* Optional subtle parallax effect */
@media (prefers-reduced-motion: no-preference) {
  .mountain-background img {
    transition: transform 0.3s ease-out;
  }
}

/* Ensure proper stacking context */
.cta-mountain-section {
  isolation: isolate;
}

/* Additional CTA Form States */
.cta-form-group.focused .cta-label {
  color: #B8AEFF;
}

.cta-success.error {
  color: #FF6B6B;
}

.cta-success.success {
  color: #4ECDC4;
}

.cta-primary-btn:disabled {
  background: #4A4A4A;
  color: rgba(255,255,255,0.5);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.cta-primary-btn:disabled:hover {
  background: #4A4A4A;
  box-shadow: none;
  transform: none;
}

/* Screen reader only class */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Utility for toggling visibility without inline styles */
.is-hidden {
  display: none !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .cta-card {
    border: 2px solid rgba(255,255,255,0.3);
  }
  
  .cta-form input[type="text"],
  .cta-form input[type="email"] {
    border: 2px solid rgba(255,255,255,0.5);
  }
  
  .cta-primary-btn {
    border: 2px solid #FFFFFF;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .constellation-canvas {
    display: none;
  }
  
  .cta-primary-btn {
    transition: none;
  }
  
  .cta-form input[type="text"],
  .cta-form input[type="email"] {
    transition: none;
  }
}

/* Hero inline transition video band pinned to bottom */
.hero .transition-visual.hero-inline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: clamp(120px, 22vh, 220px);
  z-index: 2; /* under hero content, over bg */
  pointer-events: none;
}
.hero .transition-visual.hero-inline .video-wrapper,
.hero .transition-visual.hero-inline video {
  height: 100%;
}

/* Section snap staging for clean Hero → Philosophy flow */
.scroll-fade-in-section {
  scroll-snap-align: start;
}

/* Ensure Philosophy fits visible viewport (account for fixed navbar) */
#our-philosophy.identity-tiles-section {
  min-height: auto; /* Remove forced viewport height to avoid extra white space; keep content-driven height */
}

/* Print styles */
@media print {
  .cta-mountain-section {
    display: none;
  }
}
