:root {
    color-scheme: dark;
    --bg: #000;
    --surface: #06060a;
    --ink-rgb: 255, 255, 255;
    --ink: #f5f5f8;
    --muted: #a6a7b3;
    --dim: #777985;
    --line: rgba(var(--ink-rgb), .12);
    --soft: rgba(var(--ink-rgb), .04);
    --tint: 255, 122, 69;
    --shadow: 0, 0, 0;
}

:root[data-mode="midnight"] { --bg: #05060a; --surface: #0a0b11; }
:root[data-mode="slate"] { --bg: #12141c; --surface: #1b1e29; }
:root[data-mode="daylight"] {
    color-scheme: light;
    --bg: #e9ebf4;
    --surface: #fff;
    --ink-rgb: 18, 20, 32;
    --ink: #121420;
    --muted: #53576a;
    --dim: #6d7180;
    --line: rgba(var(--ink-rgb), .14);
    --soft: rgba(var(--ink-rgb), .035);
    --shadow: 38, 42, 68;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(ellipse 45% 32% at 82% 13%, rgba(var(--tint), .14), transparent 80%),
        radial-gradient(ellipse 45% 35% at 8% 85%, rgba(var(--tint), .055), transparent 80%),
        var(--bg);
    color: var(--ink);
    font: 400 14px/1.55 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: linear-gradient(rgba(var(--ink-rgb), .025) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(var(--ink-rgb), .025) 1px, transparent 1px);
    background-size: 68px 68px;
    mask-image: radial-gradient(ellipse 65% 65% at 50% 45%, #000, transparent);
    pointer-events: none;
}

button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
::selection { background: rgb(var(--tint)); color: #08090d; }
[hidden] { display: none !important; }

.shell { width: min(100% - 40px, 920px); margin: 0 auto; padding: 34px 0 64px; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.back {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    transition: color .2s ease;
}
.back:hover, .back:focus-visible { color: var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--dim); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.brand img { width: 27px; height: 27px; object-fit: cover; border-radius: 50%; border: 1px solid var(--line); }

.hero { margin: 54px 0 28px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; color: rgb(var(--tint)); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow i { font-size: 12px; }
h1 { margin: 0; font: 700 clamp(32px, 5vw, 47px)/1.08 "Space Grotesk", Inter, sans-serif; letter-spacing: -.045em; }
.lede { max-width: 56ch; margin: 13px 0 0; color: var(--muted); font-size: 14px; }

.panel {
    border: 1px solid var(--line);
    border-radius: 25px;
    background: linear-gradient(155deg, rgba(var(--ink-rgb), .045), transparent 38%), color-mix(in srgb, var(--surface), transparent 8%);
    box-shadow: inset 0 1px 0 rgba(var(--ink-rgb), .06), 0 28px 75px -28px rgba(var(--shadow), .68);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: clamp(18px, 3.5vw, 30px);
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.panel-title { display: flex; align-items: center; gap: 11px; min-width: 0; }
.key-mark { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border: 1px solid rgba(var(--tint), .32); border-radius: 11px; background: rgba(var(--tint), .13); color: rgb(var(--tint)); }
.panel-title strong { display: block; font-size: 13px; font-weight: 700; }
.panel-title small { display: block; margin-top: 1px; color: var(--dim); font-size: 11px; }
.badge { flex: none; border: 1px solid var(--line); border-radius: 100px; padding: 6px 10px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.content { display: grid; grid-template-columns: minmax(180px, .68fr) minmax(0, 1.55fr); gap: 18px; padding-top: 22px; }
.facts { margin: 0; display: grid; align-content: start; gap: 10px; }
.fact { min-width: 0; padding: 13px 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--soft); }
dt { margin-bottom: 5px; color: var(--dim); font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
dd { margin: 0; color: var(--ink); font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
dd small { color: var(--dim); font-size: inherit; font-weight: 500; }
.fp { color: rgb(var(--tint)); font: 600 11px/1.65 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .02em; word-spacing: .15em; }

.key-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--surface), transparent 2%); }
.key-card-head { display: flex; justify-content: space-between; gap: 10px; padding: 11px 15px; border-bottom: 1px solid var(--line); color: var(--dim); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.key-card-head span:last-child { color: rgb(var(--tint)); }
pre { margin: 0; padding: 16px; color: var(--muted); font: 400 11px/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; font-variant-ligatures: none; }
pre .arm { color: var(--ink); }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 39px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--soft); color: var(--ink); text-decoration: none; font-size: 12px; font-weight: 700; cursor: pointer; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.btn:hover, .btn:focus-visible { border-color: rgba(var(--tint), .45); background: rgba(var(--tint), .09); transform: translateY(-1px); }
.btn:focus-visible, .back:focus-visible { outline: 2px solid rgb(var(--tint)); outline-offset: 3px; }
.btn.primary { border-color: rgba(var(--tint), .4); background: rgba(var(--tint), .13); }
.btn i { color: rgb(var(--tint)); }
.btn[data-done] { border-color: rgba(var(--tint), .5); }

.command { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--soft); }
.command-main { min-width: 0; flex: 1; }
.command-label { display: block; margin-bottom: 5px; color: var(--dim); font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.command code { display: block; overflow-x: auto; color: var(--ink); font: 500 11px/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace; white-space: nowrap; scrollbar-width: thin; }
.command .btn { min-height: 34px; padding: 6px 10px; flex: none; }

.soon { margin: 22px 0 0; padding: 28px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); text-align: center; }
.soon i { display: block; margin-bottom: 8px; color: rgb(var(--tint)); font-size: 22px; }
.foot { margin: 24px 0 0; color: var(--dim); text-align: center; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.foot i { color: rgb(var(--tint)); }

@media (max-width: 680px) {
    .shell { width: min(100% - 30px, 520px); padding-top: 22px; }
    .hero { margin-top: 43px; }
    .content { grid-template-columns: 1fr; }
    .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fact:first-child { grid-column: 1 / -1; }
    .fact:nth-child(2) { grid-column: 1 / -1; }
}
@media (max-width: 400px) { .badge { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
