/* ============================================
   Premium Landing Page - Dark Glassmorphism Theme
   ============================================ */

:root {
    --bg-dark: #09090b;
    /* Zinc 950 */
    --primary: #8b5cf6;
    /* Violet 500 */
    --secondary: #ec4899;
    /* Pink 500 */
    --accent: #06b6d4;
    /* Cyan 500 */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    /* Zinc 400 */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-highlight: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* 1. Background Effects */
.premium-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 50% 0%, #1e1b4b 0%, #09090b 100%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: floatOrb 20s infinite ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -20vh;
    left: -10vw;
    animation: none;
    /* Disable CSS animation for JS parallax */
    will-change: transform;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--secondary);
    top: 40vh;
    right: -10vw;
    animation: none;
    /* Disable CSS animation for JS parallax */
    will-change: transform;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    bottom: -10vh;
    left: 30vw;
    animation: none;
    /* Disable CSS animation for JS parallax */
    will-change: transform;
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Grid Overlay */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(var(--glass-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--glass-border) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
    z-index: -1;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

/* 2. Navbar Fixes (Missing from Landing.css) */
.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    /* Fixed height for consistency */
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #fff;
}

/* 3. Hero Section */
.hero-premium {
    min-height: min(100vh, 56rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 6rem 1rem 3.5rem;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
    font-size: 0.875rem;
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease-out;
}

.pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #8b5cf6;
    box-shadow: 0 0 10px #8b5cf6;
    animation: pulse 2s infinite;
}

.hero-title-premium {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to bottom right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-gradient-text {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc-premium {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.25rem;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

/* 4. Helper Dashboard "Mockup" */
.hero-mockup-container {
    margin-top: 3rem;
    perspective: 1000px;
    width: 100%;
    max-width: 1000px;
    animation: fadeInUp 1s ease-out 0.8s backwards;
}

.hero-mockup {
    background: rgba(15, 15, 26, 0.8);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 0 100px -20px rgba(139, 92, 246, 0.3);
    overflow: hidden;
    transform: translate3d(0, 0, 0) rotateX(20deg) scale(0.9);
    transition: transform 0.5s ease;
    position: relative;
    will-change: transform;
}

.hero-mockup:hover {
    transform: translate3d(0, 0, 0) rotateX(5deg) scale(0.95);
}

.mockup-header {
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 0.5rem;
}

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #333;
}

.mockup-dot.red {
    background: #ef4444;
}

.mockup-dot.yellow {
    background: #eab308;
}

.mockup-dot.green {
    background: #22c55e;
}

/* CSS Dashboard Mockup Styles */
.mockup-body {
    display: flex;
    height: 400px;
    /* Fixed height for the visual */
    background: rgba(0, 0, 0, 0.4);
}

.mockup-sidebar {
    width: 60px;
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    gap: 15px;
}

.mockup-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.mockup-icon.active {
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
}

.mockup-icon.bottom {
    margin-top: auto;
    margin-bottom: 20px;
}

.mockup-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.mockup-topnav {
    height: 40px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.mockup-search {
    width: 200px;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.mockup-profile {
    width: 40px;
    height: 40px;
    background: var(--secondary);
    border-radius: 50%;
}

.mockup-grid {
    flex: 1;
    display: flex;
    gap: 20px;
}

.mockup-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 15px;
    position: relative;
    overflow: hidden;
}

.mockup-panel.large {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-panel-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mockup-panel.small {
    flex: 1;
}

.mockup-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-align: left;
}

.mockup-feed-loader {
    width: 80px;
    height: 80px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

.pulse-ring {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.3;
    animation: pulse 2s infinite;
}

.mockup-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
}

.mockup-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 50%;
    background: var(--primary);
    border-radius: 4px;
}

.mockup-stat-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 4px solid var(--secondary);
    border-right-color: transparent;
    margin: 10px auto;
    transform: rotate(45deg);
}

/* CSS Dashboard Mockup Styles */
.mockup-body {
    display: flex;
    height: 400px;
    /* Fixed height for the visual */
    background: rgba(0, 0, 0, 0.4);
}

.mockup-sidebar {
    width: 60px;
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    gap: 15px;
}

.mockup-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.mockup-icon.active {
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
}

.mockup-icon.bottom {
    margin-top: auto;
    margin-bottom: 20px;
}

.mockup-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.mockup-topnav {
    height: 40px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.mockup-search {
    width: 200px;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.mockup-profile {
    width: 40px;
    height: 40px;
    background: var(--secondary);
    border-radius: 50%;
}

.mockup-grid {
    flex: 1;
    display: flex;
    gap: 20px;
}

.mockup-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 15px;
    position: relative;
    overflow: hidden;
}

.mockup-panel.large {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-panel-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mockup-panel.small {
    flex: 1;
}

.mockup-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-align: left;
}

.mockup-feed-loader {
    width: 80px;
    height: 80px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

.pulse-ring {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.3;
    animation: pulse 2s infinite;
}

.mockup-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
}

.mockup-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 50%;
    background: var(--primary);
    border-radius: 4px;
}

.mockup-stat-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 4px solid var(--secondary);
    border-right-color: transparent;
    margin: 10px auto;
    transform: rotate(45deg);
}

