/* ===================================================================
   NextGen Dashboard - Landing Page Styles
   Apple-style scroll-driven animations, glassmorphism, premium effects
   =================================================================== */

/* ===== BASE & RESET ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::selection {
    background: rgba(16, 185, 129, 0.3);
    color: #fff;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #030712;
    color: #f8fafc;
}

/* ===== GRADIENT ORBS (Background Decoration) ===== */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    pointer-events: none;
    will-change: transform;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.3), transparent 70%);
    top: -200px;
    left: -200px;
    animation: orbFloat1 20s ease-in-out infinite;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25), transparent 70%);
    top: 20%;
    right: -150px;
    animation: orbFloat2 25s ease-in-out infinite;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.2), transparent 70%);
    bottom: -100px;
    left: 30%;
    animation: orbFloat3 22s ease-in-out infinite;
}

.orb-pro-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.2), transparent 70%);
    top: 10%;
    right: -100px;
    animation: orbFloat1 18s ease-in-out infinite;
}

.orb-pro-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.15), transparent 70%);
    bottom: 20%;
    left: -100px;
    animation: orbFloat2 22s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40px, 20px) scale(1.1); }
    66% { transform: translate(30px, -25px) scale(0.9); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(25px, -35px) scale(1.05); }
}


/* ===== GLASSMORPHISM ===== */
.glass-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}


/* ===== NAVIGATION ===== */
#navbar {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbar.scrolled {
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}


/* ===== GRADIENT TEXT ===== */
.gradient-text-hero {
    background: linear-gradient(135deg, #10b981, #06b6d4, #8b5cf6);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}


/* ===== CTA BUTTONS ===== */
.cta-button-green {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.3), 0 4px 15px rgba(16, 185, 129, 0.2);
    position: relative;
    overflow: hidden;
}

.cta-button-green::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.cta-button-green:hover::before {
    opacity: 1;
}

.cta-button-gold {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #030712;
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.3), 0 4px 15px rgba(245, 158, 11, 0.2);
    position: relative;
    overflow: hidden;
}

.cta-button-gold::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.cta-button-gold:hover::before {
    opacity: 1;
}


/* ===== TECH BADGES ===== */
.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8125rem;
    color: #94a3b8;
    transition: all 0.3s;
}

.tech-badge:hover {
    border-color: rgba(16, 185, 129, 0.3);
    color: #e2e8f0;
}


/* ===== FLOATING ANIMATION ===== */
.floating-badge {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}


/* ===== HERO SCREENSHOT ===== */
.hero-screenshot {
    max-width: 900px;
    margin: 0 auto;
    perspective: 1200px;
}

.hero-screenshot > div {
    transform: perspective(1200px) rotateX(5deg) scale(0.95);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-screenshot:hover > div {
    transform: perspective(1200px) rotateX(0deg) scale(1);
}

.glow-border {
    box-shadow: inset 0 0 40px rgba(16, 185, 129, 0.05),
                0 0 60px rgba(16, 185, 129, 0.08);
}


/* ===== SCREENSHOT SLIDER ===== */
.screenshot-slider {
    max-width: 100%;
    margin: 0 auto;
}

.slider-viewport {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.slider-track {
    display: flex;
    width: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.slider-slide {
    width: 100%;
    flex: 0 0 100%;
}

.slider-slide img {
    display: block;
    width: 100%;
    height: auto;
}

.slider-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(245, 158, 11, 0.3);
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.3);
}

.slider-dot.active {
    background: #f59e0b;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
    transform: scale(1.2);
}

.slider-caption {
    transition: opacity 0.3s;
}

@media (max-width: 640px) {
    .screenshot-slider {
        max-width: 85%;
        margin: 0 auto;
    }
}


/* ===== SLIDE ZOOM (Mobile only) ===== */
.slide-inner {
    position: relative;
}

.slide-zoom-btn {
    display: none;
}

@media (max-width: 768px) {
    .slide-zoom-btn {
        display: flex;
        position: absolute;
        bottom: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        color: #fff;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 5;
        transition: all 0.3s;
    }

    .slide-zoom-btn:hover,
    .slide-zoom-btn:active {
        background: rgba(245, 158, 11, 0.7);
        transform: scale(1.1);
    }
}

/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 1rem;
}

