/* VERSION 7.0 - BRIGHT STROKE COLOR ON MOBILE - Updated 2025-11-15 */

/* Font Loading Optimization */
@font-face {
    font-family: 'Inter';
    font-display: swap;
}

/* CSS Variables */
:root {
    --primary: #1e90ff;
    --secondary: #0064c8;
    --accent: #4682ff;
    --bg-dark: #050a14;
    --bg-card: rgba(10, 15, 30, 0.8);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --border: rgba(30, 144, 255, 0.2);
    --glow: 0 0 20px rgba(30, 144, 255, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile-specific CSS Variables - Consolidated */
@media (max-width: 768px) {
    :root {
        --bg-dark: #050a14;
        --bg-card: rgba(10, 15, 30, 0.8);
        --text-primary: #ffffff;
        --text-secondary: rgba(255, 255, 255, 0.7);
    }

    /* Portrait mode adjustments */
    @supports (orientation: portrait) {
        :root {
            --bg-dark: #050a14;
            --bg-card: rgba(10, 15, 30, 0.8);
            --text-secondary: rgba(255, 255, 255, 0.7);
        }
    }
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Remove all default link underlines and borders */
a {
    text-decoration: none !important;
    border: none !important;
    border-bottom: none !important;
}

a:link,
a:visited,
a:active {
    text-decoration: none !important;
    border: none !important;
    border-bottom: none !important;
}

/* Remove any pseudo-element underlines */
a::before,
a::after,
span::before,
span::after {
    border: none !important;
    border-bottom: none !important;
}

html {
    overflow-x: hidden;
    width: 100%;
    background-color: #0d1a35;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

html::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0a0f1a;
    background: #0a0f1a;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    width: 100%;
    padding-top: 70px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* iPhone notch safe area support - only sides and bottom, not top (header handles top) */
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
}

body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Universal Container Fix */
.container {
    max-width: none;
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    background: transparent !important;
}

/* Remove all gaps between sections */
main {
    margin: 0;
    padding: 0;
    width: 100%;
    background: transparent !important;
}

section {
    margin: 0;
    padding: 0;
    width: 100%;
    background: transparent !important;
}

/* Global Mobile Optimizations */
* {
    box-sizing: border-box;
}

/* Prevent horizontal scrolling on all devices */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Ensure all content respects viewport width */
*, *::before, *::after {
    max-width: 100%;
}

/* Fix any overflowing elements */
img, video, iframe, canvas, svg {
    max-width: 100%;
    height: auto;
}

/* Responsive text wrapping - prevent mid-word breaks and hyphens */
h1, h2, h3, h4, h5, h6, p, span, div, a {
    word-wrap: normal;
    overflow-wrap: normal;
    word-break: keep-all;
    hyphens: none;
    white-space: normal;
}

/* Calm-style gradient gleam background - OPTIMIZED: Static on mobile, animated on desktop */
.bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background:
        radial-gradient(ellipse 120% 80% at 50% -30%, rgba(75, 85, 200, 0.5) 0%, rgba(75, 85, 200, 0.3) 30%, transparent 65%),
        radial-gradient(ellipse 100% 90% at 90% 40%, rgba(45, 20, 80, 0.45) 0%, rgba(45, 20, 80, 0.25) 35%, transparent 60%),
        radial-gradient(ellipse 100% 90% at 10% 60%, rgba(59, 130, 246, 0.4) 0%, rgba(59, 130, 246, 0.2) 35%, transparent 60%),
        radial-gradient(ellipse 90% 90% at 50% 50%, rgba(16, 185, 129, 0.35) 0%, rgba(16, 185, 129, 0.15) 40%, transparent 65%),
        radial-gradient(ellipse 80% 80% at 30% 70%, rgba(35, 15, 65, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse 80% 80% at 85% 5%, rgba(35, 15, 65, 0.35) 0%, transparent 50%);
    will-change: auto;
}

/* Subtle shimmer overlay for extra depth */
.bg-effects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(50, 25, 90, 0.2) 20%,
        transparent 40%,
        rgba(99, 102, 241, 0.2) 60%,
        transparent 80%,
        rgba(16, 185, 129, 0.15) 100%
    );
    animation: shimmerMove 20s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes shimmerMove {
    0%, 100% { transform: translateX(0) translateY(0); opacity: 0.5; }
    50% { transform: translateX(20px) translateY(-20px); opacity: 0.8; }
}

/* Desktop-only animation for better mobile performance */
@media (min-width: 769px) {
    .bg-effects {
        animation: subtleGleam 15s ease-in-out infinite;
    }
}

@keyframes subtleGleam {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

/* Dynamic Flow Layout - No Grid */
.page-flow {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}



/* Simplified Wave Visualization - PERFORMANCE OPTIMIZED */
.audio-wave-visualization {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.wave-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 1.0;
}

.wave-layer-1 {
    background: radial-gradient(ellipse at 30% 30%, rgba(40, 20, 80, 0.75) 0%, rgba(50, 30, 90, 0.65) 40%, rgba(59, 130, 246, 0.55) 70%, rgba(16, 185, 129, 0.45) 85%, transparent 100%);
    animation: waveFloat1 20s ease-in-out infinite;
    animation-iteration-count: infinite;
    animation-fill-mode: both;
    filter: brightness(2.0) saturate(2.2);
    box-shadow: 0 0 150px rgba(40, 20, 80, 0.7), 0 0 300px rgba(50, 30, 90, 0.6);
}

.wave-layer-2 {
    background: radial-gradient(ellipse at 70% 70%, rgba(50, 30, 90, 0.72) 0%, rgba(59, 130, 246, 0.62) 40%, rgba(16, 185, 129, 0.52) 70%, rgba(40, 20, 80, 0.42) 85%, transparent 100%);
    animation: waveFloat2 25s ease-in-out infinite;
    animation-iteration-count: infinite;
    animation-fill-mode: both;
    filter: brightness(2.1) saturate(2.3);
    box-shadow: 0 0 180px rgba(50, 30, 90, 0.7), 0 0 320px rgba(59, 130, 246, 0.6);
}

.wave-layer-3 {
    background: linear-gradient(135deg, transparent 0%, rgba(35, 15, 70, 0.68) 25%, rgba(40, 20, 80, 0.62) 50%, rgba(50, 30, 90, 0.58) 75%, transparent 100%);
    animation: waveFloat3 30s ease-in-out infinite;
    animation-iteration-count: infinite;
    animation-fill-mode: both;
    filter: brightness(2.2) saturate(2.4);
    box-shadow: 0 0 200px rgba(35, 15, 70, 0.7), 0 0 350px rgba(40, 20, 80, 0.6);
}

/* Beautiful wave floating animations - OPTIMIZED: transform-only (no opacity changes) */
@keyframes waveFloat1 {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(20px, -20px, 0) scale(1.05);
    }
}

@keyframes waveFloat2 {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(-20px, 20px, 0) scale(1.05);
    }
}

@keyframes waveFloat3 {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(15px, 15px, 0) scale(1.03);
    }
}

/* Logo fly-up animation */
@keyframes logoFlyUp {
    0% {
        opacity: 0;
        transform: translateY(100px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Content fade-in animation */
@keyframes contentFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}



.energy-orb {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(75, 85, 200, 0.5);
    background: radial-gradient(circle at 30% 30%,
        rgba(88, 60, 180, 0.7) 0%,
        rgba(75, 85, 200, 0.6) 25%,
        rgba(59, 130, 246, 0.5) 50%,
        rgba(16, 185, 129, 0.4) 75%,
        transparent 100%
    );
    box-shadow:
        0 0 40px rgba(88, 60, 180, 0.4),
        0 0 80px rgba(75, 85, 200, 0.3),
        inset 0 0 40px rgba(88, 60, 180, 0.2);
    pointer-events: none;
    opacity: 0.47;
    filter: brightness(1.2);
}

/* Energy waves emanating from the spheres */
.energy-orb::before,
.energy-orb::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid rgba(40, 20, 80, 0.8);
    transform: translate(-50%, -50%);
    pointer-events: none;
    box-shadow:
        0 0 10px rgba(40, 20, 80, 0.6),
        0 0 20px rgba(40, 20, 80, 0.4),
        inset 0 0 10px rgba(40, 20, 80, 0.3);
}

.energy-orb::before {
    animation: energyWaveExpand 20s linear infinite;
}

.energy-orb::after {
    animation: energyWaveExpand 27s linear infinite;
    animation-delay: 10s;
    border-color: rgba(50, 30, 90, 0.7);
    box-shadow:
        0 0 12px rgba(50, 30, 90, 0.6),
        0 0 24px rgba(50, 30, 90, 0.4),
        inset 0 0 12px rgba(50, 30, 90, 0.3);
}

/* Wave expansion animation - expand as far as possible then fade out at the end */
@keyframes energyWaveExpand {
    0% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    85% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(12);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(15);
    }
}

/* Large spheres - strategic distribution */
.orb-1 {
    width: 180px;
    height: 180px;
    top: 10%;
    left: 5%;
    z-index: 20;
}

.orb-3 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 8%;
    z-index: 20;
}

.orb-5 {
    width: 160px;
    height: 160px;
    bottom: 20%;
    left: 50%;
    z-index: 20;
}

/* Small spheres - background layer */
.orb-2 {
    width: 60px;
    height: 60px;
    top: 30%;
    left: 80%;
    z-index: 5;
    opacity: 0.4;
}

.orb-4 {
    width: 80px;
    height: 80px;
    bottom: 40%;
    left: 20%;
    z-index: 5;
    opacity: 0.4;
}

/* Additional spheres - balanced distribution */
.orb-6 {
    width: 140px;
    height: 140px;
    top: 15%;
    right: 15%;
    z-index: 15;
}

.orb-7 {
    width: 100px;
    height: 100px;
    bottom: 10%;
    right: 40%;
    z-index: 10;
}

.orb-8 {
    width: 120px;
    height: 120px;
    top: 40%;
    left: 30%;
    z-index: 12;
}

.orb-9 {
    width: 90px;
    height: 90px;
    top: 25%;
    right: 10%;
    z-index: 10;
    opacity: 0.6;
}

.orb-10 {
    width: 130px;
    height: 130px;
    bottom: 30%;
    left: 15%;
    z-index: 15;
}

.orb-11 {
    width: 70px;
    height: 70px;
    top: 70%;
    right: 50%;
    z-index: 8;
    opacity: 0.5;
}

.orb-12 {
    width: 110px;
    height: 110px;
    top: 20%;
    left: 10%;
    z-index: 12;
}

.orb-13 {
    width: 85px;
    height: 85px;
    bottom: 15%;
    right: 20%;
    z-index: 9;
    opacity: 0.7;
}

.orb-14 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 5%;
    z-index: 18;
}

.orb-15 {
    width: 95px;
    height: 95px;
    top: 15%;
    left: 70%;
    z-index: 11;
    opacity: 0.6;
}

.orb-16 {
    width: 125px;
    height: 125px;
    bottom: 25%;
    left: 25%;
    z-index: 14;
}

.orb-17 {
    width: 75px;
    height: 75px;
    top: 60%;
    right: 30%;
    z-index: 8;
    opacity: 0.5;
}

.orb-18 {
    width: 105px;
    height: 105px;
    bottom: 10%;
    right: 60%;
    z-index: 13;
    opacity: 0.8;
}





/* Seamless sections - no gaps or spacing */
.section {
    padding: 0.25rem 0;
    margin: 0;
    position: relative;
    z-index: 100;
    background: transparent;
    scroll-margin-top: 70px; /* Account for fixed header */
    border: none;
    width: 100%;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    backdrop-filter: none;
    box-shadow: none;
    /* Content fade-in animation */
    animation: contentFadeIn 1s ease-out forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.section:first-of-type {
    animation: none;
    opacity: 1;
}

/* Remove background from hero section to allow text overlay */
.section.hero {
    background: none !important;
    border: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Improved text layout for all section content */
.section p {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    padding: 0 1rem;
}

/* Override section p styles for hero subtitle */
.section.hero .hero-subtitle,
.hero .hero-subtitle {
    max-width: 85% !important;
    padding: 0 2rem !important;
    font-size: clamp(1.2rem, 3.5vw, 1.8rem) !important;
    color: var(--text-primary) !important;
    background: none !important;
    position: relative !important;
    z-index: 200 !important;
}

.section ul, .section ol {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    padding: 0 1rem;
}

.section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.section:nth-child(even) {
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
}

/* Problem and solution section specific text styling */
.problem-list, .solution-list {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    padding: 0 1rem;
}

.problem-list li, .solution-list li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    padding-left: 0.5rem;
}

/* Center the grid containers - seamless */
.problem-grid, .solution-grid {
    display: flex;
    justify-content: center;
    margin: 0;
}

.problem-grid > div, .solution-grid > div {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}





.section-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    box-sizing: border-box;
    background: transparent !important;
}

.section-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    box-sizing: border-box;
    background: transparent !important;
}

/* Compact Section Containers with Translucent Backgrounds */
.section-container {
    background: linear-gradient(135deg,
        rgba(10, 20, 35, 0.65) 0%,
        rgba(15, 25, 40, 0.6) 100%);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 20px;
    padding: 2.5rem 3rem;
    margin: 2rem auto;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    max-width: 1200px;
    isolation: isolate;
    /* Fast content rendering - no animation delay */
    opacity: 1;
    transform: translateZ(0);
}

/* Only use backdrop-filter on desktop for performance */
@media (min-width: 769px) {
    .section-container {
        backdrop-filter: blur(10px);
    }
}



/* Section Header Images */
.section-header-image {
    position: relative;
    width: 100%; /* Contained within section bounds */
    height: 300px;
    margin: 0 0 1rem 0; /* Tighter spacing for better flow */
    border-radius: 8px; /* Subtle rounded corners */
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Subtle depth */
}

.header-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
    filter: brightness(1.3) contrast(1.2) saturate(1.1);
    /* Prevent layout shift */
    aspect-ratio: 3 / 2;
}



.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    pointer-events: none;
}

.section-header-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 2;
    pointer-events: none;
}



/* Problem Section - Matching Solution Section Style */
.section-container.problem-container {
    background: linear-gradient(135deg,
        rgba(10, 25, 47, 0.75) 0%,
        rgba(15, 35, 60, 0.75) 100%);
    border-radius: 24px;
    padding: 2.5rem 3rem;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 0 2px rgba(99, 102, 241, 0.4),
        0 0 60px rgba(99, 102, 241, 0.2);
    position: relative;
    overflow: hidden;
    margin: 2rem auto;
    max-width: 1200px;
    opacity: 1;
}

