:root {
  --bg: #f5f8fc;
  --bg-strong: #eaf2ff;
  --card: rgba(255, 255, 255, 0.78);
  --card-solid: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: rgba(148, 163, 184, 0.28);
  --blue: #1769e0;
  --blue-dark: #0f3d8a;
  --teal: #10b981;
  --orange: #f97316;
  --slate: #475569;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(23, 105, 224, 0.12), transparent 34%),
    linear-gradient(215deg, rgba(16, 185, 129, 0.12), transparent 30%),
    var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

.load-error {
  margin: 14px auto;
  width: min(1180px, calc(100% - 32px));
  border: 1px solid #fecaca;
  border-radius: 14px;
  padding: 12px 14px;
  color: #991b1b;
  background: #fff1f2;
  font-size: 14px;
}

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

button,
input {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 14px auto 0;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--blue-dark);
}

.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-size: 13px;
}

.nav a {
  border-radius: 999px;
  padding: 8px 11px;
}

.nav a:hover {
  background: #edf4ff;
  color: var(--blue);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 64px;
}

.section-band,
.section-card,
.logo-strip {
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section-band {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(236, 246, 255, 0.72));
}

.section-card,
.logo-strip {
  margin-top: 22px;
  padding: 28px;
  background: var(--card);
  backdrop-filter: blur(18px);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr);
  gap: 34px;
  min-height: 560px;
  overflow: hidden;
  padding: 54px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(23, 105, 224, 0.16), transparent 52%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.26));
  pointer-events: none;
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-copy {
  align-self: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(40px, 6vw, 60px);
  line-height: 1.02;
  letter-spacing: 0;
  color: #081b3f;
}

.hero-lead {
  max-width: 680px;
  margin: 22px 0 0;
  color: #334155;
  font-size: 18px;
}

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

.primary-action,
.secondary-action,
.video-toolbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  cursor: pointer;
}

.primary-action,
.video-toolbar button:first-child {
  border: 1px solid var(--blue);
  color: #fff;
  background: var(--blue);
}

.secondary-action,
.video-toolbar button {
  border: 1px solid var(--line);
  color: #1e293b;
  background: rgba(255, 255, 255, 0.82);
}

.hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: minmax(140px, auto);
  gap: 16px;
  align-self: center;
}

.glass-panel {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(18px);
}

.score-panel {
  grid-column: 1 / -1;
  padding: 22px;
}

.panel-head,
.chart-head,
.section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.panel-head span,
.latency-panel span,
.workflow-panel span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.panel-head strong {
  color: var(--teal);
  font-size: 30px;
  line-height: 1;
}

.score-ring {
  display: grid;
  place-items: center;
  width: 184px;
  height: 184px;
  margin: 16px auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 58%, transparent 59%),
    conic-gradient(var(--blue) calc(var(--score) * 1%), #dce8f8 0);
}

.score-ring span {
  display: block;
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
  color: #0f3d8a;
  position: relative;
  top: 35px; /* move it down */
}

.score-ring small {
  color: var(--muted);
  font-weight: 800;
}

.mini-bars {
  display: grid;
  gap: 10px;
}

.mini-bars div {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 10px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.mini-bars i {
  display: block;
  height: 10px;
  width: var(--w);
  border-radius: 999px;
  background: var(--blue);
}

.mini-bars .orange {
  background: var(--orange);
}

.latency-panel,
.workflow-panel {
  padding: 20px;
}

.latency-panel strong,
.workflow-panel strong {
  display: block;
  margin-top: 12px;
  color: #081b3f;
  font-size: 30px;
  line-height: 1.1;
}

.latency-panel small,
.workflow-panel small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.logo-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  padding: 20px 24px;
}

.logo-strip article {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 0;
  color: #334155;
  font-weight: 800;
}

.logo-strip img {
  max-width: 190px;
  max-height: 44px;
  object-fit: contain;
}

.versus {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #fff;
  background: #0f172a;
  font-weight: 900;
}

