/* ========================================
   CEDALIO LANDING PAGE - STRIPE-INSPIRED DESIGN
   ======================================== */

/* CSS Variables */
:root {
    /* Brand Colors - from Cedalio logo */
    --primary: #F25C54;
    --primary-dark: #E04A42;
    --primary-light: #FF7A73;
    --secondary: #FFB347;
    --accent: #FFC857;

    /* Stripe-inspired rich gradients */
    --gradient-hero: linear-gradient(165deg,
        #FFF9F7 0%,
        #FFF5F0 20%,
        #FFEFE8 40%,
        #FFF0E6 60%,
        #FFFAF5 80%,
        #FFFFFF 100%);
    --gradient-primary: linear-gradient(135deg, #E84038 0%, #F25C54 50%, #FF8C42 100%);
    --gradient-mesh: radial-gradient(at 40% 20%, rgba(242, 92, 84, 0.15) 0px, transparent 50%),
                     radial-gradient(at 80% 0%, rgba(255, 179, 71, 0.12) 0px, transparent 50%),
                     radial-gradient(at 0% 50%, rgba(242, 92, 84, 0.08) 0px, transparent 50%),
                     radial-gradient(at 80% 50%, rgba(255, 200, 87, 0.1) 0px, transparent 50%),
                     radial-gradient(at 0% 100%, rgba(255, 179, 71, 0.1) 0px, transparent 50%);
    --gradient-card: linear-gradient(180deg, #FFFFFF 0%, #FEFEFE 100%);
    --gradient-glow: radial-gradient(ellipse at center, rgba(242, 92, 84, 0.2) 0%, transparent 70%);

    /* Neutrals - refined */
    --text-primary: #0A0A0A;
    --text-secondary: #425466;
    --text-muted: #6B7C93;
    --text-light: #8898AA;
    --border: #E6EBF1;
    --border-light: #F0F4F8;
    --bg-light: #F7FAFC;
    --bg-white: #FFFFFF;

    /* Status Colors */
    --success: #0EAD69;
    --warning: #F5A623;
    --error: #E25950;
    --info: #635BFF;

    /* Dark mode variables - light values */
    --bg-body: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-elevated: #F7FAFC;
    --text-heading: #0A0A0A;
    --text-body: #425466;
    --shadow-color: rgba(0, 0, 0, 0.08);

    /* Spacing - generous and rhythmic */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2.5rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --space-4xl: 8rem;
    --space-5xl: 10rem;

    /* Typography - larger and bolder */
    --font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.625rem;
    --font-size-3xl: 2.25rem;
    --font-size-4xl: 3.25rem;
    --font-size-5xl: 4.5rem;
    --font-size-6xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    --radius-full: 9999px;

    /* Shadows - Stripe-style layered */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.02);
    --shadow-card: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 80px rgba(242, 92, 84, 0.25);
    --shadow-float: 0 30px 60px -12px rgba(50, 50, 93, 0.25), 0 18px 36px -18px rgba(0, 0, 0, 0.3);

    /* Transitions - smooth and natural */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* SVG Icons */
svg {
    width: 100%;
    height: 100%;
}

.sidebar-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    vertical-align: middle;
    opacity: 0.7;
}

.doc-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--primary);
}

.status-icon {
    width: 12px;
    height: 12px;
    vertical-align: middle;
    margin-right: 2px;
}

.document-icon svg,
.feature-icon svg,
.workflow-icon svg,
.payment-icon svg,
.industry-icon svg,
.agent-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary);
    stroke-width: 1.5;
}

.utility-icon svg,
.mesa-feature-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary);
    stroke-width: 1.5;
}

.penalty-icon {
    width: 14px;
    height: 14px;
    stroke: var(--error);
    vertical-align: middle;
    margin-right: 4px;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    padding: var(--space-md) 0;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-primary);
}

.logo-img {
    height: 36px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-links a {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
    border-radius: 1px;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-ctas {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* Language Selector */
.lang-selector {
    position: relative;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.lang-toggle:hover {
    background: var(--bg-white);
    border-color: var(--primary-light);
}

.lang-toggle svg {
    width: 14px;
    height: 14px;
}

.current-lang {
    font-weight: 600;
}

.lang-arrow {
    transition: transform 0.2s ease;
}

.lang-selector:hover .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 100;
    overflow: hidden;
}

.lang-selector:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    padding: 10px 16px;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    transition: all 0.15s ease;
}

.lang-option:hover {
    background: var(--bg-light);
    color: var(--text-primary);
}

.lang-option.active {
    background: var(--bg-light);
    color: var(--primary);
    font-weight: 600;
}

[data-theme="dark"] .lang-toggle {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text-secondary);
}

[data-theme="dark"] .lang-dropdown {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="dark"] .lang-option:hover {
    background: var(--bg-elevated);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
    border-radius: 1px;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.875rem 2rem;
    font-size: var(--font-size-sm);
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(242, 92, 84, 0.4), 0 0 0 0 rgba(242, 92, 84, 0);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(242, 92, 84, 0.5), 0 0 0 0 rgba(242, 92, 84, 0);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 14px rgba(242, 92, 84, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--text-primary);
    box-shadow: 0 0 0 1px var(--border), var(--shadow-sm);
}

.btn-secondary:hover {
    box-shadow: 0 0 0 1px var(--text-secondary), var(--shadow-md);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    box-shadow: 0 0 0 2px var(--text-primary);
}

.btn-outline:hover {
    background: var(--text-primary);
    color: white;
}

.btn-outline-white {
    background: transparent;
    color: white;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.btn-outline-white:hover {
    background: white;
    color: var(--primary);
    box-shadow: 0 0 0 2px white;
}

.btn-lg {
    padding: 1.125rem 2.75rem;
    font-size: var(--font-size-base);
}

.btn-block {
    width: 100%;
}

/* ========================================
   HERO SECTION - Stripe-inspired
   ======================================== */
.hero {
    padding: calc(100px + var(--space-4xl)) 0 var(--space-5xl);
    background: var(--gradient-hero);
    overflow: hidden;
    position: relative;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
}

/* Animated mesh gradient background */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-mesh);
    opacity: 1;
    animation: meshMove 20s ease-in-out infinite;
}

@keyframes meshMove {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(10px, -10px) scale(1.02); }
    50% { transform: translate(-5px, 15px) scale(1.01); }
    75% { transform: translate(-10px, 5px) scale(1.03); }
}

/* Floating orbs */
.hero::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 10%;
    width: 500px;
    height: 500px;
    background: var(--gradient-glow);
    filter: blur(80px);
    border-radius: 50%;
    animation: floatOrb 15s ease-in-out infinite;
    pointer-events: none;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    33% { transform: translate(30px, -40px) scale(1.1); opacity: 0.8; }
    66% { transform: translate(-20px, 20px) scale(0.95); opacity: 0.5; }
}

.hero .container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: var(--space-3xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    position: relative;
}

.hero h1 {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 420px;
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-3xl);
}

.hero-stats {
    display: flex;
    gap: var(--space-2xl);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: var(--space-sm);
    font-weight: 500;
    line-height: 1.3;
}

/* Dashboard Preview - Floating card effect */
.hero-visual {
    position: relative;
    perspective: 1000px;
}

.dashboard-preview {
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-float), 0 40px 80px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
    transform: rotateY(-5deg) rotateX(5deg);
    /* Removed animation to prevent viewport resize */
}

.dashboard-preview:hover {
    /* No transform changes on hover to prevent resize */
}

.dashboard-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(180deg, #FAFAFA 0%, #F5F5F5 100%);
    border-bottom: 1px solid var(--border-light);
}

.dashboard-dots {
    display: flex;
    gap: 6px;
}

