:root {
    --dark-bg: #10121A;
    --card-bg: #171A24;
    --card-hover: #1F2332;
    --light-text: #F0F0F0;
    --secondary-text: #9Ea3B0;
    --accent-blue: #3B82F6;
    --accent-glow: rgba(59, 130, 246, 0.3);
    --border-color: #272B3C;
    --font-family: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-family);
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* HEADER */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 16px 0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    background-color: transparent;
}
#main-header.scrolled {
    background-color: rgba(16, 18, 26, 0.85);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}
.logo { 
    font-weight: 900; 
    font-size: 1.4rem;
    letter-spacing: -0.03em;
    color: var(--light-text);
}
.logo span {
    color: var(--accent-blue);
    font-weight: 500;
    font-size: 1rem;
}
#main-header .main-nav a {
    color: var(--secondary-text);
    text-decoration: none;
    margin-left: 28px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}
#main-header .main-nav a:hover {
    color: var(--light-text);
}

/* HERO SECTION (FLOW STYLE) */
.hero-section {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.video-container {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    z-index: 0;
}
.video-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(16, 18, 26, 0.3) 0%, rgba(16, 18, 26, 0.7) 100%);
    z-index: 2;
    pointer-events: none;
}
.video-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}
.video-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;
}
.video-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}
.video-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* FLOW CONTENT OVERLAY */
.hero-flow-content {
    position: absolute;
    bottom: 75px;
    left: 60px;
    max-width: 680px;
    text-align: left;
    z-index: 10;
    padding: 0 20px;
}
.hero-tag {
    display: inline-block;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #93c5fd;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
    backdrop-filter: blur(6px);
}
.flow-title {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: #ffffff;
    margin: 0 0 16px 0;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7);
}
.flow-description {
    font-size: 1.1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 24px 0;
    max-width: 580px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}
.flow-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.flow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
}
.flow-btn.primary {
    background-color: #ffffff;
    color: #10121A;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.flow-btn.primary:hover {
    background-color: #e2e8f0;
    transform: translateY(-2px);
}
.flow-btn.secondary {
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
}
.flow-btn.secondary:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* INDICADORES */
.video-carousel-indicators {
    position: absolute;
    bottom: 28px;
    left: 80px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
}
.video-carousel-indicator {
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    outline: none;
    width: 36px;
    height: 4px;
    border-radius: 2px;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.4s ease, width 0.4s ease;
}
.video-carousel-indicator:hover {
    background-color: rgba(255, 255, 255, 0.6);
}
.video-carousel-indicator.active {
    background-color: #ffffff;
    width: 54px;
}

/* INTRO / MANIFESTO */
.content-section {
    padding: 110px 0;
    position: relative;
    z-index: 2;
    background-color: var(--dark-bg);
}
.section-headline {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    line-height: 1.2;
}
.section-subtext {
    font-size: 1.2rem;
    color: var(--secondary-text);
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
    line-height: 1.7;
}

/* PIPELINE SECTION (3D COVERFLOW ESTILO NATIONAL GEOGRAPHIC) */
.pipeline-section {
    padding: 100px 0 120px 0;
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    overflow: hidden;
}
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}
.section-header h2 {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin: 0 0 12px 0;
}
.section-header p {
    font-size: 1.15rem;
    color: var(--secondary-text);
    margin: 0;
}

.coverflow-wrapper {
    position: relative;
    max-width: 1100px;
    height: 520px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
}

.coverflow-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

.coverflow-card {
    position: absolute;
    width: 320px;
    height: 480px;
    border-radius: 16px;
    overflow: hidden;
    background: #10121A;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    cursor: pointer;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease, filter 0.6s ease, z-index 0.6s ease;
    user-select: none;
}

.coverflow-card .card-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.coverflow-card .card-media video,
.coverflow-card .card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.coverflow-card .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(16, 18, 26, 0.2) 0%, rgba(16, 18, 26, 0.95) 85%);
    z-index: 2;
}

.coverflow-card .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px 20px;
    z-index: 3;
    text-align: left;
}

.card-step-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.3);
    border: 1px solid rgba(59, 130, 246, 0.5);
    color: #93c5fd;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.coverflow-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #ffffff;
}

.coverflow-card p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 16px 0;
    line-height: 1.4;
}

.coverflow-card code {
    background: rgba(255,255,255,0.15);
    padding: 2px 4px;
    border-radius: 3px;
    color: #ffffff;
}

.card-btn {
    display: inline-block;
    background: #ffffff;
    color: #10121A;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
}

.card-btn:hover {
    background: #e2e8f0;
    transform: scale(1.03);
}

/* POSICIONAMENTO 3D DAS CARTAS */
.coverflow-card.active {
    transform: translateX(0) scale(1.08);
    z-index: 10;
    opacity: 1;
    filter: none;
    border-color: rgba(138, 180, 248, 0.6);
}

