/*
  INDEXTEST - Layout padrão Z, hierarquia visual melhorada
  Sistema completo de design com cores, espaçamento e tipografia
*/

:root {
    /* Sistema de cores expandido */
    --bssf-gray-950: #0A0A0A;
    --bssf-gray-900: #1A1A1A;
    --bssf-gray-800: #2A2A2A;
    --bssf-gray-700: #3A3A3A;
    --bssf-gray-600: #4A4A4A;
    --bssf-gray-500: #6B6B6B;
    --bssf-gray-400: #9B9B9B;
    --bssf-gray-300: #CBCBCB;
    --bssf-gray-200: #E5E5E5;
    --bssf-gray-100: #F5F5F5;
    
    /* Variações de laranja */
    --bssf-orange-400: #FF8C5A;
    --bssf-orange-500: #FF6B35;
    --bssf-orange-600: #E55A26;
    --bssf-orange-700: #CC4E1F;
    
    /* Espaçamento sistema 8px */
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 40px;
    --space-6: 48px;
    --space-7: 56px;
    --space-8: 64px;
    --space-9: 72px;
    --space-10: 80px;
    --space-12: 96px;
    --space-16: 128px;
    --space-20: 160px;
    
    /* Tipografia */
    --text-xs: 14px;
    --text-sm: 16px;
    --text-base: 18px;
    --text-lg: 20px;
    --text-xl: 24px;
    --text-2xl: 28px;
    --text-3xl: 36px;
    --text-4xl: 48px;
    --text-5xl: 56px;
}

body.indextest {
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--bssf-gray-100);
}

/* ======================
   TIPOGRAFIA
   ====================== */

body.indextest .hero-title {
    font-size: clamp(48px, 5.5vw, 86px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 900;
}

body.indextest .hero-subtitle {
    font-size: clamp(18px, 1.6vw, 22px);
    line-height: 1.5;
    color: var(--bssf-gray-200);
}

body.indextest .hero-tagline {
    font-size: clamp(14px, 1.1vw, 16px);
    line-height: 1.4;
    color: var(--bssf-gray-200);
    opacity: 0.92;
    margin-top: calc(var(--space-2) * -0.5);
    margin-bottom: var(--space-5);
    font-weight: 600;
    letter-spacing: 0.02em;
}

body.indextest .section-title {
    font-size: clamp(36px, 3vw, 52px);
    line-height: 1.2;
    text-align: left;
    margin-bottom: var(--space-4);
    font-weight: 700;
}

body.indextest .section-subtitle {
    text-align: left;
    font-size: clamp(18px, 1.6vw, 20px);
    line-height: 1.6;
    color: var(--bssf-gray-300);
    margin-left: 0;
    margin-right: 0;
}

body.indextest .section-label {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    color: var(--bssf-orange-500);
}

/* ======================
   HEADER STICKY
   ====================== */

body.indextest .main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    background-color: rgba(10, 10, 10, 0.85);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.indextest .nav-list a {
    transition: color 0.3s ease;
}

body.indextest .nav-list a:hover {
    color: var(--bssf-orange-400);
}

body.indextest .nav-list a.is-active {
    position: relative;
    color: var(--bssf-white);
}

body.indextest .nav-list a.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 3px;
    border-radius: 999px;
    background: var(--bssf-orange-500);
}

/* ======================
   HERO SECTION (PADRÃO Z)
   ====================== */

body.indextest .hero-section {
    justify-content: flex-start;
    min-height: 100vh;
}

body.indextest .hero-image {
    opacity: 0.45;
}

body.indextest .hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.70) 0%,
        rgba(0, 0, 0, 0.35) 60%,
        rgba(0, 0, 0, 0.65) 100%
    );
}

body.indextest .hero-z {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: var(--space-8);
    padding: calc(var(--space-12) + 72px) 0 var(--space-12);
}

