/* NovarisAI Enhanced Styles - 2026 Edition */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #a5b4fc;
    --secondary: #06b6d4;
    --accent: #8b5cf6;
    --accent-pink: #ec4899;
    --accent-orange: #f97316;
    --dark: #0a0a0f;
    --dark-light: #1a1a2e;
    --dark-medium: #16213e;
    --light: #fafbff;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --success: #10b981;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    --gradient-dark: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
    --gradient-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 50%, rgba(6, 182, 212, 0.15) 100%);
    --gradient-hero: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Animated Background */
.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.animated-bg::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background:
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(6, 182, 212, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(236, 72, 153, 0.2) 0%, transparent 40%);
    animation: float-bg 20s ease-in-out infinite;
}

/* AI Visual Elements - Glowing Orbs */
.animated-bg::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image:
        radial-gradient(circle 120px at 15% 20%, rgba(99, 102, 241, 0.15), transparent),
        radial-gradient(circle 150px at 85% 30%, rgba(139, 92, 246, 0.15), transparent),
        radial-gradient(circle 100px at 25% 75%, rgba(6, 182, 212, 0.15), transparent),
        radial-gradient(circle 130px at 75% 80%, rgba(236, 72, 153, 0.15), transparent);
    animation: orb-pulse 8s ease-in-out infinite;
}

@keyframes orb-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

@keyframes float-bg {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(2%, 2%) rotate(1deg); }
    50% { transform: translate(-1%, 3%) rotate(-1deg); }
    75% { transform: translate(-2%, -1%) rotate(0.5deg); }
}

/* Enhanced animations for boxes */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.3), 0 0 40px rgba(139, 92, 246, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(99, 102, 241, 0.5), 0 0 60px rgba(139, 92, 246, 0.3);
    }
}

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

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

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes scale-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Grid Pattern */
.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 1;
}

/* Neural Network Visualization */
.grid-pattern::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(45deg, transparent 40%, rgba(99, 102, 241, 0.03) 40%, rgba(99, 102, 241, 0.03) 60%, transparent 60%),
        linear-gradient(-45deg, transparent 40%, rgba(139, 92, 246, 0.03) 40%, rgba(139, 92, 246, 0.03) 60%, transparent 60%);
    background-size: 120px 120px;
    animation: neural-shift 20s linear infinite;
    pointer-events: none;
}

@keyframes neural-shift {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 120px 120px, -120px -120px; }
}

/* Floating Particles */
.grid-pattern::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle 2px, rgba(99, 102, 241, 0.4) 0%, transparent 100%),
        radial-gradient(circle 2px, rgba(139, 92, 246, 0.4) 0%, transparent 100%),
        radial-gradient(circle 2px, rgba(6, 182, 212, 0.4) 0%, transparent 100%);
    background-size: 200px 200px, 250px 250px, 180px 180px;
    background-position: 0 0, 50px 50px, 100px 25px;
    animation: particle-float 30s linear infinite;
    pointer-events: none;
}

@keyframes particle-float {
    0% { transform: translateY(0) translateX(0); }
    100% { transform: translateY(-100px) translateX(50px); }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

nav.scrolled {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
    background: rgba(99, 102, 241, 0.2);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

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

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

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 5% 80px;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, rgba(10, 10, 15, 0.8), transparent);
    pointer-events: none;
    z-index: 5;
}

/* AI Neural Network Visualization */
.ai-visualization {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1200px;
    height: 600px;
    opacity: 0.15;
    z-index: 2;
    pointer-events: none;
}

.ai-visualization svg {
    width: 100%;
    height: 100%;
}

.neural-nodes circle {
    animation: node-pulse 3s ease-in-out infinite;
}

.neural-nodes circle:nth-child(1) { animation-delay: 0s; }
.neural-nodes circle:nth-child(2) { animation-delay: 0.3s; }
.neural-nodes circle:nth-child(3) { animation-delay: 0.6s; }
.neural-nodes circle:nth-child(4) { animation-delay: 0.9s; }
.neural-nodes circle:nth-child(5) { animation-delay: 1.2s; }
.neural-nodes circle:nth-child(6) { animation-delay: 1.5s; }
.neural-nodes circle:nth-child(7) { animation-delay: 1.8s; }
.neural-nodes circle:nth-child(8) { animation-delay: 2.1s; }
.neural-nodes circle:nth-child(9) { animation-delay: 2.4s; }

@keyframes node-pulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.3);
    }
}

.neural-lines line {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: line-draw 6s ease-in-out infinite;
}

.neural-lines line:nth-child(1) { animation-delay: 0s; }
.neural-lines line:nth-child(2) { animation-delay: 0.4s; }
.neural-lines line:nth-child(3) { animation-delay: 0.8s; }
.neural-lines line:nth-child(4) { animation-delay: 1.2s; }
.neural-lines line:nth-child(5) { animation-delay: 1.6s; }
.neural-lines line:nth-child(6) { animation-delay: 2s; }
.neural-lines line:nth-child(7) { animation-delay: 2.4s; }

