:root {
  color-scheme: dark;
  --bg: #0a0a12;
  --bg-raised: #10111c;
  --panel: #141525;
  --panel-strong: #1b1d31;
  --ink: #e9eaf2;
  --muted: #9298b0;
  --faint: #7a8099;
  --line: #262940;
  --line-strong: #363a58;
  --brand: #8b90ff;
  --brand-soft: #c3c9f2;
  --brand-ink: #0d0e1c;
  --success: #8b90ff;
  --danger: #ff7f8d;
  --focus: #c3c9f2;
  --display: "Avenir Next", Avenir, "Helvetica Neue", "Segoe UI", sans-serif;
  --body: "Avenir Next", Avenir, "Helvetica Neue", "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", monospace;
  --radius: 18px;
  --page: min(1180px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(circle at 18% 3%, rgba(139, 144, 255, 0.07), transparent 24rem), linear-gradient(rgba(139, 144, 255, 0.028) 1px, transparent 1px), linear-gradient(90deg, rgba(139, 144, 255, 0.028) 1px, transparent 1px);
  background-size: auto, 52px 52px, 52px 52px;
  content: "";
  pointer-events: none;
}

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

button,
input {
  font: inherit;
}

button,
summary {
  cursor: pointer;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  transform: translateY(-150%);
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
}

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

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

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  width: 100%;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid color-mix(in srgb, var(--line), transparent 18%);
  background: color-mix(in srgb, var(--bg), transparent 8%);
  backdrop-filter: blur(18px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.wordmark > span:last-child > span {
  color: var(--brand-soft);
}

.wordmark small {
  margin-left: 8px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.wordmark-mark {
  display: grid;
  width: 24px;
  height: 24px;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  padding: 4px;
  border-radius: 7px;
  background: var(--brand);
}

.wordmark-mark span {
  border-radius: 2px;
  background: var(--brand-ink);
}

.site-navigation {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.site-navigation a {
  transition: color 160ms ease;
}

.site-navigation a:hover {
  color: var(--ink);
}

.site-account-nav,
.site-theme-nav {
  position: relative;
}

.site-account-nav summary,
.site-theme-nav summary {
  list-style: none;
  transition: color 160ms ease;
}

.site-account-nav summary::-webkit-details-marker,
.site-theme-nav summary::-webkit-details-marker {
  display: none;
}

.site-account-nav summary::after,
.site-theme-nav summary::after {
  margin-left: 6px;
  content: "⌄";
  font-size: 11px;
}

.site-account-nav summary:hover,
.site-account-nav[open] summary,
.site-theme-nav summary:hover,
.site-theme-nav[open] summary {
  color: var(--ink);
}

.site-account-menu,
.site-theme-menu {
  position: absolute;
  z-index: 60;
  top: calc(100% + 16px);
  right: 0;
  display: grid;
  width: 180px;
  gap: 2px;
  padding: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.site-account-menu a,
.site-theme-menu button {
  padding: 9px 10px;
  border-radius: 8px;
}

.site-account-menu a:hover,
.site-theme-menu button:hover,
.site-theme-menu button.is-active {
  background: var(--panel-strong);
}

.site-theme-menu {
  width: 132px;
}

.site-theme-menu button {
  border: 0;
  background: transparent;
  color: var(--muted);
  text-align: left;
}

.site-theme-menu button.is-active {
  color: var(--ink);
}

.site-navigation .nav-cta {
  min-width: 124px;
  padding: 10px 16px;
  border: 1px solid var(--brand);
  border-radius: 10px;
  color: var(--brand-ink);
  text-align: center;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.hero {
  display: grid;
  width: var(--page);
  min-height: 680px;
  grid-template-columns: minmax(0, 0.84fr) minmax(460px, 1.16fr);
  gap: clamp(42px, 7vw, 104px);
  align-items: center;
  margin: 0 auto;
  padding: 92px 0 84px;
}

.hero-copy {
  align-self: start;
  padding-top: 65px;
}

.eyebrow,
.panel-kicker,
.section-index,
.signal-label {
  margin: 0;
  color: var(--brand-soft);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
}

.eyebrow > span {
  width: 26px;
  height: 1px;
  background: var(--brand);
}

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

h1 {
  max-width: 620px;
  margin-top: 26px;
  font-size: clamp(56px, 6.6vw, 96px);
  text-wrap: balance;
}

.hero-lede {
  max-width: 500px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.hero-proof {
  margin: 25px 0 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero-proof span {
  margin-right: 8px;
  color: var(--success);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-top: 30px;
}

.hero-actions a {
  font-size: 13px;
  font-weight: 750;
}

.hero-link-primary {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 18px;
  padding: 0 15px;
  border-radius: 8px;
  background: var(--brand);
  color: var(--brand-ink);
  transition: transform 180ms ease, background 180ms ease;
}

.hero-link-primary:hover {
  transform: translateY(-2px);
  background: var(--brand-soft);
}

.hero-link-primary:active {
  transform: translateY(0);
}

.hero-link-secondary {
  color: var(--muted);
  transition: color 180ms ease;
}

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

.generator-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
}

.generator-shell::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 72px;
  height: 3px;
  background: var(--brand);
  content: "";
}

.panel-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 27px 30px 25px;
  border-bottom: 1px solid var(--line);
}

.panel-topline h2 {
  margin-top: 7px;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.secure-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.secure-chip span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--success), transparent 82%);
}

#player-form {
  padding: 30px;
}

.field {
  min-width: 0;
}

.field label,
.field-label,
.result-field label {
  display: block;
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.field label span {
  color: var(--brand-soft);
}

.field input,
.result-field input {
  width: 100%;
  min-height: 47px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg), var(--panel) 20%);
  color: var(--ink);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.field input {
  padding: 0 14px;
}

.field input::placeholder {
  color: color-mix(in srgb, var(--faint), transparent 18%);
}

.field input:hover,
.field input:focus {
  border-color: var(--brand);
  background: var(--bg);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand), transparent 85%);
  outline: 0;
}

