:root {
    --ink: #203047;
    --muted: #6e7f95;
    --blue: #6ca8ff;
    --blue-strong: #4c86ef;
    --teal: #65d6ca;
    --purple: #b9a7ff;
    --surface: #ffffff;
    --soft: #f6f9ff;
    --line: #e8eef7;
    --shadow: 0 18px 45px rgba(79, 111, 162, .14);
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--ink);
    background: #fbfdff;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
}

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

.site-navbar {
    background: rgba(255, 255, 255, .88);
    border-bottom: 1px solid rgba(232, 238, 247, .82);
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 30px rgba(75, 106, 150, .08);
}

.brand-wrap {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    max-width: 74%;
}

.brand-logo {
    width: 46px;
    height: 46px;
    object-fit: cover;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(76, 134, 239, .16);
}

.brand-wrap strong {
    display: block;
    color: var(--ink);
    font-size: 1.2rem;
    line-height: 1.1;
}

.brand-wrap small {
    display: block;
    color: var(--muted);
    font-size: .62rem;
    line-height: 1.25;
    white-space: normal;
}

.nav-link {
    color: #4d5e75;
    font-weight: 600;
    border-radius: 999px;
    padding: .55rem .85rem !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--blue-strong) !important;
    background: #eef6ff;
}

.btn {
    border-radius: 999px;
    font-weight: 700;
    padding: .78rem 1.25rem;
}

.btn-primary-soft {
    color: #fff;
    background: linear-gradient(135deg, var(--blue-strong), #68cfc4);
    border: 0;
    box-shadow: 0 14px 28px rgba(76, 134, 239, .24);
}

.btn-primary-soft:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(76, 134, 239, .30);
}

.btn-outline-soft {
    color: var(--blue-strong);
    border: 1px solid #cfe0ff;
    background: rgba(255, 255, 255, .75);
}

.btn-outline-soft:hover {
    color: #2b6ee9;
    background: #f0f7ff;
    border-color: #bed6ff;
}

.hero-section,
.page-hero {
    position: relative;
    overflow: hidden;
    padding: 11rem 0 5rem;
    background:
        radial-gradient(circle at top left, rgba(108, 168, 255, .25), transparent 34%),
        radial-gradient(circle at 80% 10%, rgba(101, 214, 202, .22), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
}

.hero-section::before,
.page-hero::before,
.hero-section::after,
.page-hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.hero-section::before,
.page-hero::before {
    width: 220px;
    height: 220px;
    left: -70px;
    bottom: 34px;
    background: radial-gradient(circle, rgba(101, 214, 202, .18), transparent 70%);
}

.hero-section::after,
.page-hero::after {
    width: 260px;
    height: 260px;
    right: -80px;
    top: 92px;
    background: radial-gradient(circle, rgba(185, 167, 255, .18), transparent 70%);
}

.page-hero {
    padding-bottom: 4rem;
}

.page-hero .container,
.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1,
.page-hero h1 {
    max-width: 760px;
    margin: .65rem 0 1rem;
    font-size: clamp(2.35rem, 5vw, 4.8rem);
    line-height: 1.05;
    letter-spacing: 0;
}

.page-hero-title {
    color: var(--ink);
}

.typewriter-title {
    display: inline-block;
}

.typewriter-title::after {
    content: "";
    display: inline-block;
    width: .08em;
    height: .88em;
    margin-left: .08em;
    vertical-align: -.08em;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--blue-strong), var(--teal));
    animation: caretBlink .82s steps(1) infinite;
}

.typewriter-title.typing-done::after {
    animation-duration: 1.2s;
}

.page-hero p,
.hero-lead {
    max-width: 710px;
    color: var(--muted);
    font-size: 1.15rem;
}

.page-hero-subtitle {
    margin-bottom: 1.5rem;
}

.page-hero-content {
    position: relative;
}

.page-hero-illustration {
    position: relative;
}

.page-hero-illustration::before {
    content: "";
    position: absolute;
    inset: 12% 4% 4% 10%;
    border-radius: 38px;
    background: linear-gradient(135deg, rgba(108, 168, 255, .12), rgba(101, 214, 202, .11), rgba(185, 167, 255, .11));
    filter: blur(18px);
}

.hero-img {
    position: relative;
    display: block;
    width: 100%;
    max-width: 640px;
    height: auto;
    object-fit: contain;
    margin-inline: auto;
    border-radius: 34px;
    filter: drop-shadow(0 22px 42px rgba(79, 111, 162, .16));
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: #3b7edc;
    background: rgba(108, 168, 255, .12);
    border: 1px solid rgba(108, 168, 255, .22);
    border-radius: 999px;
    padding: .35rem .75rem;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-actions,
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    margin-top: 1.8rem;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.3rem;
    color: #536983;
    font-weight: 700;
}

