/* ===========================================
   HERO COMPONENT — ASYMMETRICAL SPLIT LAYOUT
   =========================================== */

.hero-3d {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8vw;
    background-color: #0a0a0a;
    overflow: hidden;
}

/* ===========================================
   CAMADA DE FUNDO — TEXTURA + VINHETA
   =========================================== */
.hero-bg {
    position: absolute;
    inset: -4%;                 /* folga para o parallax não mostrar bordas */
    background: url("../assets/hero_bg.png") center / cover no-repeat;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 2.4s var(--ease-out-expo) 0.2s;
    will-change: transform, opacity;
    z-index: 0;
}

.content.visible .hero-bg {
    opacity: 0.55;
}

/* Vinheta: escurece as bordas e a base para o texto e a personagem respirarem */
.hero-3d::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(120% 90% at 30% 40%, transparent 0%, rgba(10, 10, 10, 0.65) 70%, #0a0a0a 100%),
        linear-gradient(to top, #0a0a0a 2%, transparent 35%);
}

/* Brilho quente e discreto atrás da personagem */
.hero-glow {
    position: absolute;
    top: 50%;
    right: 12%;
    width: 46vw;
    height: 46vw;
    max-width: 620px;
    max-height: 620px;
    transform: translateY(-50%);
    background: radial-gradient(circle, rgba(190, 92, 52, 0.20) 0%, rgba(190, 92, 52, 0.06) 42%, transparent 72%);
    filter: blur(20px);
    z-index: 2;
    opacity: 0;
    transition: opacity 2.6s var(--ease-out-expo) 0.5s;
    pointer-events: none;
}

.content.visible .hero-glow {
    opacity: 1;
}

/* ===========================================
   LADO ESQUERDO: CONTEÚDO E SLOGAN
   =========================================== */
.hero-content {
    flex: 0 1 540px;
    max-width: 540px;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    z-index: 5;
}

/* ----- Eyebrow (filete + posicionamento) ----- */
.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: transform 1.4s var(--ease-out-expo) 0.2s, opacity 1.4s var(--ease-out-expo) 0.2s;
    will-change: transform, opacity;
}

.hero-eyebrow-line {
    width: 48px;
    height: 1px;
    background: var(--gold);
    flex-shrink: 0;
}

.hero-eyebrow-text {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.32em;
    color: var(--gold);
}

/* ----- Slogan ----- */
.hero-slogan {
    font-family: var(--font-serif);
    font-size: clamp(2.8rem, 5.6vw, 5rem);
    font-weight: 300;
    line-height: 1.08;
    color: #ffffff;
    letter-spacing: 0.01em;
    opacity: 0;
    transform: translateY(30px);
    transition: transform 1.8s var(--ease-out-expo) 0.35s, opacity 1.8s var(--ease-out-expo) 0.35s;
    will-change: transform, opacity;
}

.hero-slogan .accent {
    font-style: italic;
    font-weight: 400;
    color: var(--gold);
}

/* ----- Descrição / posicionamento ----- */
.hero-description {
    font-family: var(--font-sans);
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    font-weight: 200;
    line-height: 1.7;
    letter-spacing: 0.01em;
    color: #b9b9bd;
    max-width: 30rem;
    opacity: 0;
    transform: translateY(30px);
    transition: transform 1.8s var(--ease-out-expo) 0.5s, opacity 1.8s var(--ease-out-expo) 0.5s;
    will-change: transform, opacity;
}

/* ----- Botões (CTA) ----- */
.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    margin-top: 0.75rem;
    opacity: 0;
    transform: translateY(30px);
    transition: transform 1.8s var(--ease-out-expo) 0.65s, opacity 1.8s var(--ease-out-expo) 0.65s;
    will-change: transform, opacity;
}

.btn-primary {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    text-decoration: none;
    color: #0a0a0a;
    background: var(--gold);
    padding: 1rem 2.1rem;
    border: 1px solid var(--gold);
    position: relative;
    overflow: hidden;
    transition: color 0.5s var(--ease-out-expo), background 0.5s var(--ease-out-expo);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #0a0a0a;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s var(--ease-out-expo);
    z-index: -1;
}