.section-title {
  margin-bottom: 22px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.15;
  letter-spacing: 0;
}

.section-title > p {
  max-width: 440px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.video-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.video-toolbar button {
  min-height: 38px;
  padding: 8px 14px;
}

.video-toolbar label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.video-section {
  position: relative;
  overflow: hidden;
  padding: 32px;
  background:
    radial-gradient(circle at 16% 12%, rgba(23, 105, 224, 0.15), transparent 32%),
    radial-gradient(circle at 88% 8%, rgba(16, 185, 129, 0.13), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(239, 247, 255, 0.78));
}

.video-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(circle at 50% 14%, #000 0 28%, transparent 72%);
  pointer-events: none;
}

.video-section > * {
  position: relative;
  z-index: 1;
}

.video-section .section-title {
  align-items: flex-end;
  margin-bottom: 18px;
}

.video-section h2 {
  max-width: 780px;
  color: #081b3f;
  font-size: clamp(28px, 3.8vw, 44px);
  letter-spacing: 0;
}

.video-toolbar {
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.video-toolbar button {
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.video-toolbar button:hover,
.video-toolbar button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(23, 105, 224, 0.14);
}

.video-mode {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 7px 11px;
  color: #0f3d8a;
  background: #eef4ff;
  font-size: 12px;
  font-weight: 900;
}

.latency-demo-section {
  position: relative;
  overflow: hidden;
  padding: 30px;
  background:
    radial-gradient(circle at 8% 12%, rgba(16, 185, 129, 0.16), transparent 30%),
    radial-gradient(circle at 86% 18%, rgba(23, 105, 224, 0.14), transparent 34%),
    rgba(255, 255, 255, 0.8);
}

.latency-demo-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(115deg, rgba(0, 0, 0, 0.86), transparent 76%);
  pointer-events: none;
}

.live-demo-section {
  position: relative;
  overflow: hidden;
  padding: 30px;
  background:
    radial-gradient(circle at 12% 10%, rgba(220, 38, 38, 0.13), transparent 30%),
    radial-gradient(circle at 88% 16%, rgba(14, 165, 233, 0.15), transparent 33%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(243, 248, 255, 0.76));
}

.live-demo-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(15, 23, 42, 0.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 42% 18%, #000 0 30%, transparent 72%);
  pointer-events: none;
}

.live-demo-section > * {
  position: relative;
  z-index: 1;
}

.live-demo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 22px;
  align-items: center;
  margin-bottom: 22px;
}

.live-demo-hero h2 {
  max-width: 820px;
  margin: 0;
  color: #081b3f;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
}

.live-demo-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 14px 0 0;
  color: #475569;
  font-size: 15px;
}

.live-demo-orbit {
  position: relative;
  width: 148px;
  height: 148px;
  justify-self: end;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.92) 0 24%, transparent 25%),
    conic-gradient(from 120deg, #dc2626, #0ea5e9, #10b981, #dc2626);
  box-shadow: 0 22px 58px rgba(15, 23, 42, 0.14);
  animation: liveOrbitSpin 8s linear infinite;
}

.live-demo-orbit span {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: inherit;
}

.live-demo-orbit span:nth-child(2) {
  inset: 38px;
}

.live-demo-orbit span:nth-child(3) {
  inset: 61px;
  background: #0f172a;
}

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

.live-control-dock {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr)) auto auto auto auto;
  grid-auto-flow: dense;
  gap: 12px;
  align-items: end;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.live-control-dock label {
  display: grid;
  gap: 6px;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}

.live-control-dock select {
  min-height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 12px;
  padding: 0 12px;
  color: #0f172a;
  background: #fff;
  font: inherit;
  font-weight: 800;
}

.switch-control {
  grid-template-columns: auto auto;
  align-items: center;
  min-height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(248, 251, 255, 0.82);
  cursor: pointer;
}

.switch-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-ui {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 180ms ease;
}

