/* LANDING PAGE PRO THEME */
/* Uses variables from modern-theme.css */

:root {
    --glass-surface: rgba(22, 22, 26, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    /* Subtle border for glass effect */
    --glass-highlight: rgba(255, 255, 255, 0.03);
    --neon-gold: #fbbf24;
    --neon-gold-dim: rgba(251, 191, 36, 0.2);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
}

/* --- LANDING MODE OVERRIDES --- */
body.landing-mode #main,
body.landing-mode #appHeader,
body.landing-mode #userInfo {
    display: none !important;
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 5px var(--neon-gold-dim);
    }

    50% {
        box-shadow: 0 0 20px var(--neon-gold-dim);
    }

    100% {
        box-shadow: 0 0 5px var(--neon-gold-dim);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* --- LAYOUT --- */
#landingPage {
    position: relative;
    z-index: 20;
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    color: var(--text-primary);
    /* Removed opaque background to show dynamic bars */
    background: transparent;
    /* Optional: Slight tint if needed, but transparent is best for "bars" visibility */
    /* background: radial-gradient(circle at 50% 0%, rgba(30, 30, 36, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%); */
    font-family: 'Inter', sans-serif;
    display: none;
    /* Toggled by JS */
    flex-direction: column;
    scroll-behavior: smooth;
}

/* --- TYPOGRAPHY UTILS --- */
.text-gradient {
    background: linear-gradient(135deg, #fff 30%, var(--neon-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- HEADER --- */
.landing-header {
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
}

.landing-logo {
    height: 36px;
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.3));
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    margin-right: auto;
    padding-left: 60px;
}

.nav-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
    letter-spacing: 0.5px;
}

.nav-item:hover {
    color: var(--text-primary);
}

.btn-login-header {
    width: 40px;
    height: 40px;
    padding: 0;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-login-header:hover {
    background: var(--neon-gold);
    color: #000;
    border-color: var(--neon-gold);
}

/* --- HERO SECTION --- */
.landing-hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

/* Hero Background Glow */
.landing-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 40vh;
    background: radial-gradient(ellipse at center, rgba(251, 191, 36, 0.15), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 30px;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.2);
    color: var(--neon-gold);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: 72px;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -2px;
    background: linear-gradient(to bottom right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 0.8s ease-out 0.1s backwards;
}

.hero-highlight {
    color: var(--neon-gold);
    -webkit-text-fill-color: var(--neon-gold);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 680px;
    line-height: 1.6;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.btn-cta-primary {
    padding: 16px 40px;
    background: var(--neon-gold);
    color: #000;
    font-weight: 700;
    font-size: 16px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(251, 191, 36, 0.6);
}

.btn-cta-secondary {
    padding: 16px 40px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 16px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

/* --- SECTIONS COMMON --- */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px;
    position: relative;
}

.section-container.alt-bg {
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02), transparent);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
    color: var(--text-primary);
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- FEATURES GRID --- */
.features-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: -80px auto 100px auto;
    /* Pull up into hero */
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.feature-card {
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px 32px;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-gold);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-gold);
    font-size: 24px;
    margin-bottom: 24px;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- TOOLS GRID (Engineering Suite) --- */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.tool-showcase-card {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.4));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.tool-showcase-card:hover {
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.15);
}

.tool-preview {
    height: 160px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid var(--glass-border);
}

.tool-showcase-card:hover .tool-preview {
    color: var(--neon-gold);
}

.tool-info {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tool-info h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.tool-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.ai-badge {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--neon-gold);
    font-weight: 600;
    opacity: 0.8;
}

/* --- SPLIT LAYOUT (Visual Intelligence) --- */
.split-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}

.split-content {
    flex: 1;
}

.split-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-top: 32px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 16px;
}

.feature-list li i {
    color: var(--neon-gold);
}

.feature-list li strong {
    color: var(--text-primary);
}

.mockup-window {
    width: 100%;
    aspect-ratio: 16/9;
    background: #0f1014;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    /* Centering placeholder content */
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.mockup-window::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: radial-gradient(circle at center, rgba(251, 191, 36, 0.05), transparent 60%);
}

/* --- LIBRARY COMPARISON --- */
.library-comparison {
    display: flex;
    gap: 32px;
    justify-content: center;
}

.lib-card {
    flex: 1;
    max-width: 400px;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--glass-border);
    background: var(--glass-highlight);
    transition: transform 0.3s ease;
}

.lib-card.standard {
    border-top: 1px solid var(--text-secondary);
}

.lib-card.custom {
    border-top: 1px solid var(--neon-gold);
}

.lib-card:hover {
    transform: translateY(-5px);
}

.lib-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-primary);
}

.lib-card.custom .lib-icon {
    background: rgba(251, 191, 36, 0.1);
    color: var(--neon-gold);
}

/* --- PRICING SECTION --- */
.pricing-section {
    padding: 60px 20px;
    text-align: center;
}

.pricing-grid {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 48px 32px;
    border-radius: 24px;
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    text-align: left;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.04);
}

.pricing-card.popular {
    background: rgba(251, 191, 36, 0.03);
    border: 1px solid var(--neon-gold);
    position: relative;
}

.pricing-card h3 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.pricing-price {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 32px;
    color: #fff;
    letter-spacing: -1px;
}

.pricing-price.gold-text {
    color: var(--neon-gold);
}

.pricing-period {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-secondary);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 15px;
}

.pricing-features i {
    color: var(--neon-gold);
    margin-right: 12px;
    font-size: 14px;
}

/* --- ENTERPRISE SECTION --- */
.enterprise-section {
    padding: 100px 20px;
    text-align: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    border-top: 1px solid var(--glass-border);
    position: relative;
}

.enterprise-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--glass-surface);
    padding: 60px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
}

.enterprise-section h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.enterprise-section p {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* --- FOOTER --- */
.landing-footer {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    border-top: 1px solid var(--glass-border);
    background: #050505;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 48px;
    }

    .landing-header {
        padding: 0 20px;
    }

    .nav-links {
        display: none;
    }

    .split-layout {
        flex-direction: column;
        gap: 40px;
    }

    .library-comparison {
        flex-direction: column;
    }
}