.field input[aria-invalid="true"] {
  border-color: var(--danger);
}

.field-hint {
  margin: 7px 0 0;
  color: var(--faint);
  font-size: 12px;
}

.advanced-options {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.advanced-options summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  list-style: none;
}

.advanced-options summary::-webkit-details-marker {
  display: none;
}

.advanced-options summary::before {
  display: inline-block;
  width: 18px;
  margin-right: 8px;
  color: var(--brand-soft);
  content: "+";
  font-family: var(--mono);
}

.advanced-options[open] summary::before {
  content: "−";
}

.advanced-options summary span {
  margin-left: auto;
  background: var(--panel);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.advanced-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 4px 0 18px;
}

.subtitle-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 2px 0 16px;
}

.subtitle-heading .field-label {
  margin-bottom: 2px;
}

.subtitle-heading .field-hint {
  margin: 0;
}

.text-button,
.remove-subtitle {
  border: 0;
  background: transparent;
  color: var(--brand-soft);
  font-size: 12px;
  font-weight: 700;
}

.subtitle-list {
  display: grid;
  gap: 12px;
  padding-bottom: 18px;
}

.subtitle-item {
  display: grid;
  grid-template-columns: 0.68fr 1.3fr 1fr auto;
  gap: 10px;
  align-items: end;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-raised);
}

.subtitle-item label {
  font-size: 11px;
}

.subtitle-item input {
  min-height: 40px;
  font-size: 12px;
}

.remove-subtitle {
  min-height: 40px;
  padding: 0 4px;
  color: var(--danger);
}

.form-message {
  min-height: 22px;
  padding-top: 10px;
  color: var(--danger);
  font-size: 12px;
}

.form-message.success {
  color: var(--success);
}

.g-recaptcha {
  min-height: 78px;
  margin-top: 18px;
}

.static-generator-notice {
  margin: 0 0 22px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--bg-raised);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.is-static-pages-site #player-form > [data-slot="field-group"] > .field-main,
.is-static-pages-site #player-form > [data-slot="field-group"] > .advanced-options,
.is-static-pages-site #player-form > [data-slot="field-group"] > .form-message {
  display: none;
}

