:root {
  --paper: #f5f7fb;
  --white: #ffffff;
  --ink: #10213d;
  --muted: #65738a;
  --line: #dbe2ed;
  --blue: #2167e8;
  --blue-dark: #154eae;
  --blue-soft: #deebff;
  --mint: #20a879;
  --display: "Avenir Next", "SF Pro Display", sans-serif;
  --body: "Avenir Next", "SF Pro Text", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(16, 33, 61, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 33, 61, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
main,
footer {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.03em;
}

.brand-logo {
  width: 38px;
  height: 32px;
  object-fit: contain;
}

nav {
  display: flex;
  gap: 28px;
}

nav a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: 0.93fr 1.07fr;
  gap: clamp(48px, 7vw, 104px);
  align-items: center;
  min-height: 680px;
  padding: 82px 0 72px;
}

.status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.status span {
  width: 9px;
  height: 9px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 1px var(--mint);
}

h1,
h2 {
  margin: 0;
  font-family: var(--display);
  letter-spacing: -0.055em;
}

.hero h1 {
  max-width: 600px;
  font-size: clamp(54px, 6.2vw, 84px);
  line-height: 0.98;
}

.lede {
  max-width: 570px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
}

.button svg {
  width: 19px;
  margin-right: 9px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.button-primary {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(33, 103, 232, 0.22);
}

.button-primary:hover {
  background: var(--blue-dark);
}

.button-quiet {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.6);
}

.button-quiet:hover {
  border-color: #b4c0d2;
  background: var(--white);
}

.release-meta {
  min-height: 20px;
  margin: 14px 0 0 4px;
  color: var(--muted);
  font-size: 13px;
}

.signal-stage {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  padding: 23px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  color: #e8f0ff;
  background: #10213d;
  box-shadow: 0 32px 70px rgba(31, 52, 87, 0.22);
}

.signal-stage::before {
  position: absolute;
  inset: -40% 34% 54% -12%;
  border-radius: 50%;
  background: rgba(42, 111, 240, 0.3);
  filter: blur(30px);
  content: "";
}

.signal-toolbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #aab9d0;
  font-size: 13px;
  font-weight: 600;
}

.listening-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #41dba2;
  box-shadow: 0 0 0 5px rgba(65, 219, 162, 0.12);
}

