/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #3e3e84;
    --primary-light: #5a5a9e;
    --primary-dark: #2e2e6a;
    --accent: #3e3e84;
    --accent-dark: #32326b;
    --accent-light: #eeeef6;
    --whatsapp: #25D366;
    --whatsapp-dark: #1eba57;
    --text: #1d1d2c;
    --text-secondary: #6e6e80;
    --text-tertiary: #ababba;
    --bg: #fbfbfd;
    --bg-elevated: #ffffff;
    --bg-secondary: #f5f5f7;
    --bg-dark: #1d1d2c;
    --border: rgba(0,0,0,0.06);
    --radius: 18px;
    --radius-lg: 28px;
    --radius-xl: 40px;
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition: 0.5s var(--ease);
    --transition-fast: 0.3s var(--ease);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 52px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 28px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 980px;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: -0.01em;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
    font-family: inherit;
    white-space: nowrap;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-primary {
    background: var(--whatsapp);
    color: #fff;
}

.btn-primary:hover {
    background: var(--whatsapp-dark);
    transform: scale(1.04);
}

.btn-ghost {
    background: transparent;
    color: var(--primary);
    padding: 16px 8px;
    font-weight: 500;
}

.btn-ghost::after {
    content: '→';
    transition: transform 0.3s var(--ease-out);
}

.btn-ghost:hover {
    color: var(--primary-light);
}

.btn-ghost:hover::after {
    transform: translateX(4px);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: #fff;
    padding: 10px 22px;
    font-size: 0.85rem;
}

.btn-whatsapp:hover {
    background: var(--whatsapp-dark);
    transform: scale(1.04);
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(251, 251, 253, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 0.5px solid rgba(0,0,0,0.08);
    transition: var(--transition-fast);
}

.header.scrolled {
    background: rgba(251, 251, 253, 0.92);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
}

.logo-link {
    flex-shrink: 0;
}

.logo {
    height: 36px;
    width: auto;
}

.nav {
    display: flex;
    gap: 2px;
}

.nav-link {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    letter-spacing: -0.01em;
}

.nav-link:hover {
    color: var(--text);
}

.header-cta {
    flex-shrink: 0;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 18px;
    height: 1.5px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition-fast);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ===== HERO — APPLE CENTERED ===== */
.hero {
    padding: 160px 0 0;
    background: var(--bg);
    text-align: center;
    overflow: hidden;
}

.hero-center {
    max-width: 780px;
    margin: 0 auto;
    padding-bottom: 48px;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.1s forwards;
}

.hero h1 {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    color: var(--text);
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.2s forwards;
}

.hero-rotate {
    display: inline-block;
    min-width: 3.8em;
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.hero-rotate.fade-out {
    opacity: 0;
    transform: translateY(8px);
}

.hero-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, #7b7bbd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    color: var(--primary);
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 540px;
    margin: 0 auto 36px;
    font-weight: 400;
    letter-spacing: -0.01em;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.35s forwards;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.5s forwards;
}

.hero-trust-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 28px 0;
    border-top: 0.5px solid var(--border);
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.8s forwards;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
}

.trust-item svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* ===== SECTIONS COMMON ===== */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 72px;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 14px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.035em;
    margin-bottom: 18px;
    color: var(--text);
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
    letter-spacing: -0.01em;
}

/* ===== SERVICES ===== */
.services {
    padding: 140px 0;
    background: var(--bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    padding: 40px 32px;
    border-radius: var(--radius);
    background: var(--bg-elevated);
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out), opacity 0.8s var(--ease-out);
    opacity: 0;
    transform: translateY(30px);
}

.service-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 60px rgba(62, 62, 132, 0.1), 0 1px 3px rgba(0,0,0,0.04);
}

.service-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    border-radius: 14px;
    margin-bottom: 24px;
    color: var(--primary);
}

.service-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    color: var(--text);
}

.service-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
    letter-spacing: -0.005em;
}

/* ===== BRANDS ===== */
.brands {
    padding: 140px 0;
    background: var(--bg-secondary);
}

.brands-grid {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.brand-card {
    flex: 0 1 190px;
    padding: 36px 24px;
    background: var(--bg-elevated);
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out), opacity 0.8s var(--ease-out);
    opacity: 0;
    transform: translateY(30px);
}

.brand-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.brand-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 60px rgba(62, 62, 132, 0.1);
}

.brand-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.02em;
}

.brands-note {
    text-align: center;
    margin-top: 48px;
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

.brands-note a {
    color: var(--primary);
    font-weight: 500;
    transition: var(--transition-fast);
}

.brands-note a:hover {
    color: var(--primary-light);
}

/* ===== WHY US ===== */
.why-us {
    padding: 140px 0;
    background: var(--bg);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.why-card {
    padding: 40px 32px;
    border-radius: var(--radius);
    background: var(--bg-secondary);
    transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out), opacity 0.8s var(--ease-out);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.why-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.why-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 60px rgba(62, 62, 132, 0.08);
}

.why-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(180deg, rgba(62,62,132,0.12) 0%, rgba(62,62,132,0.03) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -0.04em;
}

.why-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    color: var(--text);
}

.why-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
    padding: 140px 0;
    background: var(--bg-secondary);
}

.steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.step-card {
    flex: 1;
    max-width: 320px;
    padding: 48px 32px;
    background: var(--bg-elevated);
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out), opacity 0.8s var(--ease-out);
    opacity: 0;
    transform: translateY(30px);
}

