:root {
  --bg: #080a0d;
  --bg-2: #111717;
  --panel: rgba(20, 27, 27, 0.78);
  --panel-strong: rgba(25, 34, 34, 0.96);
  --line: rgba(211, 227, 220, 0.16);
  --text: #f3f6ef;
  --muted: #a8b7ad;
  --soft: #d7e2da;
  --teal: #42dec4;
  --teal-deep: #0f8073;
  --gold: #f3c969;
  --danger: #ff8d7d;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius: 8px;
  --content: min(1160px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 8%, rgba(66, 222, 196, 0.18), transparent 30%),
    radial-gradient(circle at 86% 24%, rgba(243, 201, 105, 0.12), transparent 24%),
    linear-gradient(180deg, #080a0d 0%, #0d1112 42%, #11120f 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 82%);
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 50;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--text);
  color: var(--bg);
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

.project-return-banner {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 50px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(211, 227, 220, 0.16);
  background: rgba(8, 10, 13, 0.94);
  color: var(--text);
  backdrop-filter: blur(16px);
}

.project-return-banner a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.project-return-banner a:hover,
.project-return-banner a:focus-visible {
  background: rgba(255, 255, 255, 0.06);
}

.project-return-banner p {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.om-header {
  position: sticky;
  top: 64px;
  z-index: 10;
  width: var(--content);
  min-height: 64px;
  margin: 14px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 10, 13, 0.74);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.24);
}

.om-brand,
.om-nav,
.cta-row,
.badge-row,
.transport-row {
  display: flex;
  align-items: center;
}

.om-brand {
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.om-brand-mark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--teal);
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px rgba(66, 222, 196, 0.16), 0 0 18px rgba(66, 222, 196, 0.35);
}

.om-nav {
  gap: 4px;
}

.om-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.om-nav a:hover,
.om-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.github-profile-link {
  width: 40px;
  height: 40px;
  margin-left: 4px;
  padding: 0;
  border: 1px solid rgba(211, 227, 220, 0.2);
  background: rgba(255, 255, 255, 0.055);
}

.github-profile-link:hover,
.github-profile-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.32);
  background: #f3f6ef;
  color: #080a0d;
}

.github-icon {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  fill: currentColor;
}

main {
  width: var(--content);
  margin: 0 auto;
}

.beta-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(243, 201, 105, 0.42);
  border-radius: var(--radius);
  background: rgba(243, 201, 105, 0.12);
  color: #ffe7ad;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
}

.beta-banner strong {
  flex: 0 0 auto;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  line-height: 1;
  text-transform: uppercase;
}

.beta-banner span {
  color: var(--soft);
  font-size: 0.94rem;
}

.hero {
  min-height: min(900px, calc(100vh - 92px));
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  align-items: center;
  gap: clamp(32px, 5vw, 76px);
  padding: clamp(38px, 5vw, 72px) 0 34px;
}

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

.badge-row {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(66, 222, 196, 0.34);
  border-radius: 999px;
  background: rgba(66, 222, 196, 0.1);
  color: #cffff6;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-muted {
  border-color: rgba(243, 201, 105, 0.34);
  background: rgba(243, 201, 105, 0.1);
  color: #ffe5a5;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

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

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 5.8vw, 5.55rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.15rem, 4vw, 4.5rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.hero-lead {
  max-width: 620px;
  color: var(--soft);
  font-size: clamp(1.04rem, 1.4vw, 1.22rem);
}

.cta-row {
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--teal);
  color: #06110f;
  box-shadow: 0 16px 36px rgba(66, 222, 196, 0.22);
}

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

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(243, 201, 105, 0.42);
}

.beta-line {
  color: var(--muted);
  font-size: 0.98rem;
}

.app-screenshot-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(211, 227, 220, 0.18);
  border-radius: var(--radius);
  background: rgba(8, 10, 13, 0.72);
  box-shadow: var(--shadow);
}

.app-screenshot-card img {
  display: block;
  width: 100%;
  height: auto;
}

.app-screenshot-card figcaption {
  padding: 10px 14px;
  border-top: 1px solid rgba(211, 227, 220, 0.12);
  color: var(--muted);
  font-size: 0.84rem;
}

.audio-console {
  position: relative;
  border: 1px solid rgba(211, 227, 220, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(36, 46, 43, 0.92), rgba(14, 18, 18, 0.96)),
    var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.audio-console::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 24%, transparent 78%, rgba(66, 222, 196, 0.12));
}

.console-topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.76rem;
}

.waveform-panel {
  padding: 18px;
}

.waveform {
  height: 146px;
  display: grid;
  grid-template-columns: repeat(16, minmax(8px, 1fr));
  align-items: center;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 42px 100%,
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 100% 42px,
    #0b1010;
}

.waveform span {
  display: block;
  min-height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold), var(--teal));
  box-shadow: 0 0 18px rgba(66, 222, 196, 0.24);
}

.transport-row {
  gap: 12px;
  margin-top: 14px;
}

.transport-row button {
  width: 48px;
  height: 36px;
  border: 1px solid rgba(66, 222, 196, 0.42);
  border-radius: var(--radius);
  background: rgba(66, 222, 196, 0.1);
  color: var(--text);
  font-weight: 800;
}

