/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    color-scheme: light dark;

    /* Primary Colors - Electric & Vibrant */
    --primary-color: #6366f1;
    --primary-dark: #4338ca;
    --primary-light: #818cf8;
    --primary-lighter: #c7d2fe;
    --primary-glow: rgba(99, 102, 241, 0.5);
    
    /* Secondary & Accent Colors */
    --secondary-color: #ec4899;
    --secondary-dark: #be185d;
    --secondary-light: #f472b6;
    --secondary-glow: rgba(236, 72, 153, 0.5);

    --accent-color: #8b5cf6;
    --accent-dark: #7c3aed;
    --accent-light: #a78bfa;
    --accent-glow: rgba(139, 92, 246, 0.5);

    --gold: #f59e0b;
    --gold-dark: #d97706;
    --gold-glow: rgba(245, 158, 11, 0.5);
    
    /* Text Colors */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-light: #94a3b8;
    --text-inverse: #ffffff;
    
    /* Backgrounds */
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --bg-glass-dark: rgba(15, 23, 42, 0.7);
    
    /* Borders & Surfaces */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --glass-border: rgba(255, 255, 255, 0.2);
    
    /* Semantic Colors */
    --success-color: #10b981;
    --success-glow: rgba(16, 185, 129, 0.4);
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    
    /* Shadows - Premium & Glowing */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    
    --shadow-glow-primary: 0 0 20px var(--primary-glow);
    --shadow-glow-secondary: 0 0 20px var(--secondary-glow);
    --shadow-glow-accent: 0 0 20px var(--accent-glow);
    
    /* Premium Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    --gradient-text: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    --gradient-gold: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    
    /* Spacing System */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Animation */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ==========================================
   DARK THEME (system preference)
   ========================================== */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #f1f5f9;
        --text-secondary: #94a3b8;
        --text-light: #64748b;

        --bg-white: #0f172a; /* Slate 900 */
        --bg-light: #1e293b; /* Slate 800 */
        --bg-dark: #020617;  /* Slate 950 */
        --bg-darker: #000000;

        --border-color: rgba(255, 255, 255, 0.1);
        --border-light: rgba(255, 255, 255, 0.05);
        --glass-border: rgba(255, 255, 255, 0.1);
        
        --bg-glass: rgba(15, 23, 42, 0.7);
        --bg-glass-dark: rgba(2, 6, 23, 0.8);
    }

    /* Core surfaces that were hard-coded for light mode */
    .header {
        background: rgba(15, 23, 42, 0.8);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-menu {
        background: var(--bg-white);
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .loading-overlay {
        background: rgba(2, 6, 23, 0.9);
    }

    .spinner {
        border-color: var(--border-color);
        border-top-color: var(--primary-color);
    }
}

/* Optional: force dark theme by setting <html data-theme="dark"> */
html[data-theme="dark"] {
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-light: #64748b;

    --bg-white: #0f172a;
    --bg-light: #1e293b;
    --bg-dark: #020617;
    --bg-darker: #000000;

    --border-color: rgba(255, 255, 255, 0.1);
    --border-light: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --bg-glass: rgba(15, 23, 42, 0.7);
    --bg-glass-dark: rgba(2, 6, 23, 0.8);
}

html[data-theme="dark"] .header {
    background: rgba(15, 23, 42, 0.8);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

html[data-theme="dark"] .nav-menu {
    background: var(--bg-white);
    border-top: 1px solid var(--glass-border);
}

html[data-theme="dark"] .loading-overlay {
    background: rgba(2, 6, 23, 0.9);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    overflow-x: hidden;
    background: var(--bg-white);
    font-weight: 400;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: 50px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.section-badge:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(236, 72, 153, 0.15));
}

.section-badge i {
    margin-right: 0.5rem;
}

.section-description {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Glassmorphism Product Cards */
.products-showcase {
    padding: 80px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.glass-product-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Allow the same glass cards to be used as links (AI workforce cards) */
a.glass-product-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

a.glass-product-card:focus-visible {
    outline: 2px solid rgba(251, 191, 36, 0.65);
    outline-offset: 3px;
}

.glass-product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(700px 220px at 20% 0%, rgba(99, 102, 241, 0.18), transparent 60%),
        radial-gradient(600px 220px at 90% 20%, rgba(236, 72, 153, 0.12), transparent 55%);
    opacity: 0.9;
}

.glass-product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.product-photo {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.product-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.05) contrast(1.05);
}

.product-body {
    position: relative;
    padding: 18px 18px 20px;
}

.product-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 2px 0 8px;
    color: var(--text);
}

.product-desc {
    margin: 0 0 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.product-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.product-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text);
    opacity: 0.95;
}

.product-list i {
    margin-top: 2px;
    color: var(--primary);
}

@media (max-width: 1100px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .products-showcase {
        padding: 60px 0;
    }
    .products-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    transition: all 0.3s ease;
}

.logo::before {
    content: '🦁 ';
    -webkit-text-fill-color: initial;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
}

.logo:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-menu {
    display: none;
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    padding: 1rem 0;
}

.nav-menu.active {
    display: block;
}

.nav-menu li {
    padding: 0.5rem 20px;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.btn-nav {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--primary-color);
    color: white !important;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.btn-nav:hover {
    background: var(--primary-dark);
    color: white !important;
}

/* Hero Section */
.hero {
    margin-top: 70px;
    padding: 3rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.25rem;
    align-items: center;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0) 70%);
    bottom: -150px;
    right: -150px;
    animation-delay: 7s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Align urgency/badge nicely in center by default */
.hero .hero-urgency {
    justify-content: center;
}

.hero-badge {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.25);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge i {
    color: var(--gold);
    margin-right: 0.5rem;
}

.title-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-check {
    color: var(--success-color);
    margin-right: 0.5rem;
}

.hero-stats-mini {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.mini-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 0.95rem;
    opacity: 0.95;
}

.mini-stat i {
    font-size: 1.125rem;
}

.mini-stat strong {
    font-weight: 700;
    font-size: 1.125rem;
}

.hero-title {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Hero visual (glass preview) */
.hero-visual {
    position: relative;
    z-index: 1;
}

.hero-visual-card {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.hero-visual-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(700px 220px at 15% 10%, rgba(255, 255, 255, 0.14), transparent 55%),
        radial-gradient(520px 220px at 85% 30%, rgba(251, 191, 36, 0.18), transparent 60%);
    opacity: 0.85;
}

.hero-visual-top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-4d-scene-card .hero-visual-top::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        repeating-radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 3px),
        repeating-radial-gradient(circle at 70% 60%, rgba(147, 197, 253, 0.05) 0 1px, transparent 1px 4px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 55%);
    opacity: 0.35;
    mix-blend-mode: overlay;
}

.hero-visual-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
}

