/* ==========================================================================
   ALLIGATOR LABS - DESIGN SYSTEM & STYLESHEET
   Light Glassmorphism & Sage Green / Emerald Theme (Matched to IDP Engine)
   ========================================================================== */

:root {
    /* Cores de Fundo (Tema Claro IDP Engine - Slate 50 / Slate 100) */
    --bg-dark: #f8fafc;
    /* Slate 50 */
    --bg-surface: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 0.98);

    /* Cores do Design System (Emerald, Teal, Sage Green) */
    --primary: #10b981;
    /* Emerald Green */
    --primary-glow: rgba(16, 185, 129, 0.15);
    --primary-hover: #059669;

    --secondary: #0d9488;
    /* Teal */
    --secondary-glow: rgba(13, 148, 136, 0.15);
    --secondary-hover: #0f766e;

    --accent: #3b82f6;
    /* Blue */
    --success: #10b981;
    --danger: #ef4444;
    --warning: #d97706;

    /* Cores de Texto (Slate 900 / Slate 500) */
    --text-primary: #0f172a;
    /* Slate 900 */
    --text-muted: #64748b;
    /* Slate 500 */
    --text-dim: #94a3b8;

    /* Vidro / Light Glassmorphism */
    --glass-border: rgba(15, 23, 42, 0.08);
    --glass-border-focus: rgba(16, 185, 129, 0.4);
    --glass-glow: 0 10px 30px rgba(15, 23, 42, 0.06);

    /* Fontes */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Raio de Bordas */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-full: 9999px;

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

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* CONTÊINER */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* BACKDROP DINÂMICO (TEMA CLARO IDP) */
.bg-gradient-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, #f1f5f9 0%, #f8fafc 100%);
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
    animation: floatShape 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: rgba(16, 185, 129, 0.2);
}

.shape-2 {
    bottom: -15%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(13, 148, 136, 0.18);
}

.shape-3 {
    top: 40%;
    left: 35%;
    width: 400px;
    height: 400px;
    background: rgba(59, 130, 246, 0.12);
}

@keyframes floatShape {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(40px, 60px) scale(1.1);
    }
}

/* TYPOGRAPHY & GRADIENTS */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, #059669 0%, #0d9488 50%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-muted {
    color: var(--text-muted);
}

.text-sm {
    font-size: 0.875rem;
}

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

.text-success {
    color: var(--success);
}

/* BRAND LOGO (ALLIGATOR + small labs) */
.brand-logo {
    display: inline-flex;
    align-items: flex-end;
    position: relative;
    text-decoration: none;
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    user-select: none;
}

.brand-main {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: 0.02em;
}

.brand-sub {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: lowercase;
    margin-left: 2px;
    margin-bottom: 0px;
    line-height: 1;
    background: rgba(16, 185, 129, 0.12);
    padding: 2px 5px;
    border-radius: 4px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.inline-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

/* BUTTONS & BADGES */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-hover) 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.25);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 148, 136, 0.4);
}

.btn-outline {
    background: #ffffff;
    border-color: var(--glass-border);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.btn-outline:hover {
    background: #f8fafc;
    border-color: var(--primary);
    color: var(--primary-hover);
}

.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-weight: 600;
    text-decoration: underline;
}

.icon-sm {
    width: 18px;
    height: 18px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-emerald {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-teal {
    background: rgba(13, 148, 136, 0.12);
    color: #0f766e;
    border: 1px solid rgba(13, 148, 136, 0.3);
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

/* LIGHT GLASS CARD */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-glow);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 18px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

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

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

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    font-weight: 600;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* HERO SECTION */
.hero {
    padding: 160px 0 90px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    color: #059669;
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.hero-title {
    font-size: 3.2rem;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 580px;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 20px;
    background: #ffffff;
    border: 1px solid var(--glass-border);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--glass-border);
}

/* HERO VISUAL & ALLIGATOR ARCHITECTURE OVERVIEW */
.visual-card {
    padding: 24px;
    border-color: rgba(16, 185, 129, 0.25);
    background: #ffffff;
}

.card-topbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--glass-border);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red {
    background: #ef4444;
}

.dot.yellow {
    background: #f59e0b;
}

.dot.green {
    background: #10b981;
}

.card-title-sm {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 8px;
    font-family: var(--font-body);
}

/* 100% TRANSPARENT 3D ISOMETRIC AI VISUAL (ZERO BOUNDARY / ZERO SHADE) */
.transparent-ai-visual {
    position: relative;
    width: 100%;
    height: 720px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.ai-docs-stream-svg,
.hero-ai-img {
    width: 100%;
    height: 100%;
    max-width: 680px;
    max-height: 540px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(16, 185, 129, 0.28));
    animation: floatDocumentStream 6s ease-in-out infinite alternate;
}

@keyframes floatDocumentStream {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    100% {
        transform: translateY(-12px) rotate(0.8deg);
    }
}

.floating-ai-chip {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.floating-ai-chip:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.18);
}

