/**
 * AETHER Immersive Liquid Design System & Stylesheet
 * Primary Design Philosophy: "LIQUID INTERFACE & FLOATING PRODUCT STORYTELLING"
 * Optimized for Bootstrap 5 grid layout with high-end Awwwards-style interactions.
 */

/* 1. LOCAL FONTS SETUP */
@font-face {
    font-family: 'Outfit';
    src: url('../fonts/outfit-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Outfit';
    src: url('../fonts/outfit-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Outfit';
    src: url('../fonts/outfit-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Outfit';
    src: url('../fonts/outfit-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Syne';
    src: url('../fonts/syne-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Syne';
    src: url('../fonts/syne-800.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* 2. DESIGN TOKENS */
:root {
    --bg-dark: #090A0F;
    --bg-mid: #0C0E14;
    --c-indigo: #4F46E5;
    --c-indigo-light: #6366F1;
    --c-lavender: #A5B4FC;
    --c-lavender-dark: #818CF8;
    --c-cyan: #06B6D4;
    --c-cyan-light: #22D3EE;
    --c-pink: #EC4899;
    --c-pink-light: #F472B6;
    --c-silver: #E2E8F0;
    --c-white: #FFFFFF;
    --c-gray: #94A3B8;

    /* Gradients */
    --g-holo: linear-gradient(135deg, var(--c-cyan) 0%, var(--c-indigo-light) 50%, var(--c-pink) 100%);
    --g-liquid: linear-gradient(135deg, rgba(6, 182, 212, 0.8) 0%, rgba(99, 102, 241, 0.8) 100%);
    --g-dark: linear-gradient(180deg, rgba(12, 14, 20, 0.6) 0%, rgba(9, 10, 15, 0.95) 100%);
    --g-lavender-cyan: linear-gradient(90deg, var(--c-lavender) 0%, var(--c-cyan-light) 100%);
    
    /* Glassmorphism Details */
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-bg-hover: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.07);
    --glass-border-hover: rgba(255, 255, 255, 0.15);
    --glass-shadow: rgba(0, 0, 0, 0.4);
    --glass-blur: 16px;

    /* Spacing & Rhythm */
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 3. BASE RESET & SCROLLBAR */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    background-color: var(--bg-dark);
    color: var(--c-white);
    font-family: 'Outfit', sans-serif;
    scroll-behavior: auto !important; /* Defeats Bootstrap 5's prefers-reduced-motion scroll-behavior rule to prevent double-smoothing jitter */
}

/* 3.1 OFFICIAL LENIS SMOOTH SCROLL OPTIMIZATIONS */
html.lenis, html.lenis body {
    height: auto;
}
.lenis-smooth {
    scroll-behavior: auto !important;
}
.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}
.lenis-stopped {
    overflow: hidden;
}
.lenis-scrolling iframe {
    pointer-events: none;
}


/* Ensure text-muted and text-body-secondary are visible on dark environments */
.text-muted {
    color: var(--c-gray) !important;
}
.text-body-secondary {
    color: var(--c-gray) !important;
}

/* Override Bootstrap's solid opaque bg-dark background to allow the fixed WebGL liquid backdrop to shine through seamlessly */
.bg-dark {
    background-color: rgba(9, 10, 15, 0.45) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Smooth glass scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(9, 10, 15, 0.9);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    border: 2px solid rgba(9, 10, 15, 0.9);
    transition: var(--transition-fast);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--c-indigo-light);
}

/* 4. WEBGL CANVAS LAYOUT */
#liquid-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -10;
    pointer-events: none;
    opacity: 0.85;
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

/* Custom interactive background glows */
.glow-orb {
    position: absolute;
    width: 45vw;
    height: 45vw;
    border-radius: 50%;
    filter: blur(150px);
    pointer-events: none;
    z-index: -8;
    mix-blend-mode: plus-lighter;
    opacity: 0.35;
    animation: floatOrb 25s infinite alternate ease-in-out;
}
.glow-orb-cyan {
    background: radial-gradient(circle, var(--c-cyan) 0%, rgba(6,182,212,0) 70%);
    top: -10vw;
    left: -10vw;
}
.glow-orb-indigo {
    background: radial-gradient(circle, var(--c-indigo) 0%, rgba(79,70,229,0) 70%);
    bottom: -15vw;
    right: -10vw;
    animation-delay: -5s;
}
.glow-orb-pink {
    background: radial-gradient(circle, var(--c-pink) 0%, rgba(236,72,153,0) 70%);
    top: 40vh;
    left: 30vw;
    animation-delay: -12s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5vw, 8vw) scale(1.15); }
}

/* 5. TYPOGRAPHY & OVERSIZED HEADINGS */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--c-white);
}

