:root {
    --electric-cyan: #00d4ff;
    --deep-magenta: #b827b8;
    --amber: #ffaa00;
    --deep-black: #08080c;
    --dark-bg: #0c0c14;
    --glass-bg: rgba(20, 20, 35, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b8;
    --glow-cyan: 0 0 30px rgba(0, 212, 255, 0.4);
    --glow-magenta: 0 0 30px rgba(184, 39, 184, 0.4);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--deep-black);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animated Canvas Background */
.bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Circuit Grid Overlay */
.circuit-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
    animation: circuitPulse 4s ease-in-out infinite;
}

@keyframes circuitPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Gradient Orbs */
.gradient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 2;
    pointer-events: none;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation: orbFloat1 15s ease-in-out infinite;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(184, 39, 184, 0.12) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    animation: orbFloat2 18s ease-in-out infinite;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 170, 0, 0.08) 0%, transparent 70%);
    top: 40%;
    left: 30%;
    animation: orbFloat3 12s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-50px, 30px); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(40px, -30px); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, 20px); }
}

/* Noise Texture */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Main Container */
.container {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 24px);
}

/* Header */
header {
    padding: clamp(24px, 5vh, 32px) 0;
    opacity: 0;
    animation: fadeSlideDown 0.8s ease forwards;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.logo-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-image {
    height: 44px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.logo {
    width: 44px;
    height: 44px;
    position: relative;
    flex-shrink: 0;
}

.logo svg {
    width: 100%;
    height: 100%;
}

.brand {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    font-weight: 600;
    letter-spacing: 4px;
    background: linear-gradient(135deg, var(--electric-cyan), var(--deep-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline-small {
    font-size: clamp(0.65rem, 1.5vw, 0.75rem);
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Hero Section */
.hero {
    min-height: 75vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: clamp(40px, 10vh, 60px) 0 40px;
}

.hero-content {
    opacity: 0;
    animation: fadeSlideUp 1s ease forwards;
    animation-delay: 0.3s;
    max-width: 100%;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(0.7rem, 1.8vw, 0.8rem);
    font-weight: 500;
    letter-spacing: clamp(3px, 1vw, 6px);
    color: var(--electric-cyan);
    text-transform: uppercase;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
    animation-delay: 0.6s;
}

.label-dot {
    width: 8px;
    height: 8px;
    background: var(--electric-cyan);
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.2rem, 8vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 8px;
}

.hero-title .main-text {
    display: block;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--electric-cyan) 50%, var(--deep-magenta) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientFlow 4s ease infinite;
}

.hero-title .sub-text {
    display: block;
    font-size: clamp(0.6rem, 3vw, 0.45em);
    letter-spacing: clamp(4px, 2vw, 12px);
    color: var(--text-secondary);
    -webkit-text-fill-color: var(--text-secondary);
    margin-top: 12px;
    font-weight: 500;
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-tagline {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--text-secondary);
    margin-top: 28px;
    font-weight: 300;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
    animation-delay: 0.9s;
    padding: 0 16px;
}

.hero-tagline .code {
    font-family: 'JetBrains Mono', monospace;
    color: var(--amber);
    background: rgba(255, 170, 0, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: clamp(0.85rem, 2vw, 1rem);
    white-space: nowrap;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    color: var(--text-secondary);
    margin-top: 20px;
    font-weight: 300;
    line-height: 1.7;
    max-width: 1000px;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
    animation-delay: 1s;
    padding: 0 16px;
}

/* Coming Soon Badge */
.coming-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 36px;
    padding: 14px 28px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    backdrop-filter: blur(20px);
    opacity: 0;
    animation: fadeSlideUp 0.8s ease forwards;
    animation-delay: 1.1s;
}

.badge-ring {
    width: 12px;
    height: 12px;
    border: 2px solid var(--electric-cyan);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.badge-ring::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: var(--electric-cyan);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.8); opacity: 0; }
}

.badge-text {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-primary);
}

/* Agentic Workflow Visualization */
.workflow {
    padding: clamp(50px, 10vh, 70px) 0 50px;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 1.4s;
}

.workflow-title {
    font-size: clamp(0.7rem, 1.8vw, 0.8rem);
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 40px;
}

.workflow-cycle {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}

.workflow-step {
    display: flex;
    align-items: center;
}

.step-node {
    width: clamp(60px, 12vw, 70px);
    height: clamp(60px, 12vw, 70px);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.4s ease;
    backdrop-filter: blur(20px);
}

.step-node:hover {
    border-color: var(--electric-cyan);
    box-shadow: var(--glow-cyan);
    transform: translateY(-4px);
}

.step-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.step-icon svg {
    width: 100%;
    height: 100%;
}

.step-label {
    font-size: clamp(0.6rem, 1.5vw, 0.65rem);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.step-arrow {
    font-size: 1.2rem;
    color: var(--electric-cyan);
    animation: arrowFlow 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes arrowFlow {
    0%, 100% { transform: translateX(0); opacity: 0.6; }
    50% { transform: translateX(4px); opacity: 1; }
}

.step-node.complete {
    border-color: var(--deep-magenta);
    background: rgba(184, 39, 184, 0.15);
}

.step-node.complete .step-icon {
    color: var(--deep-magenta);
}

/* Capabilities Section */
.capabilities {
    padding: clamp(40px, 8vh, 60px) 0;
}

.section-title {
    font-size: clamp(0.7rem, 1.8vw, 0.8rem);
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 45px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: clamp(16px, 3vw, 24px);
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: clamp(24px, 5vw, 32px) clamp(20px, 4vw, 28px);
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(30px);
}

.glass-card:hover {
    border-color: var(--electric-cyan);
    box-shadow: var(--glow-cyan);
    transform: translateY(-8px);
}

.card-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(184, 39, 184, 0.15));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon svg {
    width: 28px;
    height: 28px;
}

.card-title {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.card-desc {
    font-size: clamp(0.85rem, 2vw, 0.9rem);
    color: var(--text-secondary);
    line-height: 1.7;
}

.cards-grid .glass-card:nth-child(1) {
    animation: fadeSlideUp 0.7s ease forwards;
    animation-delay: 1.7s;
}

.cards-grid .glass-card:nth-child(2) {
    animation: fadeSlideUp 0.7s ease forwards;
    animation-delay: 1.85s;
}

.cards-grid .glass-card:nth-child(3) {
    animation: fadeSlideUp 0.7s ease forwards;
    animation-delay: 2s;
}

.cards-grid .glass-card:nth-child(4) {
    animation: fadeSlideUp 0.7s ease forwards;
    animation-delay: 2.15s;
}

.cards-grid .glass-card:nth-child(5) {
    animation: fadeSlideUp 0.7s ease forwards;
    animation-delay: 2.3s;
}

.cards-grid .glass-card:nth-child(6) {
    animation: fadeSlideUp 0.7s ease forwards;
    animation-delay: 2.45s;
}

.cards-grid .glass-card:nth-child(7) {
    animation: fadeSlideUp 0.7s ease forwards;
    animation-delay: 2.6s;
}

.cards-grid .glass-card:nth-child(8) {
    animation: fadeSlideUp 0.7s ease forwards;
    animation-delay: 2.75s;
}

/* CTA Section */
.cta-section {
    padding: clamp(40px, 8vh, 60px) 0 50px;
    text-align: center;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease forwards;
    animation-delay: 2.3s;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(0.85rem, 2vw, 0.9rem);
    font-weight: 600;
    letter-spacing: 1.5px;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.35s ease;
    cursor: pointer;
    border: none;
    touch-action: manipulation;
}

.btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn-primary {
    background: linear-gradient(135deg, var(--electric-cyan), #0099cc);
    color: var(--deep-black);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 212, 255, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--electric-cyan);
    box-shadow: var(--glow-cyan);
    transform: translateY(-3px);
}

.btn-secondary:active {
    transform: translateY(-1px);
}

/* Footer */
footer {
    padding: clamp(35px, 6vh, 45px) 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 2.5s;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.social-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    touch-action: manipulation;
}

.social-btn svg {
    width: 22px;
    height: 22px;
}

.social-btn:hover {
    border-color: var(--electric-cyan);
    color: var(--electric-cyan);
    box-shadow: var(--glow-cyan);
    transform: translateY(-4px);
}

.social-btn:active {
    transform: translateY(-2px);
}

.copyright {
    font-size: clamp(0.8rem, 1.8vw, 0.85rem);
    color: var(--text-secondary);
    letter-spacing: 1.5px;
}

.copyright a {
    color: var(--electric-cyan);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.copyright a:hover {
    color: var(--text-primary);
}

/* Animation Keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .workflow-cycle {
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .hero-tagline .code {
        display: inline-block;
        margin-top: 8px;
    }

    .workflow-cycle {
        gap: 8px;
    }
}

@media (max-width: 640px) {
    .hero-title {
        letter-spacing: -0.5px;
    }

    .workflow-cycle {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        max-width: 400px;
        margin: 0 auto;
        justify-items: center;
    }

    .workflow-step {
        justify-content: center;
    }

    .step-arrow {
        display: none;
    }

    .cta-buttons {
        flex-direction: column;
        padding: 0 20px;
    }

    .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-inner {
        justify-content: center;
        text-align: center;
    }

    .tagline-small {
        width: 100%;
        margin-top: 8px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .glass-card:hover,
    .step-node:hover,
    .social-btn:hover {
        transform: none;
    }

    .btn:active {
        transform: scale(0.98);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --glass-border: rgba(255, 255, 255, 0.3);
        --text-secondary: #d0d0e0;
    }
}

/* Dark Mode Support (already dark, but for completeness) */
@media (prefers-color-scheme: dark) {
    body {
        background: var(--deep-black);
        color: var(--text-primary);
    }
}
