:root {
  color-scheme: dark;
  --bg: #0a0c0e;
  --surface: #111418;
  --surface-2: #171b20;
  --text: #f4f0e8;
  --muted: #b8c0c8;
  --quiet: #8d98a3;
  --line: rgba(148, 163, 184, 0.2);
  --line-soft: rgba(148, 163, 184, 0.12);
  --accent: #c99541;
  --accent-strong: #e2b15a;
  --page: 1200px;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(8, 12, 18, 0.92), rgba(6, 8, 10, 0.98)),
    linear-gradient(90deg, rgba(102, 184, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(102, 184, 255, 0.03) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 96px 96px, 96px 96px, auto;
  color: var(--text);
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 12px clamp(18px, 4vw, 58px);
  border-bottom: 1px solid transparent;
  background: rgba(7, 10, 13, 0.76);
  backdrop-filter: blur(12px);
  transition:
    background 180ms ease,
    border-color 180ms ease;
}

.site-header[data-scrolled="true"] {
  border-color: var(--line);
  background: rgba(10, 12, 14, 0.96);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  font-weight: 780;
  letter-spacing: 0;
}

.brand img {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 2vw, 28px);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
}

nav a {
  padding: 8px 0;
  letter-spacing: 0;
}

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

.hero {
  position: relative;
  display: grid;
  align-items: center;
  justify-items: center;
  min-height: 88svh;
  padding: 116px clamp(20px, 5vw, 78px) 112px;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(68, 128, 210, 0.2), rgba(68, 128, 210, 0) 32%),
    linear-gradient(180deg, rgba(8, 10, 13, 0.78) 0%, rgba(8, 10, 13, 0.6) 38%, rgba(8, 10, 13, 0.92) 100%),
    url("/assets/zeus-connected-panadapter.png") center 28% / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 24%;
  background: linear-gradient(180deg, rgba(10, 12, 14, 0), var(--bg));
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0;
  font-family: var(--mono);
  text-transform: uppercase;
}

.eyebrow::before {
  content: "// ";
  color: rgba(102, 184, 255, 0.82);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 980px;
  margin-bottom: 8px;
  font-size: clamp(6rem, 14vw, 13rem);
  line-height: 0.78;
  letter-spacing: 0;
}

.hero h1 {
  margin-right: auto;
  margin-left: auto;
}

.hero-subbrand {
  margin: 0 auto 24px;
  color: rgba(244, 240, 232, 0.78);
  font-family: var(--mono);
  font-size: clamp(0.9rem, 1.8vw, 1.35rem);
  font-weight: 750;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 5vw, 4.45rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
  font-family: var(--mono);
  letter-spacing: 0;
}

.hero-copy > p:not(.eyebrow),
.download-copy p {
  max-width: 690px;
  color: var(--muted);
  font-size: 1.18rem;
  overflow-wrap: break-word;
}

.hero-copy > p:not(.eyebrow) {
  margin-right: auto;
  margin-left: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.button.primary {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  color: #15100a;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.button:hover,
.button:focus-visible {
  border-color: var(--accent-strong);
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  position: relative;
  z-index: 2;
  width: min(calc(100% - 40px), var(--page));
  margin: -62px auto 0;
  border: 1px solid var(--line);
  background: rgba(12, 15, 18, 0.9);
  backdrop-filter: blur(16px);
}

.intro-band div {
  min-height: 118px;
  padding: 26px clamp(20px, 4vw, 48px);
  border-right: 1px solid var(--line);
}

.intro-band div:last-child {
  border-right: 0;
}

.intro-band strong,
.intro-band span {
  display: block;
}

.intro-band strong {
  margin-bottom: 6px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 1.02rem;
}

.intro-band span {
  color: var(--muted);
}

.content-section,
.media-section,
.download-section {
  padding: clamp(78px, 10vw, 136px) clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 850px;
  margin-bottom: 42px;
  min-width: 0;
}

.content-section > .section-heading,
.content-section > .feature-grid,
.content-section > .radio-grid,
.media-section > .section-heading,
.media-section > .screens {
  width: min(100%, var(--page));
  margin-right: auto;
  margin-left: auto;
}

.feature-section {
  background: var(--bg);
}

.feature-grid,
.radio-grid {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  background: rgba(12, 15, 18, 0.72);
  backdrop-filter: blur(10px);
}

.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  counter-reset: feature;
}

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

.feature-grid article,
.radio-grid article {
  position: relative;
  min-width: 0;
  padding: 30px 32px;
  border-right: 1px solid var(--line-soft);
  background: transparent;
}

.feature-grid article {
  counter-increment: feature;
}

.feature-grid article::before {
  content: "0" counter(feature);
  display: block;
  margin-bottom: 22px;
  color: rgba(102, 184, 255, 0.82);
  font-family: var(--mono);
  font-size: 0.88rem;
  font-weight: 750;
}

.radio-grid article:last-child {
  border-right: 0;
}

.feature-grid article:nth-child(2n) {
  border-right: 0;
}

.feature-grid article:nth-child(-n + 2) {
  border-bottom: 1px solid var(--line-soft);
}

.feature-grid p,
.radio-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.media-section {
  border-top: 1px solid var(--line-soft);
  background: rgba(17, 20, 24, 0.82);
}

.screens {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  align-items: start;
  gap: 18px;
}

figure {
  min-width: 0;
  margin: 0;
}

figure img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #05070a;
}

