:root {
  color-scheme: dark;
  --void: #0A120E;
  --canvas: #0F1B16;
  --surface: #101A16;
  --elevated: #1C2E26;
  --border: #2E473B;
  --divider: #22382E;
  --sage: #76B893;
  --sage-bright: #8ED0AA;
  --brass: #CBB07A;
  --brass-muted: #6D634B;
  --ivory: #F3EFE6;
  --mist: #A4B8AD;
  font-family: "Inter", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  color: var(--ivory);
  background: var(--canvas);
}
* { box-sizing: border-box; }
body, h1, h2, h3, p, ol { margin: 0; }
body { line-height: 1.5; background: var(--canvas); color: var(--ivory); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 4px; }
.shell { width: min(1140px, 88%); margin-inline: auto; }
header { background: var(--void); border-bottom: 1px solid var(--border); }
.bar, .brand, nav, .platform-heading, .jump, .download { display: flex; align-items: center; }
.bar { min-height: 68px; justify-content: space-between; gap: 1rem; }
.brand { line-height: 0; border-radius: 6px; }
.brand-logo { display: block; height: 38px; width: auto; }
nav { gap: clamp(.9rem, 3vw, 2.5rem); }
nav a { color: var(--mist); font-size: .9rem; font-weight: 500; padding-block: .65rem; transition: color .15s ease; }
nav a:hover { color: var(--sage-bright); }
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--void); border-bottom: 1px solid var(--border); }
.hero-art { position: absolute; z-index: -1; inset: 0 0 0 24%; background: url("./hero-waldruine.jpg") center 46% / cover no-repeat; }
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--void) 0%, rgb(10 18 14 / 92%) 20%, rgb(10 18 14 / 42%) 52%, rgb(10 18 14 / 12%) 100%),
    linear-gradient(0deg, rgb(10 18 14 / 72%), transparent 36%);
}
.hero-inner { min-height: clamp(330px, 31vw, 440px); display: flex; align-items: center; }
.hero-copy { padding-block: 42px; max-width: 470px; }
.hero-crest { display: block; width: min(290px, 78%); height: auto; margin-bottom: .9rem; }
h1, h2, h3 { font-weight: 560; line-height: 1.12; color: var(--ivory); }
h1 { font-size: .95rem; font-weight: 640; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); }
.hero-copy p { margin-top: .65rem; max-width: 400px; color: var(--mist); font-size: clamp(.98rem, 1.4vw, 1.08rem); }
.jump, .download { width: fit-content; gap: 1.2rem; font-size: .9rem; font-weight: 640; border-radius: 6px; transition: background-color .15s ease, border-color .15s ease; }
.jump { margin-top: 1.5rem; padding: .62rem 1.05rem; color: var(--brass); background: rgb(16 26 22 / 78%); border: 1px solid var(--brass-muted); }
.jump:hover { background: var(--elevated); border-color: var(--brass); color: var(--ivory); }
.map-caption { position: absolute; right: 4%; bottom: 1rem; color: var(--ivory); font-size: .84rem; letter-spacing: .04em; background: rgb(10 18 14 / 68%); border: 1px solid var(--divider); border-radius: 4px; padding: .2rem .6rem; }
.map-caption span { color: var(--brass); margin-inline: .25em; }
.body-content { padding-block: clamp(2.4rem, 4vw, 3.8rem); }
section[id] { scroll-margin-top: 1rem; }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); letter-spacing: -.025em; }
.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.85rem, 2vw, 1.4rem); margin-top: 1.3rem; }
.platform { padding: clamp(1.2rem, 2.4vw, 2rem); background: linear-gradient(135deg, var(--elevated), var(--surface)); border: 1px solid var(--border); border-radius: 10px; }
.platform-heading { gap: 1rem; }
h3 { font-size: 1.55rem; letter-spacing: -.02em; }
.platform-heading p, .package-state { color: var(--mist); font-size: .9rem; }
.platform-heading p { margin-top: .18rem; }
.os-icon { flex: 0 0 32px; width: 32px; height: 32px; color: var(--brass); }
.windows-icon { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; }
.windows-icon i { background: currentColor; border-radius: 1px; }
.mac-icon { position: relative; }
.mac-icon::before, .mac-icon::after { content: ""; position: absolute; }
.mac-icon::before { inset: 2px 1px 7px; border: 2px solid currentColor; border-radius: 3px; }
.mac-icon::after { inset: 25px 0 3px; background: currentColor; clip-path: polygon(9% 0, 91% 0, 100% 68%, 98% 100%, 2% 100%, 0 68%); }
.linux-icon { position: relative; }
.linux-icon::before, .linux-icon::after { content: ""; position: absolute; }
.linux-icon::before { inset: 3px 1px; border: 2px solid currentColor; border-radius: 4px; }
.linux-icon::after { left: 8px; top: 10px; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.download { background: var(--sage); color: var(--void); padding: .7rem 1.1rem; margin-top: 1.25rem; }
.download:hover { background: var(--sage-bright); }
.package-state { margin-top: 1.15rem; }
.download:not([hidden]) + .package-state { margin-top: .55rem; }
#retry { margin-top: 1rem; border: 1px solid var(--brass-muted); border-radius: 6px; color: var(--brass); background: var(--surface); cursor: pointer; padding: .5rem .9rem; }
#retry:hover { background: var(--elevated); border-color: var(--brass); }
.alpha-gate { margin-top: 1.3rem; max-width: 560px; padding: clamp(1.3rem, 2.5vw, 2rem); background: linear-gradient(135deg, var(--elevated), var(--surface)); border: 1px solid var(--border); border-radius: 10px; }
.alpha-gate h3 { font-size: 1.35rem; color: var(--ivory); }
.alpha-gate > p { margin-top: .55rem; color: var(--mist); font-size: .94rem; }
.alpha-message { margin-top: 1rem; padding: .7rem .95rem; border-radius: 6px; border: 1px solid var(--border); border-left: 4px solid var(--sage); background: var(--surface); color: var(--ivory); font-size: .9rem; }
.alpha-message[data-error] { background: #2B1717; border-color: #6D3431; border-left-color: #F2B6B1; color: #F2B6B1; }
.alpha-form { margin-top: 1.15rem; }
.alpha-form label { display: block; color: var(--mist); font-size: .85rem; font-weight: 600; margin-bottom: .45rem; }
.alpha-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.alpha-form input { flex: 1 1 220px; min-height: 2.7rem; padding: .55rem .85rem; border: 1px solid var(--border); border-radius: 6px; background: var(--void); color: var(--ivory); font: inherit; }
.alpha-primary { min-height: 2.7rem; padding: .55rem 1.15rem; border: 1px solid var(--sage); border-radius: 6px; background: var(--sage); color: var(--void); font-weight: 650; cursor: pointer; transition: background-color .15s ease; }
.alpha-primary:hover:enabled { background: var(--sage-bright); border-color: var(--sage-bright); }
.alpha-primary:disabled, .alpha-secondary:disabled { opacity: .5; cursor: default; }
.alpha-secondary-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .8rem; }
.alpha-secondary { min-height: 2.3rem; padding: .4rem .85rem; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--mist); font-size: .86rem; font-weight: 560; cursor: pointer; }
.alpha-secondary:hover:enabled { color: var(--ivory); border-color: var(--sage); background: var(--elevated); }
.alpha-session { margin-top: 1rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem 1rem; border: 1px solid var(--divider); border-radius: 8px; background: var(--surface); color: var(--mist); font-size: .88rem; }
.alpha-discord { margin-top: 1.3rem; padding: 1.1rem 1.35rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; background: linear-gradient(135deg, var(--elevated), var(--surface)); border: 1px solid var(--border); border-left: 4px solid var(--sage); border-radius: 10px; }
.alpha-discord h3 { font-size: 1.15rem; color: var(--ivory); }
.alpha-discord p { margin-top: .25rem; color: var(--mist); font-size: .9rem; }
.discord-link { display: inline-flex; align-items: center; gap: .6rem; padding: .65rem 1.1rem; border: 1px solid var(--brass-muted); border-radius: 6px; background: var(--surface); color: var(--brass); font-size: .9rem; font-weight: 640; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.discord-link:hover { background: var(--elevated); border-color: var(--brass); color: var(--ivory); }
.installation { display: grid; grid-template-columns: minmax(10rem, .55fr) 1fr; gap: 1rem; border-top: 1px solid var(--divider); margin-top: clamp(2.6rem, 5vw, 4rem); padding-top: 1.8rem; }
ol { padding-left: 1.65rem; color: var(--mist); }
li { padding-left: .3rem; }
li + li { margin-top: .6rem; }
li::marker { color: var(--brass); font-weight: 600; font-variant-numeric: tabular-nums; }
code { color: var(--brass); background: var(--elevated); border: 1px solid var(--divider); border-radius: 4px; padding: .08rem .35rem; font-size: .9em; }
.installation-steps { min-width: 0; }
.install-note { margin-top: 1.4rem; padding: 1rem 1.2rem; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--brass); border-radius: 8px; }
.install-note h3 { font-size: 1rem; font-weight: 620; color: var(--ivory); }
.install-note p { margin-top: .55rem; color: var(--mist); font-size: .92rem; }
.install-note strong { color: var(--ivory); font-weight: 600; }
.install-cmd { margin: .65rem 0 0; padding: .65rem .85rem; background: var(--void); border: 1px solid var(--divider); border-radius: 6px; overflow-x: auto; }
.install-cmd code { background: none; border: 0; padding: 0; color: var(--sage-bright); font-size: .88rem; user-select: all; }
@media (max-width: 720px) {
  .hero-art { left: 12%; }
  .hero-art::after { background: linear-gradient(90deg, var(--void) 0%, rgb(10 18 14 / 84%) 36%, rgb(10 18 14 / 26%) 86%), linear-gradient(0deg, rgb(10 18 14 / 72%), transparent 34%); }
  .hero-copy { max-width: 74%; }
  .platforms { grid-template-columns: 1fr; }
  .installation { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .shell { width: 89%; }
  .bar { min-height: 58px; }
  .brand-logo { height: 30px; }
  nav a { font-size: .84rem; }
  .hero-inner { min-height: 360px; align-items: flex-end; }
  .hero-art { inset: 0; background-position: 56% 24%; }
  .hero-art::after { background: linear-gradient(0deg, var(--void) 6%, rgb(10 18 14 / 92%) 34%, rgb(10 18 14 / 62%) 62%, rgb(10 18 14 / 10%) 90%); }
  .hero-copy { padding: 112px 0 26px; max-width: 100%; }
  .hero-crest { width: min(220px, 72%); }
  .hero-copy p { max-width: 340px; }
  .jump { margin-top: 1rem; }
  .map-caption { top: .85rem; bottom: auto; font-size: .78rem; }
}
@media (max-width: 360px) {
  nav { gap: .6rem; }
}