.chip-top-left {
    top: 30px;
    left: -10px;
}

.chip-bottom-right {
    bottom: 30px;
    right: -10px;
}

.chip-center-top {
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.78rem;
    font-weight: 600;
    color: #059669;
    padding: 6px 14px;
}

.chip-icon {
    font-size: 1.3rem;
}

.chip-sub {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* FLUXO DE ARQUITETURA HORIZONTAL (ABAIXO DO HERO TEXTO) */
.hero-arch-horizontal {
    margin-top: 50px;
    margin-bottom: 20px;
}

.arch-horizontal-card {
    background: #ffffff;
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.arch-horizontal-header {
    text-align: center;
    margin-bottom: 24px;
}

.arch-horizontal-header h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-top: 6px;
}

.arch-steps-horizontal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.arch-step-h {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid var(--glass-border);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.arch-step-h:hover {
    border-color: var(--primary);
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.1);
}

.arch-step-h.highlight-step-h {
    background: rgba(16, 185, 129, 0.06);
    border-color: rgba(16, 185, 129, 0.35);
}

.step-num {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    background: rgba(16, 185, 129, 0.12);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.step-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-icon {
    font-size: 1.5rem;
}

.step-content strong {
    display: block;
    font-size: 0.92rem;
    color: var(--text-primary);
}

.step-content p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
}

.step-arrow-h {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    flex-shrink: 0;
}

.arch-tags-horizontal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    border-top: 1px dashed var(--glass-border);
    padding-top: 16px;
}

.tag-pill {
    font-size: 0.72rem;
    font-weight: 600;
    color: #0f766e;
    background: rgba(15, 118, 110, 0.08);
    padding: 4px 9px;
    border-radius: 20px;
}

/* SEÇÃO DEDICADA DA CALCULADORA DE ROI (APÓS PRODUTOS) */
.roi-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(241, 245, 249, 0.6) 100%);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 80px 0;
}

.roi-simulator-container {
    max-width: 860px;
    margin: 0 auto;
}

.roi-simulator-card {
    background: #ffffff;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.sim-inputs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 16px 0 12px;
}

.sim-input-wrapper {
    margin: 0;
}

.sim-input-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
    font-family: var(--font-body);
}

.sim-summary-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: 18px;
    color: var(--text-primary);
    font-family: var(--font-body);
}

.sim-summary-bar strong {
    color: #059669;
    font-family: var(--font-heading);
    font-size: 0.95rem;
}

.input-with-badge {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-badge input[type="number"]::-webkit-inner-spin-button,
.input-with-badge input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-with-badge input[type="number"] {
    -moz-appearance: textfield;
    width: 100%;
    background: #ffffff;
    border: 1.5px solid rgba(16, 185, 129, 0.4);
    border-radius: var(--radius-sm);
    padding: 10px 105px 10px 12px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: var(--transition);
}

.input-with-badge input[type="number"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

.input-unit {
    position: absolute;
    right: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-body);
    color: #059669;
    background: rgba(16, 185, 129, 0.12);
    padding: 4px 7px;
    border-radius: 4px;
    pointer-events: none;
    white-space: nowrap;
}

.sim-footnote {
    font-family: var(--font-body);
    font-size: 0.65rem;
    color: #64748b;
    margin-top: 10px;
    line-height: 1.35;
    border-top: 1px dashed rgba(15, 23, 42, 0.08);
    padding-top: 8px;
    opacity: 0.8;
}

.text-teal {
    color: #0f766e;
}

.text-emerald {
    color: #059669;
}

.sim-slider-group {
    margin: 16px 0 20px;
}

.sim-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--text-muted);
}

.sim-slider-group input[type="range"] {
    width: 100%;
    accent-color: var(--primary);
    cursor: pointer;
}

.sim-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 20px 0;
}

.sim-res-box {
    background: #f8fafc;
    border: 1px solid var(--glass-border);
    padding: 14px;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
}

.res-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.res-val {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
}

.sim-badge-footer {
    font-size: 0.78rem;
    color: #059669;
    text-align: center;
    background: rgba(16, 185, 129, 0.1);
    padding: 8px;
    border-radius: var(--radius-sm);
    border: 1px dashed rgba(16, 185, 129, 0.3);
}

/* SECTION GENERAL */
.section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.4rem;
    margin: 16px 0 12px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto;
}

.grid {
    display: grid;
    gap: 32px;
}

.grid-2 {
    grid-template-columns: 1fr 1fr;
}

.items-center {
    align-items: center;
}