@keyframes line-draw {
    0% {
        stroke-dashoffset: 300;
        opacity: 0.1;
    }
    50% {
        stroke-dashoffset: 0;
        opacity: 0.4;
    }
    100% {
        stroke-dashoffset: -300;
        opacity: 0.1;
    }
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 10;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 100px;
    color: var(--primary-light);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, #a5b4fc 0%, #06b6d4 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 5;
}

/* Hero Feature Cards - New organized layout */
.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 4rem auto 0;
    position: relative;
    z-index: 10;
}

.hero-feature-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    animation: slideInUp 0.8s ease forwards;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

/* AI Circuit Pattern in Cards */
.hero-feature-card::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background-image:
        radial-gradient(circle at 50% 50%, transparent 30%, rgba(99, 102, 241, 0.05) 30%, rgba(99, 102, 241, 0.05) 31%, transparent 31%),
        radial-gradient(circle at 50% 50%, transparent 40%, rgba(139, 92, 246, 0.05) 40%, rgba(139, 92, 246, 0.05) 41%, transparent 41%);
    background-size: 80px 80px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.hero-feature-card:hover::after {
    opacity: 1;
}

.hero-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.hero-feature-card:hover::before {
    transform: scaleX(1);
}

.hero-feature-card:nth-child(1) { animation-delay: 0.2s; }
.hero-feature-card:nth-child(2) { animation-delay: 0.3s; }
.hero-feature-card:nth-child(3) { animation-delay: 0.4s; }
.hero-feature-card:nth-child(4) { animation-delay: 0.5s; }

.hero-feature-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.3), 0 0 20px rgba(99, 102, 241, 0.2);
}

.hero-feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.hero-feature-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    background: var(--gradient-primary);
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-feature-card:hover .hero-feature-icon::after {
    opacity: 1;
}

.hero-feature-card:hover .hero-feature-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(139, 92, 246, 0.4));
}

.hero-feature-icon svg {
    width: 36px;
    height: 36px;
    stroke: white;
    transition: all 0.3s ease;
}

.hero-feature-card:hover .hero-feature-icon svg {
    stroke: white;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.hero-feature-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.hero-feature-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.hero-feature-card:hover .hero-feature-content p {
    color: rgba(255, 255, 255, 0.9);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

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

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 100px 5%;
    position: relative;
}

.section-dark {
    background: var(--gradient-dark);
    color: white;
    position: relative;
    overflow: hidden;
}

/* AI Data Visualization Background */
.section-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(45deg, transparent 48%, rgba(99, 102, 241, 0.03) 49%, rgba(99, 102, 241, 0.03) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(139, 92, 246, 0.03) 49%, rgba(139, 92, 246, 0.03) 51%, transparent 52%);
    background-size: 100px 100px;
    animation: stats-pattern-move 20s linear infinite;
    pointer-events: none;
}

@keyframes stats-pattern-move {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 100px 100px, -100px -100px; }
}

.section-dark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    animation: glow-pulse 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glow-pulse {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(0.9);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header .badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.section-dark .section-header .badge {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-light);
}

.section-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-dark .section-header h2 {
    color: white;
}

.section-header p {
    color: var(--gray);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-dark .section-header p {
    color: rgba(255, 255, 255, 0.7);
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: slideInUp 0.6s ease forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.15);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-glow);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.feature-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-primary);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover .feature-icon::before {
    opacity: 1;
}

.feature-icon svg {
    width: 35px;
    height: 35px;
    stroke: var(--primary);
    transition: stroke 0.3s ease;
}

.feature-card:hover .feature-icon svg {
    stroke: white;
}

.feature-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--gray);
    line-height: 1.7;
}

/* Agent Cards - Special styling for AI Agents */
.agent-card {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    border: 1px solid var(--glass-border);
    color: white;
    position: relative;
    overflow: hidden;
}

.agent-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    pointer-events: none;
    animation: pulse-glow 4s ease-in-out infinite;
}

.agent-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3), 0 0 40px rgba(99, 102, 241, 0.2);
}

.agent-card h3 {
    color: white;
}

.agent-card p {
    color: rgba(255, 255, 255, 0.7);
}

.agent-card .feature-icon {
    background: rgba(99, 102, 241, 0.2);
}

.agent-card .feature-icon svg {
    stroke: var(--primary-light);
}

.agent-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--gradient-primary);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

