/*
 * ===================================================================
 * ALEPH SPACE - GLOBAL STYLESHEET (FINAL & CORRECTED)
 * ===================================================================
 *
 * This is the complete and final stylesheet for the pre-launch website.
 * It includes all styles from Modules 1-4 and incorporates the critical
 * fixes for the core page layout and form styling.
 *
*/


/* ---------------------------------- */
/*      1. MODERN CSS RESET           */
/* ---------------------------------- */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; min-height: 100vh; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }


/* ---------------------------------- */
/*      2. CSS CUSTOM PROPERTIES      */ 
/* ---------------------------------- */

:root {
  --color-background-alpha: #0b0e13;
  --color-foreground-omega: #ECEFF4;
  --color-cta-primary-vision: #FF7847;
  --color-cta-secondary-system: #5ED3F3;
  --color-progress: #2DD4BF;
  --color-border: rgba(94, 211, 243, 0.2);
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Cormorant Garamond', serif;
  --font-accent: 'Cinzel', serif;
  --font-size-xl: clamp(2.25rem, 5vw + 1rem, 4.5rem);
  --font-size-lg: clamp(1.75rem, 3vw + 1rem, 3rem);
  --font-size-md: 1.5rem;
  --font-size-base: 1.125rem;
  --font-size-sm: 0.9rem;
  --border-radius: 8px;
  --box-shadow-subtle: 0 4px 30px rgba(236, 239, 244, 0.05);
  --transition-fast: 0.3s ease-in-out;
}


/* ---------------------------------- */
/*      3. GLOBAL BASE STYLES         */
/* ---------------------------------- */

body {
  background-color: var(--color-background-alpha);
  color: var(--color-foreground-omega);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: 1.7;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }
h1 { font-size: var(--font-size-xl); }
h2 { font-size: var(--font-size-lg); }
h3 { font-size: var(--font-size-md); }

/* --- ACCENT FONT DEPLOYMENT --- */
#hero h1,
article h1 {
  font-family: var(--font-accent);
}

p { margin-bottom: 1.5rem; max-width: 65ch; }
a { color: var(--color-cta-secondary-system); font-weight: 700; text-decoration: none; transition: color var(--transition-fast); }
a:hover, a:focus { color: var(--color-foreground-omega); text-decoration:none; outline-offset: 4px; }


/* ---------------------------------- */
/*      4. LAYOUT & HELPERS           */
/* ---------------------------------- */

.container {
  width: 90%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.diagram-container {
  display: flex;
  flex-direction: column; /* Stack the h4 and the diagram vertically */
  justify-self: center;
  width:70%;
  text-align: center;    /* Ensures text inside items is also centered */
}
.sub-headline {
  font-size: var(--font-size-md);
  max-width: 50ch;
  margin-top: 1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}
.next-step-link {
  margin-top: 2rem;
  text-align: left;
  max-width: 100%;
}
.feature-section {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}


/* ---------------------------------- */
/*   5. HEADER & NAVIGATION STYLING   */
/* ---------------------------------- */

header {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-link img {
  width: 40px;
  height: auto;
}
nav.main-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}
nav.main-nav a {
  font-family: var(--font-heading);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
}


/* ---------------------------------- */
/*      6. HERO SECTION STYLING       */
/* ---------------------------------- */

#hero {
  position: relative;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

#hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#hero h1 { margin-bottom: 1rem; }


/* ---------------------------------- */
/*    7. CTA & BUTTON STYLING       */
/* ---------------------------------- */

.cta-primary, .cta-secondary, .cta-omega-path, .cta-alpha-path {
  position: relative;
  overflow: hidden;
  padding: 1rem 2.5rem;
  border-radius: var(--border-radius);
  font-family: var(--font-heading);
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition-fast),
    background 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: none; /* Remove sharp borders */
}

/* Gradient border effect for subtle glow */
.cta-primary::before,
.cta-secondary::before,
.cta-omega-path::before,
.cta-alpha-path::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  background: linear-gradient(45deg, transparent, var(--color-border), transparent);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  border-radius: inherit;
}

/* Primary CTA (Omega/Visionary Appeal) */
.cta-primary, .cta-omega-path {
  background: linear-gradient(135deg, var(--color-cta-primary-vision), rgba(255, 120, 71, 0.85));
  color: var(--color-background-alpha);
  box-shadow: 0 4px 16px rgba(255, 120, 71, 0.08); /* Default subtle shadow */
}

