/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg-dark: #0B0B10;
    --color-purple-dark: #6A00FF;
    --color-purple-light: #C600FF;
    --color-cyan: #00E5FF;
    --color-white: #FFFFFF;
    --color-gray: #B0B0B0;
    --color-gray-dark: #1A1A20;
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-primary);
    background: linear-gradient(180deg, var(--color-bg-dark) 0%, #1A0F2E 50%, var(--color-bg-dark) 100%);
    color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    opacity: 1;
    transform: none;
}

/* Typography */
h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

p {
    font-size: 1.125rem;
    color: var(--color-gray);
    margin-bottom: 1rem;
}

/* Sticky Header */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(11, 11, 16, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(106, 0, 255, 0.2);
    z-index: 1000;
    transition: var(--transition);
}

.sticky-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 24px;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-purple-dark), var(--color-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sticky-header nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.sticky-header nav a {
    color: var(--color-gray);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.sticky-header nav a:hover {
    color: var(--color-cyan);
}

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    font-family: var(--font-primary);
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--color-purple-dark), var(--color-purple-light));
    color: var(--color-white);
    box-shadow: 0 4px 20px rgba(106, 0, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(106, 0, 255, 0.6);
}

/* Only affects the hero title's decrypt span */
#hero .hero-title-decrypt {
  display: inline-block;
  padding-bottom: 0.12em;   /* reserves room so Y/descenders never clip */
  vertical-align: baseline; /* keep baseline alignment clean */
}


.cta-button.secondary {
    background: transparent;
    color: var(--color-cyan);
    border: 2px solid var(--color-cyan);
}

.cta-button.secondary:hover {
    background: rgba(0, 229, 255, 0.1);
    transform: translateY(-2px);
}

.cta-button.large {
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 0 4rem;
    overflow: hidden;
}

.neural-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.15;
    background: 
        radial-gradient(circle at 20% 30%, rgba(106, 0, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 229, 255, 0.2) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.25; }
}

.hero .container {
    position: relative;
    z-index: 1;
}


.subhead {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: var(--color-gray);
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 2;
    margin-top: 24px; /* or 12px */
}

.trust-kicker {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
    font-size: 0.95rem;
    color: var(--color-cyan);
    flex-wrap: wrap;
}

.trust-kicker span:nth-child(even) {
    color: rgba(0, 229, 255, 0.4);
}

.cta-group {
    margin-bottom: 2rem;
}

.safety-copy {
    font-size: 0.875rem;
    color: rgba(176, 176, 176, 0.7);
    margin-top: 0.75rem;
}

/* Promise Section */
.promise {
    padding: 6rem 0;
    background: linear-gradient(180deg, transparent 0%, rgba(106, 0, 255, 0.05) 50%, transparent 100%);
}

.promise h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.promise p {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    font-size: 1.25rem;
    line-height: 1.8;
}

.inline-cta {
    display: block;
    color: var(--color-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    margin: 2rem auto 0;
    text-align: center;
}

.inline-cta:hover {
    color: var(--color-purple-light);
}

/* Benefits Section */
.benefits {
    padding: 6rem 0;
}

.benefits h2 {
    text-align: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin: 4rem 0;
}

.benefit-item {
    text-align: center;
    padding: 2rem;
    background: rgba(26, 26, 32, 0.5);
    border: 1px solid rgba(106, 0, 255, 0.2);
    border-radius: 16px;
    transition: var(--transition);
}

.benefit-item:hover {
    transform: translateY(-8px);
    border-color: var(--color-cyan);
    box-shadow: 0 8px 30px rgba(0, 229, 255, 0.2);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit-item h3 {
    color: var(--color-white);
    margin-bottom: 0.75rem;
}

.benefit-item p {
    color: var(--color-gray);
    font-size: 1rem;
}

.proof-strip {
    text-align: center;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(106, 0, 255, 0.2);
}

.built-with {
    font-size: 1rem;
    color: var(--color-gray);
}

/* Research Section */
.research {
    padding: 6rem 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 229, 255, 0.03) 50%, transparent 100%);
}

.research h2 {
    text-align: center;
}

.vision {
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
    font-size: 1.25rem;
    line-height: 1.8;
}