.hero-visual-pill[role="button"] {
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    position: relative;
    isolation: isolate;
    animation: none;
}

.hero-visual-pill[role="button"]:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.hero-visual-pill[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 0;
    top: calc(100% + 10px);
    width: max-content;
    max-width: 240px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(10, 16, 28, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    font-weight: 700;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 160ms ease, transform 160ms ease;
    pointer-events: none;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    z-index: 3;
}

.hero-visual-pill[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateY(0);
}

@keyframes heroBadgePulse {
    0%, 100% {
        box-shadow: 0 0 0 rgba(251, 191, 36, 0.0);
    }
    10% {
        box-shadow: 0 0 0 rgba(251, 191, 36, 0.0);
    }
    18% {
        box-shadow: 0 0 0 6px rgba(251, 191, 36, 0.08), 0 0 24px rgba(251, 191, 36, 0.18);
    }
    26% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.0), 0 0 0 rgba(251, 191, 36, 0.0);
    }
}

.hero-visual-dots {
    display: inline-flex;
    gap: 6px;
}

.hero-visual-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
}

.hero-visual-body {
    position: relative;
    padding: 16px;
    display: grid;
    gap: 14px;
}

.hero-visual-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
}

.hero-visual-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.hero-metric {
    border-radius: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-metric-label {
    font-size: 0.85rem;
    opacity: 0.9;
}

.hero-metric-value {
    margin-top: 6px;
    font-size: 1.25rem;
    font-weight: 800;
    position: relative;
    isolation: isolate;
}

.hero-metric-value::before {
    content: '';
    position: absolute;
    inset: -4px -6px;
    border-radius: 12px;
    opacity: 0.32;
    background:
        linear-gradient(90deg, transparent 0 8%, rgba(147, 197, 253, 0.35) 8% 10%, transparent 10% 18%, rgba(147, 197, 253, 0.30) 18% 20%, transparent 20% 35%, rgba(251, 191, 36, 0.22) 35% 37%, transparent 37% 55%, rgba(147, 197, 253, 0.26) 55% 57%, transparent 57% 76%, rgba(251, 191, 36, 0.20) 76% 78%, transparent 78% 100%),
        radial-gradient(120px 34px at 12% 50%, rgba(255, 255, 255, 0.10), transparent 60%);
    filter: blur(0.2px);
    transform: translateZ(0);
    z-index: -1;
    animation: none;
}

@keyframes metricSpark {
    0% {
        background-position: 0 0, 0 0;
    }
    100% {
        background-position: 120px 0, 0 0;
    }
}

.hero-metric.is-pulsing .hero-metric-value {
    animation: none;
}

@keyframes metricPulse {
    0%, 100% {
        text-shadow: 0 0 0 rgba(251, 191, 36, 0.0);
    }
    50% {
        text-shadow: 0 0 18px rgba(251, 191, 36, 0.22);
    }
}

/* 4D Scene Canvas Styles */
.hero-4d-scene-card {
    min-height: clamp(380px, 48vh, 560px);
    transform: none;
    transition: transform 320ms ease, box-shadow 320ms ease, filter 320ms ease;
    filter: saturate(0.88);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

.hero-4d-scene-card:hover {
    transform: none;
}

.hero-4d-scene-card::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background:
        radial-gradient(900px 300px at 12% 12%, rgba(255, 255, 255, 0.10), transparent 58%),
        radial-gradient(700px 260px at 18% 22%, rgba(251, 191, 36, 0.16), transparent 65%),
        radial-gradient(560px 240px at 88% 30%, rgba(147, 197, 253, 0.10), transparent 62%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.58), transparent 22%);
    opacity: 0.95;
    z-index: 0;
}

.hero-4d-scene-card {
    position: relative;
    isolation: isolate;
}

.hero-4d-scene-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 18%),
        radial-gradient(800px 220px at 20% 10%, rgba(255, 255, 255, 0.06), transparent 55%),
        radial-gradient(720px 260px at 85% 18%, rgba(251, 191, 36, 0.10), transparent 60%);
    mix-blend-mode: screen;
    opacity: 0.6;
    z-index: 0;
}

.hero-4d-scene-card {
    animation: consoleBreath 7.5s ease-in-out infinite;
}

/* Keep the hero interface stable (no card "breathing" / floating). */
.hero-4d-scene-card {
    animation: none;
}

/* Ensure card content always sits above decorative pseudo layers */
.hero-4d-scene-card > * {
    position: relative;
    z-index: 1;
}

@keyframes consoleBreath {
    0%, 100% {
        box-shadow: 0 26px 70px rgba(0, 0, 0, 0.45), 0 0 0 rgba(251, 191, 36, 0.0);
    }
    50% {
        box-shadow: 0 30px 78px rgba(0, 0, 0, 0.48), 0 0 42px rgba(147, 197, 253, 0.06);
    }
}

.hero-4d-scene-card[data-bg-tone="daemon"] .hero-metric {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(147, 197, 253, 0.18);
}

.hero-4d-scene-card.is-paused {
    filter: saturate(0.82) brightness(0.88);
}

