/* ==========================================================================
   DESIGN SYSTEM & CUSTOM PROPERTIES
   ========================================================================== */
:root {
    /* Cores - Tecnologia Afetiva & Acessibilidade */
    --color-bg-primary: #FAF9F6;
    /* Off-White Quente */
    --color-bg-secondary: #FFFFFF;
    /* Branco Puro */
    --color-bg-alt: #F1EFEA;
    /* Off-White Secundário / Sombra Suave */
    --color-bg-card: #FFFFFF;

    --color-text-primary: #2B2D42;
    /* Charcoal Escuro (Excelente Contraste) */
    --color-text-secondary: #5C6079;
    /* Cinza Escuro de Apoio */
    --color-text-light: #8E93A6;
    /* Cinza Médio */

    /* Cores dos Botões Arcade */
    --color-yes: #2A9D8F;
    /* Verde Menta / Turquesa (SIM) */
    --color-yes-hover: #38B000;
    /* Verde Vibrante Ativo */
    --color-yes-glow: rgba(56, 176, 0, 0.4);

    --color-no: #E76F51;
    /* Vermelho / Laranja Coral (NÃO) */
    --color-no-hover: #D90429;
    /* Vermelho Vibrante Ativo */
    --color-no-glow: rgba(217, 4, 41, 0.4);

    /* Tons Neutros de Apoio */
    --color-accent: #4EA8DE;
    /* Azul Suave para links e tags */
    --color-accent-light: #EBF6FF;
    --color-border: #E3E1D9;
    --color-device-body: #334155;
    /* Slate Escuro para a caixa virtual */
    --color-display-bg: #1E293B;
    /* Display LCD Escuro */
    --color-display-text: #38B000;
    /* Verde Retro LED */

    /* Tipografia */
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    --font-headings: 'Outfit', system-ui, -apple-system, sans-serif;

    /* Efeitos e Cantos */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-round: 50%;

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow-yes: 0 0 25px var(--color-yes-hover);
    --shadow-glow-no: 0 0 25px var(--color-no-hover);

    /* Transições */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* Base para rem */
}

body {
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-headings);
    color: var(--color-text-primary);
    font-weight: 700;
    line-height: 1.25;
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ==========================================================================
   ACESSIBILIDADE
   ========================================================================== */
/* Link invisível que se torna visível ao focar para navegação por teclado */
.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    background: var(--color-yes-hover);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-weight: 600;
    transition: top var(--transition-fast);
    box-shadow: var(--shadow-lg);
}

.skip-link:focus {
    top: 20px;
    outline: 3px solid var(--color-text-primary);
}

/* Classe utilitária para esconder texto visualmente mas manter para leitores de tela */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Foco de Acessibilidade Padrão para toda a Página */
*:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

/* ==========================================================================
   COMPONENTES DE LAYOUT E CONTAINER
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 24px;
    padding-left: 24px;
}

/* Tags de Seções */
.section-tag {
    display: inline-block;
    background-color: var(--color-accent-light);
    color: var(--color-accent);
    padding: 6px 16px;
    border-radius: 50px;
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

/* Títulos das Seções */
.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.75rem;
    }
}