.section-container.problem-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #1e90ff 0%, #00d4ff 50%, #1e90ff 100%);
    box-shadow: 0 2px 10px rgba(30, 144, 255, 0.5);
}

.problem-container .section-title {
    color: #ffffff;
    background: linear-gradient(
        135deg,
        #3399ff 0%,
        #5eb3ff 50%,
        #3d7fff 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    font-family: 'Calibri', sans-serif;
    font-weight: bold;
    -webkit-text-stroke: 1.5px rgba(135, 206, 235, 0.7);
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.8));
}

.problem-container .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: none;
    font-weight: 500;
}

.problem-list li {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.problem-list li::before {
    content: "!";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* Discover Vibroacoustic Therapy Section - Dark Blue Design */
.section-container.solution-container {
    background: linear-gradient(135deg,
        rgba(10, 25, 47, 0.75) 0%,
        rgba(15, 35, 60, 0.75) 100%);
    border-radius: 24px;
    padding: 2.5rem 3rem;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 0 2px rgba(99, 102, 241, 0.4),
        0 0 60px rgba(99, 102, 241, 0.2);
    position: relative;
    overflow: hidden;
    margin: 2rem auto;
    max-width: 1200px;
    opacity: 1;
}

.section-container.solution-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #1e90ff 0%, #00d4ff 50%, #1e90ff 100%);
    box-shadow: 0 2px 10px rgba(30, 144, 255, 0.5);
}

/* Dark theme styling for solution section */
.solution-container .section-title {
    color: #ffffff;
    background: linear-gradient(
        135deg,
        #3399ff 0%,
        #5eb3ff 50%,
        #3d7fff 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    font-family: 'Calibri', sans-serif;
    font-weight: bold;
    /* Thin light blue outline and drop shadow for definition */
    -webkit-text-stroke: 1.5px rgba(135, 206, 235, 0.7);
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.8));
}

.solution-container .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: none;
    font-weight: 500;
}

.solution-list li {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.solution-list li::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #1e40af 0%, #1e90ff 100%);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: none; /* Remove border for clean iPhone app look */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    height: 70px;
    /* iPhone notch safe area - extend header into safe area */
    padding-top: env(safe-area-inset-top);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

.header.scrolled {
    background: rgba(10, 10, 15, 0.98);
    box-shadow:
        0 4px 32px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(30, 144, 255, 0.1);
}

/* Mobile: Hide logo and background at top, show on scroll */
@media (max-width: 768px) {
    .header.at-top {
        background: transparent !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
    }

    .header.at-top .logo,
    .header.at-top .dashboard-logo {
        opacity: 0 !important;
        pointer-events: none !important;
        transition: opacity 0.3s ease;
    }

    /* Keep hamburger visible */
    .header.at-top .mobile-nav-toggle {
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    /* Show logo and background when scrolled */
    .header.scrolled .logo,
    .header.scrolled .dashboard-logo {
        opacity: 1 !important;
        pointer-events: auto !important;
        transition: opacity 0.3s ease;
    }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0 1.5rem;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.logo {
    font-family: 'Comfortaa', cursive;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e90ff !important; /* Force visible color */
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    position: relative;
    z-index: 10;
    min-width: 150px; /* Ensure minimum width */
    opacity: 1 !important; /* Force visibility */
    visibility: visible !important; /* Force visibility */
}

/* Apply gradient effect only when supported and working */
@supports (background-clip: text) and (-webkit-background-clip: text) {
    .logo {
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

/* Ensure logo is properly sized on mobile */
@media (max-width: 768px) {
    .logo {
        font-size: 1.3rem;
    }
}

.logo-main {
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    color: inherit;
}

.logo-sub {
    font-size: 0.7rem;
    opacity: 0.7;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    color: inherit;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex: 1;
    justify-content: center;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(30, 144, 255, 0.1);
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-links a:hover::before {
    width: 80%;
}



.auth-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(30, 144, 255, 0.4);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 20px rgba(30, 144, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}



.btn-primary {
    background:
        linear-gradient(135deg,
            rgba(160, 200, 255, 0.95) 0%,
            rgba(200, 220, 255, 0.9) 50%,
            rgba(180, 210, 255, 0.95) 100%);
    color: rgba(10, 20, 40, 0.95);
    border: 1px solid rgba(100, 150, 255, 0.5);
    box-shadow:
        0 8px 24px rgba(30, 144, 255, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        0 0 0 1px rgba(100, 180, 255, 0.3);
    position: relative;
    overflow: hidden;
    font-weight: 700;
}

.btn-primary:hover {
    background:
        linear-gradient(135deg,
            rgba(180, 210, 255, 1.0) 0%,
            rgba(220, 235, 255, 0.95) 50%,
            rgba(200, 225, 255, 1.0) 100%);
    box-shadow:
        0 12px 32px rgba(30, 144, 255, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.5),
        0 0 0 1px rgba(100, 180, 255, 0.4);
    transform: translateY(-2px);
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.75rem;
    border-radius: 8px;
    z-index: 1001;
    min-width: 44px; /* iOS touch target minimum */
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.mobile-nav-toggle:hover,
.mobile-nav-toggle:active {
    background: rgba(30, 144, 255, 0.15);
    color: var(--primary);
    transform: scale(1.05);
}

.mobile-nav-toggle:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100vw;
    height: calc(100vh - 70px);
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(30, 144, 255, 0.2);
    z-index: 999;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.5rem;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
}

/* Mobile Navigation Backdrop */
.mobile-nav::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: -1;
}

.mobile-nav.active::before {
    opacity: 1;
    visibility: visible;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav-links {
    list-style: none;
    margin-bottom: 2rem;
}

.mobile-nav-links li {
    margin-bottom: 1rem;
}

.mobile-nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    min-height: 44px; /* iOS touch target minimum */
}

.mobile-nav-links a:hover,
.mobile-nav-links a:active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    transform: translateX(0.5rem);
    background: rgba(30, 144, 255, 0.05);
    border-radius: 8px;
    margin: 0 -0.5rem;
    padding-left: 1rem;
    padding-right: 0.5rem;
}



.mobile-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    width: 100%;
}

.mobile-auth-buttons .btn {
    justify-content: center;
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    text-align: center;
}

/* Dynamic Section Flow - No Grid Areas Needed */

/* Hero section optimized for stable text rendering */
.hero {
    min-height: calc(100vh - 70px - env(safe-area-inset-top)); /* Account for fixed header + safe area */
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 1rem;
    padding-top: calc(1rem + env(safe-area-inset-top));
    /* Remove all backgrounds for clean text overlay */
    background: none !important;
    backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background:
        /* Bright white gleam highlights */
        radial-gradient(ellipse 600px 300px at 30% 40%, rgba(255, 255, 255, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 500px 250px at 70% 60%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse 400px 200px at 50% 20%, rgba(255, 255, 255, 0.04) 0%, transparent 45%),
        /* Central focus enhancement */
        radial-gradient(ellipse 60% 40% at 50% 50%, rgba(0, 255, 255, 0.06) 0%, transparent 70%),
        /* Corner accent lights */
        radial-gradient(circle at 20% 20%, rgba(0, 255, 255, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(30, 144, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}



.orb-9 {
    width: 50px;
    height: 50px;
    top: 85%;
    left: 60%;
    z-index: -16;
}

.orb-9::before {
    animation: energyWaveExpand 12s ease-out infinite;
    animation-fill-mode: forwards;
    animation-delay: 1s;
}

.orb-9::after {
    animation: energyWaveExpand 18s ease-out infinite;
    animation-fill-mode: forwards;
    animation-delay: 8s;
}

.orb-10 {
    width: 70px;
    height: 70px;
    top: 10%;
    right: 30%;
    z-index: -15;
}

.orb-10::before {
    animation: energyWaveExpand 14s ease-out infinite;
    animation-fill-mode: forwards;
    animation-delay: 2s;
}

.orb-10::after {
    animation: energyWaveExpand 21s ease-out infinite;
    animation-fill-mode: forwards;
    animation-delay: 10s;
}

.orb-11 {
    width: 110px;
    height: 110px;
    top: 65%;
    left: 25%;
    z-index: -9;
}

.orb-11::before {
    animation: energyWaveExpand 19s ease-out infinite;
    animation-fill-mode: forwards;
    animation-delay: 5s;
}

.orb-11::after {
    animation: energyWaveExpand 27s ease-out infinite;
    animation-fill-mode: forwards;
    animation-delay: 15s;
}

.orb-12 {
    width: 35px;
    height: 35px;
    top: 40%;
    right: 5%;
    z-index: -20;
    opacity: 0.09;
}

.orb-12::before {
    animation: energyWaveExpand 10s ease-out infinite;
    animation-fill-mode: forwards;
    animation-delay: 0s;
}

.orb-12::after {
    animation: energyWaveExpand 16s ease-out infinite;
    animation-fill-mode: forwards;
    animation-delay: 6s;
}

.orb-13 {
    width: 85px;
    height: 85px;
    bottom: 15%;
    right: 20%;
    z-index: 9;
    opacity: 0.7;
}

.orb-13::before {
    animation: energyWaveExpand 11s ease-out infinite;
    animation-fill-mode: forwards;
    animation-delay: 1s;
}

.orb-13::after {
    animation: energyWaveExpand 17s ease-out infinite;
    animation-fill-mode: forwards;
    animation-delay: 7s;
}

.orb-14 {
    width: 150px;
    height: 150px;
    bottom: 5%;
    left: 10%;
    z-index: 8;
    opacity: 0.4;
}

.orb-14::before {
    animation: energyWaveExpand 10s ease-out infinite;
    animation-fill-mode: forwards;
    animation-delay: 2s;
}

.orb-14::after {
    animation: energyWaveExpand 15s ease-out infinite;
    animation-fill-mode: forwards;
    animation-delay: 6s;
}

.orb-15 {
    width: 70px;
    height: 70px;
    top: 25%;
    left: 8%;
    z-index: 12;
    opacity: 0.8;
}

.orb-15::before {
    animation: energyWaveExpand 11s ease-out infinite;
    animation-fill-mode: forwards;
    animation-delay: 1s;
}

.orb-15::after {
    animation: energyWaveExpand 18s ease-out infinite;
    animation-fill-mode: forwards;
    animation-delay: 8s;
}

.orb-16 {
    width: 120px;
    height: 120px;
    top: 35%;
    right: 15%;
    z-index: 10;
    opacity: 0.5;
}

.orb-16::before {
    animation: energyWaveExpand 9s ease-out infinite;
    animation-fill-mode: forwards;
    animation-delay: 3s;
}

.orb-16::after {
    animation: energyWaveExpand 15s ease-out infinite;
    animation-fill-mode: forwards;
    animation-delay: 5s;
}

.orb-17 {
    width: 95px;
    height: 95px;
    top: 45%;
    left: 25%;
    z-index: 11;
    opacity: 0.6;
}

.orb-17::before {
    animation: energyWaveExpand 10s ease-out infinite;
    animation-fill-mode: forwards;
    animation-delay: 2s;
}

.orb-17::after {
    animation: energyWaveExpand 16s ease-out infinite;
    animation-fill-mode: forwards;
    animation-delay: 7s;
}

.orb-18 {
    width: 110px;
    height: 110px;
    top: 55%;
    right: 25%;
    z-index: 9;
    opacity: 0.65;
}

.orb-18::before {
    animation: energyWaveExpand 9s ease-out infinite;
    animation-fill-mode: forwards;
    animation-delay: 3s;
}

.orb-18::after {
    animation: energyWaveExpand 16s ease-out infinite;
    animation-fill-mode: forwards;
    animation-delay: 6s;
}

/* Optimized Energy Field - Only 5 orbs for performance */
.global-energy-field {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Disable wave animations for app page orbs - only show static orbs */
.global-energy-field .energy-orb::before,
.global-energy-field .energy-orb::after {
    display: none !important;
}

/* Optimized background spheres - only 5 strategic orbs */
.site-background-spheres {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 400vh;
    pointer-events: none;
    z-index: 0;
    overflow: visible;
}

/* Duplicate .energy-orb definition removed - using main definition at line 239 */

/* Optimized Orb 1 - Hero section */
.optimized-orb-1 {
    width: 200px;
    height: 200px;
    top: 20%;
    left: 10%;
    z-index: -1;
}

/* Optimized Orb 2 - Hero section right */
.optimized-orb-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    z-index: -1;
}

/* Optimized Orb 3 - Mid page */
.optimized-orb-3 {
    width: 180px;
    height: 180px;
    top: 150vh;
    left: 50%;
    z-index: -1;
}

/* Optimized Orb 4 - Lower section */
.optimized-orb-4 {
    width: 160px;
    height: 160px;
    top: 250vh;
    right: 20%;
    z-index: -1;
}

/* Optimized Orb 5 - Bottom */
.optimized-orb-5 {
    width: 140px;
    height: 140px;
    top: 350vh;
    left: 25%;
    z-index: -1;
}

/* Optimized Orb 6 - Hero section top right (desktop only) */
.optimized-orb-6 {
    width: 180px;
    height: 180px;
    top: 15%;
    right: 8%;
    z-index: -1;
}

/* Optimized Orb 7 - Hero section middle left (desktop only) */
.optimized-orb-7 {
    width: 170px;
    height: 170px;
    top: 45%;
    left: 5%;
    z-index: -1;
}

/* Optimized Orb 8 - Hero section bottom center (desktop only) */
.optimized-orb-8 {
    width: 165px;
    height: 165px;
    top: 75%;
    left: 60%;
    z-index: -1;
}

/* Mobile: Show only 3 orbs */
@media (max-width: 768px) {
    /* Hide orbs 4, 5, 6, 7, 8 on mobile */
    .optimized-orb-4,
    .optimized-orb-5,
    .desktop-only-orb {
        display: none !important;
    }

    /* Position the 3 mobile orbs - BRIGHT AND VISIBLE */
    .optimized-orb-1 {
        width: 105px;  /* 30% smaller than 150px */
        height: 105px;
        top: 20%;
        left: 10%;
        opacity: 0.47 !important; /* BRIGHT - match desktop */
        filter: brightness(1.0) !important;
    }

    .optimized-orb-2 {
        width: 91px;   /* 30% smaller than 130px */
        height: 91px;
        top: 55%;
        right: 15%;
        opacity: 0.47 !important; /* BRIGHT - match desktop */
        filter: brightness(1.0) !important;
    }

    .optimized-orb-3 {
        width: 98px;   /* 30% smaller than 140px */
        height: 98px;
        top: 80%;
        left: 50%;
        transform: translateX(-50%);
        opacity: 0.47 !important; /* BRIGHT - match desktop */
        filter: brightness(1.0) !important;
    }

    /* Parallax enabled on mobile */
}

/* Old orb definitions removed - using optimized orbs only */

/* Gentle floating animation for static orbs */
@keyframes gentleFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(10px, -10px) scale(1.05); }
    50% { transform: translate(-10px, 10px) scale(0.95); }
    75% { transform: translate(-5px, -5px) scale(1.02); }
}

/* Static orbs for programs section - NO parallax animations */
.programs-orb-1 {
    position: absolute;
    width: 180px;
    height: 180px;
    top: 50%;
    left: 8%;
    z-index: -1;
    animation: gentleFloat 20s ease-in-out infinite;
    pointer-events: none;
}

.programs-orb-2 {
    position: absolute;
    width: 160px;
    height: 160px;
    top: 70%;
    right: 10%;
    z-index: -1;
    animation: gentleFloat 25s ease-in-out infinite;
    pointer-events: none;
}

.programs-orb-3 {
    position: absolute;
    width: 140px;
    height: 140px;
    top: 60%;
    left: 50%;
    z-index: -1;
    animation: gentleFloat 22s ease-in-out infinite;
    pointer-events: none;
}

/* Disable wave animations for programs section orbs */
.programs-orb-1::before,
.programs-orb-1::after,
.programs-orb-2::before,
.programs-orb-2::after,
.programs-orb-3::before,
.programs-orb-3::after {
    display: none;
}

/* Mobile: adjust programs section orbs */
@media (max-width: 768px) {
    .programs-orb-1 {
        width: 100px;
        height: 100px;
        top: 50%;
        left: 5%;
    }

    .programs-orb-2 {
        width: 90px;
        height: 90px;
        top: 70%;
        right: 5%;
    }

    .programs-orb-3 {
        display: none !important;
    }
}







.hero-content {
    position: relative;
    z-index: 200;
    isolation: isolate;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 2rem 1rem 2rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    will-change: transform;
    overflow: visible;
    background: none !important; /* Ensure no background */
    border: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
}

/* hero-badge removed - element no longer in use */

/* Static energy rings - no animation */
.sound-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    pointer-events: none;
    border-radius: 50%;
    border: 1px solid rgba(30, 144, 255, 0.15);
    transform: translate(-50%, -50%);
    z-index: 5;
    box-shadow: 0 0 4px rgba(30, 144, 255, 0.1);
    /* Static rings for visual depth without animation */
}

/* Enable smooth parallax for spheres */
.parallax-layer {
    transition: none;
}

/* Static sphere layers - no parallax movement */
.orb-1, .orb-3, .orb-5 {
    z-index: 20;
    filter: brightness(1.1) contrast(1.05);
    opacity: 0.8;
}

/* Medium spheres - static positioning */
.orb-6, .orb-8 {
    z-index: 15;
    filter: blur(0.3px) brightness(1.0) contrast(0.98);
    opacity: 0.7;
}

/* Small spheres - static positioning */
.orb-2, .orb-4, .orb-7 {
    z-index: 10;
    filter: blur(0.6px) brightness(0.95) contrast(0.95);
    opacity: 0.6;
}

/* Site-wide background spheres - same style as hero spheres */
.site-sphere-1, .site-sphere-2, .site-sphere-3, .site-sphere-4, .site-sphere-5, .site-sphere-6, .site-sphere-7 {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%,
        rgba(88, 60, 180, 0.7) 0%,
        rgba(75, 85, 200, 0.6) 25%,
        rgba(59, 130, 246, 0.5) 50%,
        rgba(16, 185, 129, 0.4) 75%,
        transparent 100%);
    border: 1px solid rgba(75, 85, 200, 0.5);
    backdrop-filter: blur(10px) saturate(1.2);
    will-change: transform;
    pointer-events: none;
    box-shadow: 0 0 30px rgba(30, 144, 255, 0.15);
    /* Optimized for smooth parallax transforms */

    backface-visibility: hidden;
}

/* Content layers should be above parallax elements - no 3D transforms */
.hero-content {
    position: relative;
    z-index: 100;
    /* Remove 3D transform to prevent text flickering */
}

/* Hide scrollbars globally - ALL browsers and devices */
* {
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE and Edge */
}

*::-webkit-scrollbar {
    display: none !important; /* Chrome, Safari, Opera */
    width: 0 !important;
    height: 0 !important;
}

*::-webkit-scrollbar-track {
    display: none !important;
}

*::-webkit-scrollbar-thumb {
    display: none !important;
}

html {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

html::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

body {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

body::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Hide iOS scroll indicator */
::-webkit-scrollbar-track-piece {
    display: none !important;
}

::-webkit-scrollbar-button {
    display: none !important;
}

::-webkit-scrollbar-corner {
    display: none !important;
}

::-webkit-resizer {
    display: none !important;
}





/* Static ring sizes for visual depth */
.wave-1 {
    width: 150px;
    height: 150px;
    opacity: 0.3;
}

.wave-2 {
    width: 250px;
    height: 250px;
    opacity: 0.2;
}



@keyframes heroGleamFlow {
    0%, 100% {
        background-position: 30% 40%, 70% 60%, 50% 20%;
        opacity: 0.9;
    }
    50% {
        background-position: 40% 50%, 60% 50%, 60% 30%;
        opacity: 1.0;
    }
}

/* Performance-optimized floating animations for site-wide spheres */
/* OPTIMIZED: Use translate3d for GPU acceleration */
@keyframes floatSlow {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    25% {
        transform: translate3d(10px, -15px, 0);
    }
    50% {
        transform: translate3d(-5px, -8px, 0);
    }
    75% {
        transform: translate3d(8px, -20px, 0);
    }
}

@keyframes floatMedium {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    33% {
        transform: translate3d(-8px, -12px, 0);
    }
    66% {
        transform: translate3d(12px, -18px, 0);
    }
}







.hero-title {
    font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(4.5rem, 12vw, 8rem);
    font-weight: 800;
    font-variation-settings: 'wght' 800;
    margin-bottom: 0.5rem;
    /* BRIGHTER, MORE VIBRANT GRADIENT - Lush and Beautiful */
    background: linear-gradient(
        135deg,
        #3da5ff 0%,
        #5eb8ff 25%,
        #a0d4ff 50%,
        #5eb8ff 75%,
        #3da5ff 100%
    );
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 0.5px rgba(60, 120, 200, 0.8);
    /* Thin subtle outline for definition */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8))
            drop-shadow(0 0 30px rgba(61, 165, 255, 0.9))
            drop-shadow(0 0 60px rgba(94, 184, 255, 0.6));
    /* Logo fly-up animation */
    animation: logoFlyUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    line-height: 1;
    letter-spacing: 0.05em;
    position: relative;
    padding: 2rem 2rem;
    text-transform: uppercase;
    text-align: center;
    width: fit-content;
    max-width: 95%;
    margin: 0 auto 0.5rem auto;
    overflow: visible;
    white-space: nowrap;
    /* Crisp rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Title text wrapper - positioned relative for TM positioning */
.hero-title .title-text {
    position: relative;
    display: inline-block;
    /* Inherit gradient from parent */
    background: inherit;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* TM symbol styling - absolutely positioned to not affect centering */
.hero-title .tm-symbol {
    font-size: 0.35em;
    position: absolute;
    right: -0.6em;
    top: 0.3em;
    /* Match gradient from parent */
    background: linear-gradient(
        135deg,
        #3da5ff 0%,
        #5eb8ff 25%,
        #a0d4ff 50%,
        #5eb8ff 75%,
        #3da5ff 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.95;
}







.hero-tagline {
    font-family: 'Orbitron', monospace;
    font-size: clamp(1.2rem, 3.5vw, 1.8rem);
    font-weight: 700;
    /* BRIGHTER GRADIENT for tagline */
    background: linear-gradient(135deg, #4da6ff 0%, #70b8ff 50%, #3da5ff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
    opacity: 1;
    /* Thin outline for better definition */
    filter: drop-shadow(0 0 1px rgba(30, 144, 255, 0.8))
            drop-shadow(0 0 2px rgba(0, 0, 0, 0.5))
            drop-shadow(0 4px 12px rgba(77, 166, 255, 0.6));
    text-align: center;
    width: 100%;
    display: block;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3.5vw, 1.8rem);
    color: var(--text-primary);
    margin-top: 2.5rem;
    margin-bottom: 3.5rem;
    line-height: 1.5;
    max-width: 85%;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    font-weight: 400;
    padding: 0 2rem;
    text-align: center;
    position: relative;
    z-index: 200;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;
    align-items: stretch;
    margin: 4rem auto 0 auto;
    max-width: 800px;
    padding: 1.5rem 2rem;
    background:
        linear-gradient(135deg,
            rgba(0, 12, 30, 0.9) 0%,
            rgba(2, 18, 40, 0.85) 50%,
            rgba(0, 12, 30, 0.9) 100%);
    border: 2px solid rgba(0, 81, 255, 0.4);
    border-radius: 24px;
    backdrop-filter: blur(30px) saturate(1.3);
    box-shadow:
        0 12px 48px rgba(0, 0, 0, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.15),
        0 0 0 1px rgba(0, 255, 255, 0.2),
        0 0 60px rgba(30, 144, 255, 0.1);
}

.hero-stats .stat {
    flex: 1 1 160px;
    min-width: 140px;
    max-width: 200px;
}

.stat {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 1rem;
    backdrop-filter: none;
    transition: none;
    position: relative;
    overflow: visible;
    box-shadow: none;
    text-align: center;
    min-width: 120px;
}



.stat-number {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(0, 81, 255, 0.5);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}



.btn-large::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 98, 255, 0.6) 25%,
        rgba(0, 64, 255, 0.8) 50%,
        rgba(0, 85, 255, 0.6) 75%,
        transparent 100%);
    border-radius: 20px 20px 0 0;
}



.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    box-shadow:
        0 0 20px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(30, 144, 255, 0.1);
}





/* Problem/Solution Sections - seamless styling with opacity */
.problem {
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    opacity: 0.9;
}

.solution {
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    opacity: 0.9;
}

.problem-grid, .solution-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.problem-list, .solution-list {
    list-style: none;
}

.problem-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    word-wrap: normal;
    overflow-wrap: normal;
    word-break: keep-all;
    hyphens: none;
}

.solution-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Stable Section Titles with Thin Light Blue Outline and Drop Shadow */
/* Section Titles with Thin Light Blue Outline and Drop Shadow */
.section-title {
    font-family: 'Calibri', sans-serif;
    font-size: clamp(1.75rem, 4.5vw, 2.5rem);
    font-weight: bold;
    text-align: center;
    margin-bottom: 0.5rem;
    background: linear-gradient(
        135deg,
        #3399ff 0%,
        #5eb3ff 50%,
        #3d7fff 100%
    );
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.05em;
    /* Thicker light blue outline and black drop shadow for better contrast */
    -webkit-text-stroke: 1.5px rgba(135, 206, 235, 0.7);
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.8));
}