body.indextest .hero-content {
    grid-column: 1;
    text-align: center;
    justify-self: center;
    align-self: end;
    width: min(100%, 760px);
    max-width: none;
    margin: 0;
    padding: 0;
}

body.indextest .hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
}

body.indextest .stat-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
}

body.indextest .stat-number {
    font-size: clamp(48px, 5.5vw, 96px);
    font-weight: 900;
    line-height: 1;
    color: var(--bssf-orange-500);
}

body.indextest .stat-label {
    font-size: var(--text-sm);
    color: var(--bssf-gray-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

body.indextest .stat-divider {
    color: var(--bssf-gray-600);
    font-size: var(--text-3xl);
    display: flex;
    align-items: center;
}

body.indextest .hero-cta {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
}

body.indextest .scroll-indicator {
    position: static;
    transform: none;
    margin-top: var(--space-6);
    color: var(--bssf-gray-500);
    font-size: var(--text-sm);
}

/* Vídeo do hero vira parte do "topo direito" do Z */
body.indextest .hero-media {
    display: flex;
    grid-column: 2;
    align-self: end;
    justify-content: center;
}

body.indextest .hero-video-preview {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 380px;
    height: 220px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.indextest .video-caption {
    position: absolute;
    bottom: var(--space-2);
    left: var(--space-2);
    background: rgba(0, 0, 0, 0.7);
    padding: var(--space-1) var(--space-2);
    border-radius: 6px;
    font-size: var(--text-xs);
    color: var(--bssf-gray-200);
}

/* ======================
   BOTÕES (SISTEMA 3 ESTILOS)
   ====================== */

body.indextest .btn {
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: var(--text-base);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    text-decoration: none;
    border: none;
    cursor: pointer;
}

body.indextest .btn-primary {
    background: var(--bssf-orange-500);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

body.indextest .btn-primary:hover {
    background: var(--bssf-orange-400);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
}

body.indextest .btn-secondary {
    background: transparent;
    color: var(--bssf-orange-500);
    border: 2px solid var(--bssf-orange-500);
}

body.indextest .btn-secondary:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: var(--bssf-orange-400);
    color: var(--bssf-orange-400);
}

body.indextest .btn-large {
    padding: 20px 40px;
    font-size: var(--text-lg);
}

body.indextest .btn-small {
    padding: 12px 24px;
    font-size: var(--text-sm);
}

/* ======================
   SEÇÃO TECNOLOGIA (PADRÃO Z)
   ====================== */

body.indextest .tech-showcase-section {
    padding: var(--space-12) 0;
    background: var(--bssf-gray-950);
}

body.indextest .tech-z {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: var(--space-8);
    align-items: start;
}

body.indextest .tech-z-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body.indextest .tech-z-intro .section-label {
    display: inline-block;
    margin-bottom: var(--space-2);
}

body.indextest .tech-z-intro .tech-cta {
    text-align: left;
    margin-top: var(--space-6);
}

body.indextest .tech-z-intro .tech-highlight {
    color: var(--bssf-gray-400);
    margin-bottom: var(--space-3);
    font-size: var(--text-base);
}

body.indextest .tech-z-grid .tech-showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
}

/* ======================
   CARDS DOS ROBÔS
   ====================== */

body.indextest .showcase-card {
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, var(--bssf-gray-700), var(--bssf-gray-900));
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

body.indextest .showcase-card:hover {
    border-color: rgba(255, 107, 53, 0.6);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 10px 40px rgba(255, 107, 53, 0.2);
    transform: translateY(-8px);
}

body.indextest .showcase-image {
    overflow: hidden;
    height: 240px;
    position: relative;
}

body.indextest .showcase-image img,
body.indextest .showcase-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body.indextest .showcase-card:hover .showcase-image img,
body.indextest .showcase-card:hover .showcase-image video {
    transform: scale(1.06);
}

body.indextest .showcase-content {
    padding: var(--space-4);
}

body.indextest .showcase-content h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-2);
    transition: color 0.3s ease;
    color: var(--bssf-gray-100);
}

