body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    background-color: #020617;
    /* Matches index.html bg */
    font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    /* Fluid body text */
}

h1 {
    font-size: clamp(2.25rem, 1.5rem + 8vw, 4.5rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.75rem, 1.25rem + 5vw, 3.5rem);
    line-height: 1.2;
}

h3 {
    font-size: clamp(1.25rem, 1rem + 3vw, 2.25rem);
}

/* Tactile Active States for Mobile */
button:active:not(.no-feedback),
.glass-button:active,
.mobile-link:active {
    transform: scale(0.95);
    filter: brightness(0.9);
    transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.neo-card:active {
    box-shadow:
        inset -2px -2px 5px rgba(255, 255, 255, 0.01),
        inset 2px 2px 5px rgba(0, 0, 0, 0.4);
    transform: scale(0.98);
}

/* Custom Animations */
@keyframes float-pulse {

    0%,
    100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    50% {
        transform: translateY(-10px) scale(1.05);
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
}

.animate-float {
    animation: float-pulse 3s infinite;
}

/* Accessibility: Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    ::before,
    ::after {
        animation-delay: -1ms !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        background-attachment: initial !important;
        scroll-behavior: auto !important;
        transition-duration: 0s !important;
        transition-delay: 0s !important;
    }
}

/* Neon Pulse Animation */
@keyframes neon-pulse {

    0%,
    100% {
        text-shadow: 0 0 10px rgba(14, 165, 233, 0.5),
            0 0 20px rgba(14, 165, 233, 0.3),
            0 0 30px rgba(14, 165, 233, 0.2);
    }

    50% {
        text-shadow: 0 0 15px rgba(14, 165, 233, 0.8),
            0 0 30px rgba(14, 165, 233, 0.5),
            0 0 45px rgba(14, 165, 233, 0.3);
    }
}

/* Animated Gradient Background */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Scanlines Effect */
@keyframes scanlines {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(10px);
    }
}

/* Neon Effects */
.neon-text-blue {
    text-shadow: 0 0 10px rgba(14, 165, 233, 0.5),
        0 0 20px rgba(14, 165, 233, 0.3);
    animation: neon-pulse 3s ease-in-out infinite;
}

.neon-text-purple {
    text-shadow: 0 0 10px rgba(176, 38, 255, 0.5),
        0 0 20px rgba(176, 38, 255, 0.3);
}

.neon-border {
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.3),
        inset 0 0 10px rgba(14, 165, 233, 0.1);
}

.neon-glow {
    position: absolute;
    filter: blur(50px);
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
}

/* Scanlines Overlay */
.scanlines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(0deg,
            rgba(14, 165, 233, 0.03) 0px,
            rgba(14, 165, 233, 0.03) 1px,
            transparent 1px,
            transparent 2px);
    animation: scanlines 8s linear infinite;
    z-index: 10;
}

/* Neomorphism for Dark Theme */
.neo-card {
    background: #020617;
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow:
        -8px -8px 20px rgba(255, 255, 255, 0.02),
        8px 8px 20px rgba(0, 0, 0, 0.6);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.neo-card:hover {
    box-shadow:
        -4px -4px 10px rgba(255, 255, 255, 0.01),
        4px 4px 10px rgba(0, 0, 0, 0.8);
    transform: translateY(-5px) scale(1.02);
}

.neo-icon-box {
    background: #020617;
    box-shadow:
        inset -4px -4px 8px rgba(255, 255, 255, 0.02),
        inset 4px 4px 8px rgba(0, 0, 0, 0.4);
}

/* 3D Card Effect */

/* Glassmorphism Helper Classes - Smoother Gradients to prevent banding */
.glass-panel {
    background-color: rgba(255, 255, 255, 0.03);
    /* Fallback for audit */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(14, 165, 233, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3),
        0 0 15px rgba(14, 165, 233, 0.1);
}

.glass-button {
    background-color: rgba(14, 165, 233, 0.8);
    /* Fallback */
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.95) 0%, rgba(14, 165, 233, 0.7) 50%, rgba(14, 165, 233, 0.95) 100%);
    background-size: 200% 200%;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.5),
        0 0 30px rgba(14, 165, 233, 0.2);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    animation: gradient-shift 3s ease infinite;
    position: relative;
    overflow: hidden;
}

.glass-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}


/* FAQ Transition */
.faq-content {
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.faq-content.active {
    opacity: 1;
}

/* Mobile Menu Animation */
#mobile-menu {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease-in-out;
    transform-origin: top;
}

.mobile-menu-hidden {
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
}

.mobile-menu-visible {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
}

/* Mobile Dock Style */
.mobile-dock {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 400px;
    height: 64px;
    z-index: 100;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 1rem;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(14, 165, 233, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(14, 165, 233, 0.1);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.mobile-dock.dock-hidden {
    transform: translate(-50%, 150%);
    opacity: 0;
}

.dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    gap: 4px;
    width: 60px;
    height: 100%;
}

.dock-item i {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dock-item span {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dock-item.active {
    color: #0EA5E9;
}

.dock-item.active i {
    transform: translateY(-4px) scale(1.2);
}

.dock-item:active {
    transform: scale(0.9);
}

@media (min-width: 768px) {
    .mobile-dock {
        display: none;
    }
}

/* Prevent zoom on tap mobile */
* {
    touch-action: manipulation;
}