:root {
  --bg: #0d1119;
  --bg-soft: #121a24;
  --panel: #16212d;
  --panel-strong: #1a2735;
  --line: rgba(139, 234, 242, 0.18);
  --line-strong: rgba(139, 234, 242, 0.34);
  --text: #eef8fa;
  --muted: #9fb5bd;
  --cyan: #8beaf2;
  --teal: #2fd1c3;
  --teal-deep: #15927f;
  --amber: #f7c762;
  --orange: #ee9637;
  --shadow: 0 24px 80px rgba(1, 5, 12, 0.42);
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 12%, rgba(47, 209, 195, 0.12), transparent 28rem),
    radial-gradient(circle at 86% 6%, rgba(247, 199, 98, 0.09), transparent 24rem),
    linear-gradient(135deg, #111924 0%, var(--bg) 45%, #090c12 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(139, 234, 242, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 234, 242, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.82), transparent 74%);
}

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

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

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  padding: 18px 0;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  color: var(--text);
  font-weight: 750;
  font-size: 1.02rem;
  letter-spacing: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(47, 209, 195, 0.16);
}

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

nav a {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

nav a:hover {
  border-color: rgba(139, 234, 242, 0.16);
  color: var(--text);
  background: rgba(139, 234, 242, 0.06);
}

main {
  overflow: hidden;
}

.hero,
.notable-band,
.feature-band,
.try-band,
.page-hero,
.hardware-panel,
.protocol-band,
.download-panel,
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: center;
  gap: 64px;
  min-height: calc(100svh - 72px);
  padding: 56px 0 88px;
}

.hero-copy {
  max-width: 700px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 30px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--amber), transparent);
}

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

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 9vw, 6.8rem);
  line-height: 0.92;
}

.hero-text {
  max-width: 650px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 1.16rem;
  line-height: 1.75;
}

.term-note {
  position: relative;
  display: inline;
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}

.term-note sup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.18em;
  height: 1.18em;
  margin-left: 0.14em;
  border: 1px solid rgba(247, 199, 98, 0.58);
  border-radius: 999px;
  color: var(--amber);
  font-size: 0.58em;
  line-height: 1;
  cursor: help;
  vertical-align: super;
}

.term-note-popover {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  z-index: 10;
  width: min(360px, calc(100vw - 32px));
  padding: 14px 16px;
  border: 1px solid rgba(139, 234, 242, 0.32);
  border-radius: 8px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(18, 26, 36, 0.98);
  box-shadow: 0 18px 48px rgba(1, 5, 12, 0.36);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
  white-space: normal;
}

.term-note:hover .term-note-popover,
.term-note:focus-within .term-note-popover {
  opacity: 1;
  transform: translate(-50%, 0);
}

.release-note {
  display: inline-flex;
  width: fit-content;
  max-width: 650px;
  margin: 0 0 28px;
  border: 1px solid rgba(247, 199, 98, 0.32);
  border-radius: 999px;
  padding: 10px 14px;
  color: #f8dc99;
  background: rgba(247, 199, 98, 0.08);
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 750;
  line-height: 1;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  border: 1px solid rgba(139, 234, 242, 0.52);
  color: #061316;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 16px 40px rgba(47, 209, 195, 0.18);
}

.button-secondary {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgba(139, 234, 242, 0.06);
}

.button-secondary:hover {
  border-color: rgba(247, 199, 98, 0.48);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}

.hero-visual img {
  position: relative;
  z-index: 2;
  width: min(86vw, 430px);
  filter:
    drop-shadow(0 24px 46px rgba(1, 5, 12, 0.48))
    drop-shadow(0 0 28px rgba(47, 209, 195, 0.14));
}

.signal-ring {
  position: absolute;
  border: 1px solid rgba(139, 234, 242, 0.16);
  border-radius: 999px;
  transform: rotate(-18deg);
}

.signal-ring-one {
  width: 370px;
  height: 230px;
}

.signal-ring-two {
  width: 470px;
  height: 290px;
  border-color: rgba(247, 199, 98, 0.11);
}