.dashboard-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dashboard-dots span:nth-child(1) { background: #FF5F56; }
.dashboard-dots span:nth-child(2) { background: #FFBD2E; }
.dashboard-dots span:nth-child(3) { background: #27C93F; }

.dashboard-title {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    font-weight: 500;
}

.dashboard-content {
    display: flex;
    min-height: 320px;
}

.dashboard-sidebar {
    width: 170px;
    padding: var(--space-md);
    background: #FAFAFA;
    border-right: 1px solid var(--border-light);
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.sidebar-item svg {
    stroke: var(--text-muted);
    transition: var(--transition-fast);
}

.sidebar-item:hover,
.sidebar-item.active {
    background: white;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.sidebar-item:hover svg,
.sidebar-item.active svg {
    stroke: var(--primary);
}

.dashboard-main {
    flex: 1;
    padding: var(--space-lg);
}

.metric-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.metric-card {
    background: white;
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.metric-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-value {
    display: block;
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-primary);
}

.metric-change {
    font-size: 11px;
    font-weight: 600;
}

.metric-change.positive { color: var(--success); }
.metric-change.warning { color: var(--warning); }

.recent-docs {
    background: #FAFAFA;
    border-radius: var(--radius-lg);
    padding: var(--space-md);
}

.doc-row {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border-light);
}

.doc-row:last-child {
    border-bottom: none;
}

.doc-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doc-name {
    flex: 1;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.doc-status {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.doc-status.approved {
    background: rgba(14, 173, 105, 0.1);
    color: var(--success);
}

.doc-status.pending {
    background: rgba(245, 166, 35, 0.1);
    color: var(--warning);
}

/* ========================================
   LOGOS SECTION
   ======================================== */
.logos-section {
    padding: var(--space-3xl) 0;
    background: white;
    border-top: 1px solid var(--border-light);
}

.logos-title {
    text-align: center;
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    align-items: center;
    justify-items: center;
}

.logos-row {
    display: contents;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    transition: all var(--transition-base);
}

.logo-item img {
    max-height: 36px;
    max-width: 140px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.5);
    transition: all var(--transition-base);
}

.logo-item:hover img {
    filter: grayscale(0%) opacity(1);
}

/* Text-only fallback */
.logo-item span {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-light);
    opacity: 0.5;
    transition: all var(--transition-base);
}

.logo-item:hover span {
    opacity: 0.8;
    color: var(--text-secondary);
}

/* Backed By Section */
.backed-by {
    margin-top: var(--space-2xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.backed-label {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

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

.backed-logos img {
    height: 28px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: all var(--transition-base);
}

.backed-logos img:hover {
    filter: grayscale(0%) opacity(1);
}

/* ========================================
   UTILITIES HIGHLIGHT SECTION
   ======================================== */
.utilities-section {
    padding: var(--space-5xl) 0;
    background: linear-gradient(180deg, #FFFCFA 0%, #FFF8F2 50%, #FFF5EB 100%);
    position: relative;
    overflow: hidden;
}

.utilities-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 60%;
    height: 160%;
    background: radial-gradient(circle, rgba(242, 92, 84, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

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

.utilities-text .section-label {
    display: inline-block;
    text-align: left;
    margin-bottom: var(--space-md);
}

.utilities-text h2 {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    margin-bottom: var(--space-lg);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.utilities-text > p {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
    line-height: 1.7;
}

.utilities-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.utility-feature {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
}

.utility-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: white;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-base);
}

.utility-feature:hover .utility-icon {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.utility-info h4 {
    font-size: var(--font-size-base);
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.utility-info p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Utilities Dashboard Preview */
.utilities-visual {
    position: relative;
}

.utilities-dashboard {
    position: relative;
}

.utility-card-preview {
    background: white;
    border-radius: var(--radius-2xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-float);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.utility-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-light);
}

.utility-type {
    font-size: var(--font-size-base);
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.utility-type-icon {
    width: 20px;
    height: 20px;
    stroke: var(--warning);
}

.utility-provider {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    background: var(--bg-light);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-weight: 500;
}

.utility-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.utility-metric .metric-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.utility-metric .metric-value {
    display: block;
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-primary);
}

.utility-metric .metric-change {
    display: block;
    font-size: var(--font-size-xs);
    font-weight: 600;
    margin-top: 4px;
}

.utility-metric .metric-change.negative {
    color: var(--warning);
}

.utility-breakdown {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.breakdown-item:not(:last-child) {
    border-bottom: 1px solid var(--border-light);
}

.breakdown-item span:last-child {
    font-weight: 600;
    color: var(--text-primary);
}

.breakdown-item.penalty {
    background: rgba(226, 89, 80, 0.06);
    border-radius: var(--radius-md);
    margin: 4px -8px;
    padding: 10px 8px;
    border: none !important;
}

.breakdown-item.penalty span:first-child {
    color: var(--error);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.breakdown-item.penalty .penalty-amount {
    color: var(--error);
    font-weight: 700;
}

.utility-alert {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(245, 166, 35, 0.08);
    border: 1px solid rgba(245, 166, 35, 0.15);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    margin-top: var(--space-md);
}

.alert-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.alert-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--warning);
}

.alert-text {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

/* Utilities Dashboard V2 - Figma Style */
.utilities-dashboard-v2 {
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-float);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: var(--space-lg) var(--space-xl);
    background: linear-gradient(135deg, #FAFBFF 0%, #F5F7FF 100%);
    border-bottom: 1px solid var(--border-light);
}

.dash-breadcrumb {
    font-size: 12px;
    color: var(--primary);
    font-weight: 500;
    cursor: pointer;
    display: block;
    margin-bottom: 4px;
}

.dash-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.dash-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.dash-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #D97706;
    background: #FEF3C7;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.dash-tag-icon {
    width: 14px;
    height: 14px;
    stroke: #D97706;
}

.dash-location {
    font-size: 12px;
    color: var(--text-muted);
}

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

.dash-amount-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.dash-amount-value {
    display: block;
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-primary);
}

.dash-status {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    margin-top: 8px;
}

.dash-status.verified {
    background: #D1FAE5;
    color: #059669;
}

.dash-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border-light);
    padding: 0 var(--space-xl);
    background: #FAFBFF;
}

.dash-tab {
    padding: var(--space-md) var(--space-lg);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.dash-tab:hover {
    color: var(--text-primary);
}

.dash-tab.active {
    color: var(--primary);
    font-weight: 600;
}

.dash-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px 2px 0 0;
}

.dash-content {
    padding: var(--space-xl);
}

.dash-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.dash-stat-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.dash-stat-card.alert {
    background: #FEF2F2;
    border-color: #FECACA;
}

.dash-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.dash-stat-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.dash-stat-value {
    display: block;
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-primary);
}

.dash-stat-value.negative {
    color: #DC2626;
}

.dash-chart-section {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.dash-chart-header {
    margin-bottom: var(--space-lg);
}

.dash-chart-header h4 {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.dash-chart-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

.dash-chart {
    height: 140px;
    display: flex;
    align-items: flex-end;
}

.chart-bar-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    gap: 6px;
    padding-bottom: 24px;
    position: relative;
}

.chart-bar {
    flex: 1;
    height: var(--height);
    background: linear-gradient(180deg, #86EFAC 0%, #22C55E 100%);
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: all 0.3s ease;
    min-width: 20px;
}

.chart-bar:hover {
    transform: scaleY(1.05);
    transform-origin: bottom;
}

.chart-bar::after {
    content: attr(data-month);
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: var(--text-muted);
    white-space: nowrap;
}

.chart-bar.current {
    background: linear-gradient(180deg, #FCD34D 0%, #F59E0B 100%);
}

.chart-bar:hover::before {
    content: attr(data-value) ' kWh';
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 600;
    color: var(--text-primary);
    background: white;
    padding: 4px 8px;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

.dash-breakdown h4 {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--space-md) 0;
}

.breakdown-grid {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-light);
}

.breakdown-row:last-child {
    border-bottom: none;
}

.breakdown-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.breakdown-value {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.breakdown-row.penalty {
    background: #FEF2F2;
}

.breakdown-row.penalty .breakdown-label {
    color: #DC2626;
    font-weight: 500;
}

.breakdown-row.penalty .breakdown-value {
    color: #DC2626;
}

.dash-alert {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-xl);
    background: #FFFBEB;
    border-top: 1px solid #FDE68A;
}

.dash-alert-icon {
    font-size: 16px;
}

.dash-alert-text {
    flex: 1;
    font-size: var(--font-size-sm);
    color: #92400E;
}

.dash-alert-action {
    font-size: 12px;
    font-weight: 600;
    color: #D97706;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    transition: background 0.2s ease;
}

.dash-alert-action:hover {
    background: rgba(217, 119, 6, 0.1);
}

/* Responsive adjustments for dashboard v2 */
@media (max-width: 768px) {
    .dash-header {
        flex-direction: column;
        gap: var(--space-md);
    }

    .dash-header-right {
        text-align: left;
    }

    .dash-stats-row {
        grid-template-columns: 1fr;
    }

    .dash-tabs {
        overflow-x: auto;
        padding: 0 var(--space-md);
    }

    .dash-tab {
        padding: var(--space-sm) var(--space-md);
        white-space: nowrap;
    }

    .chart-bar-container {
        gap: 4px;
    }

    .chart-bar::after {
        font-size: 8px;
    }
}

/* ========================================
   MESA DE ENTRADA SECTION
   ======================================== */
.mesa-entrada-section {
    padding: var(--space-5xl) 0;
    background: linear-gradient(180deg, #FAFBFF 0%, #F5F7FF 50%, #EEF2FF 100%);
    position: relative;
    overflow: hidden;
}

.mesa-entrada-section::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -20%;
    width: 60%;
    height: 160%;
    background: radial-gradient(circle, rgba(99, 91, 255, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.mesa-entrada-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.mesa-entrada-text .section-label {
    display: inline-block;
    text-align: left;
    margin-bottom: var(--space-md);
    color: var(--info);
}

.mesa-entrada-text h2 {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    margin-bottom: var(--space-lg);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.mesa-entrada-text > p {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
    line-height: 1.7;
}

.mesa-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.mesa-feature {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
}

.mesa-feature-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: white;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-base);
}

.mesa-feature:hover .mesa-feature-icon {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.mesa-feature-info h4 {
    font-size: var(--font-size-base);
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.mesa-feature-info p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Mesa Dashboard Preview */
.mesa-entrada-visual {
    position: relative;
}

.mesa-dashboard {
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-float);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.mesa-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    background: linear-gradient(180deg, #FAFAFA 0%, #F5F5F5 100%);
    border-bottom: 1px solid var(--border-light);
}

.mesa-title {
    font-size: var(--font-size-base);
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.mesa-title-icon {
    width: 20px;
    height: 20px;
    stroke: var(--info);
}

.mesa-date {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    font-weight: 500;
}

.mesa-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-light);
}

.summary-card {
    text-align: center;
    padding: var(--space-md);
    background: var(--bg-light);
    border-radius: var(--radius-lg);
}

.summary-card .summary-number {
    display: block;
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--text-primary);
}

.summary-card .summary-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.summary-card.success .summary-number { color: var(--success); }
.summary-card.warning .summary-number { color: var(--warning); }
.summary-card.alert .summary-number { color: var(--error); }

.mesa-validations {
    padding: var(--space-md);
}

.validation-row {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 10px var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: 4px;
    transition: all var(--transition-fast);
}

.validation-row:hover {
    background: var(--bg-light);
}

.validation-row.highlight {
    background: rgba(99, 91, 255, 0.06);
    border: 1px solid rgba(99, 91, 255, 0.1);
}

.validation-doc {
    flex: 1;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.validation-checks {
    display: flex;
    gap: 6px;
}

.check {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.check.passed {
    background: rgba(14, 173, 105, 0.1);
    color: var(--success);
}

.check.failed {
    background: rgba(226, 89, 80, 0.1);
    color: var(--error);
}

.check.escalate {
    background: rgba(99, 91, 255, 0.1);
    color: var(--info);
}

.validation-status {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.validation-status.ready {
    background: rgba(14, 173, 105, 0.1);
    color: var(--success);
}

.validation-status.pending {
    background: rgba(245, 166, 35, 0.1);
    color: var(--warning);
}

.validation-status.escalate {
    background: rgba(99, 91, 255, 0.1);
    color: var(--info);
}

/* ========================================
   SECTION STYLES
   ======================================== */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto var(--space-3xl);
}

.section-label {
    display: inline-block;
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: var(--space-md);
}

.section-header h2 {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.section-header p {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   DOCUMENTS SECTION
   ======================================== */
.documents-section {
    padding: var(--space-5xl) 0;
    background: white;
}

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

.document-card {
    text-align: center;
    padding: var(--space-xl);
    background: white;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
}

.document-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-float);
    border-color: transparent;
}

.document-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(242, 92, 84, 0.08) 0%, rgba(255, 179, 71, 0.08) 100%);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.document-card:hover .document-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(242, 92, 84, 0.15) 0%, rgba(255, 179, 71, 0.15) 100%);
}

.document-card h3 {
    font-size: var(--font-size-base);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.document-card p {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    line-height: 1.6;
}

/* Document Types Strip (Compact Version) */
.documents-strip-section {
    padding: var(--space-3xl) 0;
    background: white;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.documents-strip-content {
    text-align: center;
}

.documents-strip-label {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-lg);
}

.documents-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.doc-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 10px 18px;
    background: linear-gradient(135deg, rgba(242, 92, 84, 0.08) 0%, rgba(255, 179, 71, 0.06) 100%);
    border: 1px solid rgba(242, 92, 84, 0.15);
    border-radius: 100px;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-primary);
    transition: all var(--transition-base);
}

.doc-pill:hover {
    background: linear-gradient(135deg, rgba(242, 92, 84, 0.15) 0%, rgba(255, 179, 71, 0.12) 100%);
    border-color: rgba(242, 92, 84, 0.3);
    transform: translateY(-2px);
}

.doc-pill svg {
    stroke: var(--primary);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.documents-strip-formats {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

/* Inline version inside Data Capture */
.documents-strip-inline {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-light);
}

@media (max-width: 768px) {
    .documents-strip,
    .documents-strip-inline {
        gap: var(--space-xs);
        justify-content: center;
    }

    .doc-pill {
        padding: 8px 14px;
        font-size: var(--font-size-xs);
    }

    .doc-pill svg {
        width: 16px;
        height: 16px;
    }
}

/* ========================================
   HOW IT WORKS SECTION
   ======================================== */
.how-it-works {
    padding: var(--space-5xl) 0;
    background: var(--bg-light);
}

.layer-section {
    margin-bottom: var(--space-4xl);
}

.layer-section:last-child {
    margin-bottom: 0;
}

.layer-header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.layer-number {
    font-size: var(--font-size-6xl);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.4;
    line-height: 1;
}

.layer-info h3 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
}

.layer-info p {
    color: var(--text-secondary);
    font-size: var(--font-size-xl);
}

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

.feature-card {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-2xl);
    transition: all var(--transition-base);
    border: 1px solid transparent;
}

.feature-card:hover {
    box-shadow: var(--shadow-float);
    transform: translateY(-6px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(242, 92, 84, 0.08) 0%, rgba(255, 179, 71, 0.08) 100%);
    border-radius: var(--radius-lg);
}

.feature-card h4 {
    font-size: var(--font-size-base);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.feature-card p {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    line-height: 1.6;
}

.features-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

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

/* AI Agents Grid */
.agents-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.agent-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    background: white;
    padding: var(--space-lg);
    border-radius: var(--radius-2xl);
    transition: all var(--transition-base);
}

.agent-card:hover {
    box-shadow: var(--shadow-float);
    transform: translateY(-6px);
}

.agent-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(242, 92, 84, 0.08) 0%, rgba(255, 179, 71, 0.08) 100%);
    border-radius: var(--radius-lg);
}

.agent-content {
    flex: 1;
}

.agent-content h4 {
    font-size: var(--font-size-base);
    font-weight: 700;
    margin-bottom: 4px;
}

.agent-content p {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    line-height: 1.5;
}

.agent-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--success);
    font-weight: 600;
    flex-shrink: 0;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.9); }
}

/* Workflows Grid */
.workflows-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.workflow-card {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-2xl);
    transition: all var(--transition-base);
}