.research-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.research-card {
    background: rgba(26, 26, 32, 0.6);
    border: 1px solid rgba(106, 0, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
}

.research-card:hover {
    border-color: var(--color-purple-light);
    transform: translateY(-4px);
}

.research-card h3 {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.research-card p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.card-link {
    color: var(--color-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.card-link:hover {
    color: var(--color-purple-light);
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    background: rgba(26, 26, 32, 0.8);
    border: 1px solid rgba(106, 0, 255, 0.3);
    border-radius: 8px;
    color: var(--color-white);
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--color-cyan);
}

.newsletter-form button {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--color-purple-dark), var(--color-purple-light));
    color: var(--color-white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    transform: translateY(-2px);
}

.form-success {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid var(--color-cyan);
    border-radius: 8px;
    color: var(--color-cyan);
    text-align: center;
}

.form-success.show {
    display: block;
}

/* Flywheel Section */
.flywheel {
    padding: 6rem 0;
    text-align: center;
}

.flywheel h2 {
    margin-bottom: 3rem;
}

.flywheel-diagram {
    max-width: 400px;
    margin: 0 auto 2rem;
}

.flywheel-diagram svg {
    width: 100%;
    height: auto;
}

.flywheel-text {
    font-size: 1rem;
    color: var(--color-gray);
    margin-bottom: 1rem;
}

.tagline {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-cyan);
    margin-bottom: 3rem;
}

/* Social Proof Section */
.social-proof {
    padding: 6rem 0;
    background: linear-gradient(180deg, transparent 0%, rgba(106, 0, 255, 0.05) 50%, transparent 100%);
    text-align: center;
}

.social-proof h2 {
    margin-bottom: 3rem;
}

.founding-benefits {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.founding-benefit {
    padding: 1rem 2rem;
    background: rgba(26, 26, 32, 0.6);
    border: 1px solid rgba(106, 0, 255, 0.3);
    border-radius: 8px;
}

.benefit-label {
    color: var(--color-cyan);
    font-weight: 600;
}

.testimonial {
    max-width: 700px;
    margin: 0 auto 3rem;
    padding: 2rem;
    background: rgba(26, 26, 32, 0.4);
    border-left: 4px solid var(--color-purple-light);
    border-radius: 8px;
}

.testimonial p {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.testimonial cite {
    font-size: 1rem;
    color: var(--color-gray);
    font-style: normal;
}

.cohort-status {
    font-size: 1rem;
    color: var(--color-gray);
}

/* Application Section */
.application {
    padding: 6rem 0;
    max-width: 700px;
    margin: 0 auto;
}

.application h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-intro {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.125rem;
}

.application-form {
    background: rgba(26, 26, 32, 0.4);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid rgba(106, 0, 255, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-white);
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(11, 11, 16, 0.8);
    border: 1px solid rgba(106, 0, 255, 0.3);
    border-radius: 8px;
    color: var(--color-white);
    font-size: 1rem;
    font-family: var(--font-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-cyan);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.field-help {
    font-size: 0.875rem;
    color: var(--color-gray);
    margin-top: 0.5rem;
}

.form-assurance {
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-gray);
    margin-top: 1rem;
}

#application-success {
    display: none;
    padding: 3rem;
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid var(--color-cyan);
    border-radius: 16px;
    text-align: center;
}

#application-success.show {
    display: block;
}

#application-success h3 {
    color: var(--color-cyan);
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Secondary Paths Section */
.secondary-paths {
    padding: 6rem 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 229, 255, 0.03) 50%, transparent 100%);
}

.secondary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.secondary-card {
    padding: 2rem;
    background: rgba(26, 26, 32, 0.5);
    border: 1px solid rgba(106, 0, 255, 0.2);
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
}

.secondary-card:hover {
    border-color: var(--color-cyan);
    transform: translateY(-4px);
}