.notable-band,
.feature-band,
.try-band,
.hardware-panel,
.protocol-band,
.download-panel {
  padding: 84px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 640px;
  margin-bottom: 34px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1;
}

.notable-grid,
.feature-grid,
.protocol-grid,
.platform-grid {
  display: grid;
  gap: 16px;
}

.notable-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

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

.protocol-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

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

.notable-grid article,
.feature-grid article,
.protocol-grid article,
.platform-card,
.steps li {
  border: 1px solid rgba(139, 234, 242, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(47, 209, 195, 0.13), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(18, 26, 36, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 16px 50px rgba(1, 5, 12, 0.28);
}

.notable-grid article,
.feature-grid article,
.protocol-grid article,
.platform-card {
  min-height: 250px;
  padding: 24px;
}

.feature-index,
.steps span {
  display: inline-flex;
  margin-bottom: 42px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 850;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.26rem;
}

.notable-grid p,
.feature-grid p,
.protocol-grid p,
.platform-card p,
.steps p,
.placeholder p {
  color: var(--muted);
  line-height: 1.65;
}

.download-page {
  overflow: visible;
}

.download-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  align-items: center;
  gap: 44px;
}

.download-card {
  border: 1px solid rgba(139, 234, 242, 0.3);
  border-radius: 8px;
  padding: 28px;
  background:
    radial-gradient(circle at 90% 0%, rgba(247, 199, 98, 0.14), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02)),
    rgba(18, 26, 36, 0.9);
  box-shadow: var(--shadow);
}

