﻿/* ============================================================
   ROOT - PALETA PREMIUM (Default)
   ============================================================ */
:root {
    --si-primary: #c9a84c;
    --si-primary-light: #e8d5a3;
    --si-primary-dark: #a8893a;
    --si-secondary: #2c3e50;
    --si-accent: #d4af37;
    --si-gold-glow: rgba(201, 168, 76, 0.3);
    --si-card-bg: rgba(10, 14, 23, 0.92);
    --si-card-border: rgba(201, 168, 76, 0.2);
    --si-text: #f5f0e8;
    --si-text-muted: rgba(245, 240, 232, 0.6);
    --si-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    --si-overlay-bg: rgba(0, 0, 0, 0.5);
    --si-gradient-start: rgba(201, 168, 76, 0.15);
    --si-gradient-end: rgba(44, 62, 80, 0.15);
}

/* ============================================================
   RESET E BASE - FULLSCREEN PREMIUM
   ============================================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ============================================================
   CONTROLE REAL DAS TELAS
   O atributo hidden precisa prevalecer sobre display:flex
   ============================================================ */
[hidden] {
    display: none !important;
}

.si-intro-body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: #0a0e17;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.si-intro-container {
    width: 100vw;
    width: 100dvw;
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    background: #0a0e17;
}

/* ============================================================
   WELCOME SCREEN - LUXO
   ============================================================ */
.si-welcome-screen {
    position: fixed;
    inset: 0;
    width: 100vw;
    width: 100dvw;
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, #0f1420 0%, #070a10 100%);
    z-index: 2000;
    animation: welcomeFadeIn 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes welcomeFadeIn {
    0% {
        opacity: 0;
        transform: scale(1.05);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.si-welcome-card {
    max-width: 560px;
    width: 90%;
    padding: 48px 40px 56px;
    text-align: center;
    background: var(--si-card-bg);
    border: 1px solid var(--si-card-border);
    border-radius: 32px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--si-shadow), inset 0 1px 0 rgba(201, 168, 76, 0.1);
    position: relative;
    overflow: hidden;
}

    .si-welcome-card::before {
        content: '';
        position: absolute;
        inset: -2px;
        border-radius: 32px;
        background: linear-gradient(135deg, var(--si-primary), transparent, var(--si-primary-dark));
        opacity: 0.1;
        z-index: -1;
        filter: blur(20px);
    }

.si-welcome-logo {
    max-height: 80px;
    width: auto;
    margin-bottom: 24px;
    filter: drop-shadow(0 4px 20px rgba(201, 168, 76, 0.2));
}

.si-welcome-content {
    position: relative;
    z-index: 1;
}

.si-welcome-eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--si-primary);
    margin-bottom: 16px;
    background: rgba(201, 168, 76, 0.1);
    padding: 6px 20px;
    border-radius: 999px;
    border: 1px solid rgba(201, 168, 76, 0.15);
}

.si-welcome-title {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 300;
    color: var(--si-text);
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

    .si-welcome-title::after {
        content: '';
        display: block;
        width: 60px;
        height: 2px;
        background: linear-gradient(90deg, var(--si-primary), transparent);
        margin: 16px auto 0;
    }

.si-welcome-text {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    line-height: 1.7;
    color: var(--si-text-muted);
    max-width: 440px;
    margin: 0 auto 32px;
    font-weight: 300;
}

/* ============================================================
   BOTÃO PREMIUM
   ============================================================ */
.si-enter-button {
    position: relative;
    width: min(90%, 340px);
    min-height: 64px;
    padding: 0 40px;
    border: 1px solid var(--si-primary);
    border-radius: 999px;
    color: var(--si-text);
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.2), rgba(44, 62, 80, 0.2));
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    cursor: pointer;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(201, 168, 76, 0.2);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    z-index: 1;
}

    .si-enter-button::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 999px;
        background: linear-gradient(135deg, var(--si-primary), var(--si-primary-dark));
        opacity: 0;
        transition: opacity 0.4s ease;
        z-index: -1;
    }

    .si-enter-button::after {
        content: '';
        position: absolute;
        inset: -2px;
        border-radius: 999px;
        background: linear-gradient(135deg, var(--si-primary), transparent, var(--si-primary-dark));
        filter: blur(16px);
        opacity: 0;
        transition: opacity 0.4s ease;
        z-index: -2;
    }

    .si-enter-button:hover,
    .si-enter-button:focus-visible {
        transform: scale(1.02) translateY(-2px);
        border-color: var(--si-primary-light);
        box-shadow: 0 24px 70px rgba(201, 168, 76, 0.2), 0 0 40px rgba(201, 168, 76, 0.05);
    }

        .si-enter-button:hover::before,
        .si-enter-button:focus-visible::before {
            opacity: 1;
        }

        .si-enter-button:hover::after,
        .si-enter-button:focus-visible::after {
            opacity: 1;
        }

    .si-enter-button:active {
        transform: scale(0.97);
    }

