/* ==========================================================================
   1. LIQUID SYSTEM INITIALIZATION & VARIABLE ARCHITECTURE
   ========================================================================== */
:root {
    --bg-core: #030307;
    --mesh-glow-1: rgba(0, 76, 255, 0.35);
    --mesh-glow-2: rgba(0, 218, 255, 0.18);
    
    --glass-fill: rgba(8, 10, 20, 0.7);
    --glass-contour: rgba(0, 132, 255, 0.25);
    --glass-specular: rgba(255, 255, 255, 0.08);
    --glass-shadows: 0 40px 80px rgba(0, 0, 0, 0.9), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    
    --color-text-main: #ffffff;
    --color-text-muted: #8a99ad;
    --brand-accent: #0066ff;
    --brand-accent-glow: #00f2fe;
    --cta-text: #ffffff;
    
    --font-stack: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

[data-theme="light"] {
    --bg-core: #faf9f6;
    --mesh-glow-1: rgba(212, 163, 89, 0.2);
    --mesh-glow-2: rgba(245, 235, 215, 0.4);
    
    --glass-fill: rgba(255, 255, 255, 0.8);
    --glass-contour: rgba(212, 163, 89, 0.3);
    --glass-specular: rgba(255, 255, 255, 0.5);
    --glass-shadows: 0 25px 50px rgba(165, 140, 90, 0.1), inset 0 1px 2px rgba(255, 255, 255, 0.7);
    
    --color-text-main: #090d16;
    --color-text-muted: #576575;
    --brand-accent: #d4a359;
    --brand-accent-glow: #b3853b;
    --cta-text: #ffffff;
}

/* ==========================================================================
   2. HARDWARE-ACCELERATED TRANSITIONS
   ========================================================================== */
.page-fade-in {
    animation: luxuryPageEntrance 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    opacity: 0;
    will-change: transform, opacity;
}

.page-fade-out {
    animation: luxuryPageExit 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    will-change: transform, opacity;
}

@keyframes luxuryPageEntrance {
    0% { opacity: 0; transform: translate3d(0, 15px, 0); }
    100% { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes luxuryPageExit {
    0% { opacity: 1; transform: translate3d(0, 0, 0); }
    100% { opacity: 0; transform: translate3d(0, -15px, 0); }
}

/* ==========================================================================
   3. CORE BASE RESET & STATIC CANVAS LAYOUTS
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    min-height: 100vh;
    font-family: var(--font-stack);
    background-color: var(--bg-core);
    color: var(--color-text-main);
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    
    /* Hardware-optimized smooth theme blending */
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Optimized static composited background nodes to eliminate rendering paint lags */
.satin-fluid-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    transform: translateZ(0);
}

.satin-wave-node {
    position: absolute;
    width: 120vw;
    height: 120vh;
    top: -10vh;
    left: -10vw;
    background: radial-gradient(circle at 50% 30%, var(--mesh-glow-1) 0%, transparent 65%);
    filter: blur(60px);
    -webkit-filter: blur(60px);
    transform: translate3d(0,0,0);
}

.satin-wave-node:nth-child(2) {
    background: radial-gradient(circle at 40% 70%, var(--mesh-glow-2) 0%, transparent 55%);
    filter: blur(50px);
    -webkit-filter: blur(50px);
}

/* ==========================================================================
   4. PREMIUM HEADERS
   ========================================================================== */
.premium-site-header {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 100;
}

.brand-identity-block {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: inherit;
}

.brand-logo-img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 8px;
}

.brand-text-title {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    transition: color 0.4s ease;
}

.brand-text-title span {
    color: var(--brand-accent);
    transition: color 0.4s ease;
}

.minimal-theme-switch {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--glass-fill);
    border: 1px solid var(--glass-contour);
    color: var(--color-text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}

.minimal-theme-switch:active {
    transform: scale(0.92);
}

.minimal-theme-switch .sun-icon { display: none; }
[data-theme="light"] .minimal-theme-switch .sun-icon { display: block; }
[data-theme="light"] .minimal-theme-switch .moon-icon { display: none; }

/* ==========================================================================
   5. HOUSING CONTAINER
   ========================================================================== */
.global-layout-wrapper {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem 4rem 1rem;
    position: relative;
    z-index: 10;
}

.liquid-glass-viewport-box {
    width: 100%;
    background: var(--glass-fill);
    border: 1px solid var(--glass-contour);
    box-shadow: var(--glass-shadows);
    border-radius: 24px;
    padding: 3rem 1.5rem;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateZ(0);
    
    /* Smooth theme blending */
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* ==========================================================================
   6. HERO TYPOGRAPHY & COMPONENTS
   ========================================================================== */
.waitlist-pill-ticker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 242, 254, 0.06);
    border: 1px solid rgba(0, 242, 254, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    margin: 0 auto 1.75rem auto;
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

[data-theme="light"] .waitlist-pill-ticker {
    background: rgba(212, 163, 89, 0.08);
    border: 1px solid rgba(212, 163, 89, 0.25);
}

.pulse-dot-indicator {
    width: 6px;
    height: 6px;
    background-color: #00ff66;
    border-radius: 50%;
}

.ticker-metric-label {
    font-size: 0.8rem;
    color: var(--color-text-main);
    font-weight: 600;
    transition: color 0.4s ease;
}

.hero-title-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.hero-primary-header {
    font-size: 2.15rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.04em;
    transition: color 0.4s ease;
}

/* HIGH-PERFORMANCE SPINNING SPARKLE */
.spinning-sparkle-node {
    font-size: 1.8rem;
    color: var(--brand-accent);
    display: inline-block;
    animation: smoothSparkleSpin 8s infinite linear;
    will-change: transform;
    transform-origin: center;
    transition: color 0.4s ease;
}

@keyframes smoothSparkleSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-narrative-p {
    font-size: 0.98rem;
    line-height: 1.55;
    color: var(--color-text-muted);
    margin-bottom: 1.75rem;
    max-width: 460px;
    transition: color 0.4s ease;
}

.luxury-action-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-accent);
    color: var(--cta-text);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.25);
    border: none;
    cursor: pointer;
    width: 100%;
    max-width: 280px;
    transition: transform 0.2s ease, background-color 0.4s ease, box-shadow 0.4s ease, color 0.4s ease;
}

