
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --background: #0e0e16;
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0b0;
    --accent: #b09cff;
    --accent-secondary: #ff8fc7;
    --accent-hover: #c9bfff;
    --accent-glow: rgba(176, 156, 255, 0.245);
    --card-bg: rgba(176, 156, 255, 0.08);
    --border-color: rgba(176, 156, 255, 0.2);
    --header-height: 72px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
}

/* --- UNIFIED BACKGROUND CONTAINER --- */

#background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background-image: linear-gradient(to bottom, #0e0e16, #1d1b2e);
}

/* --- EFFECT LAYERS (Positioned inside the container) --- */

#particles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#sparkle-effect-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    position: relative;
    background-color: rgba(255, 255, 255, 0.2);
    mask-image: url('sparkles.png');
    mask-size: 500px;
    mask-repeat: repeat;
    mask-position: 0 0;
    -webkit-mask-image: url('sparkles.png');
    -webkit-mask-size: 500px;
    -webkit-mask-repeat: repeat;
    -webkit-mask-position: 0 0;
}

#sparkle-effect-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, var(--accent), transparent 70%);
    z-index: 1;
    animation: subtleGlow 20s ease-in-out infinite alternate;
}

@keyframes subtleGlow {
    from { transform: scale(1); opacity: 0.2; }
    to { transform: scale(1.5); opacity: 0.4; }
}

/* --- JAVASCRIPT-CONTROLLED GLOW STYLE --- */
.glow-spot {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, var(--accent) 25%, rgba(176, 156, 255, 0) 70%);
    filter: blur(60px);
    z-index: 2;
    opacity: 0;
    transform-origin: center center;
    will-change: opacity, transform;
}

.mouse-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-secondary) 0%, rgba(255, 143, 199, 0) 70%);
    filter: blur(50px);
    opacity: 0;
    transition: transform 0.2s ease-out, opacity 0.5s ease-in-out;
    z-index: 2;
}


/* --- LAYOUT AND CONTENT --- */

#image-hero {
    will-change: opacity;
    pointer-events: none;
}

#page-content footer {
    padding-bottom: 6rem;
}

#page-content {
    position: relative;
    z-index: 3;
    background-color: transparent;
    margin-top: 100dvh;
}

#hero h1 {
    line-height: 1.15;
    padding-bottom: 0.1em;
}

@media (min-width: 768px) {
    #hero h1 {
        line-height: 1.1;
    }
}

/* --- EDITED: Mobile CTA Button Styles --- */
#mobile-cta {
    position: fixed;
    top: 1.25rem;
    right: 1.5rem; /* MOVED to the right */
    z-index: 60;
    background-color: var(--accent);
    color: var(--background);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.4s ease-in-out, transform 0.2s ease;
    opacity: 0;
    pointer-events: none;
}

#mobile-cta.visible {
    opacity: 1;
    pointer-events: auto;
}

#mobile-cta:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
}

/* --- NEW: Mobile-Only Top-Left Logo Styles --- */
#mobile-logo {
    position: fixed;
    top: 1.25rem;
    left: 1.5rem;
    z-index: 60;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease-in-out;
}

#mobile-logo img {
    height: 2.25rem; /* Smaller logo for mobile */
}

#mobile-logo.visible {
    opacity: 1;
    pointer-events: auto;
}


/* --- NAVIGATION BAR STYLES (Desktop Only) --- */
#navbar {
    top: 1.5rem;
    right: 1.5rem;
}

.navbar-inner {
    position: relative;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* --- Top-Left Corner Logo Styling (Desktop Only) --- */
#navbar-logo {
    position: fixed;
    top: 1.25rem;
    left: 1.5rem;
    z-index: 60;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease-in-out;
}

#navbar-logo img {
    height: 3rem;
}

#navbar-logo.logo-visible {
    opacity: 1;
    pointer-events: auto;
}

.navbar-link {
    position: relative;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    z-index: 2;
}


.navbar-link:hover {
    color: var(--accent);
}

.navbar-link.active {
    color: var(--accent);
}

#navbar.nav-suppressed .navbar-link.active {
    color: var(--text-secondary);
}

.navbar-cta-button {
    background-color: var(--accent);
    color: var(--background);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.navbar-cta-button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
}

#navbar-lamp {
    position: absolute;
    inset: 0;
    background-color: rgba(176, 156, 255, 0.1);
    border-radius: 9999px;
    z-index: 1;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.45, 0, 0.15, 1), width 0.4s cubic-bezier(0.45, 0, 0.15, 1), opacity 0.3s ease;
}

#navbar.nav-suppressed #navbar-lamp {
    opacity: 0;
}