.progress-track {
  position: relative;
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.progress-track span {
  position: absolute;
  inset: 0 42% 0 0;
  border-radius: inherit;
  background: var(--teal);
}

.transport-row small {
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

.meter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 18px 18px;
}

.meter-card {
  min-height: 98px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.meter-card span,
.meter-card small {
  display: block;
  color: var(--muted);
}

.meter-card strong {
  display: block;
  margin: 10px 0 2px;
  color: var(--text);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 1.02rem;
}

.meter-card.is-active {
  border-color: rgba(66, 222, 196, 0.5);
  background: rgba(66, 222, 196, 0.1);
}

.candidate-list {
  display: grid;
  gap: 8px;
  padding: 0 18px 18px;
}

.candidate-row {
  display: grid;
  grid-template-columns: 38px 1fr 42px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 10, 13, 0.44);
}

.candidate-row small,
.copy-stack p,
.feature-grid p,
.workflow-list small,
.download-section p,
.beta-note li {
  color: var(--muted);
}

.candidate-row strong,
.candidate-row small {
  display: block;
}

.rank,
.score {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 800;
}

.rank {
  color: var(--gold);
}

.score {
  color: var(--teal);
  text-align: right;
}

.candidate-row.is-best {
  border-color: rgba(243, 201, 105, 0.42);
  background: rgba(243, 201, 105, 0.08);
}

.section {
  padding: clamp(72px, 10vw, 128px) 0;
  border-top: 1px solid rgba(211, 227, 220, 0.1);
}

.split-section,
.download-section {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
}

.copy-stack {
  max-width: 680px;
  font-size: 1.08rem;
}

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

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

.feature-grid article,
.download-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.16);
}

.feature-grid article {
  min-height: 240px;
  padding: 22px;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 34px;
  margin-bottom: 22px;
  border-radius: var(--radius);
  background: rgba(66, 222, 196, 0.1);
  color: var(--teal);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 800;
}

.workflow-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: workflow;
}

.workflow-list li {
  position: relative;
  min-height: 220px;
  padding: 58px 18px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  counter-increment: workflow;
}

.workflow-list li::before {
  position: absolute;
  top: 18px;
  left: 18px;
  content: "0" counter(workflow);
  color: var(--gold);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 800;
}

.workflow-list span,
.workflow-list small {
  display: block;
}

.workflow-list span {
  margin-bottom: 10px;
  font-weight: 800;
}

.download-copy {
  max-width: 720px;
}

.download-panel {
  padding: 24px;
  background: var(--panel-strong);
}

.download-panel strong {
  display: block;
  margin: 18px 0 8px;
  font-size: 1.7rem;
  line-height: 1.1;
}

.download-panel .button {
  width: 100%;
  margin-top: 12px;
}

.download-guide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.download-guide article {
  min-height: 210px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.download-guide span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 32px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: rgba(243, 201, 105, 0.1);
  color: var(--gold);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 800;
}

.download-guide h3 {
  font-size: 1rem;
}

.download-guide p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.contribute-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contribute-grid span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  color: var(--soft);
  font-weight: 700;
}

.beta-note {
  max-width: 860px;
}

.beta-note ul {
  margin: 0;
  padding-left: 20px;
}

.beta-note li + li {
  margin-top: 10px;
}

.final-cta {
  min-height: 58vh;
  display: grid;
  align-content: center;
  padding: 72px 0 96px;
  border-top: 1px solid rgba(211, 227, 220, 0.1);
}

.final-cta h2 {
  max-width: 900px;
}

@media (max-width: 980px) {
  .hero,
  .split-section,
  .download-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .audio-console {
    max-width: 720px;
  }

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

  .workflow-list {
    grid-template-columns: 1fr;
  }

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

  .workflow-list li {
    min-height: 0;
  }
}

@media (max-width: 680px) {
  :root {
    --content: min(100% - 28px, 1160px);
  }

  .om-header {
    position: static;
    min-height: 54px;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
  }

  .om-nav {
    justify-content: flex-end;
    gap: 2px;
  }

  .om-nav a {
    padding: 7px 5px;
    font-size: 0.78rem;
  }

  .github-profile-link {
    width: 34px;
    height: 34px;
    margin-left: 2px;
    padding: 0;
  }

  .hero {
    padding-top: 22px;
    padding-bottom: 18px;
    gap: 18px;
  }

  .beta-banner {
    display: block;
    margin-top: 14px;
    padding: 11px 12px;
  }

  .beta-banner strong {
    display: block;
    margin-bottom: 5px;
  }

  .beta-banner span {
    font-size: 0.88rem;
  }

  h1 {
    margin-bottom: 12px;
    font-size: clamp(2.25rem, 10.8vw, 3.25rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3.2rem);
  }

  .badge-row {
    gap: 6px;
    margin-bottom: 16px;
  }

  .badge {
    min-height: 26px;
    padding: 4px 8px;
    font-size: 0.68rem;
  }

  .eyebrow {
    margin-bottom: 8px;
    font-size: 0.7rem;
  }

  .hero-lead,
  .beta-line {
    font-size: 0.96rem;
  }

  .cta-row {
    gap: 8px;
    margin: 18px 0 10px;
  }

  .button {
    min-height: 42px;
    padding: 9px 12px;
  }

  .feature-grid,
  .meter-grid,
  .download-guide {
    grid-template-columns: 1fr;
  }

  .download-guide article {
    min-height: 0;
  }

  .console-topbar {
    gap: 8px;
    padding: 10px 12px;
    font-size: 0.64rem;
  }

  .waveform {
    height: 76px;
    grid-template-columns: repeat(8, minmax(8px, 1fr));
  }

  .waveform span:nth-child(n + 9) {
    display: none;
  }

  .transport-row {
    flex-wrap: wrap;
  }

  .progress-track {
    flex-basis: calc(100% - 60px);
  }

  .candidate-row {
    grid-template-columns: 32px 1fr;
  }

  .score {
    grid-column: 2;
    text-align: left;
  }

  .meter-grid,
  .candidate-list {
    display: none;
  }

  .waveform-panel {
    padding: 12px;
  }
}
