:root {
    --deep-slate-blue: #2c3e50;
    --vibrant-green: #2ecc71;
    --accent-green: #27ae60;
    --neutral-off-white: #f8f9fa;
    --neutral-gray: #6c757d;
    --light-gray: #e9ecef;
    --dark-gray: #495057;
    --gradient-primary: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    --gradient-secondary: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --reveal-duration: 0.65s;
}

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

@keyframes hero-gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes icon-pulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(46, 204, 113, 0.12); }
    50% { box-shadow: 0 8px 28px rgba(46, 204, 113, 0.22); }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 72px;
}

.navbar {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    box-shadow: none;
    transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), background 0.3s var(--ease-out);
}

.navbar.navbar-scrolled {
    border-bottom-color: var(--light-gray);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.97) !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--deep-slate-blue) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-gray) !important;
    transition: color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
    position: relative;
}

.nav-link:hover {
    color: var(--accent-green) !important;
    transform: translateY(-1px);
}

.btn-primary-landing {
    background: var(--gradient-secondary);
    border: none;
    border-radius: 50px;
    padding: 0.65rem 1.5rem;
    font-weight: 600;
    color: #fff;
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), opacity 0.25s ease;
}

.btn-primary-landing:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 62, 80, 0.25);
    color: #fff;
}

.btn-green-landing {
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    padding: 0.65rem 1.5rem;
    font-weight: 600;
    color: #fff;
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), opacity 0.25s ease;
}

.btn-green-landing:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(46, 204, 113, 0.35);
    color: #fff;
}

.btn-outline-landing {
    border: 2px solid var(--accent-green);
    border-radius: 50px;
    padding: 0.65rem 1.5rem;
    font-weight: 600;
    color: var(--accent-green);
    background: transparent;
    transition: all 0.2s ease;
}

.btn-outline-landing:hover {
    background: var(--accent-green);
    color: #fff;
}

.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f0f4f8 100%);
    background-size: 200% 200%;
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

body.page-ready .hero-section {
    animation: hero-gradient-shift 18s ease infinite;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    color: var(--deep-slate-blue);
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--neutral-gray);
    margin-bottom: 2rem;
    max-width: 540px;
}

.hero-icon-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 320px;
    margin: 0 auto;
}

.hero-icon-cell {
    aspect-ratio: 1;
    border-radius: 1.25rem;
    background: #fff;
    border: 1px solid var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-green);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

body.page-ready .hero-icon-cell:nth-child(1) {
    animation: hero-float 5s ease-in-out infinite, icon-pulse 4s ease-in-out infinite;
}

body.page-ready .hero-icon-cell:nth-child(2) {
    animation: hero-float 5.5s ease-in-out infinite 0.4s, icon-pulse 4.5s ease-in-out infinite 0.3s;
}

body.page-ready .hero-icon-cell:nth-child(3) {
    animation: hero-float 4.8s ease-in-out infinite 0.8s, icon-pulse 5s ease-in-out infinite 0.6s;
}

body.page-ready .hero-icon-cell:nth-child(4) {
    animation: hero-float 5.2s ease-in-out infinite 1.2s, icon-pulse 4.2s ease-in-out infinite 0.9s;
}

.hero-icon-cell:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 12px 28px rgba(46, 204, 113, 0.18);
}

.section {
    padding: 4.5rem 0;
}

.section-alt {
    background: var(--neutral-off-white);
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--deep-slate-blue);
    text-align: center;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    text-align: center;
    color: var(--neutral-gray);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.feature-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.75rem;
    height: 100%;
    border: 1px solid var(--light-gray);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.09);
    border-color: rgba(46, 204, 113, 0.25);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1rem;
    transition: transform 0.35s var(--ease-out);
}

.feature-card:hover .feature-icon {
    transform: scale(1.08) rotate(-3deg);
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--deep-slate-blue);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--neutral-gray);
    margin: 0;
    font-size: 0.95rem;
}

.step-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: 1rem;
    transition: transform 0.35s var(--ease-out), background 0.35s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    background: rgba(46, 204, 113, 0.04);
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-secondary);
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.step-card:hover .step-number {
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(44, 62, 80, 0.2);
}

.step-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--deep-slate-blue);
    margin-bottom: 0.5rem;
}

.step-card p {
    color: var(--neutral-gray);
    margin: 0;
    font-size: 0.95rem;
}

.contact-section {
    background: var(--gradient-secondary);
    color: #fff;
}

.contact-section .section-title,
.contact-section .section-subtitle {
    color: #fff;
}

.contact-section .section-subtitle {
    opacity: 0.85;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    transition: transform 0.3s var(--ease-out);
}

.contact-item:hover {
    transform: translateX(6px);
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
    transition: background 0.3s ease, transform 0.3s var(--ease-out);
}

.contact-item:hover .contact-icon {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.08);
}

.contact-item a {
    color: #fff;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-item h6 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-item p {
    margin: 0;
    opacity: 0.9;
}

.btn-whatsapp {
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.btn-whatsapp:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(46, 204, 113, 0.35);
}

.footer {
    background: var(--deep-slate-blue);
    color: rgba(255, 255, 255, 0.85);
    padding: 2rem 0;
    font-size: 0.9rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.footer a:hover {
    color: var(--vibrant-green);
    transition: color 0.25s ease;
}

/* Scroll reveal */
.reveal,
.reveal-child {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity var(--reveal-duration) var(--ease-out),
        transform var(--reveal-duration) var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
}

.reveal.reveal-left,
.reveal-child.reveal-left {
    transform: translateX(-28px);
}

.reveal.reveal-right,
.reveal-child.reveal-right {
    transform: translateX(28px);
}

.reveal.is-visible,
.reveal-child.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Hero entrance (on load) */
.hero-animate {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.7s var(--ease-out),
        transform 0.7s var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
}

body.page-ready .hero-animate {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal,
    .reveal-child,
    .hero-animate {
        opacity: 1;
        transform: none;
        transition: none;
    }

    body.page-ready .hero-section,
    body.page-ready .hero-icon-cell {
        animation: none;
    }

    .feature-card:hover,
    .step-card:hover,
    .contact-item:hover,
    .nav-link:hover {
        transform: none;
    }
}

@media (max-width: 991px) {
    .hero-section {
        text-align: center;
        min-height: auto;
        padding: 3rem 0;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center !important;
    }

    .hero-icon-grid {
        margin-top: 2rem;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 64px;
    }

    .navbar-nav .nav-item.ms-lg-2 {
        margin-top: 0.5rem;
    }
}
