/* ==========================================================================
   Componente: DemoSection
   Arquivo: demo-section/demo_section.css
   ========================================================================== */

.demo-section-container {
    background: transparent; 
    padding: 60px 24px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0 auto;
    max-width: 1200px;
}

/* --- ESTILIZAÇÃO DOS TÍTULOS --- */
.demo-header-block {
    max-width: 1100px;
    margin: 0 auto 40px auto;
    text-align: left;
}

.demo-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #4f46e5; 
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}

.demo-main-title {
    font-size: clamp(32px, 10vw, 54px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;

    color: #111827; 
    margin: 0;
    letter-spacing: -0.02em;
}

/* --- ESTRUTURA DO CONTEÚDO --- */
.demo-wrapper {
    max-width: 1100px; 
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr; 
    gap: 60px; 
    align-items: stretch; /* Mantém a sincronia de altura com o vídeo */
}

/* --- LADO ESQUERDO: PLAYER DE VÍDEO --- */
.demo-video-block {
    width: 100%;
}

.demo-video-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10; 
    background-color: #1e222b;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.demo-video-placeholder:hover {
    transform: translateY(-2px);
}

.demo-video-mock-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #2a2f3d 0%, #111318 100%);
    opacity: 0.8;
}

.demo-video-overlay {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.demo-play-btn {
    width: 64px;
    height: 64px;
    background-color: #ffffff;
    color: #111316;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, background-color 0.2s;
}

.demo-video-placeholder:hover .demo-play-btn {
    transform: scale(1.1);
    background-color: #f3f4f6;
}

.demo-video-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.8);
}

/* --- LADO DIREITO: CASCATA EM DIAGONAL (IGUAL AO FIGMA) --- */
.demo-cards-stack-block {
    width: 100%;
    position: relative;
}

.demo-stack-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 380px;
}

/* Regras base dos Cards */
.demo-mock-card {
    position: absolute;
    width: 78%; /* Reduzido um pouco a largura base para o recuo lateral caber folgado na div */
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 20px;
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* LÓGICA DO SEU DESENHO: Descendo e indo para a direita */

/* Card 3 (O mais de trás): Alinhado no topo esquerdo */
.card-step-3 {
    z-index: 1;
    top: 0%;
    left: 0%;
}

/* Card 2 (O do meio): Desce um pouco e avança para a direita */
.card-step-2 {
    z-index: 2;
    top: 18%;
    left: 11%;
}

/* Card 1 (O da frente): Fica na base e mais à direita de todos */
.card-step-1 {
    z-index: 3;
    top: 36%;
    left: 22%;
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08); /* Sombra mais forte no principal */
}

/* Efeito Hover interativo: Mantém a seleção trazendo o card focado para frente */
.demo-mock-card:hover {
    z-index: 5;
    border-color: #4f46e5;
    transform: scale(1.02) translateY(-5px); /* Dá um leve salto para cima ao invés de perder o alinhamento lateral */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Elementos Internos */
.demo-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.demo-card-company {
    display: flex;
    align-items: center;
    gap: 8px;
}

.demo-card-icon {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.demo-card-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827; 
}

.demo-card-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: #4b5563;
}

.demo-card-meta strong {
    color: #111827;
}

.demo-section-title {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    display: block;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.demo-body-section {
    margin-bottom: 12px;
}

.demo-insight-item {
    background-color: #f9fafb;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.demo-alert-dot {
    width: 6px;
    height: 6px;
    background-color: #f76707;
    border-radius: 50%;
    flex-shrink: 0;
}

.demo-insight-text {
    font-size: 13px;
    color: #1f2937; 
    margin: 0;
    flex-grow: 1;
}

.demo-time-badge {
    font-size: 11px;
    color: #9ca3af;
}

.demo-dummy-line {
    height: 5px;
    background-color: #f3f4f6;
    border-radius: 3px;
    margin-bottom: 6px;
    width: 90%;
}

.demo-dummy-line.short {
    width: 60%;
}


/* Cores das Logos dos Cards de Demo */
.demo-card-icon.logo-acme { background-color: #ff6b6b; }
.demo-card-icon.logo-xmp { background-color: #845ef7; }
.demo-card-icon.logo-unreal { background-color: #51cf66; }

/* --- ADIÇÃO PARA O MODAL (Adicione ao final do seu arquivo) --- */
.video-modal {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    display: none; align-items: center; justify-content: center;
    z-index: 999999;
}
.video-modal.active { display: flex; }
.video-modal-content {
    position: relative; width: 90%; max-width: 1100px;
    aspect-ratio: 16/9; border-radius: 16px; overflow: hidden;
    background: #000; transform: scale(0.95); transition: transform 0.3s;
}
.video-modal.active .video-modal-content { transform: scale(1); }
.video-modal-content video { width: 100%; height: 100%; display: block; object-fit: contain; }
.close-modal-btn {
    position: absolute; top: 20px; right: 20px; width: 40px; height: 40px;
    border-radius: 50%; background: rgba(255, 255, 255, 0.15);
    border: none; color: #fff; cursor: pointer; z-index: 10;
}

.demo-active-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garante que preencha todo o espaço sem distorcer */
    z-index: 1;        /* Fica atrás do overlay (botão/tag) */
}

/* Opcional: Se quiser que o vídeo fique um pouco escurecido para o texto do overlay aparecer melhor: */
.demo-video-placeholder::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.3); /* Ajuste a opacidade se necessário */
    z-index: 1;
    pointer-events: none;
}
/* Responsividade */
@media (max-width: 968px) {
    .demo-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .demo-stack-container {
        height: auto;
    }
    .demo-mock-card {
        width: 100%;
        left: 0 !important;
        position: relative;
        margin-bottom: 16px;
        top: auto !important;
        transform: none !important;
    }
}