.generate-button {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border: 1px solid var(--brand);
  border-radius: 11px;
  background: var(--brand);
  color: #100d22;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.generate-button:hover {
  transform: translateY(-2px);
  background: var(--brand-soft);
}

.generate-button:active {
  transform: translateY(0);
}

.generate-button[disabled] {
  cursor: wait;
  opacity: 0.7;
}

.runtime-comments {
  width: var(--page);
  margin: -38px auto 72px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
}

.runtime-comments header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.runtime-comments h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 38px);
  letter-spacing: -0.04em;
}

.runtime-comments #disqus_thread {
  padding-top: 26px;
}

.runtime-comments noscript {
  display: block;
  padding-top: 22px;
  color: var(--muted);
}

.runtime-comments noscript a {
  color: var(--ink);
}

.proof-strip {
  display: grid;
  width: var(--page);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-strip > div {
  min-width: 0;
  padding: 28px 26px 31px;
  border-right: 1px solid var(--line);
}

.proof-strip > div:last-child {
  border-right: 0;
}

.proof-strip strong,
.proof-strip span {
  display: block;
}

.proof-strip strong {
  color: var(--brand-soft);
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.proof-strip span {
  margin-top: 8px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  line-height: 1.45;
  text-transform: uppercase;
}

.button-arrow {
  font-size: 20px;
}

.output-section,
.product-demo-section,
.workflow-section,
.hosts-section {
  width: var(--page);
  margin: 0 auto;
  padding: 112px 0;
  border-top: 1px solid var(--line);
}

.product-demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
  gap: 20px;
  align-items: start;
}

.product-shot {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.18);
}

.product-shot-bar {
  display: grid;
  min-height: 46px;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 0 15px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-strong);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.product-shot-bar > span {
  display: flex;
  gap: 5px;
}

.product-shot-bar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-strong);
}

.product-shot-bar i:last-child {
  background: var(--brand);
}

.product-shot-bar strong {
  color: var(--muted);
  font-weight: 600;
}

.product-shot-bar em {
  justify-self: end;
  font-style: normal;
}

.product-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  background: var(--bg-raised);
}

.product-shot:not(.product-shot-wide) img {
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: #111713;
}

.product-shot figcaption {
  display: grid;
  gap: 5px;
  padding: 19px 20px 21px;
}

.product-shot figcaption strong {
  font-size: 14px;
}

.product-shot figcaption span {
  color: var(--faint);
  font-size: 12px;
  line-height: 1.55;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 72px;
  align-items: end;
  margin-bottom: 38px;
}

.section-heading h2,
.hosts-copy h2 {
  max-width: 780px;
  margin-top: 14px;
  font-size: clamp(39px, 5vw, 68px);
}

.section-heading > p,
.hosts-copy > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.output-frame {
  min-height: 310px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
}

.output-empty {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
}

.empty-signal {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  margin-bottom: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.empty-signal span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--faint);
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--faint), transparent 88%);
}

.output-empty p {
  margin: 0;
  font-weight: 700;
}

.output-empty > span {
  margin-top: 6px;
  color: var(--faint);
  font-size: 13px;
}

.output-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
}

.result-fields {
  display: grid;
  gap: 18px;
  padding: 30px;
}

.result-field-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.copy-control {
  display: flex;
}

.result-field input {
  min-width: 0;
  padding: 0 12px;
  overflow: hidden;
  border-radius: 10px 0 0 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  text-overflow: ellipsis;
}

.copy-control button {
  min-width: 62px;
  border: 1px solid var(--line-strong);
  border-left: 0;
  border-radius: 0 10px 10px 0;
  background: var(--panel-strong);
  color: var(--brand-soft);
  font-size: 11px;
  font-weight: 700;
}

.preview-wrap {
  min-width: 0;
  padding: 18px;
  border-left: 1px solid var(--line);
  background: var(--bg-raised);
}

.preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px 12px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.preview-bar span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.preview-bar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

.preview-bar a {
  color: var(--brand-soft);
}

#player-preview {
  display: block;
  width: 100%;
  min-height: 300px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #050507;
}

.section-heading-narrow {
  grid-template-columns: 1fr;
}

