/* Latent Bud - Compound AI Inference System Styles */

/* ============================================
   DESIGN TOKENS - CSS CUSTOM PROPERTIES
   ============================================ */

:root {
    /* Color Palette - Primary */
    --color-primary: #8B5CF6;
    --color-primary-hover: #7C3AED;
    --color-primary-light: #A855F7;
    --color-primary-dark: #6D28D9;
    --color-primary-bg: rgba(139, 92, 246, 0.08);
    --color-primary-border: rgba(139, 92, 246, 0.2);
    --color-primary-glow: rgba(139, 92, 246, 0.15);

    /* Color Palette - Text */
    --color-text-primary: #1a1a1a;
    --color-text-secondary: #555555;
    --color-text-tertiary: #888888;
    --color-text-inverse: #ffffff;

    /* Color Palette - Backgrounds */
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #f9f8f4;
    --color-bg-accent: #F5EBFB;
    --color-bg-dark: #1F2937;

    /* Color Palette - Status */
    --color-success: #22C55E;
    --color-error: #EF4444;
    --color-warning: #F59E0B;

    /* Color Palette - Borders */
    --color-border-light: rgba(0, 0, 0, 0.06);
    --color-border-medium: rgba(0, 0, 0, 0.1);

    /* Spacing Scale */
    --space-xs: 0.5rem;    /* 8px */
    --space-sm: 1rem;      /* 16px */
    --space-md: 1.5rem;    /* 24px */
    --space-lg: 2rem;      /* 32px */
    --space-xl: 3rem;      /* 48px */
    --space-2xl: 4rem;     /* 64px */

    /* Border Radius */
    --radius-sm: 0.25rem;  /* 4px */
    --radius-md: 0.5rem;   /* 8px */
    --radius-lg: 1rem;     /* 16px */
    --radius-xl: 1.5rem;   /* 24px */
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
    --shadow-purple: 0 12px 40px rgba(139, 92, 246, 0.15);

    /* Typography - Font Sizes (with clamp for responsiveness) */
    --font-size-xs: clamp(0.75rem, 0.7vw, 0.875rem);
    --font-size-sm: clamp(0.875rem, 0.85vw, 1rem);
    --font-size-base: clamp(1rem, 1vw, 1.125rem);
    --font-size-lg: clamp(1.125rem, 1.2vw, 1.25rem);
    --font-size-xl: clamp(1.25rem, 1.5vw, 1.5rem);
    --font-size-2xl: clamp(1.5rem, 2vw, 2rem);
    --font-size-3xl: clamp(2rem, 2.5vw, 2.5rem);
    --font-size-4xl: clamp(2.5rem, 3vw, 3rem);
    --font-size-hero: clamp(2.5rem, 4vw, 4rem);

    /* Typography - Font Weights */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Typography - Line Heights */
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.7;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Z-Index Scale */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-modal: 1000;
}

/* ============================================
   SCROLL-TRIGGERED ANIMATIONS
   ============================================ */

/* Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes arrowPulse {
    0%, 100% {
        opacity: 0.5;
        transform: translateX(0);
    }
    50% {
        opacity: 1;
        transform: translateX(5px);
    }
}

@keyframes resultGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0);
    }
    50% {
        box-shadow: 0 0 20px 5px rgba(139, 92, 246, 0.2);
    }
}

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

/* Animation Utility Classes */
.latent_animate_on_scroll {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.latent_animate_on_scroll.latent_animated {
    opacity: 1;
}

/* Fade In Up Animation */
.latent_animate_fade_up {
    opacity: 0;
    transform: translateY(40px);
}

.latent_animate_fade_up.latent_animated {
    animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Fade In Left Animation */
.latent_animate_fade_left {
    opacity: 0;
    transform: translateX(-40px);
}

.latent_animate_fade_left.latent_animated {
    animation: fadeInLeft 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Fade In Right Animation */
.latent_animate_fade_right {
    opacity: 0;
    transform: translateX(40px);
}

.latent_animate_fade_right.latent_animated {
    animation: fadeInRight 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Scale In Animation */
.latent_animate_scale {
    opacity: 0;
    transform: scale(0.9);
}

.latent_animate_scale.latent_animated {
    animation: scaleIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Slide In From Bottom Animation */
.latent_animate_slide_up {
    opacity: 0;
    transform: translateY(60px);
}

.latent_animate_slide_up.latent_animated {
    animation: slideInFromBottom 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Animation Delays */
.latent_animate_delay_1 { animation-delay: 0.1s !important; }
.latent_animate_delay_2 { animation-delay: 0.2s !important; }
.latent_animate_delay_3 { animation-delay: 0.3s !important; }
.latent_animate_delay_4 { animation-delay: 0.4s !important; }
.latent_animate_delay_5 { animation-delay: 0.5s !important; }
.latent_animate_delay_6 { animation-delay: 0.6s !important; }

/* Page Wrapper */
.latent_main {
    background-color: #f9f8f4;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Global section centering */
.latent_main > section {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* ============================================
   SECTION 1: HERO
   ============================================ */
.latent_hero {
    position: relative;
    background: #0a0a0a;
    padding: 10vw 11.3vw 6vw 11.3vw;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Animated Gradient Blobs */
.latent_hero_blobs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.latent_blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
}

.latent_blob--1 {
    width: 40vw;
    height: 40vw;
    background: rgba(140, 80, 200, 0.7);
    top: -10%;
    left: -10%;
    animation: blob1 14s ease-in-out infinite;
}

.latent_blob--2 {
    width: 35vw;
    height: 35vw;
    background: rgba(100, 120, 220, 0.65);
    top: 20%;
    right: -5%;
    animation: blob2 16s ease-in-out infinite;
}

.latent_blob--3 {
    width: 30vw;
    height: 30vw;
    background: rgba(180, 100, 200, 0.5);
    bottom: 10%;
    left: 20%;
    animation: blob3 12s ease-in-out infinite;
}

.latent_blob--4 {
    width: 25vw;
    height: 25vw;
    background: rgba(60, 100, 180, 0.6);
    bottom: -5%;
    right: 25%;
    animation: blob4 15s ease-in-out infinite;
}

@keyframes blob1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(5vw, 3vw) scale(1.1); }
    66% { transform: translate(-3vw, 5vw) scale(0.95); }
}

@keyframes blob2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-4vw, 4vw) scale(1.05); }
    66% { transform: translate(3vw, -3vw) scale(0.9); }
}

@keyframes blob3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(6vw, -4vw) scale(1.15); }
}

@keyframes blob4 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-5vw, 3vw) scale(1.1); }
}

/* Hero Content */
.latent_hero_content {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.latent_hero_badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2vw;
    padding: 0.5vw 1.5vw;
    font-size: 0.85vw;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2vw;
    backdrop-filter: blur(10px);
}

.latent_hero_title {
    font-size: 4vw;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 1.5vw;
    line-height: 1.2;
}

.latent_hero_title em {
    font-family: 'Times New Roman', Times, serif;
    font-style: italic;
    font-weight: 400;
}

.latent_hero_subtitle {
    font-size: 1.2vw;
    color: rgba(255, 255, 255, 0.7);
    max-width: 50vw;
    margin: 0 auto 3vw auto;
    line-height: 1.6;
}

.latent_hero_cta {
    display: flex;
    justify-content: center;
    gap: 1.2vw;
    margin-bottom: 5vw;
}

.latent_btn_primary {
    display: inline-block;
    background: #ffffff;
    color: #0a0a0a;
    padding: 0.9vw 2.2vw;
    border-radius: 0.5vw;
    font-size: 0.95vw;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #ffffff;
}

.latent_btn_primary:hover {
    background: transparent;
    color: #ffffff;
}

.latent_btn_secondary {
    display: inline-block;
    background: transparent;
    color: #ffffff;
    padding: 0.9vw 2.2vw;
    border-radius: 0.5vw;
    font-size: 0.95vw;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.latent_btn_secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Pipeline Visualization */
.latent_pipeline {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5vw;
    margin-top: 4vw;
    flex-wrap: wrap;
}

.latent_pipeline_stage {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.8vw;
    padding: 1vw 1.5vw;
    text-align: center;
    transition: all 0.3s ease;
}

.latent_pipeline_stage:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.latent_pipeline_stage_icon {
    font-size: 1.5vw;
    margin-bottom: 0.3vw;
    color: white;
}

.latent_pipeline_stage_label {
    font-size: 0.75vw;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.latent_pipeline_arrow {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.2vw;
}

/* ============================================
   SECTION 2: KEY STATS
   ============================================ */
.latent_stats {
    padding: 0 11.3vw;
    margin-top: -3vw;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}

.latent_stats_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5vw;
    width: 100%;
    max-width: 100%;
}

.latent_stat_card {
    background: #ffffff;
    border-radius: 1vw;
    padding: 2vw;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.latent_stat_card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.latent_stat_card:hover .latent_stat_value {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.latent_stat_card:hover .latent_stat_value img {
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.latent_stat_value {
    font-size: 2.5vw;
    font-weight: 600;
    color: #8B5CF6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5vw;
}

.latent_stat_value img {
    width: 1.5vw;
}

.latent_stat_label {
    font-size: 0.9vw;
    color: #555;
    margin-top: 0.5vw;
}

.latent_stat_desc {
    font-size: 0.75vw;
    color: #888;
    margin-top: 0.3vw;
}

/* ============================================
   SECTION 3: ARCHITECTURE (Enhanced with Animations)
   ============================================ */

/* Keyframe Animations */
@keyframes archSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes flowPulse {
    0% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: -20;
    }
}

@keyframes particleFlow {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(60px);
        opacity: 0;
    }
}

@keyframes corePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4);
    }
    50% {
        box-shadow: 0 0 20px 5px rgba(139, 92, 246, 0.3);
    }
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(139, 92, 246, 0.1);
    }
    50% {
        box-shadow: 0 4px 25px rgba(139, 92, 246, 0.25);
    }
}