.section-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.2rem;
    line-height: 1.7;
    font-weight: 400;
}

/* CD Cover Art Tiles Grid - Even Spacing */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    max-width: 100%;
    margin: 2rem auto;
    padding: 0 1rem;
    justify-items: center;
    align-items: start;
}

/* Program Card Wrapper - CD Tile Style */
.program-card-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 150px;
    position: relative;
}

/* Desktop: 5 cards across with 5px gap */
@media (min-width: 769px) {
    .features-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 5px;
    }

    .program-card-wrapper {
        max-width: 100%;
    }
}

/* Desktop: Hide mobile elements */
.mobile-program-title,
.mobile-read-more,
.mobile-only-buttons {
    display: none;
}

/* Mobile: Hide desktop elements and clean wrapper */
@media (max-width: 768px) {
    .desktop-only-buttons {
        display: none !important;
    }

    .mobile-only-buttons {
        display: flex !important;
    }

    /* MOBILE: 3-COLUMN COMPACT GRID - NO WRAPPER STYLING */
    .program-card-wrapper {
        background: none;
        border: none;
        border-radius: 0;
        padding: 0;
        margin: 0;
        max-width: 100%;
        width: 100%;
        box-shadow: none;
    }

    /* HIDE mobile title and read more button - we use modal instead */
    .mobile-program-title {
        display: none !important;
    }

    .mobile-read-more {
        display: none !important;
    }
}

/* CD Cover Art Tile Style */
.feature-card {
    background: linear-gradient(135deg,
        rgba(15, 25, 40, 0.95) 0%,
        rgba(20, 35, 55, 0.9) 100%);
    border: 1px solid rgba(30, 144, 255, 0.3);
    border-radius: 8px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 150px;
    aspect-ratio: 1;
    margin: 0 auto;
    position: relative;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-4px) scale(1.05);
    border-color: rgba(30, 144, 255, 0.6);
    box-shadow: 0 4px 16px rgba(30, 144, 255, 0.4);
}





/* CD Cover Art Image Container */
.feature-image {
    width: 100%;
    aspect-ratio: 1;
    position: relative;
    background: linear-gradient(135deg,
        rgba(15, 25, 40, 0.95) 0%,
        rgba(20, 35, 55, 0.9) 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.feature-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(1.0) contrast(1.1) saturate(1.15);
    transition: all 0.3s ease;
    border-radius: 0;
    display: block;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg,
        rgba(15, 25, 40, 0.95) 0%,
        rgba(20, 35, 55, 0.9) 100%);

    /* Image optimization for performance */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

/* Picture element optimization */
picture {
    display: contents;
}

/* Ensure WebP images render properly */
picture img {
    width: 100%;
    height: 100%;
}

/* CD Tile Label - Small Overlay */
.feature-label {
    position: absolute;
    bottom: 0.25rem;
    left: 0.25rem;
    right: 0.25rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.75) 100%);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.65rem;
    padding: 0.3rem 0.4rem;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    letter-spacing: 0.2px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .feature-label {
        font-size: 0.6rem;
        padding: 0.25rem 0.3rem;
    }
}

.feature-card:hover .feature-img {
    transform: scale(1.05);
    filter: brightness(1.2) contrast(1.2) saturate(1.3);
}

/* Feature content removed - now using modal popup */
.feature-content {
    display: none;
    text-align: center;
    gap: 0.5rem;
}




.feature-title {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.feature-description {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    font-weight: 400;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    word-wrap: normal;
    overflow-wrap: normal;
    word-break: keep-all;
    hyphens: none;
    text-align: center;
}

/* Dynamic Social Proof Layout */
.testimonial-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
}

