/* PathDOC Landing Page Styles */

:root {
    /* Colors from new palette */
    --downriver: #071c47;
    --fiord: #445067;
    --geyser: #d3d8e3;
    --rhino: #263653;
    --blue-zodiac: #0d2447;
    
    /* Semantic tokens */
    --bg: var(--downriver);
    --surface-1: rgba(211, 216, 227, 0.06);
    --surface-2: rgba(211, 216, 227, 0.09);
    --border: rgba(211, 216, 227, 0.18);
    --text: var(--geyser);
    --text-muted: var(--fiord);
    --brand: var(--blue-zodiac);
    --brand-2: var(--rhino);
    --brand-gradient: linear-gradient(120deg, var(--brand), var(--brand-2));
    --focus: rgba(211, 216, 227, 0.55);
    
    /* Hero specific */
    --hero-bg: #c6cddb;
    
    /* Spacing */
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 48px;
    --space-6: 64px;
    --space-7: 96px;
    
    /* Radius */
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    
    /* Shadows */
    --shadow-sm: 0 1px 0 rgba(255,255,255,0.06), 0 10px 30px rgba(0,0,0,0.35);
    --shadow-md: 0 1px 0 rgba(255,255,255,0.06), 0 18px 50px rgba(0,0,0,0.45);
    
    /* Container */
    --container: min(1400px, calc(100vw - 64px));
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6, p {
    margin-top: 0;
    margin-bottom: 0;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: #ffffff;
    color: var(--downriver);
    line-height: 1.6;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Reserve header height while the shared layout is injected */
.header[data-include="header"]:empty {
    min-height: 64px;
}

.header.scrolled {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: var(--space-4);
    padding: 0 var(--space-4);
}

.logo {
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 6px;
}

.logo picture {
    display: block;
}

.logo img {
    display: block;
    height: 48px;
    width: auto;
    object-fit: contain;
}

.nav {
    display: flex;
    gap: var(--space-4);
    flex: 1;
    justify-content: center;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    border-radius: 10px;
    padding: 0;
}

.nav-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

.nav-toggle {
    gap: 4px;
    flex-direction: column;
}

.nav-cta {
    display: none;
}

.nav-link {
    color: var(--downriver);
    text-decoration: none;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.01em;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    padding: var(--space-1) 0;
}

.nav-link:hover {
    color: var(--brand);
    transform: translateY(-2px);
    opacity: 0.8;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--brand);
    color: #ffffff;
    border: 1px solid transparent;
    text-align: center;
    line-height: 1.3;
    box-shadow: 0 4px 12px rgba(13, 36, 71, 0.15);
}

.btn-primary:hover {
    transform: translateY(-1px);
    background: var(--downriver);
    box-shadow: 0 6px 16px rgba(13, 36, 71, 0.2);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-secondary:hover {
    background: var(--surface-1);
}

.btn-large {
    padding: 6px 16px;
    font-size: 15px;
    font-weight: 600;
}

.btn-white {
    background: #ffffff;
    color: var(--downriver);
    border: 1px solid transparent;
    text-align: center;
    line-height: 1.3;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.btn-white:hover {
    transform: translateY(-1px);
    background: #f0f0f0;
    box-shadow: 0 6px 16px rgba(255, 255, 255, 0.3);
}

/* Subtle shine for highlighted CTA (e.g., "TESTE GRÁTIS") */
.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::before {
    content: "";
    position: absolute;
    top: -60%;
    left: -40%;
    width: 60%;
    height: 220%;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.92) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: translateX(-180%) skewX(-22deg);
    animation: btnShineSweep 3.6s ease-in-out infinite;
    filter: blur(0.3px);
    pointer-events: none;
}

@keyframes btnShineSweep {
    0%, 62% {
        transform: translateX(-180%) skewX(-22deg);
        opacity: 0;
    }
    66% {
        opacity: 1;
    }
    86% {
        transform: translateX(380%) skewX(-22deg);
        opacity: 0;
    }
    100% {
        transform: translateX(380%) skewX(-22deg);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn-shine::before {
        animation: none;
        display: none;
    }
}

/* Trial (intermediate) page */
.case-detail-hero.trial-hero {
    padding-top: calc(64px + var(--space-4));
    padding-bottom: var(--space-4);

    /* Gray band behind the title/subtitle (same tone used in funcionalidades hero) */
    --trial-band-height: clamp(220px, 32vh, 320px);
    /* Keep the grid visible: grid layers on top, band as the bottom layer */
    background:
        linear-gradient(rgba(7, 28, 71, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(7, 28, 71, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, #ced5e0 0 var(--trial-band-height), #ffffff var(--trial-band-height) 100%);
    background-size: 50px 50px, 50px 50px, auto;
    background-repeat: repeat, repeat, no-repeat;
}

.trial-center {
    max-width: 840px;
    margin: 0 auto;
    text-align: center;
}

.trial-title-center {
    text-align: center;
}

.trial-desc-center {
    /* Subtitle below the title, inside the gray band (no box) */
    background: transparent;
    padding: 0;
    border-radius: 0;
    max-width: 720px;

    display: block;
    margin: var(--space-2) auto 0;
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
    color: var(--fiord);
    font-weight: 500;
}

.trial-form-center {
    max-width: 500px;
    margin: calc(var(--space-7) + var(--space-2)) auto 0;
}

/* Bring logo + CTA slightly toward center on desktop (symmetrical margins) */
@media (min-width: 900px) {
    .trial-header-container {
        max-width: min(980px, calc(100vw - 240px));
    }
}
/* Trial header: logo centered (no demo button) */
.trial-header-container {
    justify-content: center;
}

.trial-form-center .trial-disclaimer {
    text-align: justify;
}

.trial-form-center .trial-submit {
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.trial-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* More separation between the two checkbox blocks */
.trial-checkbox + .trial-checkbox {
    margin-top: 10px;
}

.trial-checkbox {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 12px;
    align-items: start;
    color: var(--downriver);
    font-weight: 500;
    font-size: 14px;
    line-height: 1.5;
    text-align: justify;
}

.trial-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--downriver);
}

.trial-disclaimer {
    margin-top: 16px;
    font-size: 12px;
    color: var(--fiord);
    line-height: 1.5;
}

.trial-disclaimer a {
    color: var(--downriver);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.trial-submit {
    margin-top: 12px;
    width: 100%;
    justify-content: center;
    padding: 9px 14px;
    font-size: 13px;
    position: relative;
    top: 10px;
}

.trial-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@media (max-width: 560px) {
    .trial-form {
        gap: 12px;
    }
}

.btn-demo {
    padding: 6px 24px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

/* Hero */
.hero {
    position: relative;
    width: 100vw;
    height: 742px;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    background-color: var(--hero-bg);
    display: flex;
    flex-direction: column;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center;
    border-radius: 0;
    z-index: 0;
}



/* Hero Content */
.hero-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 120px 120px var(--space-6) 120px;
}

/* Home hero fine-tune (easy to revert) */
.hero.hero-shift-up .hero-content {
    padding: 72px 120px var(--space-6) 120px;
}

.hero-text {
    width: 100%; /* Garante largura total */
    text-align: left;
    margin: 0;
    display: flex;
    align-items: center; 
    justify-content: space-between; /* Força separação máxima */
    gap: var(--space-5);
    flex-wrap: nowrap; /* Não quebra linha */
}

.hero-headline {
    flex: 1; /* Ocupa o espaço disponível, empurrando o subheadline */
    min-width: 300px;
    font-size: clamp(2.1rem, 1.5rem + 3vw, 4.2rem);
    line-height: 1.1;
    font-weight: 700;
    background: linear-gradient(90deg, #ffffff, #e0e7ff, #ffffff, #e0e7ff, #ffffff);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 8s ease-in-out infinite;
    margin-bottom: 0;
    margin-left: 140px; /* Aumentado para deslocar mais */
    letter-spacing: -0.03em;
}

@keyframes shimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-headline-faded {
    color: #969dac;
}

.hero-text-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 0 0 420px;
    margin-right: 180px;
    align-items: flex-start;
    justify-content: flex-start;
}

.hero-subheadline {
    font-size: clamp(1.045rem, 0.99rem + 0.385vw, 1.265rem);
    line-height: 1.6;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0;
    letter-spacing: -0.01em;
}

.hero-text-container .hero-cta {
    margin-top: var(--space-1);
}

/* Ajuste para mobile */
/* Responsive: Tablet and below */
@media (max-width: 900px) {
    .hero-text {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
    }
    
    .hero-headline {
        margin-bottom: var(--space-2);
        max-width: 100%;
        margin-left: 0 !important;
    }
    
    .hero-subheadline {
        flex: 0 0 auto;
        max-width: 100%;
    }
    
    .hero-content {
        padding: 80px 32px var(--space-5) 32px !important;
    }
}

/* Responsive: Mobile */
@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 500px;
    }
    
    .hero-content {
        padding: 60px 24px var(--space-4) 24px !important;
    }
    
    .hero-text {
        width: 100%;
    }
    
    .hero-text-container {
        margin-right: 0 !important;
        flex: 1 1 auto !important;
        width: 100%;
    }
    
    .btn-large {
        width: 100%;
        max-width: 200px;
    }
}

.hero-ctas {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-4);
}

.hero-proof-bar {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    font-size: 14px;
    font-weight: 500;
    color: var(--rhino);
    letter-spacing: -0.01em;
}

.proof-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.proof-item svg {
    color: var(--brand);
    flex-shrink: 0;
}

/* Logos Section */
.logos-section {
    padding: 8px 0 16px 0;
    background: #ced5e0;
    position: relative;
}

.logos-label {
    text-align: center;
    font-size: 12px;
    color: var(--rhino);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-3);
    margin-top: var(--space-3);
    font-weight: 600;
}

.logos-carousel {
    overflow: hidden;
}

.logos-track {
    display: flex;
    width: max-content; /* Garante que os itens fiquem em uma linha e calcula largura correta */
    animation: scrollLogos 162s linear infinite; /* 50% mais devagar */
    will-change: transform;
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.logo-item {
    flex: 0 0 240px; /* Aumentado de 200px para 240px */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--space-5); /* Aumentado de space-4 para space-5 (48px) */
    color: #ffffff; 
}

.logo-item img {
    width: 140px;
    height: 36px;
    max-width: none;
    object-fit: contain;
    /* Deixa todos os logos brancos (independente das cores originais) */
    filter: brightness(0) saturate(100%) invert(1);
    opacity: 0.9;
    transition: filter 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.logo-item:hover img {
    filter: none; /* Mostra cores originais no hover */
    opacity: 1 !important;
    transform: scale(1.03);
}

/* Ajuste pontual: Mistral tem mais “margem” interna no SVG */
.logo-item img[alt="Mistral"] {
    transform: scale(1.18);
    transform-origin: center;
}

.logo-item:hover img[alt="Mistral"] {
    transform: scale(1.21);
}

/* Tagline Section */
.tagline-section {
    padding: var(--space-5) 0;
    text-align: center;
    background: #ffffff;
    position: relative;
}

.tagline-heading {
    font-size: clamp(2rem, 3vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--downriver);
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
}

.tagline-faded {
    color: #969dac;
}

.tagline-text {
    font-size: clamp(1.1rem, 1.32vw, 1.235rem);
    line-height: 1.6;
    color: #6b7280;
    max-width: 800px;
    margin: 0 auto var(--space-4) auto;
    font-weight: 400;
}

.tagline-video-container {
    margin-top: 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
    width: 100%;
    padding-bottom: 42.857%; /* 21:9 aspect ratio = 9/21 = 0.42857 */
    height: 0;
    background: #0f172a; /* Fundo do Pyvis */
}

.tagline-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: fill;
    margin: 0;
    padding: 0;
    border: none;
}

.tagline-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    box-shadow: none;
}

.video-progress-bar {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: var(--space-4);
    height: 2px;
    background: rgba(211, 216, 227, 0.2);
    position: relative;
    overflow: hidden;
}

.video-progress-fill {
    height: 100%;
    background: #969dac;
    width: 0;
    will-change: width;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    margin-top: var(--space-4);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 10;
}

.feature-card {
    background: transparent;
    padding: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    z-index: 10;
}

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

.feature-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--downriver);
    margin-bottom: var(--space-2);
    line-height: 1.3;
    transition: color 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.feature-card:hover .feature-title {
    color: var(--brand);
}