.switch-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
  transition: transform 180ms ease;
}

.switch-control input:checked + .switch-ui {
  background: #1769e0;
}

.switch-control input:checked + .switch-ui::after {
  transform: translateX(18px);
}

.switch-control strong {
  color: #1e293b;
  font-size: 13px;
  white-space: nowrap;
}

.provider-choice {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  margin: 0;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  padding: 5px;
  background: rgba(248, 251, 255, 0.82);
}

.provider-choice legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.provider-choice label {
  display: block;
  cursor: pointer;
}

.provider-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.provider-choice span {
  display: grid;
  place-items: center;
  min-height: 30px;
  border-radius: 9px;
  padding: 6px 10px;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.provider-choice input:checked + span {
  color: #fff;
  background: #0f172a;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

.live-actions {
  display: flex;
  gap: 9px;
}

.live-primary-button,
.live-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.live-primary-button {
  border: 1px solid #0f172a;
  color: #fff;
  background: #0f172a;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

.live-secondary-button {
  border: 1px solid rgba(148, 163, 184, 0.34);
  color: #1e293b;
  background: #fff;
}

.live-primary-button:hover,
.live-secondary-button:hover {
  transform: translateY(-1px);
}

.live-primary-button:disabled,
.live-secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
}

.live-status-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 14px 0 16px;
  color: #475569;
  font-size: 13px;
}

.live-status-line span {
  border-radius: 999px;
  padding: 5px 9px;
  color: #fff;
  background: #0f172a;
  font-weight: 900;
}

.live-status-line strong {
  font-weight: 800;
}

.live-provider-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 16px;
  margin-top: -42px;
  margin-bottom: 18px;
}

.live-provider-panel {
  grid-column: span 4;
  position: relative;
  overflow: hidden;
  min-height: 440px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 18px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 22px 62px rgba(15, 23, 42, 0.12);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.live-provider-panel:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 76px rgba(15, 23, 42, 0.16);
}

.live-provider-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--provider-accent, #1769e0);
}

.volcano-panel {
  --provider-accent: linear-gradient(90deg, #dc2626, #f97316);
}

.aliyun-panel {
  --provider-accent: linear-gradient(90deg, #1769e0, #10b981);
}

.iflytek-panel {
  --provider-accent: linear-gradient(90deg, #7c3aed, #f97316);
}

.live-provider-panel header,
.live-provider-panel footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.provider-mark {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 9px;
  color: #fff;
  background: #0f172a;
  font-size: 12px;
  font-weight: 900;
}

.live-provider-panel h3 {
  margin: 12px 0 0;
  color: #081b3f;
  font-size: 23px;
  line-height: 1.12;
}

.live-provider-panel output {
  border-radius: 999px;
  padding: 7px 10px;
  color: #475569;
  background: #eef4ff;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.live-header-meta {
  display: grid;
  justify-items: end;
  gap: 7px;
  flex: 0 0 auto;
}

.latency-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 999px;
  padding: 6px 10px;
  color: #475569;
  background: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.latency-badge[data-latency-mode="timing"] {
  color: #0f3d8a;
  background: #eef4ff;
}

.latency-badge[data-latency-mode="ready"] {
  color: #047857;
  background: #d1fae5;
}

.latency-badge[data-latency-mode="idle"] {
  color: #64748b;
}

.live-provider-panel.is-live output {
  color: #047857;
  background: #d1fae5;
}

.live-provider-panel.has-error output {
  color: #b91c1c;
  background: #fee2e2;
}

.live-provider-panel.is-disabled {
  opacity: 0.58;
}

.live-provider-panel.is-disabled .live-meter i {
  animation: none;
}

.live-meter {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: center;
  gap: 8px;
  height: 96px;
  margin: 22px 0;
  border-radius: 16px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.92)),
    #0f172a;
}

.live-meter i {
  display: block;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0.52));
  transform: scaleY(0.42);
  transform-origin: center;
  opacity: 0.6;
  transition: transform 160ms ease, opacity 160ms ease;
}