.testimonial-grid .testimonial {
    flex: 1 1 320px;
    max-width: 450px;
    min-width: 300px;
}

.testimonial {
    background: #ffffff;
    border: 1px solid rgba(30, 144, 255, 0.4);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 20px rgba(30, 144, 255, 0.15);
}

.testimonial-text-wrapper {
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    color: #000000;
    margin-bottom: 0.75rem;
    line-height: 1.6;
    word-wrap: normal;
    overflow-wrap: normal;
    word-break: keep-all;
    hyphens: none;
}

.testimonial-preview {
    display: block;
}

.testimonial-full {
    display: none;
    white-space: pre-line;
}

.testimonial-ellipsis {
    color: #333333;
}

.testimonial-toggle {
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.2), rgba(138, 43, 226, 0.2));
    border: 1px solid rgba(30, 144, 255, 0.4);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.5rem;
}

.testimonial-toggle:hover {
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.3), rgba(138, 43, 226, 0.3));
    border-color: rgba(30, 144, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 144, 255, 0.3);
}

.testimonial-toggle .toggle-icon {
    transition: transform 0.3s ease;
    font-size: 0.75rem;
}

.testimonial-toggle.expanded .toggle-icon {
    transform: rotate(180deg);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
    font-weight: 700;
}

.testimonial-info h4 {
    color: #000000;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.testimonial-info p {
    color: #333333;
    font-size: 0.8rem;
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Dynamic Pricing Layout - BASE (Mobile First) */
.pricing-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
    align-items: stretch;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}

.pricing-grid .pricing-card {
    flex: 1 1 auto;
    max-width: 100%;
    min-width: 0;
    width: 100%;
}

/* DESKTOP: Side by side layout */
@media (min-width: 769px) {
    .pricing-grid {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 2rem !important;
        max-width: 1000px !important;
    }

    .pricing-grid .pricing-card {
        flex: 1 1 0 !important;
        max-width: 450px !important;
    }
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid rgba(30, 144, 255, 0.4);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    backdrop-filter: blur(10px);
    position: relative;
    transition: var(--transition);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 20px rgba(30, 144, 255, 0.15);
}

.pricing-card.featured {
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 30px rgba(255, 255, 255, 0.2),
        0 0 0 1px rgba(30, 144, 255, 0.2);
    transform: scale(1.03);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--bg-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.pricing-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-align: center;
}

.pricing-price {
    font-family: 'Orbitron', monospace;
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary);
    text-align: center;
    margin-bottom: 0.25rem;
}

.pricing-period {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 1.75rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.625rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    word-wrap: normal;
    overflow-wrap: normal;
    word-break: keep-all;
    hyphens: none;
}

.pricing-features .check {
    color: var(--primary);
}

.pricing-cta {
    width: 100%;
    justify-content: center;
}

/* Dynamic FAQ Layout */
.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid rgba(30, 144, 255, 0.4);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 20px rgba(30, 144, 255, 0.15);
}

.faq-item h4 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.7;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    word-wrap: normal;
    overflow-wrap: normal;
    word-break: keep-all;
    hyphens: none;
    padding: 0 0.5rem;
}

/* ===== MOBILE RESPONSIVE DESIGN ===== */

/* Small Mobile Devices (320px - 480px) */
@media (max-width: 480px) {
    /* Base Layout */
    body {
        padding-top: 60px;
    }

    /* Header - Compact and Functional */
    .header {
        height: 56px;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
    }

    .header-content {
        padding: 0.35rem 0.5rem;
        height: 56px;
        gap: 0.4rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        max-width: 100vw;
        overflow: visible;
    }

    /* Logo stays on left */
    .dashboard-logo {
        order: 1;
        flex-shrink: 0;
        margin-right: auto;
    }

    /* Hide desktop navigation on small mobile */
    .nav-links {
        display: none !important;
    }


        /* Hide desktop auth buttons on very small screens; user menu stays visible */
        #authButtons { display: none !important; }

    /* Logo - Compact but Readable */
    .logo {
        font-size: 0.9rem;
        flex-shrink: 0;
        min-width: 85px;
    }

    .logo-main {
        font-size: 0.9rem;
        letter-spacing: 0.01em;
    }

    .logo-sub {
        display: none; /* Hide subtitle on very small screens */
    }

    /* Auth Buttons - Better Sizing */
    .auth-buttons {
        display: flex;
        gap: 0.25rem;
        flex-shrink: 1;
        min-width: 0;
        overflow: visible;
    }

    .auth-buttons .btn {
        padding: 0.3rem 0.45rem;
        font-size: 0.65rem;
        white-space: nowrap;
        border-radius: 6px;
    }

    .auth-buttons .btn i {
        font-size: 0.55rem;
        margin-right: 0.1rem;
    }

    /* Mobile Nav Toggle - Better Positioning */
    .mobile-nav-toggle {
        font-size: 1rem;
        padding: 0.4rem;
        background: none;
        border: none;
        color: var(--text-primary);
        cursor: pointer;
        flex-shrink: 0;
        min-width: 36px;
        min-height: 36px;
        order: 4;
    }

    /* User menu and auth buttons ordering */
    .user-menu {
        order: 2;
        flex-shrink: 0;
    }

    .auth-buttons {
        order: 2;
        flex-shrink: 0;
    }

    .ada-toggle-button {
        order: 3;
        flex-shrink: 0;
    }

    /* Keep original dark background on small mobile */
    body {
        padding-top: 56px !important;
    }

    /* Wave layers keep their desktop animations on mobile - just more subtle via opacity at line 3455 */

    /* Hero Section - Better Mobile Spacing */
    .hero {
        min-height: calc(100vh - 56px);
        padding: 1.5rem 0.75rem;
        margin: 0;
    }

    .hero-content {
        padding: 2rem 0.75rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        margin: 0 auto;
        max-width: 100%;
    }

    /* Hero badge handled in main mobile section */

    /* Image optimization handled in main mobile section */



    .hero-title {
        font-size: clamp(2.5rem, 11vw, 4rem) !important;
        padding: 2rem 1rem 0 1rem;
        /* BRIGHTER GRADIENT - Lush and Beautiful */
        background: linear-gradient(
            135deg,
            #3da5ff 0%,
            #5eb8ff 25%,
            #a0d4ff 50%,
            #5eb8ff 75%,
            #3da5ff 100%
        ) !important;
        -webkit-background-clip: text !important;
        background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        -webkit-text-stroke: 0.5px rgba(60, 120, 200, 0.8) !important;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 30px rgba(61, 165, 255, 0.9)) drop-shadow(0 0 60px rgba(94, 184, 255, 0.6)) !important;
        text-rendering: optimizeLegibility;
        -webkit-font-smoothing: antialiased;
    }

    .hero-tagline,
    .section.hero .hero-tagline,
    .hero .hero-tagline {
        font-size: clamp(0.85rem, 3.2vw, 1.3rem) !important;
        letter-spacing: 0.2em;
        margin-bottom: 1rem;
        margin-top: 0.5rem;
        -webkit-text-stroke: 0 !important;
        background: none !important;
        -webkit-background-clip: unset !important;
        -webkit-text-fill-color: #a0d4ff !important;
        color: #a0d4ff !important;
        filter: brightness(1.2) drop-shadow(0 0 10px rgba(160, 212, 255, 0.5)) !important;
        text-rendering: optimizeLegibility;
        -webkit-font-smoothing: antialiased;
    }

    .hero-subtitle,
    .section.hero .hero-subtitle,
    .hero .hero-subtitle {
        font-size: clamp(1.3rem, 6vw, 2rem) !important;
        margin-top: 3rem !important;
        margin-bottom: 2.5rem !important;
        line-height: 1.6 !important;
        padding: 0 1rem !important;
        max-width: 95% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        /* MATCH DESKTOP - Use text-primary color */
        color: var(--text-primary) !important;
        background: none !important;
        position: relative !important;
        z-index: 200 !important;
        font-weight: 400 !important;
    }

    /* CTA Buttons */
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1.25rem;
        width: 100%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .btn-large {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        border-radius: 10px;
        justify-content: center;
        font-weight: 600;
    }

    /* Forms */
    .form-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .form-row .form-group {
        margin-bottom: 1rem;
    }

    .modal-content {
        padding: 1rem;
        margin: 1rem 0;
    }

    /* Mobile sections - Minimal spacing for better flow */
    .section {
        padding: 0.1rem 0;
        margin: 0;
        z-index: 100;
        opacity: 1 !important;
        animation: none !important;
        scroll-margin-top: 56px; /* Account for mobile header */
    }

    /* Mobile Section Containers (except special containers) - Reduced padding for better space usage */
    .section-container:not(.solution-container):not(.problem-container) {
        padding: 0.5rem 0.5rem;
        margin: 0.25rem auto;
        width: calc(100% - 0.5rem);
        max-width: calc(100vw - 0.5rem);
        border-radius: 12px;
        background: linear-gradient(145deg,
            rgba(5, 15, 30, 0.7) 0%,
            rgba(10, 25, 45, 0.65) 50%,
            rgba(5, 15, 30, 0.7) 100%);
        border: 1px solid rgba(99, 102, 241, 0.3);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        opacity: 1 !important;
        animation: none !important;
    }

    .container {
        padding: 0 0.75rem;
    }

    .section-content {
        padding: 0 0.375rem;
    }

    .section-narrow {
        padding: 0 0.375rem;
    }

    /* Mobile text improvements */
    .section p {
        max-width: 100%;
        padding: 0 0.5rem;
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .faq-item p {
        max-width: 100%;
        padding: 0 0.25rem;
        font-size: 0.85rem;
    }

    .problem-list, .solution-list {
        max-width: 100%;
        padding: 0 0.5rem;
    }

    /* Header Images - Mobile Optimized */
    .section-header-image {
        height: 240px;
        margin: 0 0 1rem 0;
        border-radius: 10px;
        width: 100%;
        overflow: hidden;
    }

    .header-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    /* Mobile CD Tiles - SMALL 3 COLUMNS - EVEN SPACING */
    .features-grid {
        grid-template-columns: repeat(3, 1fr); /* EXACTLY 3 columns */
        gap: 0.75rem; /* Even spacing between tiles */
        padding: 0 0.75rem; /* Side padding for even margins */
        max-width: 100%;
        width: 100%;
        margin: 1.5rem 0;
    }

    .program-card-wrapper {
        max-width: 100%;
    }

    /* Hide Muscles card on mobile for even 24-card grid (3 columns x 8 rows) */
    .hide-on-mobile {
        display: none !important;
    }

    /* Ensure solution-container is visible on mobile - Reduced padding for better space usage */
    .section-container.solution-container {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        padding: 0.75rem 0.5rem !important;
        margin: 0.5rem auto !important;
        width: calc(100% - 0.5rem) !important;
    }

    /* Ensure problem-container is visible on mobile - Reduced padding for better space usage */
    .section-container.problem-container {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        padding: 0.75rem 0.5rem !important;
        margin: 0.5rem auto !important;
        width: calc(100% - 0.5rem) !important;
    }

    .feature-card {
        max-width: 100%;
        margin: 0;
        border-radius: 6px;
        min-height: auto;
        border: 1px solid rgba(30, 144, 255, 0.3);
        background: linear-gradient(135deg,
            rgba(15, 25, 40, 0.95) 0%,
            rgba(20, 35, 55, 0.9) 100%);
        aspect-ratio: 1; /* Keep square */
    }

    .feature-image {
        aspect-ratio: 1;
        padding: 0;
        min-height: 80px;
        height: 100%;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .feature-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        display: block !important;
        margin: 0 auto !important;
        min-height: 80px !important;
    }

    /* Show smaller label on mobile */
    .feature-label {
        display: block !important;
        font-size: 0.5rem; /* Smaller for compact tiles */
        padding: 0.15rem 0.2rem;
        line-height: 1.1;
    }

    /* Hide feature content */
    .feature-content {
        display: none !important;
    }

    /* Modal Image on Mobile - Larger */
    .modal-program-image {
        max-width: 250px;
        margin: 0 auto 1rem auto;
    }

    .modal-program-image img {
        border-radius: 10px;
    }
}

