:root {
  color-scheme: light;
  --canvas: #ece8df;
  --canvas-raised: #f8f5ee;
  --line: #b7b1a5;
  --ink: #263035;
  --muted: #667073;
  --signal: #b65131;
  --signal-dim: #cb8a71;
  --display: #d6eeeb;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(38, 48, 53, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 48, 53, 0.012) 1px, transparent 1px),
    linear-gradient(rgba(38, 48, 53, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 48, 53, 0.045) 1px, transparent 1px);
  background-size:
    1mm 1mm,
    1mm 1mm,
    10mm 10mm,
    10mm 10mm;
  content: '';
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.site-shell {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header {
  min-height: 112px;
  border-bottom: 1px solid var(--line);
}

.downloads-page h1 {
  max-width: 700px;
}
.downloads-back {
  color: var(--muted);
  text-decoration: none;
}
.downloads-back:hover,
.downloads-back:focus-visible {
  color: var(--signal);
}
.downloads-intro {
  padding: clamp(37px, 6vw, 70px) 0 68px;
}
.download-grid {
  display: grid;
  align-items: stretch;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.download-card {
  display: flex;
  min-height: 290px;
  flex-direction: column;
  padding: 25px;
  border: 1px solid var(--line);
  background: var(--canvas-raised);
}
.download-platform {
  color: var(--signal);
  font:
    600 10px Arial,
    Helvetica,
    sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.download-card h2 {
  margin: 46px 0 12px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.download-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.download-link {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 28px;
  color: var(--signal);
  font-size: 13px;
  text-decoration: none;
}
.download-link:hover,
.download-link:focus-visible {
  color: var(--ink);
}
.download-link[aria-disabled='true'] {
  color: var(--muted);
  pointer-events: none;
}
.downloads-footer {
  margin-top: 120px;
}

.features-intro {
  padding: clamp(58px, 10vw, 116px) 0 45px;
}
.features-intro h1 {
  max-width: 760px;
}
.support-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.support-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.feature-matrix {
  padding: 48px 0 0;
}
.matrix-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 22px;
}
.matrix-heading .eyebrow {
  margin: 0;
}
.matrix-heading h2 {
  margin: 20px 0 0;
}
.matrix-heading > p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.matrix-heading .support-mark {
  margin-right: 4px;
  vertical-align: middle;
}
.feature-table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
}
.feature-matrix table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}
.feature-matrix th,
.feature-matrix td {
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
}
.feature-matrix tr:last-child th,
.feature-matrix tr:last-child td {
  border-bottom: 0;
}
.feature-matrix thead th {
  color: var(--signal);
  font:
    600 10px Arial,
    Helvetica,
    sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.feature-matrix thead th:first-child,
.feature-matrix tbody th {
  text-align: left;
}
.feature-matrix thead th:not(:first-child),
.feature-matrix td {
  width: 210px;
  text-align: center;
}
.feature-matrix tbody th {
  color: var(--ink);
  font-size: 14px;
  font-weight: normal;
  line-height: 1.4;
}
.feature-asterisk {
  color: var(--signal);
  font:
    700 22px Arial,
    Helvetica,
    sans-serif;
  line-height: 1;
}
.feature-category th {
  padding: 10px 22px;
  background: rgba(240, 179, 93, 0.07);
  color: var(--signal);
  font:
    600 10px Arial,
    Helvetica,
    sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.feature-stability {
  display: inline-block;
  padding: 5px 7px;
  border: 1px solid #66757a;
  font:
    600 9px Arial,
    Helvetica,
    sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.feature-stability.alpha {
  border-color: var(--signal-dim);
  color: var(--signal);
}
.feature-stability.beta {
  border-color: #7aa6b2;
  color: #b9e4e7;
}
.feature-stability.planned {
  color: var(--muted);
}
.feature-stability.stable {
  border-color: #78988d;
  color: #bbe0d4;
}
.feature-matrix-note {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.feature-matrix-note b {
  color: var(--signal);
  font-size: 19px;
}
.support-matrix {
  padding: 38px 0 0;
}
.support-matrix h2 {
  margin: 0 0 22px;
}
.support-table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
}
.support-matrix table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}
.support-matrix th,
.support-matrix td {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.support-matrix tr:last-child th,
.support-matrix tr:last-child td {
  border-bottom: 0;
}
.support-matrix thead th {
  color: var(--signal);
  font:
    600 10px Arial,
    Helvetica,
    sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.support-matrix thead th:first-child,
.support-matrix tbody th {
  width: 47%;
  text-align: left;
}
.support-matrix thead small {
  color: var(--muted);
  font-size: 9px;
}
.support-matrix tbody th {
  color: var(--ink);
  font-size: 14px;
  font-weight: normal;
  line-height: 1.4;
}
.support-mark {
  display: inline-grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
}
.support-mark.supported {
  border: 1px solid var(--signal-dim);
  background: rgba(240, 179, 93, 0.1);
  color: var(--signal);
}
.support-state {
  display: inline-block;
  padding: 5px 7px;
  border: 1px solid #66757a;
  color: var(--muted);
  font:
    600 9px Arial,
    Helvetica,
    sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.support-state.unavailable {
  border-color: transparent;
  color: #7d8780;
}
.audio-patch-bay {
  margin-top: 64px;
}
.audio-patch-bay > h2 {
  margin: 0 0 22px;
}
.audio-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.audio-feature-grid article {
  display: flex;
  min-height: 177px;
  flex-direction: column;
  padding: 22px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.audio-feature-grid h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.audio-feature-grid p {
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.audio-feature-grid .feature-stability {
  margin-top: auto;
  align-self: flex-start;
}
.features-footer {
  margin-top: 54px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 2px solid var(--ink);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
  font-weight: bold;
  line-height: 1;
}

.brand strong,
.brand small {
  display: block;
}
.brand strong {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: -0.02em;
}
.brand small,
.eyebrow,
.header-status,
.console-topline,
.console-status,
.principle-number,
.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}
.header-status {
  color: var(--muted);
  font-size: 10px;
}
.header-status i,
.signal-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: none;
}

.hero {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: clamp(48px, 9vw, 130px);
  align-items: center;
  padding: clamp(60px, 9.8vw, 126px) 0 clamp(60px, 8.4vw, 101px);
}
.eyebrow {
  color: var(--signal);
  font-size: 11px;
  font-weight: bold;
}
h1 {
  max-width: 610px;
  margin: 22px 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(50px, 7vw, 90px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 0.9;
}
h1 em {
  color: var(--signal);
  font-style: italic;
}
.intro {
  max-width: 510px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}
.coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 27px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.coming-soon strong {
  color: var(--ink);
  font-weight: normal;
}
.signal-dot {
  margin: 0 3px 0 0;
}

.console-frame {
  position: relative;
  min-width: 0;
  padding: 13px;
  border: 2px solid #263035;
  background: #26353a;
  box-shadow:
    10px 10px 0 #c8c1b4,
    0 0 0 4px #f8f5ee;
  transform: rotate(1.5deg);
}
.console-topline,
.console-status {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 8px;
}
.frequency-readout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  margin: 20px 0 13px;
  padding: 13px 10px 8px;
  border: 1px solid #66858c;
  background: #1c292d;
  color: var(--display);
}
.frequency-label,
.frequency-unit {
  padding-bottom: 7px;
  color: #a8c8cb;
  font:
    600 9px Arial,
    Helvetica,
    sans-serif;
}
.frequency-readout strong {
  min-width: 0;
  overflow: hidden;
  font:
    700 clamp(31px, 5vw, 50px) / 0.9 ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  letter-spacing: -0.04em;
  text-align: center;
}
.frequency-readout strong span {
  color: #d89a63;
}
.console-status {
  padding: 8px 5px;
  border-top: 1px solid #66858c;
  color: #c8dfe0;
}
.console-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 9px;
  margin-top: 12px;
}
.console-log,
.console-scope {
  min-height: 115px;
  padding: 10px;
  border: 1px solid #66858c;
  background: #1c292d;
}
.console-log span,
.console-scope span {
  display: block;
  color: #a8c8cb;
  font:
    600 8px Arial,
    Helvetica,
    sans-serif;
  letter-spacing: 0.07em;
}
.console-log b {
  display: block;
  margin-top: 10px;
  color: #e4f0ec;
  font:
    600 12px Arial,
    Helvetica,
    sans-serif;
}
.console-log.is-rotating b {
  transform: translateY(12px);
  transition: transform 220ms ease-in;
}
.console-scope {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(140deg, transparent 48%, rgba(145, 213, 209, 0.16) 49% 50%, transparent 51%),
    linear-gradient(35deg, transparent 45%, rgba(216, 154, 99, 0.18) 46% 47%, transparent 48%),
    #1c292d;
}
.console-scope::after {
  position: absolute;
  inset: 24px 10px 10px;
  border-left: 1px solid #87afb2;
  border-bottom: 1px solid #87afb2;
  content: '';
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.principles article {
  min-height: 240px;
  padding: 31px 32px 30px 0;
  border-right: 1px solid var(--line);
}
.principles article + article {
  padding-left: 32px;
}
.principles article:last-child {
  border-right: 0;
}
.principle-number {
  color: var(--signal);
  font-size: 10px;
}
h2 {
  margin: 38px 0 10px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.principles p {
  max-width: 245px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.site-footer {
  min-height: 104px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font:
    600 10px Arial,
    Helvetica,
    sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.site-footer span {
  color: var(--signal);
  margin: 0 5px;
}

a:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 5px;
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 32px, 560px);
  }
  .site-header {
    min-height: 89px;
  }
  .header-status {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 68px;
    padding: 50px 0 64px;
  }
  h1 {
    font-size: clamp(51px, 17vw, 76px);
  }
  .intro {
    font-size: 16px;
  }
  .console-frame {
    width: calc(100% - 12px);
    margin-left: 5px;
  }
  .principles {
    grid-template-columns: 1fr;
  }
  .download-grid {
    grid-template-columns: 1fr;
  }
  .downloads-footer {
    margin-top: 72px;
  }
  .features-intro {
    padding: 57px 0 37px;
  }
  .support-matrix {
    padding-top: 29px;
  }
  .feature-matrix {
    padding-top: 36px;
  }
  .matrix-heading {
    display: block;
  }
  .matrix-heading > p {
    margin-top: 18px;
  }
  .feature-matrix th,
  .feature-matrix td {
    padding: 14px 18px;
  }
  .support-matrix th,
  .support-matrix td {
    padding: 15px 18px;
  }
  .audio-patch-bay {
    margin-top: 48px;
  }
  .audio-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .audio-feature-grid article {
    min-height: 155px;
    padding: 18px;
  }
  .features-footer {
    margin-top: 22px;
  }
  .principles article,
  .principles article + article {
    min-height: 0;
    padding: 28px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .principles article:last-child {
    border-bottom: 0;
  }
  h2 {
    margin-top: 24px;
  }
  .site-footer {
    display: block;
    padding: 24px 0;
    line-height: 1.5;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .has-javascript .console-frame {
    animation: settle 800ms ease-out both;
  }
  @keyframes settle {
    from {
      opacity: 0;
      transform: translateY(18px) rotate(1.5deg);
    }
    to {
      opacity: 1;
      transform: rotate(1.5deg);
    }
  }
}