@keyframes connectorGlow {
    0%, 100% {
        stroke: rgba(139, 92, 246, 0.3);
    }
    50% {
        stroke: rgba(139, 92, 246, 0.6);
    }
}

.latent_architecture {
    padding: 4vw 3vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.latent_architecture_wrap {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4vw;
    align-items: center;
}

.latent_architecture_content h2 {
    font-size: 2.5vw;
    font-weight: 500;
    margin-bottom: 1.5vw;
    line-height: 1.3;
}

.latent_architecture_content p {
    font-size: 1vw;
    color: #555;
    line-height: 1.7;
}

/* Enhanced Flow Diagram Container */
.latent_architecture_diagram {
    background: linear-gradient(135deg, rgba(245, 235, 249, 0.9) 0%, rgba(252, 244, 255, 0.9) 100%);
    backdrop-filter: blur(10px);
    border-radius: 1.5vw;
    padding: 2.5vw;
    position: relative;
    border: 1px solid rgba(139, 92, 246, 0.15);
}

/* Flow Diagram Structure */
.latent_arch_flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    position: relative;
}

/* Individual Architecture Nodes */
.latent_arch_node {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 1vw;
    padding: 1.2vw 1.5vw;
    width: 100%;
    border: 1px solid rgba(139, 92, 246, 0.15);
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: archSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.08);
}

.latent_arch_node:nth-child(1) { animation-delay: 0s; }
.latent_arch_node:nth-child(3) { animation-delay: 0.15s; }
.latent_arch_node:nth-child(5) { animation-delay: 0.3s; }
.latent_arch_node:nth-child(7) { animation-delay: 0.45s; }
.latent_arch_node:nth-child(9) { animation-delay: 0.6s; }

.latent_arch_node:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
}

/* Node Header with Icon */
.latent_arch_node_header {
    display: flex;
    align-items: center;
    gap: 0.6vw;
    margin-bottom: 0.7vw;
}

.latent_arch_node_icon {
    width: 1.8vw;
    height: 1.8vw;
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 100%);
    border-radius: 0.4vw;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.latent_arch_node_icon svg {
    width: 1vw;
    height: 1vw;
    stroke: #ffffff;
}

.latent_arch_node_title {
    font-size: 0.85vw;
    font-weight: 600;
    color: #8B5CF6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Node Content Tags */
.latent_arch_node_items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5vw;
}

.latent_arch_item {
    background: linear-gradient(135deg, #f9f8f4 0%, #f5f0fa 100%);
    padding: 0.4vw 0.8vw;
    border-radius: 0.4vw;
    font-size: 0.75vw;
    color: #333;
    border: 1px solid rgba(139, 92, 246, 0.1);
    transition: all 0.2s ease;
}

.latent_arch_item:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
}

/* SVG Flow Connectors */
.latent_arch_connector {
    width: 100%;
    height: 2.5vw;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.latent_arch_connector svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.latent_arch_connector_line {
    stroke: rgba(139, 92, 246, 0.3);
    stroke-width: 2;
    stroke-dasharray: 8, 4;
    fill: none;
    animation: flowPulse 1s linear infinite;
}

.latent_arch_connector_glow {
    stroke: rgba(139, 92, 246, 0.15);
    stroke-width: 6;
    fill: none;
    filter: blur(2px);
    animation: connectorGlow 2s ease-in-out infinite;
}

/* Data Flow Particles */
.latent_arch_particles {
    position: absolute;
    left: 50%;
    top: 0;
    width: 8px;
    height: 100%;
    pointer-events: none;
}

.latent_arch_particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #8B5CF6;
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px 2px rgba(139, 92, 246, 0.6);
    animation: particleFlow 2s linear infinite;
}

.latent_arch_particle:nth-child(1) { animation-delay: 0s; }
.latent_arch_particle:nth-child(2) { animation-delay: 0.5s; }
.latent_arch_particle:nth-child(3) { animation-delay: 1s; }

/* Special Core Node Styling */
.latent_arch_node--core {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(168, 85, 247, 0.08) 100%);
    border-color: rgba(139, 92, 246, 0.3);
    animation: archSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards, corePulse 2.5s ease-in-out infinite;
    animation-delay: 0.3s, 0.9s;
}

.latent_arch_node--core .latent_arch_node_icon {
    background: linear-gradient(135deg, #7C3AED 0%, #8B5CF6 100%);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

.latent_arch_node--core .latent_arch_node_title {
    color: #7C3AED;
}

.latent_arch_node--core::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
    border-radius: 1.1vw;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.latent_arch_node--core:hover::before {
    opacity: 1;
}

/* Legacy support - keep old class names working */
.latent_arch_layer {
    background: #ffffff;
    border-radius: 1vw;
    padding: 1.2vw 1.5vw;
    margin-bottom: 1vw;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.latent_arch_layer:last-child {
    margin-bottom: 0;
}

.latent_arch_layer_title {
    font-size: 0.85vw;
    font-weight: 600;
    color: #8B5CF6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.7vw;
}

.latent_arch_layer_items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5vw;
}

/* ============================================
   SECTION 4: MULTI-MODAL CAPABILITIES
   ============================================ */
.latent_capabilities {
    padding: 6vw 11.3vw;
    background: #f5ebf9;
}

.latent_section_header {
    text-align: center;
    margin-bottom: 4vw;
}

.latent_section_header h2 {
    font-size: 2.5vw;
    font-weight: 500;
    margin-bottom: 1vw;
}

.latent_section_header p {
    font-size: 1vw;
    color: #555;
    max-width: 40vw;
    margin: 0 auto;
}

.latent_capabilities_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2vw;
}

.latent_capability_card {
    background: #ffffff;
    border-radius: 1.2vw;
    padding: 2.5vw;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.latent_capability_card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.18);
    border: 1px solid rgba(139, 92, 246, 0.15);
}

.latent_capability_card:hover .latent_capability_number {
    transform: scale(1.1);
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
    transition: all 0.3s ease;
}

.latent_capability_number {
    font-size: 3vw;
    font-weight: 600;
    color: #8B5CF6;
    margin-bottom: 0.5vw;
}

.latent_capability_title {
    font-size: 1.3vw;
    font-weight: 500;
    margin-bottom: 1vw;
}

.latent_capability_list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5vw;
}

.latent_capability_tag {
    background: #f5ebf9;
    padding: 0.4vw 0.9vw;
    border-radius: 0.4vw;
    font-size: 0.8vw;
    color: #555;
}

/* ============================================
   SECTION 5: MODEL COVERAGE
   ============================================ */
.latent_models {
    padding: 8vw 11.3vw;
}

.latent_models_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5vw;
    margin-top: 3vw;
}

.latent_model_card {
    background: #fcf4ff;
    border-radius: 1.2vw;
    padding: 2vw;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.latent_model_card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.25);
}

.latent_model_card:hover .latent_model_card_icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.latent_model_card:hover .latent_model_card_icon svg {
    stroke: #7C3AED;
}

.latent_model_card_icon {
    width: 3vw;
    height: 3vw;
    background: #ffffff;
    border-radius: 0.8vw;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2vw;
}

.latent_model_card_icon svg {
    width: 1.5vw;
    height: 1.5vw;
}

.latent_model_card h4 {
    font-size: 1.2vw;
    font-weight: 500;
    margin-bottom: 0.8vw;
}

.latent_model_card_models {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4vw;
}

.latent_model_name {
    background: #ffffff;
    padding: 0.3vw 0.6vw;
    border-radius: 0.3vw;
    font-size: 0.7vw;
    color: #666;
}

/* ============================================
   SECTION 6: USE CASES
   ============================================ */
.latent_usecases {
    padding: 6vw 11.3vw;
    background: #f9f4ea;
}

.latent_usecases_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5vw;
    margin-top: 3vw;
}

.latent_usecase_card {
    background: #ffffff;
    border-radius: 1.2vw;
    padding: 2vw;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.latent_usecase_card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.latent_usecase_card:hover .latent_usecase_icon {
    transform: scale(1.15);
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 100%);
    transition: all 0.3s ease;
}

.latent_usecase_card:hover .latent_usecase_icon svg {
    stroke: #ffffff;
}

/* Use Case Card Icon */
.latent_usecase_icon {
    width: 3vw;
    height: 3vw;
    background: #f5ebf9;
    border-radius: 0.8vw;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2vw;
    transition: all 0.3s ease;
}