/* Secondary CTA (Alpha/Strategist Appeal) */
.cta-secondary, .cta-alpha-path {
  background: rgba(94, 211, 243, 0.1); /* Semi-transparent base */
  backdrop-filter: blur(10px); /* Frosted glass effect */
  color: var(--color-cta-secondary-system);
  box-shadow: 0 4px 16px rgba(94, 211, 243, 0.05); /* Subtle default shadow */
}

/* Hover states for fluid depth and lift */
.cta-primary:hover, .cta-omega-path:hover,
.cta-secondary:hover, .cta-alpha-path:hover {
  transform: translateY(-2px); /* Reduced from -3px for subtler lift */
  box-shadow: 
    0 8px 32px rgba(255, 120, 71, 0.15), /* Soft orange haze for primary */
    0 4px 16px rgba(94, 211, 243, 0.1); /* Cyan underlay for secondary */
}

/* Focus states for accessibility */
.cta-primary:focus, .cta-secondary:focus,
.cta-omega-path:focus, .cta-alpha-path:focus {
  outline: 2px solid var(--color-progress);
  outline-offset: 2px;
}


/* ---------------------------------- */
/*  8. MAIN CONTENT SECTION STYLING   */
/* ---------------------------------- */

main section {
  padding: 6rem 0;
}
main section:not(#hero) {
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}


/* ---------------------------------- */
/*    9. ARTICLE & CONTENT PAGES      */
/* ---------------------------------- */

article { padding: 4rem 0; }
article h1, article .sub-headline { text-align: center; }
article h2 { margin-bottom: 1rem; }


/* ---------------------------------- */
/*       10. FOOTER STYLING           */
/* ---------------------------------- */

footer {
  padding: 3rem 0;
  text-align: center;
  font-size: var(--font-size-sm);
  color: rgba(236, 239, 244, 0.7);
}
footer p { margin-bottom: 0.5rem; max-width: none; }


/* ---------------------------------- */
/* 11. GRID & CARD COMPONENT STYLES   */
/* ---------------------------------- */

.problem-grid, .solution-grid, .founder-grid {
  display: grid;
  gap: 2rem;
  text-align: left;
  margin-top: 3rem;
}
.problem-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.solution-grid {
  grid-template-columns: 1fr;
}
.founder-grid {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .solution-grid, .founder-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.deficit-card, .solution-block, .founder-profile {
  padding: 2rem;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  background-color: rgba(0,0,0,0.1);
}
.deficit-card h3, .solution-block h3 {
  margin-bottom: 1rem;
  color: var(--color-cta-secondary-system);
}
.solution-block--omega {
  border-color: var(--color-cta-primary-vision);
}
.solution-block--omega h3 {
  color: var(--color-cta-primary-vision);
}
.solution-block--alpha p {
  font-family: var(--font-heading);
  font-weight: 400;
  opacity: 0.9;
}
.founder-profile h2 {
    margin-bottom: 1rem;
}
#nicolas p {
    font-family: var(--font-heading);
    font-weight: 400;
}
#javier p {
    font-family: var(--font-body);
}


/* ---------------------------------- */
/* 12. DUAL-RESONANCE PATH STYLING    */
/* ---------------------------------- */

.alpha-path p {
  font-family: var(--font-heading);
  font-weight: 400;
  opacity: 0.9;
}
.cta-omega-path, .cta-alpha-path {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-family: var(--font-heading);
  text-decoration: none;
  transition: transform var(--transition-fast);
}
.cta-omega-path:hover, .cta-alpha-path:hover {
  transform: translateY(-2px);
  text-decoration: none;
}
.cta-omega-path {
  background-color: var(--color-cta-primary-vision);
  color: var(--color-background-alpha);
  border: 2px solid var(--color-cta-primary-vision);
}
.cta-alpha-path {
  background-color: transparent;
  color: var(--color-cta-secondary-system);
  border: 2px solid var(--color-cta-secondary-system);
}


/* ---------------------------------- */
/* 13. DIAGRAM & VISUALIZER STYLES    */
/* ---------------------------------- */

.diagram-container {
  margin-top: 2rem;
  padding: 2rem;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
}
.diagram-container h3 {
  margin-bottom: 1rem;
  font-size: var(--font-size-md);
}
.mermaid {
  text-align: center;
}