.lamp-glow-top {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 30px);
    height: 0.15rem;
    background-color: var(--accent);
    border-radius: 9999px;
}

.lamp-glow-top::before, .lamp-glow-top::after {
    content: '';
    position: absolute;
    background-color: var(--accent-glow);
    border-radius: 9999px;
    filter: blur(12px);
    width: 100%;
}

.lamp-glow-top::before {
    height: 1.5rem;
    top: -0.5rem;
    left: -0.5rem;
}

.lamp-glow-top::after {
    height: 1.5rem;
    top: -0.25rem;
    left: 0;
}

.nav-text {
    display: block;
}
.nav-icon {
    display: none;
}


.gradient-text {
    background: linear-gradient(90deg, var(--accent) 30%, var(--text-primary) 70%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-button {
    background-color: var(--accent);
    color: var(--background);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.card {
    position: relative;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 0.75rem;
    transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}

.card:hover {
    transform: translateY(-4px); 
    background-color: rgba(176, 156, 255, 0.12);
    border-color: var(--accent);
}

/* --- NEW: Boxed Section Style --- */
.boxed-section {
    position: relative;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 1rem; /* 16px */
    padding: 3rem; /* 48px */
    transition: border-color 0.3s ease;
}

.boxed-section:hover {
    border-color: var(--accent);
}

/* --- NEW: Emphasized Section Endnote Style --- */
.section-endnote {
    font-size: 1.5rem; /* A tad bigger */
    font-weight: 600;   /* Bolder */
    color: var(--accent); /* Different color */
    text-shadow: 0 0 12px var(--accent-glow); /* Add a glow to make it pop */
}


.numbered-list-item {
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 800;
    color: var(--accent);
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
}

.section-with-sticky {
    position: relative;
}

.sticky-header {
    position: sticky;
    top: var(--header-height);
    z-index: 35;
    background: transparent;
    padding: 4.8rem 0 3rem 0;
    margin-bottom: -1rem;
}

.sticky-header h2 {
    margin: 0;
}

#why .container {
    padding-top: 20vh;
    padding-bottom: 50vh;
}

.scroll-stack-glass {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 40px;
    transform-origin: top center;
    will-change: transform, filter;
    backface-visibility: hidden;
    transform-style: preserve-d;
    position: relative;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    perspective: 1000px;
    -webkit-perspective: 1000px;
}

.scroll-stack-end {
  width: 100%;
  height: 1px;
}

/* --- Waitlist Form Styles --- */
#waitlist-form input[type="email"] {
    background-color: rgba(176, 156, 255, 0.15);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--text-primary);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#waitlist-form input[type="email"]::placeholder {
    color: var(--text-secondary);
}

#waitlist-form input[type="email"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent);
}


/* --- CSS GRADIENT BLUR --- */
.gradient-blur {
    position: fixed;
    z-index: 40;
    pointer-events: none;
    left: 0;
    right: 0;
}
.gradient-blur.gradient-blur-bottom {
    bottom: 0;
    height: 8rem;
}
.gradient-blur.gradient-blur-top {
    top: 0;
    height: 10rem;
}

.gradient-blur > div,
.gradient-blur::before,
.gradient-blur::after {
    position: absolute;
    inset: 0;
}