.secondary-card h3 {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.secondary-card p {
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(106, 0, 255, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    background: linear-gradient(135deg, var(--color-purple-dark), var(--color-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--color-gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-cyan);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(106, 0, 255, 0.1);
}

.privacy-note {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.footer-bottom p {
    font-size: 0.875rem;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal.show {
    display: block;
}

.modal-content {
    background: linear-gradient(180deg, #1A1A20 0%, #0B0B10 100%);
    margin: 5% auto;
    padding: 3rem;
    border: 1px solid rgba(106, 0, 255, 0.3);
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    position: relative;
}

.close {
    color: var(--color-gray);
    float: right;
    font-size: 2rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.close:hover {
    color: var(--color-cyan);
}

.domain-result,
.mjml-result {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(26, 26, 32, 0.6);
    border-radius: 8px;
    display: none;
}

.domain-result.show,
.mjml-result.show {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sticky-header nav {
        gap: 1rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .research-cards {
        grid-template-columns: 1fr;
    }
    
    .founding-benefits {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .application-form {
        padding: 2rem 1.5rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        padding: 2rem 1.5rem;
        margin: 10% auto;
    }
}

@media (max-width: 480px) {
    .sticky-header .container {
        flex-direction: column;
        gap: 1rem;
        padding: 0.75rem 16px;
    }
    
    .sticky-header nav {
        width: 100%;
        justify-content: center;
    }
    
    .cta-button.large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* ---- Page fade-in ---- */
body {
  opacity: 0;
  transition: opacity 600ms ease;
}
body.is-loaded { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  body { transition: none; }
}

/* ---- Spotlight Card ---- */
.spotlight-card {
  --spotlight-x: 50%;
  --spotlight-y: 50%;
  --spotlight-size: 200px;             /* default; can be overridden via data-spotlight-size */
  position: relative;
  border-radius: 16px;
  padding: 20px;
  background:
    radial-gradient(
      circle var(--spotlight-size) at var(--spotlight-x) var(--spotlight-y),
      rgba(255,255,255,0.12),
      rgba(255,255,255,0.02) 60%,
      transparent 70%
    ),
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.08) inset,
    0 10px 20px rgba(0,0,0,0.25);
  transform: translateZ(0);            /* create a new layer */
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
  overflow: hidden;
  will-change: transform;
}

.spotlight-card::after {
  /* subtle outer glow border that reacts to spotlight */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(
      circle calc(var(--spotlight-size) * 0.9) at var(--spotlight-x) var(--spotlight-y),
      rgba(99,102,241,0.35), /* indigo glow */
      transparent 70%
    );
  opacity: 0;
  transition: opacity 250ms ease;
}

.spotlight-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.1) inset,
    0 18px 30px rgba(0,0,0,0.35);
  border-color: rgba(255,255,255,0.14);
}

.spotlight-card:hover::after { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .spotlight-card,
  .spotlight-card::after { transition: none; }
}

/* Optional: make icons pop slightly on hover */
.spotlight-card .benefit-icon {
  font-size: 1.4rem;
  display: inline-block;
  transition: transform 250ms ease;
}
.spotlight-card:hover .benefit-icon { transform: scale(1.06); }


/* Make benefit emojis/icons bigger and center them visually */
.benefit-item .benefit-icon {
  font-size: 2.5rem;          /* was smaller before */
  display: inline-block;
  margin-bottom: 0.6rem;
  transition: transform 250ms ease, filter 250ms ease;
  transform-origin: center;
}

/* Optional: subtle lift or glow when hovered */
.spotlight-card:hover .benefit-icon {
  transform: scale(1.12);
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.2));
}

/* ---- Global page fade-in ---- */
body {
  opacity: 0;
  transform: translateY(6px);
  filter: blur(2px);
  transition:
    opacity 700ms ease,
    transform 700ms ease,
    filter 700ms ease;
}
body.is-loaded {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Respect accessibility preferences */
@media (prefers-reduced-motion: reduce) {
  body { transition: none; opacity: 1; transform: none; filter: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
}

/* ---- Optional: staggered reveals for elements/sections ---- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 700ms ease, transform 700ms ease;
}
body.is-loaded .reveal {
  opacity: 1;
  transform: none;
}

/* ========= Electric Border (vanilla) ========= */
.electric-border{
  --electric-border-color:#5227FF;
  --electric-light-color: oklch(from var(--electric-border-color) l c h);
  --eb-border-width:2px;
  position:relative;
  border-radius:inherit;
  overflow:visible;
  isolation:isolate;
  display:inline-block; /* shrink-wrap the button */
}

.electric-border .eb-content{
  position:relative;
  z-index:1;
  border-radius:inherit;
}

.electric-border .eb-layers{
  position:absolute; inset:0;
  border-radius:inherit;
  pointer-events:none; z-index:2;
}

.electric-border .eb-stroke,
.electric-border .eb-glow-1,
.electric-border .eb-glow-2,
.electric-border .eb-background-glow{
  position:absolute; inset:0;
  border-radius:inherit; box-sizing:border-box;
  pointer-events:none;
}

/* base stroke (distorted via filter) */
.electric-border .eb-stroke{
  border:var(--eb-border-width) solid var(--electric-border-color);
}

/* outer glows */
.electric-border .eb-glow-1{
  border:var(--eb-border-width) solid oklch(from var(--electric-border-color) l c h / .6);
  opacity:.5; filter:blur(calc(.5px + (var(--eb-border-width)*.25)));
}
.electric-border .eb-glow-2{
  border:var(--eb-border-width) solid var(--electric-light-color);
  opacity:.5; filter:blur(calc(2px + (var(--eb-border-width)*.5)));
}

/* soft background bloom */
.electric-border .eb-background-glow{
  z-index:-1; transform:scale(1.08);
  filter:blur(32px); opacity:.3;
  background:linear-gradient(-30deg, var(--electric-light-color), transparent, var(--electric-border-color));
}

/* hide the helper SVG */
.eb-hidden-svg{
  position:fixed; left:-10000px; top:-10000px;
  width:10px; height:10px; opacity:.001; pointer-events:none;
}

/* motion prefs */
@media (prefers-reduced-motion: reduce){
  .electric-border .eb-stroke{ filter:none !important; }
}


/* Ensure the secondary CTA is on its own line, below */
#hero .cta-button.secondary {
  display: block;
  margin: 1rem auto 0;
}

#hero .cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;  /* spacing between items */
}

/* backdrop under the waves */
#nexus-bg {
  background: radial-gradient(circle at 50% 30%, #0e0f18 0%, #0a0b12 60%, #080910 100%);
}

/* motion preference */
@media (prefers-reduced-motion: reduce) {
  #nexus-bg { background: #0a0b12; } /* static if motion reduced */
}
#neural-bg {
  filter: brightness(0.6) contrast(1.05) saturate(1.05);
}
@media (prefers-reduced-motion: reduce){
  #neural-bg{ background:#0a0b12; } /* static if motion reduced */
}