.hero-4d-canvas-wrapper {
    position: relative;
    width: 100%;
    height: clamp(220px, 30vh, 380px);
    overflow: hidden;
    border-radius: 16px;
    margin: 16px;
    margin-bottom: 0;
    background: linear-gradient(135deg, #0a1628 0%, #1a1a2e 50%, #16213e 100%);
    overscroll-behavior: contain;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow:
        inset 0 16px 26px rgba(0, 0, 0, 0.45),
        inset 0 -16px 26px rgba(0, 0, 0, 0.25);
}

.hero-4d-canvas-wrapper .hero-4d-loader,
.hero-4d-canvas-wrapper .hero-4d-overlay {
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

/* Depth stack layer 1: background grid drift */
.hero-4d-canvas-wrapper::before {
    content: '';
    position: absolute;
    inset: -20%;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(147, 197, 253, 0.06) 1px, transparent 1px) 0 0 / 26px 26px,
        linear-gradient(180deg, rgba(147, 197, 253, 0.05) 1px, transparent 1px) 0 0 / 26px 26px,
        radial-gradient(600px 240px at 60% 30%, rgba(251, 191, 36, 0.08), transparent 60%);
    filter: blur(0.35px);
    opacity: 0.65;
    transform: translate3d(var(--gyro-x, 0px), var(--gyro-y, 0px), 0);
    animation: none;
    z-index: 0;
}

@keyframes gridDrift {
    0% {
        background-position: 0 0, 0 0, 0 0;
    }
    100% {
        background-position: 180px 0, 0 160px, 0 0;
    }
}

/* Depth stack layer 2: orbit rings (slow rotation) */
.hero-4d-canvas-wrapper::after {
    content: '';
    position: absolute;
    inset: -10%;
    pointer-events: none;
    background:
        radial-gradient(closest-side, transparent 64%, rgba(251, 191, 36, 0.18) 66%, transparent 68%) 50% 56% / 520px 320px no-repeat,
        radial-gradient(closest-side, transparent 68%, rgba(147, 197, 253, 0.12) 70%, transparent 72%) 50% 60% / 640px 400px no-repeat,
        conic-gradient(from 90deg, rgba(251, 191, 36, 0.0), rgba(251, 191, 36, 0.10), rgba(251, 191, 36, 0.0));
    filter: blur(0.2px);
    opacity: 0.6;
    transform: translate3d(calc(var(--gyro-x, 0px) * 0.6), calc(var(--gyro-y, 0px) * 0.6), 0) rotate(0deg);
    transform-origin: 50% 55%;
    animation: none;
    z-index: 2;
    mix-blend-mode: screen;
}

@keyframes ringRotate {
    0% {
        transform: translate3d(calc(var(--gyro-x, 0px) * 0.6), calc(var(--gyro-y, 0px) * 0.6), 0) rotate(0deg);
    }
    100% {
        transform: translate3d(calc(var(--gyro-x, 0px) * 0.6), calc(var(--gyro-y, 0px) * 0.6), 0) rotate(360deg);
    }
}

.hero-4d-canvas-wrapper[data-idle="1"]::after {
    animation-duration: 16s;
}

/* Stabilized visual-only 4D layers (SVG composition, no continuous loops) */
.hero-4d-layers {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-4d-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    transform: translate3d(0, 0, 0);
    will-change: transform, opacity;
}

.hero-4d-layer svg {
    width: min(520px, 92%);
    height: auto;
    max-height: 108%;
}

.hero-4d-layer--bg {
    opacity: 0.92;
    transform: translate3d(calc(var(--gyro-x, 0px) * 0.35), calc(var(--gyro-y, 0px) * 0.35), 0) scale(1.04);
    filter: saturate(0.95);
}

.hero-4d-layer--costume {
    transform: translate3d(calc(var(--gyro-x, 0px) * 0.55), calc(var(--gyro-y, 0px) * 0.55), 0);
}

.hero-4d-layer--lion {
    transform: translate3d(calc(var(--gyro-x, 0px) * 0.75), calc(var(--gyro-y, 0px) * 0.75), 0);
}

.hero-4d-layer--tool {
    transform: translate3d(calc(var(--gyro-x, 0px) * 0.9), calc(var(--gyro-y, 0px) * 0.9), 0);
}

/* Agent cue: money stream reversal (Shukra) */
.hero-4d-money-stream {
    position: absolute;
    left: 50%;
    top: 52%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 18px;
    font-weight: 900;
    font-size: 22px;
    color: rgba(251, 191, 36, 0.82);
    text-shadow: 0 0 18px rgba(251, 191, 36, 0.18);
    opacity: 0.0;
}

.hero-4d-canvas-wrapper[data-hero4d-cue="money-reverse"] .hero-4d-money-stream {
    opacity: 0.55;
}

@keyframes moneyReverse {
    0% { transform: translate(-50%, -50%) translateX(18px); opacity: 0.30; }
    60% { transform: translate(-50%, -50%) translateX(-22px); opacity: 0.62; }
    100% { transform: translate(-50%, -50%) translateX(-30px); opacity: 0.42; }
}

.hero-4d-canvas-wrapper[data-hero4d-cue="money-reverse"][data-hero4d-phase="ANALYSIS"] .hero-4d-money-stream,
.hero-4d-canvas-wrapper[data-hero4d-cue="money-reverse"][data-hero4d-phase="OUTPUT"] .hero-4d-money-stream {
    animation: moneyReverse 0.55s ease-out 0s 3;
}

/* Lion mane pulse (via glow intensity) */
@keyframes manePulse {
    0% { opacity: 0.55; filter: blur(0.3px); }
    50% { opacity: 0.88; filter: blur(0.45px); }
    100% { opacity: 0.62; filter: blur(0.3px); }
}

.hero-4d-canvas-wrapper[data-hero4d-cue="money-reverse"][data-hero4d-phase="ANALYSIS"] .hero-4d-layer--glow,
.hero-4d-canvas-wrapper[data-hero4d-cue="money-reverse"][data-hero4d-phase="DECISION"] .hero-4d-layer--glow,
.hero-4d-canvas-wrapper[data-hero4d-cue="money-reverse"][data-hero4d-phase="OUTPUT"] .hero-4d-layer--glow {
    animation: manePulse 0.32s ease-in-out 0s 5;
}

.hero-4d-layer--glow {
    opacity: 0.65;
    background:
        radial-gradient(360px 180px at 50% 55%, rgba(251, 191, 36, 0.16), transparent 60%),
        radial-gradient(420px 220px at 50% 65%, rgba(147, 197, 253, 0.10), transparent 66%);
    mix-blend-mode: screen;
    filter: blur(0.3px);
    transform: translate3d(calc(var(--gyro-x, 0px) * 0.22), calc(var(--gyro-y, 0px) * 0.22), 0);
}

.hero-4d-static-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    z-index: 1;
    pointer-events: none;
}

#hero4DScene {
    width: 100%;
    height: 100%;
    display: block;
    cursor: default;
    touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    position: relative;
    z-index: 1;
}

#hero4DScene:active {
    cursor: grabbing;
}

.hero-4d-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
    pointer-events: none;
    z-index: 4;
}

.hero-4d-overlay .hero-4d-agent-label {
    max-width: 92%;
    margin: 0 auto;
}

/* Depth stack layer 5: particle dust (foreground noise) */
.hero-4d-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.10) 0 1px, transparent 2px) 0 0 / 90px 90px,
        radial-gradient(circle at 70% 60%, rgba(251, 191, 36, 0.08) 0 1px, transparent 2px) 0 0 / 120px 120px,
        radial-gradient(circle at 40% 30%, rgba(147, 197, 253, 0.08) 0 1px, transparent 2px) 0 0 / 110px 110px;
    opacity: 0.35;
    filter: blur(0.25px);
    animation: dustDrift 9s linear infinite;
}

@keyframes dustDrift {
    0% {
        background-position: 0 0, 0 0, 0 0;
    }
    100% {
        background-position: 160px -120px, -120px 140px, 120px 180px;
    }
}

.hero-4d-controls {
    pointer-events: auto;
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
    justify-content: center;
}

.hero-4d-controls--below {
    margin: 12px 16px 14px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

@media (max-width: 480px) {
    .hero-4d-controls--below {
        margin: 10px 12px 12px;
        padding: 10px;
    }

    .hero-4d-control {
        min-width: 160px;
    }
}

.hero-4d-agent-label {
    text-shadow: 0 12px 30px rgba(0, 0, 0, 0.65);
}

.hero-4d-agent-label .agent-name {
    font-weight: 900;
    letter-spacing: -0.02em;
}

.hero-4d-agent-label .agent-state {
    display: block;
    margin-top: 4px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: rgba(147, 197, 253, 0.85);
    opacity: 0.95;
}

.hero-4d-control {
    display: grid;
    gap: 6px;
    min-width: 180px;
}

.hero-4d-control-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.72);
}