.gradient-blur::before {
    content: "";
    z-index: 1;
    backdrop-filter: blur(0.5px);
    -webkit-backdrop-filter: blur(0.5px);
}
.gradient-blur > div:nth-of-type(1) {
    z-index: 2;
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
}
.gradient-blur > div:nth-of-type(2) {
    z-index: 3;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.gradient-blur > div:nth-of-type(3) {
    z-index: 4;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.gradient-blur > div:nth-of-type(4) {
    z-index: 5;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.gradient-blur > div:nth-of-type(5) {
    z-index: 6;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.gradient-blur > div:nth-of-type(6) {
    z-index: 7;
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
}
.gradient-blur::after {
    content: "";
    z-index: 8;
    backdrop-filter: blur(64px);
    -webkit-backdrop-filter: blur(64px);
}

/* Reduce intensity so the bottom blur feels lighter */
.gradient-blur-bottom::before {
    backdrop-filter: blur(0.25px);
    -webkit-backdrop-filter: blur(0.25px);
}
.gradient-blur-bottom > div:nth-of-type(1) {
    backdrop-filter: blur(0.5px);
    -webkit-backdrop-filter: blur(0.5px);
}
.gradient-blur-bottom > div:nth-of-type(2) {
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
}
.gradient-blur-bottom > div:nth-of-type(3) {
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.gradient-blur-bottom > div:nth-of-type(4) {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.gradient-blur-bottom > div:nth-of-type(5) {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.gradient-blur-bottom > div:nth-of-type(6) {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.gradient-blur-bottom::after {
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

/* --- Masks for Bottom Blur --- */
.gradient-blur-bottom::before {
    mask: linear-gradient(to bottom, transparent 0%, black 12.5%, black 25%, transparent 37.5%);
    -webkit-mask: linear-gradient(to bottom, transparent 0%, black 12.5%, black 25%, transparent 37.5%);
}
.gradient-blur-bottom > div:nth-of-type(1) {
    mask: linear-gradient(to bottom, transparent 12.5%, black 25%, black 37.5%, transparent 50%);
    -webkit-mask: linear-gradient(to bottom, transparent 12.5%, black 25%, black 37.5%, transparent 50%);
}
.gradient-blur-bottom > div:nth-of-type(2) {
    mask: linear-gradient(to bottom, transparent 25%, black 37.5%, black 50%, transparent 62.5%);
    -webkit-mask: linear-gradient(to bottom, transparent 25%, black 37.5%, black 50%, transparent 62.5%);
}
.gradient-blur-bottom > div:nth-of-type(3) {
    mask: linear-gradient(to bottom, transparent 37.5%, black 50%, black 62.5%, transparent 75%);
    -webkit-mask: linear-gradient(to bottom, transparent 37.5%, black 50%, black 62.5%, transparent 75%);
}
.gradient-blur-bottom > div:nth-of-type(4) {
    mask: linear-gradient(to bottom, transparent 50%, black 62.5%, black 75%, transparent 87.5%);
    -webkit-mask: linear-gradient(to bottom, transparent 50%, black 62.5%, black 75%, transparent 87.5%);
}
.gradient-blur-bottom > div:nth-of-type(5) {
    mask: linear-gradient(to bottom, transparent 62.5%, black 75%, black 87.5%, transparent 100%);
    -webkit-mask: linear-gradient(to bottom, transparent 62.5%, black 75%, black 87.5%, transparent 100%);
}
.gradient-blur-bottom > div:nth-of-type(6) {
    mask: linear-gradient(to bottom, transparent 75%, black 87.5%, black 100%);
    -webkit-mask: linear-gradient(to bottom, transparent 75%, black 87.5%, black 100%);
}
.gradient-blur-bottom::after {
    mask: linear-gradient(to bottom, transparent 87.5%, black 100%);
    -webkit-mask: linear-gradient(to bottom, transparent 87.5%, black 100%);
}

/* --- Masks for Top Blur (reversed gradient) --- */
.gradient-blur-top::before {
    mask: linear-gradient(to top, transparent 0%, black 12.5%, black 25%, transparent 37.5%);
    -webkit-mask: linear-gradient(to top, transparent 0%, black 12.5%, black 25%, transparent 37.5%);
}
.gradient-blur-top > div:nth-of-type(1) {
    mask: linear-gradient(to top, transparent 12.5%, black 25%, black 37.5%, transparent 50%);
    -webkit-mask: linear-gradient(to top, transparent 12.5%, black 25%, black 37.5%, transparent 50%);
}
.gradient-blur-top > div:nth-of-type(2) {
    mask: linear-gradient(to top, transparent 25%, black 37.5%, black 50%, transparent 62.5%);
    -webkit-mask: linear-gradient(to top, transparent 25%, black 37.5%, black 50%, transparent 62.5%);
}
.gradient-blur-top > div:nth-of-type(3) {
    mask: linear-gradient(to top, transparent 37.5%, black 50%, black 62.5%, transparent 75%);
    -webkit-mask: linear-gradient(to top, transparent 37.5%, black 50%, black 62.5%, transparent 75%);
}
.gradient-blur-top > div:nth-of-type(4) {
    mask: linear-gradient(to top, transparent 50%, black 62.5%, black 75%, transparent 87.5%);
    -webkit-mask: linear-gradient(to top, transparent 50%, black 62.5%, black 75%, transparent 87.5%);
}
.gradient-blur-top > div:nth-of-type(5) {
    mask: linear-gradient(to top, transparent 62.5%, black 75%, black 87.5%, transparent 100%);
    -webkit-mask: linear-gradient(to top, transparent 62.5%, black 75%, black 87.5%, transparent 100%);
}
.gradient-blur-top > div:nth-of-type(6) {
    mask: linear-gradient(to top, transparent 75%, black 87.5%, black 100%);
    -webkit-mask: linear-gradient(to top, transparent 75%, black 87.5%, black 100%);
}
.gradient-blur-top::after {
    mask: linear-gradient(to top, transparent 87.5%, black 100%);
    -webkit-mask: linear-gradient(to top, transparent 87.5%, black 100%);
}