@font-face {
  font-family: "Satoshi";
  src: url("../fonts/satoshi-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("../fonts/satoshi-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("../fonts/satoshi-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #050403;
  --panel: #11100d;
  --panel-strong: #1a1711;
  --line: rgba(221, 167, 75, 0.18);
  --line-strong: rgba(241, 196, 110, 0.36);
  --text: #f4ebdb;
  --muted: #a99d89;
  --dim: #776f61;
  --red: #c24d3a;
  --red-dark: #7d281e;
  --cyan: #d7a64d;
  --green: #d9ad58;
  --amber: #d9a441;
  --steel: #c7b89d;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(135deg, rgba(217, 164, 65, 0.04) 0 1px, transparent 1px 12px),
    radial-gradient(circle at 72% 12%, rgba(217, 164, 65, 0.12), transparent 26rem),
    linear-gradient(180deg, #050403 0%, #0a0806 54%, #040302 100%);
  color: var(--text);
  font-family: "Satoshi", Arial, sans-serif;
  line-height: 1.45;
}

a {
  color: inherit;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(5, 4, 3, 0.82);
  border-bottom: 1px solid var(--line);
}

.topbar .shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
}

.brand strong {
  font-size: 20px;
  font-weight: 700;
}

.brand span {
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a,
.nav button,
.button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  font: 500 14px "Satoshi", Arial, sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.nav a:hover,
.nav button:hover,
.button:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.09);
}

.button.primary {
  border-color: rgba(217, 164, 65, 0.55);
  background: linear-gradient(135deg, #d9a441, #7a531d 72%);
  box-shadow: 0 16px 42px rgba(217, 164, 65, 0.18);
}

.hero {
  min-height: 620px;
  padding: 86px 0 42px;
  position: relative;
  overflow: hidden;
}

.hero.slim {
  min-height: 480px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 4, 3, 0.96) 0%, rgba(5, 4, 3, 0.76) 48%, rgba(5, 4, 3, 0.24) 100%),
    linear-gradient(180deg, rgba(5, 4, 3, 0) 72%, var(--bg) 100%),
    url("../media/cast-living-gold-wide.jpg") center right / cover no-repeat;
  opacity: 0.96;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(217, 164, 65, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 164, 65, 0.032) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, black, transparent 74%);
}

.hero-copy {
  width: min(680px, 100%);
}

.status-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(217, 164, 65, 0.36);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(217, 164, 65, 0.08);
  color: #f4dca7;
  font: 500 12px "JetBrains Mono", monospace;
  text-transform: uppercase;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(217, 164, 65, 0.16);
}

h1 {
  margin: 24px 0 18px;
  font-size: 58px;
  line-height: 1.02;
  letter-spacing: 0;
}

.lede {
  max-width: 620px;
  margin: 0;
  color: #d8ccb8;
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 62px;
}

.signal {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(13, 12, 9, 0.76);
  box-shadow: var(--shadow);
}

.signal span {
  display: block;
  color: var(--muted);
  font: 500 11px "JetBrains Mono", monospace;
  text-transform: uppercase;
}

.signal strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
}

.band {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head h2,
.page-title h1 {
  margin: 0;
  font-size: 36px;
  line-height: 1.08;
}

.section-head p,
.page-title p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.card,
.release-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(26, 23, 17, 0.96), rgba(10, 9, 7, 0.98));
  box-shadow: var(--shadow);
}

.card {
  padding: 24px;
}

.card h3,
.release-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card ul,
.steps {
  margin: 18px 0 0;
  padding-left: 20px;
  color: #d5dde6;
}

.card li,
.steps li {
  margin: 8px 0;
}

.mode-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 18px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(217, 164, 65, 0.09);
  border: 1px solid rgba(217, 164, 65, 0.3);
  color: #efd394;
  font: 500 12px "JetBrains Mono", monospace;
}

.release-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.release-card {
  padding: 20px;
}

.release-card header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.release-card .meta {
  color: var(--muted);
  font: 400 13px "JetBrains Mono", monospace;
  overflow-wrap: anywhere;
}

.checksum {
  margin-top: 14px;
  padding: 12px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.32);
  color: #efe2c7;
  font: 400 12px "JetBrains Mono", monospace;
  overflow-wrap: anywhere;
}

.release-card a {
  display: inline-flex;
  margin-top: 14px;
}

.notice {
  border-left: 3px solid var(--amber);
  padding: 18px 20px;
  background: rgba(255, 200, 87, 0.08);
  color: #ffe7aa;
}

.rail {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

.rail-nav {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 8px;
}

.rail-nav a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--steel);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
}

.rail-nav a:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.doc {
  display: grid;
  gap: 18px;
}

.doc-section {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.doc-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.doc-section h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.doc-section p {
  color: var(--muted);
}

code,
.mono {
  font-family: "JetBrains Mono", monospace;
}

code {
  color: #f0d79a;
}

.footer {
  padding: 36px 0 56px;
  border-top: 1px solid var(--line);
  color: var(--dim);
}

.footer .shell {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 880px) {
  .topbar .shell,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 590px;
    padding-top: 60px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(5, 4, 3, 0.9) 0%, rgba(5, 4, 3, 0.62) 42%, rgba(5, 4, 3, 0.92) 100%),
      url("../media/cast-living-gold-mobile.jpg") center top / cover no-repeat;
  }

  h1 {
    font-size: 42px;
  }

  .lede {
    font-size: 18px;
  }

  .signal-strip,
  .grid.three,
  .grid.two,
  .release-grid,
  .rail {
    grid-template-columns: 1fr;
  }

  .rail-nav {
    position: static;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 28px, 1180px);
  }

  .nav a,
  .nav button,
  .button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  h1 {
    font-size: 36px;
  }

  .section-head h2,
  .page-title h1 {
    font-size: 30px;
  }

  .rail-nav {
    grid-template-columns: 1fr;
  }
}