/* Tablet and Medium Mobile Devices (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    /* Use base background with gleam effect */
    body {
        padding-top: 65px;
        background-color: #0a0f1a;
    }

    /* Tablet Header - Better Spacing */
    .header {
        height: 65px;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
    }

    .header-content {
        padding: 0.5rem 1rem;
        height: 65px;
        gap: 0.75rem;
        justify-content: space-between;
    }

    /* Tablet Logo */
    .logo {
        font-size: 1.2rem;
        min-width: 120px;
    }

    .logo-main {
        font-size: 1.2rem;
    }

    .logo-sub {
        font-size: 0.65rem;
    }

    /* Tablet Nav Links - Reduced spacing */
    .nav-links {
        gap: 1.25rem;
    }

    .nav-links a {
        font-size: 0.85rem;
        padding: 0.4rem 0.75rem;
    }

    /* Tablet Auth Buttons - Better sizing */
    .auth-buttons {
        display: flex;
        gap: 0.35rem;
        flex-shrink: 0;
    }

    .auth-buttons .btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .auth-buttons .btn i {
        font-size: 0.7rem;
        margin-right: 0.15rem;
    }

    /* Tablet Mobile Nav Toggle */
    .mobile-nav-toggle {
        display: none;
    }

    /* Medium Mobile Program Cards - 3 COLUMNS - EVEN SPACING */
    .features-grid {
        grid-template-columns: repeat(3, 1fr); /* EXACTLY 3 columns */
        gap: 1rem; /* Even spacing */
        max-width: 100%;
        padding: 0 1rem; /* Side padding for even margins */
        margin: 1.5rem 0;
    }

    .program-card-wrapper {
        max-width: 100%;
    }

    /* Hide Muscles card on mobile for even 24-card grid (3 columns x 8 rows) */
    .hide-on-mobile {
        display: none !important;
    }

    /* Ensure solution-container is visible on medium mobile - Reduced padding for better space usage */
    .section-container.solution-container {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        padding: 1rem 0.75rem !important;
        margin: 0.75rem auto !important;
        width: calc(100% - 0.75rem) !important;
    }

    /* Ensure problem-container is visible on medium mobile - Reduced padding for better space usage */
    .section-container.problem-container {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        padding: 1rem 0.75rem !important;
        margin: 0.75rem auto !important;
        width: calc(100% - 0.75rem) !important;
    }

    .feature-card {
        max-width: 100%;
        border-radius: 6px;
        aspect-ratio: 1; /* Square tiles */
        margin: 0;
    }

    .feature-image {
        aspect-ratio: 1;
        padding: 0;
        min-height: 100px;
        height: 100%;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .feature-content {
        display: none !important;
    }

    .feature-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        display: block !important;
        margin: 0 auto !important;
        min-height: 100px !important;
    }

    .feature-label {
        display: block !important;
        font-size: 0.55rem; /* Small label */
        padding: 0.2rem 0.25rem;
        line-height: 1.1;
    }

    /* Hero badge handled in main mobile section */

    /* Image optimization handled in main mobile section */

    /* Container styling handled in main mobile CSS section */

    /* Header - Medium Mobile */
    .header {
        height: 65px;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
    }

    .header-content {
        padding: 0.75rem 1.25rem;
        height: 65px;
        width: 100%;
        max-width: 100%;
        gap: 1rem;
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }

    /* Logo stays on left */
    .dashboard-logo {
        order: 1;
        flex-shrink: 0;
    }

    /* Logo */
    .logo {
        font-size: 1.2rem;
    }

    .logo-main {
        font-size: 1.2rem;
        letter-spacing: 0.02em;
    }

    .logo-sub {
        font-size: 0.6rem;
        opacity: 0.8;
    }

    /* Auth Buttons */
    .auth-buttons {
        gap: 0.25rem;
        flex-wrap: nowrap;
    }

    .auth-buttons .btn {
        padding: 0.4rem 0.7rem;
        font-size: 0.75rem;
        white-space: nowrap;
        min-width: auto;
    }

    .auth-buttons .btn i {
        font-size: 0.7rem;
        margin-right: 0.25rem;
    }

    /* Mobile Nav Toggle */
    .mobile-nav-toggle {
        font-size: 1.1rem;
        padding: 0.25rem;
        color: var(--text-primary);
    }

    /* Hero Section - Medium Mobile */
    .hero {
        min-height: calc(100vh - 65px);
        padding: 1.5rem 1rem;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .hero-content {
        padding: 1.25rem 1rem;
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        margin: 0 auto;
    }

    .hero-title {
        font-size: clamp(2.8rem, 11vw, 4.2rem) !important;
        padding: 0 1.25rem;
        /* BRIGHTER GRADIENT - Lush and Beautiful */
        background: linear-gradient(
            135deg,
            #3da5ff 0%,
            #5eb8ff 25%,
            #a0d4ff 50%,
            #5eb8ff 75%,
            #3da5ff 100%
        ) !important;
        -webkit-background-clip: text !important;
        background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        -webkit-text-stroke: 0.5px rgba(60, 120, 200, 0.8) !important;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 30px rgba(61, 165, 255, 0.9)) drop-shadow(0 0 60px rgba(94, 184, 255, 0.6)) !important;
        text-rendering: optimizeLegibility;
        -webkit-font-smoothing: antialiased;
    }

    .hero-tagline,
    .section.hero .hero-tagline,
    .hero .hero-tagline {
        font-size: clamp(0.95rem, 3.5vw, 1.4rem) !important;
        letter-spacing: 0.15em;
        margin-bottom: 1.5rem;
        -webkit-text-stroke: 0 !important;
        background: none !important;
        -webkit-background-clip: unset !important;
        -webkit-text-fill-color: #a0d4ff !important;
        color: #a0d4ff !important;
        filter: brightness(1.2) drop-shadow(0 0 10px rgba(160, 212, 255, 0.5)) !important;
        text-rendering: optimizeLegibility;
        -webkit-font-smoothing: antialiased;
    }

    .hero-subtitle,
    .section.hero .hero-subtitle,
    .hero .hero-subtitle {
        font-size: clamp(1.3rem, 4.5vw, 1.9rem) !important;
        margin-top: 1.8rem !important;
        margin-bottom: 2.8rem !important;
        line-height: 1.5 !important;
        padding: 0 2rem !important;
        max-width: 85% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        background: none !important;
        position: relative !important;
        z-index: 200 !important;
        /* MATCH DESKTOP - Use text-primary color */
        color: var(--text-primary) !important;
        font-weight: 400 !important;
    }



    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
        margin: 2rem 0;
        padding: 1rem 1rem;
        max-width: 500px;
    }

    .hero-stats .stat {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 140px;
    }

    .stat {
        padding: 1rem 0.75rem;
    }

    .stat-number {
        font-size: 1.2rem;
    }

    /* CTA Buttons - Medium Mobile */
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1.5rem;
        width: 100%;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .btn-large {
        padding: 1.1rem 1.75rem;
        font-size: 1.05rem;
        width: 100%;
        border-radius: 12px;
        justify-content: center;
        font-weight: 600;
    }

    /* Medium mobile sections - Compact spacing */
    .section {
        padding: 0.2rem 0;
        margin: 0.1rem 0;
        z-index: 100;
        opacity: 1 !important;
        animation: none !important;
        scroll-margin-top: 65px; /* Account for medium mobile header */
    }

    /* Medium Mobile Section Containers (except special containers) - Reduced padding for better space usage */
    .section-container:not(.solution-container):not(.problem-container) {
        padding: 0.75rem 0.75rem;
        margin: 0.375rem auto;
        width: calc(100% - 0.75rem);
        max-width: calc(100vw - 0.75rem);
        border-radius: 14px;
        background: linear-gradient(145deg,
            rgba(5, 15, 30, 0.7) 0%,
            rgba(10, 25, 45, 0.65) 50%,
            rgba(5, 15, 30, 0.7) 100%);
        border: 1px solid rgba(99, 102, 241, 0.3);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        opacity: 1 !important;
        animation: none !important;
    }

    .container {
        padding: 0 1.25rem;
    }

    .section-content {
        padding: 0 0.625rem;
    }

    .section-narrow {
        padding: 0 0.5rem;
        max-width: 100%;
    }

    /* Tablet text improvements */
    .section p {
        max-width: 700px;
        padding: 0 1rem;
        font-size: 1rem;
        line-height: 1.7;
    }

    .faq-item p {
        max-width: 550px;
        padding: 0 0.75rem;
    }

    .problem-list, .solution-list {
        max-width: 600px;
        padding: 0 1rem;
    }

    /* Header Images - Medium Mobile */
    .section-header-image {
        height: 280px;
        margin: 0 0 1.25rem 0;
        border-radius: 12px;
        width: 100%;
        overflow: hidden;
    }

    .header-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

/* Mobile Performance Optimizations */
@media (max-width: 768px) {
    /* Use base background with gleam effect */
    body {
        background-color: #0a0f1a;
    }

    /* Ensure proper mobile text scaling */
    html {
        font-size: 16px;
    }



    /* Mobile Typography - Smaller, crisp, elegant with solid color */

    .hero-title {
        font-size: clamp(2.5rem, 11vw, 4rem) !important;
        padding: 1rem 1.5rem;
        /* BRIGHTER GRADIENT - Lush and Beautiful */
        background: linear-gradient(
            135deg,
            #3da5ff 0%,
            #5eb8ff 25%,
            #a0d4ff 50%,
            #5eb8ff 75%,
            #3da5ff 100%
        ) !important;
        -webkit-background-clip: text !important;
        background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        -webkit-text-stroke: 0.5px rgba(60, 120, 200, 0.8) !important;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 30px rgba(61, 165, 255, 0.9)) drop-shadow(0 0 60px rgba(94, 184, 255, 0.6)) !important;
        text-rendering: optimizeLegibility;
        -webkit-font-smoothing: antialiased;
    }

    .hero-tagline {
        font-size: clamp(0.85rem, 3.2vw, 1.3rem) !important;
        -webkit-text-stroke: 0 !important;
        background: none !important;
        -webkit-background-clip: unset !important;
        -webkit-text-fill-color: #a0d4ff !important;
        color: #a0d4ff !important;
        filter: brightness(1.2) drop-shadow(0 0 10px rgba(160, 212, 255, 0.5)) !important;
        text-rendering: optimizeLegibility;
        -webkit-font-smoothing: antialiased;
    }

    .section-title {
        font-size: clamp(1.5rem, 4vw, 2.2rem) !important;
        -webkit-text-stroke: 0 !important;
        background: none !important;
        -webkit-background-clip: unset !important;
        -webkit-text-fill-color: #a0d4ff !important;
        color: #a0d4ff !important;
        filter: brightness(1.2) drop-shadow(0 0 10px rgba(160, 212, 255, 0.5)) !important;
        text-rendering: optimizeLegibility;
        -webkit-font-smoothing: antialiased;
    }

    .section-subtitle {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
        max-width: 90%;
    }

    /* Hide username text to prevent overflow */
    .user-menu .user-name {
        display: none;
    }

    /* Brighter images with higher contrast on mobile */
    img, .feature-img, .header-img, .research-thumbnail img {
        filter: brightness(1.3) contrast(1.2) !important;
    }

    /* Container styling consolidated - handled in main mobile sections */

    /* Enhanced button contrast */
    .btn-primary {
        background: linear-gradient(135deg,
            rgba(0, 255, 255, 1.0) 0%,
            rgba(30, 144, 255, 0.9) 50%,
            rgba(0, 255, 255, 1.0) 100%) !important;
        color: rgba(0, 8, 20, 1.0) !important;
    }

    /* Ad Module Tablet/Medium Mobile Styles */
    .ad-module-section {
        margin: 2.5rem 0 2rem;
        padding: 2rem 0;
    }

    .ad-module-title {
        font-size: 1.5rem;
        margin-bottom: 1.75rem;
    }

    .ad-module-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 0 1rem;
    }

    .ad-card-header h4 {
        font-size: 0.95rem;
    }

    .ad-card-content p {
        font-size: 0.85rem;
    }

    .ad-card-image-wrapper {
        aspect-ratio: 3/2;
    }

    .ad-card-image {
        aspect-ratio: 4/3;
    }

    .ad-card-image img {
        object-fit: contain;
    }

    /* Disable hover previews on tablet for better performance */
    .site-preview-overlay,
    .instagram-preview-overlay {
        display: none;
    }

    /* Removed hover effects */





    /* MOBILE PERFORMANCE OPTIMIZATION: Hide all visual effects for maximum performance */

    /* Keep wave layers visible on mobile */

    /* Keep background effects visible on mobile */

    /* Mobile spheres - BRIGHT AND VISIBLE (user preference) */
    .energy-orb {
        transform: scale(0.9) translate3d(0, 0, 0) !important;
        opacity: 0.47 !important;
        filter: brightness(1.3) !important;
        backface-visibility: hidden !important;
        -webkit-backface-visibility: hidden !important;
    }

    /* Mobile global energy orbs - BRIGHT AND VISIBLE (user preference) */
    .global-energy-field .energy-orb {
        transform: scale(0.85) translate3d(0, 0, 0) !important;
        opacity: 0.47 !important;
        filter: brightness(1.3) !important;
        will-change: auto !important;
    }

    /* Mobile site spheres - BRIGHT AND VISIBLE (user preference) */
    .site-background-spheres .energy-orb {
        transform: scale(0.8) translate3d(0, 0, 0) !important;
        opacity: 0.47 !important;
        filter: brightness(1.3) !important;
        will-change: auto !important;
    }

    /* Keep all site spheres visible on mobile */

    /* Hide wellness energy orbs */
    .wellness-energy-orbs {
        display: none !important;
    }

    /* Allow wave elements on mobile */

    /* Mobile Performance Optimizations - Simplified */

    /* Disable heavy backdrop filters on mobile for performance */
    .header,
    .mobile-nav,
    .modal-overlay,
    .modal-content,
    .pricing-card,
    .research-card {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    /* Keep feature cards solid and visible on mobile */
    .feature-card {
        background: linear-gradient(135deg,
            rgba(15, 25, 40, 0.98) 0%,
            rgba(20, 35, 55, 0.95) 100%) !important;
        border: 1px solid rgba(30, 144, 255, 0.4) !important;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    /* Ensure section containers remain visible on mobile (except special containers) */
    .section-container:not(.solution-container):not(.problem-container) {
        background: linear-gradient(145deg,
            rgba(5, 15, 30, 0.7) 0%,
            rgba(10, 25, 45, 0.65) 50%,
            rgba(5, 15, 30, 0.7) 100%) !important;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        opacity: 1 !important;
        animation: none !important;
    }

    /* Keep wave layers visible and bright on mobile */
    .audio-wave-visualization {
        opacity: 1.0;
    }

    .wave-layer {
        opacity: 0.35 !important;
    }

    /* Disable parallax on mobile for performance */
    .parallax-layer {
        transform: none !important;
        will-change: auto !important;
    }

    /* Energy orbs enabled on mobile - but limit to improve performance */
    /* Hide extra orbs on mobile to improve performance - keep only 5 orbs */
    .optimized-orb-6,
    .optimized-orb-7,
    .optimized-orb-8 {
        display: none !important;
    }

    /* Parallax enabled on mobile */

    /* Optimize rendering */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeSpeed;
    }

    /* Remove smooth scrolling - causes jerkiness */

    /* Optimize touch interactions */
    button, .btn, a {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    /* Prevent zoom on input focus */
    input, select, textarea {
        font-size: 16px;
    }
}

/* Portrait Mode Specific Optimizations */
@media (max-width: 768px) and (orientation: portrait) {
    /* Use base background with gleam effect */
    body {
        background-color: #0a0f1a;
    }

    /* Duplicate wave-layer rule removed - using main mobile definition */

    /* Enhanced text visibility for portrait mode */
    .hero-subtitle {
        z-index: 200 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        /* MATCH DESKTOP - Use text-primary color (removed text-shadow override) */
        color: var(--text-primary) !important;
    }


}

/* Desktop and Large Screens (769px+) */
@media (min-width: 769px) {
    /* Base Layout */
    body {
        padding-top: 80px;
    }

    /* Header */
    .header {
        height: 80px;
    }

    .header-content {
        padding: 1rem 2rem;
        height: 80px;
    }

    /* Navigation */
    .nav-links {
        display: flex;
        justify-content: center;
    }

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

    .mobile-nav {
        display: none;
    }

    /* Hero Section */
    .hero {
        padding: 1rem 1rem;
        min-height: calc(100vh - 80px);
    }

    .hero-content {
        padding: 1.5rem 1rem 0.75rem 1rem;
    }

    .hero-stats {
        flex-direction: row;
        flex-wrap: nowrap;
    }

    .hero-stats .stat {
        flex: 1 1 auto;
        min-width: 160px;
    }

    .features {
        padding: 1.5rem 1rem;
    }

    .cta-buttons {
        flex-wrap: nowrap;
        flex-direction: row;
    }

    .btn-large {
        width: auto;
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 5px;
        max-width: 100%;
        padding: 0 1.5rem; /* Even side padding */
        margin: 2rem auto;
    }

    .program-card-wrapper {
        max-width: 100%;
    }

    .feature-card {
        max-width: 100%;
    }

    .feature-image {
        aspect-ratio: 1;
        padding: 0;
    }

    .feature-content {
        padding: 1rem 1.5rem 1.5rem 1.5rem;
        gap: 0.5rem;
    }

    .hero-title {
        font-size: clamp(5rem, 10vw, 7rem);
    }

    .hero-subtitle,
    .section.hero .hero-subtitle,
    .hero .hero-subtitle {
        font-size: clamp(1.4rem, 3vw, 1.8rem) !important; /* Better desktop scaling */
        padding: 0 3rem !important; /* More margin for desktop */
        max-width: 80% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        background: none !important;
        position: relative !important;
        z-index: 200 !important;
        color: var(--text-primary) !important;
    }

    /* Large desktop text improvements */
    .section p {
        max-width: 900px;
        padding: 0 1.5rem;
        font-size: 1.1rem;
        line-height: 1.8;
    }

    .faq-item p {
        max-width: 700px;
        padding: 0 1rem;
        font-size: 1rem;
    }

    .problem-list, .solution-list {
        max-width: 750px;
        padding: 0 1.5rem;
    }
}

@media (min-width: 1440px) {
    .hero-content {
        max-width: 1000px;
    }

    .hero-title {
        font-size: 7.5rem;
    }

    /* Extra large desktop - 5 cards across with 5px gap */
    .features-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 5px;
        max-width: 100%;
        padding: 0 2rem; /* Even side padding */
        margin: 2rem auto;
    }

    .program-card-wrapper {
        max-width: 100%;
    }

    .feature-card {
        max-width: 100%;
    }

    .feature-image {
        aspect-ratio: 1;
        padding: 0;
    }

    .feature-content {
        padding: 1rem 1.25rem 1.25rem 1.25rem;
        flex: 1;
    }

    .feature-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
}