.latent_usecase_icon svg {
    width: 1.5vw;
    height: 1.5vw;
    stroke: #8B5CF6;
    stroke-width: 1.5;
    fill: none;
    transition: all 0.3s ease;
}

.latent_usecase_card h4 {
    font-size: 1.2vw;
    font-weight: 500;
    margin-bottom: 1.2vw;
}

.latent_usecase_list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.latent_usecase_list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6vw;
    margin-bottom: 0.8vw;
    font-size: 0.9vw;
    color: #555;
}

.latent_usecase_list li svg {
    width: 1.1vw;
    height: 1.1vw;
    flex-shrink: 0;
    margin-top: 0.1vw;
}

/* ============================================
   SECTION 7: VALUE PROPS (WHY LATENT)
   ============================================ */
.latent_valueprops {
    padding: 8vw 11.3vw;
}

.latent_valueprop_row {
    display: grid;
    grid-template-columns: 1fr 0.1fr 1fr 0.1fr 1fr;
    gap: 1.5vw;
    align-items: center;
    padding: 1.8vw 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.latent_valueprop_row:last-child {
    border-bottom: none;
}

.latent_valueprop_col {
    padding: 0 1vw;
}

.latent_valueprop_label {
    font-size: 0.75vw;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.3vw;
}

.latent_valueprop_text {
    font-size: 1vw;
    font-weight: 500;
}

.latent_valueprop_arrow {
    color: #8B5CF6;
    font-size: 1.5vw;
    text-align: center;
    opacity: 0.5;
    transition: all 0.3s ease;
}

/* Value Props Arrow Animation */
.latent_valueprop_row.latent_animated .latent_valueprop_arrow {
    animation: arrowPulse 1.5s ease-in-out infinite;
}

.latent_valueprop_row.latent_animated .latent_valueprop_result {
    animation: resultGlow 2s ease-in-out infinite;
}

.latent_valueprop_row:hover .latent_valueprop_arrow {
    opacity: 1;
    transform: translateX(3px);
}

.latent_valueprop_row:hover .latent_valueprop_result {
    background: linear-gradient(135deg, #f5ebf9 0%, #ece4f5 100%);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15);
}

.latent_valueprop_result {
    background: #f5ebf9;
    border-radius: 0.8vw;
    padding: 1vw 1.5vw;
}

.latent_valueprop_result .latent_valueprop_text {
    color: #8B5CF6;
}

/* ============================================
   SECTION 8: BENCHMARKS
   ============================================ */
.latent_benchmarks {
    padding: 6vw 11.3vw;
    background: #f0e9f3;
}

.latent_benchmarks_tabs {
    display: flex;
    justify-content: center;
    gap: 0.5vw;
    margin-bottom: 3vw;
}

.latent_bench_tab {
    padding: 0.8vw 2vw;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.5vw;
    font-size: 0.9vw;
    cursor: pointer;
    transition: all 0.3s ease;
}

.latent_bench_tab:hover {
    background: rgba(139, 92, 246, 0.1);
}

.latent_bench_tab.active {
    background: #8B5CF6;
    color: #ffffff;
    border-color: #8B5CF6;
}

.latent_bench_content {
    display: none;
    text-align: center;
    padding: 3vw;
    background: #ffffff;
    border-radius: 1.5vw;
}

.latent_bench_content.active {
    display: block;
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Benchmark Tab Active Indicator */
.latent_bench_tab {
    position: relative;
    overflow: hidden;
}

.latent_bench_tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #8B5CF6;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.latent_bench_tab.active::after {
    width: 80%;
}

/* Benchmark Metric Animation */
.latent_bench_metric {
    transition: all 0.3s ease;
}

.latent_bench_metric.latent_counting {
    animation: countUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.latent_bench_metric {
    font-size: 5vw;
    font-weight: 600;
    color: #8B5CF6;
    margin-bottom: 1vw;
}

.latent_bench_desc {
    font-size: 1.1vw;
    color: #555;
    margin-bottom: 1.5vw;
}

.latent_bench_link {
    font-size: 0.85vw;
    color: #8B5CF6;
    text-decoration: none;
}

.latent_bench_link:hover {
    text-decoration: underline;
}

/* ============================================
   BENCHMARK CHARTS - SVG Based
   ============================================ */

/* Chart Wrapper */
.latent_bench_chart_wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3vw;
    align-items: center;
}

.latent_bench_chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.latent_bench_chart svg {
    width: 100%;
    max-width: 22vw;
    height: auto;
}

.latent_bench_chart_info {
    text-align: left;
}

.latent_bench_chart_info .latent_bench_metric {
    text-align: left;
    margin-bottom: 0.5vw;
}

.latent_bench_chart_info .latent_bench_desc {
    text-align: left;
    margin-bottom: 1vw;
}

/* Benchmark Highlight Badge */
.latent_bench_highlight {
    display: inline-flex;
    align-items: center;
    gap: 0.5vw;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(168, 85, 247, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 0.6vw;
    padding: 0.6vw 1.2vw;
    font-size: 0.85vw;
    color: #7C3AED;
    font-weight: 500;
}

.latent_bench_highlight_icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.latent_bench_highlight_icon svg {
    width: 1vw;
    height: 1vw;
    stroke: #8B5CF6;
}

/* Chart Bar Animations */
@keyframes barGrow {
    from {
        transform: scaleY(0);
        transform-origin: bottom;
    }
    to {
        transform: scaleY(1);
        transform-origin: bottom;
    }
}

@keyframes barGrowHorizontal {
    from {
        transform: scaleX(0);
        transform-origin: left;
    }
    to {
        transform: scaleX(1);
        transform-origin: left;
    }
}

@keyframes donutDraw {
    from {
        stroke-dashoffset: 439.82;
    }
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes gaugeArc {
    from {
        stroke-dashoffset: 251.33;
    }
    to {
        stroke-dashoffset: 12.57;
    }
}

.latent_chart_bar_animate {
    animation: barGrow 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    transform: scaleY(0);
    transform-origin: bottom;
}

.latent_chart_bar_horizontal {
    animation: barGrowHorizontal 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    transform: scaleX(0);
    transform-origin: left;
}

.latent_chart_bar_delay {
    animation-delay: 0.3s;
}

.latent_donut_animate {
    animation: donutDraw 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.latent_donut_delay {
    animation-delay: 0.5s;
}

.latent_gauge_animate {
    animation: gaugeArc 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    stroke-dashoffset: 251.33;
}

/* Donut Legend */
.latent_donut_legend {
    display: flex;
    flex-direction: column;
    gap: 0.5vw;
    margin-top: 1vw;
}

.latent_donut_legend_item {
    display: flex;
    align-items: center;
    gap: 0.5vw;
    font-size: 0.8vw;
    color: #555;
}

.latent_donut_legend_color {
    width: 0.8vw;
    height: 0.8vw;
    border-radius: 0.2vw;
    flex-shrink: 0;
}

/* Donut Chart Specific */
.latent_bench_chart_donut {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.latent_bench_chart_donut svg {
    max-width: 14vw;
}

/* ============================================
   ARCHITECTURE - Compact Horizontal Flow
   ============================================ */

.latent_architecture .latent_section_header {
    margin-bottom: 1.5vw;
}

/* Main Horizontal Flow Container */
.latent_arch_flow {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: center;
    gap: 1vw;
    padding: 2vw 4vw;
    margin-bottom: 3vw;
}

/* Flow Stage Cards */
.latent_arch_stage {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 1vw;
    padding: 1.5vw 1.2vw;
    text-align: center;
    flex: 0 0 auto;
    width: 10vw;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.latent_arch_stage::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 1vw 1vw 0 0;
}

.latent_arch_stage:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

/* Stage Icon */
.latent_arch_stage_icon {
    width: 2.5vw;
    height: 2.5vw;
    margin: 0 auto 0.8vw auto;
    background: linear-gradient(135deg, #f5ebf9, #ece4f5);
    border-radius: 0.6vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

.latent_arch_stage_icon svg {
    width: 1.3vw;
    height: 1.3vw;
    stroke: #8B5CF6;
}

/* Stage Title */
.latent_arch_stage h4 {
    font-size: 0.9vw;
    font-weight: 600;
    color: #374151;
    margin: 0 0 0.6vw 0;
}

/* Stage Tags */
.latent_arch_stage_tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.3vw;
    margin-bottom: 0.5vw;
}

.latent_arch_stage_tags span {
    background: #f9f8f4;
    padding: 0.25vw 0.5vw;
    border-radius: 0.3vw;
    font-size: 0.65vw;
    color: #666;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Stage Detail */
.latent_arch_stage_detail {
    font-size: 0.6vw;
    color: #9CA3AF;
    margin-top: 0.3vw;
}

/* Stage Color Variants */
.latent_arch_stage_input::before {
    background: linear-gradient(90deg, #06B6D4, #22D3EE);
}

.latent_arch_stage_input .latent_arch_stage_icon {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(34, 211, 238, 0.15));
}

.latent_arch_stage_input .latent_arch_stage_icon svg {
    stroke: #06B6D4;
}

.latent_arch_stage_preprocess::before {
    background: linear-gradient(90deg, #8B5CF6, #A855F7);
}

.latent_arch_stage_core::before {
    background: linear-gradient(90deg, #7C3AED, #8B5CF6, #A855F7);
    height: 4px;
}

.latent_arch_stage_core {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(168, 85, 247, 0.08));
    border: 2px solid rgba(139, 92, 246, 0.25);
    width: 12vw;
}

.latent_arch_stage_core:hover {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.25);
}

.latent_arch_stage_postprocess::before {
    background: linear-gradient(90deg, #EC4899, #F472B6);
}

.latent_arch_stage_postprocess .latent_arch_stage_icon {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(244, 114, 182, 0.15));
}

.latent_arch_stage_postprocess .latent_arch_stage_icon svg {
    stroke: #EC4899;
}

.latent_arch_stage_output::before {
    background: linear-gradient(90deg, #10B981, #34D399);
}

.latent_arch_stage_output .latent_arch_stage_icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(52, 211, 153, 0.15));
}

.latent_arch_stage_output .latent_arch_stage_icon svg {
    stroke: #10B981;
}

/* Flow Arrows */
.latent_arch_arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.latent_arch_arrow svg {
    width: 1.8vw;
    height: 1.8vw;
    stroke: rgba(139, 92, 246, 0.5);
    transition: all 0.3s ease;
}

/* Supporting Features Row */
.latent_arch_features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5vw;
    padding: 0 4vw;
}

.latent_arch_feature {
    display: flex;
    align-items: center;
    gap: 1vw;
    background: rgba(255, 255, 255, 0.8);
    padding: 1.2vw 1.5vw;
    border-radius: 0.8vw;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.latent_arch_feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.latent_arch_feature_icon {
    width: 2.5vw;
    height: 2.5vw;
    border-radius: 0.6vw;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.latent_arch_feature_icon svg {
    width: 1.3vw;
    height: 1.3vw;
}

.latent_arch_feature_icon_cache {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(251, 146, 60, 0.15));
}

.latent_arch_feature_icon_cache svg {
    stroke: #F97316;
}

.latent_arch_feature_icon_hardware {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(74, 222, 128, 0.15));
}

.latent_arch_feature_icon_hardware svg {
    stroke: #22C55E;
}

.latent_arch_feature_icon_plugin {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(244, 114, 182, 0.15));
}

.latent_arch_feature_icon_plugin svg {
    stroke: #EC4899;
}

.latent_arch_feature_icon_security {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(251, 191, 36, 0.15));
}

.latent_arch_feature_icon_security svg {
    stroke: #F59E0B;
}

.latent_arch_feature_content {
    display: flex;
    flex-direction: column;
    gap: 0.15vw;
}

.latent_arch_feature_content h5 {
    font-size: 0.85vw;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.latent_arch_feature_content span {
    font-size: 0.7vw;
    color: #9CA3AF;
}

.latent_arch_feature_content strong {
    font-size: 0.75vw;
    color: #7C3AED;
    font-weight: 600;
}

/* ============================================
   ARCHITECTURE - Interactive System
   ============================================ */

/* Hint text */
.latent_arch_hint {
    color: #8B5CF6;
    font-weight: 500;
}

/* Interactive Container - Side by Side Layout */
.latent_arch_interactive {
    display: grid;
    grid-template-columns: 2.5fr 1fr;  /* Diagram gets 71% vs sidebar 29% */
    gap: 1.5vw;
    align-items: stretch;
    width: 100%;
    max-width: 100%;   /* Full width */
    margin: 0;
    min-height: 75vh;  /* Taller to match sidebar */
}

.latent_arch_diagram {
    min-width: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
    height: 100%;  /* Ensures full grid cell height */
    padding: 0;
}

.latent_arch_interactive.active .latent_arch_diagram {
    /* No change needed - always visible */
}

/* Sidebar - Always Visible */
.latent_arch_sidebar {
    background: #f9f8f4;
    border-radius: 1vw;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;  /* Ensures full grid cell height */
}

.latent_arch_sidebar_header {
    padding: 1.5vw 1.5vw 1vw;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.latent_arch_sidebar_header h4 {
    font-size: 1.1vw;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 0.3vw 0;
}

.latent_arch_sidebar_hint {
    font-size: 0.75vw;
    color: #8B5CF6;
    font-weight: 500;
}

.latent_arch_sidebar_items {
    padding: 1vw;
    display: flex;
    flex-direction: column;
    gap: 0.6vw;
}

.latent_arch_sidebar_item {
    display: flex;
    align-items: center;
    gap: 0.8vw;
    padding: 1vw 1.2vw;
    background: #ffffff;
    border-radius: 0.6vw;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.latent_arch_sidebar_item:hover {
    border-color: rgba(139, 92, 246, 0.2);
}

.latent_arch_sidebar_item.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(168, 85, 247, 0.05) 100%);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

.latent_arch_sidebar_indicator {
    width: 0.5vw;
    height: 0.5vw;
    min-width: 6px;
    min-height: 6px;
    border-radius: 50%;
    background: #ccc;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.latent_arch_sidebar_item.active .latent_arch_sidebar_indicator {
    background: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.latent_arch_sidebar_item_content h5 {
    font-size: max(0.9vw, 12px);
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 0.2vw 0;
    transition: color 0.3s ease;
}

.latent_arch_sidebar_item.active .latent_arch_sidebar_item_content h5 {
    color: #8B5CF6;
}

.latent_arch_sidebar_item_content p {
    font-size: max(0.75vw, 10px);
    color: #666;
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.latent_arch_sidebar_detail {
    flex: 1;
    padding: 2vw;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 0.8vw;
}

/* Compact styles for sidebar detail content */
.latent_arch_sidebar_detail .latent_arch_detail_header {
    margin-bottom: 0.8vw;
    padding-right: 0;
    gap: 0.6vw;
}

.latent_arch_sidebar_detail .latent_arch_detail_icon {
    width: 2vw;
    height: 2vw;
    min-width: 28px;
    min-height: 28px;
}

.latent_arch_sidebar_detail .latent_arch_detail_icon svg {
    width: 1vw;
    height: 1vw;
    min-width: 14px;
    min-height: 14px;
}

.latent_arch_sidebar_detail .latent_arch_detail_title {
    font-size: max(1.2vw, 15px);
    margin-bottom: 0.2vw;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.latent_arch_sidebar_detail .latent_arch_detail_category {
    font-size: max(0.6vw, 9px);
    padding: 0.15vw 0.5vw;
}

.latent_arch_sidebar_detail .latent_arch_detail_desc {
    font-size: max(0.9vw, 13px);
    line-height: 1.5;
    margin-bottom: 0.8vw;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.latent_arch_sidebar_detail .latent_arch_detail_metrics {
    display: flex;
    flex-direction: column;
    gap: 0.6vw;
    margin-bottom: 0;
}

.latent_arch_sidebar_detail .latent_arch_detail_metric {
    padding: 0.8vw 1vw;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: 0.8vw;
}

.latent_arch_sidebar_detail .latent_arch_detail_metric_value {
    font-size: clamp(14px, 1.1vw, 18px);
    margin-bottom: 0;
    font-weight: 700;
    color: #8B5CF6;
    white-space: nowrap;
    flex-shrink: 0;
    order: 2;
}

.latent_arch_sidebar_detail .latent_arch_detail_metric_label {
    font-size: clamp(11px, 0.85vw, 14px);
    color: #333;
    font-weight: 500;
    flex: 1;
    order: 1;
}

/* Features list in sidebar detail */
.latent_arch_sidebar_detail .latent_arch_detail_features {
    margin: 0;
    padding-left: 1.2vw;
    font-size: max(0.75vw, 11px);
    color: #555;
    line-height: 1.6;
}

.latent_arch_sidebar_detail .latent_arch_detail_features li {
    margin-bottom: 0.3vw;
}

.latent_arch_sidebar_detail .latent_arch_detail_section {
    margin-top: 1vw;
    padding-top: 1vw;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.latent_arch_sidebar_detail .latent_arch_detail_section_title {
    font-size: max(0.8vw, 11px);
    font-weight: 600;
    color: #8B5CF6;
    margin-bottom: 0.5vw;
}

/* Legacy Detail Panel - Hidden on Desktop */
.latent_arch_detail {
    display: none;
    flex: 0 0 0;
    opacity: 0;
    overflow: hidden;
    background: #f9f8f4;
    border-radius: 1vw;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    max-height: 600px;
    overflow-y: auto;
}

.latent_arch_interactive.active .latent_arch_detail {
    flex: 0 0 30%;
    opacity: 1;
    padding: 2vw;
}

.latent_arch_detail_close {
    position: absolute;
    top: 1vw;
    right: 1vw;
    width: 2vw;
    height: 2vw;
    min-width: 28px;
    min-height: 28px;
    border: none;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 50%;
    font-size: 1.2vw;
    color: #8B5CF6;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    z-index: 10;
}

.latent_arch_detail_close:hover {
    background: #8B5CF6;
    color: #ffffff;
}

/* Detail Content Styles */
.latent_arch_detail_header {
    display: flex;
    align-items: flex-start;
    gap: 1vw;
    margin-bottom: 1.5vw;
    padding-right: 2vw;
}

.latent_arch_detail_icon {
    width: 3vw;
    height: 3vw;
    min-width: 40px;
    min-height: 40px;
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 100%);
    border-radius: 0.6vw;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.latent_arch_detail_icon svg {
    width: 1.5vw;
    height: 1.5vw;
    min-width: 20px;
    min-height: 20px;
    stroke: #ffffff;
    fill: none;
    stroke-width: 2;
}

.latent_arch_detail_title_wrap {
    flex: 1;
}

.latent_arch_detail_title {
    font-size: 1.4vw;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 0.3vw 0;
}

.latent_arch_detail_category {
    display: inline-block;
    background: rgba(139, 92, 246, 0.1);
    color: #7C3AED;
    padding: 0.25vw 0.8vw;
    border-radius: 1vw;
    font-size: 0.7vw;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.latent_arch_detail_desc {
    font-size: 0.95vw;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5vw;
    opacity: 0;
    transform: translateY(10px);
    animation: detailFadeIn 0.3s ease forwards;
    animation-delay: 0.1s;
}

/* Metrics Grid */
.latent_arch_detail_metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.8vw;
    margin-bottom: 1.5vw;
    opacity: 0;
    transform: translateY(10px);
    animation: detailFadeIn 0.3s ease forwards;
    animation-delay: 0.15s;
}

.latent_arch_detail_metric {
    background: linear-gradient(135deg, #f9f8f4 0%, #f5f0fa 100%);
    padding: 1vw;
    border-radius: 0.6vw;
    text-align: center;
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.latent_arch_detail_metric.highlight {
    background: linear-gradient(135deg, #f5ebf9 0%, #ece4f5 100%);
    border-color: rgba(139, 92, 246, 0.25);
}

.latent_arch_detail_metric_value {
    font-size: 1.4vw;
    font-weight: 700;
    color: #8B5CF6;
    margin-bottom: 0.2vw;
}

.latent_arch_detail_metric.highlight .latent_arch_detail_metric_value {
    color: #7C3AED;
}

.latent_arch_detail_metric_label {
    font-size: 0.7vw;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Features List */
.latent_arch_detail_section {
    margin-bottom: 1.5vw;
    opacity: 0;
    transform: translateY(10px);
    animation: detailFadeIn 0.3s ease forwards;
}

.latent_arch_detail_section:nth-child(4) { animation-delay: 0.2s; }
.latent_arch_detail_section:nth-child(5) { animation-delay: 0.25s; }
.latent_arch_detail_section:nth-child(6) { animation-delay: 0.3s; }

.latent_arch_detail_section_title {
    font-size: 0.8vw;
    font-weight: 600;
    color: #8B5CF6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.6vw;
}

.latent_arch_detail_features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.latent_arch_detail_features li {
    display: flex;
    align-items: center;
    gap: 0.5vw;
    font-size: 0.85vw;
    color: #444;
    padding: 0.4vw 0;
}

.latent_arch_detail_features li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #8B5CF6;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Code Example */
.latent_arch_detail_code {
    background: #1a1a1a;
    border-radius: 0.6vw;
    padding: 1vw;
    overflow-x: auto;
    margin-bottom: 1vw;
}

.latent_arch_detail_code pre {
    margin: 0;
    font-family: 'Fira Code', 'Monaco', monospace;
    font-size: 0.75vw;
    color: #e5e5e5;
    line-height: 1.5;
}

.latent_arch_detail_code .code-comment { color: #6b7280; }
.latent_arch_detail_code .code-keyword { color: #c792ea; }
.latent_arch_detail_code .code-string { color: #c3e88d; }
.latent_arch_detail_code .code-number { color: #f78c6c; }

/* Specs Grid */
.latent_arch_detail_specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5vw;
}

.latent_arch_detail_spec {
    display: flex;
    justify-content: space-between;
    padding: 0.5vw 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.8vw;
}

.latent_arch_detail_spec_label {
    color: #888;
}

.latent_arch_detail_spec_value {
    color: #333;
    font-weight: 500;
}

@keyframes detailFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Clickable SVG Elements */
.latent_arch_clickable {
    cursor: pointer;
    outline: none;
}

.latent_arch_clickable > rect {
    transition: stroke 0.2s ease, stroke-width 0.2s ease;
}

.latent_arch_clickable:hover > rect {
    stroke: #8B5CF6;
    stroke-width: 1.5;
}

.latent_arch_clickable.selected > rect {
    stroke: #8B5CF6 !important;
    stroke-width: 2.5 !important;
}

/* Mobile Drawer */
.latent_arch_drawer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    pointer-events: none;
}

.latent_arch_drawer.active {
    pointer-events: auto;
}

.latent_arch_drawer_backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.latent_arch_drawer.active .latent_arch_drawer_backdrop {
    opacity: 1;
}

.latent_arch_drawer_sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 24px 24px 0 0;
    max-height: 80vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 24px 24px;
}

.latent_arch_drawer.active .latent_arch_drawer_sheet {
    transform: translateY(0);
}

.latent_arch_drawer_handle {
    width: 40px;
    height: 4px;
    background: #d1d5db;
    border-radius: 2px;
    margin: 12px auto 20px;
}

.latent_arch_drawer_close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 50%;
    font-size: 20px;
    color: #8B5CF6;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.latent_arch_drawer_content {
    padding-top: 8px;
}

/* Mobile drawer detail styles */
.latent_arch_drawer_content .latent_arch_detail_header {
    padding-right: 40px;
}

.latent_arch_drawer_content .latent_arch_detail_icon {
    width: 48px;
    height: 48px;
}

.latent_arch_drawer_content .latent_arch_detail_icon svg {
    width: 24px;
    height: 24px;
}

.latent_arch_drawer_content .latent_arch_detail_title {
    font-size: 20px;
}

.latent_arch_drawer_content .latent_arch_detail_category {
    font-size: 11px;
    padding: 4px 10px;
}

.latent_arch_drawer_content .latent_arch_detail_desc {
    font-size: 15px;
}

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

.latent_arch_drawer_content .latent_arch_detail_metric {
    padding: 16px;
}

.latent_arch_drawer_content .latent_arch_detail_metric_value {
    font-size: 24px;
}

.latent_arch_drawer_content .latent_arch_detail_metric_label {
    font-size: 11px;
}

.latent_arch_drawer_content .latent_arch_detail_section_title {
    font-size: 13px;
}

.latent_arch_drawer_content .latent_arch_detail_features li {
    font-size: 14px;
    padding: 8px 0;
}

.latent_arch_drawer_content .latent_arch_detail_code pre {
    font-size: 12px;
}

.latent_arch_drawer_content .latent_arch_detail_spec {
    font-size: 13px;
    padding: 8px 0;
}

/* ============================================
   ARCHITECTURE - SVG Diagram
   ============================================ */

.latent_arch_svg_container {
    width: 100%;
    height: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.latent_arch_svg {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: block;
    margin: 0 auto;
    border-radius: 1vw;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* SVG text visibility */
.latent_arch_svg text {
    font-weight: 600;
    fill: #1a1a1a;
}

.latent_arch_svg .latent_arch_header_text {
    fill: white;
}

.latent_arch_svg .latent_arch_clickable text {
    font-size: 11px;
    fill: #333;
}

.latent_arch_svg .latent_arch_clickable:hover text {
    fill: #1a1a1a;
}

.latent_arch_svg .latent_arch_clickable.selected text {
    fill: #5B21B6;
    font-weight: 700;
}

/* Hover effects on SVG elements */
.latent_arch_svg g[transform] > rect {
    transition: all 0.3s ease;
}

.latent_arch_svg g[transform]:hover > rect:first-child {
    filter: brightness(0.98);
}

/* ============================================
   SECTION 9: HARDWARE SUPPORT
   ============================================ */
.latent_hardware {
    padding: 8vw 11.3vw;
}

.latent_hardware_vendors {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1vw;
    margin-bottom: 4vw;
}

/* Vendor Logos - Enhanced with images */
.latent_vendor_logo {
    height: 2.5vw;
    padding: 0.8vw 1.8vw;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 0.8vw;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.latent_vendor_logo img {
    height: 100%;
    width: auto;
    max-width: 6vw;
    opacity: 1;
    transition: all 0.3s ease;
}

.latent_vendor_logo:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.15);
}


/* Legacy vendor pill support */
.latent_vendor_pill {
    background: #f5ebf9;
    padding: 0.6vw 1.5vw;
    border-radius: 2vw;
    font-size: 0.9vw;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
}

.latent_vendor_pill:hover {
    background: #8B5CF6;
    color: #ffffff;
}

.latent_hardware_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5vw;
}

.latent_hardware_card {
    background: #fcf4ff;
    border-radius: 1.2vw;
    padding: 2vw;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.latent_hardware_card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.latent_hardware_card:hover .latent_hardware_card_icon {
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.latent_hardware_card:hover .latent_hardware_card_icon svg {
    stroke: #7C3AED;
}

.latent_hardware_card_icon {
    width: 3vw;
    height: 3vw;
    margin: 0 auto 1vw auto;
}

.latent_hardware_card_icon svg {
    width: 100%;
    height: 100%;
}

.latent_hardware_card h4 {
    font-size: 1.1vw;
    font-weight: 500;
    margin-bottom: 0.5vw;
}

.latent_hardware_card p {
    font-size: 0.85vw;
    color: #666;
}

/* ============================================
   SECTION 10: ENTERPRISE FEATURES
   ============================================ */
.latent_enterprise {
    padding: 4vw 11.3vw;
    background: #f9f8f4;
}

.latent_enterprise_wrap {
    background: #0a0a0a;
    border-radius: 1.5vw;
    padding: 3vw 4vw;
}

.latent_enterprise_badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5vw;
}

.latent_enterprise_badge {
    display: flex;
    align-items: center;
    gap: 0.6vw;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.8vw;
    padding: 0.8vw 1.5vw;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9vw;
}

.latent_enterprise_badge svg {
    width: 1.2vw;
    height: 1.2vw;
}

/* ============================================
   SECTION 11: FINAL CTA
   ============================================ */
.latent_cta {
    padding: 8vw 11.3vw;
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 100%);
    text-align: center;
}

.latent_cta h2 {
    font-size: 2.5vw;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 1vw;
}

.latent_cta p {
    font-size: 1.1vw;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 3vw;
}

.latent_cta_buttons {
    display: flex;
    justify-content: center;
    gap: 1.5vw;
}

.latent_cta .latent_btn_primary {
    background: #ffffff;
    color: #8B5CF6;
}

.latent_cta .latent_btn_primary:hover {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.latent_cta .latent_btn_secondary {
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.latent_cta .latent_btn_secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.latent_btn_icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5vw;
}

.latent_btn_icon svg {
    width: 1vw;
    height: 1vw;
}

.latent_cta_links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1vw;
    margin-top: 2.5vw;
}

.latent_cta_links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9vw;
    text-decoration: none;
    transition: color 0.3s ease;
}

.latent_cta_links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.latent_cta_divider {
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   RESPONSIVE - SIDEBAR LAYOUT
   ============================================ */
@media (max-width: 1024px) {
    .latent_arch_interactive {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .latent_arch_sidebar {
        order: 2;
    }

    .latent_arch_diagram {
        order: 1;
    }

    .latent_arch_sidebar_header h4 {
        font-size: 1.8vw;
    }

    .latent_arch_sidebar_hint {
        font-size: 1.2vw;
    }

    .latent_arch_sidebar_item_content h5 {
        font-size: 1.5vw;
    }

    .latent_arch_sidebar_item_content p {
        font-size: 1.2vw;
    }
}

@media (max-width: 768px) {
    .latent_arch_sidebar {
        display: none; /* Hide sidebar on mobile, use drawer instead */
    }

    .latent_arch_sidebar_header h4 {
        font-size: 3.5vw;
    }

    .latent_arch_sidebar_hint {
        font-size: 2.5vw;
    }

    .latent_arch_sidebar_items {
        padding: 3vw;
        gap: 2vw;
    }

    .latent_arch_sidebar_item {
        padding: 3vw;
        gap: 2vw;
    }

    .latent_arch_sidebar_indicator {
        width: 2vw;
        height: 2vw;
    }

    .latent_arch_sidebar_item_content h5 {
        font-size: 3.5vw;
    }

    .latent_arch_sidebar_item_content p {
        font-size: 2.8vw;
    }
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */
@media (max-width: 1024px) and (min-width: 501px) {
    .latent_hero {
        padding: 15vw 6vw 10vw 6vw;
    }

    .latent_hero_title {
        font-size: 5.5vw;
    }

    .latent_hero_subtitle {
        font-size: 1.8vw;
        max-width: 70vw;
    }

    .latent_hero_badge {
        font-size: 1.2vw;
    }

    .latent_pipeline {
        gap: 1vw;
    }

    .latent_stats {
        padding: 0 6vw;
    }

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

    /* Architecture Flow - Tablet */
    .latent_arch_flow {
        flex-wrap: wrap;
        gap: 1.5vw;
        padding: 2vw;
    }

    .latent_arch_stage {
        min-width: 18vw;
        padding: 2vw;
    }

    .latent_arch_stage_icon {
        width: 4vw;
        height: 4vw;
    }

    .latent_arch_stage_icon svg {
        width: 2vw;
        height: 2vw;
    }

    .latent_arch_stage h4 {
        font-size: 1.4vw;
    }

    .latent_arch_stage_tags span {
        font-size: 1vw;
        padding: 0.4vw 0.8vw;
    }

    .latent_arch_stage_detail {
        font-size: 0.9vw;
    }

    .latent_arch_arrow {
        display: none;
    }

    .latent_arch_features {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 2vw;
        gap: 2vw;
    }

    .latent_arch_feature {
        padding: 2vw;
    }

    .latent_arch_feature_icon {
        width: 4vw;
        height: 4vw;
    }

    .latent_arch_feature_icon svg {
        width: 2vw;
        height: 2vw;
    }

    .latent_arch_feature_content h5 {
        font-size: 1.4vw;
    }

    .latent_arch_feature_content span {
        font-size: 1.1vw;
    }

    .latent_arch_feature_content strong {
        font-size: 1.2vw;
    }

    /* Interactive Architecture - Tablet */
    .latent_arch_interactive {
        flex-direction: column;
        gap: 3vw;
    }

    .latent_arch_interactive.active .latent_arch_diagram {
        flex: 1 1 100%;
    }

    .latent_arch_interactive.active .latent_arch_detail {
        flex: 0 0 auto;
        width: 100%;
        max-height: none;
    }

    .latent_arch_detail_title {
        font-size: 2.2vw;
    }

    .latent_arch_detail_category {
        font-size: 1.2vw;
    }

    .latent_arch_detail_desc {
        font-size: 1.6vw;
    }

    .latent_arch_detail_metric_value {
        font-size: 2.4vw;
    }

    .latent_arch_detail_metric_label {
        font-size: 1.1vw;
    }

    .latent_arch_detail_section_title {
        font-size: 1.3vw;
    }

    .latent_arch_detail_features li {
        font-size: 1.4vw;
    }

    .latent_arch_detail_code pre {
        font-size: 1.2vw;
    }

    .latent_arch_detail_spec {
        font-size: 1.3vw;
    }

    .latent_arch_hint {
        display: block;
        margin-top: 0.5vw;
    }

    /* SVG Architecture - Tablet */
    .latent_arch_svg_container {
        padding: 0 2vw;
        overflow-x: auto;
        justify-content: flex-start;
    }

    .latent_arch_svg {
        min-width: 900px;
        margin: 0 auto;
    }

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

    .latent_usecase_icon {
        width: 5vw;
        height: 5vw;
        border-radius: 1.2vw;
    }

    .latent_usecase_icon svg {
        width: 2.5vw;
        height: 2.5vw;
    }

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

    .latent_valueprop_row {
        grid-template-columns: 1fr;
        gap: 1vw;
    }

    .latent_valueprop_arrow {
        display: none;
    }

    /* Vendor Logos - Tablet */
    .latent_vendor_logo {
        height: 4vw;
        padding: 1.5vw 3vw;
        border-radius: 1.2vw;
    }

    .latent_vendor_logo img {
        max-width: 10vw;
    }

    /* Benchmark Charts - Tablet */
    .latent_bench_chart_wrap {
        grid-template-columns: 1fr;
        gap: 3vw;
    }

    .latent_bench_chart svg {
        max-width: 40vw;
    }

    .latent_bench_chart_donut svg {
        max-width: 25vw;
    }

    .latent_bench_chart_info {
        text-align: center;
    }

    .latent_bench_chart_info .latent_bench_metric,
    .latent_bench_chart_info .latent_bench_desc {
        text-align: center;
    }

    .latent_bench_highlight {
        font-size: 1.4vw;
        padding: 1vw 2vw;
    }

    .latent_bench_highlight_icon svg {
        width: 1.6vw;
        height: 1.6vw;
    }

    .latent_donut_legend_item {
        font-size: 1.3vw;
    }

    .latent_donut_legend_color {
        width: 1.5vw;
        height: 1.5vw;
    }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 500px) {
    .latent_hero {
        padding: 35vw 5vw 15vw 5vw;
        min-height: auto;
    }

    .latent_blob {
        filter: blur(60px);
    }

    .latent_hero_badge {
        font-size: 3vw;
        padding: 2vw 4vw;
        border-radius: 4vw;
        margin-bottom: 5vw;
    }

    .latent_hero_title {
        font-size: 8vw;
        margin-bottom: 4vw;
    }

    .latent_hero_subtitle {
        font-size: 4vw;
        max-width: 90vw;
        margin-bottom: 8vw;
    }

    .latent_hero_cta {
        flex-direction: column;
        gap: 3vw;
        margin-bottom: 10vw;
    }

    .latent_btn_primary,
    .latent_btn_secondary {
        padding: 3.5vw 6vw;
        font-size: 3.8vw;
        border-radius: 2vw;
    }

    .latent_pipeline {
        flex-direction: column;
        gap: 2vw;
    }

    .latent_pipeline_stage {
        width: 100%;
        padding: 4vw;
        border-radius: 3vw;
        display: flex;
        align-items: center;
        gap: 3vw;
    }

    .latent_pipeline_stage_icon {
        font-size: 5vw;
        margin-bottom: 0;
        color: white;
    }

    .latent_pipeline_stage_icon svg {
        width: 6vw;
        height: 6vw;
    }

    .latent_pipeline_stage_label {
        font-size: 3.5vw;
    }

    .latent_pipeline_arrow {
        transform: rotate(90deg);
        font-size: 4vw;
    }

    /* Stats */
    .latent_stats {
        padding: 0 5vw;
        margin-top: 8vw;
    }

    .latent_stats_grid {
        grid-template-columns: 1fr;
        gap: 4vw;
    }

    .latent_stat_card {
        padding: 6vw;
        border-radius: 4vw;
    }

    .latent_stat_value {
        font-size: 9vw;
    }

    .latent_stat_label {
        font-size: 3.5vw;
    }

    .latent_stat_desc {
        font-size: 3vw;
    }

    /* Architecture - Mobile */
    .latent_architecture {
        padding: 15vw 5vw;
    }

    /* Interactive Architecture - Mobile */
    .latent_arch_hint {
        font-size: 3.5vw;
        display: block;
        margin-top: 2vw;
    }

    .latent_arch_interactive {
        flex-direction: column;
    }

    .latent_arch_detail {
        display: none !important;
    }

    .latent_arch_drawer {
        display: block;
    }

    .latent_arch_clickable:hover {
        transform: none;
    }

    /* Mobile Architecture Flow - Vertical Stack */
    .latent_arch_flow {
        flex-direction: column;
        gap: 3vw;
        padding: 4vw 2vw;
    }

    .latent_arch_stage {
        min-width: unset;
        width: 100%;
        padding: 5vw;
        border-radius: 4vw;
    }

    .latent_arch_stage_icon {
        width: 12vw;
        height: 12vw;
        border-radius: 3vw;
        margin-bottom: 3vw;
    }

    .latent_arch_stage_icon svg {
        width: 6vw;
        height: 6vw;
    }

    .latent_arch_stage h4 {
        font-size: 5vw;
        margin-bottom: 2vw;
    }

    .latent_arch_stage_tags {
        gap: 1.5vw;
        margin-bottom: 2vw;
    }

    .latent_arch_stage_tags span {
        font-size: 3vw;
        padding: 1.5vw 3vw;
        border-radius: 1.5vw;
    }

    .latent_arch_stage_detail {
        font-size: 3vw;
    }

    .latent_arch_arrow {
        display: none;
    }

    /* Features - Mobile */
    .latent_arch_features {
        grid-template-columns: 1fr;
        gap: 4vw;
        padding: 0;
    }

    .latent_arch_feature {
        padding: 5vw;
        border-radius: 4vw;
        gap: 4vw;
    }

    .latent_arch_feature_icon {
        width: 12vw;
        height: 12vw;
        border-radius: 3vw;
    }

    .latent_arch_feature_icon svg {
        width: 6vw;
        height: 6vw;
    }

    .latent_arch_feature_content h5 {
        font-size: 4.5vw;
    }

    .latent_arch_feature_content span {
        font-size: 3.5vw;
    }

    .latent_arch_feature_content strong {
        font-size: 3.5vw;
    }

    /* Capabilities */
    .latent_capabilities {
        padding: 15vw 5vw;
    }

    .latent_section_header h2 {
        font-size: 7vw;
    }

    .latent_section_header p {
        font-size: 3.8vw;
        max-width: 100%;
    }

    .latent_capabilities_grid {
        grid-template-columns: 1fr;
        gap: 4vw;
    }

    .latent_capability_card {
        padding: 6vw;
        border-radius: 4vw;
    }

    .latent_capability_number {
        font-size: 10vw;
    }

    .latent_capability_title {
        font-size: 5vw;
    }

    .latent_capability_tag {
        padding: 1.5vw 3vw;
        font-size: 3.2vw;
        border-radius: 1.5vw;
    }

    /* Models */
    .latent_models {
        padding: 15vw 5vw;
    }

    .latent_models_grid {
        grid-template-columns: 1fr;
        gap: 4vw;
    }

    .latent_model_card {
        padding: 6vw;
        border-radius: 4vw;
    }

    .latent_model_card_icon {
        width: 12vw;
        height: 12vw;
        border-radius: 3vw;
    }

    .latent_model_card_icon svg {
        width: 6vw;
        height: 6vw;
    }

    .latent_model_card h4 {
        font-size: 5vw;
    }

    .latent_model_name {
        padding: 1.5vw 2.5vw;
        font-size: 2.8vw;
        border-radius: 1.5vw;
    }

    /* Use Cases */
    .latent_usecases {
        padding: 15vw 5vw;
    }

    .latent_usecases_grid {
        grid-template-columns: 1fr;
        gap: 4vw;
    }

    .latent_usecase_card {
        padding: 6vw;
        border-radius: 4vw;
    }

    .latent_usecase_card h4 {
        font-size: 5vw;
    }

    .latent_usecase_icon {
        width: 12vw;
        height: 12vw;
        border-radius: 3vw;
        margin-bottom: 4vw;
    }

    .latent_usecase_icon svg {
        width: 6vw;
        height: 6vw;
    }

    /* Simplified animations on mobile for performance */
    .latent_animate_fade_up.latent_animated,
    .latent_animate_fade_left.latent_animated,
    .latent_animate_fade_right.latent_animated,
    .latent_animate_scale.latent_animated,
    .latent_animate_slide_up.latent_animated {
        animation-duration: 0.4s;
    }

    .latent_valueprop_row.latent_animated .latent_valueprop_arrow {
        animation: none;
    }

    .latent_valueprop_row.latent_animated .latent_valueprop_result {
        animation: none;
    }

    .latent_usecase_list li {
        font-size: 3.5vw;
        gap: 2vw;
        margin-bottom: 3vw;
    }

    .latent_usecase_list li svg {
        width: 4.5vw;
        height: 4.5vw;
    }

    /* Value Props */
    .latent_valueprops {
        padding: 15vw 5vw;
    }

    .latent_valueprop_row {
        display: block;
        padding: 5vw;
        background: #f9f8f4;
        border-radius: 4vw;
        margin-bottom: 3vw;
        border: none;
    }

    .latent_valueprop_col {
        padding: 2vw 0;
    }

    .latent_valueprop_label {
        font-size: 3vw;
    }

    .latent_valueprop_text {
        font-size: 3.8vw;
    }

    .latent_valueprop_arrow {
        display: block;
        font-size: 5vw;
        padding: 2vw 0;
    }

    .latent_valueprop_result {
        padding: 4vw;
        border-radius: 3vw;
    }

    /* Benchmarks */
    .latent_benchmarks {
        padding: 15vw 5vw;
    }

    .latent_benchmarks_tabs {
        flex-wrap: wrap;
        gap: 2vw;
    }

    .latent_bench_tab {
        padding: 3vw 5vw;
        font-size: 3.5vw;
        border-radius: 2vw;
    }

    .latent_bench_content {
        padding: 8vw 5vw;
        border-radius: 4vw;
    }

    .latent_bench_metric {
        font-size: 15vw;
    }

    .latent_bench_desc {
        font-size: 4vw;
    }

    .latent_bench_link {
        font-size: 3.5vw;
    }

    /* Hardware */
    .latent_hardware {
        padding: 15vw 5vw;
    }

    .latent_hardware_vendors {
        gap: 2.5vw;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .latent_vendor_pill {
        padding: 2vw 4vw;
        font-size: 3.5vw;
        border-radius: 5vw;
    }

    /* Vendor Logos - Mobile */
    .latent_vendor_logo {
        height: auto;
        min-height: 12vw;
        padding: 3vw 4vw;
        border-radius: 3vw;
        flex: 0 0 calc(50% - 1.5vw);
        max-width: calc(50% - 1.5vw);
    }

    .latent_vendor_logo img {
        max-width: 100%;
        height: auto;
        max-height: 8vw;
        object-fit: contain;
    }

    /* Benchmark Charts - Mobile */
    .latent_bench_chart_wrap {
        grid-template-columns: 1fr;
        gap: 6vw;
    }

    .latent_bench_chart {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .latent_bench_chart svg {
        max-width: 80vw;
        min-width: 280px;
    }

    .latent_bench_chart_horizontal svg {
        max-width: 90vw;
        min-width: 320px;
    }

    .latent_bench_chart_donut svg {
        max-width: 50vw;
        min-width: 180px;
    }

    .latent_bench_chart_gauge svg {
        max-width: 60vw;
        min-width: 200px;
    }

    .latent_bench_chart_info {
        padding: 0 2vw;
    }

    .latent_bench_highlight {
        font-size: 3.2vw;
        padding: 2.5vw 4vw;
        border-radius: 2vw;
        display: flex;
        justify-content: center;
    }

    .latent_bench_highlight_icon svg {
        width: 4vw;
        height: 4vw;
    }

    .latent_donut_legend {
        margin-top: 4vw;
        gap: 2vw;
        flex-wrap: wrap;
        justify-content: center;
    }

    .latent_donut_legend_item {
        font-size: 3vw;
        gap: 2vw;
    }

    .latent_donut_legend_color {
        width: 3vw;
        height: 3vw;
        border-radius: 0.8vw;
    }

    /* Architecture Grid - Mobile */
    .latent_arch_grid {
        grid-template-columns: 1fr;
        gap: 4vw;
        padding: 0;
    }

    .latent_arch_card {
        padding: 5vw;
        border-radius: 4vw;
    }

    .latent_arch_card::before {
        height: 4px;
        border-radius: 4vw 4vw 0 0;
    }

    .latent_arch_card_header {
        gap: 3vw;
        margin-bottom: 4vw;
    }

    .latent_arch_card_header h4 {
        font-size: 4vw;
    }

    .latent_arch_card_icon {
        width: 10vw;
        height: 10vw;
        border-radius: 2.5vw;
    }

    .latent_arch_card_icon svg {
        width: 5vw;
        height: 5vw;
    }

    .latent_arch_card_section {
        margin-bottom: 4vw;
    }

    .latent_arch_card_label {
        font-size: 2.8vw;
        margin-bottom: 2vw;
    }

    .latent_arch_card_items {
        gap: 2vw;
    }

    .latent_arch_tag {
        font-size: 3vw;
        padding: 1.5vw 3vw;
        border-radius: 1.5vw;
    }

    .latent_arch_card_stat {
        font-size: 3vw;
        padding: 2vw 4vw;
        border-radius: 2vw;
        margin-top: 3vw;
    }

    .latent_arch_card_grid {
        grid-template-columns: 1fr;
        gap: 4vw;
    }

    .latent_arch_dual_row {
        grid-template-columns: 1fr;
        gap: 4vw;
    }

    .latent_arch_flow_arrow {
        padding: 2vw 0;
    }

    .latent_arch_flow_arrow svg {
        width: 5vw;
        height: 6vw;
    }

    .latent_arch_connectors {
        display: none;
    }

    .latent_hardware_grid {
        grid-template-columns: 1fr;
        gap: 4vw;
    }

    .latent_hardware_card {
        padding: 6vw;
        border-radius: 4vw;
    }

    .latent_hardware_card_icon {
        width: 12vw;
        height: 12vw;
    }

    .latent_hardware_card h4 {
        font-size: 4.5vw;
    }

    .latent_hardware_card p {
        font-size: 3.5vw;
    }

    /* SVG Architecture - Mobile */
    .latent_arch_svg_container {
        padding: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        position: relative;
    }

    .latent_arch_svg_container::after {
        content: 'Swipe to explore →';
        position: absolute;
        bottom: 2vw;
        right: 2vw;
        background: rgba(139, 92, 246, 0.9);
        color: white;
        padding: 2vw 4vw;
        border-radius: 2vw;
        font-size: 3vw;
        font-weight: 500;
        pointer-events: none;
        opacity: 0.9;
        animation: fadeOut 3s ease-in-out forwards;
        animation-delay: 2s;
    }

    @keyframes fadeOut {
        0% { opacity: 0.9; }
        100% { opacity: 0; visibility: hidden; }
    }

    .latent_arch_svg {
        min-width: 800px;
        border-radius: 3vw;
        margin: 0;
    }

    /* Enterprise */
    .latent_enterprise {
        padding: 8vw 5vw;
    }

    .latent_enterprise_wrap {
        padding: 8vw 5vw;
        border-radius: 4vw;
    }

    .latent_enterprise_badges {
        flex-direction: column;
        gap: 3vw;
    }

    .latent_enterprise_badge {
        padding: 4vw 5vw;
        font-size: 3.5vw;
        border-radius: 3vw;
        justify-content: center;
    }

    .latent_enterprise_badge svg {
        width: 5vw;
        height: 5vw;
    }

    /* CTA */
    .latent_cta {
        padding: 15vw 5vw;
    }

    .latent_cta h2 {
        font-size: 7vw;
    }

    .latent_cta p {
        font-size: 4vw;
        margin-bottom: 8vw;
    }

    .latent_cta_buttons {
        flex-direction: column;
        gap: 3vw;
    }

    .latent_cta_links {
        flex-wrap: wrap;
        gap: 2vw;
        margin-top: 6vw;
    }

    .latent_cta_links a {
        font-size: 3.5vw;
    }

    .latent_compare_promo {
        padding: 10vw 5vw;
    }

    .latent_compare_promo h2 {
        font-size: 6vw;
    }

    .latent_compare_promo p {
        font-size: 3.5vw;
    }
}

/* ============================================
   COMPARE PROMO SECTION
   ============================================ */
.latent_compare_promo {
    padding: 5vw 11.3vw;
    background: linear-gradient(135deg, #f5ebf9 0%, #ece4f5 100%);
    text-align: center;
}

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

.latent_compare_promo h2 {
    font-size: 2.5vw;
    font-weight: 500;
    margin-bottom: 1vw;
    color: #1a1a1a;
}

.latent_compare_promo h2 em {
    font-family: 'Times New Roman', Times, serif;
    font-style: italic;
    font-weight: 400;
    color: #8B5CF6;
}

.latent_compare_promo p {
    font-size: 1.1vw;
    color: #666;
    margin-bottom: 2vw;
    line-height: 1.6;
}

.latent_compare_promo_cta {
    display: flex;
    justify-content: center;
    gap: 1vw;
}

/* Architecture Deep-Dive Link */
.latent_arch_deepdive {
    color: #8B5CF6;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-left: 0.5vw;
}

.latent_arch_deepdive:hover {
    color: #7C3AED;
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE - SMALL MOBILE (375px and below)
   ============================================ */
@media (max-width: 375px) {
    .latent_hero {
        padding: 30vw 4vw 12vw 4vw;
    }

    .latent_hero_badge {
        font-size: 3.5vw;
        padding: 2.5vw 5vw;
    }

    .latent_hero_title {
        font-size: 9vw;
        line-height: 1.2;
    }

    .latent_hero_subtitle {
        font-size: 4.5vw;
        line-height: 1.5;
    }

    .latent_btn_primary,
    .latent_btn_secondary {
        padding: 4vw 6vw;
        font-size: 4vw;
        width: 100%;
        text-align: center;
    }

    .latent_pipeline_stage {
        padding: 5vw;
    }

    .latent_pipeline_stage_icon {
        font-size: 6vw;
    }

    .latent_pipeline_stage_label {
        font-size: 4vw;
    }

    .latent_section_header h2 {
        font-size: 8vw;
        line-height: 1.2;
    }

    .latent_section_header p {
        font-size: 4.2vw;
    }

    .latent_stat_value {
        font-size: 11vw;
    }

    .latent_stat_label {
        font-size: 4vw;
    }

    .latent_stat_desc {
        font-size: 3.5vw;
    }

    .latent_bench_tab {
        padding: 3.5vw 4vw;
        font-size: 3.8vw;
        flex: 1 1 45%;
    }

    .latent_bench_metric {
        font-size: 18vw;
    }

    .latent_bench_desc {
        font-size: 4.5vw;
        line-height: 1.5;
    }

    .latent_bench_chart svg {
        max-width: 85vw;
    }

    .latent_bench_chart_donut svg {
        max-width: 55vw;
    }

    .latent_vendor_logo {
        height: 10vw;
        padding: 3.5vw 4vw;
        flex: 0 0 calc(50% - 1vw);
    }

    .latent_vendor_logo img {
        max-width: 22vw;
    }

    .latent_hardware_vendors {
        gap: 2vw;
        justify-content: center;
    }

    .latent_capability_number {
        font-size: 12vw;
    }

    .latent_capability_title {
        font-size: 5.5vw;
    }

    .latent_model_card h4 {
        font-size: 5.5vw;
    }

    .latent_usecase_card h4 {
        font-size: 5.5vw;
    }

    .latent_cta h2 {
        font-size: 8vw;
    }

    .latent_cta p {
        font-size: 4.5vw;
    }

    .latent_enterprise_badge {
        font-size: 4vw;
    }

    .latent_arch_svg {
        min-width: 700px;
    }
}

/* ============================================
   IMPROVED TOUCH TARGETS FOR MOBILE
   ============================================ */
@media (max-width: 768px) {
    .latent_bench_tab,
    .latent_btn_primary,
    .latent_btn_secondary,
    .latent_vendor_logo,
    .latent_enterprise_badge {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .latent_arch_clickable {
        cursor: pointer;
    }
}

/* ============================================
   LANDSCAPE MOBILE ORIENTATION
   ============================================ */
@media (max-width: 900px) and (orientation: landscape) {
    .latent_hero {
        padding: 15vw 5vw 10vw 5vw;
        min-height: auto;
    }

    .latent_hero_title {
        font-size: 5vw;
    }

    .latent_hero_subtitle {
        font-size: 2.5vw;
    }

    .latent_pipeline {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .latent_pipeline_stage {
        width: auto;
        flex-direction: column;
        padding: 2vw 3vw;
    }

    .latent_pipeline_arrow {
        transform: none;
    }

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

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