.mermaid svg .pie-slice,
.mermaid svg .node.clickable {
    transition: transform 0.2s ease-out, filter 0.2s ease-out;
    cursor: pointer;
}

.translator-visualizer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.text-block {
  flex: 1;
  min-width: 280px;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  text-align: left;
}
.text-block h4 {
  margin-bottom: 0.5rem;
}
.text-block p {
  margin-bottom: 0;
  font-size: var(--font-size-sm);
  opacity: 0.9;
}
.text-before {
  border: 2px solid var(--color-cta-secondary-system);
}
.text-after {
  border: 2px solid var(--color-cta-primary-vision);
}
.translation-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 2rem;
  color: var(--color-foreground-omega);
}


/* ---------------------------------- */
/*    14. TESTIMONIAL STYLING         */
/* ---------------------------------- */
.testimonial-quote {
    border-left: 4px solid var(--color-progress);
    padding-left: 2rem;
    margin: 3rem auto;
    text-align: left;
    max-width: 60ch;
}
.testimonial-quote p {
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.testimonial-quote footer {
    font-family: var(--font-heading);
    font-weight: 700;
    font-style: normal;
    font-size: var(--font-size-sm);
    color: var(--color-foreground-omega);
    opacity: 0.8;
}


/* ---------------------------------- */
/*   15. RESPONSIVE & MOBILE NAV      */
/* ---------------------------------- */

.mobile-nav-toggle { display: none; }

.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}


@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    inset: 0 0 0 30%;
    flex-direction: column;
    padding: min(20vh, 10rem) 2rem;
    background: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(10px);
    transform: translateX(100%);
    transition: transform 350ms ease-out;
    z-index: 1000;
  }
  .main-nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    height: 100%;
  }
  .main-nav.nav-active { transform: translateX(0); }
  .main-nav a { font-size: var(--font-size-md); }
  .mobile-nav-toggle {
    display: block;
    position: relative;
    z-index: 9999;
    border: none;
    background: transparent;
    width: 40px;
    height: 40px;
    cursor: pointer;
  }
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }
  .hamburger-box { display: inline-block; position: relative; width: 30px; height: 24px; }
  .hamburger-inner, .hamburger-inner::before, .hamburger-inner::after { content: ''; display: block; position: absolute; width: 30px; height: 3px; background-color: var(--color-foreground-omega); border-radius: 4px; transition: transform 0.2s ease-in-out, background-color 0.2s; }
  .hamburger-inner { top: 50%; transform: translateY(-50%); }
  .hamburger-inner::before { top: -10px; }
  .hamburger-inner::after { bottom: -10px; }
  .mobile-nav-toggle[aria-expanded="true"] .hamburger-inner { background-color: transparent; }
  .mobile-nav-toggle[aria-expanded="true"] .hamburger-inner::before { transform: rotate(45deg) translate(7px, -7px) scaleX(1.2); }
  .mobile-nav-toggle[aria-expanded="true"] .hamburger-inner::after { transform: rotate(-45deg) translate(7px, 7px) scaleX(1.2); }
  .no-scroll { overflow: hidden; }
  .dual-cta-block { flex-direction: column; align-items: center; width: 100%; }
  .cta-primary, .cta-secondary { width: 100%; max-width: fit-content; text-align: center; }
}

@media (max-width: 480px) {
  #hero { padding: 4rem 0; min-height: auto; }
  main section { padding: 4rem 0; }
  .sub-headline { font-size: 1.25rem; }
}

/* ---------------------------------- */
/* 16. CORE PAGE LAYOUT (STICKY FOOTER) */
/* ---------------------------------- */
body {
  display: flex;
  flex-direction: column;
}
main {
  flex-grow: 1;
}

/* ---------------------------------- */
/* 17. FORM COMPONENT STYLING         */
/* ---------------------------------- */
#invite-form-section .container,
#confirmation .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
#beta-invite-form {
    width: 100%;
    max-width: 500px;
    margin-top: 2rem;
    text-align: left;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-size: var(--font-size-sm);
    font-weight: 700;
}
.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--color-background-alpha);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    color: var(--color-foreground-omega);
    font-family: var(--font-body);
}
.form-group input:focus,
.form-group select:focus {
    outline: 2px solid var(--color-cta-secondary-system);
    outline-offset: 2px;
    border-color: var(--color-cta-secondary-system);
}
#beta-invite-form button {
    width: 100%;
    border: none;
}
.form-status-message {
    margin-top: 1rem;
    color: var(--color-cta-primary-vision);
    text-align: center;
}