.signal-board {
  display: grid;
  min-height: 430px;
  grid-template-columns: 0.9fr 1.15fr 0.95fr;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
}

.signal-source,
.signal-output {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 30px;
}

.signal-label {
  margin-bottom: 6px;
}

.source-token,
.output-token {
  display: grid;
  min-height: 64px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-raised);
}

.source-token {
  grid-template-columns: 32px 1fr auto;
  gap: 11px;
  padding: 0 13px;
}

.source-token img {
  width: 24px;
  max-height: 24px;
  object-fit: contain;
}

.source-token span {
  font-size: 13px;
  font-weight: 700;
}

.source-token small {
  color: var(--success);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.signal-core {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--panel-strong);
  text-align: center;
}

.signal-core::before,
.signal-core::after {
  position: absolute;
  top: 50%;
  width: 13%;
  height: 1px;
  background: var(--brand);
  content: "";
}

.signal-core::before {
  left: 0;
}

.signal-core::after {
  right: 0;
}

.pulse-ring {
  display: grid;
  width: 132px;
  height: 132px;
  place-items: center;
  border: 1px solid var(--brand);
  border-radius: 50%;
  box-shadow: 0 0 0 18px color-mix(in srgb, var(--brand), transparent 94%), 0 0 0 38px color-mix(in srgb, var(--brand), transparent 97%);
}

.pulse-ring span {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border-radius: 24px;
  background: var(--brand);
  color: var(--brand-ink);
  font-family: var(--display);
  font-size: 24px;
  font-weight: 900;
}

.signal-core p {
  margin: 34px 0 5px;
  font-size: 13px;
  font-weight: 700;
}

.signal-core code {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
}

.output-token {
  grid-template-columns: 42px 1fr;
  padding: 0 14px;
}

.output-token span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
}

.output-token strong {
  font-size: 13px;
}

.output-token-primary {
  border-color: var(--brand);
}

.hosts-section {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(560px, 1.25fr);
  gap: clamp(60px, 9vw, 136px);
  align-items: center;
}

.hosts-copy > p {
  max-width: 440px;
  margin-top: 24px;
}

.hosts-copy > a {
  display: inline-block;
  margin-top: 26px;
  color: var(--brand-soft);
  font-size: 14px;
  font-weight: 750;
}

.host-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.host-wall > div {
  display: flex;
  min-height: 96px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel), transparent 24%);
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  transition: background 160ms ease, color 160ms ease;
}

.host-wall > div:hover {
  background: var(--panel-strong);
  color: var(--ink);
}

.host-wall img {
  width: 30px;
  height: 26px;
  object-fit: contain;
}

img[src$="/m3u.png"],
img[src$="/mpd.png"],
img[src$="/direct.png"] {
  filter: invert(1);
  opacity: 0.86;
}

.host-more span {
  color: var(--brand-soft);
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 400;
}

.host-more strong {
  font-size: 11px;
}

.format-band {
  display: flex;
  width: 100%;
  min-height: 112px;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vw, 58px);
  padding: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.format-band p {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.format-band span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand);
}

.site-footer {
  display: grid;
  width: var(--page);
  grid-template-columns: 1fr auto auto;
  gap: 60px;
  align-items: end;
  margin: 0 auto;
  padding: 64px 0;
}

.site-footer > div > p,
.copyright {
  margin: 12px 0 0;
  color: var(--faint);
  font-size: 12px;
}

.site-footer nav {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
}

.copyright {
  margin: 0;
  font-family: var(--mono);
}

.goto-top {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.03em;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.goto-top:hover {
  background: var(--brand);
  color: var(--brand-ink);
}

.goto-top {
  position: fixed;
  z-index: 45;
  right: 18px;
  bottom: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel), transparent 5%);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
  font-size: 18px;
  backdrop-filter: blur(14px);
}

.reveal {
  opacity: 1;
  transform: none;
}