.live-meter i:nth-child(2),
.live-meter i:nth-child(6) {
  height: 42px;
}

.live-meter i:nth-child(3),
.live-meter i:nth-child(5) {
  height: 62px;
}

.live-meter i:nth-child(4) {
  height: 76px;
}

.live-provider-panel.is-live .live-meter i {
  animation: liveMeterIdle 1.45s ease-in-out infinite;
}

.live-provider-panel.is-live .live-meter i:nth-child(2) {
  animation-delay: 80ms;
}

.live-provider-panel.is-live .live-meter i:nth-child(3) {
  animation-delay: 160ms;
}

.live-provider-panel.is-live .live-meter i:nth-child(4) {
  animation-delay: 240ms;
}

.live-provider-panel.is-live .live-meter i:nth-child(5) {
  animation-delay: 320ms;
}

.live-provider-panel.is-live .live-meter i:nth-child(6) {
  animation-delay: 400ms;
}

.live-provider-panel.is-live .live-meter i:nth-child(7) {
  animation-delay: 480ms;
}

.live-provider-panel.mic-active .live-meter i,
.live-provider-panel.audio-active .live-meter i {
  opacity: 1;
  transform: scaleY(1);
}

@keyframes liveMeterIdle {
  0%,
  100% {
    transform: scaleY(0.38);
    opacity: 0.48;
  }

  50% {
    transform: scaleY(0.88);
    opacity: 0.92;
  }
}

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

.live-provider-panel header + .live-text-stack {
  margin-top: 18px;
}

.live-text-stack section {
  min-height: 138px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 16px;
  padding: 15px;
  background: rgba(248, 251, 255, 0.82);
}

.live-text-stack section > span {
  display: block;
  color: #0f3d8a;
  font-size: 12px;
  font-weight: 900;
}

.live-text-stack p {
  max-height: 86px;
  margin: 9px 0 0;
  overflow: auto;
  color: #0f172a;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.55;
  white-space: pre-line;
}

.live-text-line {
  display: block;
  margin-top: 7px;
  color: #94a3b8;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.55;
  white-space: pre-wrap;
}

.live-text-line:first-child {
  margin-top: 0;
}

.live-text-line.is-history {
  color: #94a3b8;
}

.live-text-line.is-current {
  color: #0f172a;
  font-size: 16px;
  font-weight: 900;
}

.live-provider-panel footer {
  align-items: center;
  margin-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  padding-top: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.live-provider-panel footer b {
  border-radius: 999px;
  padding: 6px 9px;
  color: #0f3d8a;
  background: #eef4ff;
}

.latency-title,
.latency-bento {
  position: relative;
  z-index: 1;
}

.latency-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 16px;
}

.latency-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 20px 58px rgba(15, 23, 42, 0.11);
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 600ms ease, transform 700ms ease, box-shadow 240ms ease;
}

.latency-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.latency-card:hover {
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.15);
}

.latency-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--teal), var(--orange));
  opacity: 0.75;
}

.interpretation-card {
  grid-column: span 7;
  min-height: 430px;
  padding: 22px;
}

.advantage-card {
  grid-column: span 5;
  min-height: 430px;
  padding: 22px;
}

.demo-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.demo-card-head h3 {
  max-width: 360px;
  margin: 0;
  font-size: 24px;
  line-height: 1.18;
  color: #081b3f;
}

.audio-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  border: 1px solid rgba(23, 105, 224, 0.28);
  border-radius: 999px;
  padding: 10px 15px;
  color: #0f3d8a;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 30px rgba(23, 105, 224, 0.12);
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.audio-action.primary {
  color: #fff;
  background: linear-gradient(135deg, #1769e0, #0f3d8a);
}

.audio-action.compact {
  flex: 0 0 auto;
}

.audio-action:hover,
.audio-action:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(23, 105, 224, 0.18);
}