/* ---------------------------------- */
/* 18. CONTEXT-AWARE STYLING (MODULE 1) */
/* ---------------------------------- */
/* Subtly reinforces the emotional tone of each narrative path. */
.omega-realm .feature-section {
    border-top-color: var(--color-cta-primary-vision);
}
.alpha-path .feature-section {
    border-top-color: var(--color-cta-secondary-system);
}
.omega-realm article a:not(.cta-alpha-path):not(.cta-secondary):not(.cta-omega-path) {
    color: var(--color-cta-primary-vision);
}

/* ----------------------------------------- */
/* 19. PATH-AWARE CONTENT SPOTLIGHT (MODULE 3) */
/* ----------------------------------------- */
.path-detail {
    transition: opacity 0.5s ease-in-out, max-height 0.5s ease-in-out;
    opacity: 0.6;
    max-height: 0px;
    overflow: hidden;
}
.founder-profile.path-spotlight .path-detail {
    opacity: 1;
    max-height: 500px; /* Large value to allow for full content expansion */
}

/* ---------------------------------- */
/* 20. PATH BUTTON REFINEMENTS (New)  */
/* ---------------------------------- */
/* Minimalist elevation for narrative path links: idle as subtle links, hover as sophisticated buttons */

.cta-omega-path, .cta-alpha-path {
  display: inline-block; /* Inline for text flow */
  padding: 0.5rem 0; /* Reduced from 0.75rem for minimalism */
  margin-top: 1rem; /* Maintain spacing */
  border-radius: 0; /* Flat for link feel */
  font-family: var(--font-heading);
  font-weight: 400; /* Lighter for sophistication */
  font-size: var(--font-size-sm); /* Smaller for subtlety */
  text-decoration: none; /* Initial underline like elegant link */
  text-underline-offset: 0.2rem;
  text-decoration-thickness: 1px;
  text-decoration-color: currentColor;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Fluid easing */
  border: none;
  background: transparent; /* Start transparent for minimalism */
  box-shadow: none; /* No default shadow */
  line-height: 1.4; /* Tighter for long text */
  position: relative;
  overflow: visible; /* Allow arrow emergence */
}

/* Omega Path (Warm, Visionary - Existing #FF7847 color) */
.cta-omega-path {
  color: var(--color-cta-primary-vision);
  text-decoration-color: rgba(255, 120, 71, 0.6); /* Subtle underline */
}

.cta-omega-path:hover {
  color: var(--color-background-alpha); /* Invert for elevation */
  background: linear-gradient(135deg, var(--color-cta-primary-vision), rgba(255, 120, 71, 0.9)); /* Warm gradient reveal */
  text-decoration: none; /* Remove underline on hover */
  padding: 0.75rem 1rem; /* Slight padding increase for button feel */
  border-radius: var(--border-radius); /* Round on elevation */
  box-shadow: 0 4px 20px rgba(255, 120, 71, 0.12); /* Soft warm glow */
  transform: translateY(-1px); /* Gentle lift */
}

/* Alpha Path (Cool, Strategist - Existing #5ED3F3 color) */
.cta-alpha-path {
  padding: 1rem;
  color: var(--color-cta-secondary-system);
  text-decoration-color: rgba(94, 211, 243, 0.5); /* Faint cyan underline */
}

.cta-alpha-path:hover {
  color: var(--color-background-alpha); /* Invert for precision */
  background: rgba(94, 211, 243, 0.15); /* Cool transparent backdrop */
  backdrop-filter: blur(8px); /* Frosted subtlety */
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 20px rgba(94, 211, 243, 0.08); /* Precise cyan haze */
  transform: translateY(-1px);
}

/* Arrow Integration: Emerges on hover for directional sophistication */
.cta-omega-path::after,
.cta-alpha-path::after {
  content: ' →'; /* Arrow text */
  opacity: 0; /* Hidden idle */
  transition: opacity 0.3s ease-out, margin-left 0.3s ease-out;
  margin-left: 0.5rem;
  font-weight: 300; /* Light for minimalism */
}

.cta-omega-path:hover::after,
.cta-alpha-path:hover::after {
  opacity: 1;
  margin-right: 0.75rem; /* Slight push for motion */
}

