/* ===== LANDING PAGE STYLES ===== */

/* Override body for landing scroll */
body.landing-mode {
    display: block;
    overflow-y: auto;
    overflow-x: hidden;
}

body.landing-mode .app-container {
    height: auto;
    max-width: 100%;
    display: block;
}

#landing-view {
    width: 100%;
}

/* ---- Navbar ---- */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.35s ease;
    background: transparent;
}

.landing-nav.scrolled {
    background: rgba(30, 30, 34, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
    padding: 0.7rem 2rem;
}

.landing-nav .nav-logo img {
    height: 42px;
    transition: height 0.3s ease;
}

.landing-nav.scrolled .nav-logo img {
    height: 34px;
}

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

.landing-nav .nav-menu a {
    color: rgba(248, 250, 252, 0.75);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.landing-nav .nav-menu a:hover {
    color: #fff;
}

.landing-nav .nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.landing-nav .nav-menu a:hover::after {
    width: 100%;
}

.nav-cta-btn {
    background: var(--primary);
    color: white !important;
    padding: 0.55rem 1.5rem;
    border-radius: 8px;
    font-weight: 600 !important;
    transition: all 0.25s ease !important;
    border: none;
    cursor: pointer;
}

.nav-cta-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(226, 159, 74, 0.35);
}

.nav-cta-btn::after {
    display: none !important;
}

/* ---- Hero Section ---- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    position: relative;
}

.hero-bg-glow {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}

.hero-bg-glow.glow-1 {
    background: #E29F4A;
    top: -200px;
    left: -100px;
    animation: glowFloat 8s ease-in-out infinite;
}

.hero-bg-glow.glow-2 {
    background: #C58A3E;
    bottom: -150px;
    right: -100px;
    animation: glowFloat 10s ease-in-out infinite reverse;
}

@keyframes glowFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -20px); }
}

.hero-content {
    max-width: 1100px;
    text-align: center;
    position: relative;
    z-index: 1;
    animation: heroFadeIn 0.8s ease-out;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #34d399;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-badge .pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: #f8fafc;
}

.hero-content h1 .gradient-text {
    background: linear-gradient(135deg, #E29F4A, #C58A3E, #E29F4A);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn-hero-primary {
    padding: 0.85rem 2.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-family);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-hero-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(226, 159, 74, 0.4);
}

.btn-hero-secondary {
    padding: 0.85rem 2.5rem;
    background: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-family);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 1rem;
}

.hero-stat {
    text-align: center;
}

.hero-stat .stat-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent);
    display: block;
}

.hero-stat .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---- Section Shared ---- */
.landing-section {
    padding: 6rem 2rem;
    position: relative;
}

.landing-section .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.landing-section .section-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 1rem;
}

.landing-section .section-header p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.6;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    border-radius: 3px;
    margin: 1rem auto 0;
}

/* ---- Features Section ---- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(30, 30, 34, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    background: rgba(226, 159, 74, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.15);
}

.feature-card:nth-child(2) .feature-icon {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.15);
}

.feature-card:nth-child(3) .feature-icon {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.15);
}

.feature-card:nth-child(4) .feature-icon {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.15);
}

.feature-card:nth-child(5) .feature-icon {
    background: rgba(236, 72, 153, 0.1);
    border-color: rgba(236, 72, 153, 0.15);
}

.feature-card:nth-child(6) .feature-icon {
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.15);
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ---- Pricing Section ---- */
#pricing {
    background: rgba(0, 0, 0, 0.4);
}

.pricing-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.pricing-toggle span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.pricing-toggle span.toggle-active {
    color: #f8fafc;
    font-weight: 700;
}

.toggle-switch {
    width: 52px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: background 0.3s ease;
}

.toggle-switch.active {
    background: rgba(16, 185, 129, 0.3);
    border-color: rgba(16, 185, 129, 0.4);
}

.toggle-switch .toggle-knob {
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 3px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.toggle-switch.active .toggle-knob {
    transform: translateX(24px);
}

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

.pricing-card {
    background: rgba(30, 30, 34, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    transition: all 0.35s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.25);
}

.pricing-card.featured {
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(30, 30, 34, 0.8);
    box-shadow: 0 0 60px rgba(59, 130, 246, 0.08);
}

.pricing-card.featured::before {
    content: 'MAIS POPULAR';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), #6366f1);
    color: white;
    padding: 0.3rem 1.2rem;
    border-radius: 0 0 10px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.pricing-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 0.5rem;
}

.pricing-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    min-height: 40px;
}

.pricing-price {
    margin-bottom: 2rem;
}

.pricing-price .currency {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-muted);
    vertical-align: super;
}

.pricing-price .amount {
    font-size: 3rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -2px;
}

.pricing-price .period {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.pricing-features li {
    font-size: 0.88rem;
    color: rgba(248, 250, 252, 0.85);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.pricing-features li .check-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 900;
    flex-shrink: 0;
}

.pricing-cta {
    width: 100%;
    padding: 0.85rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-family);
    border: none;
    text-align: center;
}

.pricing-cta.cta-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f8fafc;
}

.pricing-cta.cta-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.pricing-cta.cta-primary {
    background: var(--primary);
    color: white;
}

.pricing-cta.cta-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(226, 159, 74, 0.35);
}

/* ---- CTA Section ---- */
.cta-section {
    padding: 6rem 2rem;
    text-align: center;
}

.cta-container {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(30, 30, 34, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 4rem 3rem;
    position: relative;
    overflow: hidden;
}

.cta-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(226, 159, 74, 0.08), transparent 60%);
    pointer-events: none;
}

.cta-container h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 1rem;
    position: relative;
}

.cta-container p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1rem;
    position: relative;
}

/* ---- Footer ---- */
.landing-footer {
    padding: 3rem 2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-brand img {
    height: 30px;
    opacity: 0.7;
}

.footer-brand span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #f8fafc;
}

/* ---- Animations ---- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ---- Mobile Nav Toggle ---- */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .landing-nav .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.97);
        backdrop-filter: blur(16px);
        padding: 1.5rem 2rem;
        gap: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .landing-nav .nav-menu.open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .hero-section {
        padding: 7rem 1.5rem 3rem;
    }

    .hero-stats {
        gap: 1.5rem;
        flex-wrap: wrap;
    }

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

    .hero-actions .btn-hero-primary,
    .hero-actions .btn-hero-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

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

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .cta-container {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .landing-section {
        padding: 4rem 1.25rem;
    }

    .feature-card {
        padding: 2rem 1.5rem;
    }
}