.hero-trust i {
    color: #42bfb2;
}

.dashboard-mockup {
    max-width: 540px;
    margin-left: auto;
    padding: 1.4rem;
    border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 30px;
    background: linear-gradient(145deg, rgba(255,255,255,.95), rgba(241,247,255,.84));
    box-shadow: var(--shadow);
}

.mockup-top,
.mockup-footer,
.mockup-card,
.mockup-grid div {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, .82);
}

.mockup-top,
.mockup-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem;
}

.mockup-top span,
.mockup-card span,
.mockup-footer span {
    display: block;
    color: var(--muted);
    font-size: .86rem;
}

.mockup-top strong {
    display: block;
    font-size: 2rem;
}

.mockup-top i {
    color: #55bfb6;
    font-size: 2.3rem;
}

.mockup-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.mockup-grid div {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem;
    font-weight: 800;
}

.mockup-grid i,
.service-card i,
.feature-card i,
.info-card i,
.contact-row i {
    color: var(--blue-strong);
}

.mockup-card {
    padding: 1.2rem;
    margin-bottom: 1rem;
}

.soft-progress {
    height: .65rem;
    margin-top: .75rem;
    background: #eaf1fb;
}

.soft-progress .progress-bar {
    background: linear-gradient(90deg, var(--purple), var(--teal));
}

.section {
    padding: 5.5rem 0;
}

.section-soft {
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 2.8rem;
    text-align: center;
}

.section-heading.compact {
    margin-left: 0;
    text-align: left;
}

.section-heading h2,
.section h2,
.cta-panel h2 {
    margin: .75rem 0 1rem;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.15;
    letter-spacing: 0;
}

.section-heading p,
.section-copy,
.feature-card p,
.legal-card p {
    color: var(--muted);
}

.service-showcase h2 {
    margin-top: .75rem;
}

.service-subtitle {
    color: #2d3d55;
    font-size: 1.08rem;
    font-weight: 700;
}

.section-mark {
    width: 72px;
    height: 4px;
    margin: 1.35rem 0 1.7rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--blue-strong), var(--teal));
}

.service-illustration-card {
    padding: 1rem;
    border: 1px solid rgba(232, 238, 247, .9);
    border-radius: 30px;
    background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(246,249,255,.9));
    box-shadow: var(--shadow);
}

.service-illustration-card img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 24px;
}

.service-section-grid {
    margin-top: 2.2rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.service-card,
.feature-card,
.testimonial-card,
.step-card,
.form-card,
.contact-panel,
.map-placeholder,
.legal-card,
.info-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--shadow);
}

.service-card,
.feature-card,
.testimonial-card,
.step-card,
.info-card {
    height: 100%;
    padding: 1.25rem;
    transition: transform .22s ease, box-shadow .22s ease;
}

.service-card:hover,
.feature-card:hover,
.testimonial-card:hover,
.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 48px rgba(79, 111, 162, .18);
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s ease, transform .7s ease, box-shadow .22s ease;
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card.reveal-on-scroll.is-visible:hover,
.feature-card.reveal-on-scroll.is-visible:hover,
.testimonial-card.reveal-on-scroll.is-visible:hover,
.step-card.reveal-on-scroll.is-visible:hover {
    transform: translateY(-5px);
}

.service-card i,
.feature-card i,
.info-card i {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #eef6ff, #effdfb);
    font-size: 1.35rem;
}

.service-icon-img {
    display: block;
    width: 58px;
    height: 58px;
    object-fit: contain;
    margin-bottom: 1rem;
    padding: .55rem;
    border-radius: 18px;
    background: linear-gradient(135deg, #eef6ff, #effdfb);
}

.service-icon-img.large {
    width: 72px;
    height: 72px;
    padding: .45rem;
}

.service-card h3,
.feature-card h3,
.step-card h3,
.testimonial-card strong {
    margin: 0;
    font-size: 1.04rem;
}

.feature-card.tall {
    min-height: 260px;
}

.large-card {
    padding: 2rem;
}

.benefit-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.benefit-list.stacked {
    grid-template-columns: 1fr;
}

.benefit-list div {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 26px rgba(79, 111, 162, .09);
    font-weight: 800;
}

.benefit-list i {
    color: #43bfb5;
}

.step-card span {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--blue-strong), var(--purple));
    font-weight: 900;
}

.testimonial-card i {
    color: var(--purple);
    font-size: 2rem;
}

.testimonial-card p {
    color: #596b82;
    min-height: 120px;
}

.cta-section {
    padding: 0 0 5.5rem;
}

.cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.5rem;
    border-radius: 30px;
    color: #fff;
    background: linear-gradient(135deg, #6ca8ff, #65d6ca 54%, #b9a7ff);
    box-shadow: 0 22px 54px rgba(76, 134, 239, .24);
}