/* PRODUTOS (PALANTIR & WRITER STYLE) */
.product-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.tab-btn {
    background: #ffffff;
    border: 1px solid var(--glass-border);
    padding: 16px 28px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
    text-align: left;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03);
}

.tab-btn:hover {
    border-color: var(--primary);
}

.tab-btn.active {
    background: rgba(16, 185, 129, 0.08);
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.15);
}

.tab-icon {
    font-size: 1.8rem;
}

.tab-text strong {
    display: block;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.tab-text small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.product-info {
    padding-right: 20px;
}

.product-heading {
    font-size: 2.1rem;
    margin: 16px 0 16px;
    color: var(--text-primary);
}

.product-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 24px;
}

.feature-list {
    list-style: none;
    margin-bottom: 32px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    color: var(--text-muted);
}

.feature-icon {
    width: 22px;
    height: 22px;
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.product-actions {
    display: flex;
    gap: 16px;
}

/* IDP & RAG VISUAL PREVIEW CARDS (TEMA CLARO IDP) */
.scanner-card,
.rag-demo-card {
    padding: 24px;
    position: relative;
    overflow: hidden;
    background: #ffffff;
}

.scanner-header,
.rag-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.85rem;
    color: var(--text-primary);
}

.scan-frame {
    position: relative;
    background: #f1f5f9;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 20px;
    min-height: 180px;
    overflow: hidden;
    margin-bottom: 16px;
}

.scan-laser {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
    box-shadow: 0 0 15px var(--primary);
    animation: scanMove 3s infinite ease-in-out;
}

@keyframes scanMove {
    0% {
        top: 0;
    }

    50% {
        top: 95%;
    }

    100% {
        top: 0;
    }
}

.doc-field {
    background: #ffffff;
    border: 1px dashed rgba(16, 185, 129, 0.4);
    padding: 6px 12px;
    border-radius: 4px;
    margin-bottom: 8px;
    font-family: monospace;
    font-size: 0.8rem;
    color: #059669;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.json-output-preview {
    background: #0f172a;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 12px;
    font-family: monospace;
    font-size: 0.78rem;
    color: #6ee7b7;
    max-height: 120px;
    overflow-y: auto;
}

.rag-query-input {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.rag-query-input input {
    flex: 1;
    background: #f8fafc;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
}

.rag-response-box {
    background: rgba(13, 148, 136, 0.08);
    border: 1px solid rgba(13, 148, 136, 0.25);
    border-radius: var(--radius-sm);
    padding: 16px;
}

.response-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f766e;
    margin-bottom: 6px;
}

.response-text {
    font-size: 0.88rem;
    color: #334155;
    margin-bottom: 10px;
}

.citation-tag {
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    padding-top: 8px;
}

/* INTEGRAÇÕES SLIDER (TEMA CLARO) */
.integrations-section {
    background: rgba(255, 255, 255, 0.7);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.slider-wrapper {
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    margin-bottom: 24px;
}

.slider-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: scrollSlider 30s linear infinite;
}

.slider-wrapper:hover .slider-track {
    animation-play-state: paused;
}

@keyframes scrollSlider {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.brand-item {
    flex-shrink: 0;
}

.brand-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
    transition: var(--transition);
    height: 60px;
    min-width: 140px;
}

.brand-logo-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.15);
}

.brand-svg {
    height: 32px;
    width: auto;
    max-width: 130px;
}

