:root {
    --primary: #00f2ff;
    /* Cyan/Teal Flare */
    --secondary: #0a0a0c;
    /* Deep Space Black */
    --accent: #22d3ee;
    /* Bright Cyan */
    --bg-dark: #050505;
    /* True Black for OLED */
    --bg-card: rgba(10, 10, 12, 0.7);
    /* Deep Glass */
    --text-white: #eef2f3;
    /* Clean White */
    --text-gray: #a1a1aa;
    /* Zinc Gray */
    --glass-border: rgba(34, 211, 238, 0.2);
    /* Cyan border */
    --gradient-hero: radial-gradient(circle at center, #0a0a0c 0%, #050505 100%);
    --gradient-primary: linear-gradient(135deg, #00f2ff 0%, #22d3ee 100%);
}

@keyframes stars-twinkle {
    0% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
}

@keyframes nebula-float {
    0% {
        transform: translate(-2%, -2%) scale(1);
    }

    50% {
        transform: translate(2%, 2%) scale(1.1);
    }

    100% {
        transform: translate(-2%, -2%) scale(1);
    }
}

@keyframes orbit {
    0% {
        transform: rotate(0deg) translateX(40px) rotate(0deg);
    }

    100% {
        transform: rotate(360deg) translateX(40px) rotate(-360deg);
    }
}

@keyframes float-agent {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 5px rgba(241, 109, 52, 0.2);
    }

    50% {
        box-shadow: 0 0 20px rgba(241, 109, 52, 0.5);
    }

    100% {
        box-shadow: 0 0 5px rgba(241, 109, 52, 0.2);
    }
}

@keyframes soft-pulse {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(241, 109, 52, 0.1);
        border-color: var(--glass-border);
    }

    50% {
        box-shadow: 0 0 25px rgba(241, 109, 52, 0.3);
        border-color: var(--primary);
    }
}

@keyframes btn-soft-glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(241, 109, 52, 0.2);
    }

    50% {
        box-shadow: 0 0 15px rgba(241, 109, 52, 0.4);
    }
}

@keyframes glitch {
    0% {
        transform: translate(0);
        text-shadow: -2px 0 var(--accent), 2px 0 var(--primary);
    }

    25% {
        transform: translate(-2px, 2px);
        text-shadow: 2px 0 var(--accent), -2px 0 var(--primary);
    }

    50% {
        transform: translate(2px, -2px);
        text-shadow: -2px 0 var(--accent), 2px 0 var(--primary);
    }

    75% {
        transform: translate(-2px, -2px);
        text-shadow: 2px 0 var(--accent), -2px 0 var(--primary);
    }

    100% {
        transform: translate(0);
    }
}

@keyframes data-flicker {

    0%,
    100% {
        opacity: 1;
        filter: brightness(1);
    }

    50% {
        opacity: 0.8;
        filter: brightness(1.2);
    }

    52% {
        opacity: 1;
        filter: brightness(1);
    }
}

