:root {
    color-scheme: dark;
    --background: #020303;
    --surface: #090b0b;
    --surface-raised: #0d1010;
    --text: #f0f2f2;
    --muted: #969a9b;
    --subtle: #666b6c;
    --border: #252b2c;
    --accent: #00dff0;
    --accent-soft: rgba(0, 223, 240, 0.11);
    --accent-glow: rgba(0, 223, 240, 0.23);
    --danger: #a83c3c;
    --warning: #b2862f;
    --radius: 8px;
    --max-width: 1352px;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--background);
    color: var(--text);
    font-size: 16px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

body::selection {
    background: var(--accent);
    color: #001013;
}

a {
    color: inherit;
}

img,
svg {
    display: block;
}

button,
.button,
.eyebrow,
.mono,
h1,
h2,
h3,
h4,
nav,
.brand,
.footer-links,
.legal-label {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    left: 16px;
    top: 12px;
    z-index: 100;
    transform: translateY(-160%);
    border-radius: 5px;
    background: var(--accent);
    color: #001013;
    padding: 8px 12px;
    font-weight: 700;
}

.skip-link:focus {
    transform: translateY(0);
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    height: 65px;
    border-bottom: 1px solid rgba(37, 43, 44, 0.78);
    background: rgba(2, 3, 3, 0.88);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 100%;
}

.brand {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 10px;
    color: var(--text);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.brand-mark {
    position: relative;
    width: 32px;
    height: 32px;
    border: 1px solid #202728;
    border-radius: 7px;
    background: linear-gradient(135deg, #181d1e, #080a0a);
    box-shadow: inset 0 0 16px rgba(255, 255, 255, 0.025);
}

.brand-mark::after {
    position: absolute;
    left: 50%;
    top: 7px;
    width: 3px;
    height: 17px;
    border-radius: 4px;
    background: linear-gradient(#e6ffff, var(--accent));
    box-shadow: 0 0 10px var(--accent-glow);
    content: "";
    transform: translateX(-50%);
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
    color: var(--muted);
    font-size: 14px;
}

.site-nav a {
    text-decoration: none;
    transition: color 150ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--accent);
}

.header-action {
    justify-self: end;
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
}

.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 0 24px;
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    transition: border-color 150ms ease, background 150ms ease, color 150ms ease, transform 150ms ease;
}

.button:hover {
    border-color: #3c4647;
    background: #101414;
    transform: translateY(-1px);
}

.button-primary {
    border-color: var(--accent);
    background: var(--accent);
    color: #001013;
    box-shadow: 0 10px 34px -13px var(--accent-glow);
    font-weight: 650;
}

.button-primary:hover {
    border-color: #56f5ff;
    background: #56f5ff;
}

.button-disabled {
    cursor: default;
}

.button-disabled:hover {
    border-color: var(--accent);
    background: var(--accent);
    transform: none;
}

.button-small {
    min-height: 36px;
    padding-inline: 16px;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 126px 0 137px;
}

.hero::before {
    position: absolute;
    z-index: -1;
    top: -220px;
    left: 31%;
    width: 820px;
    height: 820px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 223, 240, 0.15), transparent 66%);
    content: "";
    filter: blur(12px);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(470px, 0.97fr);
    align-items: center;
    gap: 90px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 7px 15px;
    background: rgba(10, 12, 12, 0.82);
    color: var(--muted);
    font-size: 13px;
}

.prompt-glyph {
    color: var(--accent);
}

.hero h1 {
    margin: 26px 0 0;
    color: var(--accent);
    font-size: clamp(50px, 6vw, 72px);
    line-height: 0.95;
    letter-spacing: -0.055em;
}

.hero-kicker {
    margin: 22px 0 0;
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: clamp(21px, 2.5vw, 28px);
    letter-spacing: 0.015em;
}

.hero-copy {
    max-width: 590px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 38px;
}