/* 5. Feature Cards with Glassmorphism */
.features-premium {
    padding: 6rem 0;
    position: relative;
}

.feature-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0 0;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card-premium {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-card-premium:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--glass-highlight);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.feature-icon-premium {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-title-premium {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #fff;
}

.feature-text-premium {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 6. Steps / How It Works (FIXED) */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    position: relative;
    padding: 3rem 0 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* Connector Line */
.steps-grid::before {
    content: '';
    position: absolute;
    top: 50%;
    /* Approx center of generic layout */
    top: 90px;
    /* Aligned with number badges */
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg,
            rgba(139, 92, 246, 0.3),
            rgba(236, 72, 153, 0.3),
            rgba(6, 182, 212, 0.3));
    z-index: 0;
}

.step-card {
    text-align: center;
    position: relative;
    z-index: 1;
    background: var(--glass-bg) !important;
    /* Force transparent glass */
    border: 1px solid var(--glass-border) !important;
    padding: 2rem;
    border-radius: 1.5rem;
    backdrop-filter: blur(10px);
}

.step-number {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

/* Arrow Replacement or Removal */
.step-arrow {
    display: none;
    /* Removed in favor of connector line style or simply flex spacing */
}

/* 7. CTA Section (FIXED) */
.cta-section {
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 2rem;
    backdrop-filter: blur(10px);
}

.features-premium .section-header,
.how-it-works .section-header {
    margin-bottom: 3rem !important;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #c4b5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-content p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* 8. Footer (FIXED) */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 2rem 0;
    background: rgba(9, 9, 11, 0.9);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.footer-copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(139, 92, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0);
    }
}

/* Button Override for Premium */
.btn-premium {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: white;
    box-shadow: 0 10px 30px -10px rgba(236, 72, 153, 0.5);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -10px rgba(236, 72, 153, 0.7);
    filter: brightness(1.1);
}

.btn-premium-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-premium-outline:hover {
    background: var(--glass-bg);
    border-color: var(--text-primary);
}

/* Responsiveness */
@media (max-width: 768px) {

    .hero-premium {
        min-height: auto;
        padding: 4.5rem 1rem 2.5rem;
    }

    .steps-grid,
    .feature-grid-premium {
        grid-template-columns: 1fr;
    }

    .steps-grid::before {
        display: none;
        /* Hide line on mobile */
    }

    .nav-links {
        display: none;
        /* Simple hiding for mobile, ideally replace with menu */
    }

    .hero-title-premium {
        font-size: 3rem;
    }

    .steps-grid {
        padding-top: 2rem;
    }

    .cta-content {
        padding: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Tablet breakpoint */
@media (max-width: 900px) {
    .hero-premium {
        padding: 5rem 1.5rem 2.5rem;
    }

    .feature-grid-premium {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.25rem;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid::before {
        display: none;
    }

    .hero-title-premium {
        font-size: clamp(2.5rem, 7vw, 4rem);
    }

    .cta-content {
        padding: 2.5rem;
    }

    .cta-content h2 {
        font-size: 2.5rem;
    }
}

/* Large phone breakpoint */
@media (max-width: 600px) {
    .hero-premium {
        padding: 4rem 1rem 2rem;
    }

    .hero-title-premium {
        font-size: clamp(2rem, 9vw, 3rem);
    }

    .hero-desc-premium {
        font-size: 1.1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .btn-premium,
    .btn-premium-outline {
        width: 100%;
        text-align: center;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .feature-grid-premium {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .cta-content {
        padding: 1.5rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1rem;
    }
}

/* Small phone breakpoint */
@media (max-width: 480px) {
    .hero-title-premium {
        font-size: clamp(1.75rem, 10vw, 2.5rem);
    }

    .hero-desc-premium {
        font-size: 1rem;
    }

    .feature-card-premium {
        padding: 1.25rem;
    }

    .step-card {
        padding: 1.25rem;
    }

    .cta-content h2 {
        font-size: 1.75rem;
    }

    .hero-mockup-container {
        display: none;
    }
}

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