:root {
    --bg: #04030b;
    --bg-alt: #0b0f1f;
    --primary: #a855f7;
    --primary-strong: #c084fc;
    --accent: #38bdf8;
    --text: #f8fafc;
    --muted: #94a3b8;
    --border: rgba(148, 163, 184, 0.2);
    --card: rgba(15, 23, 42, 0.7);
    --blur: blur(40px);
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 30px rgba(168, 85, 247, 0.5),
                    0 0 60px rgba(168, 85, 247, 0.3),
                    0 0 90px rgba(168, 85, 247, 0.1);
    }
    50% { 
        box-shadow: 0 0 50px rgba(168, 85, 247, 0.8),
                    0 0 100px rgba(168, 85, 247, 0.5),
                    0 0 150px rgba(168, 85, 247, 0.2);
    }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes node-pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.8;
    }
    50% { 
        transform: scale(1.3);
        opacity: 1;
    }
}

@keyframes line-flow {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 1000; }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: radial-gradient(circle at top, #1a1034 0%, var(--bg) 55%),
                radial-gradient(circle at 50% 50%, rgba(88, 28, 135, 0.3) 0%, transparent 50%);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.space-grid {
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(73, 37, 108, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(54, 18, 94, 0.15) 1px, transparent 1px);
    background-size: 120px 120px;
    opacity: 0.4;
    pointer-events: none;
    z-index: -2;
    animation: float 20s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(88, 28, 135, 0.6), transparent 45%),
        radial-gradient(circle at 80% 10%, rgba(59, 130, 246, 0.6), transparent 45%),
        radial-gradient(circle at 50% 80%, rgba(168, 85, 247, 0.4), transparent 40%);
    filter: var(--blur);
    z-index: -3;
    animation: float 25s ease-in-out infinite reverse;
}

main {
    position: relative;
    padding-bottom: 6rem;
}

.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem 6rem;
    overflow: hidden;
}

#hero-graph {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-content {
    max-width: 920px;
    text-align: center;
    backdrop-filter: blur(12px);
    padding: 2rem;
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.8), rgba(15, 23, 42, 0.7));
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

h1 {
    font-family: 'Orbitron', 'JetBrains Mono', sans-serif;
    font-size: clamp(2.5rem, 4vw, 4rem);
    margin: 1.5rem 0;
}

.subtitle {
    color: var(--muted);
    font-size: 1.15rem;
    line-height: 1.6;
}

.cta-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
}

.btn {
    border: 1px solid transparent;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    color: var(--text);
    background: transparent;
}

.btn.primary {
    background: linear-gradient(120deg, var(--primary) 0%, var(--accent) 100%);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.35);
}

.btn.primary:hover {
    transform: translateY(-2px);
}

.btn.outline {
    border-color: rgba(148, 163, 184, 0.4);
}

.btn.outline:hover {
    border-color: var(--primary);
    color: var(--primary-strong);
}

.btn.ghost {
    background: rgba(148, 163, 184, 0.1);
    border-color: transparent;
}

.section {
    padding: 5rem 1.5rem;
    position: relative;
    display: flex;
    justify-content: center;
}

.section-content {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: clamp(2.5rem, 5vw, 3.5rem);
    border-radius: 36px;
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.9), rgba(10, 10, 26, 0.65));
    border: 1px solid rgba(148, 163, 184, 0.15);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.section-content::before {
    content: '';
    position: absolute;
    width: 65%;
    height: 65%;
    top: -20%;
    right: -15%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.35), transparent 65%);
    filter: blur(30px);
    opacity: 0.6;
    z-index: 0;
}

.section-content::after {
    content: '';
    position: absolute;
    inset: 1.5rem;
    border: 1px solid rgba(56, 189, 248, 0.12);
    border-radius: 28px;
    pointer-events: none;
    z-index: 0;
}

.section-content>* {
    position: relative;
    z-index: 1;
}

.section-header {
    max-width: 780px;
    margin: 0 auto 3rem;
    text-align: center;
}

.eyebrow {
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.section h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    margin: 0;
    font-family: 'Orbitron', sans-serif;
}

.section p {
    color: var(--muted);
}

.what-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.what-card {
    padding: 1.8rem;
    border-radius: 20px;
    background: var(--card);
    border: 1px solid var(--border);
}

.what-card.list ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: grid;
    gap: 0.35rem;
    font-family: 'JetBrains Mono', monospace;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.card {
    background: rgba(12, 17, 31, 0.85);
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid rgba(168, 85, 247, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.card .icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.pipeline-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    position: relative;
}

.pipeline-track::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0), rgba(59, 130, 246, 0.6), rgba(59, 130, 246, 0));
    transform: translateY(-50%);
}

.pipeline-node {
    text-align: center;
    padding: 1rem;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.4);
    background: rgba(3, 7, 18, 0.8);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.code-block,
.graph-block {
    background: rgba(15, 23, 42, 0.75);
    border-radius: 24px;
    border: 1px solid var(--border);
    padding: 1.5rem;
    position: relative;
}

.label {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
    display: inline-block;
}

pre {
    margin: 0;
    background: rgba(2, 6, 23, 0.8);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    overflow-x: auto;
}

code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    color: #e2e8f0;
}

.graph-card {
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 1rem;
    border-radius: 18px;
    background: rgba(8, 47, 73, 0.4);
}

.graph-stats {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent);
}

.graph-visual {
    position: relative;
    height: 220px;
    margin: 1rem 0;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.2), transparent);
    border-radius: 50%;
    overflow: hidden;
}

.graph-lines {
    position: absolute;
    inset: 0;
    stroke: rgba(59, 130, 246, 0.4);
    stroke-width: 2;
}

.node {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #38bdf8, #c084fc);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.6);
}

.node.core {
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
}

.node.node-a {
    top: 20%;
    left: 20%;
}

.node.node-b {
    top: 30%;
    right: 20%;
}

.node.node-c {
    bottom: 20%;
    left: 30%;
}

.graph-note {
    font-size: 0.85rem;
    color: var(--muted);
}

.benchmarks table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

th {
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(2, 6, 23, 0.6);
}

.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.roadmap-item {
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 16px;
    padding: 1rem 1.2rem;
    background: rgba(15, 6, 35, 0.7);
    font-family: 'JetBrains Mono', monospace;
}

.community .cta-group.wrap {
    max-width: 900px;
    margin: 0 auto;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.audience-card {
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    background: rgba(3, 7, 18, 0.8);
}

.audience-card ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    color: var(--muted);
    display: grid;
    gap: 0.4rem;
}

.footer {
    padding: 2rem 1.5rem 3rem;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    text-align: center;
    font-size: 0.9rem;
    color: var(--muted);
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
}

.footer a {
    color: var(--accent);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
}

@media (max-width: 768px) {
    .pipeline-track::before {
        display: none;
    }

    .pipeline-track {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    th,
    td {
        padding: 0.7rem 1rem;
    }
}
