/* ===== Base ===== */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ===== Glass Panel ===== */
.glass-panel {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ===== Navbar ===== */
#navbar {
    transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
.nav-scrolled {
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(30, 41, 59, 0.5);
}

/* ===== Hero Mockup Float Animation ===== */
.hero-mockup {
    animation: hero-float 4s ease-in-out infinite;
}
@keyframes hero-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===== Feature Tabs ===== */
.feature-tab {
    padding: 0.625rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #94a3b8;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.feature-tab:hover {
    color: #f1f5f9;
    background: rgba(15, 23, 42, 0.6);
}
.feature-tab.active {
    color: #f1f5f9;
    background: rgba(0, 90, 156, 0.15);
    border-color: rgba(0, 90, 156, 0.3);
}
.feature-tab-row {
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.feature-tab-row::-webkit-scrollbar {
    display: none;
}

/* Feature Panel Visibility */
.feature-panel {
    display: none;
}
.feature-panel.active {
    display: block;
}

/* ===== Prompt Carousel ===== */
.prompt-carousel {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.prompt-carousel::-webkit-scrollbar {
    display: none;
}

/* ===== Scroll Reveal Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
.reveal.reveal-delay-1 { transition-delay: 0.1s; }
.reveal.reveal-delay-2 { transition-delay: 0.2s; }
.reveal.reveal-delay-3 { transition-delay: 0.3s; }

/* ===== FAQ Accordion ===== */
.faq-item button:focus {
    outline: 2px solid rgba(0, 90, 156, 0.4);
    outline-offset: -2px;
    border-radius: 0.75rem;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #020617;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 9999px;
    border: 2px solid #020617;
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* ===== Accessibility: Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    .hero-mockup {
        animation: none;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* ===== Mobile Adjustments ===== */
@media (max-width: 767px) {
    /* Ensure body text never goes below 16px */
    body {
        font-size: 16px;
    }

    /* Ensure touch targets are at least 48px */
    .feature-tab,
    .faq-item button,
    #mobile-cta-bar a {
        min-height: 48px;
    }

    /* Comparison table stacked cards */
    table {
        display: none;
    }
}