.hero-4d-select {
    -webkit-appearance: none;
    appearance: none;
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
    outline: none;
    cursor: pointer;
}

.hero-4d-select option {
    background: #1e293b;
    color: #f1f5f9;
    padding: 10px 12px;
}

.hero-4d-select option:checked,
.hero-4d-select option:hover {
    background: var(--primary-color);
    color: #ffffff;
}

.hero-4d-select:disabled {
    opacity: 0.55;
}

.hero-4d-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-4d-btn {
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.92);
    font-weight: 800;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

/* Dangerous button roles */
#hero4DRun {
    background: rgba(251, 191, 36, 0.18);
    border-color: rgba(251, 191, 36, 0.26);
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.10), 0 0 24px rgba(251, 191, 36, 0.10);
    filter: saturate(1.1);
    animation: none;
}

@keyframes runIdleGlow {
    0%, 100% {
        box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.10), 0 0 22px rgba(251, 191, 36, 0.09);
    }
    50% {
        box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.16), 0 0 34px rgba(251, 191, 36, 0.16);
    }
}

#hero4DPause {
    background: rgba(148, 163, 184, 0.10);
    border-color: rgba(148, 163, 184, 0.20);
}

#hero4DBG {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(147, 197, 253, 0.22);
}

.hero-4d-btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.26);
}

#hero4DRun:hover {
    background: rgba(251, 191, 36, 0.22);
    border-color: rgba(251, 191, 36, 0.34);
    transform: translateY(-1px) scale(1.01);
}

.hero-4d-btn:active {
    transform: translateY(0px);
    box-shadow: inset 0 10px 18px rgba(0, 0, 0, 0.35);
}

.hero-4d-btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

.hero-metrics-updated {
    margin: 10px 16px 16px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.65);
}

/* Mobile god-mode focus */
body.focus-mode::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.68);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    z-index: 998;
}

body.focus-mode .hero-4d-scene-card {
    position: relative;
    z-index: 999;
    box-shadow: 0 34px 88px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(251, 191, 36, 0.12);
    filter: saturate(0.92) brightness(1.02);
}

body.focus-mode #hero4DRun {
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.18), 0 0 58px rgba(251, 191, 36, 0.22);
}

/* ==========================================
   4D PRESENCE + REAL-TIME FEEL (no new sections)
   ========================================== */
.hero-agent-console {
    margin-top: 1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(15, 23, 42, 0.55);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 0.85rem 1rem;
    max-width: 520px;
}

.hero-agent-console-title {
    font-weight: 900;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.hero-agent-console-line {
    margin-top: 0.55rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    color: rgba(255, 255, 255, 0.80);
    font-weight: 700;
    line-height: 1.35;
    min-height: 1.35em;
}

.hero-console-block {
    margin-top: 0.55rem;
}

.hero-console-block-title {
    font-weight: 900;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: -0.01em;
    font-size: 0.86rem;
}

.hero-console-block-body {
    margin-top: 0.18rem;
    color: rgba(255, 255, 255, 0.80);
    font-weight: 700;
}

.hero-console-block-row {
    margin-top: 0.12rem;
}

.hero-console-footer {
    margin-top: 0.75rem;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.88);
    font-weight: 900;
}

.hero-agent-console-line::after {
    content: "";
    display: inline-block;
    width: 10px;
    height: 1.2em;
    margin-left: 6px;
    background: rgba(255, 255, 255, 0.75);
    animation: consoleCaret 1s steps(1) infinite;
    vertical-align: -2px;
}

@keyframes consoleCaret {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.lion-presence {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 9999;
    width: min(260px, calc(100vw - 28px));
    pointer-events: none;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(2, 6, 23, 0.60);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-lg);
    padding: 0.85rem 0.95rem;
    color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 720px) {
    .lion-presence {
        top: auto;
        right: 10px;
        left: 10px;
        bottom: 84px;
        width: auto;
        border-radius: 18px;
    }
}

.lion-presence-title {
    font-weight: 900;
    letter-spacing: -0.01em;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lion-presence-row {
    margin-top: 0.55rem;
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.9rem;
    align-items: flex-start;
}

.lion-presence-row .k {
    color: rgba(255, 255, 255, 0.65);
}

.lion-presence-row .v {
    font-weight: 900;
    max-width: 62%;
    text-align: right;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.stats-updated {
    margin-top: 10px;
    text-align: center;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.9rem;
}

.pricing-decision {
    margin-top: 14px;
    margin-bottom: 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    padding: 14px;
}

.pricing-decision-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: baseline;
    justify-content: space-between;
}

.pricing-decision-label {
    font-weight: 900;
}

.pricing-decision-values {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.pricing-decision-loss {
    color: var(--text-secondary);
}

.pricing-decision-slider {
    width: 100%;
    margin-top: 10px;
}

.pricing-live-ticker {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
}

.pricing-lock {
    width: 100%;
    margin-top: 10px;
    border-radius: 14px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(0, 0, 0, 0.18);
    color: rgba(255, 255, 255, 0.88);
    font-weight: 900;
}

.pricing-lock:disabled {
    opacity: 0.6;
}

/* Card life + reactivity */
.glass-agent-card {
    transform-style: preserve-3d;
    will-change: transform;
}

.glass-agent-card .product-photo img {
    animation: agentBreathe 4.5s ease-in-out infinite;
    transform: translateZ(18px);
}

@keyframes agentBreathe {
    0%, 100% { transform: translateZ(18px) scale(1); }
    50% { transform: translateZ(18px) scale(1.012); }
}

.agent-hover-long {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.10), var(--shadow-glow-primary);
}

body[data-intent-mode="decision"] .btn.btn-primary {
    box-shadow: var(--shadow-glow-primary);
}

body[data-intent-mode="thinking"] .btn.btn-primary {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

/* Sticky agent bar (mobile-first) */
.agent-sticky-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 9999;
    display: none;
    gap: 10px;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(2, 6, 23, 0.65);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.agent-sticky-btn {
    flex: 1;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.92);
    font-weight: 900;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.agent-sticky-btn span {
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .agent-sticky-bar {
        display: flex;
    }

    /* Avoid sticky bar covering content */
    body {
        padding-bottom: 86px;
    }

    /* Hero: single focal point, less dense */
    .hero-stats-mini {
        display: none;
    }

    /* Thumb reach + reduce hero text density */
    .hero-agent-console {
        max-width: 100%;
    }
}

/* Agent status light + speech */
.glass-agent-card {
    position: relative;
}

.agent-status {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(2, 6, 23, 0.55);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.90);
    font-weight: 900;
    font-size: 0.78rem;
    pointer-events: none;
    z-index: 4;
}

.agent-status .dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.agent-status[data-state="idle"] .dot { background: rgba(255, 255, 255, 0.55); }
.agent-status[data-state="active"] .dot { background: rgba(0, 255, 200, 0.85); }
.agent-status[data-state="away"] .dot { background: rgba(255, 214, 0, 0.90); }

@media (max-width: 768px) {
    /* Horizontal swipe for agent cards */
    .products-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 14px;
        padding-bottom: 10px;
    }
    .products-grid .glass-agent-card {
        min-width: 78vw;
        scroll-snap-align: start;
    }
}