.reveal[data-reveal-delay="1"] {
  transition-delay: 0ms;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f7fb;
  --bg-raised: #eceef6;
  --panel: #ffffff;
  --panel-strong: #e3e5fa;
  --ink: #14151f;
  --muted: #60657e;
  --faint: #60657e;
  --line: #dcdfeb;
  --line-strong: #c8ccdf;
  --brand: #4d53e8;
  --brand-soft: #3a40c9;
  --brand-ink: #ffffff;
  --success: #3a40c9;
  --danger: #bf3044;
  --focus: #4d53e8;
}

:root[data-theme="light"] body::before {
  opacity: 0.65;
}

:root[data-theme="light"] .generator-shell {
  box-shadow: 0 28px 80px rgba(44, 35, 64, 0.1);
}

:root[data-theme="light"] .generate-button,
:root[data-theme="light"] .hero-link-primary {
  color: #ffffff;
}

:root[data-theme="light"] #player-preview {
  background: #15131b;
}

:root[data-theme="light"] img[src$="/m3u.png"],
:root[data-theme="light"] img[src$="/mpd.png"],
:root[data-theme="light"] img[src$="/direct.png"] {
  filter: none;
  opacity: 0.82;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f6f7fb;
    --bg-raised: #eceef6;
    --panel: #ffffff;
    --panel-strong: #e3e5fa;
    --ink: #14151f;
    --muted: #60657e;
    --faint: #60657e;
    --line: #dcdfeb;
    --line-strong: #c8ccdf;
    --brand: #4d53e8;
    --brand-soft: #3a40c9;
    --brand-ink: #ffffff;
    --success: #3a40c9;
    --danger: #bf3044;
    --focus: #4d53e8;
  }

  :root:not([data-theme="dark"]) body::before {
    opacity: 0.65;
  }

  :root:not([data-theme="dark"]) .generator-shell {
    box-shadow: 0 28px 80px rgba(44, 35, 64, 0.1);
  }

  :root:not([data-theme="dark"]) .generate-button {
    color: #ffffff;
  }

  :root:not([data-theme="dark"]) .hero-link-primary {
    color: #ffffff;
  }

  :root:not([data-theme="dark"]) #player-preview {
    background: #15131b;
  }

  :root:not([data-theme="dark"]) img[src$="/m3u.png"],
  :root:not([data-theme="dark"]) img[src$="/mpd.png"],
  :root:not([data-theme="dark"]) img[src$="/direct.png"] {
    filter: none;
    opacity: 0.82;
  }
}