.workflow-card:hover {
    box-shadow: var(--shadow-float);
    transform: translateY(-6px);
}

.workflow-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(242, 92, 84, 0.08) 0%, rgba(255, 179, 71, 0.08) 100%);
    border-radius: var(--radius-lg);
}

.workflow-card h4 {
    font-size: var(--font-size-base);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.workflow-card p {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    line-height: 1.6;
}

/* ========================================
   PAYMENTS SECTION
   ======================================== */
.payments-section {
    padding: var(--space-5xl) 0;
    background: white;
}

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

.payment-card {
    position: relative;
    background: white;
    padding: var(--space-2xl);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border-light);
    text-align: center;
    transition: all var(--transition-base);
}

.payment-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-float);
    border-color: transparent;
}

.payment-card.featured {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-glow);
}

.payment-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.payment-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(242, 92, 84, 0.08) 0%, rgba(255, 179, 71, 0.08) 100%);
    border-radius: var(--radius-xl);
}

.payment-card h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.payment-card p {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    line-height: 1.6;
}

/* ========================================
   INDUSTRIES SECTION
   ======================================== */
.industries-section {
    padding: var(--space-5xl) 0;
    background: var(--bg-light);
}

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

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

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

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

.industry-card {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-2xl);
    transition: all var(--transition-base);
}

.industry-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-float);
}