.feature-description {
    font-size: 15px;
    line-height: 1.6;
    color: #6b7280;
    font-weight: 400;
    flex: 1;
}

/* How It Works Section */
.how-it-works-section {
    background: #ced5e0;
    padding: var(--space-6) 0;
    position: relative;
}

.how-it-works-header {
    text-align: center;
    margin-bottom: var(--space-5);
}

.how-it-works-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--rhino);
    text-transform: uppercase;
    display: block;
    margin-bottom: var(--space-2);
}

.how-it-works-heading {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--downriver);
    letter-spacing: -0.02em;
}

.how-it-works-heading-light {
    color: #6b7280;
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
    max-width: 1200px;
    margin: 0 auto;
}

.how-it-works-step {
    background: #ffffff;
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.how-it-works-step:hover {
    transform: translateY(-4px);
}

.step-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--brand);
    line-height: 1;
}

.step-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--downriver);
    line-height: 1.3;
}

.step-description {
    font-size: 15px;
    line-height: 1.6;
    color: #6b7280;
    font-weight: 400;
}

@media (max-width: 768px) {
    .how-it-works-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
}

/* Application Section */
.application-section {
    background: #ced5e0;
    background-image: 
        linear-gradient(rgba(7, 28, 71, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(7, 28, 71, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    padding: var(--space-6) 0;
    display: flex;
    align-items: center;
    position: relative;
}

.application-header {
    text-align: center;
    margin-bottom: var(--space-5);
}

.application-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--rhino);
    text-transform: uppercase;
    display: block;
    margin-bottom: var(--space-2);
}

.application-heading {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--downriver);
    letter-spacing: -0.02em;
}

.application-heading-light {
    color: #6b7280;
}

.application-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-7);
    align-items: center;
}

.application-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-top: var(--space-5); /* Empurra o texto para baixo para alinhar com o centro da imagem */
}

.application-title {
    font-size: clamp(1.75rem, 2.5vw, 2.25rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--downriver);
    letter-spacing: -0.01em;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.application-title.active {
    display: block;
    opacity: 1;
}

.application-description {
    font-size: 18px;
    line-height: 1.7;
    color: var(--fiord);
    font-weight: 400;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
}

.application-description.active {
    display: block;
    opacity: 1;
    position: relative;
}

.application-image-wrapper {
    position: relative;
}

.application-slides {
    position: relative;
    width: 100%;
    height: 450px; /* Altura fixa para evitar mudança entre imagens */
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.application-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.application-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0) 50%, 
        rgba(0, 0, 0, 0.05) 100%);
    pointer-events: none;
}

.application-slide.active {
    opacity: 1;
}

.application-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    max-height: 100%;
}

