/* Modern design tokens */
:root {
    --bg: #0b1020;
    --panel: rgba(255, 255, 255, 0.06);
    --panel-strong: rgba(255, 255, 255, 0.09);
    --border: rgba(148, 163, 184, 0.22);
    --text: #e5e7eb;
    --muted: #a7b0c0;
    --muted-2: rgba(167, 176, 192, 0.75);
    --accent: #6d5efc;
    --accent-2: #22c55e;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.65;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 0%, rgba(56, 189, 248, 0.18) 0%, transparent 55%),
        radial-gradient(circle at 85% 15%, rgba(109, 94, 252, 0.22) 0%, transparent 55%),
        radial-gradient(circle at 90% 95%, rgba(34, 197, 94, 0.12) 0%, transparent 55%),
        var(--bg);
    overflow-x: hidden;
    letter-spacing: 0.2px;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
}

p {
    color: var(--muted);
}

a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    color: var(--text);
    opacity: 0.95;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(11, 16, 32, 0.65);
    backdrop-filter: blur(14px);
    z-index: 1000;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text);
}

.nav-links {
    display: flex;
    gap: 1.4rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 0.15rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 999px;
    transition: width 0.2s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero section */
.hero {
    min-height: 100vh;
    padding: 120px 0 4rem;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 3rem;
}

.hero-content {
    max-width: 640px;
    animation: fadeInUp 0.9s ease-out;
}

.hero h1 {
    font-size: clamp(2.6rem, 4.2vw, 3.8rem);
    margin-bottom: 1.1rem;
    background: linear-gradient(135deg, #eef2ff 0%, rgba(109, 94, 252, 0.95) 40%, rgba(56, 189, 248, 0.95) 75%, rgba(34, 197, 94, 0.95) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2.1rem;
    color: var(--muted);
    max-width: 40rem;
}

.cta-button {
    display: inline-flex;
    width: auto;
    padding: 0.9rem 1.6rem;
    background: linear-gradient(135deg, var(--accent) 0%, rgba(56, 189, 248, 0.9) 55%, var(--accent-2) 120%);
    color: #0b1020;
    font-weight: 600;
    border-radius: 999px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    box-shadow: var(--shadow);
}

.cta-button:hover {
    transform: translateY(-2px) scale(1.02);
    filter: brightness(1.05);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ai-network-placeholder {
    width: 400px;
    height: 400px;
    background:
        radial-gradient(circle at 15% 0%, rgba(124, 58, 237, 0.2) 0%, transparent 55%),
        radial-gradient(circle at 85% 10%, rgba(168, 85, 247, 0.2) 0%, transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 45%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 28px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 60px rgba(124, 58, 237, 0.2);
}

.network-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(124, 58, 237, 0.3));
}

/* Intelligence Nodes */
.node {
    fill: #7c3aed;
    filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.8));
}

.node-1 { animation: pulse 2s ease-in-out infinite; }
.node-2 { animation: pulse 2.3s ease-in-out infinite 0.2s; }
.node-3 { animation: pulse 2.1s ease-in-out infinite 0.4s; }
.node-4 { animation: pulse 2.4s ease-in-out infinite 0.6s; }
.node-5 { animation: pulse 2.2s ease-in-out infinite 0.8s; }