.industry-icon {
    width: 56px;
    height: 56px;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(242, 92, 84, 0.08) 0%, rgba(255, 179, 71, 0.08) 100%);
    border-radius: var(--radius-xl);
}

.industry-card h3 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.industry-card ul {
    list-style: none;
}

.industry-card li {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    padding: 6px 0;
    padding-left: var(--space-lg);
    position: relative;
}

.industry-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--gradient-primary);
    border-radius: 50%;
}

/* ========================================
   ROI SECTION
   ======================================== */
.roi-section {
    padding: var(--space-5xl) 0;
    background: white;
}

.roi-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-4xl);
    align-items: start;
}

.roi-text .section-label {
    display: block;
    text-align: left;
    margin-bottom: var(--space-md);
}

.roi-text h2 {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    margin-bottom: var(--space-md);
    letter-spacing: -0.03em;
}

.roi-text > p {
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
    font-size: var(--font-size-lg);
}

.roi-comparison {
    display: flex;
    align-items: stretch;
    gap: var(--space-lg);
}

.roi-before,
.roi-after {
    flex: 1;
    background: var(--bg-light);
    padding: var(--space-xl);
    border-radius: var(--radius-2xl);
}

.roi-before {
    opacity: 0.7;
}

.roi-after {
    background: white;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--primary);
}

.roi-before h4,
.roi-after h4 {
    font-size: var(--font-size-base);
    font-weight: 700;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-light);
}

.roi-before ul,
.roi-after ul {
    list-style: none;
}

.roi-before li,
.roi-after li {
    padding: var(--space-sm) 0;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.metric {
    font-weight: 700;
    color: var(--text-primary);
}

.metric.highlight {
    color: var(--primary);
}

.roi-arrow {
    display: flex;
    align-items: center;
    font-size: var(--font-size-2xl);
    color: var(--primary);
    font-weight: 700;
}

/* Calculator */
.calculator-card {
    background: white;
    padding: var(--space-2xl);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-float);
}

.calculator-card h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-xl);
    text-align: center;
}

.calculator-input {
    margin-bottom: var(--space-xl);
}

.calculator-input label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
}

.calculator-input input {
    width: 100%;
    padding: var(--space-md);
    font-size: var(--font-size-xl);
    font-weight: 700;
    font-family: var(--font-family);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-fast);
}

.calculator-input input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(242, 92, 84, 0.1);
}

.calculator-result {
    background: var(--bg-light);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-xl);
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
}

.result-item:not(:last-child) {
    border-bottom: 1px solid var(--border-light);
}

.result-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.result-value {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary);
}

/* ========================================
   BREADCRUMBS
   ======================================== */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

.breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.breadcrumbs .separator {
    color: var(--text-light);
}

.breadcrumbs .current {
    color: var(--text-muted);
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========================================
   ARTICLE CTA BOX
   ======================================== */
.article-cta-section {
    padding: var(--space-3xl) 0;
    background: var(--bg-light);
}

.article-cta-box {
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl) var(--space-3xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
    color: white;
}

.article-cta-content h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.article-cta-content p {
    font-size: var(--font-size-md);
    opacity: 0.9;
    max-width: 500px;
}

.article-cta-actions {
    display: flex;
    gap: var(--space-md);
    flex-shrink: 0;
}

.article-cta-actions .btn-primary {
    background: white;
    color: var(--primary);
}

.article-cta-actions .btn-primary:hover {
    background: #f0f0f0;
}

.article-cta-actions .btn-outline {
    border-color: white;
    color: white;
}

.article-cta-actions .btn-outline:hover {
    background: rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
    .article-cta-box {
        flex-direction: column;
        text-align: center;
        padding: var(--space-xl);
    }

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

    .article-cta-actions .btn {
        width: 100%;
    }
}

/* ========================================
   MID-PAGE CTA SECTION
   ======================================== */
.mid-cta-section {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, #FFF5F0 0%, #FFF9F7 100%);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.mid-cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.mid-cta-content h3 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.mid-cta-content p {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    padding: var(--space-5xl) 0;
    background: var(--gradient-primary);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* Floating elements */
.cta-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    margin-bottom: var(--space-md);
    letter-spacing: -0.03em;
}

.cta-content p {
    font-size: var(--font-size-xl);
    opacity: 0.9;
    margin-bottom: var(--space-2xl);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.cta-buttons .btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.cta-buttons .btn-primary:hover {
    background: #F5F5F5;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cta-trust {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    font-size: var(--font-size-sm);
    opacity: 0.8;
}

.cta-trust span {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: #0A0A0A;
    color: white;
    padding: var(--space-4xl) 0 var(--space-2xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer-brand .logo {
    margin-bottom: var(--space-lg);
    color: white;
}

.footer-brand .logo-img {
    height: 32px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.5);
    max-width: 280px;
    line-height: 1.7;
}

.footer-regions {
    margin-top: var(--space-md);
    font-size: var(--font-size-lg);
    letter-spacing: 0.2em;
}

.footer-links h4 {
    font-size: var(--font-size-sm);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links a {
    display: block;
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.5);
    padding: 6px 0;
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: white;
    transform: translateX(4px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-2xl);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.4);
}

.footer-legal {
    display: flex;
    gap: var(--space-xl);
}

.footer-legal a {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.4);
    transition: var(--transition-fast);
}

.footer-legal a:hover {
    color: white;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    :root {
        --font-size-5xl: 3.5rem;
        --font-size-4xl: 2.75rem;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        max-width: 100%;
        margin: 0 auto var(--space-xl);
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .utilities-content,
    .mesa-entrada-content {
        grid-template-columns: 1fr;
    }

    .utilities-visual,
    .mesa-entrada-visual {
        order: -1;
    }

    .mesa-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .documents-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .features-grid,
    .agents-grid,
    .workflows-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .industries-grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }

    .roi-content {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .logos-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --font-size-5xl: 2.75rem;
        --font-size-4xl: 2.25rem;
        --space-5xl: 6rem;
    }

    .container {
        padding: 0 var(--space-lg);
    }

    .navbar {
        position: relative;
    }

    .nav-container {
        position: relative;
    }

    .nav-links,
    .nav-ctas {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    /* Mobile menu open state */
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        padding: var(--space-lg);
        box-shadow: 0 10px 40px rgba(0,0,0,0.1);
        border-top: 1px solid var(--border-light);
        gap: var(--space-md);
        z-index: 1000;
    }

    .nav-links.active a {
        padding: var(--space-sm) 0;
        font-size: var(--font-size-md);
    }

    .nav-links.active .nav-link-mega {
        display: block;
    }

    .nav-links.active .mega-menu {
        display: none;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .documents-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid,
    .agents-grid,
    .workflows-grid,
    .industries-grid,
    .industries-grid-5,
    .payments-grid {
        grid-template-columns: 1fr;
    }

    .roi-comparison {
        flex-direction: column;
    }

    .roi-arrow {
        justify-content: center;
        transform: rotate(90deg);
        padding: var(--space-md) 0;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-trust {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    .logos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    :root {
        --font-size-5xl: 2.25rem;
        --font-size-4xl: 1.875rem;
        --font-size-3xl: 1.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--space-lg);
    }

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

    .mesa-summary {
        grid-template-columns: 1fr 1fr;
    }

    .validation-checks {
        display: none;
    }

    .logos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   BLOG SECTION
   ======================================== */
.blog-section {
    padding: var(--space-5xl) 0;
    background: var(--bg-light);
}

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

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

.blog-card {
    background: white;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    transition: all var(--transition-base);
    border: 1px solid var(--border-light);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-float);
    border-color: transparent;
}

.blog-card.featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.blog-card.featured .blog-image {
    height: 100%;
    min-height: 280px;
}

.blog-image {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, rgba(242, 92, 84, 0.08) 0%, rgba(255, 179, 71, 0.08) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

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

.blog-image-placeholder {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.blog-image-placeholder svg {
    width: 40px;
    height: 40px;
    stroke: var(--primary);
    stroke-width: 1.5;
}

.blog-category {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    background: white;
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-sm);
}

.blog-content {
    padding: var(--space-xl);
}

.blog-card.featured .blog-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-card h3 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.blog-card.featured h3 {
    font-size: var(--font-size-2xl);
}

.blog-card p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.blog-meta {
    display: flex;
    gap: var(--space-md);
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.blog-link {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--primary);
    transition: all var(--transition-fast);
}

.blog-link:hover {
    color: var(--primary-dark);
    letter-spacing: 0.02em;
}

.blog-cta {
    text-align: center;
    margin-top: var(--space-3xl);
}

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

    .blog-card.featured {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .blog-grid,
    .blog-grid-featured {
        grid-template-columns: 1fr;
    }

    .blog-card.featured {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }

    .blog-card.featured .blog-image {
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    .blog-card h3 {
        font-size: var(--font-size-base);
    }

    .blog-card.featured h3 {
        font-size: var(--font-size-lg);
    }
}

/* ========================================
   VIDEO SECTION
   ======================================== */
.video-section {
    padding: var(--space-3xl) 0 var(--space-4xl);
    background: white;
}

.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.video-embed {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-float);
    background: #000;
}

.video-embed iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.video-placeholder {
    position: relative;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-float);
    transition: all var(--transition-base);
}

.video-placeholder:hover {
    transform: scale(1.02);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.4);
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(242, 92, 84, 0.5);
    transition: all var(--transition-base);
    z-index: 2;
}

.video-placeholder:hover .video-play-button {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 12px 40px rgba(242, 92, 84, 0.6);
}

.video-play-button svg {
    margin-left: 4px;
}

.video-duration {
    position: absolute;
    bottom: var(--space-lg);
    right: var(--space-lg);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: var(--font-size-sm);
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    z-index: 2;
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-2xl);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    z-index: 1;
}

.video-overlay h3 {
    color: white;
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.video-overlay p {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-sm);
}

/* ========================================
   SOCIAL PROOF SECTION (Combined Logos + Testimonials)
   ======================================== */
.social-proof-section {
    padding: var(--space-5xl) 0;
    background: linear-gradient(180deg, #FAFBFF 0%, #F5F7FF 100%);
}

.social-proof-section .section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.logos-grid-compact {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-items: center;
    align-items: center;
    gap: var(--space-xl) var(--space-2xl);
    margin-bottom: var(--space-3xl);
    padding: var(--space-xl) 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.logos-grid-compact .logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 130px;
    height: 45px;
    opacity: 0.6;
    transition: opacity var(--transition-base);
}

.logos-grid-compact .logo-item:hover {
    opacity: 1;
}

.logos-grid-compact .logo-item img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter var(--transition-base);
}

.logos-grid-compact .logo-item:hover img {
    filter: grayscale(0%);
}

/* Individual logo scaling adjustments for whitespace differences */
.logos-grid-compact .logo-item.logo-ambev img {
    transform: scale(1.4);
}

.logos-grid-compact .logo-item.logo-lartirigoyen img {
    transform: scale(1.3);
}

.logos-grid-compact .logo-item.logo-47street img {
    transform: scale(1.2);
}

.logos-grid-compact .logo-item.logo-dreamco img {
    transform: scale(0.9);
}

.logo-text {
    font-size: 1.15rem;
    font-weight: 800;
    color: #bbb;
    letter-spacing: -0.03em;
    transition: color var(--transition-base);
    text-transform: uppercase;
}

.logos-grid-compact .logo-item:hover .logo-text {
    color: #888;
}

.social-proof-section .backed-by {
    margin-top: var(--space-3xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.backed-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-3xl);
    flex-wrap: wrap;
    margin-top: var(--space-lg);
}

.backed-logo {
    height: 24px;
    width: auto;
    opacity: 0.5;
    transition: all var(--transition-base);
}

.backed-logo:hover {
    opacity: 0.8;
}

.backed-logo.yc {
    height: 28px;
}

.backed-logo.google {
    height: 20px;
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */
.testimonials-section {
    padding: var(--space-5xl) 0;
    background: linear-gradient(180deg, #FAFBFF 0%, #F5F7FF 100%);
}

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

.testimonials-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    max-width: 1100px;
    margin: 0 auto;
}

.testimonial-card {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-card);
    transition: all var(--transition-base);
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-float);
}

