:root {
    --bg: #eef1f6;
    --surface: #f7f9fc;
    --shadow-light: #ffffff;
    --shadow-dark: #c9ced8;
    --primary: #4f8cff;
    --text: #1e2430;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}


/* BACKGROUND REATIVO */

#bg {
    position: fixed;
    inset: 0;
    background: radial-gradient(600px at var(--mx, 50%) var(--my, 50%), rgba(79, 140, 255, 0.18), transparent 70%);
    transition: background 0.08s linear;
    z-index: -1;
}


/* NAV */

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 6vw;
}

.nav nav a {
    margin: 0 16px;
    text-decoration: none;
    color: #444;
    font-weight: 500;
}


/* BUTTONS */

.btn {
    padding: 12px 22px;
    border-radius: 14px;
    border: none;
    background: var(--surface);
    box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
    cursor: pointer;
    text-decoration: none;
}

.btn.primary {
    background: var(--primary);
    color: white;
    box-shadow: none;
}


/* HERO */

.hero {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: flex-start;
    padding: 56px 6vw 72px;
    gap: 48px;
}

.hero-text h1 {
    font-size: 64px;
    margin-bottom: 18px;
    line-height: 1.05;
}

.hero-text {
    padding-top: 16px;
}

.hero-text strong {
    font-weight: 800;
}

.hero-text p {
    font-size: 18px;
    opacity: .8;
}

.hero-actions {
    margin-top: 24px;
    display: flex;
    gap: 16px;
}


/* NEUMORPHISM CORE */

.neumorph {
    background: var(--surface);
    border-radius: 28px;
    box-shadow: 14px 14px 30px var(--shadow-dark), -14px -14px 30px var(--shadow-light);
}


/* HERO CARD */

.hero-card {
    padding: 40px;
    display: flex;
    justify-content: center;
}

.hero-card img {
    max-width: 100%;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .15));
}


/* PRODUCTS */

.products {
    padding: 80px 6vw;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
    margin-top: 32px;
}

.card {
    padding: 28px;
    text-align: center;
    transition: transform .25s ease;
}

.card:hover {
    transform: translateY(-6px);
}

.card img {
    max-width: 100%;
    margin-bottom: 16px;
}

.logo {
    width: 5%;
    height: auto;
}


/* RESPONSIVE */

@media(max-width:900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-text {
    font-family: "Poppins", sans-serif;
    font-size: 22px;
    letter-spacing: 0.3px;
}

.brand-text strong {
    font-weight: 700;
}

.brand-text .vet {
    font-weight: 400;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 25, 40, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 32px;
}

.modal {
    width: 100%;
    max-width: 920px;
    max-height: 90vh;
    background: var(--surface);
    border-radius: 32px;
    padding: 48px;
    position: relative;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 48px;
    overflow: hidden;
}

.modal-image-wrapper {
    background: linear-gradient( 145deg, #ffffff, #f0f3f8);
    border-radius: 28px;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 6px 6px 14px rgba(0, 0, 0, 0.05), inset -6px -6px 14px rgba(255, 255, 255, 0.8);
}

.modal-image {
    width: 100%;
    max-width: 420px;
    max-height: 320px;
    object-fit: contain;
    filter: drop-shadow(0 25px 40px rgba(0, 0, 0, .25));
}

.modal h3 {
    margin: 0;
    font-size: 28px;
}

.modal p {
    font-size: 16px;
    line-height: 1.7;
    opacity: .9;
    white-space: pre-line;
}


/* BOTÃO FECHAR */

.modal-close {
    position: absolute;
    top: 24px;
    right: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.06);
    font-size: 22px;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.12);
}


/* MOBILE */

@media (max-width: 900px) {
    .modal {
        grid-template-columns: 1fr;
        padding: 32px;
    }
}

.modal::-webkit-scrollbar {
    width: 10px;
}

.modal::-webkit-scrollbar-track {
    background: transparent;
}

.modal::-webkit-scrollbar-thumb {
    background: linear-gradient( 180deg, #cfd6e4, #b9c2d6);
    border-radius: 10px;
}

.modal::-webkit-scrollbar-thumb:hover {
    background: linear-gradient( 180deg, #b3bdd4, #9ea9c3);
}

.modal-content-area::-webkit-scrollbar {
    width: 8px;
}

.modal-content-area::-webkit-scrollbar-track {
    background: transparent;
}

.modal-content-area::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #cfd6e4, #b9c2d6);
    border-radius: 10px;
}

.modal-content-area::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #b3bdd4, #9ea9c3);
}

.modal-content-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: calc(90vh - 96px);
    /* 90vh do modal - padding/top/bottom */
    overflow-y: auto;
    padding-right: 12px;
}

.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: grid;
    place-items: center;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    z-index: 2000;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float {
    animation: pulse 2.5s infinite;
}

.hero-features {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature {
    padding: 18px 20px;
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 6px 6px 14px var(--shadow-dark), -6px -6px 14px var(--shadow-light);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.feature strong {
    font-size: 14px;
    font-weight: 600;
}

.feature span {
    font-size: 13px;
    opacity: .75;
}

@media (max-width: 900px) {
    .hero-features {
        grid-template-columns: 1fr;
    }
}

html {
    scroll-behavior: smooth;
}

.hero-ai {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 48px;
    max-width: 760px;
}

.ai-avatar {
    width: 220px;
    height: 220px;
    object-fit: contain;
    filter: drop-shadow(0 24px 48px rgba(79, 140, 255, 0.35)) drop-shadow(0 0 40px rgba(79, 140, 255, 0.25));
    transform: translateX(12px);
}

.ai-text h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.ai-text p {
    font-size: 15px;
    opacity: 0.85;
    margin: 8px 0 14px;
    max-width: 420px;
}

.ai-text ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.ai-text li {
    font-size: 14px;
    opacity: 0.9;
    padding-left: 16px;
    position: relative;
}

.ai-text li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}


/* Mobile */

@media (max-width: 900px) {
    .hero-ai {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .ai-avatar {
        margin: 0 auto;
        width: 160px;
        height: 160px;
        transform: none;
    }
    .ai-text p {
        margin-left: auto;
        margin-right: auto;
    }
}

.carousel {
    overflow: hidden;
    margin-top: 40px;
}

.carousel-track {
    display: flex;
    gap: 32px;
    align-items: center;
    transition: transform .6s ease;
}


/* GERAL */

.carousel .card {
    flex: 0 0 280px;
    padding: 32px;
    text-align: center;
    opacity: .6;
    transform: scale(.9);
    transition: all .4s ease;
}


/* PRONTUÁRIO – destaque */

.prontuario-carousel .card.active {
    transform: scale(1.08);
    opacity: 1;
}

.prontuario-carousel .card.near {
    transform: scale(.98);
    opacity: .85;
}


/* Mobile */

@media (max-width: 900px) {
    .carousel .card {
        flex: 0 0 240px;
    }
}