:root {
  color-scheme: light;
  --ink: #1b1f24;
  --muted: #626a73;
  --line: #d8dde3;
  --panel: #ffffff;
  --surface: #f4f6f8;
  --accent: #0f766e;
  --accent-strong: #0b5f59;
  --gold: #b7791f;
  --blue: #2563eb;
  --radius: 8px;
  --shadow: 0 18px 50px rgba(27, 31, 36, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

code {
  padding: 0.12rem 0.32rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  font-size: 0.92em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(216, 221, 227, 0.88);
  background: rgba(244, 246, 248, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
}

.brand img {
  border-radius: 8px;
}

nav {
  display: flex;
  gap: clamp(0.75rem, 3vw, 1.5rem);
  color: var(--muted);
  font-size: 0.94rem;
}

nav a:hover,
footer a:hover {
  color: var(--accent-strong);
}

main {
  overflow: hidden;
}

.hero {
  min-height: clamp(620px, 82svh, 820px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 440px);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 6vw, 5rem) clamp(2rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #ffffff, #f7f9fb);
}

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

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 1rem;
  font-size: clamp(4rem, 11vw, 8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.8rem;
  font-size: 1.05rem;
}

.lede {
  max-width: 680px;
  color: #3d444c;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

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

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

.hero-panel {
  align-self: center;
  justify-self: center;
  display: grid;
  gap: 1rem;
  width: min(100%, 420px);
  padding: 1.2rem;
  border: 1px solid rgba(216, 221, 227, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.hero-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.hero-panel-head .eyebrow {
  margin: 0;
}

.app-mark {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 1.2rem 0 0.8rem;
}

.app-mark img {
  width: min(190px, 52vw);
  height: auto;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(15, 118, 110, 0.18);
}

.hero-panel dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 0;
}

.hero-panel dl > div,
.intro-grid article,
.release-note-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.hero-panel dl > div {
  padding: 0.85rem;
}

dt {
  color: var(--muted);
  font-size: 0.78rem;
}

dd {
  margin: 0.2rem 0 0;
  font-weight: 750;
}

.section {
  padding: clamp(3.5rem, 7vw, 6rem) clamp(1rem, 6vw, 5rem);
}

.section-heading {
  max-width: 1320px;
  margin-bottom: 1.8rem;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

.app-features {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 1320px;
}

.intro-grid article {
  padding: 1.2rem;
  background: #fdfefe;
}

.privacy-band {
  border-bottom: 1px solid var(--line);
  background: #f8fbfa;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.privacy-grid article {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.privacy-grid p {
  color: var(--muted);
}

.intro-grid p,
.release-note,
.release-note-card p,
.empty-state p,
.support-copy span:last-child {
  color: var(--muted);
}

.support-band {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 1320px;
}

.support-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  min-height: 154px;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfd;
}

.support-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(27, 31, 36, 0.09);
}

.support-card:focus-visible,
.support-icon:focus-visible,
.support-action:focus-visible,
.button:focus-visible,
.download-links a:focus-visible,
.icon-button:focus-visible,
.demo-controls button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 3px;
}

.discord-card {
  border-color: rgba(88, 101, 242, 0.38);
  background:
    linear-gradient(135deg, rgba(88, 101, 242, 0.11), rgba(255, 255, 255, 0.98)),
    #fff;
}

.support-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 1.25rem;
  font-weight: 850;
}

.discord-icon {
  background: #5865f2;
  box-shadow: 0 12px 30px rgba(88, 101, 242, 0.25);
}

.mail-icon {
  background: var(--accent);
  box-shadow: 0 12px 30px rgba(15, 118, 110, 0.22);
}

.support-copy {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.support-copy strong {
  overflow-wrap: anywhere;
  font-size: 1.22rem;
  line-height: 1.2;
}

.support-label {
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.discord-card .support-label {
  color: #3b45b4;
}

.support-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.38rem 0.75rem;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

.discord-card .support-action {
  background: #5865f2;
}

.discord-card.is-blipping {
  border-color: rgba(88, 101, 242, 0.72);
}

.demo-dialog {
  width: min(1120px, 80vw);
  height: min(820px, 80vh);
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.demo-dialog::backdrop {
  background: rgba(27, 31, 36, 0.42);
}

.demo-shell {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 1rem;
  height: 100%;
  padding: 1.1rem;
}

.demo-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.demo-header h2 {
  margin-bottom: 0;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.demo-modebar {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(280px, 1fr);
  gap: 0.75rem;
  align-items: stretch;
  height: 56px;
  min-height: 56px;
  color: var(--muted);
  font-size: 0.9rem;
}

.demo-chords {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 0.5rem;
  align-items: stretch;
}

.key-chord {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 52px;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 750;
  white-space: nowrap;
}

.key-chord kbd {
  min-width: 38px;
  padding: 0.18rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #f4f6f8;
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  text-align: center;
}

.key-chord.is-active {
  border-color: var(--accent);
  background: #ecfdf5;
  color: var(--accent-strong);
}

.demo-help {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 52px;
  min-height: 52px;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.demo-stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(216, 221, 227, 0.55) 1px, transparent 1px),
    linear-gradient(180deg, rgba(216, 221, 227, 0.55) 1px, transparent 1px),
    linear-gradient(135deg, #f8fbfa, #f4f6f8);
  background-size: 48px 48px, 48px 48px, auto;
}

.demo-window {
  position: absolute;
  left: 28%;
  top: 25%;
  display: grid;
  grid-template-rows: 42px 1fr;
  width: 300px;
  height: 190px;
  min-width: 180px;
  min-height: 128px;
  overflow: hidden;
  border: 1px solid rgba(216, 221, 227, 0.96);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(27, 31, 36, 0.15);
  cursor: default;
  touch-action: none;
}

.demo-window.is-target {
  outline: 3px solid rgba(37, 99, 235, 0.22);
  outline-offset: 2px;
}

.demo-window.mode-move {
  cursor: move;
}

.demo-window.mode-resize {
  cursor: nwse-resize;
}

.demo-window.is-active {
  border-color: rgba(15, 118, 110, 0.6);
  box-shadow: 0 20px 46px rgba(15, 118, 110, 0.20);
}

.demo-window-bar {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0 0.9rem;
  background: #e8ecef;
  cursor: grab;
}

.demo-window-bar:active {
  cursor: grabbing;
}

.demo-window-bar span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.demo-window-bar span:nth-child(1) {
  background: #ff5f57;
}

.demo-window-bar span:nth-child(2) {
  background: #ffbd2e;
}

.demo-window-bar span:nth-child(3) {
  background: #28c840;
}

.demo-window-body {
  display: grid;
  place-items: center;
  padding: 1rem;
  background: #fff;
}

.demo-window-label {
  display: grid;
  gap: 0.3rem;
  justify-items: center;
  max-width: 100%;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.demo-window-label span {
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: center;
  line-height: 1.2;
}

.demo-window-mark {
  width: 72px;
  height: 48px;
  border: 2px solid rgba(15, 118, 110, 0.25);
  border-radius: 8px;
  background:
    linear-gradient(#ecfdf5 0 32%, #fff 32%),
    #fff;
}

.demo-window[data-tone="blue"] .demo-window-mark {
  border-color: rgba(37, 99, 235, 0.25);
  background:
    linear-gradient(#eff6ff 0 32%, #fff 32%),
    #fff;
}

.demo-window[data-tone="gold"] .demo-window-mark {
  border-color: rgba(183, 121, 31, 0.28);
  background:
    linear-gradient(#fffbeb 0 32%, #fff 32%),
    #fff;
}

.demo-resize-handle {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 24px;
  height: 24px;
  cursor: nwse-resize;
}

.demo-resize-handle::before,
.demo-resize-handle::after {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: rgba(98, 106, 115, 0.68);
  content: "";
}

.demo-resize-handle::before {
  transform: translateY(-5px);
}

.demo-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

.demo-control-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.utility-controls {
  margin-left: auto;
}

.demo-controls button {
  min-height: 38px;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}

.demo-controls button:hover,
.icon-button:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.download-headline {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.download-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  align-items: stretch;
}

.bundle-status {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.bundle-status.compact {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.45rem;
  font-size: 0.88rem;
}

.maturity-pill {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 26px;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #ecfdf5;
  color: var(--accent-strong);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-stable .maturity-pill {
  background: #eff6ff;
  color: #1d4ed8;
}

.status-usable .maturity-pill {
  background: #f5f3ff;
  color: #6d28d9;
}

.status-preview .maturity-pill {
  background: #fffbeb;
  color: #92400e;
}

.status-beta .maturity-pill {
  background: #fff1f2;
  color: #be123c;
}

.compact-list {
  padding-left: 1.1rem;
  margin: 0.7rem 0 0;
}

.compact-list li {
  margin: 0.25rem 0;
}

.size-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #ecfdf5;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 750;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.bundle-table {
  min-width: 980px;
}

th,
td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

.release-notes-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f8fbfa;
}

.release-note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 1320px;
}

.release-note-card {
  padding: 1.2rem;
}

.release-note-card h3 {
  margin-top: 0.7rem;
}

.note-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #ecfdf5;
  color: var(--accent-strong);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.note-fixed .note-pill {
  background: #eff6ff;
  color: #1d4ed8;
}

.note-changed .note-pill {
  background: #fffbeb;
  color: #92400e;
}

.download-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  min-height: 104px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfd;
}

.download-item.compact {
  background: #fff;
}

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

.download-item strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1.02rem;
}

.artifact-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 750;
}

.download-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.download-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 38px;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 750;
}

.archive-table {
  min-width: 1080px;
}

.release-note-summary {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.release-note-summary li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.archive-download-links {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.archive-download-links span {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.archive-download-links a {
  color: var(--blue);
  font-weight: 750;
}

.empty-state {
  max-width: 1320px;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.empty-state strong {
  display: block;
  margin-bottom: 0.25rem;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

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

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.1rem;
  }

  .hero {
    padding-top: 2rem;
  }

  h1 {
    font-size: 4rem;
  }

  .intro-grid,
  .privacy-grid,
  .support-grid,
  .release-note-grid,
  .download-grid,
  .archive-download-links {
    grid-template-columns: 1fr;
  }

  .support-card {
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: start;
  }

  .support-icon {
    width: 46px;
    height: 46px;
  }

  .support-action {
    grid-column: 2;
    justify-self: start;
  }

  .bundle-status.compact {
    grid-template-columns: 1fr;
  }

  .demo-shell {
    padding: 0.85rem;
  }

  .demo-stage {
    min-height: 300px;
  }

  .demo-modebar {
    height: auto;
    grid-template-columns: 1fr;
  }

  .demo-chords {
    grid-template-columns: 1fr;
  }

  .demo-controls,
  .demo-control-group {
    width: 100%;
  }

  .utility-controls {
    justify-content: flex-start;
    margin-left: 0;
  }

  .hero-panel {
    min-height: 0;
  }

  .download-item {
    grid-template-columns: 1fr;
  }

  .download-links {
    justify-content: flex-start;
  }

}
