/* ===== DESIGN TOKENS ===== */
:root {
    --clr-primary: #3B82F6;
    --clr-primary-dark: #1E40AF;
    --clr-primary-deeper: #1E3A5F;
    --clr-primary-light: #DBEAFE;
    --clr-accent: #2563EB;
    --clr-accent-warm: #6366F1;
    --clr-bg: #F8FAFC;
    --clr-surface: #FFFFFF;
    --clr-text: #0F172A;
    --clr-text-secondary: #475569;
    --clr-text-muted: #64748B;
    --clr-border: #E2E8F0;
    --clr-hero-gradient-start: #EFF6FF;
    --clr-hero-gradient-end: #F8FAFC;
    --clr-success: #22C55E;
    --ff-heading: 'Inter', system-ui, sans-serif;
    --ff-body: 'Inter', system-ui, sans-serif;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, .04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, .08);
    --shadow-lg: 0 10px 40px rgba(15, 23, 42, .1);
    --shadow-xl: 0 20px 60px rgba(15, 23, 42, .12);
    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 20px;
    --transition: .3s cubic-bezier(.4, 0, .2, 1);
    --max-w: 1140px;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--ff-body);
    color: var(--clr-text);
    background: var(--clr-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--clr-accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--clr-primary-dark);
}

h1,
h2,
h3,
h4 {
    font-family: var(--ff-heading);
    line-height: 1.2;
    color: var(--clr-text);
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -.025em;
}

h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -.02em;
}

h3 {
    font-size: 1.15rem;
    font-weight: 600;
}

.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-decoration: none;
    font-family: var(--ff-body);
}

.btn-primary {
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent-warm));
    color: #fff;
    box-shadow: 0 4px 14px rgba(59, 130, 246, .35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--clr-primary-dark), var(--clr-accent));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(59, 130, 246, .4);
}

.btn-outline {
    background: transparent;
    color: var(--clr-accent);
    border: 2px solid var(--clr-primary);
}

.btn-outline:hover {
    background: var(--clr-primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 211, 102, .3);
}

.btn-whatsapp:hover {
    background: #128C7E;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, .35);
}

.btn svg,
.btn img {
    width: 20px;
    height: 20px;
}

.btn svg {
    fill: currentColor;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--clr-border);
    transition: box-shadow var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.navbar__brand {
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--clr-primary-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.navbar__brand img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.navbar__links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.navbar__links a {
    font-size: .9rem;
    font-weight: 500;
    color: var(--clr-text-secondary);
}

.navbar__links a:hover {
    color: var(--clr-primary);
}

.navbar__cta .btn {
    padding: 10px 24px;
    font-size: .88rem;
}

.navbar__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.navbar__toggle svg {
    width: 28px;
    height: 28px;
    stroke: var(--clr-text);
}

/* ===== HERO ===== */
.hero {
    padding: 150px 0 90px;
    background: linear-gradient(180deg, var(--clr-hero-gradient-start) 0%, var(--clr-hero-gradient-end) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(59, 130, 246, .06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, .05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero__content {
    flex: 1;
    max-width: 600px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--clr-primary-light);
    color: var(--clr-primary-dark);
    font-size: .8rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 22px;
    letter-spacing: .02em;
}

.hero__badge svg {
    width: 14px;
    height: 14px;
    fill: var(--clr-primary);
}

.hero__title {
    margin-bottom: 20px;
}

.hero__title span {
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent-warm));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: 1.12rem;
    color: var(--clr-text-secondary);
    margin-bottom: 36px;
    max-width: 520px;
    line-height: 1.75;
}

.hero__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero__visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__illustration {
    width: 360px;
    height: 360px;
    background: linear-gradient(135deg, var(--clr-primary-light), rgba(99, 102, 241, .1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.hero__illustration img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    filter: drop-shadow(0 10px 30px rgba(59, 130, 246, .2));
}

/* Floating badges around illustration */
.hero__float-badge {
    position: absolute;
    background: var(--clr-surface);
    border-radius: var(--radius);
    padding: 10px 16px;
    box-shadow: var(--shadow-md);
    font-size: .78rem;
    font-weight: 600;
    color: var(--clr-text);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: floatBadge 5s ease-in-out infinite;
}

.hero__float-badge svg {
    width: 18px;
    height: 18px;
}

.hero__float-badge:nth-child(2) {
    top: 15%;
    left: -10%;
    animation-delay: 0s;
}

.hero__float-badge:nth-child(3) {
    top: 60%;
    right: -12%;
    animation-delay: 1.5s;
}

.hero__float-badge:nth-child(4) {
    bottom: 5%;
    left: 5%;
    animation-delay: 3s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }
}

@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* ===== METRICS BAR ===== */
.metrics {
    padding: 0;
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.metrics__inner {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: 36px 48px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: var(--shadow-md);
}

.metric {
    text-align: center;
}

.metric__value {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent-warm));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric__label {
    font-size: .82rem;
    color: var(--clr-text-muted);
    margin-top: 4px;
    font-weight: 500;
}

/* ===== SECTION SHARED ===== */
section {
    padding: 100px 0;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--clr-primary);
    margin-bottom: 12px;
}

.section-heading {
    margin-bottom: 16px;
}

.section-sub {
    font-size: 1.05rem;
    color: var(--clr-text-secondary);
    max-width: 600px;
    margin-bottom: 52px;
    line-height: 1.75;
}

.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* ===== SERVICES ===== */
.services {
    background: var(--clr-surface);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--clr-bg);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent-warm));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card__icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: var(--clr-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-card__icon svg {
    width: 26px;
    height: 26px;
    fill: var(--clr-primary);
}

.service-card h3 {
    margin-bottom: 10px;
}

.service-card p {
    font-size: .9rem;
    color: var(--clr-text-muted);
    line-height: 1.65;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
    background: var(--clr-bg);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 44px;
    left: 16.66%;
    right: 16.66%;
    height: 2px;
    background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent-warm));
    opacity: .2;
}