.terminal-window {
    overflow: hidden;
    border: 1px solid #2b3334;
    border-radius: 8px;
    background: #080a0a;
    box-shadow: 0 34px 100px -36px rgba(0, 223, 240, 0.38);
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 41px;
    border-bottom: 1px solid var(--border);
    padding: 0 16px;
    background: #121414;
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
}

.terminal-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--danger);
}

.terminal-dot:nth-child(2) { background: var(--warning); }
.terminal-dot:nth-child(3) { background: #189dac; }
.terminal-title { margin-left: 10px; }

.terminal-body {
    min-height: 196px;
    padding: 22px 25px 26px;
    color: #e7e9e9;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 14px;
    line-height: 1.9;
}

.terminal-body p { margin: 0; }
.terminal-body .muted { color: var(--muted); }
.terminal-body .accent { color: var(--accent); }
.terminal-body code {
    border-radius: 3px;
    padding: 2px 6px;
    background: #1c2020;
    color: #f5f6f6;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 1px;
    margin-left: 7px;
    background: var(--text);
    vertical-align: middle;
    animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.section {
    padding: 98px 0;
}

.section-bordered {
    border-top: 1px solid var(--border);
}

.section-heading {
    margin-bottom: 62px;
    text-align: center;
}

.section-heading h2 {
    margin: 0;
    font-size: 29px;
    letter-spacing: -0.035em;
}

.section-heading p {
    margin: 10px 0 0;
    color: var(--muted);
}

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

.card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(13, 16, 16, 0.94), rgba(8, 10, 10, 0.98));
}

.feature-card {
    min-height: 190px;
    padding: 24px;
}

.feature-icon,
.support-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 6px;
    background: var(--accent-soft);
    color: var(--accent);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 21px;
    font-weight: 700;
}

.feature-card h3,
.support-card h2,
.principle-card h2 {
    margin: 18px 0 7px;
    font-size: 18px;
    letter-spacing: 0;
}

.feature-card p,
.support-card p,
.principle-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.step {
    position: relative;
    text-align: center;
}

.step:not(:last-child)::after {
    position: absolute;
    top: 21px;
    right: -31px;
    color: rgba(0, 223, 240, 0.5);
    content: "›";
    font-family: ui-monospace, monospace;
    font-size: 34px;
}

.step-number {
    color: rgba(0, 223, 240, 0.55);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 50px;
    font-weight: 800;
    line-height: 1;
}

.step h3 {
    margin: 15px 0 5px;
    font-size: 17px;
    font-weight: 500;
}

.step p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.cta-wrap {
    padding: 84px 0 94px;
}

.cta {
    padding: 52px 32px;
    text-align: center;
}

.cta h2 {
    margin: 0;
    font-size: 29px;
}

.cta p {
    margin: 10px 0 28px;
    color: var(--muted);
}

.content-main {
    min-height: calc(100vh - 65px);
    padding: 88px 0 116px;
}

.reading-width {
    width: min(calc(100% - 40px), 770px);
    margin-inline: auto;
}

.wide-reading-width {
    width: min(calc(100% - 40px), 900px);
    margin-inline: auto;
}

.page-title {
    margin: 0;
    font-size: clamp(35px, 5vw, 43px);
    letter-spacing: -0.045em;
    line-height: 1.15;
}

.page-lead {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 18px;
}

.about-intro {
    margin-top: 36px;
}

.prose {
    color: var(--muted);
}

.prose > *:first-child { margin-top: 0; }
.prose h2 {
    margin: 38px 0 12px;
    color: var(--text);
    font-size: 21px;
    letter-spacing: 0;
}

.prose h3 {
    margin: 25px 0 8px;
    color: var(--text);
    font-size: 17px;
    font-weight: 500;
}

.prose p { margin: 0 0 16px; }
.prose ul,
.prose ol { padding-left: 24px; }
.prose li { margin: 5px 0; }
.prose strong { color: #b8bcbd; }
.prose a,
.text-link { color: var(--accent); text-underline-offset: 3px; }
.legal-meta { margin: 18px 0 31px; color: var(--muted); }
.legal-label { color: var(--text); font-size: 17px; }

.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 48px 0;
}