.section-header-centered {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-subtitle-centered {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
}

/* Botões do Layout */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-text-primary);
    color: var(--color-bg-primary);
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary:hover {
    background-color: #3e425f;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: var(--color-text-primary);
    border: 2px solid var(--color-border);
    padding: 14px 30px;
    border-radius: var(--radius-md);
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 1rem;
    transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.btn-secondary:hover {
    background-color: var(--color-bg-alt);
    border-color: var(--color-text-primary);
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* Placeholders Elegantes de Mídia (Carregamento / Fallback) */
.video-placeholder-fallback,
.image-placeholder-fallback {
    position: absolute;
    inset: 0;
    background-color: #E2E8F0;
    background-image: linear-gradient(90deg, #E2E8F0 25%, #CBD5E1 50%, #E2E8F0 75%);
    background-size: 200% 100%;
    animation: placeholder-shimmer 2s infinite linear;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    font-family: var(--font-headings);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: inherit;
    z-index: 1;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

/* Ocultar placeholders de carregamento uma vez carregado */
.media-loaded .video-placeholder-fallback,
.media-loaded .image-placeholder-fallback {
    opacity: 0;
}

@keyframes placeholder-shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
.navbar-header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: rgba(250, 249, 246, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(227, 225, 217, 0.5);
    z-index: 100;
    height: 120px;
    display: flex;
    align-items: center;
    transition: background-color var(--transition-normal);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    height: 85px;
    width: auto;
    transition: transform var(--transition-fast);
}

.nav-logo:hover {
    transform: scale(1.02);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    z-index: 110;
}

.menu-toggle .hamburger,
.menu-toggle::before,
.menu-toggle::after {
    content: '';
    width: 100%;
    height: 3px;
    background-color: var(--color-text-primary);
    border-radius: 3px;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-item {
    font-family: var(--font-headings);
    font-weight: 500;
    font-size: 1rem;
    color: var(--color-text-secondary);
    position: relative;
    padding: 6px 0;
    transition: color var(--transition-fast);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-text-primary);
    transition: width var(--transition-fast);
}

.nav-item:hover {
    color: var(--color-text-primary);
}

.nav-item:hover::after {
    width: 100%;
}

.nav-item:focus-visible::after {
    width: 100%;
}

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.hero-section {
    padding-top: 60px;
    padding-bottom: 80px;
    position: relative;
    background-color: var(--color-bg-primary);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px; /* Espaço reduzido para dispositivos móveis (8px) */
    align-items: center;
}

@media (min-width: 768px) {
    .hero-container {
        gap: 48px; /* Restaura o espaçamento original em tablets/telas médias */
    }
}

@media (min-width: 992px) {
    .hero-container {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 60px; /* Mantém o espaçamento original em telas grandes */
    }
}

.hero-content {
    text-align: left;
}

.hero-logo-wrapper {
    margin-bottom: 24px;
}

.hero-logo {
    max-width: 280px;
    height: auto;
}

@media (min-width: 768px) {
    .hero-logo {
        max-width: 380px;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--color-text-secondary);
    margin-bottom: 0; /* Zerado para evitar espaços vazios quando não há botões de ação */
    font-weight: 400;
    max-width: 600px;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px; /* Movemos o espaçamento para o topo dos botões */
}

@media (min-width: 768px) {
    .hero-actions {
        margin-top: 36px;
    }
}

.hero-media-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.video-container-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/9;
    box-shadow: var(--shadow-lg);
    background-color: var(--color-bg-alt);
    border: 4px solid var(--color-bg-secondary);
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
}

/* Detalhes da Transcrição */
.video-transcription {
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    font-size: 0.875rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-normal);
}

.video-transcription[open] {
    box-shadow: var(--shadow-md);
}

.video-transcription summary {
    font-weight: 600;
    color: var(--color-text-secondary);
    cursor: pointer;
    user-select: none;
    font-family: var(--font-headings);
}

.video-transcription summary:hover {
    color: var(--color-text-primary);
}

.transcription-content {
    margin-top: 12px;
    line-height: 1.5;
    color: var(--color-text-secondary);
    border-top: 1px solid var(--color-bg-alt);
    padding-top: 12px;
}

.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 10;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: 100%;
    height: 40px;
}

/* ==========================================================================
   2. A NOSSA HISTÓRIA
   ========================================================================== */
.history-section {
    background-color: var(--color-bg-alt);
    padding-top: 80px;
    padding-bottom: 100px;
}

.history-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

@media (min-width: 992px) {
    .history-grid {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 60px;
    }
}

.history-text-content {
    text-align: left;
}

.history-paragraph {
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: var(--color-text-secondary);
}

.history-quote-box {
    border-left: 4px solid var(--color-accent);
    padding: 12px 24px;
    background-color: rgba(78, 168, 222, 0.08);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-top: 32px;
}

.history-quote-box blockquote {
    font-family: var(--font-headings);
    font-size: 1.125rem;
    font-style: italic;
    font-weight: 500;
    color: var(--color-text-primary);
}

.history-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 6px solid var(--color-bg-secondary);
    background-color: var(--color-bg-primary);
    transition: transform var(--transition-normal);
}

.history-image-wrapper:hover {
    transform: scale(1.01);
}

.history-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 4/3;
    position: relative;
    z-index: 2;
}

.image-caption {
    background-color: var(--color-bg-secondary);
    padding: 12px 18px;
    text-align: center;
    border-top: 1px solid var(--color-border);
    position: relative;
    z-index: 3;
}