.lightbox-img {
    width: 200%;
    max-width: none;
    height: auto;
    display: block;
    border-radius: 0.5rem;
}

.lightbox-close {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}


/* ===== BADGES ===== */
.badge-free {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-pro {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}


/* ===== FEATURE CARDS (Why Section) ===== */
.feature-card-why {
    padding: 2rem;
    border-radius: 1.25rem;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card-why:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.6);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}


/* ===== FEATURE CARDS (FREE) ===== */
.feature-card {
    padding: 1.5rem;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    border-color: rgba(16, 185, 129, 0.2);
    background: rgba(15, 23, 42, 0.6);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}


/* ===== PRO FEATURE CARDS ===== */
.pro-feature-card {
    padding: 1.5rem;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(245, 158, 11, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pro-feature-card:hover {
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(15, 23, 42, 0.7);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.05);
}

.pro-feature-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: rgba(245, 158, 11, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}


/* ===== STICKY SECTION (PRO Features) ===== */
.sticky-section {
    position: relative;
    background: linear-gradient(180deg, #030712 0%, #0a0f1e 20%, #0d1328 50%, #0a0f1e 80%, #030712 100%);
    padding: 6rem 0 4rem;
}

.sticky-header {
    position: sticky;
    top: 5rem;
    z-index: 10;
    padding: 2rem 0;
    background: linear-gradient(180deg, rgba(3, 7, 18, 0.95) 0%, rgba(3, 7, 18, 0.8) 80%, transparent 100%);
}


/* ===== COMPARISON TABLE ===== */
.comparison-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.2s;
}

.comparison-row:hover {
    background: rgba(255, 255, 255, 0.02);
}


/* ===== PRICING CARDS ===== */
.pricing-card-free {
    padding: 2.5rem;
    border-radius: 1.5rem;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card-free:hover {
    border-color: rgba(16, 185, 129, 0.2);
    transform: translateY(-4px);
}

.pricing-card-pro {
    position: relative;
    padding: 2.5rem;
    border-radius: 1.5rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(245, 158, 11, 0.2);
    box-shadow: 0 0 60px rgba(245, 158, 11, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card-pro:hover {
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 0 80px rgba(245, 158, 11, 0.12);
    transform: translateY(-4px);
}


/* ===== FAQ ACCORDION ===== */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-content {
    max-height: 300px;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-toggle {
    cursor: pointer;
    background: none;
    border: none;
    color: inherit;
    font: inherit;
}

.faq-toggle:hover {
    color: #e2e8f0;
}


/* ===== SCROLL-DRIVEN ANIMATIONS ===== */

/* Scale-up Reveal */
.scale-reveal {
    opacity: 0;
    transform: scale(0.85) translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scale-reveal.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Reveal Up */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Text */
.stagger-text {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-text.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ===== 3D TILT CARD ===== */
.tilt-card {
    transform-style: preserve-3d;
    will-change: transform;
}


/* ===== GRADIENT BACKGROUND SHIFT ===== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(
        ellipse at 50% var(--gradient-y, 0%),
        rgba(16, 185, 129, 0.03) 0%,
        transparent 50%
    );
    pointer-events: none;
    z-index: -1;
    transition: --gradient-y 0.5s;
}


/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #030712;
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #334155;
}


/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .orb {
        opacity: 0.2;
    }

    .orb-1 {
        width: 300px;
        height: 300px;
    }

    .orb-2 {
        width: 250px;
        height: 250px;
    }

    .orb-3 {
        width: 200px;
        height: 200px;
    }

    .hero-screenshot > div {
        transform: perspective(800px) rotateX(3deg) scale(0.98);
    }

    .sticky-header {
        position: relative;
        top: 0;
    }
}

@media (max-width: 640px) {
    .hero-screenshot > div {
        transform: none;
    }

    .hero-screenshot:hover > div {
        transform: none;
    }
}


/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .scale-reveal,
    .reveal-up,
    .stagger-text {
        opacity: 1;
        transform: none;
    }

    .floating-badge {
        animation: none;
    }
}