.testimonial-metric {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-light);
}

.metric-big {
    display: block;
    font-size: var(--font-size-3xl);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.metric-context {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-top: 4px;
}

.testimonial-text {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.author-avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: var(--font-size-sm);
}

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

.author-name {
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--text-primary);
}

.author-company {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

/* Testimonials Responsive */
@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .testimonials-grid,
    .testimonials-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   CASE STUDIES SECTION
   ======================================== */
.case-studies-section {
    padding: var(--space-5xl) 0;
    background: white;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

.case-study-card {
    background: white;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
}

.case-study-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-float);
    border-color: transparent;
}

.case-study-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

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

.case-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-image-placeholder svg {
    width: 64px;
    height: 64px;
    stroke: white;
    stroke-width: 1.5;
    opacity: 0.8;
}

.case-image-placeholder.pe {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.case-image-placeholder.retail {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.case-image-placeholder.seguros {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.case-image-placeholder.multinacional {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.case-tag {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.case-study-content {
    padding: var(--space-xl);
}

.case-study-content h3 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
    line-height: 1.3;
}

.case-study-content p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.case-metrics {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-md) 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: var(--space-lg);
}

.case-metric {
    flex: 1;
    text-align: center;
}

.case-metric-value {
    display: block;
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: var(--primary);
}

.case-metric-label {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 2px;
}

.case-link {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--primary);
    transition: all var(--transition-fast);
}

.case-link:hover {
    color: var(--primary-dark);
}

/* Case Studies Responsive */
@media (max-width: 768px) {
    .case-studies-grid {
        grid-template-columns: 1fr;
    }

    .case-metrics {
        flex-wrap: wrap;
    }

    .case-metric {
        min-width: 80px;
    }
}

/* ========================================
   BLOG SUBSECTIONS & MINI CARDS
   ======================================== */
.blog-subsection {
    margin-bottom: var(--space-3xl);
}

.blog-subsection-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--border-light);
}

.blog-subsection-title svg {
    stroke: var(--primary);
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    min-height: 20px;
    flex-shrink: 0;
}

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

.blog-card-mini {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    background: white;
    padding: var(--space-lg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
}

.blog-card-mini:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.country-flag {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.compliance-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    flex-shrink: 0;
}

.blog-card-mini-content {
    flex: 1;
    min-width: 0;
}

.blog-category-mini {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.blog-card-mini h4 {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.3;
}

.blog-card-mini p {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: var(--space-sm);
}

.blog-card-mini .blog-link {
    font-size: var(--font-size-xs);
}

/* Blog Mini Cards Responsive */
@media (max-width: 1024px) {
    .blog-grid-small {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-grid-small {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   BLOG PAGE HERO
   ======================================== */
.blog-hero {
    padding: calc(80px + var(--space-3xl)) 0 var(--space-3xl);
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-mesh);
    opacity: 1;
}

.blog-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.blog-hero h1 {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.blog-hero p {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    line-height: 1.6;
}

.blog-section-white {
    background: white;
}

/* Active nav link */
.nav-links a.active {
    color: var(--primary);
}

.nav-links a.active::after {
    width: 100%;
}

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

.article-hero {
    padding: 160px 0 80px;
    background: var(--gradient-hero);
    position: relative;
}

.article-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-mesh);
    opacity: 0.8;
}

.article-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.back-link {
    display: inline-block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: var(--space-lg);
    font-size: var(--font-size-sm);
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--primary);
}

.article-category {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

.article-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    letter-spacing: -0.03em;
}

.article-subtitle {
    font-size: var(--font-size-xl);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-xl);
}

.article-meta {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

/* Article Content */
.article-content {
    padding: var(--space-4xl) 0;
    background: white;
}

.container-narrow {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.article-content h2 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin: var(--space-3xl) 0 var(--space-lg);
    letter-spacing: -0.02em;
}

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

.article-content h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin: var(--space-2xl) 0 var(--space-md);
}

.article-content h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin: var(--space-xl) 0 var(--space-sm);
}

.article-content p {
    font-size: var(--font-size-md);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.article-content ul,
.article-content ol {
    margin-bottom: var(--space-lg);
    padding-left: var(--space-xl);
}

.article-content li {
    font-size: var(--font-size-md);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-sm);
}

.article-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.article-highlight {
    background: linear-gradient(135deg, rgba(242, 92, 84, 0.08), rgba(255, 179, 71, 0.08));
    border-left: 4px solid var(--primary);
    padding: var(--space-xl);
    margin: var(--space-2xl) 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.article-highlight p {
    margin-bottom: 0;
    color: var(--text-primary);
}

.article-table {
    overflow-x: auto;
    margin: var(--space-2xl) 0;
}

.article-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-sm);
}

.article-table th,
.article-table td {
    padding: var(--space-md) var(--space-lg);
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.article-table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-primary);
}