.application-pagination {
    position: absolute;
    top: var(--space-3);
    right: -40px; /* Posiciona fora da imagem, mais próximo */
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.application-page-number {
    font-size: 14px;
    font-weight: 600;
    color: rgba(7, 28, 71, 0.3);
    cursor: pointer;
    transition: color 0.3s ease;
}

.application-page-number.active {
    color: var(--downriver);
}

.application-page-number:hover {
    color: var(--downriver);
}

@media (max-width: 768px) {
    .application-content {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }
    
    .application-pagination {
        flex-direction: row;
        top: auto;
        bottom: var(--space-3);
        right: 50%;
        transform: translateX(50%);
    }
}

/* Integrations Section */
.integrations-section {
    width: 100vw;
    margin: 0;
    padding: 80px 0 var(--space-5) 0;
    background: #ffffff;
    position: relative;
}

@media (max-width: 768px) {
    .integrations-section {
        padding: var(--space-5) var(--space-3) var(--space-5) var(--space-3);
    }
    
    .integrations-header {
        padding: 0 var(--space-2);
    }
}

/* Funcionalidades Hero */
.features-hero {
    padding: var(--space-7) 0;
    background: #ced5e0;
    background-image: 
        linear-gradient(rgba(7, 28, 71, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(7, 28, 71, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    text-align: center;
    position: relative;
}

/* Funcionalidades (Dashboard) */
.features-dashboard-section {
    padding: var(--space-7) 0;
    background: #ffffff;
    position: relative;
}

.features-header {
    text-align: center;
    margin-bottom: var(--space-5);
}

.features-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--rhino);
    text-transform: uppercase;
    display: block;
    margin-bottom: var(--space-2);
}

.features-heading {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--downriver);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-3);
}

.features-heading-light {
    color: #6b7280;
}

.features-subtitle {
    font-size: 16px;
    line-height: 1.6;
    color: #6b7280;
    max-width: 820px;
    margin: 0 auto;
}

.features-dashboard {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-6);
    align-items: start;
}

.features-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    position: sticky;
    top: 100px;
    background: #f8f9fb;
    border: 1px solid rgba(7, 28, 71, 0.12);
    border-radius: var(--radius-lg);
    padding: var(--space-2);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
    align-self: start;
    height: max-content;
}

.features-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.features-group-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--downriver);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.feature-item {
    appearance: none;
    border: 1px solid rgba(7, 28, 71, 0.12);
    background: #ffffff;
    color: var(--downriver);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.feature-item:hover {
    border-color: rgba(7, 28, 71, 0.25);
    transform: translateY(-1px);
}

.feature-item.active,
.feature-item[aria-pressed="true"] {
    background: var(--downriver);
    color: #ffffff;
    border-color: var(--downriver);
}

.features-panels {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 2fr 1fr 1fr;
    gap: var(--space-3);
    height: var(--features-panels-height, auto);
    min-height: 0;
    align-self: start;
}

.feature-panel {
    background: #ffffff;
    border: 1px solid rgba(7, 28, 71, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--space-2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    min-height: 0;
    overflow: hidden;
}

.feature-paper {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.paper-embed {
    flex: 1;
    border-radius: var(--radius-md);
    border: 1px solid rgba(7, 28, 71, 0.12);
    overflow: hidden;
    background: #f8f9fb;
    min-height: 0;
}

.paper-embed picture {
    display: block;
    width: 100%;
    height: 100%;
}

.paper-frame {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #ffffff;
}

.paper-embed img.paper-frame {
    object-fit: cover;
    object-position: center top;
}


.panel-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--rhino);
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: var(--space-2);
}

.panel-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--downriver);
    margin-bottom: var(--space-2);
    line-height: 1.3;
}

.panel-body {
    font-size: 15px;
    line-height: 1.7;
    color: #6b7280;
    margin: 0 0 var(--space-2) 0;
}

.panel-body strong {
    color: var(--downriver);
    font-weight: 700;
}

.text-highlight {
    color: var(--brand);
    font-weight: 700;
}

.panel-meta {
    font-size: 13px;
    color: #6b7280;
}

.feature-panel.feature-impact {
    margin-top: 0;
    padding-top: var(--space-4);
    border-top: none;
}

.impact-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--downriver);
    margin-bottom: var(--space-1);
}

.impact-text {
    font-size: 15px;
    line-height: 1.6;
    color: #6b7280;
    margin: 0;
}

@media (max-width: 900px) {
    .features-dashboard {
        grid-template-columns: 1fr;
    }

    .features-sidebar {
        position: static;
    }

    .features-panels {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .feature-paper {
        grid-column: auto;
    }
}

.integrations-header {
    text-align: center;
    margin-bottom: var(--space-5);
}

.integrations-heading {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--downriver);
    letter-spacing: -0.02em;
}

.integrations-heading-light {
    color: #6b7280;
}

.integrations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr;
    gap: var(--space-4);
    padding: 0;
    height: 600px;
}

/* Responsive: Integrations Mobile */
@media (max-width: 768px) {
    .integrations-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 300px);
        height: auto;
        gap: var(--space-3);
    }
    
    .integration-block {
        background-size: cover;
        background-position: center;
    }
    
    .integration-text-overlay {
        padding: var(--space-3);
    }
    
    .integration-title {
        font-size: 1.5rem;
    }
    
    .typewriter-text {
        font-size: 0.95rem;
    }
}

.integration-block {
    background-image: url('images/integracao.jpeg');
    background-size: 400% auto;
    background-repeat: no-repeat;
    background-position: center;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 2;
}

.integration-block.writing {
    transform: translateY(-8px);
}

.integration-text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-5);
    gap: var(--space-3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    pointer-events: none;
    z-index: 10;
    background: rgba(255, 255, 255, 0.85);
}

.integration-text-overlay.active {
    opacity: 1;
    visibility: visible;
}

.integration-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--brand);
    text-align: center;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0;
}

.typewriter-text {
    font-size: clamp(1.125rem, 1.8vw, 1.375rem);
    font-weight: 400;
    color: var(--downriver);
    text-align: center;
    line-height: 1.6;
    letter-spacing: -0.01em;
    margin: 0;
}

.integration-block[data-position="top-left"] {
    background-position: 0% 0%;
}

.integration-block[data-position="top-right"] {
    background-position: 33.33% 0%;
}

.integration-block[data-position="bottom-left"] {
    background-position: 66.66% 0%;
}

.integration-block[data-position="bottom-right"] {
    background-position: 100% 0%;
}

/* Use Cases Carousel */
.use-cases-section {
    background: transparent;
}

.use-cases-section-header {
    text-align: center;
    padding: var(--space-2) 0 var(--space-2) 0;
}

.use-cases-section-header .use-cases-heading {
    margin-top: 0;
    margin-bottom: var(--space-2);
}

.use-cases-spacer {
    height: calc(100vh + 100px);
    position: relative;
    background: #ced5e0;
    padding-top: 0; 
    margin-bottom: 0;
}

.use-cases-carousel {
    position: sticky;
    top: 0;                   
    height: 100vh;            
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 80px;
    background: transparent;    
    overflow: hidden;
    z-index: 10;
}

.use-cases-section + * {
    position: relative;
    z-index: 20;              
    margin-top: 0;       
    background: #ffffff;      
}

.use-cases-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    align-items: center;
    margin-top: var(--space-3);
}

.use-cases-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: 0 var(--space-4);
    justify-content: center;
}

.use-cases-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--rhino);
    text-transform: uppercase;
}

.use-cases-heading {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--downriver);
    letter-spacing: -0.02em;
}

.use-cases-heading-light {
    color: #969dac;
}

.use-cases-description {
    font-size: 20px;
    line-height: 1.6;
    color: #6b7280;
    max-width: 480px;
    margin-left: 140px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), 
                transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: absolute;
}

.use-cases-description.active {
    opacity: 1;
    transform: translateY(0);
}

.use-cases-description .brand-name {
    color: var(--downriver);
    font-weight: 600;
}

