:root {
    --ink: #0b0f14;
    --ink-soft: #344054;
    --muted: #667085;
    --hairline: #d9e0e8;
    --paper: #f8fafc;
    --surface: #ffffff;
    --surface-dark: #0c1117;
    --surface-dark-2: #111923;
    --cyan: #06b6d4;
    --green: #18c37e;
    --amber: #c78210;
    --shadow: 0 22px 80px rgba(15, 23, 42, 0.12);
    --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
    --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px),
        linear-gradient(180deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px),
        var(--paper);
    background-size: 48px 48px;
    font-family: var(--sans);
    letter-spacing: 0;
}

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 18px 0;
    background: rgba(248, 250, 252, 0.86);
    backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.service-status,
.terminal-top,
.terminal-output,
.header-actions {
    display: flex;
    align-items: center;
}

.brand {
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
}

.brand-mark {
    width: 28px;
    height: 28px;
    border: 1px solid var(--ink);
    border-radius: 8px;
    background:
        linear-gradient(135deg, transparent 48%, var(--cyan) 49%, var(--cyan) 55%, transparent 56%),
        linear-gradient(45deg, transparent 41%, var(--green) 42%, var(--green) 49%, transparent 50%),
        var(--surface);
}

.nav-links {
    gap: 6px;
    padding: 5px;
    border: 1px solid var(--hairline);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
}

.nav-links a,
.header-cta,
.header-link,
.button,
.terminal-top button,
.proof-row a {
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
}

.nav-links a {
    padding: 9px 12px;
    color: var(--muted);
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--ink);
    background: #eef4f8;
}

.header-cta {
    padding: 11px 14px;
    color: #ffffff;
    background: var(--ink);
}

.header-actions {
    gap: 8px;
}

.header-link {
    padding: 10px 12px;
    border: 1px solid var(--hairline);
    background: rgba(255, 255, 255, 0.76);
    color: var(--ink-soft);
}

main {
    overflow: hidden;
}

.hero-section {
    display: grid;
    grid-template-columns: minmax(520px, 1fr) minmax(480px, 0.95fr);
    gap: clamp(28px, 4vw, 56px);
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: clamp(44px, 6vw, 78px) 0 42px;
}

.hero-copy {
    align-self: center;
}

h1,
h2,
p,
dl,
dd {
    margin: 0;
}

h1 {
    max-width: 760px;
    font-size: 68px;
    line-height: 0.96;
    font-weight: 800;
    letter-spacing: 0;
}

.hero-subtitle {
    max-width: 620px;
    margin-top: 20px;
    color: var(--ink-soft);
    font-size: 20px;
    line-height: 1.45;
}

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

.button {
    min-height: 48px;
    padding: 15px 18px;
    border: 1px solid var(--ink);
}

.button.primary {
    color: #ffffff;
    background: var(--ink);
}

.button.secondary {
    background: var(--surface);
}

.signal-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 34px;
}

.signal-strip div {
    padding: 13px 0;
    border-top: 1px solid var(--hairline);
}

.signal-strip dt {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.signal-strip dd {
    margin-top: 8px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
}

.memory-plane {
    position: relative;
    border: 1px solid rgba(15, 23, 42, 0.18);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.memory-plane::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(6, 182, 212, 0.18), transparent 32%),
        linear-gradient(315deg, rgba(24, 195, 126, 0.16), transparent 31%);
}

.plane-header,
.metric-grid,
.controls {
    position: relative;
    z-index: 1;
}

.plane-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
    border-bottom: 1px solid var(--hairline);
}

.plane-header h2,
.sdk-section h2,
.proof-row h2 {
    color: var(--ink);
    font-size: 22px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: 0;
}

.plane-header p,
.sdk-copy p,
.proof-row p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.service-status {
    align-self: flex-start;
    gap: 8px;
    white-space: nowrap;
    padding: 8px 10px;
    border: 1px solid var(--hairline);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 800;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--amber);
}

.status-dot.live {
    background: var(--green);
}

.status-dot.offline {
    background: #ef4444;
}

.plane-chart {
    position: relative;
    z-index: 1;
    padding: 20px 18px 8px;
}

