:root {
    color-scheme: dark;
    --bg: #0f1112;
    --bg-deep: #090b0c;
    --surface: #151819;
    --surface-2: #1b2022;
    --line: rgba(255, 255, 255, 0.08);
    --text: #f4f5f3;
    --muted: #a4aaa6;
    --dim: #6f7772;
    --amber: #f6a623;
    --amber-soft: rgba(246, 166, 35, 0.16);
    --cyan: #6ed9e8;
    --green: #98c379;
    --violet: #b793ff;
    --red: #f87171;
    --font-sans: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
    --max: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

code,
pre {
    font-family: var(--font-mono);
}

#hero-field {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.42;
    z-index: -3;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        radial-gradient(circle at 18% 16%, rgba(110, 217, 232, 0.13), transparent 28%),
        radial-gradient(circle at 78% 12%, rgba(246, 166, 35, 0.14), transparent 32%),
        linear-gradient(180deg, rgba(15, 17, 18, 0.35), var(--bg) 72%);
    background-size: 48px 48px, 48px 48px, auto, auto, auto;
}

.container {
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
}

.site-nav {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 20;
    border-bottom: 1px solid var(--line);
    background: rgba(9, 11, 12, 0.78);
    backdrop-filter: blur(16px);
}

.nav-inner {
    width: min(var(--max), calc(100% - 40px));
    height: 62px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: inline-grid;
    place-items: center;
    background:
        linear-gradient(135deg, rgba(246, 166, 35, 0.95), rgba(110, 217, 232, 0.78));
    color: #090b0c;
    font-family: var(--font-mono);
    font-weight: 700;
}

.brand-name {
    font-family: var(--font-mono);
    font-size: 0.96rem;
    font-weight: 600;
}

.brand-name span {
    color: var(--amber);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
    color: var(--muted);
    font-size: 0.86rem;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-github {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.78rem;
}

.nav-github:hover {
    color: var(--amber);
    border-color: rgba(246, 166, 35, 0.35);
    background: var(--amber-soft);
}

.nav-github svg {
    width: 15px;
    height: 15px;
}

.hero {
    position: relative;
    min-height: 92svh;
    display: grid;
    place-items: center;
    padding: 120px 0 96px;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 120px;
    background: linear-gradient(180deg, transparent, var(--bg));
    pointer-events: none;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.shader-preview {
    position: absolute;
    right: max(26px, calc((100vw - var(--max)) / 2 - 270px));
    bottom: 74px;
    width: min(560px, 38vw);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(10, 12, 13, 0.82);
    box-shadow: 0 28px 96px rgba(0, 0, 0, 0.44);
    backdrop-filter: blur(18px);
    transform: rotate(-2deg);
    opacity: 0.88;
}

.preview-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 14px;
    border-bottom: 1px solid var(--line);
    color: #b9c1bb;
    font-family: var(--font-mono);
    font-size: 0.76rem;
}

.preview-toolbar span {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--red);
}

.preview-toolbar span:nth-child(2) {
    background: var(--amber);
}

.preview-toolbar span:nth-child(3) {
    background: var(--green);
    margin-right: 6px;
}

.shader-preview pre {
    margin: 0;
    padding: 18px;
    overflow: hidden;
    color: #d8e5df;
    font-size: 0.76rem;
    line-height: 1.85;
}

.shader-preview code {
    display: block;
}

.tok-attr {
    color: #f6a623;
}

.tok-kw {
    color: #b793ff;
}

.tok-type {
    color: #6ed9e8;
}

.tok-fn {
    color: #98c379;
}

.tok-var {
    color: #f0d18a;
}

.tok-num {
    color: #ff9f7a;
}

.module-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 0.67rem;
    color: var(--dim);
}

.module-strip span {
    padding: 10px 12px;
    border-right: 1px solid var(--line);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.module-strip span:last-child {
    border-right: 0;
}

.hero-copy {
    position: relative;
    z-index: 1;
    max-width: min(720px, 52vw);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid rgba(152, 195, 121, 0.22);
    border-radius: 999px;
    background: rgba(152, 195, 121, 0.09);
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 0.76rem;
}

.eyebrow span {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--green);
    box-shadow: 0 0 12px var(--green);
}