/* Products Section */
.products {
    background: linear-gradient(180deg, var(--light) 0%, #e0e7ff 50%, var(--light) 100%);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(99, 102, 241, 0.2);
}

.product-image {
    height: 220px;
    background: var(--gradient-primary);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: shimmer 10s linear infinite;
}

@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.product-image svg {
    width: 90px;
    height: 90px;
    stroke: white;
    opacity: 0.95;
    position: relative;
    z-index: 2;
}

.product-content {
    padding: 2rem;
}

.product-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.product-content p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* AI Visual Elements */
.ai-visual {
    position: relative;
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-brain {
    width: 200px;
    height: 200px;
    background: var(--gradient-primary);
    border-radius: 50%;
    position: relative;
    animation: brain-pulse 4s ease-in-out infinite;
    box-shadow:
        0 0 60px rgba(99, 102, 241, 0.4),
        0 0 120px rgba(139, 92, 246, 0.2);
}

.ai-brain::before,
.ai-brain::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(99, 102, 241, 0.3);
    animation: orbit 8s linear infinite;
}

.ai-brain::before {
    width: 280px;
    height: 280px;
    top: -40px;
    left: -40px;
}

.ai-brain::after {
    width: 360px;
    height: 360px;
    top: -80px;
    left: -80px;
    animation-duration: 12s;
    animation-direction: reverse;
}

@keyframes brain-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes orbit {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Page Headers */
.page-header {
    padding: 160px 5% 100px;
    background: var(--gradient-hero);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    position: relative;
    z-index: 10;
}

.page-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    z-index: 10;
    max-width: 600px;
    margin: 0 auto;
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-header {
    padding: 2.5rem;
    background: var(--gradient-primary);
    color: white;
    position: relative;
    overflow: hidden;
}

.service-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.service-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
}

.service-header p {
    opacity: 0.9;
    position: relative;
}

.service-body {
    padding: 2.5rem;
}

.key-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.point-card {
    padding: 1.5rem;
    background: var(--gradient-glow);
    border-radius: 16px;
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.point-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
}

.point-card h4 {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.point-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

.metric-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 16px;
    font-weight: 700;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.metric-badge span {
    font-size: 2rem;
    font-family: 'Space Grotesk', sans-serif;
}

/* Contact Form */
.contact-form {
    max-width: 650px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 28px;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fafbff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    background: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.team-card {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 28px;
    text-align: center;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.15);
}

.team-avatar {
    width: 130px;
    height: 130px;
    background: var(--gradient-primary);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.team-avatar::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: var(--gradient-primary);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.3;
}

.team-avatar svg {
    width: 65px;
    height: 65px;
    stroke: white;
}

.team-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.team-card p {
    color: var(--primary);
    font-weight: 600;
}

/* Blog Content */
.blog-content {
    max-width: 850px;
    margin: -80px auto 60px;
    padding: 3.5rem;
    background: white;
    border-radius: 28px;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 10;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.article-meta {
    color: var(--gray);
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 2rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.article-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    margin: 2.5rem 0 1rem;
}

.article-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #334155;
    line-height: 1.8;
}

.highlight-box {
    background: var(--gradient-glow);
    border-left: 4px solid var(--primary);
    padding: 1.5rem 2rem;
    border-radius: 0 16px 16px 0;
    margin: 2rem 0;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 80px 5% 30px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-section h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    display: block;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-light);
    transform: translateX(5px);
}

.footer-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    display: block;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
}

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

    .hero-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-top: 3rem;
    }

    .hero-feature-card {
        padding: 1.5rem;
    }

    .hero-feature-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }

    .hero-feature-icon svg {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background: var(--dark);
        flex-direction: column;
        padding: 100px 2rem 2rem;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-links.active {
        right: 0;
    }

    .features-grid,
    .product-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 60px 5%;
    }

    .contact-form {
        padding: 2rem;
    }

    .blog-content {
        margin: -50px 1rem 40px;
        padding: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .hero-features {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 2.5rem;
    }

    .hero-feature-card {
        padding: 1.5rem;
    }

    .hero-feature-content h3 {
        font-size: 1.1rem;
    }

    .hero-feature-content p {
        font-size: 0.9rem;
    }

    /* Hide complex visualizations on mobile for performance */
    .ai-visualization {
        display: none;
    }

    .section-dark::before,
    .section-dark::after {
        opacity: 0.3;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    position: relative;
    opacity: 0;
    animation: slideInUp 0.8s ease forwards;
    transition: transform 0.3s ease;
    z-index: 2;
}

/* AI Data Chart Visualization Behind Stats */
.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 40px;
    background: linear-gradient(to top,
        rgba(99, 102, 241, 0.2) 0%,
        rgba(99, 102, 241, 0.1) 20%,
        rgba(99, 102, 241, 0.15) 40%,
        rgba(99, 102, 241, 0.08) 60%,
        rgba(99, 102, 241, 0.12) 80%,
        rgba(99, 102, 241, 0.05) 100%);
    clip-path: polygon(
        0% 100%, 10% 60%, 20% 80%, 30% 40%, 40% 70%,
        50% 30%, 60% 65%, 70% 45%, 80% 75%, 90% 50%, 100% 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.stat-card:hover::after {
    opacity: 1;
}

.stat-card:nth-child(1) { animation-delay: 0.2s; }
.stat-card:nth-child(2) { animation-delay: 0.3s; }
.stat-card:nth-child(3) { animation-delay: 0.4s; }
.stat-card:nth-child(4) { animation-delay: 0.5s; }

.stat-card:hover {
    transform: translateY(-8px);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    animation: gradient-shift 3s ease infinite;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    transition: color 0.3s ease;
}

.stat-card:hover .stat-label {
    color: rgba(255, 255, 255, 1);
}

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

    .stat-number {
        font-size: 2.5rem;
    }
}