.hero-4d-agent-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-4d-agent-label .agent-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-4d-agent-label .agent-role {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
}

.hero-4d-agent-label .agent-price {
    display: block;
    margin-top: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.72);
    opacity: 0.85;
    line-height: 1.15;
    max-width: 28rem;
    white-space: normal;
    overflow-wrap: anywhere;
}

.hero-4d-scene-card .hero-visual-metrics {
    margin: 16px;
    margin-top: 12px;
}

@media (max-width: 480px) {
    .hero {
        padding: 2.25rem 0;
    }

    .hero-title {
        font-size: 2.05rem;
        line-height: 1.1;
    }

    .hero-visual-metrics {
        grid-template-columns: 1fr;
    }
    
    .hero-4d-canvas-wrapper {
        height: clamp(200px, 44vh, 260px);
        margin: 12px;
    }
    
    .hero-4d-scene-card {
        min-height: 360px;
    }
}

/* Small-height / landscape phones: keep hero usable without pushing content off-screen */
@media (max-height: 520px) and (max-width: 980px) {
    .hero-4d-canvas-wrapper {
        height: clamp(180px, 52vh, 240px);
    }
    .hero-4d-controls--below {
        margin: 10px 12px 12px;
        padding: 10px;
    }
}

@media (min-width: 900px) {
    .hero-4d-canvas-wrapper {
        height: clamp(300px, 32vh, 420px);
    }
    .hero-4d-scene-card {
        min-height: clamp(460px, 54vh, 640px);
    }
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2rem;
    width: 100%;
    max-width: 500px;
}

.newsletter-form input {
    padding: 0.875rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: white;
    background: white;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.form-message {
    text-align: center;
    margin-top: 0.5rem;
    font-weight: 500;
    min-height: 20px;
}

.form-message.success {
    color: var(--success-color);
}

.form-message.error {
    color: var(--secondary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    text-align: center;
    width: 100%;
    max-width: 250px;
    position: relative;
    overflow: hidden;
}

.btn::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;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-submit {
    width: 100%;
}

/* Stats Section */
.stats {
    padding: 3rem 0;
    background: var(--bg-white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Company Logos Section */
.company-logos {
    padding: 3rem 0;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
    border-bottom: 1px solid var(--border-light);
}

.logos-title {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 2.5rem;
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem 1.5rem;
    background: var(--bg-white);
    border-radius: 16px;
    border: 2px solid var(--border-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.logo-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.05), transparent);
    transition: left 0.6s;
}

.logo-item:hover::before {
    left: 100%;
}

.logo-item:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.15);
}

.logo-item i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-item span {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text-primary);
    font-family: 'Space Grotesk', sans-serif;
}

/* Hero Enhancements */
.hero-badge {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.25);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge i {
    color: var(--gold);
    margin-right: 0.5rem;
}

.title-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-check {
    color: var(--success-color);
    margin-right: 0.5rem;
}

.hero-stats-mini {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.mini-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 0.95rem;
    opacity: 0.95;
}

.mini-stat i {
    font-size: 1.125rem;
}

.mini-stat strong {
    font-weight: 700;
    font-size: 1.125rem;
}

/* CTA Enhancements */
.cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.cta-shape {
    position: absolute;
    opacity: 0.1;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.cta-shape-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    top: -200px;
    right: -200px;
}

.cta-shape-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0) 70%);
    bottom: -250px;
    left: -250px;
    animation-delay: 10s;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.cta-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
}

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.cta-note {
    font-size: 0.875rem;
    opacity: 0.85;
}

.cta-note i {
    color: var(--success-color);
    margin: 0 0.25rem;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background: var(--bg-light);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    margin-top: -1.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotateY(360deg);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* AI Agents Showcase Section */
.agents-showcase {
    padding: 5rem 0;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
}

.category-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.filter-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.filter-btn:active::after {
    width: 300px;
    height: 300px;
}

.filter-btn:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    animation: scaleIn 0.3s ease-out;
}

.filter-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.filter-btn:hover i {
    transform: rotate(5deg) scale(1.1);
}

/* ===== KEYFRAME ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(99, 102, 241, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.8);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.agents-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.agent-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid var(--border-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: fadeInUp 0.6s ease-out backwards;
}

/* Staggered animation for cards */
.agent-card:nth-child(1) { animation-delay: 0.05s; }
.agent-card:nth-child(2) { animation-delay: 0.1s; }
.agent-card:nth-child(3) { animation-delay: 0.15s; }
.agent-card:nth-child(4) { animation-delay: 0.2s; }
.agent-card:nth-child(5) { animation-delay: 0.25s; }
.agent-card:nth-child(n+6) { animation-delay: 0.3s; }

.agent-status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.agent-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.agent-card:hover::before {
    transform: scaleX(1);
}

.agent-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}

.agent-card.hidden {
    display: none;
}

.agent-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    transition: all 0.4s ease;
}

.agent-card:hover .agent-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.2));
}

.agent-icon i {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.agent-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.agent-tagline {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
    font-weight: 500;
}

.agent-metrics {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(236, 72, 153, 0.05));
    padding: 1rem;
    border-radius: 12px;
    margin: 0.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.metric-label {
    color: var(--text-secondary);
    font-weight: 600;
}

.metric-value {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 0.95rem;
}

.agent-sector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(236, 72, 153, 0.05));
    border-radius: 8px;
    margin-top: auto;
}

.agent-sector i {
    color: var(--primary-color);
}

.btn-agent {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-agent::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;
}

.btn-agent::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-agent:active::after {
    width: 200px;
    height: 200px;
}

.btn-agent:hover::before {
    left: 100%;
}

.btn-agent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.btn-agent:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-agent i {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-agent:hover i {
    transform: translateX(2px);
}

/* Enhanced Agent Card Features */
.agent-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.agent-complexity {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 2px solid;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.5);
}

.complexity-text {
    color: var(--text-primary);
}