/* ============================================================
   TELA DA PORTA
   ============================================================ */
.si-door-screen {
    position: relative;
    width: min(100%, 560px);
    height: min(100%, 880px);
    max-height: 92vh;
    max-height: 92dvh;
    overflow: hidden;
    border-radius: 0;
    border: none;
    background: #0a0e17;
    box-shadow: none;
}

@media (min-width: 768px) {
    .si-door-screen {
        border-radius: 34px;
        border: 1px solid var(--si-card-border);
        box-shadow: var(--si-shadow);
    }
}

.si-door-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.95) saturate(1.05);
}

.si-door-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 10%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 50%);
}

    .si-door-overlay .si-enter-button {
        border-color: rgba(201, 168, 76, 0.5);
        background: linear-gradient(135deg, rgba(201, 168, 76, 0.25), rgba(44, 62, 80, 0.25));
    }

        .si-door-overlay .si-enter-button::before {
            background: linear-gradient(135deg, var(--si-primary), var(--si-secondary));
        }

/* ============================================================
   VÍDEO - FULLSCREEN PREMIUM
   ============================================================ */
.si-intro-card {
    position: fixed;
    inset: 0;
    width: 100vw;
    width: 100dvw;
    height: 100vh;
    height: 100dvh;
    background: #0a0e17;
    border-radius: 0;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    overflow: hidden;
    z-index: 1000;
    animation: introFadeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes introFadeIn {
    0% {
        opacity: 0;
        transform: scale(1.02);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.si-intro-video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    background: #0a0e17;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.si-intro-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #0a0e17;
    display: block;
}

.si-intro-overlay {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(201, 168, 76, 0.6);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    background: rgba(10, 14, 23, 0.7);
    padding: 12px 28px;
    border-radius: 999px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(201, 168, 76, 0.15);
    white-space: nowrap;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    user-select: none;
}

/* ============================================================
   RESPONSIVO - TELEFONES
   ============================================================ */
@media (max-width: 480px) {
    .si-intro-body {
        padding: 0;
        background: #0a0e17;
    }

    .si-intro-container {
        padding: 0;
    }

    .si-door-screen {
        width: 100vw;
        width: 100dvw;
        height: 100vh;
        height: 100dvh;
        max-height: none;
        border-radius: 0;
        border: none;
        box-shadow: none;
    }

    .si-door-image {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }

    .si-door-overlay {
        padding-bottom: 8%;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 40%);
    }

    .si-enter-button {
        width: min(85%, 280px);
        min-height: 56px;
        font-size: 0.95rem;
        padding: 0 24px;
        border-width: 1.5px;
        box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(201, 168, 76, 0.1);
    }

    .si-intro-card {
        border-radius: 0;
        animation: introFadeInMobile 0.6s ease-out forwards;
    }

    @keyframes introFadeInMobile {
        0% {
            opacity: 0;
        }

        100% {
            opacity: 1;
        }
    }

    .si-intro-video {
        object-fit: contain;
        width: 100%;
        height: 100%;
    }

    .si-intro-overlay {
        bottom: 6%;
        font-size: 0.55rem;
        padding: 10px 20px;
        letter-spacing: 0.25em;
        border-width: 0.5px;
        white-space: nowrap;
    }

    .si-welcome-card {
        padding: 36px 24px 44px;
        border-radius: 24px;
        width: 92%;
    }

    .si-welcome-logo {
        max-height: 60px;
        margin-bottom: 20px;
    }

    .si-welcome-title {
        font-size: 1.6rem;
    }

    .si-welcome-text {
        font-size: 0.9rem;
        margin-bottom: 24px;
    }
}

@media (min-width: 481px) and (max-width: 767px) {
    .si-intro-body {
        padding: 0;
    }

    .si-intro-container {
        padding: 0;
    }

    .si-door-screen {
        width: 100vw;
        width: 100dvw;
        height: 100vh;
        height: 100dvh;
        max-height: none;
        border-radius: 0;
        border: none;
        box-shadow: none;
    }

    .si-door-image {
        object-fit: cover;
    }

    .si-door-overlay {
        padding-bottom: 8%;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 40%);
    }

    .si-enter-button {
        width: min(80%, 320px);
        min-height: 60px;
        font-size: 1rem;
    }

    .si-intro-card {
        border-radius: 0;
    }

    .si-intro-video {
        object-fit: contain;
        width: 100%;
        height: 100%;
    }

    .si-intro-overlay {
        bottom: 7%;
        font-size: 0.6rem;
        padding: 11px 24px;
    }
}