.step {
    text-align: center;
    position: relative;
}

.step__number {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent-warm));
    color: #fff;
    font-size: 1.7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    box-shadow: 0 8px 24px rgba(59, 130, 246, .3);
    position: relative;
    z-index: 1;
}

.step h3 {
    margin-bottom: 10px;
}

.step p {
    font-size: .9rem;
    color: var(--clr-text-muted);
    max-width: 300px;
    margin: 0 auto;
    line-height: 1.65;
}

/* ===== TRUST ===== */
.trust {
    background: linear-gradient(135deg, #0F172A 0%, var(--clr-primary-deeper) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.trust::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: rgba(59, 130, 246, .06);
    border-radius: 50%;
}

.trust::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -100px;
    width: 350px;
    height: 350px;
    background: rgba(99, 102, 241, .05);
    border-radius: 50%;
}

.trust h2 {
    color: #fff;
}

.trust .section-label {
    color: rgba(147, 197, 253, .9);
}

.trust .section-sub {
    color: rgba(255, 255, 255, .7);
}

.trust__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.trust-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.trust-item__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(59, 130, 246, .15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-item__icon svg {
    width: 22px;
    height: 22px;
    fill: var(--clr-primary);
}

.trust-item h3 {
    color: #fff;
    margin-bottom: 6px;
    font-size: 1rem;
}

.trust-item p {
    font-size: .88rem;
    color: rgba(255, 255, 255, .65);
    line-height: 1.6;
}

/* ===== CONTACT ===== */
.contact {
    background: var(--clr-surface);
}

.contact__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact__info h2 {
    margin-bottom: 16px;
}

.contact__info>p {
    color: var(--clr-text-secondary);
    margin-bottom: 36px;
}

.contact__detail {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.contact__detail-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--clr-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact__detail-icon svg {
    width: 22px;
    height: 22px;
    fill: var(--clr-primary);
}

.contact__detail-text span {
    display: block;
    font-size: .78rem;
    color: var(--clr-text-muted);
    font-weight: 500;
}

.contact__detail-text strong {
    font-weight: 600;
    color: var(--clr-text);
}

.contact__detail-text a {
    color: var(--clr-text);
}

.contact__detail-text a:hover {
    color: var(--clr-primary);
}

.contact__card {
    background: var(--clr-bg);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    padding: 40px;
}

.contact__card h3 {
    margin-bottom: 8px;
}

.contact__card>p {
    color: var(--clr-text-muted);
    font-size: .9rem;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--clr-text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--clr-border);
    border-radius: var(--radius-sm);
    font-family: var(--ff-body);
    font-size: .9rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    background: var(--clr-surface);
    color: var(--clr-text);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
}

/* ===== FOOTER ===== */
.footer {
    background: #0F172A;
    color: rgba(255, 255, 255, .65);
    padding: 52px 0 28px;
}

.footer__top {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.footer__brand {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer__brand img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.footer__desc {
    font-size: .85rem;
    max-width: 320px;
    line-height: 1.65;
}

.footer__links h4 {
    color: #fff;
    font-size: .82rem;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.footer__links ul {
    list-style: none;
}

.footer__links li {
    margin-bottom: 10px;
}

.footer__links a {
    color: rgba(255, 255, 255, .55);
    font-size: .85rem;
}

.footer__links a:hover {
    color: var(--clr-primary);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    font-size: .8rem;
}

.footer__bottom a {
    color: rgba(255, 255, 255, .5);
}

.footer__bottom a:hover {
    color: var(--clr-primary);
}

/* ===== LEGAL PAGE ===== */
.legal-page {
    padding: 120px 0 80px;
    min-height: 100vh;
}

.legal-page h1 {
    margin-bottom: 8px;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.legal-page .legal-date {
    color: var(--clr-text-muted);
    font-size: .88rem;
    margin-bottom: 40px;
}

.legal-page h2 {
    font-size: 1.3rem;
    margin-top: 36px;
    margin-bottom: 12px;
    color: var(--clr-primary-dark);
}

.legal-page p,
.legal-page li {
    font-size: .95rem;
    color: var(--clr-text-secondary);
    margin-bottom: 12px;
}

.legal-page ul {
    padding-left: 24px;
    margin-bottom: 16px;
}

.legal-page li {
    margin-bottom: 6px;
}

.legal-page a {
    color: var(--clr-accent);
    text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero__content {
        max-width: 100%;
    }

    .hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__visual {
        display: none;
    }

    .metrics__inner {
        flex-wrap: wrap;
        gap: 24px;
        padding: 28px 24px;
    }

    .metric {
        flex: 1 1 120px;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .steps::before {
        display: none;
    }

    .contact__wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer__top {
        flex-direction: column;
        gap: 32px;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .navbar__links {
        display: none;
    }

    .navbar__cta {
        display: none;
    }

    .navbar__toggle {
        display: block;
    }

    .navbar__links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--clr-surface);
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--clr-border);
        box-shadow: var(--shadow-md);
    }

    section {
        padding: 64px 0;
    }

    .services__grid {
        grid-template-columns: 1fr;
    }

    .trust__grid {
        grid-template-columns: 1fr;
    }

    .hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== ANIMATIONS ===== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-up:nth-child(2) {
    transition-delay: .1s;
}

.fade-up:nth-child(3) {
    transition-delay: .2s;
}

.fade-up:nth-child(4) {
    transition-delay: .3s;
}

.fade-up:nth-child(5) {
    transition-delay: .35s;
}

.fade-up:nth-child(6) {
    transition-delay: .4s;
}