.agent-problem {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(236, 72, 153, 0.08));
    border-radius: 10px;
    border-left: 3px solid var(--primary-color);
    margin: 1rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.agent-problem i {
    color: var(--primary-color);
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.agent-roi {
    padding: 1rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    border-radius: 10px;
    margin: 1rem 0;
}

.roi-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.roi-bars {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.roi-score {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.6s ease;
}

.roi-number {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.agent-benefits {
    margin: 1rem 0;
    padding: 0.875rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(4, 120, 87, 0.08));
    border-radius: 10px;
    border-left: 3px solid var(--success-color);
}

.benefits-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.benefits-label i {
    color: var(--success-color);
}

.benefits-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.benefits-list li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.benefits-list i {
    color: var(--success-color);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.agent-implementation {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(37, 99, 235, 0.08));
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 1rem 0;
}

.impl-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.impl-time i {
    color: var(--info-color);
}

/* Agent Details Modal */
.agent-details-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    -webkit-backdrop-filter: blur(0px);
    backdrop-filter: blur(0px);
}

.agent-details-modal.active {
    opacity: 1;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    animation: fadeInUp 0.3s ease-out;
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2rem;
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border: none;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    border-radius: 10px;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-close:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: rotate(90deg) scale(1.1);
}

.modal-close:active {
    transform: rotate(90deg) scale(0.95);
}

.modal-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-light);
}

.modal-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(236, 72, 153, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
}

.modal-icon i {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-title-section h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.75rem;
    color: var(--text-primary);
}

.modal-subtitle {
    color: var(--text-secondary);
    margin: 0 0 1rem 0;
    font-size: 1rem;
}

.modal-status-badge {
    display: inline-block;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.modal-section {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(236, 72, 153, 0.05));
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    animation: fadeInUp 0.5s ease-out backwards;
}

.modal-section:nth-child(1) { animation-delay: 0.1s; }
.modal-section:nth-child(2) { animation-delay: 0.2s; }
.modal-section:nth-child(3) { animation-delay: 0.3s; }

.modal-section h3 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.3s ease;
}

.modal-section h3 i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.modal-section h3:hover i {
    transform: rotate(5deg) scale(1.1);
}

.modal-section p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

.benefits-detailed {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.benefits-detailed li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
}

.benefits-detailed li:hover {
    background: rgba(99, 102, 241, 0.08);
    transform: translateX(4px);
}

.benefits-detailed i {
    color: var(--success-color);
    font-size: 0.9rem;
    flex-shrink: 0;
    animation: bounce 0.6s ease-out;
}

.benefits-detailed li:nth-child(1) i { animation-delay: 0s; }
.benefits-detailed li:nth-child(2) i { animation-delay: 0.1s; }
.benefits-detailed li:nth-child(3) i { animation-delay: 0.2s; }
.benefits-detailed li:nth-child(4) i { animation-delay: 0.3s; }

.modal-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.stat-box {
    padding: 1.25rem;
    background: white;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: scaleIn 0.5s ease-out backwards;
}

.stat-box:nth-child(1) { animation-delay: 0.3s; }
.stat-box:nth-child(2) { animation-delay: 0.4s; }
.stat-box:nth-child(3) { animation-delay: 0.5s; }

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-box:hover::before {
    transform: scaleX(1);
}

.stat-box:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.15);
}

.stat-icon {
    font-size: 1.75rem;
    transition: transform 0.3s ease;
    animation: bounce 0.6s ease-out;
}

.stat-box:hover .stat-icon {
    transform: scale(1.2) rotate(-5deg);
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 700;
    transition: all 0.3s ease;
}

.stat-box:hover .stat-value {
    transform: scale(1.1);
}

.impl-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.impl-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.impl-item:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(236, 72, 153, 0.05));
    border-color: rgba(99, 102, 241, 0.2);
}

.impl-label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

.impl-value {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.95rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-light);
    animation: fadeInUp 0.6s ease-out 0.5s backwards;
}

