/**
 * LANDING.CSS - Estilos da Página de Landing
 * Extraído de index.php para permitir caching e melhor performance
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    background: #fff;
}

/* Header/Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    padding: 12px 50px;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.98);
}

.navbar-logo img {
    height: 55px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 8px rgba(30, 58, 46, 0.15));
}

.navbar-logo img:hover {
    transform: scale(1.08) rotate(-2deg);
}

.navbar-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-login {
    background: transparent;
    color: #1e3a2e;
    border: 2px solid #1e3a2e;
}

.btn-login:hover {
    background: #1e3a2e;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(30, 58, 46, 0.35);
}

.btn-signup {
    background: linear-gradient(135deg, #2d5a45 0%, #1e3a2e 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(30, 58, 46, 0.25);
}

.btn-signup:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(30, 58, 46, 0.4);
}

/* Hero Section */
.hero {
    margin-top: 90px;
    padding: 100px 50px 120px;
    background: linear-gradient(135deg, #1e3a2e 0%, #2d5a45 50%, #3d7a5c 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 650px;
    gap: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.hero-content {
    flex: 1;
    color: white;
    animation: fadeInLeft 1s ease;
    position: relative;
    z-index: 1;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-content h1 {
    font-size: 62px;
    margin-bottom: 25px;
    line-height: 1.15;
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    font-size: 22px;
    margin-bottom: 45px;
    opacity: 0.95;
    line-height: 1.7;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease;
    position: relative;
    z-index: 1;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.4));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(-2deg);
    }
    75% {
        transform: translateY(-15px) rotate(2deg);
    }
}

/* Features Section */
.features {
    padding: 120px 50px;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #2d5a45, transparent);
}

.features-header {
    text-align: center;
    margin-bottom: 80px;
}

.features-header h2 {
    font-size: 48px;
    color: #1e3a2e;
    margin-bottom: 20px;
    font-weight: 800;
}

.features-header p {
    font-size: 20px;
    color: #666;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 45px;
    max-width: 1300px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 50px 40px;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(45, 90, 69, 0.08);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2d5a45, #3d7a5c);
    transform: scaleX(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 60px rgba(30, 58, 46, 0.15);
    border-color: rgba(45, 90, 69, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #f0f7f4 0%, #e8f5f0 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, #2d5a45 0%, #1e3a2e 100%);
    transform: scale(1.1) rotate(5deg);
}

.feature-icon svg {
    width: 40px;
    height: 40px;
    stroke: #2d5a45;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .feature-icon svg {
    stroke: white;
    transform: scale(1.1);
}

.feature-card h3 {
    color: #1e3a2e;
    font-size: 26px;
    margin-bottom: 18px;
    font-weight: 700;
}

.feature-card p {
    color: #666;
    line-height: 1.8;
    font-size: 16px;
}

/* How it Works Section */
.how-it-works {
    padding: 120px 50px;
    background: white;
    position: relative;
}

.how-it-works-header {
    text-align: center;
    margin-bottom: 80px;
}

.how-it-works-header h2 {
    font-size: 48px;
    color: #1e3a2e;
    margin-bottom: 20px;
    font-weight: 800;
}

.steps {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    max-width: 1300px;
    margin: 0 auto;
    gap: 60px;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 20%;
    right: 20%;
    height: 3px;
    background: linear-gradient(90deg, #2d5a45, #3d7a5c, #2d5a45);
    z-index: 0;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #2d5a45 0%, #1e3a2e 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 800;
    margin: 0 auto 25px;
    box-shadow: 0 15px 40px rgba(30, 58, 46, 0.35);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 4px solid white;
}

.step:hover .step-number {
    transform: scale(1.15) rotate(360deg);
    box-shadow: 0 20px 50px rgba(30, 58, 46, 0.45);
}

.step h3 {
    color: #1e3a2e;
    font-size: 24px;
    margin-bottom: 18px;
    font-weight: 700;
}

.step p {
    color: #666;
    line-height: 1.8;
    font-size: 16px;
}

/* CTA Section */
.cta {
    padding: 120px 50px;
    background: linear-gradient(135deg, #1e3a2e 0%, #2d5a45 50%, #3d7a5c 100%);
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.cta h2 {
    font-size: 48px;
    margin-bottom: 25px;
    font-weight: 800;
    position: relative;
    z-index: 1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cta p {
    font-size: 22px;
    margin-bottom: 50px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.btn-cta {
    padding: 20px 50px;
    border-radius: 35px;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-cta:hover::before {
    width: 400px;
    height: 400px;
}

.btn-cta-primary {
    background: white;
    color: #1e3a2e;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-cta-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.4);
}

.btn-cta-secondary {
    background: transparent;
    color: white;
    border: 3px solid white;
}

.btn-cta-secondary:hover {
    background: white;
    color: #1e3a2e;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.3);
}

/* Footer */
.footer {
    background: #0f1f17;
    color: white;
    padding: 50px 50px;
    text-align: center;
}

.footer p {
    opacity: 0.8;
    font-size: 15px;
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 30px;
    color: #1e3a2e;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 968px) {
    .navbar {
        padding: 15px 30px;
    }

    .navbar-buttons {
        display: none;
        position: absolute;
        top: 75px;
        right: 30px;
        background: white;
        flex-direction: column;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        border-radius: 20px;
        padding: 25px;
    }

    .navbar-buttons.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 60px 30px 80px;
        gap: 50px;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .steps {
        flex-direction: column;
    }

    .steps::before {
        display: none;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-cta {
        width: 100%;
        max-width: 300px;
    }
}

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

    .hero-content p {
        font-size: 18px;
    }

    .features-header h2,
    .how-it-works-header h2,
    .cta h2 {
        font-size: 34px;
    }

    .feature-card {
        padding: 40px 30px;
    }
}