.principle-card { padding: 24px; }
.principle-card h2 { margin-top: 0; }

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    overflow: hidden;
    margin-top: 26px;
}

.detail {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    padding: 17px 20px;
}

.detail:nth-child(odd) { border-right: 1px solid var(--border); }
.detail:nth-last-child(-n + 2) { border-bottom: 0; }
.detail dt { color: var(--muted); }
.detail dd { margin: 0; font-family: ui-monospace, monospace; }

.support-stack {
    display: grid;
    gap: 28px;
    margin-top: 46px;
}

.support-card {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 18px;
    padding: 31px;
}

.support-card h2 { margin-top: 0; }
.support-card h3 {
    margin: 25px 0 6px;
    font-size: 16px;
    font-weight: 500;
}

.support-card h3:first-of-type { margin-top: 14px; }
.support-card .legal-links { display: grid; gap: 7px; }

.notice {
    margin: 23px 0 0;
    border-left: 2px solid var(--accent);
    padding: 13px 16px;
    background: var(--accent-soft);
    color: #b9c0c1;
    font-size: 14px;
}

.site-footer {
    border-top: 1px solid var(--border);
    background: #090a0a;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 76px;
    padding: 68px 0 51px;
}

.footer-tagline {
    margin: 20px 0 0;
    color: var(--muted);
    font-family: ui-monospace, monospace;
    font-size: 14px;
}

.footer-links {
    display: grid;
    align-content: start;
    gap: 8px;
    min-width: 120px;
    font-size: 14px;
}

.footer-links strong {
    margin-bottom: 4px;
    color: var(--text);
    font-weight: 500;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
}

.footer-links a:hover { color: var(--accent); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 26px 0 30px;
    color: var(--muted);
    font-family: ui-monospace, monospace;
    font-size: 12px;
    text-align: center;
}

@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; gap: 62px; }
    .terminal-window { max-width: 680px; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    .container { width: min(calc(100% - 36px), var(--max-width)); }
    .site-header { height: auto; }
    .js .site-header { height: 61px; }
    .header-inner { grid-template-columns: 1fr auto; }
    .header-action { display: none; }
    .js .menu-button { display: inline-grid; place-items: center; }
    .site-nav {
        position: static;
        grid-column: 1 / -1;
        display: grid;
        align-items: stretch;
        gap: 0;
        width: 100%;
        border-top: 1px solid var(--border);
        padding: 10px 0 16px;
        background: rgba(2, 3, 3, 0.98);
    }
    .js .site-nav {
        position: absolute;
        top: 61px;
        left: 0;
        right: 0;
        grid-column: auto;
        width: auto;
        border-top: 0;
        border-bottom: 1px solid var(--border);
        padding: 10px 18px 16px;
    }
    .site-nav[data-collapsed] { display: none; }
    .site-nav a { padding: 11px 8px; }
    .hero { padding: 82px 0 96px; }
    .hero::before { left: -140px; top: -120px; width: 620px; height: 620px; }
    .hero-grid { grid-template-columns: 1fr; gap: 54px; }
    .hero h1 { font-size: 54px; }
    .hero-kicker { font-size: 21px; }
    .hero-actions { display: grid; }
    .button { width: 100%; }
    .terminal-body { overflow-x: auto; padding-inline: 18px; font-size: 12px; white-space: nowrap; }
    .section { padding: 78px 0; }
    .section-heading { margin-bottom: 42px; }
    .feature-grid,
    .principles-grid,
    .steps,
    .details-grid { grid-template-columns: 1fr; }
    .step:not(:last-child)::after { display: none; }
    .detail:nth-child(odd) { border-right: 0; }
    .detail:nth-last-child(-n + 2) { border-bottom: 1px solid var(--border); }
    .detail:last-child { border-bottom: 0; }
    .content-main { padding: 64px 0 90px; }
    .support-card { grid-template-columns: 1fr; padding: 24px; }
    .footer-main { grid-template-columns: 1fr 1fr; gap: 45px 30px; padding-top: 52px; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