.audio-action:focus-visible {
  outline: 3px solid rgba(16, 185, 129, 0.3);
  outline-offset: 3px;
}

.play-glyph {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid currentColor;
}

.audio-action.is-playing .play-glyph {
  width: 11px;
  height: 11px;
  border: 0;
  border-left: 4px solid currentColor;
  border-right: 4px solid currentColor;
}

.latency-summary {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 9px 12px;
  color: #475569;
  background: #eef4ff;
  font-size: 12px;
  font-weight: 900;
}

.speech-board {
  display: grid;
  gap: 12px;
}

.speech-row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) 96px;
  align-items: center;
  gap: 14px;
  min-height: 94px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 16px;
  padding: 15px;
  background: rgba(248, 251, 255, 0.8);
  transition: border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.speech-row.is-speaking {
  border-color: rgba(23, 105, 224, 0.26);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(23, 105, 224, 0.08), 0 16px 38px rgba(23, 105, 224, 0.08);
}

.speech-meta span,
.speech-meta strong,
.speech-row output {
  display: block;
}

.speech-meta span {
  color: #0f3d8a;
  font-size: 13px;
  font-weight: 900;
}

.speech-meta strong {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.speech-row p {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.18em;
  margin: 0;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.45;
}

.source-row p {
  gap: 0;
}

.speech-token {
  display: inline-block;
  color: rgba(71, 85, 105, 0.28);
  transform: translateY(3px);
  transition: color 220ms ease, opacity 220ms ease, transform 220ms ease, text-shadow 220ms ease;
  will-change: color, transform;
}

.speech-token.is-on {
  color: #081b3f;
  opacity: 1;
  transform: translateY(0);
}

.speech-token.is-current {
  text-shadow: 0 8px 24px rgba(23, 105, 224, 0.24);
}

.source-row .speech-token.is-on {
  color: #081b3f;
}

.globalvoice-row .speech-token.is-on,
.globalvoice-row .speech-meta span {
  color: #047857;
}

.iflytek-row .speech-token.is-on,
.iflytek-row .speech-meta span {
  color: #c2410c;
}

.speech-row output {
  justify-self: end;
  min-width: 84px;
  border-radius: 999px;
  padding: 7px 9px;
  color: #334155;
  background: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.voice-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 118px;
  margin: 6px 0 18px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(15, 61, 138, 0.94), rgba(23, 105, 224, 0.82)),
    #0f172a;
}

.audio-hint {
  max-width: 340px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.voice-visual span {
  width: 9px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  transform-origin: center;
  animation: idleWave 1.4s ease-in-out infinite;
  animation-play-state: paused;
}

.voice-visual span:nth-child(2) {
  height: 54px;
  animation-delay: 120ms;
}

.voice-visual span:nth-child(3) {
  height: 72px;
  animation-delay: 220ms;
}

.voice-visual span:nth-child(4) {
  height: 58px;
  animation-delay: 320ms;
}

.voice-visual span:nth-child(5) {
  height: 44px;
  animation-delay: 420ms;
}

.voice-visual span:nth-child(6) {
  height: 62px;
  animation-delay: 520ms;
}

.advantage-card.is-playing .voice-visual span {
  animation-play-state: running;
}

@keyframes idleWave {
  0%,
  100% {
    transform: scaleY(0.42);
    opacity: 0.58;
  }

  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

.advantage-stack {
  display: grid;
  gap: 10px;
}

.advantage-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  padding: 13px 0 0;
}

.advantage-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.advantage-item span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: #0f172a;
  font-size: 12px;
  font-weight: 900;
}

.advantage-item.active span {
  background: var(--teal);
}

.advantage-item strong {
  color: #081b3f;
  font-size: 18px;
  line-height: 1.15;
}

.advantage-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

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

.video-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 20px;
  background: linear-gradient(180deg, #0f172a, #111827);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
  transform: translateY(0);
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.video-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--teal), var(--orange));
  opacity: 0.86;
  z-index: 2;
}