.btn-primary {
    flex: 1;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    min-height: 48px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary i {
    transition: transform 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover i {
    transform: rotate(5deg);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    flex: 1;
    padding: 1rem;
    background: var(--border-light);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    min-height: 48px;
}

.btn-secondary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-secondary:active::after {
    width: 300px;
    height: 300px;
}

.btn-secondary:hover {
    background: var(--border-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 90vh;
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .modal-header {
        flex-direction: column;
        text-align: center;
        margin-bottom: 1.5rem;
        gap: 1rem;
    }
    
    .modal-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
        margin: 0 auto;
    }
    
    .modal-title-section h2 {
        font-size: 1.5rem;
    }
    
    .modal-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .stat-box {
        min-height: 100px;
        padding: 1rem;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-primary, .btn-secondary {
        min-height: 44px;
        width: 100%;
        font-size: 0.95rem;
        padding: 0.875rem 1rem;
    }
    
    .category-filter {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.625rem 1rem;
        font-size: 0.8rem;
        min-height: 40px;
        min-width: 40px;
    }
    
    .agents-grid {
        gap: 1rem;
    }
    
    .agent-card {
        padding: 1.5rem;
        gap: 0.75rem;
    }
    
    .agent-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .agent-name {
        font-size: 1.25rem;
    }
    
    .agent-tagline {
        font-size: 0.9rem;
    }
    
    .agent-metrics {
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .metric {
        font-size: 0.85rem;
    }
    
    .agent-benefits {
        padding: 0.75rem;
    }
    
    .benefits-list {
        gap: 0.375rem;
    }
    
    .benefits-list li {
        font-size: 0.8rem;
    }
    
    .modal-section {
        padding: 1rem;
    }
    
    .modal-section h3 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        padding: 1.25rem;
    }
    
    .agent-card {
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .agent-name {
        font-size: 1.1rem;
    }
    
    .agent-tagline {
        font-size: 0.85rem;
    }
    
    .category-filter {
        flex-direction: row;
        overflow-x: auto;
        scroll-behavior: smooth;
    }
    
    .filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .btn-agent {
        padding: 0.75rem;
        font-size: 0.9rem;
        min-height: 44px;
    }
}

.agents-cta {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(236, 72, 153, 0.05));
    border-radius: 16px;
    border: 2px dashed var(--border-color);
}

.agents-preview {
    margin-top: 6rem;
}

.agents-cta p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin: 0;
}

.agents-cta i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.link-primary {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.link-primary:hover {
    border-bottom-color: var(--primary-color);
}

/* Testimonials Section */
.testimonials {
    padding: 4rem 0;
    background: var(--bg-light);
}

.testimonials-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 50px;
}

.testimonials-track {
    overflow: hidden;
    position: relative;
}

.testimonial-card {
    display: none;
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
    border: 2px solid transparent;
    background-image: linear-gradient(var(--bg-white), var(--bg-white)), linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.testimonial-card.active {
    display: block;
}

.testimonial-stars {
    font-size: 1.5rem;
    color: #fbbf24;
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
}

.author-title {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: left;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    z-index: 10;
}

.slider-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.slider-btn.prev {
    left: 0;
}

.slider-btn.next {
    right: 0;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 5px;
}

/* Pricing Section */
.pricing {
    padding: 4rem 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.pricing-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.pricing-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.pricing-card:hover::after {
    opacity: 1;
}

.pricing-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-light);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.2);
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.02) 0%, var(--bg-white) 100%);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: translateY(-10px) scale(1.07);
    box-shadow: 0 35px 70px rgba(99, 102, 241, 0.25);
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.price {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.25rem;
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.amount {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
}

.period {
    font-size: 1rem;
    color: var(--text-secondary);
    align-self: flex-end;
    margin-bottom: 0.75rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.875rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.pricing-features li:hover {
    color: var(--text-primary);
    padding-left: 0.5rem;
}

.pricing-features li i {
    color: var(--success-color);
    font-size: 1rem;
    flex-shrink: 0;
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* FAQ Section */
.faq {
    padding: 4rem 0;
    background: var(--bg-white);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 1.5rem;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Trust Badges */
.trust-badges {
    padding: 3rem 0;
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.trust-title {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 2rem;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.badge-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(236, 72, 153, 0.05));
    border-radius: 12px;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.badge-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
}

.badge-item i {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* CTA Section */
.cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-section h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-purple);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
    z-index: 1000;
    transition: transform 0.3s ease;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
    }
    50% {
        box-shadow: 0 8px 40px rgba(99, 102, 241, 0.6), 0 0 0 10px rgba(99, 102, 241, 0.1);
    }
}

.chat-widget:hover {
    transform: scale(1.1);
    animation: none;
}

.chat-icon {
    font-size: 1.75rem;
}

.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--secondary-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    border: 2px solid white;
}

.chat-box {
    position: fixed;
    bottom: 100px;
    right: 2rem;
    width: 350px;
    height: 500px;
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: none;
    flex-direction: column;
    animation: slideUp 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.chat-box.active {
    display: flex;
}

.chat-header {
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    margin: 0;
    font-size: 1.125rem;
}

.chat-status {
    font-size: 0.75rem;
    margin: 0;
    opacity: 0.9;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
}

.chat-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-settings {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.chat-settings:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.3);
}

.integration-status {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

.status-pill.status-on {
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.12);
}

.status-pill.status-off {
    border-color: rgba(245, 158, 11, 0.28);
    background: rgba(245, 158, 11, 0.10);
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 16px;
    flex-wrap: wrap;
}

.form-hint {
    display: block;
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

.integrations-description {
    margin-top: 8px;
}

.integrations-form {
    margin-top: 18px;
}

.toggle-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.toggle-label {
    margin: 0;
}

.toggle-control {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.toggle-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message {
    display: flex;
    align-items: flex-start;
}

.chat-message.bot {
    justify-content: flex-start;
}

.chat-message.user {
    justify-content: flex-end;
}

.message-bubble {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: var(--bg-light);
}

.chat-message.user .message-bubble {
    background: var(--primary-color);
    color: white;
}

.message-bubble p {
    margin: 0 0 0.25rem 0;
    line-height: 1.5;
}

.message-time {
    font-size: 0.75rem;
    opacity: 0.7;
}

.chat-input-container {
    display: flex;
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    gap: 0.5rem;
}

.chat-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.875rem;
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.chat-send {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.chat-send:hover {
    background: var(--primary-dark);
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--text-primary);
    color: white;
    padding: 1.5rem;
    z-index: 1500;
    display: none;
    animation: slideUpCookie 0.5s ease;
}

@keyframes slideUpCookie {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-consent.active {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}

.cookie-content p {
    margin: 0;
    line-height: 1.6;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Tablet Styles */
@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }

    .nav-menu {
        display: flex;
        position: static;
        box-shadow: none;
        padding: 0;
        gap: 2rem;
        align-items: center;
    }

    .nav-menu li {
        padding: 0;
    }

    .hero {
        padding: 5rem 0;
        text-align: left;
    }

    .hero-grid {
        grid-template-columns: 1.08fr 0.92fr;
        gap: 2.5rem;
    }

    .hero-content {
        max-width: 700px;
        margin: 0;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-cta {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        flex-wrap: wrap;
    }

    .hero-stats-mini {
        justify-content: flex-start;
    }

    .hero .hero-urgency {
        justify-content: flex-start;
    }

    .hero-visual {
        justify-self: end;
        width: min(600px, 100%);
    }

    .newsletter-form {
        flex-direction: row;
        max-width: 600px;
        margin-left: 0;
        margin-right: auto;
    }

    .newsletter-form input {
        flex: 1;
    }

    .newsletter-form button {
        width: auto;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .stat-number {
        font-size: 3rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .badges-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .logos-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .agents-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .cookie-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .hero {
        padding: 6rem 0;
    }

    .hero-grid {
        grid-template-columns: 1.15fr 0.85fr;
        gap: 3rem;
        align-items: start;
    }

    .hero-title {
        font-size: 3.75rem;
    }

    .stat-number {
        font-size: 3.5rem;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }

    .btn {
        width: auto;
    }

    .chat-box {
        width: 380px;
        height: 550px;
    }

    .hero-visual {
        width: min(640px, 100%);
    }

    /* Keep a single source of truth for desktop hero title sizing.
       The responsive clamp in responsive-enhancements.css provides final sizing. */

    .cta-content h2 {
        font-size: 3.5rem;
    }

    .cta-icon {
        font-size: 5rem;
    }

    .logos-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .agents-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .section-title {
        font-size: 2.5rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.feature-card,
.pricing-card {
    animation: fadeIn 0.6s ease-out;
}

/* ==========================================
   SCROLL TO TOP BUTTON
   ========================================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

/* ==========================================
   FORM VALIDATION STYLES
   ========================================== */
.field-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
    animation: shake 0.3s ease;
}

input.error,
textarea.error,
select.error {
    border-color: #ef4444 !important;
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ==========================================
   LOADING STATES
   ========================================== */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==========================================
   SCROLL ANIMATIONS
   ========================================== */
.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   ACCESSIBILITY IMPROVEMENTS
   ========================================== */
*:focus {
    outline: 2px solid var(--accent-purple);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.skip-to-main {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 1rem 1.5rem;
    background: var(--accent-purple);
    color: white;
    text-decoration: none;
    border-radius: 0 0 8px 0;
}

.skip-to-main:focus {
    left: 0;
    top: 0;
}

/* ==========================================
   PERFORMANCE OPTIMIZATIONS
   ========================================== */
img {
    max-width: 100%;
    height: auto;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #ffffff;
        --text-secondary: #e0e0e0;
    }
}

/* Print styles */
@media print {
    header, footer, .chat-widget, .cookie-consent, .modal, .scroll-to-top {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
}

/* ==========================================
   EXPLORE SECTION (moved from inline styles)
   ========================================== */
.explore-section {
    padding: 4rem 0;
    position: relative;
    z-index: 10;
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.explore-section .card {
    padding: 2rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.explore-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.explore-icon--primary {
    background: var(--gradient-primary);
}

.explore-icon--secondary {
    background: var(--gradient-secondary);
}

.explore-section h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.explore-section p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* ==========================================
   HERO 4D LOADER (blocks interactions until ready)
   ========================================== */
.hero-4d-canvas-wrapper {
    position: relative;
}

/* Live system strip (session/intent/observing) */
.hero-system-strip{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:8px;
    flex-wrap:wrap;
    padding:10px 12px;
    border-bottom:1px solid rgba(255,255,255,0.08);
    background:rgba(2,6,23,0.35);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.sys-chip{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:6px 10px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,0.14);
    background:rgba(2,6,23,0.50);
    color:rgba(255,255,255,0.88);
    font-weight:850;
    font-size:0.78rem;
    letter-spacing:-0.01em;
    white-space:nowrap;
}
.sys-chip-action{
    cursor:pointer;
}
.sys-chip-action:disabled{opacity:0.6;cursor:not-allowed;}
.sys-dot{
    width:8px;
    height:8px;
    border-radius:999px;
    background:rgba(34,197,94,0.95);
    box-shadow:0 0 0 0 rgba(34,197,94,0.35);
    animation:sysPulse 1.4s ease-in-out infinite;
}
@keyframes sysPulse{
    0%{box-shadow:0 0 0 0 rgba(34,197,94,0.28);opacity:0.9;}
    70%{box-shadow:0 0 0 10px rgba(34,197,94,0.00);opacity:1;}
    100%{box-shadow:0 0 0 0 rgba(34,197,94,0.00);opacity:0.95;}
}

/* Typing cursor for hero system line */
.hero-agent-console-line{position:relative;}
.hero-agent-console-line::after{
    content:'▍';
    display:inline-block;
    margin-left:6px;
    opacity:0.85;
    animation:heroCursor 0.95s steps(1,end) infinite;
}
@keyframes heroCursor{50%{opacity:0.12;}}

/* Page orchestration via agent state (lightweight: opacity + animation pacing) */
html[data-agent-state="THINKING"] .products-grid,
html[data-agent-state="THINKING"] .stats-grid,
html[data-agent-state="THINKING"] .pricing-grid{filter:saturate(0.92);}

html[data-agent-state="BACKGROUND"] main{opacity:0.92;}
html[data-agent-state="BACKGROUND"] .hero-visual-card{box-shadow:none;}

html[data-agent-state="RUNNING_TASK"] .hero-visual-card,
html[data-agent-state="WORKING"] .hero-visual-card{transform:translateZ(0);}

html[data-agent-state="COMPLETED"] main{opacity:0.985;}

/* Pricing evaluation lock (brief, once) */
.pricing-eval-overlay{position:absolute;inset:0;display:flex;align-items:flex-start;justify-content:center;padding:18px;z-index:6;pointer-events:none;}
.pricing-eval-card{margin-top:10px;padding:12px 14px;border-radius:14px;border:1px solid rgba(255,255,255,0.14);background:rgba(2,6,23,0.74);color:rgba(255,255,255,0.92);font-weight:950;letter-spacing:-0.02em;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:0 18px 54px rgba(0,0,0,0.38)}
.pricing-eval-locked{pointer-events:none;}
.pricing-eval-locked .pricing-card,.pricing-eval-locked .pricing-decision{filter:saturate(0.9) brightness(0.92);}

.hero-4d-canvas-wrapper[data-hero4d-state="loading"] canvas,
.hero-4d-canvas-wrapper[data-hero4d-state="error"] canvas {
    pointer-events: none;
}

.hero-4d-loader {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    z-index: 6;
}

.hero-4d-canvas-wrapper[data-hero4d-state="loading"] .hero-4d-loader,
.hero-4d-canvas-wrapper[data-hero4d-state="error"] .hero-4d-loader {
    display: flex;
}

.hero-4d-loader-inner {
    width: min(420px, 92%);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    background: var(--bg-glass-dark);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-lg);
    padding: 1.25rem 1.25rem 1rem;
    text-align: center;
}

.hero-4d-loader-spinner {
    width: 44px;
    height: 44px;
    margin: 0 auto 0.75rem;
    border-radius: 999px;
    border: 3px solid rgba(255, 255, 255, 0.12);
    border-top-color: rgba(255, 255, 255, 0.65);
    animation: hero4dSpin 0.9s linear infinite;
}

.hero-4d-loader-title {
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.hero-4d-loader-subtitle {
    margin-top: 0.25rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.hero-4d-loader-bar {
    position: relative;
    height: 10px;
    margin-top: 0.9rem;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.10);
}

.hero-4d-loader-bar span {
    position: absolute;
    inset: 0;
    transform: translateX(-60%);
    background: var(--gradient-primary);
    opacity: 0.9;
    animation: hero4dBar 1.2s ease-in-out infinite;
}

.hero-4d-canvas-wrapper[data-hero4d-state="ready"] .hero-4d-loader {
    display: none !important;
}

@keyframes hero4dSpin {
    to { transform: rotate(360deg); }
}

@keyframes hero4dBar {
    0%   { transform: translateX(-70%); }
    50%  { transform: translateX(0%); }
    100% { transform: translateX(70%); }
}

/* ==========================================
   END OF STYLES - READY FOR PRODUCTION
   ========================================== */


/* [AUDIT FIX] Extracted Inline Styles */
.pt-8rem { padding-top: 8rem; }
.mt-4rem { margin-top: 4rem; }
.text-muted-sm { margin-top: 1rem; font-size: 0.9rem; color: #94a3b8; }
.text-muted-xs { font-size: 0.875rem; color: #94a3b8; margin-top: 0.5rem; }
.footer-disclaimer { text-align: center; padding: 1rem; font-size: 0.8rem; color: #64748b; }
.platform-disclaimer-bar { background: #0f172a; color: #64748b; font-size: 0.75rem; text-align: center; padding: 0.5rem; border-top: 1px solid #1e293b; position: relative; z-index: 9999; }
.disclaimer-link { color: #64748b; text-decoration: underline; }
.entity-registration { font-size: 0.8em; opacity: 0.7; }
.btn-full-width { width: 100%; text-align: center; }
.agents-intro-text { max-width: 700px; margin: 0 auto 2rem; color: var(--text-secondary); }
.d-none { display: none; }
.text-success-custom { color: #34d399; }
.hash-display { font-size: 0.9rem; word-break: break-all; }