/* Focus for accessibility */
.cta-omega-path:focus,
.cta-alpha-path:focus {
  outline: 1px solid var(--color-progress);
  outline-offset: 1px;
  text-decoration: none; /* Clean focus */
}

/* Responsive: Ensure long text wraps smoothly on mobile */
@media (max-width: 768px) {
  .cta-omega-path, .cta-alpha-path {
    display: block; /* Stack for readability */
    text-align: left;
    width: 100%;
    padding-left: 0; /* No indent */
  }
  
  .cta-omega-path:hover,
  .cta-alpha-path:hover {
    padding: 0.75rem 1rem;
    transform: none; /* No lift on mobile to avoid shifts */
  }
}

/* ---------------------------------- */
/* 21. KEY CTA MINIMALISM (New)       */
/* ---------------------------------- */
/* Whispered elegance for "Request Invitation", "Explore Our Vision", "Discover the Opportunity": */
/* Minimalist idle, sophisticated hover, seamless environmental blend */

.cta-primary /* Targets "Explore Our Vision" & "Discover the Opportunity" */,
#beta-invite-form button[type="submit"] /* Targets "Request Invitation" */ {
  padding: 0.75rem 1.75rem; /* Thinner for minimalism */
  background: rgba(255, 120, 71, 0.15); /* Faint coral tint (Omega warmth) */
  backdrop-filter: blur(4px); /* Subtle environmental merge */
  border: none;
  border-radius: var(--border-radius);
  font-family: var(--font-heading);
  font-weight: 500; /* Lighter for sophistication */
  font-size: var(--font-size-sm);
  color: var(--color-cta-primary-vision); /* Retain color loyalty */
  text-shadow: 0 1px 2px rgba(11, 14, 19, 0.5); /* Inset depth for readability */
  opacity: 0.85; /* Whispered idle state */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Smooth easing */
  box-shadow: none; /* No external shadow for flat elegance */
  position: relative;
  overflow: hidden;
  min-width: fit-content; /* Accommodate long text */
  white-space: nowrap; /* Prevent wrapping on desktop */
}

.cta-primary:hover,
.cta-primary:focus,
#beta-invite-form button[type="submit"]:hover,
#beta-invite-form button[type="submit"]:focus {
  opacity: 1; /* Full emergence */
  background: rgba(255, 120, 71, 0.25); /* Deeper tint reveal */
  backdrop-filter: blur(8px); /* Enhanced environmental blur */
  transform: scale(1.02); /* Restrained sophistication */
  text-shadow: 0 1px 3px rgba(11, 14, 19, 0.7); /* Subtle depth increase */
  outline: none; /* Clean focus */
}

/* For Alpha-tinted variants if needed (e.g., secondary styling on these CTAs) */
.cta-primary.alpha-tint /* Optional class for mixed paths */,
#beta-invite-form button[type="submit"].alpha-tint {
  background: rgba(94, 211, 243, 0.12); /* Faint cyan for precision */
  color: var(--color-cta-secondary-system);
  text-shadow: 0 1px 2px rgba(11, 14, 19, 0.5);
}

.cta-primary.alpha-tint:hover,
.cta-primary.alpha-tint:focus,
#beta-invite-form button[type="submit"].alpha-tint:hover,
#beta-invite-form button[type="submit"].alpha-tint:focus {
  background: rgba(94, 211, 243, 0.22);
  color: var(--color-background-alpha); /* Invert for elegance */
}

/* Gradient underglow for all (subtle environment tie-in) */
.cta-primary::before,
#beta-invite-form button[type="submit"]::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  background: linear-gradient(45deg, transparent, var(--color-border), transparent);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  border-radius: inherit;
  opacity: 0.6; /* Faint for minimalism */
  transition: opacity 0.4s ease-out;
}

.cta-primary:hover::before,
#beta-invite-form button[type="submit"]:hover::before {
  opacity: 0.9; /* Glow emergence */
}

/* Responsive: Handle long text gracefully on mobile */
@media (max-width: 768px) {
  .cta-primary,
  #beta-invite-form button[type="submit"] {
    padding: 0.625rem 1.25rem; /* Even thinner on small screens */
    white-space: normal; /* Allow wrapping for "Discover..." */
    text-align: center;
    width: 100%;
    max-width: 300px;
    transform: none; /* No scale on mobile */
  }
  
  .cta-primary:hover,
  #beta-invite-form button[type="submit"]:hover {
    transform: none; /* Prevent awkward scaling */
  }
}