.hero h1 {
    margin: 28px 0 12px;
    font-family: var(--font-mono);
    font-size: clamp(4rem, 10.4vw, 8.15rem);
    line-height: 0.92;
    font-weight: 700;
    max-width: 8ch;
}

.hero-sub {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.22rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.92rem;
    border: 1px solid var(--line);
}

.btn svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn-solid {
    color: #090b0c;
    border-color: var(--amber);
    background: var(--amber);
}

.btn-solid:hover {
    background: #ffc05a;
}

.btn-ghost {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.btn-ghost:hover {
    border-color: rgba(110, 217, 232, 0.42);
    color: var(--cyan);
}

.metrics {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(9, 11, 12, 0.6);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.metric {
    min-height: 118px;
    padding: 24px 22px;
    border-right: 1px solid var(--line);
}

.metric:last-child {
    border-right: 0;
}

.metric strong {
    display: block;
    font-family: var(--font-mono);
    font-size: clamp(1.6rem, 3.4vw, 2.55rem);
    color: var(--amber);
    line-height: 1;
}

.metric span {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.86rem;
}

.section {
    padding: 86px 0;
}

.section-head {
    max-width: 680px;
    margin-bottom: 32px;
}

.kicker {
    margin: 0 0 8px;
    color: var(--cyan);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.section h2 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.08;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.feature-card {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(21, 24, 25, 0.78);
}

.feature-card h3 {
    margin: 16px 0 8px;
    font-size: 1rem;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    border: 1px solid currentColor;
    background: rgba(255, 255, 255, 0.04);
}

.icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon.amber {
    color: var(--amber);
}

.icon.cyan {
    color: var(--cyan);
}

.icon.green {
    color: var(--green);
}

.icon.violet {
    color: var(--violet);
}

.pipeline-section {
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent);
}

.pipeline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 28px 0 30px;
    font-family: var(--font-mono);
}

.pipe-node,
.pipe-arrow {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pipe-node {
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(21, 24, 25, 0.82);
    color: var(--muted);
    font-size: 0.82rem;
}

.pipe-node.active {
    color: var(--amber);
    border-color: rgba(246, 166, 35, 0.35);
    background: rgba(246, 166, 35, 0.08);
}

.pipe-arrow {
    color: var(--dim);
}

.split-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.code-block {
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(9, 11, 12, 0.78);
}

.block-title {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.78rem;
}

.code-block pre {
    margin: 0;
    padding: 16px;
    color: #d9e4df;
    font-size: 0.8rem;
    line-height: 1.7;
    overflow: auto;
}

.site-footer {
    padding: 46px 0 38px;
    border-top: 1px solid var(--line);
    background: var(--bg-deep);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 160px 240px;
    gap: 36px;
}

.footer-brand {
    margin-bottom: 12px;
}

.site-footer p,
.site-footer a {
    display: block;
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.site-footer a:hover {
    color: var(--amber);
}

.site-footer h4 {
    margin: 0 0 10px;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
}

@media (max-width: 920px) {
    .nav-links {
        display: none;
    }

    .hero-copy {
        max-width: none;
    }

    .hero {
        min-height: auto;
        place-items: start;
        padding-top: 118px;
    }

    .shader-preview {
        right: 20px;
        bottom: 24px;
        width: min(620px, calc(100% - 40px));
        transform: none;
        opacity: 0.34;
    }

    .metrics-grid,
    .feature-grid,
    .split-showcase,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .metric:nth-child(2) {
        border-right: 0;
    }
}

@media (max-width: 640px) {
    .container,
    .nav-inner {
        width: min(100% - 28px, var(--max));
    }

    .nav-github {
        display: none;
    }

    .hero h1 {
        font-size: clamp(3rem, 16vw, 4rem);
    }

    .hero-sub {
        font-size: 1rem;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .shader-preview {
        display: none;
    }

    .module-strip,
    .metrics-grid,
    .feature-grid,
    .split-showcase,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .metric,
    .metric:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .metric:last-child {
        border-bottom: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
