:root {
  --ink: #090b0e;
  --ink-soft: #10141a;
  --panel: #151920;
  --panel-strong: #1b2028;
  --line: #2a303a;
  --text: #f4f6f8;
  --muted: #aab2bf;
  --dim: #747e8d;
  --coral: #ff7951;
  --amber: #ffb24d;
  --teal: #55d7c2;
  --teal-dark: #0f3f3a;
  --shell: 1180px;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  transform: translateY(-150%);
  padding: 9px 13px;
  border-radius: 4px;
  background: var(--text);
  color: var(--ink);
  font-weight: 700;
}

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

.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 11, 14, 0.9);
  backdrop-filter: blur(14px);
}

.nav-row {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 780;
}

.brand-mark {
  width: 30px;
  height: 30px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav-links a,
.text-link,
.footer-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.text-link:hover,
.text-link:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 760;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

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

.button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.button-small {
  min-height: 38px;
  padding: 0 13px;
  font-size: 13px;
}

.button-primary {
  border-color: var(--coral);
  background: var(--coral);
  color: #170b07;
}

.button-primary:hover {
  border-color: var(--amber);
  background: var(--amber);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(9, 11, 14, 0.62);
  color: var(--text);
  backdrop-filter: blur(8px);
}

.button-secondary:hover,
.button-outline:hover {
  border-color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.button-outline {
  border-color: var(--line);
  background: var(--panel);
  color: var(--text);
}

.hero {
  position: relative;
  display: flex;
  min-height: 690px;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  z-index: -3;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% center;
}

.hero-shade {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 11, 14, 0.99) 0%, rgba(9, 11, 14, 0.91) 38%, rgba(9, 11, 14, 0.42) 70%, rgba(9, 11, 14, 0.22) 100%),
    linear-gradient(0deg, rgba(9, 11, 14, 0.68), transparent 50%);
}

.hero-content {
  padding-top: 82px;
  padding-bottom: 82px;
}

.live-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  color: #d8fff8;
  font-size: 13px;
  font-weight: 720;
}

.live-label span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(85, 215, 194, 0.14);
}

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

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

h1 {
  max-width: 760px;
  margin-bottom: 26px;
  font-size: 66px;
  font-weight: 820;
  line-height: 1.02;
}

h1 span {
  display: block;
}

h1 .accent {
  color: var(--coral);
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 32px;
  color: #d1d6dd;
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.endpoint-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: var(--dim);
  font-size: 12px;
}

.endpoint-line code,
.capability code,
.socket-list code,
.steps code,
.api-list code {
  font-family: var(--mono);
}

.endpoint-line code {
  overflow-wrap: anywhere;
  color: #d8fff8;
}

.signal-strip {
  border-bottom: 1px solid var(--line);
  background: var(--ink-soft);
}

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

.signal-grid > div {
  min-height: 116px;
  padding: 26px 28px;
  border-left: 1px solid var(--line);
}

.signal-grid > div:last-child {
  border-right: 1px solid var(--line);
}

.signal-grid strong,
.signal-grid span {
  display: block;
}

.signal-grid strong {
  margin-bottom: 5px;
  font-size: 17px;
}

.signal-grid span {
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 94px 0;
  border-bottom: 1px solid var(--line);
}