.luxury-action-trigger:active {
    transform: scale(0.97);
}

/* ==========================================================================
   7. STABLE PERFORMANCE MARQUEE CAROUSEL
   ========================================================================== */
.orbit-horizontal-viewport {
    width: 100%;
    margin-bottom: 1.5rem;
    padding: 0.25rem 0;
    overflow: hidden;
    position: relative;
    contain: content;
}

.orbit-horizontal-viewport::before,
.orbit-horizontal-viewport::after {
    content: '';
    position: absolute;
    top: 0;
    width: 40px;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}
.orbit-horizontal-viewport::before { left: 0; background: linear-gradient(to right, var(--bg-core), transparent); }
.orbit-horizontal-viewport::after { right: 0; background: linear-gradient(to left, var(--bg-core), transparent); }

.linear-infinite-track {
    display: flex;
    gap: 0.75rem;
    width: max-content;
    animation: linearMarquee 20s infinite linear;
    will-change: transform;
    transform: translate3d(0,0,0);
}

@keyframes linearMarquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-33.333%, 0, 0); }
}

.flag-capsule-badge {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.5rem 0.9rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

[data-theme="light"] .flag-capsule-badge {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.capsule-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-text-main);
    transition: color 0.4s ease;
}

/* ==========================================================================
   8. CLEAN INPUT STYLING
   ========================================================================== */
.form-instructional-subtitle {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    transition: color 0.4s ease;
}

.secure-input-matrix {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    text-align: left;
    width: 100%;
}

.input-field-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
}

.input-field-group label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    transition: color 0.4s ease;
}