@keyframes border-trace {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes scanline {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

@keyframes flicker {
    0% {
        opacity: 1;
    }

    5% {
        opacity: 0.8;
    }

    10% {
        opacity: 1;
    }

    15% {
        opacity: 0.9;
    }

    20% {
        opacity: 1;
    }

    100% {
        opacity: 1;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Gradients */
.bg-stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-image:
        radial-gradient(1px 1px at 20px 30px, #F8FAFC, rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 40px 70px, #CBD5E1, rgba(0, 0, 0, 0)),
        radial-gradient(1.5px 1.5px at 150px 100px, #22D3EE, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 300px 250px, #F8FAFC, rgba(0, 0, 0, 0));
    background-size: 400px 400px;
    opacity: 0.5;
}

.bg-nebula {
    position: fixed;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle at 70% 20%, rgba(34, 211, 238, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(15, 23, 42, 0.5) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
    animation: nebula-float 20s infinite ease-in-out;
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.bg-scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 242, 255, 0.02), transparent);
    z-index: 999;
    pointer-events: none;
    animation: scanline 8s linear infinite;
}

/* Header */
/* Header - Floating Island UI */
header {
    height: 90px;
    width: 90%;
    max-width: 1400px;
    margin: 1.5rem auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(8, 8, 10, 0.75);
    /* Darkened for better contrast */
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header:hover {
    background: rgba(15, 15, 20, 0.8);
    border-color: var(--primary);
    box-shadow: 0 25px 50px rgba(0, 242, 255, 0.1);
}

.logo {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    margin-top: 25px;
}

/* Subtle glow backdrop specifically for the logo */
.logo::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 100px;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.15) 0%, transparent 75%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(20px);
    z-index: -1;
    pointer-events: none;
}

.logo img {
    height: 250px;
    width: auto;
    display: block;
    /* Enhanced filters for better pop and visibility */
    filter:
        brightness(1.1) contrast(1.1) drop-shadow(0 0 20px rgba(0, 242, 255, 0.4)) drop-shadow(0 0 40px rgba(0, 242, 255, 0.2));
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(-5px);
}

.logo:hover img {
    transform: scale(1.05) translateY(-5px);
}

.nav-links {
    display: flex;
    gap: 2rem;
    margin-top: 10px;
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero Sections Cleanup */
.hero p {
    font-size: 1.25rem;
    color: var(--text-gray);
    max-width: 550px;
    margin-bottom: 3rem;
    line-height: 1.6;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 10% 0 10%;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    text-align: left;
    z-index: 10;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 242, 255, 0.1);
    color: var(--primary);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 5.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    line-height: 0.9;
    background: linear-gradient(to bottom, #fff 40%, rgba(255, 255, 255, 0.4));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Neuron Animation Styles */
.neuron-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
}

#neuron-canvas {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 30px rgba(0, 242, 255, 0.2));
}

.neuron-label {
    position: absolute;
    background: rgba(0, 242, 255, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: label-float 6s infinite ease-in-out;
}

.label-llm {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.label-rag {
    bottom: 25%;
    right: 5%;
    animation-delay: -2s;
}

.label-agents {
    top: 40%;
    right: 15%;
    animation-delay: -4s;
}

@keyframes label-float {

    0%,
    100% {
        transform: translateY(0) scale(1.0);
        opacity: 0.8;
    }

    50% {
        transform: translateY(-15px) scale(1.05);
        opacity: 1;
        box-shadow: 0 8px 25px rgba(0, 242, 255, 0.2);
    }
}

/* Reveal Animations */
.reveal-init {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-init.revealed {
    opacity: 1;
    transform: translateY(0);
}

.section-tag {
    display: inline-block;
    color: var(--primary);
    background: rgba(0, 242, 255, 0.1);
    padding: 0.4rem 1.2rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: rgba(0, 242, 255, 0.2);
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(244, 111, 34, 0.3);
}

/* Products Section */
.products {
    padding: 10rem 10%;
    position: relative;
    border-top: 1px solid var(--glass-border);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

/* Subtle pulsing background on hover */
.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(241, 109, 52, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(101, 148, 177, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.product-card:hover::after {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(15, 15, 20, 0.9);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 242, 255, 0.15);
}

.product-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.product-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.product-card p {
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.product-features {
    list-style: none;
    margin-bottom: 2rem;
}

.product-features li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-features li::before {
    content: "✓";
    color: var(--primary);
    font-weight: bold;
}

.btn-outline {
    border: 1px solid var(--glass-border);
    color: var(--text-white);
    text-align: center;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    animation: btn-soft-glow 2s infinite ease-in-out;
}

/* Interactive Background */
.interactive-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.interactive-blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    transition: transform 0.2s ease-out;
}

.blob-1 {
    top: 10%;
    left: 10%;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.1) 0%, transparent 70%);
}

.blob-2 {
    bottom: 10%;
    right: 10%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.1) 0%, transparent 70%);
}

.blob-3 {
    top: 40%;
    left: 50%;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.05) 0%, transparent 70%);
}

.about {
    padding: 10rem 10%;
    text-align: center;
    background: rgba(11, 15, 20, 0.4);
    position: relative;
    border-top: 1px solid var(--glass-border);
}

.about h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--primary);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    color: var(--text-gray);
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 4rem;
}

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--text-white);
    animation: data-flicker 4s infinite step-end;
}

.stat-item p {
    color: var(--primary);
    font-weight: 600;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .products {
        padding: 5rem 5%;
    }
}