@media (max-width: 1080px) {
  .site-header {
    padding: 0 24px;
  }

  .menu-toggle {
    display: block;
  }

  .site-navigation {
    position: absolute;
    top: 73px;
    right: 24px;
    left: 24px;
    display: none;
    max-height: calc(100vh - 96px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: var(--panel);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
  }

  .site-navigation.is-open {
    display: flex;
  }

  .site-navigation a {
    padding: 12px;
  }

  .site-navigation .nav-cta {
    min-width: 0;
    margin-top: 4px;
  }

  .site-account-nav summary,
  .site-theme-nav summary {
    padding: 12px;
  }

  .site-account-menu,
  .site-theme-menu {
    position: static;
    width: auto;
    margin: 0 8px 8px;
    border-color: var(--line);
    box-shadow: none;
  }
}

@media (min-width: 981px) and (max-width: 1312px) {
  :root {
    --page: calc(100vw - 132px);
  }
}

@media (max-width: 980px) {
  :root {
    --page: min(100% - 36px, 760px);
  }

  .site-navigation {
    gap: 14px;
    font-size: 13px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 52px;
    padding: 72px 0 88px;
  }

  .hero-copy {
    padding-top: 0;
  }

  h1 {
    max-width: 720px;
  }

  .output-result,
  .product-demo-grid,
  .hosts-section {
    grid-template-columns: 1fr;
  }

  .preview-wrap {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .hosts-section {
    gap: 56px;
  }

  .format-band {
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  :root {
    --page: calc(100% - 28px);
  }

  .site-header {
    min-height: 66px;
    padding: 0 14px;
  }

  .site-navigation {
    top: 65px;
    right: 14px;
    left: 14px;
  }

  .hero {
    gap: 42px;
    padding: 58px 0 72px;
  }

  h1 {
    font-size: clamp(50px, 17vw, 76px);
  }

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

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .proof-strip {
    grid-template-columns: 1fr 1fr;
  }

  .proof-strip > div:nth-child(2) {
    border-right: 0;
  }

  .proof-strip > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .panel-topline,
  #player-form,
  .result-fields {
    padding-right: 20px;
    padding-left: 20px;
  }

  .secure-chip {
    display: none;
  }

  .advanced-grid,
  .result-field-split {
    grid-template-columns: 1fr;
  }

  .subtitle-item {
    grid-template-columns: 1fr;
  }

  .remove-subtitle {
    min-height: 28px;
    justify-self: start;
  }

  .output-section,
  .workflow-section,
  .hosts-section {
    padding: 82px 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section-heading h2,
  .hosts-copy h2 {
    font-size: clamp(38px, 12vw, 56px);
  }

  .signal-board {
    grid-template-columns: 1fr;
  }

  .signal-core {
    min-height: 340px;
    border: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .signal-core::before,
  .signal-core::after {
    display: none;
  }

  .hosts-section {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .format-band {
    flex-direction: column;
    gap: 14px;
    padding: 30px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .site-footer nav {
    flex-wrap: wrap;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Documentation page (docs.html) */
.docs-main {
  width: var(--page);
  margin: 0 auto;
  padding-bottom: 96px;
}

.docs-hero {
  max-width: 860px;
  padding: 84px 0 30px;
}

.docs-hero h1 {
  margin: 16px 0 18px;
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.docs-lede {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.docs-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.docs-toc a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.docs-toc a:hover {
  border-color: var(--brand);
  background: var(--panel-strong);
}

.docs-toc a span {
  color: var(--brand);
  font-family: var(--mono);
  font-size: 11px;
}

.docs-section {
  padding-top: 72px;
}

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

.docs-section-heading h2 {
  margin: 12px 0 14px;
  font-family: var(--display);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.docs-section-heading > p:not(.section-index) {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.docs-section-heading code,
.docs-card code {
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-raised);
  color: var(--brand-soft);
  font-family: var(--mono);
  font-size: 0.86em;
}

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

.docs-card {
  padding: 22px 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color 0.15s ease;
}

.docs-card:hover {
  border-color: var(--line-strong);
}

.docs-card h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.docs-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.docs-card p + p {
  margin-top: 8px;
}

.docs-card strong {
  color: var(--ink);
  font-weight: 600;
}

.docs-card a {
  color: var(--brand-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.docs-path {
  margin-bottom: 10px !important;
}

.docs-back {
  margin: 48px 0 0;
}

.docs-back a {
  color: var(--muted);
  font-size: 14px;
  transition: color 0.15s ease;
}

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

.docs-pre {
  margin: 22px 0;
  padding: 20px 22px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
}

.docs-pre code {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
}

.docs-table-wrap {
  margin: 22px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.docs-table th,
.docs-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.docs-table th {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-table td {
  color: var(--muted);
  line-height: 1.6;
}

.docs-table td:first-child {
  white-space: nowrap;
}

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

.docs-subtitle {
  margin: 34px 0 6px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.docs-prose {
  max-width: 780px;
  margin: 10px 0;
  color: var(--muted);
  line-height: 1.7;
}

.docs-prose code {
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-raised);
  color: var(--brand-soft);
  font-family: var(--mono);
  font-size: 0.86em;
}

.docs-prose a {
  color: var(--brand-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.docs-slot-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px 20px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.docs-slot-list li {
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.docs-slot-list code {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--brand-soft);
  font-family: var(--mono);
  font-size: 12.5px;
}

.docs-steps {
  max-width: 640px;
  margin: 18px 0 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.9;
}

.docs-steps code {
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-raised);
  color: var(--brand-soft);
  font-family: var(--mono);
  font-size: 0.86em;
}

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

@media (max-width: 1080px) {
  .docs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .docs-hero {
    padding-top: 56px;
  }

  .docs-section {
    padding-top: 56px;
  }

  .docs-grid,
  .docs-grid-2 {
    grid-template-columns: 1fr;
  }
}