.article-table td {
    color: var(--text-secondary);
}

.article-table tr:hover td {
    background: rgba(242, 92, 84, 0.02);
}

.article-content blockquote {
    background: var(--bg-light);
    border-left: 4px solid var(--primary);
    padding: var(--space-xl);
    margin: var(--space-2xl) 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--text-secondary);
}

.article-cta {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: var(--space-3xl);
    border-radius: var(--radius-xl);
    text-align: center;
    margin-top: var(--space-4xl);
}

.article-cta h3 {
    color: white;
    font-size: var(--font-size-2xl);
    margin: 0 0 var(--space-md);
}

.article-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-xl);
}

.article-cta .btn {
    background: white;
    color: var(--primary);
}

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

/* Related Articles */
.related-articles {
    padding: var(--space-4xl) 0;
    background: var(--bg-light);
}

.related-articles h2 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-2xl);
    text-align: center;
}

/* Case Study Metrics Hero */
.case-metrics-hero {
    background: white;
    padding: var(--space-2xl) 0;
    border-bottom: 1px solid var(--border);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    max-width: 900px;
    margin: 0 auto;
}

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

.metric-item .metric-value {
    display: block;
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.metric-item .metric-label {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }

    .metric-item .metric-value {
        font-size: var(--font-size-2xl);
    }

    .article-hero {
        padding: 120px 0 60px;
    }

    .article-hero h1 {
        font-size: var(--font-size-2xl);
    }

    .article-meta {
        flex-direction: column;
        gap: var(--space-sm);
    }
}

/* ========================================
   V2 ENHANCEMENTS - STRIPE/GITHUB INSPIRED
   ======================================== */

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.delay-5 { transition-delay: 0.5s; }

/* Slide from left/right */
.animate-slide-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-slide-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-slide-left.animate-in,
.animate-slide-right.animate-in {
    opacity: 1;
    transform: translateX(0);
}

/* Scale in animation */
.animate-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-scale.animate-in {
    opacity: 1;
    transform: scale(1);
}

/* Enhanced Button Hover - Gradient Shift */
.btn-primary {
    background-size: 200% 100%;
    background-image: linear-gradient(135deg, #F25C54 0%, #FF7A65 25%, #FFB347 50%, #FF7A65 75%, #F25C54 100%);
    transition: all var(--transition-base), background-position 0.5s ease;
}

.btn-primary:hover {
    background-position: 100% 0;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(242, 92, 84, 0.4), 0 0 0 0 rgba(242, 92, 84, 0);
}

/* Button Shine Effect */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Enhanced Card Hover */
.feature-card,
.agent-card,
.industry-card,
.testimonial-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover,
.agent-card:hover,
.industry-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15),
                0 0 0 1px rgba(242, 92, 84, 0.1);
}

.testimonial-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