.video-card:hover {
  border-color: rgba(23, 105, 224, 0.3);
  box-shadow: 0 30px 76px rgba(15, 23, 42, 0.22);
  transform: translateY(-3px);
}

.video-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px 14px;
  color: #fff;
  background:
    radial-gradient(circle at 0 0, rgba(23, 105, 224, 0.28), transparent 42%),
    rgba(15, 23, 42, 0.94);
}

.video-brand {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.video-card-head img {
  max-width: 148px;
  max-height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.24));
}

.video-brand span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.video-badge {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 6px 10px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 900;
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(23, 105, 224, 0.26), transparent),
    #111827;
}

.video-shell video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 700ms ease, filter 240ms ease;
}

.video-card:hover .video-shell video {
  transform: scale(1.025);
}

.video-card.is-ended .video-shell video {
  filter: saturate(0.85) brightness(0.82);
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: rgba(255, 255, 255, 0.86);
  text-align: center;
  pointer-events: none;
}

.video-placeholder strong {
  display: block;
  font-size: 22px;
}

.video-placeholder small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.64);
}

.demo-script,
.kpi-grid,
.charts-grid,
.workflow-map {
  display: grid;
  gap: 16px;
}

.demo-script {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.script-card,
.kpi-card,
.chart-card,
.capability-group,
.workflow-map article {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
}

.script-card {
  padding: 16px;
}

.script-card b,
.workflow-map b {
  color: var(--blue);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.script-card h3 {
  margin: 4px 0 12px;
  font-size: 18px;
}

.script-card p {
  margin: 8px 0 0;
  color: #475569;
  font-size: 14px;
}

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

.kpi-card {
  padding: 18px;
  min-height: 150px;
}

.kpi-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.kpi-card strong {
  display: block;
  margin-top: 16px;
  font-size: 34px;
  line-height: 1;
  color: #0f3d8a;
}

.kpi-card strong small {
  margin-left: 2px;
  color: var(--muted);
  font-size: 15px;
}

.kpi-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.delta {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  color: #047857;
  background: #d1fae5;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.charts-grid {
  grid-template-columns: 1.2fr 0.8fr;
  margin-top: 16px;
}

.chart-card {
  padding: 20px;
}

.chart-card.wide {
  grid-row: span 2;
}

.chart-head {
  margin-bottom: 16px;
}

.chart-head h3 {
  margin: 0;
  font-size: 20px;
}

.chart-head span {
  border-radius: 999px;
  padding: 5px 9px;
  color: #334155;
  background: #eef4ff;
  font-size: 12px;
  font-weight: 900;
}

.radar-chart svg {
  display: block;
  width: min(100%, 590px);
  height: auto;
  margin: 0 auto;
}

.axis-label {
  fill: #475569;
  font-size: 12px;
  font-weight: 800;
}

.legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 50%;
  vertical-align: 0;
}

.bar-chart {
  display: grid;
  gap: 13px;
}

.bar-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 68px;
  align-items: center;
  gap: 10px;
}

.bar-row span:first-child {
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.bar-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7edf6;
}

.bar-fill {
  height: 100%;
  width: var(--w);
  border-radius: inherit;
  background: var(--blue);
}

.bar-value {
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
}

table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.72);
}

th,
td {
  padding: 14px 15px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

th:first-child,
td:first-child {
  text-align: left;
}

th {
  color: #475569;
  background: #f1f6fd;
  font-size: 13px;
}

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

.win {
  color: #047857;
  font-weight: 900;
}

.capability-matrix {
  display: grid;
  gap: 16px;
}

.capability-group {
  overflow: hidden;
}

.capability-group h3 {
  margin: 0;
  padding: 16px 18px;
  color: #0f3d8a;
  background: #eef4ff;
  font-size: 18px;
}

.capability-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) 120px 120px minmax(220px, 1.5fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}

.capability-row > div {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.82);
}