/* Reduced motion preferences and mobile optimization */
@media (prefers-reduced-motion: reduce) {
    .hero::before,
    .hero::after,
    .bg-effects,
    .bg-effects::before,
    .bg-effects::after,
    .hero-title,
    .site-sphere-1,
    .site-sphere-2,
    .site-sphere-3,
    .site-sphere-4,
    .site-sphere-5,
    .site-sphere-6,
    .site-sphere-7 {
        animation: none;
    }

    /* Slower energy waves for reduced motion */
    .energy-wave {
        animation-duration: 8s; /* Slower for reduced motion */
    }

    .sound-wave {
        animation-duration: 8s; /* Slower for reduced motion */
    }
}



/* Modal Styles */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 1rem;
    overflow-y: auto;
}

.auth-modal.hidden {
    display: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(30, 144, 255, 0.4);
    border-radius: 16px;
    padding: 1.5rem;
    max-width: 420px;
    width: 100%;
    backdrop-filter: blur(20px);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 20px rgba(30, 144, 255, 0.15);
    margin: auto 0;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition);
}



.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    position: relative;
    margin-bottom: 1rem;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-label {
    display: block;
    margin-bottom: 0.375rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.form-input {
    width: 100%;
    padding: 0.625rem 1rem 0.625rem 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(30, 144, 255, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow:
        0 0 20px rgba(30, 144, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.form-input:focus {
    outline: none;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        0 0 0 3px rgba(30, 144, 255, 0.2),
        0 0 20px rgba(255, 255, 255, 0.1);
}

.form-icon {
    position: absolute;
    left: 0.875rem;
    top: 2rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.password-toggle {
    position: absolute;
    right: 0.875rem;
    top: 2rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
}



.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.link-button {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    text-decoration: none;
    font-size: 0.875rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.form-divider {
    text-align: center;
    margin: 1rem 0;
    position: relative;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.form-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

.form-divider span {
    background: var(--bg-card);
    padding: 0 1rem;
}

.auth-switch {
    text-align: center;
    color: var(--text-secondary);
}

.coupon-status {
    position: relative;
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.coupon-status.valid {
    background: rgba(34, 197, 94, 0.1);
    color: #22a2c5;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.coupon-status.invalid {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.coupon-status.checking {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.coupon-status.info {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.hidden {
    display: none !important;
}

/* Authentication-conditional content */
.auth-conditional {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.auth-conditional.hidden {
    display: none !important;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.user-info:hover {
    background: rgba(30, 144, 255, 0.05);
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.3;
}

.user-status {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(30, 144, 255, 0.15);
    padding: 0.1rem 0.4rem;
    border-radius: 12px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-left: 0.35rem;
    border: 1px solid rgba(30, 144, 255, 0.2);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

/* Button sizing variants */
.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.user-menu .btn-sm {
    padding: 0.35rem 0.7rem;
    font-size: 0.75rem;
    border-radius: 8px;
}

.user-menu .btn-primary {
    background:
        linear-gradient(135deg,
            rgba(160, 200, 255, 0.95) 0%,
            rgba(200, 220, 255, 0.9) 50%,
            rgba(180, 210, 255, 0.95) 100%);
    color: rgba(10, 20, 40, 0.95);
    border: 1px solid rgba(100, 150, 255, 0.5);
    font-weight: 700;
}



/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-content {
    text-align: center;
    color: var(--text-primary);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Notifications */
.notification-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 2500;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.notification-container.top-right {
    top: 1rem;
    right: 1rem;
    left: auto;
}

.notification-container.top-center {
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    align-items: center;
}

.notification {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    min-width: 300px;
    backdrop-filter: blur(10px);
    box-shadow: var(--glow);
    transform: translateX(100%);
    animation: slideIn 0.3s ease-out forwards;
}

.notification.success {
    border-color: #2240c5;
}

.notification.error {
    border-color: #ef4444;
}

.notification.warning {
    border-color: #f59e0b;
}

@keyframes slideIn {
    to { transform: translateX(0); }
}

/* Advanced Notification System */
.advanced-notification {
    position: relative;
    background: linear-gradient(135deg, rgba(10, 15, 30, 0.98) 0%, rgba(15, 25, 50, 0.95) 100%);
    border-radius: 12px;
    padding: 0;
    min-width: 320px;
    max-width: 500px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(30, 144, 255, 0.2);
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.advanced-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.advanced-notification.hide {
    opacity: 0;
    transform: translateY(-20px);
}

.advanced-notification.success {
    border: 1.5px solid rgba(30, 144, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 30px rgba(30, 144, 255, 0.3);
}

.advanced-notification.error {
    border: 1.5px solid rgba(239, 68, 68, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 30px rgba(239, 68, 68, 0.3);
}

.advanced-notification.warning {
    border: 1.5px solid rgba(245, 158, 11, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 30px rgba(245, 158, 11, 0.3);
}

.advanced-notification.info {
    border: 1.5px solid rgba(59, 130, 246, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 30px rgba(59, 130, 246, 0.3);
}

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    position: relative;
}

.notification-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.25rem;
}

.advanced-notification.success .notification-icon {
    background: rgba(30, 144, 255, 0.2);
    color: #1e90ff;
}

.advanced-notification.error .notification-icon {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.advanced-notification.warning .notification-icon {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.advanced-notification.info .notification-icon {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.notification-text {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.notification-message {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.notification-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: transparent;
    overflow: hidden;
}

.notification-progress.animate {
    animation: progressBar linear forwards;
}

.notification-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    transform: translateX(-100%);
}

.advanced-notification.success .notification-progress::after {
    background: linear-gradient(90deg, transparent, #1e90ff);
    animation: progressBar linear forwards;
}

.advanced-notification.error .notification-progress::after {
    background: linear-gradient(90deg, transparent, #ef4444);
    animation: progressBar linear forwards;
}

.advanced-notification.warning .notification-progress::after {
    background: linear-gradient(90deg, transparent, #f59e0b);
    animation: progressBar linear forwards;
}

.advanced-notification.info .notification-progress::after {
    background: linear-gradient(90deg, transparent, #3b82f6);
    animation: progressBar linear forwards;
}

@keyframes progressBar {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Mobile responsive notifications */
@media (max-width: 768px) {
    .notification-container {
        top: 0.5rem;
        right: 0.5rem;
        left: 0.5rem;
        align-items: stretch;
    }

    .advanced-notification {
        min-width: auto;
        max-width: 100%;
    }

    .notification-content {
        padding: 1rem;
    }

    .notification-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .notification-title {
        font-size: 0.95rem;
    }

    .notification-message {
        font-size: 0.85rem;
    }
}

/* Sci-Fi Loading Spinner */
.sci-fi-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
}

.spinner-ring {
    position: absolute;
    border: 2px solid transparent;
    border-radius: 50%;
    animation: spinnerRotate 2s linear infinite;
}

.spinner-ring:nth-child(1) {
    width: 80px;
    height: 80px;
    border-top: 2px solid #1e90ff;
    animation-duration: 2s;
}

.spinner-ring:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 10px;
    left: 10px;
    border-right: 2px solid #001eff;
    animation-duration: 1.5s;
    animation-direction: reverse;
}

.spinner-ring:nth-child(3) {
    width: 40px;
    height: 40px;
    top: 20px;
    left: 20px;
    border-bottom: 2px solid #0064c8;
    animation-duration: 1s;
}

@keyframes spinnerRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    opacity: 0.9;
    /* Removed loading pulse animation */
}



/* Global Spinner Styles - Consistent across all pages */
.spinner-small {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

/* Responsive Navigation Rules */
@media (max-width: 1024px) {
    .nav-links {
        display: none !important;
    }

    .mobile-nav-toggle {
        display: flex !important;
    }
}

@media (min-width: 1025px) {
    .nav-links {
        display: flex !important;
    }

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

    .mobile-nav {
        display: none !important;
    }
}

/* Mobile User Menu Improvements */
@media (max-width: 1024px) {
    .user-menu {
        gap: 0.5rem;
    }

    .user-info {
        padding: 0.2rem 0.4rem;
    }

    .user-name {
        font-size: 0.8rem;
    }

    .user-status {
        font-size: 0.6rem;
        padding: 0.05rem 0.3rem;
    }
}

/* Remove duplicate mobile nav styles - already defined above */

.mobile-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-auth-buttons .btn {
    justify-content: center;
    padding: 1rem 1.5rem;
    width: 100%;
    min-height: 48px; /* Better touch target */
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-auth-buttons .btn:hover,
.mobile-auth-buttons .btn:active {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 144, 255, 0.3);
}

.mobile-auth-buttons .btn-primary {
    background:
        linear-gradient(135deg,
            rgba(160, 200, 255, 0.95) 0%,
            rgba(200, 220, 255, 0.9) 50%,
            rgba(180, 210, 255, 0.95) 100%);
    color: rgba(10, 20, 40, 0.95);
    border: 1px solid rgba(100, 150, 255, 0.5);
    font-weight: 700;
}

.mobile-auth-buttons .btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.mobile-auth-buttons .btn-outline:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

/* User Menu Mobile Styles */
@media (max-width: 768px) {
    /* Auth buttons container - push to right */
    .auth-buttons {
        display: flex;
        align-items: center;
        margin-left: auto;
        order: 2; /* Place after logo but before hamburger */
    }

    .user-menu {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        flex-shrink: 0;
        position: static;
        width: auto;
        background: none;
        backdrop-filter: none;
        border: none;
        border-radius: 0;
        padding: 0;
        margin: 0;
        overflow: visible;
    }

    .user-info {
        display: flex;
        align-items: center;
        gap: 0;
        cursor: pointer;
        padding: 0;
        border-radius: 6px;
        transition: var(--transition);
        margin: 0;
        flex-shrink: 0;
        min-width: 0;
    }

    .user-info:hover {
        background: rgba(30, 144, 255, 0.08);
    }

    /* Hide user name on mobile to save space */
    .user-name {
        display: none !important;
    }

    /* Make status badge more prominent on mobile - position next to hamburger */
    .user-status {
        display: inline-flex !important;
        align-items: center;
        white-space: nowrap;
        font-size: 0.6rem;
        padding: 0.2rem 0.4rem;
        margin: 0;
        flex-shrink: 0;
        font-weight: 600;
    }

    /* Hide launch button on mobile */
    .user-menu .btn {
        display: none !important;
    }

    .user-menu .btn i {
        font-size: 0.55rem;
    }

    .user-menu .btn-sm {
        padding: 0.25rem 0.4rem;
    }

    /* Hide button text on mobile, show only icon */
    .user-menu .btn .label {
        display: none;
    }

    /* Mobile Navigation adjustments for smaller screens */
    .mobile-nav {
        top: 56px;
        height: calc(100vh - 56px);
        padding: 1rem;
    }
}

    .mobile-nav-links a {
        font-size: 1rem;
        padding: 0.875rem 0;
        min-height: 44px;
    }

    .mobile-auth-buttons {
        gap: 0.75rem;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }

    .mobile-auth-buttons .btn {
        padding: 0.875rem 1rem;
        min-height: 44px;
        font-size: 0.95rem;
    }

    /* Show mobile elements on tablet */
    .mobile-program-title {
        display: block !important;
        font-family: 'Orbitron', monospace;
        font-size: 1.3rem;
        font-weight: 700;
        color: var(--text-primary);
        margin-top: 1.25rem;
        margin-bottom: 0.75rem;
        text-align: left;
        padding-left: 0.25rem;
    }

    .mobile-read-more {
        display: inline-flex !important;
        align-items: center;
        gap: 0.5rem;
        background: linear-gradient(135deg, rgba(30, 144, 255, 0.2), rgba(0, 100, 200, 0.3));
        border: 1px solid rgba(30, 144, 255, 0.4);
        color: var(--text-primary);
        padding: 0.875rem 1.75rem;
        border-radius: 8px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        align-self: flex-start;
        margin-left: 0.25rem;
    }

    .mobile-read-more:hover {
        background: linear-gradient(135deg, rgba(30, 144, 255, 0.3), rgba(0, 100, 200, 0.4));
        border-color: rgba(30, 144, 255, 0.6);
        transform: translateX(5px);
    }

    /* Pricing grid mobile styles handled by base mobile-first styles */
    .pricing-card.featured {
        transform: scale(1.0);
    }
}

/* Ultra-small mobile screens (320px) */
@media (max-width: 375px) {
    .header {
        padding: 0 0.75rem;
        height: 60px;
    }

    .mobile-nav {
        top: 60px;
        height: calc(100vh - 60px);
        padding: 0.75rem;
    }

    .mobile-nav-links a {
        font-size: 0.95rem;
        padding: 0.75rem 0;
        min-height: 40px;
    }

    .mobile-nav-toggle {
        padding: 0.5rem;
        min-width: 40px;
        min-height: 40px;
        font-size: 1.1rem;
    }

    .user-info .user-name {
        display: none; /* Hidden on mobile */
    }

    .user-status {
        font-size: 0.58rem;
        padding: 0.12rem 0.3rem;
        font-weight: 600;
    }

    .mobile-auth-buttons .btn {
        padding: 0.75rem 1rem;
        min-height: 40px;
        font-size: 0.9rem;
    }

    /* Ensure modal is properly sized on very small screens */
    .modal-content {
        margin: 1rem;
        max-width: calc(100vw - 2rem);
        padding: 1rem;
    }

    /* Optimize text for very small screens */
    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
}

/* Production-ready mobile optimizations */
@media (max-width: 1024px) {
    /* Reduce motion for users who prefer it */
    @media (prefers-reduced-motion: reduce) {
        .mobile-nav,
        .mobile-nav-toggle,
        .mobile-nav-links a,
        .mobile-auth-buttons .btn {
            animation: none;
            transition: none;
        }
    }

    /* High contrast mode support */
    @media (prefers-contrast: high) {
        .mobile-nav {
            border: 2px solid var(--primary);
        }

        .mobile-nav-links a {
            border-bottom-width: 2px;
        }

        .user-status {
            border-width: 2px;
        }
    }

    /* Dark mode improvements for mobile */
    @media (prefers-color-scheme: dark) {
        .mobile-nav {
            background: rgba(5, 5, 10, 0.99);
        }

        .mobile-nav-toggle:focus {
            outline-color: var(--secondary);
        }
    }

    /* Safe area support for iPhone X+ models - Clean app-style navbar */
    .header {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
        padding-top: env(safe-area-inset-top);
        height: calc(70px + env(safe-area-inset-top));
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        border-bottom: none !important;
        box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
    }

    body {
        padding-top: calc(70px + env(safe-area-inset-top));
    }

    .mobile-nav {
        padding-left: max(1.5rem, env(safe-area-inset-left));
        padding-right: max(1.5rem, env(safe-area-inset-right));
        padding-bottom: max(2rem, env(safe-area-inset-bottom));
        top: calc(70px + env(safe-area-inset-top));
        height: calc(100vh - 70px - env(safe-area-inset-top));
    }
}

    .testimonial-grid {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
    }

    .testimonial-grid .testimonial {
        flex: 1 1 auto;
        max-width: 100%;
    }

    /* Prevent horizontal scroll */
    * {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Fix any overflowing elements */
    img, video, iframe {
        max-width: 100%;
        height: auto;
    }

    /* Text wrapping for mobile - prevent mid-word breaks and hyphens */
    h1, h2, h3, h4, h5, h6, p, span, div {
        word-wrap: normal;
        overflow-wrap: normal;
        word-break: keep-all;
        hyphens: none;
        white-space: normal;
    }
}

.spinner-large {
    width: 60px;
    height: 60px;
    border-width: 4px;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}


/* Ensure stable text rendering globally */
h1, h2, h3, h4, h5, h6, p, span, div, a, button {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Prevent text flickering in hero section */
.hero h1, .hero h2, .hero h3, .hero p, .hero span {
    transform: translateZ(0);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .energy-orb::before,
    .energy-orb::after {
        animation-duration: 40s !important;
    }

    .wave-layer {
        opacity: 0.25 !important;
    }
}





/* Large Desktop Screens */
@media (min-width: 1400px) {
    .container, .section-container:not(.problem-container):not(.solution-container) {
        max-width: 1400px;
        padding: 1rem 1.5rem;
    }

    /* Large Desktop Header Images */
    .section-header-image {
        height: 350px;
        margin-bottom: 2.5rem;
        border-radius: 16px;
    }
}

/* Affiliate Section */
.affiliate-section {
    margin: 3rem 0 2rem;
    padding: 2.5rem 0;
    border-top: 1px solid rgba(30, 144, 255, 0.2);
    border-bottom: 1px solid rgba(30, 144, 255, 0.2);
    scroll-margin-top: 100px; /* Account for fixed header */
}

.affiliate-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.affiliate-title {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #1e90ff 0%, #00ffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.affiliate-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.affiliate-section .btn {
    margin-top: 1rem;
}

/* Channel URL Prefix Styles */
.channel-url-prefix-display {
    background: rgba(30, 144, 255, 0.08);
    border: 1px solid rgba(30, 144, 255, 0.25);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    color: #1e90ff;
    font-size: 0.95rem;
    font-family: 'Courier New', monospace;
    word-break: break-all;
    line-height: 1.6;
}

.channel-username-input {
    margin-top: 0 !important;
}

/* Human Verification Styles */
.human-verification {
    background: rgba(30, 144, 255, 0.05);
    border: 1px solid rgba(30, 144, 255, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
}

.verification-question {
    margin-top: 0.5rem;
}

.verification-question p {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.verification-question span {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Ad Module Section */
.ad-module-section {
    margin: 3rem 0 2rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(30, 144, 255, 0.2);
}

.ad-module-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #1e90ff 0%, #00ffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ad-module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin: 0 auto;
    max-width: 700px;
}

/* Ad Cards */
.ad-card {
    background: linear-gradient(135deg,
        rgba(10, 20, 35, 0.95) 0%,
        rgba(15, 30, 50, 0.9) 50%,
        rgba(10, 20, 35, 0.95) 100%);
    border: 1px solid rgba(30, 144, 255, 0.4);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(30, 144, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Removed hover effects for cleaner look */

.ad-card-header {
    padding: 1rem 1rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(30, 144, 255, 0.2);
}

.ad-card-header i {
    font-size: 1.25rem;
    color: var(--primary);
    display: none; /* Hide icons */
}

.ad-card-header h4 {
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    text-align: center;
}

.ad-card-image-wrapper {
    width: 100%;
    aspect-ratio: 3/2;
    position: relative;
    overflow: hidden;
    background: rgba(0, 12, 30, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-card-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    background: rgba(0, 12, 30, 0.5);
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
    filter: brightness(1.1) contrast(1.1);
}

/* Removed image hover effects and site preview overlay */

.site-preview-iframe {
    width: 100%;
    height: 100%;
    border: none;
    transform: scale(0.5);
    transform-origin: top left;
    width: 200%;
    height: 200%;
    pointer-events: none;
}

.preview-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
    padding: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.preview-label i {
    font-size: 0.9rem;
}

/* Instagram Preview Styling */
.instagram-preview-static {
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: opacity 0.3s ease;
}

.instagram-icon {
    font-size: 4rem;
    color: white;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.instagram-handle {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Instagram Preview Overlay */
.instagram-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 2;
    background: white;
}

/* Removed Instagram hover effects */

.instagram-embed-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.instagram-profile-preview {
    width: 100%;
    height: 100%;
    background: white;
    color: #262626;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow: hidden;
}

.ig-profile-header {
    padding: 1rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    border-bottom: 1px solid #dbdbdb;
}

.ig-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ig-avatar i {
    font-size: 1.75rem;
    color: white;
}

.ig-info {
    flex: 1;
}

.ig-username {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #262626;
}

.ig-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: #262626;
}

.ig-stats span {
    display: flex;
    flex-direction: column;
}

.ig-stats strong {
    font-weight: 600;
}

.ig-bio {
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #262626;
    border-bottom: 1px solid #dbdbdb;
}

.ig-grid-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: #dbdbdb;
    padding: 2px;
}

.ig-grid-item {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1.5rem;
}

.instagram-label {
    background: linear-gradient(to top, rgba(131, 58, 180, 0.95), transparent);
}

.ad-card-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ad-card-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.ad-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.ad-features li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ad-features li i {
    color: var(--primary);
    font-size: 0.85rem;
}

.ad-cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    margin: 0 1rem 1rem;
    background: linear-gradient(135deg,
        rgba(0, 42, 255, 0.9) 0%,
        rgba(30, 144, 255, 0.8) 50%,
        rgba(0, 64, 255, 0.9) 100%);
    color: rgba(0, 8, 20, 0.95);
    border: 1px solid rgba(0, 85, 255, 0.4);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.ad-cta-button:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 24px rgba(30, 144, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.instagram-button {
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.instagram-button:hover {
    box-shadow:
        0 6px 24px rgba(253, 29, 29, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Articles Research Section - Original Dark Theme */
.freqipedia {
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    opacity: 0.9;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

/* Research Cards - Original Dark Theme */
.research-card {
    background: linear-gradient(135deg,
        rgba(10, 20, 35, 0.9) 0%,
        rgba(15, 30, 50, 0.85) 50%,
        rgba(10, 20, 35, 0.9) 100%);
    border: 1px solid rgba(30, 144, 255, 0.4);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Desktop only hover effects */
@media (min-width: 769px) {
    .research-card:hover {
        transform: translateY(-4px);
        border-color: rgba(30, 144, 255, 0.6);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3),
            0 0 20px rgba(30, 144, 255, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}



.research-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    background: rgba(0, 12, 30, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.research-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
    filter: brightness(1.1) contrast(1.1);
}



/* Research Content - Original Dark Theme */
.research-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.research-content h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.research-content p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    flex: 1;
}

.research-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.3s ease;
    margin-top: auto;
}



.research-link i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}



/* Articles CTA - Blue Theme (NO GREEN/CYAN) */
.freqipedia-cta {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg,
        rgba(0, 12, 30, 0.9) 0%,
        rgba(2, 18, 40, 0.85) 50%,
        rgba(0, 12, 30, 0.9) 100%);
    border: 2px solid rgba(30, 144, 255, 0.4);
    border-radius: 20px;
    backdrop-filter: blur(25px) saturate(1.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(30, 144, 255, 0.15);
}

.freqipedia-cta h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.freqipedia-cta p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    /* Affiliate Section Mobile */
    .affiliate-section {
        margin: 2rem 0 1.5rem;
        padding: 2rem 0;
        scroll-margin-top: 80px; /* Account for mobile header */
    }

    .affiliate-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .affiliate-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .research-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        justify-items: center;
        align-items: center;
    }

    .research-card {
        margin: 0 auto;
        max-width: 350px;
        width: 100%;
        /* MOBILE PERFORMANCE: Remove heavy effects */
        backdrop-filter: none !important;
        background: rgba(10, 20, 35, 0.85) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
        transition: none !important;
        transform: none !important;
        will-change: auto !important;
    }

    /* Disable hover effects on mobile */
    .research-card:hover {
        transform: none !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    }

    .research-thumbnail {
        aspect-ratio: 16/9;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        background: rgba(0, 12, 30, 0.15);
        border-radius: 6px;
    }

    .research-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
        display: block;
        margin: 0 auto;
        filter: brightness(1.1) contrast(1.1);
        transition: none !important;
        transform: none !important;
    }

    .research-content {
        padding: 0.75rem;
    }

    .research-content h3 {
        font-size: 0.9rem;
    }

    .research-content p {
        font-size: 0.8rem;
    }

    .freqipedia-cta {
        margin: 2rem 0 0 0;
        padding: 1rem 1.5rem;
    }
}

/* =====================================================
   FOOTER STYLES
   ===================================================== */
.site-footer {
    background: linear-gradient(135deg,
        rgba(5, 10, 20, 0.95) 0%,
        rgba(10, 15, 30, 0.9) 50%,
        rgba(5, 10, 20, 0.95) 100%);
    border-top: 1px solid rgba(30, 144, 255, 0.3);
    padding: 3rem 2rem 1.5rem;
    margin-top: 4rem;
    backdrop-filter: blur(10px);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: 'Orbitron', monospace;
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(3px);
}

.footer-links a i {
    font-size: 1rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(30, 144, 255, 0.2);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.footer-disclaimer {
    font-size: 0.75rem !important;
    font-style: italic;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 2rem 1rem 1rem;
        margin-top: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-section {
        text-align: center;
    }

    .footer-links a {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    /* Affiliate Section Small Mobile */
    .affiliate-section {
        margin: 1.5rem 0 1rem;
        padding: 1.5rem 0;
        scroll-margin-top: 70px; /* Account for small mobile header */
    }

    .affiliate-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .affiliate-description {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    /* Ad Module Mobile Styles */
    .ad-module-section {
        margin: 2rem 0 1.5rem;
        padding: 1.5rem 0;
    }

    .ad-module-title {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }

    .ad-module-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .ad-card {
        border-radius: 12px;
    }

    .ad-card-header {
        padding: 0.875rem 0.875rem 0.625rem;
    }

    .ad-card-header i {
        font-size: 1.125rem;
    }

    .ad-card-header h4 {
        font-size: 0.9rem;
    }

    .ad-card-image-wrapper {
        aspect-ratio: 3/2;
    }

    .ad-card-image {
        aspect-ratio: 3/2;
    }

    .ad-card-image img {
        object-fit: contain;
    }

    .instagram-icon {
        font-size: 2.5rem;
    }

    .instagram-handle {
        font-size: 1.125rem;
    }

    /* Disable hover previews on mobile for performance */
    .site-preview-overlay,
    .instagram-preview-overlay {
        display: none;
    }

    /* Removed hover effects */

    .ad-card-content {
        padding: 0.875rem;
    }

    .ad-card-content p {
        font-size: 0.825rem;
    }

    .ad-features li {
        font-size: 0.8rem;
        padding: 0.35rem 0;
    }

    .ad-cta-button {
        padding: 0.75rem 1rem;
        margin: 0 0.875rem 0.875rem;
        font-size: 0.85rem;
    }

    .research-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        justify-items: center;
        align-items: center;
        padding: 1rem;
    }

    .research-card {
        margin: 0 auto;
        max-width: 300px;
        width: 100%;
        /* MOBILE PERFORMANCE: Remove heavy effects */
        backdrop-filter: none !important;
        background: rgba(10, 20, 35, 0.85) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
        transition: none !important;
        transform: none !important;
        will-change: auto !important;
    }

    /* Disable hover effects on mobile */
    .research-card:hover {
        transform: none !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    }
}

/* Enhanced text wrapping for all content - prevent mid-word breaks and hyphens */
p, span, div, li, h1, h2, h3, h4, h5, h6,
.feature-description, .testimonial-text, .research-content p,
.section-subtitle, .hero-subtitle, .problem-list li,
.solution-list li, .pricing-features li, .faq-item p,
.form-description, .auth-switch p, .modal-title,
.pricing-period, .pricing-title, .feature-title,
.testimonial-info h4, .testimonial-info p,
.research-content h3, .freqipedia-cta h3, .freqipedia-cta p {
    word-wrap: normal !important;
    overflow-wrap: normal !important;
    word-break: keep-all !important;
    hyphens: none !important;
    white-space: normal !important;
}

/* Special handling for very long words or URLs */
.research-link, .link-button, a {
    word-wrap: normal !important;
    overflow-wrap: normal !important;
    word-break: keep-all !important;
    hyphens: none !important;
}

/* Program Modal Styles */
.program-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.program-modal:not(.hidden) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(0, 255, 200, 0.3);
    border-radius: 20px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 255, 200, 0.1);
    animation: modalSlideIn 0.3s ease-out;
    z-index: 10001;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 255, 200, 0.2);
}

.modal-title {
    font-family: 'Orbitron', monospace;
    font-size: 24px;
    font-weight: 600;
    color: #004cff;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #0062ff;
    font-size: 28px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(0, 255, 200, 0.1);
    transform: rotate(90deg);
}

.modal-body {
    color: #e0e0e0;
    font-size: 16px;
    line-height: 1.6;
}

.modal-body p {
    margin-bottom: 15px;
}

.modal-body ul {
    margin: 15px 0;
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 8px;
    color: #c0c0c0;
}

/* Prevent background scrolling when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Modal Program Image - Large Thumbnail */
.modal-program-image {
    width: 100%;
    max-width: 300px;
    margin: 0 auto 1.5rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-program-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid rgba(30, 144, 255, 0.4);
    box-shadow: 0 4px 20px rgba(30, 144, 255, 0.3);
    background: linear-gradient(135deg,
        rgba(30, 144, 255, 0.1) 0%,
        rgba(0, 212, 255, 0.05) 100%);
}

/* Program Modal Content Styling */
.modal-program-content h4 {
    color: #0059ff;
    font-family: 'Orbitron', monospace;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 15px 0;
    text-shadow: 0 0 10px rgba(0, 255, 200, 0.3);
}

.modal-program-content p {
    color: #e0e0e0;
    margin-bottom: 15px;
    line-height: 1.8;
    font-size: 16px;
}

.modal-program-content p strong {
    color: #1e90ff;
    font-weight: 600;
}

.modal-program-content ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.modal-program-content li {
    background: rgba(0, 255, 200, 0.05);
    border: 1px solid rgba(0, 255, 200, 0.15);
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 10px;
    color: #c0c0c0;
    transition: all 0.3s ease;
}

.modal-program-content li:hover {
    background: rgba(0, 255, 200, 0.1);
    border-color: rgba(0, 255, 200, 0.3);
}

.modal-program-content li strong {
    color: #005eff;
    font-weight: 600;
}

.program-benefits {
    background: linear-gradient(135deg,
        rgba(0, 255, 200, 0.05) 0%,
        rgba(0, 150, 255, 0.05) 100%);
    border: 1px solid rgba(0, 255, 200, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-top: 25px;
}

.program-benefits h5 {
    color: #006eff;
    font-family: 'Orbitron', monospace;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
    text-shadow: 0 0 8px rgba(0, 255, 200, 0.4);
}

.program-benefits p {
    color: #e0e0e0;
    margin: 0;
    font-style: italic;
}

/* Mobile Modal Adjustments */
@media (max-width: 768px) {
    .modal-content {
        padding: 20px;
        width: 95%;
        margin: 10px;
    }

    .modal-title {
        font-size: 20px;
    }

    .modal-body {
        font-size: 14px;
    }

    .modal-program-content h4 {
        font-size: 18px;
    }

    .modal-program-content li {
        padding: 10px 12px;
        font-size: 14px;
    }

    .program-benefits {
        padding: 15px;
    }

    .program-benefits h5 {
        font-size: 14px;
    }
}


/* Match main-page logo to dashboard style */
.dashboard-logo {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--primary), #00ffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none !important;
    border: none !important;
    border-bottom: none !important;
    outline: none !important;
    box-shadow: none !important;
    display: inline-block;
    position: relative;
    cursor: pointer;
}

.dashboard-logo:hover,
.dashboard-logo:focus,
.dashboard-logo:active,
.dashboard-logo:visited {
    text-decoration: none !important;
    border: none !important;
    border-bottom: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.dashboard-logo::before,
.dashboard-logo::after {
    border: none !important;
    border-bottom: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Beta Badge - Removed (no longer in use) */
/* .dashboard-logo .beta-badge {
    position: absolute;
    top: -6px;
    right: -42px;
    font-family: 'Inter', sans-serif;
    font-size: 0.48rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 2px 5px;
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.9), rgba(59, 130, 246, 0.9));
    color: #ffffff;
    border-radius: 4px;
    border: 1px solid rgba(30, 144, 255, 0.6);
    box-shadow: 0 2px 6px rgba(30, 144, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    -webkit-text-fill-color: #ffffff;
    background-clip: padding-box;
    -webkit-background-clip: padding-box;
    white-space: nowrap;
    z-index: 10;
} */

@media (max-width: 768px) {
    .dashboard-logo {
        font-size: 1.15rem;
        /* Center accounting for TM offset - shift right by ~8px to center SOLOTONES */
        margin-left: 8px;
    }
    .dashboard-logo .beta-badge {
        font-size: 0.4rem;
        padding: 1.5px 4px;
        right: -32px;
        top: -4px;
    }
}

/* Mobile hero premium layout */
@media (max-width: 768px) {
    .hero {
        min-height: calc(100svh - 70px);
        align-items: flex-start;
        padding-top: 0;
    }
    .hero-content {
        align-items: center;
        text-align: center;
        margin-top: 12vh; /* position in top third */
        padding: 0 0.625rem;
    }
    .hero-title {
        font-size: clamp(2.5rem, 11vw, 4rem) !important;
        padding: 0;
        /* BRIGHTER GRADIENT - Lush and Beautiful */
        background: linear-gradient(
            135deg,
            #3da5ff 0%,
            #5eb8ff 25%,
            #a0d4ff 50%,
            #5eb8ff 75%,
            #3da5ff 100%
        ) !important;
        -webkit-background-clip: text !important;
        background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        -webkit-text-stroke: 0.5px rgba(60, 120, 200, 0.8) !important;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 30px rgba(61, 165, 255, 0.9)) drop-shadow(0 0 60px rgba(94, 184, 255, 0.6)) !important;
        text-rendering: optimizeLegibility;
        -webkit-font-smoothing: antialiased;
    }

    .hero-tagline {
        font-size: clamp(0.9rem, 3.5vw, 1.35rem) !important;
        letter-spacing: 0.14em;
        margin-bottom: 0.75rem;
        -webkit-text-stroke: 0 !important;
        background: none !important;
        -webkit-background-clip: unset !important;
        -webkit-text-fill-color: #70b8ff !important;
        color: #70b8ff !important;
        filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4)) !important;
        text-rendering: optimizeLegibility;
        -webkit-font-smoothing: antialiased;
    }
    .hero-subtitle {
        text-align: center;
        max-width: 34ch;
        margin-top: 1rem;
        margin-bottom: 1.75rem;
        padding: 0;
        font-size: clamp(1.1rem, 4.4vw, 1.35rem);
        /* MATCH DESKTOP - Use text-primary color */
        color: var(--text-primary) !important;
    }
}

/* ============================================
   ADA ACCESSIBILITY HIGH CONTRAST THEME
   WCAG 2.1 AA Compliant (4.5:1 minimum contrast)
   ============================================ */

/* ADA Toggle Button Styles - Official ADA Blue */
.ada-toggle-button {
    background: #0057B8;
    border: 2px solid #0057B8;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 87, 184, 0.3);
    flex-shrink: 0;
}

.ada-toggle-button .ada-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.ada-toggle-button:hover {
    background: #003D7A;
    border-color: #003D7A;
    color: #FFFFFF;
    box-shadow: 0 3px 8px rgba(0, 87, 184, 0.4);
    transform: translateY(-1px);
}

.ada-toggle-button:focus {
    outline: 3px solid #FFD700;
    outline-offset: 2px;
}

/* ADA Mode Active State */
body.ada-mode .ada-toggle-button {
    background: #FFD700;
    border-color: #000000;
    color: #000000;
    box-shadow: 0 0 0 3px #FFFFFF;
}

/* ADA High Contrast Theme Variables */
body.ada-mode {
    --bg-dark: #000000 !important;
    --bg-card: #000000 !important;
    --text-primary: #FFFFFF !important;
    --text-secondary: #FFFFFF !important;
    --text-muted: #FFFFFF !important;
    --primary: #FFD700 !important;
    --secondary: #FFD700 !important;
    --accent: #FFD700 !important;
    --border: #FFFFFF !important;
    --glow: none !important;
}

/* ADA Mode Base Styles */
body.ada-mode {
    background: #000000 !important;
    color: #FFFFFF !important;
}

body.ada-mode::before,
body.ada-mode .bg-effects,
body.ada-mode .audio-wave-visualization {
    display: none !important;
}

/* ADA Mode Typography - High Contrast */
body.ada-mode h1,
body.ada-mode h2,
body.ada-mode h3,
body.ada-mode h4,
body.ada-mode h5,
body.ada-mode h6 {
    color: #FFFFFF !important;
    text-shadow: none !important;
    -webkit-text-stroke: 0 !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #FFFFFF !important;
}

body.ada-mode p,
body.ada-mode span,
body.ada-mode div,
body.ada-mode label,
body.ada-mode li {
    color: #FFFFFF !important;
    text-shadow: none !important;
}

/* ADA Mode Links */
body.ada-mode a {
    color: #FFD700 !important;
    text-decoration: underline !important;
}

body.ada-mode a:hover,
body.ada-mode a:focus {
    color: #FFFF00 !important;
    outline: 2px solid #FFD700 !important;
}

/* ADA Mode Buttons */
body.ada-mode button:not(.ada-toggle-button),
body.ada-mode .btn {
    background: #000000 !important;
    color: #FFFFFF !important;
    border: 2px solid #FFFFFF !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

body.ada-mode button:not(.ada-toggle-button):hover,
body.ada-mode button:not(.ada-toggle-button):focus,
body.ada-mode .btn:hover,
body.ada-mode .btn:focus {
    background: #FFD700 !important;
    color: #000000 !important;
    border-color: #FFD700 !important;
    outline: 3px solid #FFFFFF !important;
}

body.ada-mode .btn-primary {
    background: #FFD700 !important;
    color: #000000 !important;
    border: 2px solid #FFD700 !important;
}

body.ada-mode .btn-primary:hover,
body.ada-mode .btn-primary:focus {
    background: #FFFFFF !important;
    color: #000000 !important;
    border-color: #FFFFFF !important;
}

/* ADA Mode Header */
body.ada-mode .header {
    background: #000000 !important;
    border-bottom: 2px solid #FFFFFF !important;
}

body.ada-mode .nav-links a {
    color: #FFFFFF !important;
}

body.ada-mode .nav-links a:hover {
    color: #FFD700 !important;
}

/* ADA Mode Cards & Sections */
body.ada-mode .section,
body.ada-mode .feature-card,
body.ada-mode .pricing-card,
body.ada-mode .testimonial-card,
body.ada-mode [class*="card"] {
    background: #000000 !important;
    border: 2px solid #FFFFFF !important;
    box-shadow: none !important;
}

/* ADA Mode Testimonials - Black background for readability */
body.ada-mode .testimonial {
    background: #000000 !important;
    border: 2px solid #FFFFFF !important;
    box-shadow: none !important;
}

body.ada-mode .testimonial-text {
    color: #FFFFFF !important;
}

body.ada-mode .testimonial-info h4,
body.ada-mode .testimonial-info p {
    color: #FFFFFF !important;
}

body.ada-mode .testimonial-avatar {
    background: #FFFFFF !important;
    color: #000000 !important;
    border: 2px solid #FFFFFF !important;
}

body.ada-mode .testimonial-toggle {
    background: #000000 !important;
    color: #FFFFFF !important;
    border: 2px solid #FFFFFF !important;
}

body.ada-mode .testimonial-toggle:hover,
body.ada-mode .testimonial-toggle:focus {
    background: #FFD700 !important;
    color: #000000 !important;
    border-color: #FFD700 !important;
}

/* ADA Mode Inputs */
body.ada-mode input,
body.ada-mode select,
body.ada-mode textarea {
    background: #000000 !important;
    color: #FFFFFF !important;
    border: 2px solid #FFFFFF !important;
}

body.ada-mode input:focus,
body.ada-mode select:focus,
body.ada-mode textarea:focus {
    outline: 3px solid #FFD700 !important;
    border-color: #FFD700 !important;
}

body.ada-mode input::placeholder {
    color: #AAAAAA !important;
}

/* ADA Mode Modals */
body.ada-mode .modal-content,
body.ada-mode .auth-modal {
    background: #000000 !important;
    border: 2px solid #FFFFFF !important;
}

/* ADA Mode Mobile Nav */
body.ada-mode .mobile-nav {
    background: #000000 !important;
    border: 2px solid #FFFFFF !important;
}

body.ada-mode .mobile-nav-links a {
    color: #FFFFFF !important;
}

/* ADA Mode Hero */
body.ada-mode .hero-title,
body.ada-mode .hero-tagline,
body.ada-mode .hero-subtitle {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    text-shadow: none !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
}

/* ADA Mode - Fix title text wrapper to be visible */
body.ada-mode .hero-title .title-text {
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: #FFFFFF !important;
    color: #FFFFFF !important;
}

/* ADA Mode - Fix TM symbol to match title */
body.ada-mode .hero-title .tm-symbol {
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: #FFFFFF !important;
    color: #FFFFFF !important;
}

/* ADA Mode Disable Decorative Elements */
body.ada-mode [class*="glow"],
body.ada-mode [class*="gradient"],
body.ada-mode .wave-layer {
    display: none !important;
}

/* ADA Mobile Responsive */
@media (max-width: 768px) {
    .ada-toggle-button {
        padding: 0.3rem 0.45rem !important;
        min-width: 36px !important;
        min-height: 36px !important;
        font-size: 0.75rem !important;
        margin-left: 0.25rem !important;
    }
    .ada-toggle-button .ada-label {
        font-size: 0.6rem !important;
    }
}

@media (max-width: 480px) {
    .ada-toggle-button {
        padding: 0.25rem 0.35rem !important;
        min-width: 32px !important;
        min-height: 32px !important;
        font-size: 0.7rem !important;
    }
    .ada-toggle-button .ada-label {
        display: none !important;
    }
}