/* ---------------------------------- */
/* 22. CTA SIZE COHESION (New)        */
/* ---------------------------------- */
/* Dimensional harmony for secondary CTAs: Match box/text sizes to primaries */
/* Targets "Analyze The System" (.cta-secondary/.cta-alpha-path), "Explore Our Synthesis" (Omega variant), "Begin the Dialogue" (.cta-secondary or .cta-dialogue) */
/* Preserves all colors, backgrounds, hovers—only sizes for cohesion */

.cta-secondary, /* "Analyze The System" & "Begin the Dialogue" */
.cta-alpha-path, /* Alpha path variant */
.cta-omega-path /* "Explore Our Synthesis" (if Omega-styled) */,
.cta-dialogue /* Optional class for "Begin the Dialogue" if separate */ {
  padding: 0.75rem 1.75rem; /* Match primary box height/width */
  font-size: var(--font-size-sm); /* 0.9rem for string cohesion */
  line-height: 1.4; /* Tight for uniform text density */
  min-width: fit-content; /* Adaptive to text length */
  white-space: nowrap; /* Single line on desktop for crisp boxes */
  /* All other styles (bg, color, shadow, transition) inherited/preserved */
}

/* Hover/focus: No size changes—preserve existing transforms/scales
.cta-secondary:hover, .cta-secondary:focus,
.cta-alpha-path:hover, .cta-alpha-path:focus,
.cta-omega-path:hover, .cta-omega-path:focus,
.cta-dialogue:hover, .cta-dialogue:focus {
  Existing styles only—no padding/font adjustments 
} */

/* Responsive: Mirror primary mobile sizing for full cohesion */
@media (max-width: 768px) {
  .cta-secondary,
  .cta-alpha-path,
  .cta-omega-path,
  .cta-dialogue {
    padding: 0.625rem 1.25rem; /* Thinner match */
    white-space: normal; /* Wrap long text like "Analyze The System" */
    width: 100%;
    max-width: 300px; /* Uniform mobile footprint */
    text-align: center; /* Centered for balance */
  }
}

/* ---------------------------------- */
/* 23. PATH CTA EXPANSION (New)       */
/* ---------------------------------- */
/* Horizontal rightward expansion for .cta-omega-path and .cta-alpha-path on hover */
/* Preserves all existing styles, adds scaleX for fluid stretch */

.cta-omega-path,
.cta-alpha-path {
  /* Existing styles from sections 7, 12, 22 preserved */
  transform-origin: left; /* Anchor expansion to left for rightward stretch */
  transition: all var(--transition-fast),
    background 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Extend to include transform */
}

.cta-omega-path:hover,
.cta-alpha-path:hover {
  transform: scaleX(1.1); /* 10% horizontal stretch to right */
  /* Existing hover styles (shadows, backgrounds, etc.) preserved */
}

.cta-omega-path:focus,
.cta-alpha-path:focus {
  transform: scaleX(1.1); /* Match hover for accessibility */
  /* Existing focus styles preserved */
}

/* Responsive: Disable transform on mobile to avoid layout shifts */
@media (max-width: 768px) {
  .cta-omega-path:hover,
  .cta-alpha-path:hover,
  .cta-omega-path:focus,
  .cta-alpha-path:focus {
    transform: none; /* No scaling on mobile for stability */
  }
}

/* ---------------------------------- */
/* 24. PATH CTA SLIDE-OUT (New)       */
/* ---------------------------------- */
/* Rightward slide-out animation for .cta-omega-path and .cta-alpha-path on click */
/* Preserves all existing styles; triggers before navigation */

@keyframes slide-out {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateX(100vw); /* Slide fully off-screen to right */
    opacity: 0; /* Fade out */
  }
}

.cta-omega-path.slide-out,
.cta-alpha-path.slide-out {
  animation: slide-out 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards; /* Match site easing */
  pointer-events: none; /* Prevent interaction during animation */
}

/* Ensure existing hover/focus transforms (scaleX) are overridden during slide-out */
.cta-omega-path.slide-out:hover,
.cta-alpha-path.slide-out:hover,
.cta-omega-path.slide-out:focus,
.cta-alpha-path.slide-out:focus {
  transform: translateX(100vw); /* Enforce slide over scaleX */
}