:root {
  color-scheme: dark;
  --bg: #050705;
  --panel: #101714;
  --panel-2: #17201d;
  --text: #eff7ed;
  --muted: #a8b7ae;
  --green: #42ff6d;
  --cyan: #6cd6ff;
  --amber: #f2b84b;
  --red: #ff6b63;
  --line: rgba(239, 247, 237, 0.16);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px clamp(16px, 4vw, 42px);
  background: rgba(5, 7, 5, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  text-decoration: none;
}

.brand-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
}

.brand-subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.app-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  object-fit: contain;
}

nav {
  display: flex;
  align-items: center;
  margin-left: auto;
  justify-content: flex-end;
  gap: clamp(10px, 2vw, 22px);
  color: var(--muted);
  font-size: 14px;
}

nav a {
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  color: var(--green);
}

.hero {
  position: relative;
  min-height: 76vh;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  background: #050705 url("assets/programming-guide-cover.png") center 42% / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.54);
}

.hero-content {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0 38px;
}

.status,
.eyebrow {
  margin: 0 0 10px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: break-word;
}

h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(46px, 8vw, 92px);
  line-height: 0.95;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: normal;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.intro {
  max-width: 690px;
  margin-bottom: 26px;
  color: #d8e4d9;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.download-form {
  width: 100%;
  max-width: 920px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(5, 7, 5, 0.74);
}

.form-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
  margin-bottom: 14px;
}

.form-heading strong {
  color: var(--green);
  font-size: 18px;
}

.form-heading span,
.form-note {
  min-width: 0;
  color: var(--muted);
}

.download-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.download-fields label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 750;
}

.download-fields input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  background: #070b09;
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}

.download-fields input:focus {
  outline: 2px solid rgba(66, 255, 109, 0.55);
  outline-offset: 1px;
}

.form-note {
  margin: 12px 0 0;
  font-size: 14px;
}

.primary-button,
.secondary-button,
.icon-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 800;
  text-align: center;
  white-space: normal;
}

button.primary-button {
  cursor: pointer;
  font: inherit;
}

.primary-button {
  background: var(--green);
  color: #061006;
  border-color: var(--green);
}

.secondary-button,
.icon-button {
  background: rgba(16, 23, 20, 0.9);
  color: var(--text);
}

.primary-button:hover,
.primary-button:focus-visible {
  background: var(--cyan);
  border-color: var(--cyan);
}

.secondary-button:hover,
.secondary-button:focus-visible,
.icon-button:hover,
.icon-button:focus-visible {
  border-color: var(--green);
}

.build-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 34px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.build-strip div {
  padding: 16px 16px 16px 0;
  border-right: 1px solid var(--line);
}

.build-strip div:last-child {
  border-right: 0;
}

dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-weight: 750;
}

.notice-band {
  background: var(--red);
  color: #1b0504;
}

.notice-layout {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.section {
  padding: clamp(48px, 8vw, 86px) 0;
  background: var(--bg);
}

.section.muted {
  background: var(--panel);
}

.visual-band {
  background: #0b100d;
}

.section-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.split,
.report-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.checksum-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
}

code {
  color: var(--green);
  font-family: "Courier New", ui-monospace, monospace;
  overflow-wrap: anywhere;
}

button {
  font: inherit;
  cursor: pointer;
}

.steps,
.screens,
.check-grid {
  display: grid;
  gap: 14px;
}

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

.steps article,
.screens figure,
.check-grid label {
  border: 1px solid var(--line);
  background: var(--panel-2);
}

.steps article {
  padding: 18px;
}

.steps span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-family: "Courier New", monospace;
  font-weight: 800;
}

.steps p,
.report-layout p,
.section p {
  color: var(--muted);
}

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

.screens figure {
  margin: 0;
  overflow: hidden;
}

.screens img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: top center;
  background: #000;
}

.screens figure:nth-child(3) img {
  object-position: center;
}

figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
}

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

.check-grid label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-height: 62px;
  padding: 14px;
}

.check-grid input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--green);
}

.report-template {
  display: grid;
  gap: 12px;
}

.report-template label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
}

.report-template input,
.report-template textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #070b09;
  color: var(--text);
  padding: 12px;
  font: inherit;
}

.report-template input:focus,
.report-template textarea:focus {
  outline: 2px solid rgba(66, 255, 109, 0.55);
  outline-offset: 1px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #030503;
}

.server-message {
  width: min(680px, calc(100% - 32px));
  margin: 0 auto;
  padding: 90px 0;
}

.server-message ul {
  margin-bottom: 24px;
  color: var(--muted);
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 860px) {
  .site-header {
    position: static;
    flex-wrap: wrap;
    gap: 14px 20px;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: 74vh;
  }

  .build-strip,
  .steps,
  .screens,
  .check-grid,
  .download-fields,
  .split,
  .report-layout {
    grid-template-columns: 1fr;
  }

  .build-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .build-strip div:last-child {
    border-bottom: 0;
  }

  .screens img {
    height: 360px;
  }

  .notice-layout,
  .footer-layout {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .brand {
    gap: 12px;
  }

  .app-icon {
    width: 52px;
    height: 52px;
  }

  .brand-title {
    font-size: 17px;
  }

  .brand-subtitle {
    font-size: 12px;
  }

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

  .hero-content {
    width: min(var(--max), calc(100% - 80px));
    padding-top: 70px;
  }

  h1 {
    font-size: 32px;
    line-height: 1.05;
  }

  .intro {
    font-size: 16px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .checksum-box {
    grid-template-columns: 1fr;
  }

  .screens img {
    height: 310px;
  }
}