.disclaimer-text {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* CONTATO */
.contact-details {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.detail-icon {
    width: 44px;
    height: 44px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-form {
    padding: 36px;
    background: #ffffff;
}

.contact-form h3 {
    font-size: 1.4rem;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: #f8fafc;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

.form-group select option {
    background: #ffffff;
    color: var(--text-primary);
}

/* FOOTER */
.footer {
    background: #f1f5f9;
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 380px;
}

.footer-brand p {
    margin-top: 12px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    padding-top: 24px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* MODAL DE LOGIN & PORTAL DO CLIENTE */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-card {
    width: 100%;
    max-width: 440px;
    padding: 40px;
    position: relative;
    background: #ffffff;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-header {
    margin-bottom: 28px;
}

.modal-header h3 {
    font-size: 1.3rem;
    margin-top: 8px;
}

/* PORTAL DO CLIENTE (PAINEL RESTRITO) */
.client-portal {
    min-height: 100vh;
    padding: 120px 0 60px;
    background: #f8fafc;
}

.portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 36px;
    background: #ffffff;
    border: 1px solid var(--glass-border);
    padding: 24px 32px;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.portal-user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: #ffffff;
}

.portal-welcome {
    font-size: 1.3rem;
}

.portal-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.portal-actions {
    display: flex;
    gap: 12px;
}

.portal-card {
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: 0 4px 25px rgba(15, 23, 42, 0.04);
}

.portal-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--glass-border);
}

.portal-card-header h3 {
    font-size: 1.4rem;
    margin-top: 4px;
}

.portal-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 24px;
}

.portal-box {
    background: #f8fafc;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 24px;
}

.upload-zone {
    border: 2px dashed rgba(16, 185, 129, 0.4);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.upload-zone:hover {
    border-color: var(--primary);
    background: rgba(16, 185, 129, 0.03);
}

.upload-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.table-responsive {
    overflow-x: auto;
    margin-top: 12px;
}

.portal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.portal-table th,
.portal-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.portal-table th {
    color: var(--text-muted);
    font-weight: 600;
}

.portal-rag-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rag-chat-box {
    background: #f8fafc;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 20px;
    min-height: 280px;
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-message {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.message-avatar {
    width: 32px;
    height: 32px;
    background: rgba(13, 148, 136, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.message-content {
    background: #ffffff;
    border: 1px solid var(--glass-border);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    max-width: 85%;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.chat-message.user {
    flex-direction: row-reverse;
}

.chat-message.user .message-avatar {
    background: rgba(16, 185, 129, 0.2);
}

.chat-message.user .message-content {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.3);
}

.rag-input-wrapper {
    display: flex;
    gap: 12px;
}

.rag-input-wrapper input {
    flex: 1;
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
}

/* UTILITY CLASSES */
.hidden {
    display: none !important;
}

.dot-online {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    margin-right: 6px;
}

/* MEDIA QUERIES (RESPONSIVIDADE TOTAL PARA DISPOSITIVOS MÓVEIS) */
.mobile-nav-actions {
    display: none;
}

@media (max-width: 992px) {
    .container {
        padding: 0 20px;
    }

    .hero-grid,
    .grid-2,
    .portal-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-title {
        font-size: 2.3rem;
    }

    .product-tabs {
        flex-direction: column;
        width: 100%;
    }

    .product-actions {
        flex-direction: column;
        width: 100%;
    }

    .product-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .transparent-ai-visual {
        height: auto;
        max-height: 420px;
    }
}

@media (max-width: 768px) {
    /* Impedir rolagem lateral em dispositivos móveis */
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    .navbar {
        padding: 12px 0;
    }

    .nav-container {
        justify-content: space-between;
    }

    /* Ocultar botões no topo no celular para não colidir com a logo e hambúrguer */
    .nav-actions > #btn-login-modal,
    .nav-actions > a {
        display: none !important;
    }

    .nav-menu {
        position: fixed;
        top: 64px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 64px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 32px 24px;
        gap: 20px;
        transition: var(--transition);
        border-bottom: 1px solid var(--glass-border);
        box-shadow: 0 15px 30px rgba(15, 23, 42, 0.1);
        overflow-y: auto;
        align-items: stretch;
    }

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

    .mobile-nav-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid var(--glass-border);
    }

    .mobile-toggle {
        display: flex;
    }

    .hero {
        padding: 96px 0 40px 0;
    }

    .hero-title {
        font-size: 1.95rem;
        line-height: 1.25;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 12px;
    }

    .hero-cta-group .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
        padding: 20px 16px;
        width: 100%;
    }

    .stat-item {
        width: 100%;
    }

    .stat-divider {
        width: 100%;
        height: 1px;
    }

    .sim-inputs-grid,
    .sim-results {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .calculator-card {
        padding: 24px 16px;
    }

    .integrations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .integration-card {
        padding: 16px 12px;
    }

    .contact-form {
        padding: 24px 16px;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
        align-items: center;
    }

    /* Carrossel Deslizável dos Passos da Arquitetura em Dispositivos Móveis */
    .arch-horizontal-card {
        padding: 24px 16px;
        overflow: hidden;
    }

    .arch-steps-horizontal {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        padding-bottom: 12px;
        margin-bottom: 16px;
        width: 100%;
        box-sizing: border-box;
    }

    .arch-steps-horizontal::-webkit-scrollbar {
        height: 5px;
    }

    .arch-steps-horizontal::-webkit-scrollbar-track {
        background: rgba(15, 23, 42, 0.05);
        border-radius: 4px;
    }

    .arch-steps-horizontal::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 4px;
    }

    .arch-step-h {
        flex: 0 0 85%;
        min-width: 250px;
        scroll-snap-align: start;
        box-sizing: border-box;
    }

    .step-arrow-h {
        flex-shrink: 0;
        align-self: center;
        opacity: 0.6;
        font-size: 1.2rem;
        padding: 0 2px;
    }

    .modal-card {
        padding: 28px 18px;
        width: 94%;
        margin: 20px auto;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.7rem;
    }

    .brand-main {
        font-size: 1.25rem;
    }

    .integrations-grid {
        grid-template-columns: 1fr;
    }

    .scanner-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .modal-card h3 {
        font-size: 1.15rem;
    }
}