body.indextest .showcase-card:hover .showcase-content h3 {
    color: var(--bssf-orange-400);
}

body.indextest .showcase-content p {
    color: var(--bssf-gray-400);
    line-height: 1.6;
    font-size: var(--text-base);
}

/* ======================
   FOOTER
   ====================== */

body.indextest .main-footer {
    background: var(--bssf-gray-950);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: var(--space-12) 0 var(--space-6);
}

body.indextest .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

body.indextest .footer-col h4 {
    color: var(--bssf-gray-100);
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-3);
}

body.indextest .footer-links li {
    margin-bottom: var(--space-2);
}

body.indextest .footer-links a {
    color: var(--bssf-gray-400);
    transition: color 0.3s ease;
    display: inline-block;
    padding: 8px 0;
    min-height: 36px;
    line-height: 1.4;
}

body.indextest .footer-links a:hover {
    color: var(--bssf-orange-400);
}

body.indextest .footer-tagline {
    color: var(--bssf-gray-400);
    line-height: 1.8;
    margin: var(--space-3) 0;
}

body.indextest .footer-social {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

body.indextest .social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--bssf-gray-800);
    transition: all 0.3s ease;
}

body.indextest .social-link:hover {
    background: var(--bssf-orange-500);
    transform: translateY(-2px);
}

body.indextest .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--bssf-gray-500);
    font-size: var(--text-sm);
}

body.indextest .footer-legal {
    display: flex;
    gap: var(--space-4);
}

body.indextest .footer-legal a {
    color: var(--bssf-gray-500);
    transition: color 0.3s ease;
    display: inline-block;
    padding: 10px 0;
    min-height: 36px;
    line-height: 1.4;
}

body.indextest .footer-legal a:hover {
    color: var(--bssf-orange-400);
}

/* ======================
   ANIMAÇÕES SCROLL REVEAL
   ====================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.indextest .showcase-card {
    animation: fadeInUp 0.6s ease-out both;
}

body.indextest .showcase-card:nth-child(1) { animation-delay: 0.1s; }
body.indextest .showcase-card:nth-child(2) { animation-delay: 0.2s; }
body.indextest .showcase-card:nth-child(3) { animation-delay: 0.3s; }
body.indextest .showcase-card:nth-child(4) { animation-delay: 0.4s; }
body.indextest .showcase-card:nth-child(5) { animation-delay: 0.5s; }
body.indextest .showcase-card:nth-child(6) { animation-delay: 0.6s; }

/* ======================
   RESPONSIVO
   ====================== */

@media (max-width: 1024px) {
    body.indextest .hero-z {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        padding: calc(var(--space-10) + 72px) 0 var(--space-10);
    }

    body.indextest .hero-content,
    body.indextest .hero-media {
        grid-column: auto;
    }

    body.indextest .hero-media {
        justify-content: center;
    }

    body.indextest .hero-video-preview {
        max-width: 420px;
    }

    body.indextest .tech-z {
        grid-template-columns: 1fr;
    }

    body.indextest .tech-z-intro {
        position: static;
    }

    body.indextest .tech-z-grid .tech-showcase-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    body.indextest .footer-bottom {
        flex-direction: column;
        gap: var(--space-3);
        text-align: center;
    }
}

@media (max-width: 768px) {
    body.indextest .tech-z-grid .tech-showcase-grid {
        grid-template-columns: 1fr;
    }

    body.indextest .hero-video-preview {
        height: 200px;
    }
    
    body.indextest .hero-stats {
        gap: var(--space-2);
    }
    
    body.indextest .stat-number {
        font-size: clamp(36px, 8vw, 64px);
    }
    
    body.indextest .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    body.indextest .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    body.indextest .footer-grid {
        grid-template-columns: 1fr;
    }
}