.cta-panel .eyebrow {
    color: #fff;
    background: rgba(255,255,255,.16);
    border-color: rgba(255,255,255,.28);
}

.form-card,
.contact-panel,
.legal-card {
    padding: 2rem;
}

.form-control,
.form-select {
    min-height: 52px;
    border-color: #dfe9f6;
    border-radius: 16px;
    color: var(--ink);
}

textarea.form-control {
    min-height: 140px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 .25rem rgba(108, 168, 255, .16);
}

.contact-row {
    display: flex;
    gap: .85rem;
    align-items: flex-start;
    padding: .9rem 0;
    color: #4e6279;
    font-weight: 700;
}

.map-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    min-height: 220px;
    margin-top: 1.25rem;
    color: var(--muted);
    background:
        linear-gradient(135deg, rgba(108,168,255,.12), rgba(101,214,202,.12)),
        repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(108,168,255,.07) 12px, rgba(108,168,255,.07) 24px);
    font-weight: 800;
}

.partner-logo-panel {
    margin-top: 1.25rem;
    padding: 1.2rem;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--shadow);
}

.partner-logo-panel span {
    display: block;
    margin-bottom: .85rem;
    color: var(--muted);
    font-size: .86rem;
    font-weight: 800;
    text-transform: uppercase;
}

.partner-logo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

.partner-logo-grid img {
    width: 100%;
    height: 54px;
    object-fit: contain;
    padding: .6rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}

.legal-card h2 {
    margin-top: 1.75rem;
    font-size: 1.35rem;
}

.legal-card h2:first-child {
    margin-top: 0;
}

.site-footer {
    padding: 4rem 0 2rem;
    background: linear-gradient(180deg, #f5f9ff, #ffffff);
    border-top: 1px solid var(--line);
}

.footer-brand {
    font-size: 1.7rem;
    font-weight: 900;
}

.site-footer h3 {
    margin-bottom: 1rem;
    font-size: .95rem;
    text-transform: uppercase;
    color: #536983;
}

.site-footer a {
    display: block;
    margin-bottom: .55rem;
    color: #5c6f86;
}

.site-footer a:hover {
    color: var(--blue-strong);
}

.footer-contact {
    margin-bottom: .45rem;
    color: #5c6f86;
}

.footer-contact a {
    display: inline;
}

.footer-cta {
    padding: 1rem;
    border-radius: 18px;
    background: #eef7ff;
}

.footer-cta span {
    display: block;
    color: var(--muted);
    font-size: .9rem;
}

.footer-cta a {
    margin: .25rem 0 0;
    color: var(--blue-strong);
    font-weight: 800;
}

.footer-bottom {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .75rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    color: #6b7f96;
    font-size: .94rem;
}

.back-to-top {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--blue-strong), var(--teal));
    box-shadow: 0 14px 28px rgba(76, 134, 239, .22);
    opacity: .55;
    transition: opacity .22s ease, transform .22s ease, box-shadow .22s ease;
}

.back-to-top:hover,
.back-to-top.is-visible {
    opacity: 1;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(76, 134, 239, .28);
}

.float-btn {
    position: fixed;
    right: 1rem;
    z-index: 1040;
    display: inline-flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    box-shadow: 0 14px 30px rgba(49, 80, 122, .22);
    transition: transform .2s ease;
}

.float-btn:hover {
    color: #fff;
    transform: translateY(-3px);
}

.float-whatsapp {
    bottom: 5.2rem;
    background: #2fc36a;
}

.float-call {
    bottom: 1.25rem;
    background: linear-gradient(135deg, var(--blue-strong), var(--teal));
}

@keyframes caretBlink {
    0%, 48% { opacity: 1; }
    49%, 100% { opacity: 0; }
}

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

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }
}

.alert {
    border-radius: 18px;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 1rem;
        padding: 1rem;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: #fff;
    }

    .dashboard-mockup {
        margin: 0;
    }

    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cta-panel {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    .brand-logo {
        width: 40px;
        height: 40px;
    }

    .brand-wrap small {
        font-size: .55rem;
    }

    .hero-section,
    .page-hero {
        padding-top: 8.5rem;
    }

    .hero-actions .btn,
    .cta-actions .btn {
        width: 100%;
    }

    .service-grid,
    .benefit-list {
        grid-template-columns: 1fr;
    }

    .partner-logo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section {
        padding: 4rem 0;
    }

    .cta-panel,
    .form-card,
    .contact-panel,
    .legal-card {
        padding: 1.35rem;
        border-radius: 22px;
    }

    .footer-bottom {
        display: block;
    }

    .footer-bottom span {
        display: block;
        margin-bottom: .45rem;
    }
}