/* Animated Counter Styles */
.counter-value {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

/* Impact Stats Section */
.impact-section {
    padding: var(--space-5xl) 0;
    background: linear-gradient(180deg, #0A0A0A 0%, #1a1a2e 100%);
    position: relative;
    overflow: hidden;
}

.impact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 0%, rgba(242, 92, 84, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 100%, rgba(255, 179, 71, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.impact-section .section-header {
    text-align: center;
    margin-bottom: var(--space-4xl);
    position: relative;
    z-index: 1;
}

.impact-section .section-label {
    color: var(--primary-light);
}

.impact-section .section-title {
    color: white;
}

.impact-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.impact-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    position: relative;
    z-index: 1;
}

.impact-stat {
    text-align: center;
    padding: var(--space-2xl);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.impact-stat:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(242, 92, 84, 0.3);
    transform: translateY(-5px);
}

.impact-stat-value {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.04em;
    white-space: nowrap;
}

.impact-stat-label {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-bottom: var(--space-xs);
}

.impact-stat-desc {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.5);
}

/* Dashboard Preview Enhanced Animation - Removed duplicate, using original floatCard */

/* Metric cards inside dashboard - stagger animation */
.metric-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.metric-card:nth-child(1) { animation-delay: 0.2s; }
.metric-card:nth-child(2) { animation-delay: 0.4s; }
.metric-card:nth-child(3) { animation-delay: 0.6s; }

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

/* Doc rows animation */
.doc-row {
    animation: slideInRight 0.5s ease-out backwards;
}

.doc-row:nth-child(1) { animation-delay: 0.8s; }
.doc-row:nth-child(2) { animation-delay: 1s; }
.doc-row:nth-child(3) { animation-delay: 1.2s; }

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hero text stagger animation */
.hero-content h1 {
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-ctas {
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.hero-stats {
    animation: fadeInUp 0.8s ease-out 0.8s backwards;
}

.hero-visual {
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

/* Navbar scroll enhancement */
.navbar {
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    padding: var(--space-sm) 0;
}

/* Pulsing CTA attention */
@keyframes pulse-ring {
    0% { box-shadow: 0 4px 14px rgba(242, 92, 84, 0.4), 0 0 0 0 rgba(242, 92, 84, 0.4); }
    70% { box-shadow: 0 4px 14px rgba(242, 92, 84, 0.4), 0 0 0 15px rgba(242, 92, 84, 0); }
    100% { box-shadow: 0 4px 14px rgba(242, 92, 84, 0.4), 0 0 0 0 rgba(242, 92, 84, 0); }
}

.hero-ctas .btn-primary {
    animation: pulse-ring 2.5s infinite;
}

.hero-ctas .btn-primary:hover {
    animation: none;
}

/* HERO - Disable all transforms on hover to prevent viewport resize */
.hero .btn:hover,
.hero .btn-primary:hover,
.hero .btn-secondary:hover,
.hero .btn-outline:hover {
    transform: none !important;
}

.hero .sidebar-item:hover,
.hero .dash-tab:hover {
    transform: none !important;
}

/* Section transitions */
section {
    position: relative;
}

/* Gradient divider between sections */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 0;
}

/* Responsive Impact Stats */
@media (max-width: 968px) {
    .impact-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .impact-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .impact-stat-value {
        font-size: 2rem;
    }
}

/* ========================================
   V2: FIGMA-INSPIRED DASHBOARD MOCKUP
   ======================================== */

.dash-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    margin-bottom: 12px;
}

.dash-section-title {
    font-size: 11px;
    font-weight: 600;
    color: #1a1a2e;
}

.dash-tabs {
    display: flex;
    gap: 4px;
}

.dash-tab {
    font-size: 9px;
    padding: 4px 8px;
    border-radius: 4px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.dash-tab.active {
    background: #7c3aed;
    color: white;
}

.dash-charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
    padding: 0 12px;
    margin-bottom: 12px;
}

.dash-chart-card {
    background: #fafafa;
    border-radius: 8px;
    padding: 10px;
}

.dash-chart-card.small {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.chart-title {
    font-size: 9px;
    color: #666;
    display: block;
    margin-bottom: 8px;
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 60px;
}

.bar-chart .bar {
    flex: 1;
    border-radius: 3px 3px 0 0;
    min-width: 8px;
    transition: height 0.5s ease;
}

.line-chart {
    width: 100%;
    height: 35px;
}

.line-chart svg {
    width: 100%;
    height: 100%;
}

.chart-value {
    font-size: 14px;
    font-weight: 700;
    color: #f97316;
    margin-top: 4px;
}

.dash-table {
    padding: 0 12px 12px;
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 8px;
    padding: 6px 8px;
    background: #f5f5f5;
    border-radius: 4px;
    margin-bottom: 4px;
}

.table-header span {
    font-size: 8px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 8px;
    padding: 6px 8px;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}

.table-row span {
    font-size: 9px;
    color: #333;
}

.table-row .amount {
    font-weight: 600;
    color: #1a1a2e;
}

.status-badge {
    font-size: 7px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.approved {
    background: #dcfce7;
    color: #16a34a;
}

.status-badge.pending {
    background: #fef3c7;
    color: #d97706;
}

/* SVG gradient for line chart */
.dashboard-preview svg defs {
    position: absolute;
}

/* Animation for bars */
.bar-chart .bar {
    animation: growBar 1s ease-out forwards;
    transform-origin: bottom;
}

@keyframes growBar {
    from {
        transform: scaleY(0);
    }
    to {
        transform: scaleY(1);
    }
}

.bar-chart .bar:nth-child(1) { animation-delay: 0.1s; }
.bar-chart .bar:nth-child(2) { animation-delay: 0.15s; }
.bar-chart .bar:nth-child(3) { animation-delay: 0.2s; }
.bar-chart .bar:nth-child(4) { animation-delay: 0.25s; }
.bar-chart .bar:nth-child(5) { animation-delay: 0.3s; }
.bar-chart .bar:nth-child(6) { animation-delay: 0.35s; }
.bar-chart .bar:nth-child(7) { animation-delay: 0.4s; }
.bar-chart .bar:nth-child(8) { animation-delay: 0.45s; }

/* ========================================
   V2: INTERACTIVE TABS
   ======================================== */

.dash-tab {
    cursor: pointer;
    user-select: none;
}

.dash-tab:hover:not(.active) {
    background: #f0f0f0;
}

.dash-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.dash-content.active {
    display: block;
}

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

/* Horizontal bar chart for Costos tab */
.bar-chart.horizontal {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: auto;
}

.h-bar-row {
    display: grid;
    grid-template-columns: 60px 1fr 45px;
    align-items: center;
    gap: 6px;
}

.h-bar-label {
    font-size: 8px;
    color: #666;
    text-align: right;
}

.h-bar-track {
    height: 12px;
    background: #f0f0f0;
    border-radius: 6px;
    overflow: hidden;
}

.h-bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.8s ease;
}

.h-bar-value {
    font-size: 9px;
    font-weight: 600;
    color: #333;
}

/* Big number for Costos */
.big-number {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1;
}

.chart-value.negative {
    color: #ef4444;
}

/* Detail view for Detalle tab */
.dash-detail-view {
    padding: 12px;
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.detail-badge {
    font-size: 8px;
    padding: 2px 6px;
    background: #7c3aed;
    color: white;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
}

.detail-id {
    font-size: 12px;
    font-weight: 700;
    color: #1a1a2e;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.detail-item {
    background: #fafafa;
    padding: 8px;
    border-radius: 6px;
}

.detail-label {
    display: block;
    font-size: 8px;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.detail-value {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #333;
}

.detail-value.highlight {
    color: #16a34a;
    font-size: 13px;
}

.detail-actions {
    display: flex;
    gap: 6px;
}

.action-btn {
    flex: 1;
    padding: 6px;
    text-align: center;
    font-size: 9px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    background: #f0f0f0;
    color: #666;
}

.action-btn.primary {
    background: #16a34a;
    color: white;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* ========================================
   V2: SIDEBAR SECTIONS
   ======================================== */

.section-panel {
    display: none;
}

.section-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.sidebar-item {
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-item:hover:not(.active) {
    background: rgba(0,0,0,0.03);
}

/* Search box */
.search-box {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 9px;
    color: #999;
}

.search-icon {
    opacity: 0.5;
}

/* Documents Section */
.docs-list {
    padding: 8px 12px;
}

.doc-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s;
}

.doc-item:hover {
    background: #f8f8f8;
}

.doc-thumb {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    color: white;
}

.doc-thumb.pdf { background: linear-gradient(135deg, #ef4444, #dc2626); }
.doc-thumb.excel { background: linear-gradient(135deg, #22c55e, #16a34a); }
.doc-thumb.image { background: linear-gradient(135deg, #3b82f6, #2563eb); }

.doc-thumb::after {
    font-size: 8px;
}
.doc-thumb.pdf::after { content: 'PDF'; }
.doc-thumb.excel::after { content: 'XLS'; }
.doc-thumb.image::after { content: 'IMG'; }

.doc-info {
    flex: 1;
}

.doc-title {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.doc-meta {
    font-size: 8px;
    color: #999;
}

.doc-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.doc-status-dot.processed { background: #22c55e; }
.doc-status-dot.pending { background: #f59e0b; }

/* AI Agents Section */
.status-pill {
    font-size: 8px;
    padding: 3px 8px;
    border-radius: 10px;
    background: #dcfce7;
    color: #16a34a;
    font-weight: 600;
}

.status-pill.active { background: #dcfce7; color: #16a34a; }

.agents-list {
    padding: 8px 12px;
}

.agent-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 6px;
    margin-bottom: 6px;
    background: #fafafa;
}

.agent-avatar {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.agent-info {
    flex: 1;
}

.agent-name {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: #333;
}

.agent-desc {
    font-size: 8px;
    color: #888;
}

.agent-status {
    font-size: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.agent-status.running { color: #16a34a; }
.agent-status.idle { color: #999; }

.pulse-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.agent-stats {
    display: flex;
    gap: 12px;
    padding: 8px 12px;
    background: #f5f5f5;
    margin: 0 12px 12px;
    border-radius: 6px;
}

.agent-stat {
    text-align: center;
    flex: 1;
}

.stat-num {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #7c3aed;
}

.dashboard-preview .stat-label {
    font-size: 8px;
    color: #888;
}

/* Workflows Section */
.add-btn {
    font-size: 9px;
    padding: 4px 8px;
    background: #7c3aed;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

.workflow-list {
    padding: 8px 12px;
}

.workflow-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 6px;
    background: #fafafa;
    border-left: 3px solid transparent;
}

.workflow-item:hover {
    border-left-color: #7c3aed;
}

.workflow-icon {
    font-size: 16px;
}

.workflow-info {
    flex: 1;
}

.workflow-name {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.workflow-flow {
    display: flex;
    align-items: center;
    gap: 4px;
}

.flow-step {
    font-size: 7px;
    padding: 2px 5px;
    background: #e0e7ff;
    color: #4f46e5;
    border-radius: 3px;
}

.flow-arrow {
    font-size: 8px;
    color: #ccc;
}

.workflow-badge {
    font-size: 7px;
    padding: 2px 6px;
    border-radius: 8px;
    background: #f0f0f0;
    color: #888;
}

.workflow-badge.active {
    background: #dcfce7;
    color: #16a34a;
}

/* Payments Section */
.payments-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    margin: 0 12px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border-radius: 8px;
    color: white;
}

.payment-label {
    display: block;
    font-size: 8px;
    opacity: 0.8;
}

.payment-amount {
    font-size: 18px;
    font-weight: 700;
}

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

.count-num {
    display: block;
    font-size: 20px;
    font-weight: 700;
}

.count-label {
    font-size: 8px;
    opacity: 0.8;
}

.payments-list {
    padding: 8px 12px;
}

.payment-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 6px;
    margin-bottom: 4px;
}

.payment-item:hover {
    background: #f8f8f8;
}

.payment-item.urgent {
    background: #fef2f2;
}

.payment-info {
    flex: 1;
}

.payment-vendor {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: #333;
}

.payment-due {
    font-size: 8px;
    color: #888;
}

.payment-due.urgent {
    color: #ef4444;
    font-weight: 600;
}

.payment-amt {
    font-size: 11px;
    font-weight: 700;
    color: #333;
}

.pay-btn {
    font-size: 8px;
    padding: 4px 8px;
    background: #22c55e;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

.pay-btn.urgent {
    background: #ef4444;
    animation: pulse 1s infinite;
}

/* ========================================
   V3: CUSTOM CURSOR
   ======================================== */

.cursor-dot,
.cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary);
    transition: all 0.15s ease-out;
}

.cursor-outline.cursor-hover {
    transform: scale(1.5);
    background: rgba(242, 92, 84, 0.1);
}

/* ========================================
   V3: PRICING SECTION
   ======================================== */

.pricing-section {
    padding: var(--space-5xl) 0;
    background: var(--bg-light);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-white);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.pricing-card.popular {
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.pricing-card.popular::before {
    content: 'Más Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: var(--font-size-xs);
    font-weight: 600;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-8px);
}

.pricing-name {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.pricing-price {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.pricing-price span {
    font-size: var(--font-size-base);
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-desc {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
}

.pricing-features {
    list-style: none;
    margin-bottom: var(--space-xl);
}

.pricing-features li {
    padding: var(--space-sm) 0;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.pricing-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: 600;
}

.pricing-card .btn {
    width: 100%;
    justify-content: center;
}

/* ========================================
   V3: FAQ ACCORDION
   ======================================== */

.faq-section {
    padding: var(--space-5xl) 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    padding: var(--space-lg) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: var(--space-lg);
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   V3: BEFORE/AFTER COMPARISON
   ======================================== */

.comparison-section {
    padding: var(--space-5xl) 0;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-xl);
    align-items: stretch;
    max-width: 1000px;
    margin: 0 auto;
}

.comparison-card {
    padding: var(--space-2xl);
    border-radius: var(--radius-2xl);
    position: relative;
}

.comparison-card.before {
    background: #fef2f2;
    border: 2px solid #fecaca;
}

.comparison-card.after {
    background: #f0fdf4;
    border: 2px solid #bbf7d0;
}

.comparison-label {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: var(--font-size-xs);
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

.comparison-card.before .comparison-label {
    background: #ef4444;
    color: white;
}

.comparison-card.after .comparison-label {
    background: #22c55e;
    color: white;
}

.comparison-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-lg);
}

.comparison-list {
    list-style: none;
}

.comparison-list li {
    padding: var(--space-sm) 0;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-sm);
}

.comparison-card.before .comparison-list li::before {
    content: '✗';
    color: #ef4444;
    font-weight: bold;
}

.comparison-card.after .comparison-list li::before {
    content: '✓';
    color: #22c55e;
    font-weight: bold;
}

.comparison-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
}

/* Comparison Slider Style */
.comparison-slider {
    display: flex;
    position: relative;
    max-width: 1000px;
    margin: var(--space-2xl) auto 0;
    height: 400px;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.comparison-before,
.comparison-after {
    flex: 1;
    position: relative;
}

.comparison-before {
    width: 50%;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    overflow: hidden;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 2;
}

.comparison-after {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
}

.comparison-content {
    padding: var(--space-2xl);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.comparison-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: var(--space-lg);
    width: fit-content;
}

.comparison-badge.before {
    background: #ef4444;
    color: white;
}

.comparison-badge.after {
    background: #22c55e;
    color: white;
}

.comparison-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Chaos Desk Visual */
.chaos-desk {
    position: relative;
    width: 200px;
    height: 150px;
}

.paper-stack {
    position: relative;
    width: 100%;
    height: 100%;
}

.paper {
    position: absolute;
    background: white;
    padding: 8px 12px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-size: 10px;
    color: var(--text-secondary);
    border: 1px solid #e5e7eb;
}

.paper:nth-child(1) { top: 0; left: 20px; }
.paper:nth-child(2) { top: 25px; left: 60px; transform: rotate(-5deg); }
.paper:nth-child(3) { top: 50px; left: 30px; transform: rotate(3deg); }
.paper:nth-child(4) { top: 75px; left: 80px; transform: rotate(-8deg); }
.paper:nth-child(5) { top: 100px; left: 45px; background: #fef2f2; color: #ef4444; font-weight: bold; }

.paper.tilted { transform: rotate(-5deg); }
.paper.tilted-right { transform: rotate(5deg); }

.chaos-icons {
    position: absolute;
    bottom: 0;
    right: 0;
    display: flex;
    gap: 4px;
}

.chaos-icon {
    font-size: 20px;
    opacity: 0.6;
}

/* Clean Dashboard Visual */
.clean-dashboard {
    background: white;
    border-radius: var(--radius-lg);
    width: 200px;
    height: 140px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.mini-sidebar {
    width: 40px;
    background: #1a1a2e;
}

.mini-content {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mini-chart {
    height: 50px;
    background: linear-gradient(90deg, var(--primary-light) 0%, var(--primary) 100%);
    border-radius: 4px;
    opacity: 0.3;
}

.mini-rows {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mini-row {
    background: #f3f4f6;
    height: 16px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    padding: 0 8px;
}

.check-green {
    color: #22c55e;
    font-size: 10px;
    font-weight: bold;
}

/* Comparison List in Slider */
.comparison-slider .comparison-list {
    list-style: none;
    margin-top: auto;
}

.comparison-slider .comparison-list li {
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size-sm);
}

.comparison-slider .comparison-list li svg {
    flex-shrink: 0;
}

.comparison-slider .comparison-list li.negative svg {
    color: #ef4444;
}

.comparison-slider .comparison-list li.positive svg {
    color: #22c55e;
}

/* Comparison Divider */
.comparison-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: white;
    z-index: 10;
    cursor: ew-resize;
    transform: translateX(-50%);
}

.divider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    color: var(--text-secondary);
}

.divider-handle svg {
    transform: rotate(90deg);
}

.comparison-slider.resizing {
    user-select: none;
}

/* ========================================
   V3: MEGA MENU
   ======================================== */

.nav-item-mega {
    position: relative;
}

.nav-link-mega {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link-mega svg {
    transition: transform 0.2s ease;
}

.nav-item-mega:hover .nav-link-mega svg {
    transform: rotate(180deg);
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: -200px;
    transform: translateY(10px);
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    min-width: 700px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.nav-item-mega:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.mega-menu-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.mega-col {
    padding: var(--space-lg);
    border-right: 1px solid var(--border-light);
}

.mega-col:last-child {
    border-right: none;
}

.mega-col.mega-highlight {
    background: linear-gradient(135deg, #fff5f0 0%, #fff9f7 100%);
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
}

.mega-title {
    display: block;
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.mega-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-sm);
    border-radius: var(--radius-md);
    transition: background 0.2s ease;
    margin-bottom: 4px;
}

.mega-item:hover {
    background: var(--bg-light);
}

.mega-item svg {
    flex-shrink: 0;
    width: 20px !important;
    height: 20px !important;
    color: var(--primary);
}

.mega-item-title {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.mega-item-desc {
    display: block;
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

.mega-cta {
    background: var(--bg-white);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.mega-cta-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-sm);
}

.mega-cta h4 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-sm);
}

.mega-cta p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.btn-sm {
    padding: 8px 16px;
    font-size: var(--font-size-sm);
}

/* ========================================
   V3: VIDEO MODAL
   ======================================== */

.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.video-modal-content {
    width: 90%;
    max-width: 900px;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--radius-xl);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.video-modal.active .video-modal-content {
    transform: scale(1);
}

.video-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* ========================================
   V3: LIVE COUNTER
   ======================================== */

.live-counter {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    color: #16a34a;
    margin-top: var(--space-lg);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.live-text {
    font-weight: 600;
}

.live-count {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #15803d;
}

.live-label {
    color: #16a34a;
}

/* ========================================
   V3: REVIEW BADGES
   ======================================== */

.review-badges {
    display: flex;
    gap: var(--space-md);
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: var(--space-lg);
}

.review-badge {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 6px 14px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
    font-size: var(--font-size-sm);
}

.review-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.review-badge .stars {
    display: flex;
    gap: 1px;
}

.review-badge .stars svg {
    width: 12px;
    height: 12px;
    color: #fbbf24;
}

.badge-text {
    color: var(--text-secondary);
    font-weight: 500;
}

.badge-icon-img {
    height: 18px;
    width: auto;
    opacity: 0.9;
}

.badge-icon-text {
    font-size: 16px;
}

/* ========================================
   V3: ANIMATED LOGOS
   ======================================== */

/* Logos Marquee Animation */
.logos-marquee {
    overflow: hidden;
    position: relative;
    margin: var(--space-xl) 0;
}

.logos-marquee::before,
.logos-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.logos-marquee::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-white) 0%, transparent 100%);
}

.logos-marquee::after {
    right: 0;
    background: linear-gradient(90deg, transparent 0%, var(--bg-white) 100%);
}

.logos-track {
    display: flex;
    gap: var(--space-3xl);
    animation: scrollLogos 25s linear infinite;
    width: max-content;
    align-items: center;
}

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

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

.logos-marquee .logo-item {
    flex-shrink: 0;
    height: 40px;
    display: flex;
    align-items: center;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    filter: grayscale(100%);
}

.logos-marquee .logo-item:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.logos-marquee .logo-item img {
    height: 100%;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

.logos-marquee .logo-ambev img { transform: scale(1.4); }
.logos-marquee .logo-lartirigoyen img { transform: scale(1.3); }
.logos-marquee .logo-47street img { transform: scale(1.1); }
.logos-marquee .logo-dreamco img { transform: scale(0.9); }

/* Responsive */
@media (max-width: 968px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .pricing-card.popular {
        transform: none;
    }

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

    .comparison-arrow {
        transform: rotate(90deg);
    }

    .mega-menu {
        display: none;
    }
}

/* ========================================
   MOBILE MENU FIX - Ensure menu displays
   ======================================== */
@media (max-width: 768px) {
    .nav-links.active {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: #FFFFFF;
        padding: 1.5rem;
        box-shadow: 0 10px 40px rgba(0,0,0,0.1);
        border-top: 1px solid #F0F4F8;
        gap: 1rem;
        z-index: 1000;
    }

    .nav-links.active a {
        padding: 0.5rem 0;
        font-size: 1rem;
        color: #0A0A0A;
    }

    .nav-links.active .nav-link-mega {
        display: block;
    }

    .nav-links.active .mega-menu {
        display: none !important;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}