.use-cases-slides {
    position: relative;
    aspect-ratio: 5 / 4;
    max-width: 720px;
    width: 100%;
    margin-left: -60px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.use-cases-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.5s ease-out;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.use-cases-slide:first-child {
    z-index: 0;
    opacity: 1;
}

.use-cases-slide.active {
    z-index: 2;
    opacity: 1;
}

.use-cases-slide img {
    width: 100%;
    height: 150%;
    object-fit: cover;
    display: block;
    object-position: center top;
    transition: transform 0.1s linear;
    will-change: transform;
}

.use-cases-pagination {
    position: absolute;
    top: var(--space-3);
    right: -60px;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.pagination-number {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: color 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pagination-number.active {
    color: rgba(255, 255, 255, 1);
}

.pagination-number:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* Integrations Hero */
.integrations-hero {
    padding: var(--space-7) 0;
    background: #ced5e0;
    background-image: 
        linear-gradient(rgba(7, 28, 71, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(7, 28, 71, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    text-align: center;
    position: relative;
}

/* Integrations Section */
.integrations-section {
    padding: 80px 0 var(--space-7) 0;
    background: #ffffff;
    position: relative;
}

.integrations-header {
    text-align: center;
    margin-bottom: var(--space-2);
}

.integrations-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--rhino);
    text-transform: uppercase;
    display: block;
    margin-bottom: var(--space-2);
}

.integrations-heading {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--downriver);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-3);
}

.integrations-heading-light {
    color: #6b7280;
}

.integrations-subtitle {
    font-size: 16px;
    line-height: 1.6;
    color: #6b7280;
    max-width: 820px;
    margin: 0 auto;
}

/* Logos conectados */
.integrations-graph {
    position: relative;
    width: 100%;
    height: 300px;
    margin: var(--space-6) 0;
    background: linear-gradient(135deg, #f8f9fb 0%, #ffffff 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(7, 28, 71, 0.08);
}

.connections-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.integration-logo-item {
    position: absolute;
    transform: translate(-50%, -50%);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.integration-logo-item:hover {
    transform: translate(-50%, -50%) scale(1.1);
    z-index: 10;
}

.logo-placeholder {
    width: 80px;
    height: 80px;
    background: #ffffff;
    border: 2px solid rgba(7, 28, 71, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--fiord);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.integration-logo-item:hover .logo-placeholder {
    border-color: var(--brand);
    box-shadow: 0 8px 24px rgba(13, 36, 71, 0.15);
}

/* Imagem de integrações */
.integrations-image-container {
    width: 100%;
    max-width: 1200px;
    margin: calc(-1 * var(--space-4)) auto var(--space-3) auto;
}

.integrations-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Texto descritivo de integrações */
.integrations-content {
    max-width: 900px;
    margin: 0 auto;
}

.integrations-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--downriver);
    text-align: justify;
    margin: 0;
    margin-bottom: var(--space-5);
    font-weight: 400;
}

.integrations-text:last-child {
    margin-bottom: 0;
}

.integrations-subtitle-section {
    font-size: 24px;
    font-weight: 700;
    color: var(--downriver);
    line-height: 1.3;
    margin: var(--space-6) 0 var(--space-4) 0;
    letter-spacing: -0.01em;
}

.integrations-features {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-bottom: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.integrations-features li {
    font-size: 17px;
    line-height: 1.7;
    color: var(--downriver);
    padding-left: 32px;
    position: relative;
}

.integrations-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--brand);
    font-weight: 700;
    font-size: 20px;
}

.integrations-features li strong {
    color: var(--brand);
    font-weight: 700;
}

/* Reveal animations */
.reveal-text {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
                transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-text.in-view {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal-text {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Tabela comparativa de integrações */
.integrations-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: var(--space-5) 0;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(7, 28, 71, 0.08);
}

.integrations-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    font-size: 15px;
}

.integrations-table thead {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
}

.integrations-table thead th {
    padding: var(--space-3) var(--space-3);
    text-align: left;
    font-weight: 700;
    color: #ffffff;
    font-size: 16px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.integrations-table thead th:first-child {
    border-top-left-radius: var(--radius-md);
}

.integrations-table thead th:last-child {
    border-top-right-radius: var(--radius-md);
}

.integrations-table tbody tr {
    border-bottom: none;
    transition: background-color 0.2s ease;
}

.integrations-table tbody tr:hover {
    background-color: rgba(211, 216, 227, 0.05);
}

.integrations-table tbody tr:last-child {
    border-bottom: none;
}

.integrations-table tbody td {
    padding: var(--space-3) var(--space-3);
    color: var(--downriver);
    line-height: 1.6;
    vertical-align: top;
}

.integrations-table tbody td:first-child {
    background-color: rgba(211, 216, 227, 0.03);
    font-weight: 600;
    width: 20%;
    min-width: 150px;
}

.integrations-table tbody td strong {
    color: var(--brand);
}

/* Responsividade da tabela */
@media (max-width: 768px) {
    .integrations-table-wrapper {
        margin: var(--space-4) -20px;
        border-radius: 0;
    }
    
    .integrations-table {
        font-size: 14px;
    }
    
    .integrations-table thead th,
    .integrations-table tbody td {
        padding: var(--space-2);
        min-width: 140px;
    }
    
    .integrations-table tbody td:first-child {
        position: sticky;
        left: 0;
        z-index: 1;
        background-color: rgba(211, 216, 227, 0.1);
        box-shadow: 2px 0 4px rgba(0, 0, 0, 0.05);
    }
}

/* Cards de integração expansíveis */
.integration-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-top: var(--space-6);
}

.integration-card {
    background: #ffffff;
    border: 1px solid rgba(7, 28, 71, 0.1);
    border-radius: var(--radius-md);
    padding: var(--space-2);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
    min-height: 80px;
}

.integration-card:hover {
    border-color: rgba(13, 36, 71, 0.2);
    box-shadow: 0 8px 24px rgba(7, 28, 71, 0.12);
    transform: translateY(-4px);
}

.integration-card-preview {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.integration-card:hover .integration-card-preview {
    opacity: 1;
}

.integration-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--downriver);
    margin: 0;
    line-height: 1.3;
    text-align: center;
}

.integration-card-expanded {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
    margin-top: 0;
}

.integration-card:hover .integration-card-expanded {
    max-height: 500px;
    opacity: 1;
    margin-top: var(--space-3);
}

.integration-card-description {
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
    margin: 0 0 var(--space-3) 0;
}

.integration-card-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.integration-card-features li {
    font-size: 13px;
    color: var(--downriver);
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.integration-card-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--brand);
    font-weight: 700;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .integration-cards {
        grid-template-columns: 1fr;
    }
    
    .integrations-graph {
        height: 200px;
    }
    
    .logo-placeholder {
        width: 60px;
        height: 60px;
        font-size: 10px;
    }
}

/* Bento Grid Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: var(--space-4);
    max-width: 1200px;
    margin: 0 auto;
}

/* Bento Cards */
.bento-card {
    background: #ffffff;
    border: 1px solid rgba(7, 28, 71, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(7, 28, 71, 0.12);
    border-color: rgba(13, 36, 71, 0.2);
}

.bento-card:hover::before {
    opacity: 1;
}

/* Bento Card Sizes */
.bento-large {
    grid-column: span 2;
    grid-row: span 1;
}

.bento-medium {
    grid-column: span 1;
    grid-row: span 1;
}

/* Bento Card Elements */
.bento-icon {
    font-size: 48px;
    line-height: 1;
    margin-bottom: var(--space-1);
}

.bento-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--downriver);
    line-height: 1.3;
    margin: 0;
}

.bento-description {
    font-size: 15px;
    line-height: 1.6;
    color: #6b7280;
    margin: 0;
}

.bento-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.bento-features li {
    font-size: 14px;
    color: var(--downriver);
    padding-left: 24px;
    position: relative;
    line-height: 1.5;
}

.bento-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--brand);
    font-weight: 700;
    font-size: 16px;
}