.section-contrast {
  background: #eff2f3;
  color: #11151a;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 48px;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading h2,
.closing-content h2 {
  margin-bottom: 17px;
  font-size: 44px;
  font-weight: 800;
  line-height: 1.12;
}

.section-heading > p:last-child,
.developer-copy > p,
.closing-content > p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.section-contrast .section-heading > p:last-child {
  color: #59616c;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.capability {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

.capability::after {
  position: absolute;
  right: -45px;
  bottom: -55px;
  width: 180px;
  height: 180px;
  border: 34px solid rgba(255, 255, 255, 0.035);
  border-radius: 50%;
  content: "";
}

.capability-tts {
  border-top: 3px solid var(--coral);
}

.capability-stt {
  border-top: 3px solid var(--teal);
}

.capability-avatar {
  border-top: 3px solid var(--amber);
}

.capability-number {
  margin-bottom: 62px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 13px;
}

.capability-label {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  text-transform: uppercase;
}

.capability h3 {
  margin-bottom: 14px;
  font-size: 25px;
  line-height: 1.2;
}

.capability > p:not(.capability-label) {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 15px;
}

.capability > code {
  position: absolute;
  z-index: 1;
  bottom: 26px;
  left: 28px;
  color: var(--amber);
  font-size: 12px;
}

.realtime-band {
  display: grid;
  grid-template-columns: 0.85fr 1.2fr 1fr;
  gap: 34px;
  align-items: center;
  margin-top: 16px;
  padding: 30px;
  border: 1px solid #26554d;
  border-radius: 6px;
  background: var(--teal-dark);
}

.realtime-band h3 {
  margin: 0;
  font-size: 24px;
}

.realtime-band > p {
  margin: 0;
  color: #bcd8d3;
  font-size: 15px;
}

.socket-list {
  display: grid;
  gap: 9px;
}

.socket-list code {
  overflow: hidden;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 4px;
  color: #d8fff8;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.use-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid #cbd1d5;
  border-left: 1px solid #cbd1d5;
}

.use-grid article {
  min-height: 245px;
  padding: 32px;
  border-right: 1px solid #cbd1d5;
  border-bottom: 1px solid #cbd1d5;
}

.use-grid span {
  color: #a33c1d;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.use-grid h3 {
  max-width: 440px;
  margin: 38px 0 12px;
  font-size: 26px;
}

.use-grid p {
  max-width: 500px;
  margin-bottom: 0;
  color: #59616c;
}

.developer-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 72px;
  align-items: center;
}

.developer-copy h2 {
  margin-bottom: 18px;
  font-size: 42px;
  line-height: 1.15;
}

.steps {
  display: grid;
  gap: 2px;
  margin: 34px 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.steps li > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 12px;
}

.steps strong {
  font-size: 15px;
}

.steps p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.steps code {
  color: var(--amber);
  font-size: 12px;
}

.code-window {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0d1014;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}

.code-title {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.code-title > span {
  display: flex;
  gap: 6px;
}

.code-title i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #474f5a;
}

.code-title i:first-child {
  background: var(--coral);
}

.code-title i:nth-child(2) {
  background: var(--amber);
}

.code-title i:last-child {
  background: var(--teal);
}

.code-title code {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 12px;
}

.code-window pre {
  min-height: 330px;
  margin: 0;
  overflow-x: auto;
  padding: 28px;
  color: #d4dae2;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.75;
}

.code-keyword {
  color: #ff987a;
}

.code-string {
  color: #84dfcd;
}

.api-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}

