@font-face {
    font-family: "Departure Mono";
    src: url("../fonts/DepartureMono-Regular.woff2") format("woff2");
    font-display: swap;
}

:root {
    --bg: #090a0c;
    --surface: #0f1114;
    --ink: #f1f2ed;
    --muted: #90939a;
    --dim: #5f6269;
    --line: rgba(241, 242, 237, 0.14);
    --line-strong: rgba(241, 242, 237, 0.28);
    --acid: #b9ff44;
    --display: "Departure Mono", "SFMono-Regular", Consolas, monospace;
    --sans: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    --page: 1080px;
    --gutter: clamp(1.25rem, 5vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--acid); color: var(--bg); }

.nav,
main,
.footer {
    width: min(100%, var(--page));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.nav {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    border-bottom: 1px solid var(--line);
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--display);
    font-size: 0.82rem;
    letter-spacing: 0.12em;
}

.wordmark__mark {
    width: 10px;
    height: 10px;
    display: inline-block;
    border-radius: 50%;
    background: var(--acid);
    box-shadow: 0 0 12px rgba(185, 255, 68, 0.55);
}

.nav__right {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 4vw, 2.5rem);
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.65rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.nav__right a,
.footer a { transition: color 160ms ease; }
.nav__right a:hover,
.footer a:hover { color: var(--ink); }
.alpha { color: var(--acid); }

.hero {
    min-height: min(720px, calc(100svh - 76px));
    padding-block: clamp(5rem, 13vw, 9rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.eyebrow {
    margin: 0 0 1.75rem;
    color: var(--acid);
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-transform: uppercase;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1,
h2 {
    font-family: var(--display);
    font-weight: 400;
    letter-spacing: -0.055em;
    line-height: 0.94;
    text-transform: uppercase;
}

h1 {
    max-width: 900px;
    margin-bottom: clamp(2.5rem, 6vw, 4rem);
    font-size: clamp(4.1rem, 11.5vw, 8.9rem);
}

h1 em {
    color: transparent;
    font-style: normal;
    -webkit-text-stroke: 1px rgba(241, 242, 237, 0.55);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.button {
    min-width: 220px;
    min-height: 52px;
    padding: 0.9rem 1rem 0.9rem 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    border: 1px solid var(--line-strong);
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button--primary {
    border-color: var(--acid);
    background: var(--acid);
    color: #10130b;
}

.button:not(.is-disabled):hover { transform: translateY(-2px); }
.button--primary:not(.is-disabled):hover { background: #d1ff85; border-color: #d1ff85; }
.button:not(.button--primary):not(.is-disabled):hover { border-color: var(--ink); }
.is-disabled { opacity: 0.35; cursor: not-allowed; }

.availability {
    margin: 1rem 0 0;
    color: var(--dim);
    font-family: var(--mono);
    font-size: 0.65rem;
}
.availability.is-ready { color: var(--acid); }

.downloads,
.quick-start,
.mcp {
    padding-block: clamp(5rem, 10vw, 8rem);
    border-top: 1px solid var(--line);
}

.section-heading {
    display: grid;
    grid-template-columns: 0.65fr 1.35fr;
    gap: clamp(2rem, 6vw, 6rem);
    align-items: baseline;
    margin-bottom: clamp(3rem, 7vw, 5.5rem);
}

.section-heading .eyebrow { margin: 0; }
h2 {
    margin-bottom: 0;
    font-size: clamp(2.5rem, 6vw, 5.25rem);
}

.file-list { border-top: 1px solid var(--line); }
.file-row {
    min-height: 132px;
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 1.5rem;
    align-items: center;
    border-bottom: 1px solid var(--line);
}

.file-row__type {
    width: 48px;
    height: 54px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    background: rgba(185, 255, 68, 0.05);
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.55rem;
    letter-spacing: 0.06em;
}

.file-row__type--show { background: rgba(255,255,255,0.025); }
.file-row h3 {
    margin-bottom: 0.25rem;
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    font-weight: 500;
    letter-spacing: -0.025em;
}
.file-row p {
    margin-bottom: 0;
    color: var(--dim);
    font-family: var(--mono);
    font-size: 0.62rem;
    text-transform: uppercase;
}
.file-row__link {
    color: var(--acid);
    font-family: var(--mono);
    font-size: 0.67rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.quick-start ol {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    list-style: none;
    border-top: 1px solid var(--line);
}
.quick-start li {
    min-height: 170px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.quick-start li:first-child { border-left: 1px solid var(--line); }
.quick-start li span {
    color: var(--acid);
    font-family: var(--mono);
    font-size: 0.65rem;
}
.quick-start li p { margin: 0; font-size: 0.95rem; }

.mcp__intro {
    max-width: 32rem;
    margin: 0 0 1.5rem 32.5%;
    color: var(--muted);
    font-size: 0.9rem;
}

.command {
    min-height: 82px;
    padding: 1rem 1rem 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    border: 1px solid var(--line);
    background: var(--surface);
}

.command code {
    overflow-wrap: anywhere;
    color: var(--ink);
    font-family: var(--mono);
    font-size: clamp(0.68rem, 1.5vw, 0.82rem);
}

.command button {
    flex: 0 0 auto;
    min-width: 72px;
    min-height: 40px;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--line-strong);
    background: transparent;
    color: var(--acid);
    font-family: var(--mono);
    font-size: 0.64rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease;
}

.command button:hover,
.command button:focus-visible {
    border-color: var(--acid);
    background: rgba(185, 255, 68, 0.05);
    outline: none;
}

.feedback {
    padding-block: 2.5rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.68rem;
    text-transform: uppercase;
}
.feedback p { margin: 0; }
.feedback a { margin-left: 0.35rem; color: var(--acid); }

.footer {
    min-height: 110px;
    padding-block: 2rem;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 2rem;
    align-items: center;
    border-top: 1px solid var(--line);
    color: var(--dim);
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.footer p { margin: 0; }

@media (max-width: 720px) {
    .nav { min-height: 68px; }
    .alpha { display: none; }
    .nav__right a { font-size: 0; }
    .nav__right a::before { content: "Portfolio ↗"; font-size: 0.62rem; }
    .hero { min-height: auto; padding-block: 6rem; }
    .hero__actions { width: 100%; display: grid; }
    .button { width: 100%; }
    .section-heading { display: block; }
    .section-heading .eyebrow { margin-bottom: 1.75rem; }
    .file-row { grid-template-columns: 58px 1fr; padding-block: 1.25rem; }
    .file-row__link { grid-column: 2; }
    .quick-start ol { grid-template-columns: 1fr; }
    .quick-start li { min-height: 120px; border-left: 1px solid var(--line); }
    .mcp__intro { margin-left: 0; }
    .command { align-items: flex-start; flex-direction: column; }
    .command button { align-self: stretch; }
    .footer { grid-template-columns: 1fr auto; }
    .footer p:first-of-type { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 430px) {
    h1 { font-size: clamp(3.5rem, 18vw, 5rem); }
    .wordmark { font-size: 0.74rem; }
    .feedback a { display: block; margin: 0.5rem 0 0; }
}

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