.plane-chart svg {
    display: block;
    width: 100%;
    height: auto;
}

.grid-lines line {
    stroke: #dce4ec;
    stroke-width: 1;
}

.rag-fill {
    fill: url(#ragGradient);
}

.rag-line,
.catalyst-line {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 5;
}

.rag-line {
    stroke: var(--ink);
}

.catalyst-line {
    stroke: var(--cyan);
}

.rag-point {
    fill: var(--surface);
    stroke: var(--ink);
    stroke-width: 4;
}

.catalyst-point {
    fill: var(--surface);
    stroke: var(--green);
    stroke-width: 4;
}

.chart-label {
    fill: var(--muted);
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
}

.metric {
    min-width: 0;
    padding: 18px;
    border-right: 1px solid var(--hairline);
}

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

.metric span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.metric strong {
    display: block;
    margin-top: 8px;
    color: var(--ink);
    font-family: var(--mono);
    font-size: 24px;
    line-height: 1.1;
}

.controls {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 14px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.74);
}

.controls label {
    display: grid;
    gap: 10px;
    min-width: 0;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 800;
}

.controls output {
    color: var(--ink);
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;
}

input[type="range"] {
    width: 100%;
    accent-color: var(--ink);
}

select {
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--hairline);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
}

.proof-rows {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 76px;
}

.proof-row {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) auto;
    gap: 26px;
    align-items: center;
    padding: 28px 0;
    border-top: 1px solid var(--hairline);
}

.proof-row:last-child {
    border-bottom: 1px solid var(--hairline);
}

.row-index {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;
}

.proof-row p {
    max-width: 760px;
}

.proof-row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--hairline);
    background: var(--surface);
    color: var(--ink);
}

.sdk-section {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
    gap: 42px;
    align-items: center;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto 92px;
    padding: clamp(34px, 5vw, 58px);
    border-radius: 8px;
    background: var(--surface-dark);
    color: #ffffff;
}

.sdk-section h2 {
    color: #ffffff;
    font-size: 56px;
}

.sdk-copy p {
    color: #b8c3cf;
    font-size: 17px;
}

.terminal-card {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: var(--surface-dark-2);
    overflow: hidden;
}

.terminal-top {
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #9fb0c2;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
}

.terminal-top button {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent;
    color: #ffffff;
    padding: 7px 10px;
    cursor: pointer;
}

pre {
    margin: 0;
    padding: 22px 18px;
    overflow-x: auto;
}

code {
    color: #d8fff1;
    font-family: var(--mono);
    font-size: 14px;
    line-height: 1.6;
}

.terminal-output {
    justify-content: space-between;
    gap: 18px;
    padding: 14px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9fb0c2;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.terminal-output strong {
    color: #ffffff;
    font-size: 12px;
    text-align: right;
    text-transform: none;
}

@media (max-width: 1040px) {
    .hero-section,
    .sdk-section {
        grid-template-columns: 1fr;
    }

    .memory-plane {
        max-width: 720px;
    }

    h1 {
        font-size: 58px;
    }

    .sdk-section h2 {
        font-size: 46px;
    }
}

@media (max-width: 760px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
        width: min(100% - 28px, 1180px);
    }

    .nav-links {
        width: 100%;
        overflow-x: auto;
        gap: 4px;
        padding: 4px;
    }

    .nav-links a {
        padding: 8px 9px;
        font-size: 12px;
    }

    .header-actions {
        display: none;
    }

    .hero-section,
    .proof-rows,
    .sdk-section {
        width: min(100% - 28px, 1180px);
    }

    h1 {
        font-size: 46px;
    }

    .signal-strip,
    .metric-grid,
    .controls,
    .proof-row {
        grid-template-columns: 1fr;
    }

    .metric {
        border-right: 0;
        border-bottom: 1px solid var(--hairline);
    }

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

    .proof-row {
        gap: 12px;
    }

    .chart-label {
        font-size: 10px;
    }

    .proof-row a {
        width: fit-content;
    }

    .plane-header {
        flex-direction: column;
    }

    .sdk-section {
        padding: 28px;
    }
}