.image-caption span {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

/* Container de mídias da seção História */
.history-media-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.history-images-thumbnails {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Ajustes para miniaturas */
.thumb-wrapper {
    border-width: 4px;
    border-radius: var(--radius-md);
}

.thumb-wrapper .image-caption {
    padding: 8px 12px;
}

.thumb-wrapper .image-caption span {
    font-size: 0.75rem;
}

.img-pos-bottom {
    object-position: bottom;
}

/* ==========================================================================
   3. COMO FUNCIONA E SIMULADOR
   ========================================================================== */
.how-it-works-section {
    padding-top: 100px;
    padding-bottom: 100px;
    background-color: var(--color-bg-primary);
}


/* Cards de Benefícios */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.benefit-card {
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.benefit-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.icon-visual {
    background-color: rgba(56, 176, 0, 0.08);
    color: var(--color-yes-hover);
}

.icon-learning {
    background-color: rgba(78, 168, 222, 0.08);
    color: var(--color-accent);
}

.icon-autonomy {
    background-color: rgba(255, 90, 95, 0.08);
    color: var(--color-no-hover);
}

.benefit-card-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.benefit-card-desc {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   4. ESPECIFICAÇÕES TÉCNICAS
   ========================================================================== */
.specs-section {
    background-color: var(--color-bg-alt);
    padding-top: 100px;
    padding-bottom: 100px;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 992px) {
    .specs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.spec-card {
    background-color: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-normal);
}

.spec-card:hover {
    transform: translateY(-4px);
}

.spec-icon {
    color: var(--color-accent);
    margin-bottom: 24px;
}

.spec-card-title {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.spec-card-text {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: auto;
    /* Empurra o badge para a parte inferior */
    padding-bottom: 24px;
}

.spec-badge {
    align-self: flex-start;
    background-color: var(--color-bg-alt);
    color: var(--color-text-secondary);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
}

/* ==========================================================================
   5. GALERIA VISUAL
   ========================================================================== */
.gallery-section {
    background-color: var(--color-bg-primary);
    padding-top: 100px;
    padding-bottom: 120px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.gallery-item-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background-color: var(--color-bg-secondary);
    border: 5px solid var(--color-bg-secondary);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.gallery-item-wrapper:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.gallery-img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    position: relative;
    z-index: 2;
    transition: transform var(--transition-normal);
}

.gallery-item-wrapper:hover .gallery-img {
    transform: scale(1.03);
}

.gallery-caption {
    background-color: var(--color-bg-secondary);
    padding: 16px 20px;
    text-align: left;
    border-top: 1px solid var(--color-border);
    position: relative;
    z-index: 3;
}

.gallery-caption span {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

/* ==========================================================================
   6. RODAPÉ
   ========================================================================== */
.main-footer {
    background-color: var(--color-text-primary);
    color: var(--color-bg-primary);
    padding-top: 80px;
    padding-bottom: 40px;
    position: relative;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.footer-logo-area {
    text-align: center;
}

.footer-logo {
    height: 85px;
    width: auto;
    filter: brightness(0) invert(1);
    /* Torna o logo completamente branco para contraste no rodapé */
    margin: 0 auto 16px;
}

.footer-tagline {
    color: var(--color-text-light);
    font-size: 1rem;
    font-family: var(--font-headings);
}

.footer-contact {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: -16px;
}

.footer-contact .contact-label {
    font-family: var(--font-headings);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-light);
}

.footer-contact .contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-bg-primary);
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 500;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-contact .contact-link:hover {
    color: var(--color-accent);
    transform: translateY(-2px);
}

.footer-contact .contact-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.footer-contact .contact-link:hover .contact-icon {
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-light);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 32px;
}


/* ==========================================================================
   MENU RESPONSIVO (MOBILE MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 991px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 120px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 120px);
        background-color: var(--color-bg-primary);
        z-index: 99;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 60px;
        transition: left var(--transition-normal);
        border-top: 1px solid var(--color-border);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .nav-item {
        font-size: 1.5rem;
    }

    /* Hambúrguer Animação ao Abrir */
    .menu-toggle.active .hamburger {
        opacity: 0;
    }

    .menu-toggle.active::before {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.active::after {
        transform: translateY(-9px) rotate(-45deg);
    }
}