.bento-link {
    color: var(--brand);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.bento-link:hover {
    gap: 8px;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
    
    .bento-large,
    .bento-medium {
        grid-column: span 1;
    }
}



/* How It Works Section */
.how-it-works-section {
    background: #ced5e0;
    background-image: 
        linear-gradient(rgba(7, 28, 71, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(7, 28, 71, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    padding: var(--space-6) 0;
    position: relative;
}

@media (max-width: 768px) {
    .how-it-works-section {
        padding: var(--space-5) var(--space-3);
    }
    
    .how-it-works-section .container {
        padding: 0;
    }
}

.how-it-works-heading {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--downriver);
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: var(--space-5);
}

.how-it-works-heading-light {
    color: #6b7280;
}

.flow-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-5);
    max-width: 1200px;
    margin: 0 auto;
}

.flow-grid .flow-item:nth-child(1),
.flow-grid .flow-item:nth-child(2),
.flow-grid .flow-item:nth-child(3) {
    grid-column: span 2;
}

.flow-grid .flow-item:nth-child(4) {
    grid-column: 2 / 4;
}

.flow-grid .flow-item:nth-child(5) {
    grid-column: 4 / 6;
}

.flow-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-5);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(7, 28, 71, 0.08);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.flow-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #800080;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.flow-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(7, 28, 71, 0.12);
    border-color: rgba(13, 36, 71, 0.2);
}

.flow-item:hover::before {
    opacity: 1;
}

.flow-item.auto-hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(7, 28, 71, 0.12);
    border-color: rgba(13, 36, 71, 0.2);
}

.flow-item.auto-hover::before {
    opacity: 1;
}

.flow-item.auto-hover .flow-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 32px rgba(13, 36, 71, 0.25);
}

.flow-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-2);
    box-shadow: 0 8px 24px rgba(13, 36, 71, 0.15);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.flow-item:hover .flow-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 32px rgba(13, 36, 71, 0.25);
}

.flow-icon {
    font-size: 32px;
    filter: grayscale(100%) brightness(200%);
}

.flow-content {
    position: relative;
}

.flow-step-number {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    font-size: 48px;
    font-weight: 800;
    color: var(--brand);
    opacity: 0.08;
    line-height: 1;
    pointer-events: none;
    z-index: 0;
}

.flow-step-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--downriver);
    margin-bottom: var(--space-2);
    line-height: 1.3;
}

.flow-step-desc {
    font-size: 15px;
    line-height: 1.7;
    color: #6b7280;
    margin: 0;
}

@media (max-width: 768px) {
    .flow-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .flow-grid .flow-item:nth-child(1),
    .flow-grid .flow-item:nth-child(2),
    .flow-grid .flow-item:nth-child(3),
    .flow-grid .flow-item:nth-child(4),
    .flow-grid .flow-item:nth-child(5) {
        grid-column: auto;
    }
    
    .flow-item {
        padding: var(--space-4);
    }
    
    .flow-step-number {
        font-size: 36px;
        top: var(--space-3);
        right: var(--space-3);
    }
}

.how-it-works-image-container {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    text-align: center;
}

.how-it-works-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Footer */
.footer {
    background: var(--bg);
    color: var(--text-muted);
    padding: var(--space-6) 0 var(--space-4);
    margin-top: var(--space-7);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-5);
    margin-bottom: var(--space-5);
}

.footer-column h3,
.footer-column h4 {
    color: var(--text);
    margin-bottom: var(--space-2);
    font-size: 16px;
}