.download-card h2 {
  margin: 18px 0 14px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.download-card p {
  color: var(--muted);
  line-height: 1.65;
}

.button-large {
  width: 100%;
  min-height: 58px;
  margin: 8px 0 14px;
  padding: 0 24px;
  font-size: 1.05rem;
}

.download-notice {
  margin: 0;
  font-size: 0.92rem;
}

.platform-card {
  display: flex;
  flex-direction: column;
}

.platform-card.is-recommended {
  border-color: rgba(247, 199, 98, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 18px 54px rgba(247, 199, 98, 0.12);
}

.platform-card h3 {
  min-height: 2lh;
}

.platform-card p {
  margin-bottom: 22px;
}

.platform-link {
  width: fit-content;
  margin-top: auto;
}

.platform-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.platform-card small {
  display: block;
  margin-top: 12px;
  color: rgba(159, 181, 189, 0.78);
  font-size: 0.82rem;
}

.hardware-page {
  overflow: visible;
}

.page-hero {
  padding: 96px 0 74px;
}

.page-hero h1 {
  max-width: 860px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 8vw, 6.2rem);
}

.page-hero p:not(.eyebrow) {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
}

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

.hardware-panel-heading .eyebrow {
  margin-bottom: 14px;
}

.result-count {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.hardware-controls {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}

.search-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.search-field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(139, 234, 242, 0.24);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(18, 26, 36, 0.78);
  font: inherit;
}

.search-field input::placeholder {
  color: rgba(159, 181, 189, 0.72);
}

.status-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter-button {
  min-height: 40px;
  border: 1px solid rgba(139, 234, 242, 0.2);
  border-radius: 999px;
  padding: 0 13px;
  color: var(--muted);
  background: rgba(139, 234, 242, 0.05);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 750;
  cursor: pointer;
}

.filter-button:hover,
.filter-button.is-active {
  border-color: rgba(139, 234, 242, 0.48);
  color: #061316;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
}

.hardware-table-wrap {
  overflow: hidden;
  border: 1px solid rgba(139, 234, 242, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    rgba(18, 26, 36, 0.78);
  box-shadow: 0 16px 50px rgba(1, 5, 12, 0.22);
}

.hardware-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.hardware-table th,
.hardware-table td {
  border-bottom: 1px solid rgba(139, 234, 242, 0.14);
  padding: 18px 16px;
  vertical-align: top;
}

.hardware-table th {
  color: var(--cyan);
  background: rgba(139, 234, 242, 0.055);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hardware-table td {
  color: var(--muted);
  line-height: 1.55;
}

.hardware-table td:first-child {
  color: var(--text);
  font-weight: 800;
}

.hardware-table tr:last-child td {
  border-bottom: 0;
}

.status-badge {
  display: inline-flex;
  justify-self: start;
  width: fit-content;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.status-tested {
  color: var(--teal);
  background: rgba(47, 209, 195, 0.09);
}

.status-experimental,
.status-early {
  color: var(--amber);
  background: rgba(247, 199, 98, 0.08);
}

.status-planned {
  color: #b7c6cc;
  background: rgba(183, 198, 204, 0.08);
}

.empty-state {
  margin: 0;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.hardware-source-note {
  max-width: 720px;
  margin: 14px 0 0;
  color: rgba(159, 181, 189, 0.82);
  font-size: 0.88rem;
  line-height: 1.6;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.steps li {
  padding: 24px;
}

.steps strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.steps p {
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
  color: var(--text);
  font-weight: 750;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--cyan);
}

.docs-placeholder {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 32px;
}

.placeholder {
  width: min(760px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 42px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    rgba(18, 26, 36, 0.78);
  box-shadow: var(--shadow);
}

.placeholder h1 {
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 8vw, 5rem);
}

.placeholder p:not(.eyebrow) {
  margin-bottom: 28px;
  font-size: 1.08rem;
}

@media (max-width: 880px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 38px;
    min-height: auto;
    padding-top: 42px;
  }

  .hero-visual {
    min-height: 300px;
    order: -1;
  }

  .hero-visual img {
    width: min(76vw, 330px);
  }

  .signal-ring-one {
    width: min(88vw, 310px);
    height: 190px;
  }

  .signal-ring-two {
    width: min(96vw, 390px);
    height: 240px;
  }

  .feature-grid,
  .protocol-grid,
  .platform-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .notable-grid article,
  .feature-grid article,
  .protocol-grid article,
  .platform-card {
    min-height: 0;
  }

  .download-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .feature-index,
  .steps span {
    margin-bottom: 26px;
  }
}

@media (max-width: 560px) {
  .hero,
  .notable-band,
  .feature-band,
  .try-band,
  .page-hero,
  .hardware-panel,
  .protocol-band,
  .download-panel,
  .site-footer {
    width: min(100% - 24px, 1120px);
  }

  .site-header {
    width: min(100% - 24px, 1120px);
  }

  nav a {
    padding: 8px 10px;
    font-size: 0.86rem;
  }

  h1 {
    font-size: clamp(2.7rem, 16vw, 4.2rem);
  }

  .hero-text {
    font-size: 1.04rem;
  }

  .page-hero {
    padding: 56px 0 54px;
  }

  .page-hero h1 {
    font-size: clamp(2.7rem, 16vw, 4.2rem);
  }

  .hardware-panel-heading,
  .hardware-controls {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

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

  .status-filter {
    justify-content: flex-start;
  }

  .hardware-table-wrap {
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .hardware-table,
  .hardware-table tbody,
  .hardware-table tr,
  .hardware-table td {
    display: block;
    width: 100%;
  }

  .hardware-table thead {
    display: none;
  }

  .hardware-table tr {
    margin-bottom: 14px;
    border: 1px solid rgba(139, 234, 242, 0.24);
    border-radius: 8px;
    background:
      radial-gradient(circle at 100% 0%, rgba(47, 209, 195, 0.1), transparent 44%),
      rgba(18, 26, 36, 0.86);
    overflow: hidden;
  }

  .hardware-table td {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    border-bottom: 1px solid rgba(139, 234, 242, 0.12);
    padding: 13px 14px;
  }

  .hardware-table td::before {
    content: attr(data-label);
    color: var(--cyan);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .hardware-table tr:last-child td,
  .hardware-table td:last-child {
    border-bottom: 0;
  }

  .release-note {
    border-radius: 8px;
  }

  .button {
    width: 100%;
  }

  .download-card {
    padding: 22px;
  }

  .platform-link,
  .platform-actions {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer div {
    justify-content: flex-start;
  }

  .placeholder {
    padding: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