.signal-time {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

.waveform {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 142px;
  padding: 12px 2px;
}

.waveform::after {
  position: absolute;
  right: 0;
  bottom: 24px;
  left: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  content: "";
}

.waveform i {
  width: 5px;
  height: var(--h);
  border-radius: 5px;
  background: linear-gradient(#66a0ff, #2c71ee);
  transform-origin: center;
  animation: breathe 2.6s ease-in-out calc(var(--d) * -90ms) infinite alternate;
}

.transcript {
  position: relative;
  padding-top: 3px;
}

.transcript > p {
  max-width: 90%;
  margin: 0 0 18px;
  color: #c0cee2;
  font-size: 15px;
  line-height: 1.6;
}

.answer {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 11px;
  padding: 16px;
  border: 1px solid rgba(105, 157, 255, 0.2);
  border-radius: 14px;
  background: rgba(41, 99, 199, 0.18);
}

.answer span {
  color: #75a9ff;
}

.answer p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
}

.facts p {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0;
  padding: 27px 32px;
}

.facts p + p {
  border-left: 1px solid var(--line);
}

.facts strong {
  font-family: var(--display);
  font-size: 17px;
}

.facts span {
  color: var(--muted);
  font-size: 14px;
}

.demo-section {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
  padding: 112px 0 24px;
}

.demo-copy h2 {
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.08;
}

.demo-copy p {
  margin: 22px 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.demo-hint {
  color: var(--blue-dark);
  font-weight: 600;
}

.demo-video {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(16, 33, 61, 0.12);
  border-radius: 20px;
  background: var(--ink);
  box-shadow: 0 24px 54px rgba(31, 52, 87, 0.18);
}

.demo-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.install-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 100px;
  padding: 112px 0 124px;
}

.install-section h2 {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.08;
}

.install-section > div > p {
  max-width: 480px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.install-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.install-steps li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.install-steps li:first-child {
  padding-top: 4px;
}

.install-steps li > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #b9c7dc;
  border-radius: 50%;
  color: var(--blue);
  font-weight: 600;
}

.install-steps strong {
  font-family: var(--display);
  font-size: 17px;
}

.install-steps p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 30px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

footer p {
  margin: 0;
}

footer a {
  font-weight: 600;
}

.versions-main {
  padding: 78px 0 120px;
}

.versions-heading {
  max-width: 760px;
}

.back-link {
  display: inline-block;
  margin-bottom: 40px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.back-link:hover {
  color: var(--ink);
}

.versions-heading h1 {
  font-size: clamp(50px, 7vw, 82px);
  line-height: 1;
}

.versions-heading > p {
  max-width: 620px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.release-ledger {
  margin-top: 82px;
  border-top: 2px solid var(--ink);
}

.ledger-heading {
  display: flex;
  justify-content: space-between;
  padding: 20px 0 18px;
  border-bottom: 1px solid var(--line);
}

.ledger-heading h2 {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.ledger-heading span {
  color: var(--muted);
  font-size: 14px;
}

.release-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.release-title-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.release-row h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: -0.02em;
}

.release-row p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.latest-badge,
.prerelease-badge {
  padding: 3px 8px;
  border-radius: 100px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  font-size: 12px;
  font-weight: 600;
}

.prerelease-badge {
  color: #855f10;
  background: #fff0c7;
}

.release-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 600;
}

.notes-link {
  color: var(--muted);
}

.download-link {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.64);
}

.download-link:hover {
  border-color: var(--blue);
  color: var(--blue-dark);
  background: var(--white);
}

.unavailable {
  color: var(--muted);
  font-weight: 400;
}

.loading-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 28px 0;
  color: var(--muted);
}

.loading-row span {
  width: 16px;
  height: 16px;
  border: 2px solid var(--line);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.release-error {
  padding: 30px 0;
}

.release-error p {
  margin: 0 0 8px;
}

.release-error a {
  color: var(--blue-dark);
  font-weight: 600;
}

.gatekeeper-note {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 28px;
  align-items: baseline;
  margin-top: 58px;
  padding: 22px 24px;
  border-left: 3px solid var(--blue);
  background: rgba(222, 235, 255, 0.64);
}

.gatekeeper-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.gatekeeper-note a {
  white-space: nowrap;
  color: var(--blue-dark);
  font-weight: 600;
}

a:focus-visible {
  outline: 3px solid rgba(33, 103, 232, 0.35);
  outline-offset: 4px;
}

@keyframes breathe {
  to { transform: scaleY(0.56); opacity: 0.72; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 820px) {
  .site-header,
  main,
  footer {
    width: min(100% - 32px, 680px);
  }

  .hero,
  .install-section,
  .demo-section {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 60px;
    padding-top: 66px;
  }

  .signal-stage {
    min-height: 400px;
  }

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

  .facts p {
    padding-inline: 0;
  }

  .facts p + p {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .install-section {
    gap: 56px;
    padding: 86px 0 96px;
  }

  .demo-section {
    gap: 38px;
    padding-top: 86px;
  }

  .gatekeeper-note {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 72px;
  }

  nav {
    gap: 16px;
  }

  nav a:last-child {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 52px 0 64px;
  }

  .hero h1 {
    font-size: clamp(49px, 15vw, 68px);
  }

  .lede {
    font-size: 17px;
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .signal-stage {
    min-height: 390px;
    padding: 18px;
  }

  .waveform {
    gap: 5px;
  }

  .release-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .release-actions {
    justify-content: space-between;
  }

  .versions-main {
    padding-top: 48px;
  }

  .release-ledger {
    margin-top: 58px;
  }

  footer {
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .waveform i,
  .loading-row span { animation: none; }
}