.text-gradient-holo {
    background: var(--g-holo);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-lavender {
    background: var(--g-lavender-cyan);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-large {
    font-size: clamp(3rem, 5.2vw, 5.8rem);
    line-height: 0.95;
    font-weight: 800;
    text-shadow: 0 0 40px rgba(99, 102, 241, 0.15);
}

.subtitle-large {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 400;
    color: var(--c-gray);
    max-width: 600px;
    line-height: 1.6;
}

/* 6. IMMERSIVE COMPONENT: CUSTOM INTERACTIVE CURSOR */
.custom-cursor {
    width: 26px;
    height: 26px;
    border: 1.5px solid rgba(6, 182, 212, 0.6);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
}
.custom-cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--c-cyan-light);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    box-shadow: 0 0 10px var(--c-cyan);
}
.cursor-hover .custom-cursor {
    width: 45px;
    height: 45px;
    background-color: rgba(6, 182, 212, 0.08);
    border-color: var(--c-pink-light);
}

/* Hide cursor on touch devices */
@media (max-width: 1024px) {
    .custom-cursor, .custom-cursor-dot {
        display: none;
    }
}

/* 7. PREMIUM FLOATING GLASS NAVBAR */
.navbar-aether {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: 100px;
    z-index: 1000;
    padding: 12px 24px;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 40px var(--glass-shadow);
    will-change: transform;
}
.navbar-aether.scrolled {
    background: rgba(12, 14, 20, 0.85);
    border-color: rgba(255, 255, 255, 0.12);
    padding: 8px 24px;
    top: 12px;
}

.navbar-brand-logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.03em;
    color: var(--c-white) !important;
    display: flex;
    align-items: center;
    gap: 8px;
}
.brand-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--g-holo);
    display: inline-block;
    box-shadow: 0 0 10px var(--c-cyan-light);
}

.navbar-aether .nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--c-gray) !important;
    padding: 6px 16px !important;
    border-radius: 50px;
    transition: var(--transition-fast);
}
.navbar-aether .nav-link:hover,
.navbar-aether .nav-item.active .nav-link {
    color: var(--c-white) !important;
    background: rgba(255, 255, 255, 0.05);
}

.btn-aether-nav {
    background: var(--g-holo);
    border: none;
    color: var(--c-white);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 20px;
    border-radius: 100px;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.25);
    transition: var(--transition-fast);
}
.btn-aether-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
    color: var(--c-white);
}

/* 8. LIQUID GLASSMORMISM CARDS */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: 24px;
    padding: 40px;
    transition: background 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px var(--glass-shadow);
    transform: translate3d(0, 0, 0);
    will-change: transform;
}
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transition: 0.5s;
    pointer-events: none;
}
.glass-card:hover::before {
    left: 100%;
}
.glass-card:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-6px);
}

/* 9. SECTION IMMERSIVE DESIGN RULES */
.section-immersive {
    padding: 140px 0;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
    z-index: 2; /* Force all active sections to stack cleanly above the fixed WebGL background */
}

/* 10. HERO EXPERIENCE SECTION */
#hero {
    min-height: 100vh;
    padding-top: 160px;
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    z-index: 10; /* Lifts hero above adjacent standard sections */
}

.floating-mockup-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    perspective: 1000px;
    z-index: 5;
    transform: translate3d(0, 0, 10px); /* Prevents 3D hardware-accelerated clipping bugs */
}

.floating-mockup {
    width: 100%;
    height: auto;
    border-radius: 40px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    transform-style: preserve-3d;
    animation: mockFloat 6s ease-in-out infinite alternate;
}

.floating-ui-badge {
    position: absolute;
    background: rgba(12, 14, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    pointer-events: none;
    animation: badgeFloat 5s ease-in-out infinite alternate;
    z-index: 10; /* Lifts the badges completely above the mockup device frame */
    transform: translate3d(0, 0, 30px); /* Extrudes the badges forward in 3D perspective */
}
.badge-1 {
    top: 15%;
    left: 2%; /* Adjusted to overlay the mockup frame and prevent overlapping the text column */
    animation-delay: -1s;
}
.badge-2 {
    bottom: 20%;
    right: 2%; /* Positioned safely within mockup boundaries to prevent overflowing the viewport */
    animation-delay: -2.5s;
}

@keyframes mockFloat {
    0% { transform: translateY(0) rotateX(4deg) rotateY(-8deg); }
    100% { transform: translateY(-15px) rotateX(-2deg) rotateY(6deg); }
}

@keyframes badgeFloat {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-10px) scale(1.03); }
}

/* 11. BUTTONS & MICRO-INTERACTIONS */
.btn-aether-primary {
    background: var(--g-holo);
    border: none;
    color: var(--c-white) !important;
    font-weight: 600;
    padding: 16px 36px;
    border-radius: 100px;
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.35);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.btn-aether-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(6, 182, 212, 0.5);
}

.btn-aether-outline {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    color: var(--c-white) !important;
    font-weight: 600;
    padding: 16px 36px;
    border-radius: 100px;
    transition: var(--transition-smooth);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.btn-aether-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--c-cyan-light);
    transform: translateY(-3px);
}

