/* ============ RESET & BASE ============ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --cor-primaria: #034aa9;
    --cor-primaria-escura: #02347a;
    --cor-primaria-clara: #0560c8;
    --cor-texto: #ffffff;
    --sombra-texto: 0 2px 20px rgba(0, 0, 0, 0.25);
    --fonte-principal: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --transicao: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--fonte-principal);
    color: var(--cor-texto);
    min-height: 100vh;
    min-height: 100dvh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;

    /* ============ GRADIENTE SUAVE ============ */
    background: linear-gradient(
        135deg,
        var(--cor-primaria-escura) 0%,
        var(--cor-primaria) 50%,
        var(--cor-primaria-clara) 100%
    );
    background-size: 200% 200%;
    animation: gradientShift 18s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ============ LAYOUT HERO ============ */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 2rem 1.25rem;
    text-align: center;
    position: relative;
}

.hero__content {
    max-width: 960px;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1.2s var(--transicao) 0.2s forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============ H1 - TÍTULO PRINCIPAL ============ */
.hero__title {
    font-size: clamp(1.75rem, 5vw + 1rem, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-shadow: var(--sombra-texto);
    margin-bottom: 1.5rem;
    color: var(--cor-texto);
    background: linear-gradient(180deg, #ffffff 0%, #e0ecff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============ H2 - SUBTÍTULO ============ */
.hero__subtitle {
    font-size: clamp(1.125rem, 2.5vw + 0.75rem, 1.75rem);
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cor-texto);
    text-shadow: var(--sombra-texto);
    opacity: 0;
    animation: fadeIn 1.2s var(--transicao) 0.9s forwards;
    position: relative;
    display: inline-block;
    padding: 0.5em 0;
}

.hero__subtitle::before,
.hero__subtitle::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.5);
}

.hero__subtitle::before { left: -55px; }
.hero__subtitle::after { right: -55px; }

@keyframes fadeIn {
    to { opacity: 1; }
}

/* ============ COUNTDOWN ============ */
.countdown {
    display: flex;
    justify-content: center;
    gap: clamp(0.75rem, 3vw, 2rem);
    margin-top: 2.5rem;
    opacity: 0;
    animation: fadeIn 1s var(--transicao) 1.4s forwards;
}

.countdown__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.countdown__number {
    font-size: clamp(1.75rem, 4vw + 1rem, 3rem);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    text-shadow: var(--sombra-texto);
    color: var(--cor-texto);
}

.countdown__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.75;
    margin-top: 0.4rem;
    color: var(--cor-texto);
}

/* ============ FOOTER ============ */
.hero__footer {
    position: absolute;
    bottom: 1.25rem;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.7;
    color: var(--cor-texto);
}

/* ============ RESPONSIVIDADE ============ */
@media (max-width: 480px) {
    .hero__subtitle::before,
    .hero__subtitle::after {
        display: none;
    }

    .countdown__item {
        min-width: 50px;
    }

    .hero__title {
        font-size: clamp(1.5rem, 6vw, 2.25rem);
    }
}

@media (min-width: 768px) {
    .hero__title {
        font-size: clamp(2.5rem, 4vw + 1rem, 3.5rem);
    }
}

/* ============ ACESSIBILIDADE ============ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    body {
        animation: none;
        background: var(--cor-primaria);
    }
}

:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
    border-radius: 4px;
}

::selection {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}