/* Hero mockup: janela de navegador com o painel real do sistema + cards flutuantes. */
.hero-mockup {
    position: relative;
    z-index: 1;
    perspective: 2200px;
    padding: 3.5rem 0 3rem;
}

.hero-mockup::before {
    content: '';
    position: absolute;
    inset: 8% -6% 4% 4%;
    background:
        radial-gradient(closest-side at 35% 40%, rgba(139, 140, 255, 0.55), transparent),
        radial-gradient(closest-side at 75% 70%, rgba(231, 254, 84, 0.22), transparent);
    filter: blur(40px);
    z-index: -1;
    pointer-events: none;
}

.hm-window {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #f4f4fe;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.18),
        0 2px 0 0 rgba(255, 255, 255, 0.25) inset,
        0 40px 80px -20px rgba(9, 13, 25, 0.65),
        0 18px 36px -18px rgba(9, 13, 25, 0.5);
    transform: rotateY(-9deg) rotateX(4deg);
    transform-origin: left center;
    transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hero-mockup:hover .hm-window {
    transform: rotateY(-4deg) rotateX(2deg);
}

.hm-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 34px;
    padding: 0 14px;
    background: linear-gradient(180deg, #1b1f33 0%, #141829 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hm-dots {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.hm-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff5f57;
}

.hm-dots span:nth-child(2) { background: #febc2e; }
.hm-dots span:nth-child(3) { background: #28c840; }

.hm-url {
    flex: 1;
    max-width: 320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 20px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.hm-url svg {
    width: 10px;
    height: 10px;
    opacity: 0.7;
}

.hm-bar::after {
    content: '';
    width: 46px;
    flex-shrink: 0;
}

.hm-window img {
    display: block;
    width: 100%;
    height: auto;
}

/* Cards flutuantes: 2 numa fileira no topo do mockup e 2 na base. */
.hm-row {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.hm-row--top {
    top: 0.75rem;
    align-items: flex-start;
}

.hm-row--bottom {
    bottom: 0;
    align-items: flex-end;
}

.hm-card {
    position: relative;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 45%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px 10px 10px;
    border-radius: 16px;
    line-height: 1.25;
    animation: hm-float 6s ease-in-out infinite;
}

.hm-card {
    background: rgba(255, 255, 255, 0.96);
    color: #090d19;
    box-shadow:
        0 0 0 1px rgba(100, 101, 254, 0.12),
        0 24px 48px -16px rgba(9, 13, 25, 0.55);
    backdrop-filter: blur(8px);
}

.hm-card-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: #fff;
}

.hm-card-icon svg {
    width: 18px;
    height: 18px;
}

.hm-card-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.hm-card-title,
.hm-card-sub {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hm-card-title {
    font-size: 13px;
    font-weight: 700;
}

.hm-card-sub {
    font-size: 12px;
    color: #5b6078;
}

.hm-card-value {
    margin-top: 2px;
    font-size: 13px;
    font-weight: 800;
    color: #16a34a;
    white-space: nowrap;
}

.hm-card-value--dark {
    color: #090d19;
}

.hm-card-up {
    margin-left: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #16a34a;
}

.hm-card--booking .hm-card-icon { background: #ff5a5f; }
.hm-card--price .hm-card-icon { background: #6465fe; }
.hm-card--price { animation-delay: -4.5s; }

.hm-card-via {
    font-weight: 600;
    color: #5b6078;
}

/* Cards de conversa (Assistente e IA) */
.hm-card--assistant,
.hm-card--ai {
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    width: 38%;
    max-width: 260px;
    padding: 12px;
}

.hm-card--assistant { animation-delay: -2s; }
.hm-card--ai { animation-delay: -3s; }

.hm-ai-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.hm-ai-head .hm-card-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #25d366;
}

.hm-ai-head .hm-card-icon svg {
    width: 15px;
    height: 15px;
}

.hm-card--assistant .hm-ai-head .hm-card-icon {
    background: linear-gradient(135deg, #6465fe, #8b8cff);
}

.hm-ai-badge {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e7fe54;
    color: #090d19;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.hm-bubble {
    padding: 7px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.hm-bubble--in {
    align-self: flex-start;
    max-width: 90%;
    background: #eef0f6;
    border-top-left-radius: 4px;
}

.hm-bubble--out {
    align-self: flex-end;
    max-width: 92%;
    background: #6465fe;
    color: #fff;
    border-top-right-radius: 4px;
}

.hm-bubble--user {
    align-self: flex-end;
    max-width: 92%;
    background: #090d19;
    color: #fff;
    border-top-right-radius: 4px;
}

.hm-bubble--done {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #ecfdf3;
    color: #15803d;
    font-weight: 600;
    border-top-left-radius: 4px;
}

.hm-bubble--done svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

/* Alturas desencontradas em cada par, para os cards não formarem um retângulo. */
.hm-card--price { margin-top: 3.25rem; }
.hm-card--ai { margin-bottom: 3.5rem; }

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

/* A partir de 1280px: duas colunas, com o mockup maior sangrando pela direita. */
@media (min-width: 1280px) {
    section .grid:has(> .hero-mockup) {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        gap: 2.5rem;
    }

    .hero-mockup {
        padding: 4.25rem 0 5rem;
    }

    .hm-window {
        width: 150%;
    }

    .hm-row--top {
        top: 0;
        padding: 0 9% 0 2%;
    }

    .hm-row--bottom {
        padding: 0 0 0 8%;
    }

    /* Sobe acima da janela para não cobrir o endereço do site. */
    .hm-card--price { margin-top: -1.75rem; }
}

/* Até 1279px o hero fica em uma coluna: mockup centralizado, sem sangrar. */
@media (max-width: 1279px) {
    .hero-mockup {
        width: 100%;
        max-width: 780px;
        margin: 0 auto;
        padding: 3.5rem 0 6rem;
    }

    .hm-window,
    .hero-mockup:hover .hm-window {
        transform: none;
    }

    .hm-row--top { top: 0; }
}

/* Celular: só Reserva (+ Preço até 640px) em cima e IA embaixo. */
@media (max-width: 767px) {
    .hero-mockup { padding: 2.5rem 0 6.5rem; }
    .hm-card--assistant { display: none; }
    .hm-card--price { margin-top: 0; }
    .hm-card--ai { margin-bottom: 0; }
    .hm-row--bottom { justify-content: flex-end; }
    .hm-card { max-width: 48%; }
    .hm-card--ai { width: min(240px, 70%); max-width: none; }
}

@media (max-width: 640px) {
    .hero-mockup { padding: 2.75rem 0 7.5rem; }
    .hm-bar { height: 26px; gap: 8px; padding: 0 10px; }
    .hm-bar::after { width: 30px; }
    .hm-dots span { width: 8px; height: 8px; }
    .hm-url { font-size: 9px; height: 16px; }
    .hm-card { padding: 8px 12px 8px 8px; gap: 8px; border-radius: 12px; }
    .hm-card-icon { width: 30px; height: 30px; border-radius: 9px; }
    .hm-card-icon svg { width: 16px; height: 16px; }
    .hm-card-title { font-size: 12px; }
    .hm-card-sub, .hm-card-value { font-size: 11px; }
    .hm-card--price { display: none; }
    .hm-card--booking { max-width: 80%; }
    .hm-card--ai { width: min(240px, 80%); padding: 10px; gap: 6px; }
    .hm-bubble { font-size: 11px; padding: 6px 9px; }
}

@media (prefers-reduced-motion: reduce) {
    .hm-card { animation: none; }
    .hm-window { transition: none; }
}