.footer-column a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: var(--space-1);
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--text);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-4);
    border-top: 1px solid var(--border);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .header .btn-demo {
        display: none;
    }

    .nav {
        display: none;
    }

    .header.nav-open .nav {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: var(--space-3);
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        padding: var(--space-4);
        background: var(--bg);
        border-top: 1px solid var(--border);
        z-index: 999;
    }

    .header.nav-open .nav-link {
        padding: var(--space-2) 0;
    }

    .header.nav-open .nav-cta {
        display: inline-flex;
        width: 100%;
        justify-content: center;
    }
    
    .integrations-content {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }
    
    .integrations-logos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .hero {
        height: 400px;
        border-radius: 16px;
        margin: var(--space-4) auto;
    }
    
    .hero-content {
        padding: var(--space-2);
    }
    
    .hero-headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero-card {
        width: clamp(240px, 80vw, 280px);
    }
    
    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-large {
        width: 100%;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .carousel-track,
    .logos-track {
        animation: none;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Decorative Lines */
.deco-line-v {
    position: absolute;
    width: 1px;
    height: 30px;
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    z-index: 1;
}

.deco-line-h {
    position: absolute;
    width: 30px;
    height: 1px;
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    z-index: 1;
}

/* Posições e cores iniciais para cada seção */
.dl1 { top: 10%; right: 10%; background-color: #800080; }
.dl2 { top: 85%; left: 5%; background-color: #2f4f4f; }
.dl3 { top: 45%; right: 25%; background-color: #00416a; }
.dl4 { top: 60%; left: 15%; background-color: #50404d; }

.tl1 { top: 8%; right: 12%; background-color: #353d51; }
.tl2 { top: 92%; left: 8%; background-color: #800080; }
.tl3 { top: 35%; right: 5%; background-color: #2f4f4f; }
.tl4 { top: 55%; left: 20%; background-color: #00416a; }
.tl5 { top: 75%; right: 30%; background-color: #50404d; }
.tl6 { top: 25%; left: 35%; background-color: #353d51; }

.al1 { top: 12%; right: 8%; background-color: #00416a; }
.al2 { top: 88%; left: 10%; background-color: #50404d; }
.al3 { top: 40%; right: 20%; background-color: #353d51; }
.al4 { top: 65%; left: 12%; background-color: #800080; }
.al5 { top: 50%; right: 35%; background-color: #2f4f4f; }

.il1 { top: 15%; right: 15%; background-color: #2f4f4f; }
.il2 { top: 80%; left: 8%; background-color: #800080; }
.il3 { top: 45%; right: 10%; background-color: #353d51; }
.il4 { top: 60%; left: 18%; background-color: #00416a; }
.il5 { top: 30%; right: 28%; background-color: #50404d; }
.il6 { top: 70%; left: 30%; background-color: #2f4f4f; }

.fd1 { top: 12%; right: 12%; background-color: #353d51; }
.fd2 { top: 82%; left: 10%; background-color: #800080; }
.fd3 { top: 40%; right: 18%; background-color: #00416a; }
.fd4 { top: 65%; left: 22%; background-color: #2f4f4f; }

.hl1 { top: 10%; right: 15%; background-color: #00416a; }
.hl2 { top: 85%; left: 12%; background-color: #353d51; }
.hl3 { top: 40%; right: 8%; background-color: #800080; }
.hl4 { top: 65%; left: 20%; background-color: #50404d; }
.hl5 { top: 25%; right: 32%; background-color: #2f4f4f; }
.hl6 { top: 55%; left: 38%; background-color: #00416a; }

/* Security page decorative lines */
.sl1 { top: 10%; right: 12%; background-color: #800080; }
.sl2 { top: 88%; left: 8%; background-color: #2f4f4f; }
.sl3 { top: 42%; right: 15%; background-color: #00416a; }
.sl4 { top: 65%; left: 18%; background-color: #50404d; }
.sl5 { top: 28%; right: 28%; background-color: #353d51; }
.sl6 { top: 75%; left: 25%; background-color: #2f4f4f; }

/* Use Cases Hero decorative lines */
.uh1 { top: 15%; right: 10%; background-color: #353d51; }
.uh2 { top: 80%; left: 12%; background-color: #800080; }
.uh3 { top: 50%; right: 18%; background-color: #00416a; }
.uh4 { top: 35%; left: 8%; background-color: #50404d; }

/* Use Cases Grid decorative lines */
.ug1 { top: 8%; right: 15%; background-color: #2f4f4f; }
.ug2 { top: 85%; left: 10%; background-color: #353d51; }
.ug3 { top: 45%; right: 8%; background-color: #800080; }
.ug4 { top: 60%; left: 22%; background-color: #00416a; }
.ug5 { top: 25%; right: 30%; background-color: #50404d; }
.ug6 { top: 72%; left: 35%; background-color: #2f4f4f; }

/* Blog Hero decorative lines */
.bh1 { top: 12%; right: 15%; background-color: #800080; }
.bh2 { top: 78%; left: 10%; background-color: #2f4f4f; }
.bh3 { top: 45%; right: 8%; background-color: #00416a; }
.bh4 { top: 60%; left: 18%; background-color: #50404d; }

/* Blog Grid decorative lines */
.bg1 { top: 10%; right: 12%; background-color: #353d51; }
.bg2 { top: 82%; left: 8%; background-color: #800080; }
.bg3 { top: 38%; right: 20%; background-color: #00416a; }
.bg4 { top: 65%; left: 15%; background-color: #2f4f4f; }
.bg5 { top: 28%; right: 32%; background-color: #50404d; }
.bg6 { top: 75%; left: 28%; background-color: #2f4f4f; }

/* FAQ Section */
.faq-section {
    background: #ffffff;
    padding: var(--space-6) 0;
    position: relative;
}

.faq-header {
    text-align: center;
    margin-bottom: var(--space-6);
}

.faq-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--rhino);
    text-transform: uppercase;
    display: block;
    margin-bottom: var(--space-2);
}

.faq-heading {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--downriver);
    letter-spacing: -0.02em;
}

.faq-heading-light {
    color: #6b7280;
}

.faq-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--space-6);
    align-items: start;
}

.faq-questions {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-item {
    border-bottom: 1px solid rgba(7, 28, 71, 0.1);
    padding: var(--space-4) 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-3);
    cursor: pointer;
    user-select: none;
}

.faq-question h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--downriver);
    margin: 0;
    flex: 1;
    line-height: 1.4;
}

.faq-toggle {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 28px;
    font-weight: 300;
    color: #228b22;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    line-height: 1;
}

.faq-toggle:hover {
    transform: scale(1.1);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    opacity: 1;
    padding-top: var(--space-3);
}

.faq-answer p {
    font-size: 15px;
    line-height: 1.7;
    color: #6b7280;
    margin: 0;
}

.faq-cta-card {
    background: #f8f9fb;
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    position: sticky;
    top: 80px;
}

.faq-cta-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--downriver);
    margin: 0;
    line-height: 1.3;
}

.faq-cta-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #6b7280;
    margin: 0;
}

.faq-cta-card .btn {
    align-self: flex-start;
}

@media (max-width: 768px) {
    .faq-content {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }
    
    .faq-cta-card {
        position: static;
    }
}

/* CTA Final Section */
.cta-final-section {
    background: #ced5e0;
    background-image: linear-gradient(90deg, rgba(7, 28, 71, 0.06) 1px, transparent 1px);
    background-size: 50px 50px;
    padding: var(--space-4) 0;
    text-align: center;
    position: relative;
}

.cta-final-heading {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--downriver);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-3);
}

.cta-final-heading-light {
    color: #6b7280;
}

.cta-final-text {
    font-size: clamp(1.1rem, 1.32vw, 1.235rem);
    line-height: 1.6;
    color: #6b7280;
    max-width: 700px;
    margin: 0 auto var(--space-5) auto;
    font-weight: 400;
}

/* CTA Decorative Lines */
.cl1 { top: 15%; right: 10%; background-color: #800080; }
.cl2 { top: 70%; left: 8%; background-color: #2f4f4f; }
.cl3 { top: 40%; right: 18%; background-color: #00416a; }
.cl4 { top: 55%; left: 15%; background-color: #50404d; }

/* Footer */
.footer {
    background: var(--downriver);
    background-image: 
        linear-gradient(rgba(211, 216, 227, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(211, 216, 227, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    color: var(--geyser);
    padding: var(--space-6) 0 var(--space-4);
    margin-top: 0;
}

.footer-container {
    max-width: var(--container);
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-6);
    margin-bottom: var(--space-5);
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.footer-partners-block {
    margin-top: 0;
    position: relative;
    top: var(--space-5);
    transform: none;
}

.footer-column h4.footer-partners-title {
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: inherit;
    text-transform: none;
    margin: 0 0 var(--space-1) 0;
}

.footer-partners {
    display: flex;
    gap: calc(var(--space-1) / 3);
    align-items: center;
    --partner-logo-h: 35px; /* ~+20% vs 29px */
    --partner-logo-w: 84px;
    flex-wrap: nowrap;
}

.footer-partners > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--partner-logo-w);
    height: var(--partner-logo-h);
    flex: 0 0 var(--partner-logo-w);
    text-decoration: none;
}

@media (max-width: 768px) {
    .footer-partners {
        flex-wrap: wrap;
    }
}

.footer-partners .partner-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 1;
    filter: brightness(0) saturate(100%) invert(1);
    transform: none;
    transition: none;
}

.footer-partners .partner-logo.partner-logo-shift-left {
    transform: translateX(-10px);
}

.footer-heading {
    font-size: 16px;
    font-weight: 800;
    color: var(--fiord) !important;
    margin-bottom: var(--space-1);
    letter-spacing: -0.01em;
}

.footer-text {
    font-size: 14px;
    line-height: 1.5;
    color: #ffffff;
    margin-bottom: var(--space-3);
}

.footer-logo {
    width: 120px;
    height: auto;
    margin-bottom: var(--space-3);
}

.footer-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
    opacity: 0.9;
    filter: brightness(0) invert(1);
}

.footer-link {
    font-size: 14px;
    color: #ffffff !important;
    text-decoration: none;
    transition: color 0.2s ease;
    line-height: 1.4;
}

.footer-link:hover {
    color: var(--fiord) !important;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-4);
    border: none;
}

.footer-copyright {
    font-size: 14px;
    color: #ffffff;
    margin: 0;
}

.footer-social {
    display: flex;
    gap: var(--space-3);
}

.footer-social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(211, 216, 227, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-social-link:hover {
    background: rgba(211, 216, 227, 0.15);
    color: #ffffff;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-3);
        text-align: center;
    }
}

/* FAQ Decorative Lines */
.fl1 { top: 12%; right: 10%; background-color: #800080; }
.fl2 { top: 85%; left: 8%; background-color: #2f4f4f; }
.fl3 { top: 45%; right: 15%; background-color: #00416a; }
.fl4 { top: 60%; left: 12%; background-color: #50404d; }
.fl5 { top: 30%; right: 25%; background-color: #353d51; }
.fl6 { top: 70%; left: 20%; background-color: #2f4f4f; }

/* Focus styles */
*:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

/* ============================================
   BLOG PAGE STYLES
   ============================================ */

.blog-hero {
    background: #ced5e0;
    background-image: 
        linear-gradient(rgba(7, 28, 71, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(7, 28, 71, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    padding: var(--space-7) 0;
    text-align: center;
    position: relative;
}

.blog-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--rhino);
    text-transform: uppercase;
    display: block;
    margin-bottom: var(--space-2);
}

.blog-title {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--downriver);
    margin-bottom: var(--space-3);
    letter-spacing: -0.02em;
}

.blog-title-light {
    color: #6b7280;
}

.blog-description {
    font-size: 18px;
    line-height: 1.6;
    color: #6b7280;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 400;
}

/* Blog Filters Section */
.blog-filters-section {
    background: #ffffff;
    padding: var(--space-4) 0;
}

.blog-filters-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.blog-filters {
    display: flex;
    gap: var(--space-1);
}

.blog-filter-btn {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--downriver);
    font-size: 15px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    white-space: nowrap;
}

.blog-filter-btn:hover {
    background: rgba(7, 28, 71, 0.05);
}

.blog-filter-btn.active {
    background: var(--downriver);
    color: #ffffff;
}

/* Blog Search */
.blog-search {
    position: relative;
    display: flex;
    align-items: center;
}

.blog-search-icon {
    position: absolute;
    left: 14px;
    color: #6b7280;
    pointer-events: none;
}

.blog-search-input {
    width: 280px;
    height: 40px;
    padding: 0 16px 0 42px;
    border: 1px solid rgba(7, 28, 71, 0.12);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    color: var(--downriver);
    background: #ffffff;
    transition: all 0.2s ease;
}

.blog-search-input::placeholder {
    color: #9ca3af;
}

.blog-search-input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(13, 36, 71, 0.08);
}

/* Blog Grid Section */
.blog-grid-section {
    background: #ffffff;
    padding: var(--space-6) 0;
    position: relative;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Blog Card */
.blog-card {
    background: #ffffff;
    border: 1px solid rgba(7, 28, 71, 0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(7, 28, 71, 0.12);
    border-color: rgba(13, 36, 71, 0.15);
}

.blog-card.hidden {
    display: none;
}

.blog-card-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #f3f4f6;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    flex: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.blog-card-meta svg {
    flex-shrink: 0;
}

.blog-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--downriver);
    line-height: 1.3;
    margin: 0;
    letter-spacing: -0.01em;
}

.blog-card-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #6b7280;
    margin: 0;
    flex: 1;
}

/* Responsive */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }
}

@media (max-width: 768px) {
    .blog-filters-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .blog-filters {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .blog-filters::-webkit-scrollbar {
        display: none;
    }
    
    .blog-search-input {
        width: 100%;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
}

/* ============================================
   BLOG ARTICLE PAGE STYLES
   ============================================ */

/* Article Hero */
.article-hero {
    background: #ffffff;
    padding: var(--space-6) 0 var(--space-5) 0;
}

/* Back link (match casos de uso: Landing-page/caso-suporte.html) */
.article-hero .back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--fiord);
    text-decoration: none;
    margin-bottom: var(--space-5);
    transition: color 0.2s ease;
}

.article-hero .back-link:hover {
    color: var(--brand);
}

.article-hero-content {
    max-width: 800px;
    margin: 0 auto var(--space-5) auto;
}

.article-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--downriver);
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.article-author {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding-right: var(--space-2);
    border-right: 1px solid rgba(7, 28, 71, 0.15);
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    /* Match the 'Escrito por' gray (#6b7280) for any transparent pixels */
    background: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #6b7280;
    display: block;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.author-label,
.date-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.author-name,
.date-value {
    font-size: 14px;
    color: var(--downriver);
    font-weight: 600;
}

.article-date {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-left: 0;
}

.article-hero-image {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.article-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* Article Content Section */
.article-content-section {
    background: #ffffff;
    padding: var(--space-6) 0 0;
}

.article-layout {
    display: grid;
    grid-template-columns: 288px 1fr;
    gap: var(--space-6);
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.article-layout::before {
    content: '';
    position: absolute;
    left: calc(288px - var(--space-5));
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(7, 28, 71, 0.12);
    pointer-events: none;
}

/* Main Content */
.article-main {
    min-width: 0;
}

.article-body {
    font-size: 17px;
    line-height: 1.8;
    color: var(--downriver);
}

.article-body h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--downriver);
    margin: var(--space-6) 0 var(--space-3) 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
    scroll-margin-top: 80px;
}

.article-body h2:first-child {
    margin-top: 0;
}

.article-body h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--downriver);
    margin: var(--space-5) 0 var(--space-3) 0;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.article-body p {
    margin: 0 0 var(--space-3) 0;
}

.article-body p:last-child {
    margin-bottom: 0;
}

.article-body strong {
    font-weight: 700;
    color: var(--downriver);
}

.article-body ul,
.article-body ol {
    margin: var(--space-3) 0;
    padding-left: var(--space-4);
}

.article-body li {
    margin-bottom: var(--space-2);
    line-height: 1.7;
}

.article-body li:last-child {
    margin-bottom: 0;
}

.article-body blockquote {
    margin: var(--space-5) 0;
    padding: var(--space-4);
    border-left: 4px solid var(--brand);
    background: rgba(13, 36, 71, 0.03);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-body blockquote p {
    font-size: 18px;
    font-style: italic;
    color: var(--downriver);
    margin: 0;
}

/* Sidebar */
.article-sidebar {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-right: var(--space-4);
    align-self: start;
    position: sticky;
    top: 80px;
}

/* Table of Contents */
.article-toc {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    padding-right: var(--space-4);
    margin-bottom: 0;
    align-self: start;
}

.toc-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--downriver);
    margin: 0 0 var(--space-3) 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.toc-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.toc-link {
    font-size: 17px;
    color: #6b7280;
    text-decoration: none;
    padding: 0;
    border-radius: 0;
    transition: color 0.2s ease;
    line-height: 1.8;
    display: block;
}

.toc-link:hover {
    background: none !important;
    color: var(--downriver);
    outline: none;
    box-shadow: none;
}

.toc-link.active {
    background: transparent;
    color: var(--downriver);
    font-weight: 500;
}

/* CTA Box */
.article-cta-box {
    background: #f3f4f6;
    border-radius: var(--radius-md);
    padding: var(--space-3);
    text-align: left;
    color: var(--downriver);
    max-width: 200px;
    margin-top: var(--space-5);
    align-self: start;
}

.article-cta-box h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 var(--space-2) 0;
    line-height: 1.3;
    color: var(--downriver);
}

.article-cta-box p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 var(--space-3) 0;
    color: #6b7280;
}

.article-cta-box .btn {
    background: var(--downriver);
    color: #ffffff;
    font-weight: 700;
    display: inline-block;
    width: auto;
    padding: 10px 16px;
}

.article-cta-box .btn:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
}

/* Latest Articles Section */
.article-latest-section {
    background: #ffffff;
    padding-top: var(--space-6);
    padding-bottom: var(--space-9);
    border-top: 1px solid rgba(7, 28, 71, 0.12);
}

.article-latest-section .container {
    margin-top: var(--space-1);
}

.article-latest-header {
    text-align: center;
    margin-bottom: var(--space-5);
    margin-top: var(--space-1);
}

.latest-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--rhino);
    text-transform: uppercase;
    display: block;
    margin-bottom: var(--space-2);
}

.latest-heading {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--downriver);
    letter-spacing: -0.02em;
}

.article-latest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
}

/* ============================================
   ABOUT PAGE STYLES
   ============================================ */

.about-hero {
    background: #ffffff;
    padding: var(--space-7) 0;
}

.about-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-7);
    align-items: center;
}

.about-content {
    max-width: 560px;
}

.about-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--rhino);
    display: inline-block;
    margin-bottom: var(--space-3);
}

.about-title {
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    line-height: 1.1;
    color: var(--downriver);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-4);
}

.about-lead {
    font-size: 18px;
    line-height: 1.7;
    color: #6b7280;
    margin-bottom: var(--space-3);
}

.about-text {
    font-size: 16px;
    line-height: 1.8;
    color: #6b7280;
    margin-bottom: var(--space-3);
}

.about-content .btn {
    margin-top: var(--space-3);
}

.about-image {
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    background: transparent;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

@media (max-width: 1024px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }

    .about-content {
        max-width: none;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 260px 1fr;
        gap: var(--space-5);
    }
    
    .article-cta-box {
        max-width: 240px;
    }
}

@media (max-width: 768px) {
    .article-hero {
        padding: var(--space-5) 0 var(--space-4) 0;
    }
    
    .article-title {
        font-size: clamp(1.75rem, 6vw, 2rem);
    }
    
    .article-meta {
        gap: var(--space-3);
        flex-direction: column;
    }
    
    .article-author {
        border-right: none;
        padding-right: 0;
    }
    
    .article-date {
        padding-left: 0;
    }
    
    .article-layout {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }
    
    .article-layout::before {
        display: none;
    }
    
    .article-sidebar {
        position: static;
        padding-right: 0;
    }
    
    .article-cta-box {
        position: static;
    }
    
    .article-body {
        font-size: 16px;
    }
    
    .article-body h2 {
        font-size: 24px;
    }
    
    .article-body h3 {
        font-size: 20px;
    }
    
    .article-latest-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
}

/* ============================================
   SECURITY PAGE STYLES
   ============================================ */

.security-hero {
    padding: var(--space-7) 0;
    background: #ced5e0;
    background-image: 
        linear-gradient(rgba(7, 28, 71, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(7, 28, 71, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    text-align: center;
    position: relative;
}

.security-section {
    background: #ffffff;
    padding: var(--space-7) 0;
}

.container-fluid {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.security-header {
    text-align: center;
    margin-bottom: var(--space-6);
}

.security-header-full {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: var(--space-6);
    padding: 0 var(--space-4);
}

.security-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--rhino);
    text-transform: uppercase;
    display: block;
    margin-bottom: var(--space-2);
}

.security-heading {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--downriver);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-3);
}

.security-heading-light {
    color: #6b7280;
}

.security-subtitle {
    font-size: 16px;
    line-height: 1.6;
    color: #6b7280;
    max-width: 1304px;
    margin: 0 auto;
    text-align: justify;
}

.security-header-full .security-subtitle {
    max-width: 100%;
    margin: 0;
    text-align: justify;
}

/* Security Layout */
.security-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-3);
    align-items: start;
    max-width: 1304px;
    margin: 0 auto;
}

/* Sidebar */
.security-sidebar {
    position: sticky;
    top: 80px;
    background: #f8f9fb;
    border: 1px solid rgba(7, 28, 71, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--space-2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.sidebar-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--downriver);
    margin-bottom: var(--space-1);
}

.sidebar-subtitle {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: var(--space-4);
    line-height: 1.5;
}

.security-categories {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    margin-top: 0;
}

.category-item {
    appearance: none;
    border: none;
    background: #ffffff;
    border: 1px solid rgba(7, 28, 71, 0.08);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.category-item:hover {
    border-color: rgba(7, 28, 71, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.category-item.active {
    background: var(--downriver);
    color: #ffffff;
    border-color: var(--downriver);
}

.category-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.category-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

/* Security Content */
.security-content {
    background: #ffffff;
    min-height: 600px;
    max-width: 1000px;
}

.security-category {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-header {
    margin-bottom: var(--space-4);
}

.category-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--downriver);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    line-height: 1.3;
}

.category-icon-large {
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon-large svg {
    width: 32px;
    height: 32px;
}

/* Security Items */
.security-items {
    background: rgba(248, 249, 251, 0.6);
    border: 1px solid rgba(7, 28, 71, 0.05);
    border-radius: var(--radius-md);
    padding: var(--space-2);
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.security-items-inner {
    background: #ffffff;
    border-radius: var(--radius-sm);
    padding: var(--space-2);
    border: 1px solid rgba(7, 28, 71, 0.08);
}

.category-title-inline {
    font-size: 18px;
    font-weight: 700;
    color: var(--downriver);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
    padding-bottom: 0;
    border-bottom: none;
}

.category-icon-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--downriver);
}

.category-title-inline {
    font-size: 18px;
    font-weight: 700;
    color: var(--downriver);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
    padding-bottom: 0;
    border-bottom: none;
}

.category-icon-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--downriver);
}

.security-item {
    display: flex;
    gap: var(--space-2);
    padding: var(--space-3) 0;
    border-bottom: 1px solid rgba(7, 28, 71, 0.08);
    transition: all 0.2s ease;
}

.security-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.security-item:first-child {
    padding-top: 0;
}

.security-item:hover {
    opacity: 0.85;
}

.item-check {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: #16a34a;
    flex-shrink: 0;
    margin-top: 5px;
}

.item-check:empty:before {
    content: '';
}

.item-content {
    flex: 1;
    min-width: 0;
}

.item-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--downriver);
    margin-bottom: var(--space-1);
    line-height: 1.4;
}

.item-description {
    font-size: 14px;
    line-height: 1.7;
    color: #6b7280;
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .security-layout {
        grid-template-columns: 240px 1fr;
        gap: var(--space-3);
    }
    
    .security-content {
        max-width: 750px;
    }
}

@media (max-width: 768px) {
    .security-layout {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }
    
    .security-sidebar {
        position: static;
    }
    
    .security-content {
        max-width: none;
    }
    
    .security-categories {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-2);
    }
    
    .category-name {
        font-size: 11px;
    }
    
    .category-icon {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .security-categories {
        grid-template-columns: 1fr;
    }
}
/* ============================================
   ABOUT PAGE STYLES (Redesigned)
   ============================================ */

/* About Hero Section */
.about-hero {
    background: #ced5e0;
    background-image: 
        linear-gradient(rgba(7, 28, 71, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(7, 28, 71, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    padding: var(--space-7) 0;
    position: relative;
}

.about-hero-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.about-hero-title {
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--downriver);
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
}

.about-hero-subtitle {
    font-size: clamp(1rem, 1.3vw, 1.125rem);
    line-height: 1.7;
    color: #6b7280;
    margin: 0;
}

/* Mission Section */
.about-mission-section {
    background: #ffffff;
    padding: var(--space-7) 0;
    position: relative;
}

.about-mission-box {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    max-width: 1000px;
    margin: calc(48px + var(--space-5)) auto 0 auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: visible;
}

.mission-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.mission-line-v {
    position: absolute;
    top: 48px;
    bottom: 0;
    width: 1px;
    background: rgba(7, 28, 71, 0.1);
}

.mission-line-h {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(7, 28, 71, 0.1);
}

.about-mission-box {
    margin-top: var(--space-6);
}

.mission-text {
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    line-height: 1.8;
    color: #6b7280;
    margin: 0 0 var(--space-4) 0;
    text-align: left;
}

.mission-text:last-child {
    margin-bottom: 0;
}

.mission-highlight {
    color: var(--downriver);
    font-weight: 600;
}

/* About Creator Section */
.about-creator-section {
    background: #ffffff;
    padding: var(--space-7) 0;
    position: relative;
}

.about-creator-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.about-section-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--rhino);
    text-transform: uppercase;
    text-align: center;
    margin-bottom: var(--space-5);
}

.about-creator-left {
    display: flex;
    flex-direction: column;
}

.about-creator-content {
    display: grid;
    grid-template-columns: 0.9fr 2fr;
    gap: var(--space-5);
    align-items: center;
}

.about-creator-image {
    width: 100%;
}

.about-creator-image img {
    width: 100%;
    height: auto;
    display: block;
}

.creator-contact {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-4);
}

.creator-contact a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.creator-contact a svg {
    display: block;
}

.linkedin-link {
    color: #0077b5;
    transition: all 0.2s ease;
}

.linkedin-link:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.email-link {
    color: #6b7280;
    transition: all 0.2s ease;
}

.email-link:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.about-creator-text {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.about-text {
    font-size: 16px;
    line-height: 1.8;
    color: #6b7280;
    margin: 0 0 2px 0;
}

.about-text:last-child {
    margin-bottom: 0;
}

.text-right {
    text-align: right;
}

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

.creator-subtitle {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--downriver);
    line-height: 1.3;
    margin-bottom: var(--space-2);
}

.creator-section-title {
    font-size: clamp(1.125rem, 1.5vw, 1.375rem);
    font-weight: 700;
    color: var(--downriver);
    margin-top: var(--space-4);
    margin-bottom: var(--space-2);
    line-height: 1.3;
}

.about-text {
    font-size: 16px;
    line-height: 1.8;
    color: #6b7280;
    margin: 0 0 var(--space-3) 0;
    text-align: justify;
    text-align-last: left;
    hyphens: auto;
}

.about-text:last-child {
    margin-bottom: 0;
}

.text-right {
    text-align: right;
}

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

/* About Creator Decorative Lines */
.ac1 { top: 10%; right: 12%; background-color: #800080; }
.ac2 { top: 85%; left: 10%; background-color: #2f4f4f; }
.ac3 { top: 40%; right: 8%; background-color: #00416a; }
/* Responsive */
@media (max-width: 1024px) {
    .about-creator-content {
        grid-template-columns: 2fr 3fr;
        gap: var(--space-5);
    }
}

@media (max-width: 768px) {
    .about-mission-box {
        padding: var(--space-5);
    }
    
    .mission-text {
        font-size: clamp(1rem, 2vw, 1.125rem);
    }
    
    .about-creator-content {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }
    
    .about-creator-image {
        max-width: 100%;
        margin: 0 auto;
    }
}