.btn-primary:hover {
    color: var(--gold);
    background: transparent;
}

.btn-primary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-ghost {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    text-decoration: none;
    color: #d8d8dc;
    position: relative;
    padding: 0.4rem 0;
}

.btn-ghost::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0.35);
    transform-origin: left;
    opacity: 0.6;
    transition: transform 0.5s var(--ease-out-expo), opacity 0.5s var(--ease-out-expo);
}

.btn-ghost:hover {
    color: #ffffff;
}

.btn-ghost:hover::after {
    transform: scaleX(1);
    opacity: 1;
}

/* ===========================================
   LADO DIREITO: PERSONAGEM AMPLILADO
   =========================================== */
.hero-character-wrapper {
    flex: 1 1 auto;
    height: 82vh;
    height: 82dvh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 3;
    position: relative;
    opacity: 0;
    transform: scale(0.96) translateY(50px);
    transition: transform 2.2s var(--ease-out-expo) 0.4s, opacity 2.2s var(--ease-out-expo) 0.4s;
    will-change: transform, opacity;
}

/* --- Arco / anel dourado luminoso atrás da personagem --- */
.hero-arc {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 52%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1.5px solid rgba(205, 138, 82, 0.25);
    box-shadow:
        0 0 60px rgba(205, 138, 82, 0.12),
        0 0 120px rgba(190, 92, 52, 0.06),
        inset 0 0 40px rgba(205, 138, 82, 0.04);
    opacity: 0;
    transition: opacity 2.4s var(--ease-out-expo) 0.8s;
    pointer-events: none;
    z-index: 0;
    animation: arcPulse 6s ease-in-out infinite;
}

/* Segundo anel mais externo e tênue — dá camada e profundidade */
.hero-arc::before {
    content: '';
    position: absolute;
    top: -18%;
    left: -18%;
    width: 136%;
    height: 136%;
    border-radius: 50%;
    border: 1px solid rgba(205, 138, 82, 0.10);
    box-shadow: 0 0 80px rgba(190, 92, 52, 0.05);
}

/* Terceiro arco interno com gradiente parcial */
.hero-arc::after {
    content: '';
    position: absolute;
    top: 12%;
    left: 12%;
    width: 76%;
    height: 76%;
    border-radius: 50%;
    border: 1px solid transparent;
    border-top-color: rgba(205, 138, 82, 0.30);
    border-right-color: rgba(205, 138, 82, 0.12);
    animation: arcRotate 18s linear infinite;
}

@keyframes arcPulse {
    0%, 100% { box-shadow: 0 0 60px rgba(205, 138, 82, 0.12), 0 0 120px rgba(190, 92, 52, 0.06), inset 0 0 40px rgba(205, 138, 82, 0.04); }
    50% { box-shadow: 0 0 80px rgba(205, 138, 82, 0.18), 0 0 150px rgba(190, 92, 52, 0.10), inset 0 0 50px rgba(205, 138, 82, 0.07); }
}

@keyframes arcRotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* --- Mancha de cor / gradiente accent atrás da personagem --- */
.hero-accent-shape {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    width: 65%;
    height: 70%;
    background:
        radial-gradient(ellipse 70% 50% at 50% 60%, rgba(190, 92, 52, 0.18) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 40% 40%, rgba(205, 138, 82, 0.10) 0%, transparent 60%);
    filter: blur(40px);
    opacity: 0;
    transition: opacity 2.8s var(--ease-out-expo) 0.6s;
    pointer-events: none;
    z-index: 0;
}

.content.visible .hero-arc {
    opacity: 1;
}

.content.visible .hero-accent-shape {
    opacity: 1;
}

.hero-character {
    height: 100%;
    width: auto;
    object-fit: contain;
    position: relative;
    z-index: 1;
    /* Efeito de fade/máscara na base para misturar o personagem com o fundo preto */
    -webkit-mask-image: linear-gradient(to top, transparent 0%, black 15%);
    mask-image: linear-gradient(to top, transparent 0%, black 15%);
    /* Suaviza o retorno do parallax de mouse */
    transition: transform 0.7s var(--ease-out-expo);
    will-change: transform;
}