.premium-structural-input {
    width: 100%;
    background: rgba(6, 8, 18, 0.95) !important;
    border: 1px solid var(--glass-contour);
    border-radius: 12px;
    padding: 1rem 1.15rem;
    color: #ffffff !important;
    font-size: 0.95rem;
    outline: none;
    font-family: var(--font-stack);
    transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}

[data-theme="light"] .premium-structural-input {
    background: #ffffff !important;
    color: #090d16 !important;
}

.premium-structural-input:focus {
    border-color: var(--brand-accent);
}

/* Dropdown Container Fixes */
.custom-glass-dropdown {
    width: 100%;
    background: rgba(6, 8, 18, 0.95);
    border: 1px solid var(--glass-contour);
    border-radius: 12px;
    padding: 1rem 1.15rem;
    color: #ffffff;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}

[data-theme="light"] .custom-glass-dropdown {
    background: #ffffff;
    color: #090d16;
}

.dropdown-chevron {
    transition: transform 0.2s ease, color 0.4s ease;
    color: var(--color-text-muted);
}

.custom-glass-dropdown.active .dropdown-chevron {
    transform: rotate(180deg);
}

.custom-dropdown-options-box {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background: rgba(10, 12, 24, 0.98);
    border: 1px solid var(--glass-contour);
    border-radius: 12px;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    opacity: 0;
    transform: translate3d(0, -5px, 0);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.4s ease, border-color 0.4s ease;
}

[data-theme="light"] .custom-dropdown-options-box {
    background: rgba(255, 255, 255, 0.98);
}

.custom-dropdown-options-box.open {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
}

.dropdown-option-row {
    padding: 0.9rem 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.dropdown-option-row:hover {
    background: rgba(0, 102, 255, 0.1);
}

.dropdown-option-row img {
    width: 20px;
    height: auto;
    border-radius: 2px;
}

.dropdown-option-row span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-main);
    transition: color 0.4s ease;
}

/* ==========================================================================
   9. SUCCESS MONITOR
   ========================================================================== */
.theatrical-success-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #020205;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.theatrical-success-screen.engaged {
    opacity: 1;
    pointer-events: auto;
}

.success-monolith-vault {
    text-align: center;
    padding: 2rem;
}

.neon-halo-emitter {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    border: 1px solid rgba(0, 242, 254, 0.3);
}

/* HIGH-PERFORMANCE SUCCESS PULSE (Subtle Breathing Scale Animation) */
.sigil-confirmation-mark {
    font-size: 2.5rem; 
    color: #00f2fe;
    display: inline-block;
    animation: luxuryGlowPulse 3s infinite ease-in-out;
    will-change: transform;
    transform-origin: center;
}

@keyframes luxuryGlowPulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgba(0, 242, 254, 0.4));
    }
    50% {
        transform: scale(1.12);
        filter: drop-shadow(0 0 15px rgba(0, 242, 254, 0.8));
    }
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgba(0, 242, 254, 0.4));
    }
}

.monolith-success-title { font-size: 2.15rem; font-weight: 900; color: #ffffff; margin-bottom: 0.75rem; }
.monolith-success-description { font-size: 1rem; color: #94a3b8; max-width: 400px; line-height: 1.5; }

/* ==========================================================================
   10. PHONE FIX STRUCTURAL MEDIA
   ========================================================================== */
@media (max-width: 480px) {
    .premium-site-header { padding: 1.25rem 0.75rem; }
    .liquid-glass-viewport-box { 
        padding: 2.25rem 1rem; 
        border-radius: 20px;
    }
    .hero-primary-header { font-size: 1.85rem; }
    .spinning-sparkle-node { font-size: 1.5rem; }
    .hero-narrative-p { font-size: 0.92rem; }
}

.premium-site-footer-credits {
    width: 100%;
    text-align: center;
    margin-top: 2.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-muted);
    opacity: 0.4;
    text-transform: uppercase;
    transition: color 0.4s ease;
}

.force-form-hide-on-success {
    display: none !important;
}