.core-node {
    fill: url(#gradient-core);
    filter: drop-shadow(0 0 15px rgba(124, 58, 237, 1));
    animation: corePulse 1.5s ease-in-out infinite;
}

/* Connections */
.connection {
    stroke: url(#gradient-connection);
    stroke-width: 2;
    stroke-linecap: round;
    opacity: 0.6;
    filter: drop-shadow(0 0 4px rgba(124, 58, 237, 0.5));
}

.connection-1 { animation: flowLine 3s ease-in-out infinite; }
.connection-2 { animation: flowLine 3.2s ease-in-out infinite 0.4s; }
.connection-3 { animation: flowLine 3.1s ease-in-out infinite 0.2s; }
.connection-4 { animation: flowLine 3.3s ease-in-out infinite 0.6s; }
.connection-5 { animation: flowLine 3.05s ease-in-out infinite 0.8s; }

/* Data Particles */
.particle {
    fill: #a855f7;
    filter: drop-shadow(0 0 6px rgba(168, 85, 247, 1));
    opacity: 0.9;
}

.particle-1 { animation: flow-1 3s ease-in-out infinite; }
.particle-2 { animation: flow-2 3.2s ease-in-out infinite; }
.particle-3 { animation: flow-3 3.1s ease-in-out infinite; }
.particle-4 { animation: flow-4 3.3s ease-in-out infinite; }
.particle-5 { animation: flow-5 3.05s ease-in-out infinite; }

/* Value propositions */
.value-props {
    padding: 4.5rem 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.value-props h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2.6rem;
    color: var(--text);
    position: relative;
}

.value-props h2::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 999px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.6rem;
}

.card {
    background: linear-gradient(180deg, var(--panel-strong), var(--panel));
    padding: 1.7rem;
    border-radius: 1.25rem;
    box-shadow: var(--shadow);
    transition: transform 0.18s ease, border-color 0.18s ease, filter 0.18s ease;
    border: 1px solid var(--border);
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(109, 94, 252, 0.55);
    filter: brightness(1.02);
}

.card h3 {
    color: var(--text);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.card p {
    color: var(--muted-2);
}

/* How It Works */
.how-it-works {
    padding: 4.5rem 2rem;
}

.how-it-works h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2.6rem;
    color: var(--text);
    position: relative;
}

.how-it-works h2::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 999px;
}

.steps {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.step {
    text-align: center;
    max-width: 250px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(109, 94, 252, 0.95) 0%, rgba(56, 189, 248, 0.95) 60%, rgba(34, 197, 94, 0.95) 120%);
    color: #0b1020;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    box-shadow: var(--shadow);
}

.step h3 {
    color: var(--text);
    margin-bottom: 1rem;
    font-weight: 600;
}

.step p {
    color: var(--muted-2);
}

/* Contact */
.contact {
    padding: 4.5rem 2rem;
}

.contact h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--text);
    position: relative;
}

.contact h2::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 999px;
}

.contact-email {
    margin-top: 1.4rem;
    text-align: center;
    font-size: 1rem;
}

.contact-email a {
    color: #c4c9ff;
    font-weight: 600;
}

.contact-email a:hover {
    color: #e5e7ff;
}

/* Footer */
footer {
    padding: 3rem 2rem;
    background: rgba(11, 16, 32, 0.65);
    text-align: center;
    color: var(--muted);
    font-weight: 500;
    border-top: 1px solid var(--border);
}

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

/* Node Pulsing Animations */
@keyframes pulse {
    0%, 100% {
        r: 12px;
        opacity: 0.8;
    }
    50% {
        r: 18px;
        opacity: 1;
    }
}

@keyframes corePulse {
    0%, 100% {
        r: 16px;
        filter: drop-shadow(0 0 15px rgba(124, 58, 237, 1));
    }
    50% {
        r: 24px;
        filter: drop-shadow(0 0 25px rgba(168, 85, 247, 1));
    }
}

/* Line Animation */
@keyframes flowLine {
    0%, 100% {
        opacity: 0.4;
        stroke-width: 2;
    }
    50% {
        opacity: 0.8;
        stroke-width: 3;
    }
}

/* Particle Flow Animations */
@keyframes flow-1 {
    0% {
        cx: 200;
        cy: 100;
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
    100% {
        cx: 200;
        cy: 200;
        opacity: 0.3;
    }
}

@keyframes flow-2 {
    0% {
        cx: 100;
        cy: 200;
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
    100% {
        cx: 200;
        cy: 200;
        opacity: 0.3;
    }
}

@keyframes flow-3 {
    0% {
        cx: 300;
        cy: 200;
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
    100% {
        cx: 200;
        cy: 200;
        opacity: 0.3;
    }
}

@keyframes flow-4 {
    0% {
        cx: 150;
        cy: 300;
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
    100% {
        cx: 200;
        cy: 200;
        opacity: 0.3;
    }
}

@keyframes flow-5 {
    0% {
        cx: 250;
        cy: 300;
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
    100% {
        cx: 200;
        cy: 200;
        opacity: 0.3;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-image {
        margin-top: 2rem;
    }

    .ai-network-placeholder {
        width: 250px;
        height: 250px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

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

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

    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }
}