/* ===========================================
   INDICADOR DE ROLAGEM
   =========================================== */
.hero-scroll {
    position: absolute;
    bottom: 2.4rem;
    left: 8vw;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    text-decoration: none;
    z-index: 6;
    opacity: 0;
    transition: opacity 1.4s var(--ease-out-expo) 1s;
}

.content.visible .hero-scroll {
    opacity: 0.75;
}

.hero-scroll:hover {
    opacity: 1;
}

.hero-scroll-text {
    font-family: var(--font-sans);
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #9a9a9e;
}

.hero-scroll-line {
    width: 1px;
    height: 46px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    position: relative;
    overflow: hidden;
}

.hero-scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: #ffffff;
    animation: scrollPulse 2.2s var(--ease-out-expo) infinite;
}

@keyframes scrollPulse {
    0%   { transform: translateY(-100%); opacity: 0; }
    40%  { opacity: 1; }
    100% { transform: translateY(250%); opacity: 0; }
}

/* ===========================================
   TRILHO DECORATIVO À DIREITA — ORIGEM + REDES
   =========================================== */
.hero-aside {
    flex: 0 0 auto;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.6rem;
    padding: 5rem 0;
    margin-left: 1.5rem;
    z-index: 6;
    opacity: 0;
    transform: translateX(20px);
    transition: transform 1.6s var(--ease-out-expo) 0.8s, opacity 1.6s var(--ease-out-expo) 0.8s;
    will-change: transform, opacity;
}

.content.visible .hero-aside {
    opacity: 1;
    transform: translateX(0);
}

.hero-aside-label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.32em;
    color: var(--gold);
    white-space: nowrap;
}

.hero-aside-line {
    width: 1px;
    height: 90px;
    background: linear-gradient(to bottom, var(--gold), rgba(205, 138, 82, 0));
    flex-shrink: 0;
}

.hero-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
}

.hero-social-link {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: #9a9a9e;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.4s var(--ease-out-expo);
}

.hero-social-link:hover {
    color: var(--gold);
}

/* ===========================================
   ESTADOS DE ANIMAÇÃO (DISPARADOS POR .visible)
   =========================================== */
.content.visible .hero-eyebrow,
.content.visible .hero-slogan,
.content.visible .hero-description,
.content.visible .hero-actions {
    opacity: 1;
    transform: translateY(0);
}

.content.visible .hero-character-wrapper {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* ===========================================
   RESPONSIVIDADE (MOBILE)
   =========================================== */
@media (max-width: 768px) {
    .hero-3d {
        flex-direction: column-reverse;
        justify-content: center;
        /* Altura cresce com o conteúdo para os botões nunca serem cortados */
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        padding: 6rem 1.5rem 3rem;
        gap: 2rem;
    }

    .hero-content {
        flex: none;
        width: 100%;
        text-align: center;
        align-items: center;
        margin-top: 0;
        margin-bottom: 0;
    }

    .hero-slogan {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-description {
        max-width: 100%;
    }

    .hero-eyebrow,
    .hero-actions {
        justify-content: center;
    }

    .hero-character-wrapper {
        flex: none;
        width: 100%;
        height: 45vh;
        height: 45dvh;
        justify-content: center;
    }

    .hero-character {
        height: 100%;
    }

    /* No mobile o miolo não é o problema — evita sobreposição/ruído */
    .hero-aside,
    .hero-scroll {
        display: none;
    }
}

/* ===========================================
   ACESSIBILIDADE
   =========================================== */
@media (prefers-reduced-motion: reduce) {
    .hero-eyebrow,
    .hero-slogan,
    .hero-description,
    .hero-actions,
    .hero-character-wrapper {
        transition-duration: 0.4s;
        transition-delay: 0s;
        transform: none !important;
    }

    .hero-scroll-line::after {
        animation: none;
    }
}