.screen-secondary {
  padding-top: 38px;
}

figcaption {
  padding-top: 11px;
  color: var(--quiet);
  font-size: 0.95rem;
}

.radio-section {
  background: var(--bg);
}

.radio-section .section-heading {
  margin-bottom: 28px;
}

.radio-grid article {
  background: rgba(8, 11, 14, 0.46);
}

.radio-protocol {
  display: block;
  margin-bottom: 16px;
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

.download-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(17, 22, 28, 0.92), rgba(12, 15, 18, 0.96)),
    var(--surface-2);
}

.download-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(420px, 0.86fr);
  align-items: center;
  gap: clamp(36px, 7vw, 96px);
  width: min(100%, var(--page));
  margin: 0 auto;
}

.download-copy,
.download-panel {
  min-width: 0;
}

.download-panel {
  width: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(8, 11, 14, 0.72);
  backdrop-filter: blur(10px);
}

.download-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.download-panel-heading span {
  display: block;
  margin-bottom: 4px;
  color: var(--quiet);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0;
  font-family: var(--mono);
  text-transform: uppercase;
}

.download-panel-heading strong {
  display: block;
  color: var(--text);
  font-size: 1.08rem;
}

.download-panel-heading a {
  color: var(--accent-strong);
  font-size: 0.95rem;
  font-weight: 750;
}

.download-controls {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.download-controls label {
  color: var(--quiet);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0;
  font-family: var(--mono);
  text-transform: uppercase;
}

.download-controls select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #0b0e12;
  color: var(--text);
  font: inherit;
}

.recommended-download {
  display: grid;
  gap: 12px;
  padding-top: 2px;
  background: transparent;
}

.recommended-download p,
.download-item p {
  margin: 0;
  color: var(--muted);
}

.download-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-weight: 750;
}

.download-meta {
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 0.9rem;
}

.all-downloads {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.download-item {
  display: grid;
  gap: 6px;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  background: transparent;
}

.download-item a:not(.button) {
  color: var(--text);
  font-weight: 750;
}

.download-item .button,
.recommended-download .button {
  width: max-content;
  min-height: 40px;
  margin-top: 4px;
}

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: var(--quiet);
  background: var(--bg);
}

footer a {
  color: var(--text);
}

@media (max-width: 1120px) {
  h1 {
    font-size: 7rem;
  }

  h2 {
    font-size: 2.55rem;
  }

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

  .feature-grid article:nth-child(2n) {
    border-right: 0;
  }
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 108px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    min-height: 94px;
  }

  nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: 76svh;
    padding: 132px clamp(20px, 5vw, 48px) 88px;
    background:
      radial-gradient(circle at 50% 38%, rgba(68, 128, 210, 0.18), rgba(68, 128, 210, 0) 34%),
      linear-gradient(180deg, rgba(10, 12, 14, 0.98) 0%, rgba(10, 12, 14, 0.82) 62%, rgba(10, 12, 14, 0.7) 100%),
      url("/assets/zeus-connected-panadapter.png") center top / cover no-repeat;
  }

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

  .hero-copy > p:not(.eyebrow),
  .download-copy p {
    max-width: 560px;
  }

  .intro-band,
  .screens,
  .radio-grid,
  .download-inner {
    grid-template-columns: 1fr;
  }

  .intro-band div,
  .feature-grid article,
  .radio-grid article {
    border-right: 0;
  }

  .intro-band div {
    border-bottom: 1px solid var(--line);
  }

  .intro-band div:last-child {
    border-bottom: 0;
  }

  .radio-grid {
    row-gap: 26px;
  }

  .screen-secondary {
    padding-top: 0;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding-inline: 16px;
  }

  .brand span {
    font-size: 0.98rem;
  }

  nav {
    gap: 16px;
    font-size: 0.72rem;
  }

  .hero {
    min-height: auto;
    padding: 128px 18px 80px;
  }

  h1 {
    max-width: 350px;
    font-size: 5.4rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-copy > p:not(.eyebrow),
  .download-copy p {
    font-size: 1.05rem;
  }

  .hero-actions,
  .recommended-download .button,
  .download-item .button {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .intro-band div {
    min-height: auto;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid article {
    padding-right: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .feature-grid article:last-child {
    border-bottom: 0;
  }

  .download-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .download-panel-heading {
    flex-direction: column;
  }
}
