/* Reset básico */
* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    color: #fff;
    background: #000;
}

.page {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Vídeo ocupando tudo */
.bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ajuda a suavizar no mobile */
    transform: scale(1.02);
}

/* Fallback (caso vídeo falhe) */
.bg-fallback {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, #222, #000 70%);
}

/* Overlay escuro */
.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
}

/* Conteúdo central (mobile-first) */
.content {
    position: relative;
    height: 100%;
    padding: max(20px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
}

.brand {
    letter-spacing: 0.36em;
    font-weight: 700;
    font-size: 14px;
    opacity: 0.95;
}

.headline {
    margin: 0;
    font-size: 28px;
    line-height: 1.1;
    font-weight: 700;
}

.sub {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
    line-height: 1.4;
    max-width: 28ch;
}

.countdown {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    width: min(420px, 100%);
}

.unit {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(0, 0, 0, 0.25);
    border-radius: 16px;
    padding: 12px 8px;
}

.num {
    font-variant-numeric: tabular-nums;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.label {
    margin-top: 6px;
    font-size: 12px;
    opacity: 0.85;
    letter-spacing: 0.06em;
    text-transform: lowercase;
}

.footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: max(14px, env(safe-area-inset-bottom));
    display: flex;
    justify-content: center;
}

.small {
    font-size: 12px;
    opacity: 0.75;
}

/* Um pouco melhor em telas maiores */
@media (min-width: 768px) {
    .headline {
        font-size: 42px;
    }

    .sub {
        font-size: 16px;
        max-width: 40ch;
    }

    .num {
        font-size: 36px;
    }
}