.api-list div {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 15px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.api-list div:nth-child(even) {
  border-right: 0;
}

.api-list div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.api-list code {
  overflow: hidden;
  color: #c9d0da;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.api-list span {
  color: var(--dim);
  font-size: 11px;
}

.status-section {
  background: var(--ink-soft);
}

.status-table {
  border-top: 1px solid var(--line);
}

.status-row {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 34px;
  align-items: center;
  min-height: 94px;
  border-bottom: 1px solid var(--line);
}

.status-row > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-row strong {
  font-size: 16px;
}

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

.status-live,
.status-next {
  flex: 0 0 auto;
  padding: 3px 8px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.status-live {
  border-color: rgba(85, 215, 194, 0.36);
  background: rgba(85, 215, 194, 0.08);
  color: var(--teal);
}

.status-next {
  border-color: rgba(255, 178, 77, 0.34);
  background: rgba(255, 178, 77, 0.08);
  color: var(--amber);
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 72px;
}

.faq-layout .section-heading {
  margin-bottom: 0;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 23px 38px 23px 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 720;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 20px;
  right: 4px;
  color: var(--coral);
  content: "+";
  font-family: var(--mono);
  font-size: 22px;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list details p {
  max-width: 650px;
  margin-bottom: 24px;
  color: var(--muted);
}

.closing-section {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.closing-section > img {
  position: absolute;
  z-index: -3;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% center;
}

.closing-shade {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 11, 14, 0.99), rgba(9, 11, 14, 0.88) 48%, rgba(9, 11, 14, 0.3));
}

.closing-content {
  padding-top: 110px;
  padding-bottom: 110px;
}

.closing-content h2 {
  max-width: 670px;
}

.closing-content > p {
  max-width: 600px;
  margin-bottom: 28px;
}

.site-footer {
  padding: 42px 0;
  background: #07090b;
}

.footer-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 50px;
  align-items: center;
}

.footer-row > div:first-child p,
.copyright {
  margin: 8px 0 0;
  color: var(--dim);
  font-size: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.copyright {
  margin: 0;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .nav-actions {
    margin-left: auto;
  }

  h1 {
    font-size: 56px;
  }

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

  .capability {
    min-height: 310px;
  }

  .capability-number {
    margin-bottom: 36px;
  }

  .realtime-band {
    grid-template-columns: 1fr;
  }

  .developer-layout,
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 46px;
  }

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

  .copyright {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(calc(100% - 32px), var(--shell));
  }

  .nav-row {
    min-height: 58px;
    gap: 14px;
  }

  .brand {
    font-size: 16px;
  }

  .brand-mark {
    width: 27px;
    height: 27px;
  }

  .nav-actions .text-link {
    display: none;
  }

  .hero {
    min-height: 76svh;
  }

  .hero-media {
    object-position: 66% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(9, 11, 14, 0.98), rgba(9, 11, 14, 0.72)),
      linear-gradient(0deg, rgba(9, 11, 14, 0.8), transparent 50%);
  }

  .hero-content {
    padding-top: 64px;
    padding-bottom: 62px;
  }

  h1 {
    font-size: 40px;
    line-height: 1.06;
  }

  .hero-copy {
    font-size: 17px;
  }

  .hero-actions .button {
    flex: 1 1 145px;
  }

  .endpoint-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

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

  .signal-grid > div {
    min-height: 92px;
    padding: 20px 16px;
    border-bottom: 1px solid var(--line);
  }

  .signal-grid > div:nth-child(3),
  .signal-grid > div:nth-child(4) {
    border-bottom: 0;
  }

  .section {
    padding: 66px 0;
  }

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

  .section-heading h2,
  .developer-copy h2,
  .closing-content h2 {
    font-size: 33px;
  }

  .section-heading > p:last-child,
  .developer-copy > p,
  .closing-content > p {
    font-size: 16px;
  }

  .capability {
    min-height: 330px;
    padding: 24px;
  }

  .capability > code {
    left: 24px;
  }

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

  .use-grid article {
    min-height: 220px;
    padding: 26px;
  }

  .use-grid h3 {
    margin-top: 28px;
    font-size: 23px;
  }

  .code-window pre {
    min-height: 285px;
    padding: 21px;
    font-size: 12px;
  }

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

  .api-list div,
  .api-list div:nth-child(even),
  .api-list div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .api-list div:last-child {
    border-bottom: 0;
  }

  .status-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 0;
  }

  .status-row > div {
    justify-content: space-between;
  }

  .closing-section {
    min-height: 520px;
  }

  .closing-section > img {
    object-position: 66% center;
  }

  .closing-shade {
    background: rgba(9, 11, 14, 0.78);
  }

  .closing-content {
    padding-top: 84px;
    padding-bottom: 84px;
  }

  .footer-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .copyright {
    grid-column: auto;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 36px;
  }

  .button {
    padding-right: 14px;
    padding-left: 14px;
  }

  .signal-grid strong {
    font-size: 15px;
  }

  .socket-list code {
    font-size: 10px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
