:root {
  --ink: #101923;
  --ink-soft: #54616d;
  --paper: #f4f0e8;
  --paper-deep: #e8e1d5;
  --panel: #fffdf8;
  --line: rgba(16, 25, 35, 0.14);
  --orange: #ff5c35;
  --orange-dark: #d83b18;
  --cyan: #2ec4b6;
  --cyan-dark: #137d76;
  --yellow: #ffd166;
  --blue: #3178c6;
  --navy: #142638;
  --shadow: 0 24px 80px rgba(30, 38, 46, 0.13);
  --shell: min(1180px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 209, 102, 0.16), transparent 26rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button,
audio {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.shell {
  width: var(--shell);
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

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

.site-nav {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(20, 38, 56, 0.82);
  backdrop-filter: blur(18px);
  color: #fff;
}

.nav-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand strong {
  color: var(--yellow);
}

.brand b {
  color: var(--orange);
}

.brand-signal {
  width: 31px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.brand-signal i {
  width: 3px;
  border-radius: 10px;
  background: currentColor;
}

.brand-signal i:nth-child(1),
.brand-signal i:nth-child(5) { height: 9px; }
.brand-signal i:nth-child(2),
.brand-signal i:nth-child(4) { height: 18px; }
.brand-signal i:nth-child(3) { height: 26px; background: var(--orange); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
}

.nav-toggle > span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 2px;
  margin: 6px auto;
  background: currentColor;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 154px 0 98px;
  color: #fff;
  background:
    radial-gradient(circle at 77% 28%, rgba(46, 196, 182, 0.2), transparent 23rem),
    linear-gradient(135deg, #102232 0%, #172c40 55%, #18394a 100%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -180px;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.025), 0 0 0 130px rgba(255, 255, 255, 0.018);
}

.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(420px, 0.77fr);
  align-items: center;
  gap: 74px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--yellow);
}

.eyebrow span {
  width: 34px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  margin: 0;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(48px, 6.2vw, 78px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 700;
}

.hero h1 em {
  color: var(--yellow);
  font-style: normal;
}

.hero-lead {
  max-width: 650px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 18px;
  line-height: 1.85;
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 750;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.button-primary {
  color: #161d24;
  background: var(--yellow);
}

.button-primary:hover {
  background: #ffe08c;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
}

.hero-footnote {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  color: rgba(255, 255, 255, 0.55);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(46, 196, 182, 0.12);
}

.hero-console {
  position: relative;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(7, 15, 22, 0.52);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(20px);
}

.hero-console::before {
  content: "";
  position: absolute;
  inset: 8px -8px -8px 8px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.console-head,
.console-axis {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.42);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.console-state {
  color: var(--cyan);
}

.console-query {
  margin: 24px 0 20px;
  padding: 16px;
  border-left: 2px solid var(--orange);
  background: rgba(255, 255, 255, 0.055);
}

.console-query small,
.console-output small {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.4);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.console-query p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
}

.console-wave {
  position: relative;
  height: 105px;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0 4px;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.console-wave i {
  flex: 1;
  min-width: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.28);
}

.console-target {
  position: absolute;
  z-index: 0;
  inset: 0 63% 0 30%;
  border-left: 1px solid var(--yellow);
  border-right: 1px solid var(--yellow);
  background: rgba(255, 209, 102, 0.15);
}

.console-cursor {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: 34%;
  width: 1px;
  background: var(--orange);
  box-shadow: 0 0 12px rgba(255, 92, 53, 0.8);
}

.console-axis {
  margin-top: 6px;
  font-size: 8px;
}

.console-output {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(46, 196, 182, 0.25);
  background: rgba(46, 196, 182, 0.08);
}

.output-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #071016;
  background: var(--cyan);
  font-weight: 900;
}

.console-output strong {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.output-duration {
  color: var(--yellow);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.stat-band {
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.stat {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 22px;
  border-right: 1px solid var(--line);
}

.stat:first-child {
  border-left: 1px solid var(--line);
}

.stat strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  line-height: 1;
}

.stat span {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 12px;
}

.section {
  padding: 112px 0;
}

.overview-grid,
.notes-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 90px;
}

.section h2 {
  margin: 0;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.overview-copy {
  padding-top: 34px;
  border-top: 1px solid var(--ink);
}

.overview-copy p {
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.9;
}

.protocol-section {
  color: #fff;
  background: var(--navy);
}

.section-heading,
.demo-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 46px;
}

.section-heading > p,
.demo-heading > p {
  max-width: 420px;
  margin: 0 0 7px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
}

.protocol-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.86fr 1fr;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.protocol-card {
  position: relative;
  min-height: 350px;
  padding: 34px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.025);
}

.protocol-card:hover {
  background: rgba(255, 255, 255, 0.045);
}

.card-index {
  position: absolute;
  top: 27px;
  right: 30px;
  color: rgba(255, 255, 255, 0.18);
  font-family: Georgia, serif;
  font-size: 40px;
}

.card-label {
  margin: 0 0 26px;
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.13em;
}

.protocol-card h3 {
  max-width: 270px;
  margin: 0 0 30px;
  font-size: 24px;
  line-height: 1.3;
}

.input-stack {
  display: grid;
  gap: 12px;
}

.audio-pill,
.query-pill {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.audio-pill {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 12px;
}

.audio-pill small {
  grid-column: 2;
  color: rgba(255, 255, 255, 0.45);
}

.tiny-wave {
  grid-row: 1 / 3;
  width: 34px;
  height: 30px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.tiny-wave i {
  width: 3px;
  border-radius: 4px;
  background: var(--yellow);
}

.tiny-wave i:nth-child(1) { height: 10px; }
.tiny-wave i:nth-child(2) { height: 22px; }
.tiny-wave i:nth-child(3) { height: 29px; }
.tiny-wave i:nth-child(4) { height: 17px; }
.tiny-wave i:nth-child(5) { height: 8px; }

.query-pill {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.protocol-card pre {
  margin: 0;
  padding: 22px;
  color: var(--yellow);
  background: #0b1925;
  overflow: auto;
}

.protocol-card code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
}

.protocol-note {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.metric-row {
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.metric-row strong,
.metric-row span {
  display: block;
}

.metric-row strong {
  color: var(--yellow);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

.metric-row span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.demo-section {
  background: var(--panel);
}

.demo-heading > p {
  color: var(--ink-soft);
}

.demo-toolbar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #f8f5ef;
}

.filter-block > span {
  display: block;
  margin-bottom: 9px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.filter-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.filter-button:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filter-button.active {
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
}

.demo-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0 18px;
  color: var(--ink-soft);
  font-size: 12px;
}

.demo-meta p {
  margin: 0;
}

.demo-meta strong {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 20px;
}

.legend {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.legend-target {
  width: 24px;
  height: 9px;
  border-left: 1px solid var(--orange);
  border-right: 1px solid var(--orange);
  background: rgba(255, 92, 53, 0.19);
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.loading-card,
.empty-state,
.error-card {
  grid-column: 1 / -1;
  min-height: 240px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: #f8f5ef;
}

.loading-card span {
  width: 34px;
  height: 34px;
  border: 2px solid var(--paper-deep);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.demo-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 14px 50px rgba(26, 36, 45, 0.06);
}

.demo-card.featured::before {
  content: "FEATURED";
  position: absolute;
  z-index: 3;
  top: 14px;
  right: -31px;
  width: 120px;
  padding: 4px 0;
  color: #fff;
  background: var(--orange);
  transform: rotate(42deg);
  text-align: center;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.demo-card-head {
  min-height: 184px;
  padding: 28px 28px 22px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(46, 196, 182, 0.07), transparent 48%),
    #faf8f3;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 17px;
}

.tag {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.7);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tag-event {
  border-color: transparent;
  color: #fff;
  background: var(--cyan-dark);
}

.tag-hard {
  border-color: rgba(216, 59, 24, 0.25);
  color: var(--orange-dark);
  background: rgba(255, 92, 53, 0.08);
}

.demo-card h3 {
  margin: 0;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 25px;
  line-height: 1.28;
}

.demo-note {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}

.query-box {
  min-height: 126px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
}

.micro-label {
  display: block;
  margin-bottom: 8px;
  color: var(--orange-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.query-box p {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
}

.audio-workbench {
  padding: 24px 28px 25px;
  border-bottom: 1px solid var(--line);
  background: var(--navy);
  color: #fff;
}

.audio-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 17px;
}

.audio-toolbar > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.audio-toolbar strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.audio-toolbar small {
  color: rgba(255, 255, 255, 0.46);
  font-size: 10px;
}

.target-play {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 209, 102, 0.45);
  color: var(--yellow);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  transition: color 0.16s ease, background 0.16s ease;
}

.target-play:hover,
.target-play.is-playing {
  color: var(--ink);
  background: var(--yellow);
}

.waveform {
  position: relative;
  height: 92px;
  display: flex;
  align-items: center;
  gap: 2px;
  overflow: hidden;
  cursor: crosshair;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.waveform-bar {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 1px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.24);
  transition: background 0.12s ease;
}

.waveform-bar.in-target {
  background: rgba(255, 209, 102, 0.78);
}

.waveform-bar.played {
  background: var(--cyan);
}

.target-window {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  border-left: 1px solid var(--orange);
  border-right: 1px solid var(--orange);
  background: rgba(255, 92, 53, 0.13);
  pointer-events: none;
}

.playhead {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  pointer-events: none;
}

.timeline-axis {
  position: relative;
  height: 30px;
  color: rgba(255, 255, 255, 0.42);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
}

.timeline-axis span {
  position: absolute;
  top: 7px;
  transform: translateX(-50%);
}

.timeline-axis span:first-child {
  transform: none;
}

.timeline-axis span:last-child {
  transform: translateX(-100%);
}

.native-audio {
  width: 100%;
  height: 34px;
  opacity: 0.88;
}

.answer-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 22px 28px;
}

.answer-panel pre {
  margin: 0;
  padding: 14px;
  color: #dbe9f5;
  background: var(--ink);
  overflow: auto;
}

.answer-panel code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.time-summary {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 14px;
}

.time-summary div {
  min-width: 54px;
}

.time-summary small,
.time-summary strong {
  display: block;
}

.time-summary small {
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.time-summary strong {
  margin-top: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 28px;
  border-top: 1px solid var(--line);
  color: #7a858f;
  background: #faf8f3;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
}

.flag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--orange-dark);
}

.flag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.notes-section {
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
}

.note-list {
  border-top: 1px solid var(--ink);
}

.note-list article {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.note-list article > span {
  color: var(--orange);
  font-family: Georgia, serif;
  font-size: 18px;
}

.note-list h3,
.note-list p {
  margin: 0;
}

.note-list h3 {
  font-size: 16px;
}

.note-list p {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 13px;
}

footer {
  padding: 36px 0;
  color: rgba(255, 255, 255, 0.62);
  background: #0e1b28;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-inner p {
  margin: 0;
  font-size: 11px;
}

.footer-brand {
  color: #fff;
}

.noscript {
  padding: 18px;
  border: 1px solid var(--line);
}

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

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

  .hero-console {
    max-width: 650px;
  }

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

  .stat:nth-child(4) {
    border-left: 1px solid var(--line);
  }

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

  .metric-card {
    grid-column: 1 / -1;
    min-height: auto;
  }

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

@media (max-width: 760px) {
  :root {
    --shell: min(100% - 28px, 1180px);
  }

  .site-nav {
    background: rgba(20, 38, 56, 0.94);
  }

  .nav-inner {
    min-height: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    display: none;
    padding: 18px 20px 24px;
    background: #142638;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    padding: 120px 0 70px;
  }

  .hero-grid {
    gap: 48px;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 64px);
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-console {
    padding: 14px;
  }

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

  .stat,
  .stat:first-child,
  .stat:nth-child(4) {
    min-height: 100px;
    border-left: 0;
  }

  .stat:nth-child(odd) {
    border-left: 1px solid var(--line);
  }

  .stat:last-child {
    grid-column: 1 / -1;
    border-left: 1px solid var(--line);
  }

  .section {
    padding: 78px 0;
  }

  .overview-grid,
  .notes-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .section-heading,
  .demo-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

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

  .metric-card {
    grid-column: auto;
  }

  .protocol-card {
    min-height: auto;
  }

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

  .demo-card-head,
  .query-box,
  .audio-workbench,
  .answer-panel {
    padding-right: 20px;
    padding-left: 20px;
  }

  .answer-panel {
    grid-template-columns: 1fr;
  }

  .time-summary {
    justify-content: space-between;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