.coverflow-card.prev {
    transform: translateX(-240px) scale(0.88) rotateY(15deg);
    z-index: 5;
    opacity: 0.75;
    filter: brightness(0.6);
}

.coverflow-card.next {
    transform: translateX(240px) scale(0.88) rotateY(-15deg);
    z-index: 5;
    opacity: 0.75;
    filter: brightness(0.6);
}

.coverflow-card.far-prev {
    transform: translateX(-420px) scale(0.72) rotateY(25deg);
    z-index: 2;
    opacity: 0.35;
    filter: brightness(0.4);
}

.coverflow-card.far-next {
    transform: translateX(420px) scale(0.72) rotateY(-25deg);
    z-index: 2;
    opacity: 0.35;
    filter: brightness(0.4);
}

.coverflow-card.hidden {
    transform: translateX(0) scale(0.5);
    z-index: 0;
    opacity: 0;
    pointer-events: none;
}

/* SETAS DE NAVEGAÇÃO */
.coverflow-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(16, 18, 26, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.coverflow-arrow:hover {
    background: rgba(59, 130, 246, 0.8);
    border-color: #3B82F6;
    transform: translateY(-50%) scale(1.1);
}

.coverflow-prev { left: 10px; padding-right: 3px; }
.coverflow-next { right: 10px; padding-left: 3px; }

/* PRODUCT SECTIONS */
.product-section {
    padding: 110px 0;
    border-top: 1px solid var(--border-color);
}
.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.product-section.alt-layout .product-image {
    order: -1;
}
.product-badge {
    display: inline-block;
    color: var(--accent-blue);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}
.product-text h2 { 
    font-size: 2.6rem; 
    font-weight: 900; 
    letter-spacing: -0.03em;
    margin: 0 0 8px 0; 
}
.product-text h3 { 
    font-size: 1.35rem; 
    color: var(--secondary-text); 
    font-weight: 500; 
    margin: 0 0 24px 0; 
}
.product-text p { 
    color: var(--secondary-text); 
    line-height: 1.6;
}
.product-text ul { 
    padding-left: 20px; 
    color: var(--secondary-text); 
    margin: 20px 0;
}
.product-text ul li { 
    margin-bottom: 12px; 
}
.product-text ul li strong {
    color: var(--light-text);
}
.diferencial {
    margin-top: 28px;
    padding: 16px 20px;
    background-color: var(--card-bg);
    border-left: 3px solid var(--accent-blue);
    border-radius: 4px;
    font-size: 0.95rem;
    color: var(--light-text);
}
.product-image img {
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* APPLICATIONS SECTION */
.apps-section {
    padding: 110px 0;
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
}
.apps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.app-card {
    background-color: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.app-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-blue);
}
.app-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
}
.app-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 10px 0;
}
.app-card p {
    font-size: 0.95rem;
    color: var(--secondary-text);
    margin: 0;
    line-height: 1.5;
}

/* AUDIENCE SECTION */
.audience-section {
    padding: 110px 0;
    border-top: 1px solid var(--border-color);
}
.audience-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 60px;
}
.audience-block.alt-layout .audience-image {
    order: 1;
}
.audience-image img {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
    aspect-ratio: 16/10;
    border: 1px solid var(--border-color);
}
.audience-text h3 {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin: 0 0 16px 0;
}
.audience-text p {
    font-size: 1.1rem;
    color: var(--secondary-text);
    line-height: 1.6;
}

.conclusion-section {
    border-top: 1px solid var(--border-color);
    background-color: var(--card-bg);
}

/* FOOTER */
.main-footer {
    padding: 70px 40px;
    background-color: var(--dark-bg);
    border-top: 1px solid var(--border-color);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-column h4 { 
    font-size: 1rem; 
    margin-bottom: 16px; 
    color: var(--light-text); 
    font-weight: 700;
}
.footer-column .logo { 
    font-size: 1.4rem;
    margin-bottom: 10px;
}
.footer-column a, .footer-column p {
    display: block;
    margin-bottom: 10px;
    color: var(--secondary-text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}
.footer-column a:hover { color: var(--light-text); }

/* REVEAL ANIMATIONS */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVIDADE */
@media (max-width: 1024px) {
    .pipeline-grid { grid-template-columns: repeat(2, 1fr); }
    .apps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .product-layout, .audience-block {
        grid-template-columns: 1fr;
    }
    .product-section.alt-layout .product-image, .audience-block.alt-layout .audience-image {
        order: initial;
    }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .hero-flow-content {
        left: 20px;
        bottom: 60px;
        padding: 0 10px;
    }
    .flow-title { font-size: 2.2rem; }
    .flow-description { font-size: 0.95rem; }
    .video-carousel-indicators { left: 30px; bottom: 20px; }
    .section-headline { font-size: 2.1rem; }
    .product-text h2 { font-size: 2rem; }
    .audience-text h3 { font-size: 1.8rem; }
    .apps-grid, .pipeline-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    #main-header .main-nav { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
}