.capability-name {
  font-weight: 900;
}

.capability-note {
  color: var(--muted);
  font-size: 13px;
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 900;
}

.status.yes {
  color: #047857;
  background: #d1fae5;
}

.status.partial {
  color: #c2410c;
  background: #ffedd5;
}

.status.no {
  color: #b91c1c;
  background: #fee2e2;
}

.workflow-section {
  margin-top: 22px;
  padding: 28px;
}

.workflow-map {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.workflow-map article {
  position: relative;
  padding: 20px;
}

.workflow-map article::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -22px;
  width: 28px;
  height: 2px;
  background: #9bbcf0;
}

.workflow-map article:last-child::after {
  display: none;
}

.workflow-map strong,
.workflow-map span {
  display: block;
}

.workflow-map strong {
  margin-top: 10px;
  font-size: 20px;
}

.workflow-map span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
}

.conclusion-card {
  background: linear-gradient(135deg, rgba(15, 61, 138, 0.96), rgba(23, 105, 224, 0.92));
  color: #fff;
}

.conclusion-card .eyebrow,
.conclusion-card p {
  color: #bfdbfe;
}

.conclusion-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  align-items: start;
}

.conclusion-layout h2 {
  margin: 0;
  font-size: clamp(18px, 3vw, 30px);
  line-height: 1.16;
}

.conclusion-layout ul {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.conclusion-layout li {
  position: relative;
  padding-left: 28px;
}

.conclusion-layout li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #86efac;
  font-weight: 900;
}

.conclusion-layout aside {
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 18px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.12);
}

.conclusion-layout aside span {
  color: #bfdbfe;
  font-size: 13px;
  font-weight: 900;
}

.conclusion-layout aside strong {
  display: block;
  margin-top: 12px;
  font-size: 24px;
  line-height: 1.25;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
  padding: 0 16px 34px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 1020px) {
  .hero,
  .conclusion-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding: 36px;
  }

  .hero-visual {
    max-width: 620px;
  }

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

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

  .live-provider-panel {
    grid-column: span 6;
  }

  .workflow-map article::after {
    display: none;
  }
}

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

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  main {
    width: min(100% - 20px, 1180px);
    padding-top: 18px;
  }

  .hero,
  .section-card,
  .workflow-section {
    padding: 22px;
  }

  .hero-visual,
  .logo-strip,
  .live-demo-hero,
  .live-control-dock,
  .live-provider-grid,
  .latency-bento,
  .video-grid,
  .demo-script,
  .kpi-grid,
  .workflow-map {
    grid-template-columns: 1fr;
  }

  .live-demo-orbit {
    justify-self: start;
  }

  .live-provider-panel {
    grid-column: 1 / -1;
    min-height: 0;
  }

  .live-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .video-section .section-title {
    align-items: flex-start;
  }

  .video-toolbar {
    width: 100%;
    border-radius: 18px;
  }

  .interpretation-card,
  .advantage-card {
    grid-column: 1 / -1;
    min-height: 0;
  }

  .speech-row {
    grid-template-columns: 1fr;
  }

  .demo-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .speech-row {
    gap: 9px;
  }

  .speech-row output {
    justify-self: start;
  }

  .logo-strip {
    text-align: center;
  }

  .versus {
    margin: 0 auto;
  }

  .section-title,
  .panel-head,
  .chart-head {
    display: block;
  }

  .section-title > p {
    max-width: none;
  }

  .capability-row {
    grid-template-columns: 1fr;
  }

  .bar-row {
    grid-template-columns: 82px minmax(0, 1fr) 62px;
  }
}

@media (max-width: 460px) {
  .hero-actions,
  .video-toolbar,
  .live-actions {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .primary-action,
  .secondary-action,
  .video-toolbar button,
  .audio-action,
  .live-primary-button,
  .live-secondary-button {
    width: 100%;
  }

  .latency-panel strong,
  .workflow-panel strong {
    font-size: 24px;
  }
}

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