/* Vitrine de sites (home, seção #sites): cada projeto em mockup de computador + celular.
   Ao passar o mouse a captura rola até o fim da página (no toque, rola quando o cartão entra na tela).
   "Ampliar" abre a captura inteira numa janela. Tema claro por padrão, escuro com html.dark. */

.vt-grade {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}
@media (max-width: 1023px) {
    .vt-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
}
@media (max-width: 639px) {
    .vt-grade { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

/* cartão */
.vt-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-radius: 22px;
    border: 1px solid rgba(15, 15, 37, 0.08);
    background: #ffffff;
    overflow: hidden;
    transition: transform 320ms var(--ease-out, ease), border-color 320ms ease, box-shadow 320ms ease;
    transform: translateZ(0);
}
html.dark .vt-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}
.vt-card:hover {
    transform: translateY(-4px);
    border-color: rgba(211, 0, 197, 0.35);
    box-shadow: 0 26px 60px -26px rgba(211, 0, 197, 0.38), 0 14px 32px -18px rgba(0, 0, 0, 0.35);
}

/* palco dos mockups */
.vt-stage {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    cursor: zoom-in;
    container-type: inline-size;
    background: radial-gradient(120% 90% at 18% 8%, #f6f4fb 0%, #ebe9f3 55%, #e3e1ed 100%);
}
html.dark .vt-stage {
    background: radial-gradient(120% 90% at 18% 8%, #1c1644 0%, #0e0c25 55%, #07061a 100%);
}
.vt-glow {
    position: absolute;
    right: -18%;
    bottom: -42%;
    width: 72%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(211, 0, 197, 0.42) 0%, rgba(36, 0, 144, 0) 66%);
    filter: blur(18px);
    opacity: 0.55;
    transition: opacity 420ms ease;
    pointer-events: none;
}
.vt-card:hover .vt-glow { opacity: 1; }

/* janela do computador */
.vt-pc {
    position: absolute;
    left: 6%;
    top: 8%;
    width: 80%;
    border-radius: 9px;
    border-radius: clamp(7px, 2.6cqw, 12px);
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 30px 60px -22px rgba(5, 5, 21, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.06);
    transition: transform 520ms var(--ease-out, ease);
}
html.dark .vt-pc {
    background: #0f0f25;
    box-shadow: 0 30px 60px -22px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.vt-card:hover .vt-pc { transform: translateY(-2px); }
.vt-pc-bar {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 22px;
    height: clamp(16px, 6cqw, 24px);
    padding: 0 9px;
    background: #ececf3;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
html.dark .vt-pc-bar {
    background: #17172f;
    border-color: rgba(255, 255, 255, 0.06);
}
.vt-pc-bar i {
    display: block;
    width: 7px;
    height: 7px;
    width: clamp(5px, 1.9cqw, 8px);
    height: clamp(5px, 1.9cqw, 8px);
    border-radius: 50%;
    background: #d5d5df;
}
.vt-pc-bar i:nth-child(1) { background: #ff5f57; }
.vt-pc-bar i:nth-child(2) { background: #febc2e; }
.vt-pc-bar i:nth-child(3) { background: #28c840; }
.vt-pc-bar em {
    flex: 1;
    min-width: 0;
    margin-left: 6px;
    height: 12px;
    height: clamp(9px, 3.4cqw, 14px);
    padding: 0 7px;
    border-radius: 999px;
    background: #ffffff;
    color: #8a8aa0;
    font-family: Inter, sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 7.5px;
    font-size: clamp(6px, 2.1cqw, 9px);
    line-height: 12px;
    line-height: clamp(9px, 3.4cqw, 14px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
html.dark .vt-pc-bar em {
    background: #0b0b1d;
    color: #6e6e8c;
}
.vt-pc .vt-tela { aspect-ratio: 16 / 10; }

/* celular */
.vt-cel {
    position: absolute;
    right: 6%;
    bottom: 6%;
    width: 23%;
    aspect-ratio: 390 / 844;
    border-radius: 12px;
    border-radius: clamp(10px, 3.6cqw, 20px);
    background: #15151f;
    box-shadow: 0 26px 50px -18px rgba(5, 5, 21, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    transition: transform 520ms var(--ease-out, ease);
}
html.dark .vt-cel { box-shadow: 0 26px 50px -18px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.1) inset; }
.vt-card:hover .vt-cel { transform: translateY(-4px); }
.vt-cel::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 4.5%;
    left: 50%;
    width: 34%;
    height: 2.6%;
    transform: translateX(-50%);
    border-radius: 999px;
    background: #000000;
}
.vt-cel .vt-tela {
    position: absolute;
    inset: 2.6%;
    border-radius: 9px;
    border-radius: clamp(8px, 2.9cqw, 16px);
}

/* tela com a captura que rola */
.vt-tela {
    position: relative;
    overflow: hidden;
    background: #ffffff;
}
html.dark .vt-tela { background: #0b0b1d; }
.vt-tela img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    display: block;
    transform: translateY(0);
    transition: transform 900ms var(--ease-in-out, ease-in-out);
    will-change: transform;
}
.vt-card.is-rolando .vt-tela img {
    transform: translateY(var(--vt-dist, 0px));
    transition-timing-function: linear;
}

/* texto e ações */
.vt-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    padding: 20px 22px 22px;
}
.vt-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.vt-tipo {
    flex: none;
    font-family: Inter, sans-serif;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--futura-primary, #D300C5);
}
.vt-dominio {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: Inter, sans-serif;
    font-weight: 500;
    font-size: 12px;
    color: #7a7a90;
}
.vt-titulo {
    margin: 2px 0 0;
    font-family: Michroma, sans-serif;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.35;
    color: #0f0f25;
}
html.dark .vt-titulo { color: #ffffff; }
.vt-desc {
    margin: 0;
    font-family: Inter, sans-serif;
    font-weight: 300;
    font-size: 14px;
    line-height: 1.5;
    color: #55556a;
}
html.dark .vt-desc { color: #b3b3c6; }
.vt-acoes {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
}
.vt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-family: Inter, sans-serif;
    font-weight: 700;
    font-size: 10px;
    line-height: 1;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, transform 200ms ease, filter 200ms ease;
}
.vt-btn svg {
    width: 14px;
    height: 14px;
    flex: none;
}
.vt-btn-primario {
    flex: 1;
    color: #ffffff;
    background: linear-gradient(90deg, var(--futura-primary, #D300C5), #7a00ff);
    box-shadow: 0 12px 26px -14px rgba(211, 0, 197, 0.75);
}
.vt-btn-primario:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}
.vt-btn-sec {
    color: #0f0f25;
    background: #f1f1f6;
    border-color: rgba(0, 0, 0, 0.06);
}
.vt-btn-sec:hover { background: #e7e7ef; }
html.dark .vt-btn-sec {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}
html.dark .vt-btn-sec:hover { background: rgba(255, 255, 255, 0.14); }

/* "Ver mais": os cartões além dos primeiros nascem escondidos */
.vt-card[hidden] { display: none; }
.vt-mais-wrap {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}
.vt-mais-wrap[hidden] { display: none; }
.vt-mais-wrap .vt-btn { min-width: 260px; }

/* janela de ampliação */
html.vt-travado { overflow: hidden; }
.vt-lb {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.vt-lb[hidden] { display: none; }
.vt-lb-fundo {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 21, 0.84);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.vt-lb-caixa {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(1040px, 100%);
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #f4f4f8;
    box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    animation: vt-abrir 280ms var(--ease-out, ease);
}
html.dark .vt-lb-caixa {
    background: #0d0d22;
    border-color: rgba(255, 255, 255, 0.1);
}
@keyframes vt-abrir {
    from { opacity: 0; transform: translateY(14px) scale(0.985); }
    to { opacity: 1; transform: none; }
}
.vt-lb-cab {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
html.dark .vt-lb-cab { border-color: rgba(255, 255, 255, 0.08); }
.vt-lb-nome {
    flex: 1;
    min-width: 0;
}
.vt-lb-nome strong {
    display: block;
    font-family: Michroma, sans-serif;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.3;
    color: #0f0f25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
html.dark .vt-lb-nome strong { color: #ffffff; }
.vt-lb-nome span {
    display: block;
    margin-top: 2px;
    font-family: Inter, sans-serif;
    font-size: 12px;
    line-height: 1.4;
    color: #7a7a90;
}
.vt-lb-modos {
    display: flex;
    gap: 4px;
    padding: 4px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.05);
}
html.dark .vt-lb-modos { background: rgba(255, 255, 255, 0.06); }
.vt-lb-modos button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 12px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #55556a;
    font-family: Inter, sans-serif;
    font-weight: 600;
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}
.vt-lb-modos button svg {
    width: 14px;
    height: 14px;
}
.vt-lb-modos button.is-on {
    background: #ffffff;
    color: #0f0f25;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
html.dark .vt-lb-modos button { color: #b3b3c6; }
html.dark .vt-lb-modos button.is-on {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    box-shadow: none;
}
.vt-lb-cab .vt-btn-primario { flex: none; }
.vt-lb-fechar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: transparent;
    color: #0f0f25;
    cursor: pointer;
}
.vt-lb-fechar svg {
    width: 18px;
    height: 18px;
}
.vt-lb-fechar:hover { background: rgba(0, 0, 0, 0.05); }
html.dark .vt-lb-fechar {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.12);
}
html.dark .vt-lb-fechar:hover { background: rgba(255, 255, 255, 0.08); }
.vt-lb-corpo {
    flex: 1;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 22px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: radial-gradient(120% 90% at 18% 8%, #f6f4fb 0%, #ebe9f3 55%, #e3e1ed 100%);
}
html.dark .vt-lb-corpo {
    background: radial-gradient(120% 90% at 18% 8%, #1c1644 0%, #0e0c25 55%, #07061a 100%);
}
.vt-lb-pc {
    width: 100%;
    max-width: 940px;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 30px 60px -22px rgba(5, 5, 21, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.06);
}
html.dark .vt-lb-pc {
    background: #0f0f25;
    box-shadow: 0 30px 60px -22px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.vt-lb-pc .vt-pc-bar {
    height: 30px;
    padding: 0 12px;
}
.vt-lb-pc .vt-pc-bar i {
    width: 10px;
    height: 10px;
}
.vt-lb-pc .vt-pc-bar em {
    height: 18px;
    line-height: 18px;
    font-size: 11px;
    padding: 0 10px;
}
.vt-lb-pc img,
.vt-lb-cel img {
    display: block;
    width: 100%;
    height: auto;
}
.vt-lb-cel {
    position: relative;
    width: min(100%, 360px);
    padding: 10px;
    border-radius: 38px;
    background: #15151f;
    box-shadow: 0 30px 60px -22px rgba(5, 5, 21, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}
.vt-lb-cel::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 18px;
    left: 50%;
    width: 110px;
    height: 24px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: #000000;
}
.vt-lb-telacel {
    border-radius: 30px;
    overflow: hidden;
    background: #ffffff;
}
html.dark .vt-lb-telacel { background: #0b0b1d; }
.vt-lb-pc[hidden],
.vt-lb-cel[hidden] { display: none; }

@media (max-width: 639px) {
    .vt-lb { padding: 0; }
    .vt-lb-caixa {
        max-height: 100vh;
        max-height: 100dvh;
        height: 100%;
        border-radius: 0;
        border: 0;
    }
    .vt-lb-cab { padding: 12px 14px; }
    .vt-lb-nome { flex: 1 1 100%; }
    .vt-lb-modos { flex: 1; }
    .vt-lb-modos button { flex: 1; justify-content: center; }
    .vt-lb-cab .vt-btn-primario { padding: 0 12px; }
    .vt-lb-corpo { padding: 14px; }
    .vt-lb-cel { border-radius: 30px; padding: 8px; }
    .vt-lb-cel::before { top: 14px; width: 90px; height: 20px; }
    .vt-lb-telacel { border-radius: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .vt-card,
    .vt-pc,
    .vt-cel,
    .vt-glow,
    .vt-btn { transition: none; }
    .vt-lb-caixa { animation: none; }
}