.step-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.step-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 60px rgba(62, 62, 132, 0.1);
}

.step-number {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 auto 24px;
    letter-spacing: -0.02em;
}

.step-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    color: var(--text);
}

.step-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-arrow {
    color: var(--text-tertiary);
    flex-shrink: 0;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 140px 0;
    background: var(--text);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(62, 62, 132, 0.3) 0%, transparent 60%);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(62, 62, 132, 0.2) 0%, transparent 60%);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 80px;
    align-items: center;
}

.cta-text h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.035em;
    margin-bottom: 18px;
}

.cta-text p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 32px;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

.cta-contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.7);
    font-size: 0.92rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.contact-item svg {
    color: var(--whatsapp);
    flex-shrink: 0;
    opacity: 0.8;
}

.btn-whatsapp-lg {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 44px;
    background: var(--whatsapp);
    color: #fff;
    border-radius: var(--radius);
    transition: var(--transition-fast);
    text-align: left;
}

.btn-whatsapp-lg:hover {
    background: var(--whatsapp-dark);
    transform: scale(1.03);
}

.cta-btn-label {
    display: block;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.cta-btn-sub {
    display: block;
    font-size: 0.82rem;
    opacity: 0.75;
    margin-top: 4px;
    font-weight: 400;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-dark);
    padding: 72px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 48px;
}

.footer-logo {
    height: 32px;
    margin-bottom: 18px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.footer-brand p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    line-height: 1.7;
    max-width: 300px;
    letter-spacing: -0.01em;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    color: rgba(255,255,255,0.55);
    font-size: 0.85rem;
    padding: 5px 0;
    transition: var(--transition-fast);
    letter-spacing: -0.01em;
}

.footer-links a:hover {
    color: rgba(255,255,255,0.9);
}

.footer-contact p {
    color: rgba(255,255,255,0.55);
    font-size: 0.85rem;
    padding: 3px 0;
    letter-spacing: -0.01em;
}

.footer-bottom {
    border-top: 0.5px solid rgba(255,255,255,0.06);
    padding: 20px 0;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.25);
    text-align: center;
    letter-spacing: -0.01em;
}

.footer-dev {
    margin-top: 6px;
}

.footer-dev a {
    color: rgba(255,255,255,0.4);
    transition: var(--transition-fast);
}

.footer-dev a:hover {
    color: rgba(255,255,255,0.7);
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 56px;
    height: 56px;
    background: var(--whatsapp);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 24px rgba(37, 211, 102, 0.35);
    z-index: 999;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 36px rgba(37, 211, 102, 0.45);
}

/* ===== KEYFRAME ANIMATIONS ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeScale {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== SCROLL ANIMATION DELAYS ===== */
.service-card,
.brand-card,
.why-card,
.step-card {
    will-change: transform, opacity;
}

.service-card:nth-child(2), .brand-card:nth-child(2), .why-card:nth-child(2) { transition-delay: 0.08s; }
.service-card:nth-child(3), .brand-card:nth-child(3), .why-card:nth-child(3) { transition-delay: 0.16s; }
.service-card:nth-child(4), .brand-card:nth-child(4), .why-card:nth-child(4) { transition-delay: 0.24s; }
.service-card:nth-child(5), .brand-card:nth-child(5), .why-card:nth-child(5) { transition-delay: 0.32s; }
.service-card:nth-child(6), .why-card:nth-child(6) { transition-delay: 0.4s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: clamp(2.4rem, 5vw, 3.4rem);
    }

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

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 52px;
        left: 0;
        right: 0;
        background: rgba(251, 251, 253, 0.96);
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        flex-direction: column;
        padding: 16px 20px;
        gap: 2px;
        border-bottom: 0.5px solid rgba(0,0,0,0.08);
        transform: translateY(-120%);
        transition: transform 0.4s var(--ease-out);
    }

    .nav.active {
        transform: translateY(0);
    }

    .nav-link {
        padding: 14px 16px;
        font-size: 0.95rem;
        border-radius: 10px;
    }

    .nav-link:hover {
        background: rgba(0,0,0,0.03);
    }

    .header-cta {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        padding: 100px 0 0;
    }

    .hero-center {
        padding-bottom: 32px;
    }

    .hero-sub {
        font-size: 1.05rem;
    }

    .hero-sub br {
        display: none;
    }

    .hero-image img {
        max-height: 320px;
    }

    .hero-trust-bar {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .services,
    .brands,
    .why-us,
    .how-it-works,
    .cta-section {
        padding: 100px 0;
    }

    .section-header {
        margin-bottom: 48px;
    }

    .services-grid,
    .why-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .steps-grid {
        flex-direction: column;
        gap: 12px;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .step-card {
        max-width: 100%;
        width: 100%;
    }

    .cta-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }

    .cta-contact-info {
        align-items: center;
    }

    .cta-action {
        display: flex;
        justify-content: center;
    }

    .btn-whatsapp-lg {
        text-align: center;
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

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

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

    .brands-grid {
        gap: 10px;
    }

    .brand-card {
        flex: 0 1 calc(50% - 10px);
        padding: 28px 16px;
    }

    .btn-whatsapp-lg {
        padding: 24px 32px;
        flex-direction: column;
        text-align: center;
    }

    .service-card,
    .why-card,
    .step-card {
        padding: 32px 24px;
    }
}
