:root {
    --bg: #0c0d0f;
    --panel: #14161a;
    --panel-2: #1b1e23;
    --text: #f1eee6;
    --muted: #a6a39c;
    --line: #30333a;
    --gold: #d8ad58;
    --gold-dark: #8f6c2f;
    --danger: #d96b65;
    --success: #79c18a;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 75% 0, #211c14 0, var(--bg) 34rem); }
a { color: var(--gold); }
.site-header { display: flex; justify-content: space-between; align-items: center; max-width: 72rem; margin: 0 auto; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--line); }
.site-identity, .site-header nav { display: flex; align-items: center; gap: 1.25rem; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover { color: var(--text); }
.account-nav { margin-left: 1.5rem; }
.account-nav a, .account-nav .link-button { font-size: .9rem; }
.brand { color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: .06em; }
.shell { max-width: 72rem; margin: 0 auto; padding: 4rem 1.5rem; }
.hero { max-width: 48rem; padding: 6rem 0; }
h1 { margin: .3rem 0 1rem; font-size: clamp(2.2rem, 7vw, 5rem); line-height: .98; letter-spacing: -.045em; }
h2 { margin: .25rem 0 .8rem; }
.lede { max-width: 42rem; color: var(--muted); font-size: 1.2rem; line-height: 1.65; }
.lede.compact { font-size: 1rem; }
.eyebrow { margin: 0; color: var(--gold); font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero-actions, .actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.featured-project { display: flex; justify-content: space-between; align-items: end; gap: 2rem; padding: 2rem 0; border-top: 1px solid var(--line); }
.featured-project > div { max-width: 42rem; }
.page-heading { max-width: 52rem; margin-bottom: 3rem; }
.page-heading h1 { font-size: clamp(2.2rem, 6vw, 4.5rem); }
.product-heading { max-width: 48rem; }
.text-link { font-weight: 700; text-decoration: none; white-space: nowrap; }
.panel, .product-card, .key-reveal, .project-card, .content-card, .account-card { padding: 1.7rem; border: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 94%, transparent); border-radius: .75rem; }
.project-list, .content-grid, .account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: 1rem; }
.project-card p:not(.eyebrow), .content-card p, .account-card > p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }
.muted-card { background: color-mix(in srgb, var(--panel) 55%, transparent); }
.prose { max-width: 48rem; }
.narrow { max-width: 32rem; margin: 2rem auto; }
form:not(.inline-form) { display: grid; gap: .7rem; }
label { color: var(--muted); font-size: .9rem; }
input { width: 100%; padding: .85rem .9rem; color: var(--text); background: #0f1114; border: 1px solid var(--line); border-radius: .4rem; font: inherit; }
input:focus { outline: 2px solid var(--gold-dark); border-color: var(--gold); }
.button { display: inline-flex; justify-content: center; width: fit-content; margin-top: .5rem; padding: .75rem 1rem; color: #17120a; background: var(--gold); border: 1px solid var(--gold); border-radius: .4rem; font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; }
.button.secondary { color: var(--text); background: transparent; border-color: var(--line); }
.button.danger { color: #1d0d0c; background: var(--danger); border-color: var(--danger); }
.button:disabled { opacity: .42; cursor: not-allowed; }
.inline-form { display: inline; }
.link-button { padding: 0; color: var(--gold); background: none; border: 0; font: inherit; cursor: pointer; }
.quiet { color: var(--muted); font-size: .9rem; }
.validation { color: #f3948e; }
.notice { padding: 1rem 1.15rem; border: 1px solid var(--line); border-left: 3px solid var(--gold); background: var(--panel); border-radius: .35rem; }
.notice.warning { border-left-color: var(--danger); }
.notice.success { border-left-color: var(--success); }
.account-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 2rem; }
.account-heading h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr)); gap: 1rem; }
.card-heading { display: flex; justify-content: space-between; gap: 1rem; }
.status { height: fit-content; padding: .35rem .55rem; border: 1px solid var(--line); border-radius: 99rem; color: var(--muted); font-size: .75rem; }
.status.active { color: var(--success); border-color: color-mix(in srgb, var(--success), transparent 50%); }
.facts { margin: 1.4rem 0; }
.facts div { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; }
.download-row { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0; }
details { margin-top: 1.3rem; padding-top: 1rem; border-top: 1px solid var(--line); }
summary { cursor: pointer; color: var(--muted); }
.check { display: flex; align-items: start; gap: .5rem; }
.check input { width: auto; margin-top: .2rem; }
.key-reveal { margin-bottom: 1rem; border-color: var(--gold-dark); }
.key-reveal code { display: block; overflow-wrap: anywhere; padding: 1rem; color: var(--gold); background: #0d0e10; border-radius: .4rem; font-size: 1rem; }
.breadcrumbs { display: flex; gap: .5rem; margin-bottom: 2rem; color: var(--muted); font-size: .85rem; }
.compact-facts { margin-bottom: 0; }

@media (max-width: 40rem) {
    .shell { padding-top: 2rem; }
    .hero { padding: 3rem 0; }
    .site-header { align-items: flex-start; gap: 1rem; }
    .site-identity { align-items: flex-start; flex-direction: column; gap: .8rem; }
    .primary-nav { flex-wrap: wrap; gap: .8rem !important; }
    .featured-project { align-items: flex-start; flex-direction: column; }
    .download-row { align-items: flex-start; flex-direction: column; }
}