/* ============================================================
   TABLETS
   ============================================================ */
@media (min-width: 768px) and (max-width: 1023px) {
    .si-intro-body {
        padding: 16px;
        background: radial-gradient(ellipse at center, #0f1420 0%, #070a10 100%);
    }

    .si-intro-container {
        padding: 0;
    }

    .si-door-screen {
        width: min(90%, 520px);
        height: auto;
        max-height: 85vh;
        max-height: 85dvh;
        aspect-ratio: 9 / 16;
        border-radius: 28px;
        border: 1px solid var(--si-card-border);
        box-shadow: var(--si-shadow);
    }

    .si-door-image {
        object-fit: cover;
        height: 100%;
    }

    .si-door-overlay {
        padding-bottom: 10%;
    }

    .si-enter-button {
        width: min(85%, 300px);
        min-height: 60px;
        font-size: 1.05rem;
    }

    .si-intro-card {
        position: fixed;
        inset: 0;
        width: 100vw;
        width: 100dvw;
        height: 100vh;
        height: 100dvh;
        border-radius: 0;
        background: #0a0e17;
    }

    .si-intro-video {
        object-fit: contain;
        width: 100%;
        height: 100%;
    }

    .si-intro-overlay {
        bottom: 8%;
        font-size: 0.65rem;
        padding: 12px 26px;
    }

    .si-welcome-card {
        padding: 40px 32px 48px;
    }
}

/* ============================================================
   NOTEBOOKS E DESKTOP
   ============================================================ */
@media (min-width: 1024px) and (max-width: 1439px) {
    .si-intro-body {
        padding: 24px;
        background: radial-gradient(ellipse at center, #0f1420 0%, #070a10 100%);
    }

    .si-intro-container {
        padding: 0;
    }

    .si-door-screen {
        width: min(85%, 480px);
        height: auto;
        max-height: 88vh;
        max-height: 88dvh;
        aspect-ratio: 9 / 16;
        border-radius: 32px;
        border: 1px solid var(--si-card-border);
        box-shadow: var(--si-shadow);
    }

    .si-door-image {
        object-fit: cover;
        height: 100%;
    }

    .si-door-overlay {
        padding-bottom: 10%;
    }

    .si-enter-button {
        width: min(80%, 320px);
        min-height: 64px;
        font-size: 1.1rem;
    }

    .si-intro-card {
        position: fixed;
        inset: 0;
        width: 100vw;
        width: 100dvw;
        height: 100vh;
        height: 100dvh;
        border-radius: 0;
        background: #0a0e17;
    }

    .si-intro-video {
        object-fit: contain;
        width: 100%;
        height: 100%;
    }

    .si-intro-overlay {
        bottom: 8%;
        font-size: 0.7rem;
        padding: 14px 30px;
    }
}

/* ============================================================
   DESKTOP GRANDE
   ============================================================ */
@media (min-width: 1440px) {
    .si-intro-body {
        padding: 32px;
        background: radial-gradient(ellipse at center, #0f1420 0%, #070a10 100%);
    }

    .si-intro-container {
        padding: 0;
    }

    .si-door-screen {
        width: min(80%, 520px);
        height: auto;
        max-height: 85vh;
        max-height: 85dvh;
        aspect-ratio: 9 / 16;
        border-radius: 40px;
        border: 1px solid var(--si-card-border);
        box-shadow: var(--si-shadow);
    }

    .si-door-image {
        object-fit: cover;
        height: 100%;
    }

    .si-door-overlay {
        padding-bottom: 10%;
    }

    .si-enter-button {
        width: min(80%, 340px);
        min-height: 68px;
        font-size: 1.15rem;
        padding: 0 36px;
    }

    .si-intro-card {
        position: fixed;
        inset: 0;
        width: 100vw;
        width: 100dvw;
        height: 100vh;
        height: 100dvh;
        border-radius: 0;
        background: #0a0e17;
    }

    .si-intro-video {
        object-fit: contain;
        width: 100%;
        height: 100%;
    }

    .si-intro-overlay {
        bottom: 10%;
        font-size: 0.75rem;
        padding: 16px 36px;
        letter-spacing: 0.35em;
    }
}

/* ============================================================
   LANDSCAPE
   ============================================================ */
@media (max-height: 600px) and (orientation: landscape) {
    .si-intro-body {
        padding: 0;
    }

    .si-intro-container {
        padding: 0;
    }

    .si-door-screen {
        width: auto;
        height: min(90vh, 90dvh);
        max-height: 90vh;
        max-height: 90dvh;
        aspect-ratio: 9 / 16;
        border-radius: 0;
        border: none;
        box-shadow: none;
    }

    .si-door-image {
        object-fit: cover;
        height: 100%;
    }

    .si-door-overlay {
        padding-bottom: 6%;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 40%);
    }

    .si-enter-button {
        min-height: 44px;
        font-size: 0.85rem;
        width: min(70%, 200px);
        padding: 0 20px;
    }

    .si-intro-card {
        position: fixed;
        inset: 0;
        width: 100vw;
        width: 100dvw;
        height: 100vh;
        height: 100dvh;
        border-radius: 0;
        background: #0a0e17;
    }

    .si-intro-video {
        object-fit: contain;
        width: 100%;
        height: 100%;
    }

    .si-intro-overlay {
        bottom: 5%;
        font-size: 0.5rem;
        padding: 8px 16px;
        letter-spacing: 0.2em;
    }

    .si-welcome-card {
        padding: 24px 20px 32px;
        border-radius: 20px;
        width: 80%;
    }

    .si-welcome-logo {
        max-height: 40px;
        margin-bottom: 12px;
    }

    .si-welcome-title {
        font-size: 1.3rem;
    }

    .si-welcome-text {
        font-size: 0.8rem;
        margin-bottom: 16px;
    }
}

/* ============================================================
   ACESSIBILIDADE
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .si-intro-card,
    .si-welcome-screen {
        animation: none;
    }

    .si-enter-button {
        transition: none;
    }

        .si-enter-button:hover {
            transform: none;
        }

        .si-enter-button::before,
        .si-enter-button::after {
            transition: none;
        }
}

/* ============================================================
   SAFARI - SAFE AREAS
   ============================================================ */
@supports (padding: max(0px)) {
    .si-intro-body {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
        padding-top: max(0px, env(safe-area-inset-top));
        padding-bottom: max(0px, env(safe-area-inset-bottom));
    }
}

/* ============================================================
   TOUCH FEEDBACK
   ============================================================ */
@media (hover: none) {
    .si-enter-button:hover {
        transform: none;
    }

        .si-enter-button:hover::before,
        .si-enter-button:hover::after {
            opacity: 0;
        }

    .si-enter-button:active {
        transform: scale(0.96);
        transition: transform 0.1s ease;
    }
}

/* ============================================================
   SHIMMER EFFECT - CARREGAMENTO
   ============================================================ */
.si-intro-video[preload="auto"] {
    background: #0a0e17;
}

.si-intro-video-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.03), transparent);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Remove o shimmer quando o vídeo começa */
.si-intro-video.playing ~ .si-intro-video-wrapper::before {
    opacity: 0;
    animation: none;
}

/* ============================================================
   SELETOR DE IDIOMA
   ============================================================ */

.si-language-selector {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0 0 20px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(10, 14, 23, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.si-language-button {
    min-width: 92px;
    padding: 8px 14px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.58);
    background: transparent;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.03em;
    text-align: center;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

    .si-language-button:hover,
    .si-language-button:focus-visible {
        color: rgba(255, 255, 255, 0.92);
        background: rgba(255, 255, 255, 0.06);
    }

    .si-language-button:active {
        transform: scale(0.97);
    }

    .si-language-button.is-active {
        color: #f5f0e8;
        background: rgba(201, 168, 76, 0.18);
        border-color: rgba(201, 168, 76, 0.32);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }

@media (max-width: 520px) {
    .si-language-selector {
        margin-bottom: 16px;
    }

    .si-language-button {
        min-width: 82px;
        padding: 7px 12px;
        font-size: 0.7rem;
    }
}

@media (max-width: 380px) {
    .si-language-button {
        min-width: 74px;
        padding: 6px 10px;
        font-size: 0.65rem;
    }
}