/* Floating Modular Badges and Icons */
.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    border: 1px solid rgba(6, 182, 212, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--c-cyan-light);
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}
.glass-card:hover .feature-icon-wrapper {
    background: var(--g-holo);
    color: var(--c-white);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.35);
    border-color: transparent;
}

/* 12. APP SHOWCASE SCREEN TRANSITIONS */
.showcase-display {
    perspective: 1200px;
    width: 100%;
}
.showcase-glass-screen {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 35px 80px rgba(0,0,0,0.6);
    overflow: hidden;
    transform: rotateX(10deg);
    transition: var(--transition-smooth);
}
.showcase-glass-screen:hover {
    transform: rotateX(0deg) scale(1.02);
}

/* 13. USER JOURNEY / SPATIAL TIMELINE */
.journey-path {
    position: relative;
    padding-left: 30px;
}
.journey-path::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--c-cyan), var(--c-indigo), transparent);
}
.journey-node {
    position: relative;
    margin-bottom: 60px;
}
.journey-node::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--c-cyan-light);
    box-shadow: 0 0 10px var(--c-cyan);
    border: 2px solid var(--bg-dark);
}

/* 14. APP SCREEN CAROUSEL */
.swiper-screens {
    padding: 40px 0 !important;
}
.swiper-screens .swiper-slide {
    width: 320px;
    height: auto;
    transition: var(--transition-smooth);
    opacity: 0.4;
    transform: scale(0.85) rotateY(-15deg);
}
.swiper-screens .swiper-slide-active {
    opacity: 1;
    transform: scale(1) rotateY(0deg);
}

.carousel-mockup-frame {
    border-radius: 36px;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    background: #000;
}
.carousel-mockup-frame img {
    width: 100%;
    height: auto;
    display: block;
}

/* Swiper Pagination Style */
.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.2) !important;
    width: 10px !important;
    height: 10px !important;
    opacity: 1 !important;
}
.swiper-pagination-bullet-active {
    background: var(--c-cyan-light) !important;
    width: 30px !important;
    border-radius: 5px !important;
    box-shadow: 0 0 10px var(--c-cyan);
}

/* 15. PRICING MODULAR SYSTEM */
.pricing-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 50px 40px;
    text-align: center;
    position: relative;
    transition: var(--transition-smooth);
}
.pricing-card-popular {
    background: linear-gradient(180deg, rgba(79, 70, 229, 0.15) 0%, rgba(12, 14, 20, 0.8) 100%);
    border-color: rgba(99, 102, 241, 0.4);
    transform: scale(1.05);
}
.pricing-card-popular::after {
    content: 'RECOMMENDED';
    position: absolute;
    top: 24px;
    right: 24px;
    background: var(--g-holo);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 50px;
    letter-spacing: 0.05em;
}

/* 16. ACCORDION SYSTEM FOR FAQ */
.faq-accordion .accordion-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    margin-bottom: 16px;
    border-radius: 16px !important;
    overflow: hidden;
    transition: var(--transition-fast);
}
.faq-accordion .accordion-item:hover {
    border-color: var(--glass-border-hover);
    background: var(--glass-bg-hover);
}
.faq-accordion .accordion-button {
    background: transparent !important;
    color: var(--c-white) !important;
    font-size: 1.15rem;
    font-weight: 600;
    font-family: 'Syne', sans-serif;
    padding: 24px;
    box-shadow: none !important;
}
.faq-accordion .accordion-button::after {
    filter: invert(1);
}
.faq-accordion .accordion-body {
    padding: 0 24px 24px;
    color: var(--c-gray);
    line-height: 1.6;
}

/* 17. WAITLIST AND FORMS */
.max-width-800 {
    max-width: 800px;
    width: 100%;
}
.waitlist-input-group {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 8px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-fast);
}
.waitlist-input-group:focus-within {
    border-color: var(--c-cyan-light);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}
.waitlist-input {
    background: transparent !important;
    border: none !important;
    color: var(--c-white) !important;
    padding-left: 24px !important;
    font-size: 1.05rem;
    outline: none !important;
    box-shadow: none !important;
}
.waitlist-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-feedback {
    font-size: 0.95rem;
    margin-top: 15px;
    display: none;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 18. FOOTER STYLING */
.footer-immersive {
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 10;
    background: linear-gradient(to bottom, transparent, rgba(9, 10, 15, 0.95));
}
.footer-logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--c-white);
    text-decoration: none;
}
.footer-link {
    color: var(--c-gray);
    text-decoration: none;
    transition: var(--transition-fast);
}
.footer-link:hover {
    color: var(--c-cyan-light);
}

/* 19. RESPONSIVENESS AND MOBILE FIXES */
@media (max-width: 991px) {
    .section-immersive {
        padding: 80px 0;
    }
    #hero {
        padding-top: 120px;
        text-align: center;
    }
    .floating-mockup-wrapper {
        margin-top: 60px;
    }
    .badge-1 {
        left: 0;
    }
    .badge-2 {
        right: 0;
    }
    .pricing-card-popular {
        transform: scale(1);
        margin: 20px 0;
    }
}
