/* Stream VOD Manager — static marketing site (no build step, no external requests) */

:root {
  color-scheme: dark;
  --bg: #0a0c11;
  --bg-soft: #0e1117;
  --panel: #12151d;
  --panel-2: #171b25;
  --line: #242b3a;
  --line-soft: #1b202c;
  --text: #e8eaf0;
  --muted: #8f97ab;
  --accent: #a970ff;
  --accent-2: #7c3aed;
  --accent-soft: rgba(169, 112, 255, 0.12);
  --ok: #4ade80;
  --warn: #fbbf24;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font: 'Segoe UI', system-ui, -apple-system, 'Inter', sans-serif;
  --mono: 'Cascadia Mono', Consolas, ui-monospace, monospace;
  --max: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(1100px 560px at 15% -10%, rgba(124, 58, 237, 0.18), transparent 70%),
    radial-gradient(900px 500px at 95% 0%, rgba(169, 112, 255, 0.1), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: #c7b3f5;
  text-decoration: none;
}

a:hover {
  color: #e3d6ff;
  text-decoration: underline;
}

h1,
h2,
h3 {
  margin: 0 0 12px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 650;
}

h1 {
  font-size: clamp(30px, 4.4vw, 46px);
}

h2 {
  font-size: clamp(22px, 2.6vw, 30px);
}

h3 {
  font-size: 17px;
}

p {
  margin: 0 0 14px;
  color: #c6ccda;
}

ul,
ol {
  margin: 0 0 16px;
  padding-left: 22px;
  color: #c6ccda;
}

li {
  margin: 6px 0;
}

li::marker {
  color: var(--accent);
}

strong {
  color: var(--text);
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: #0d1017;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 1px 6px;
  color: #d8cffa;
}

hr {
  border: 0;
  border-top: 1px solid var(--line-soft);
  margin: 32px 0;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(10, 12, 17, 0.82);
  border-bottom: 1px solid var(--line-soft);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.brand:hover {
  text-decoration: none;
  color: var(--text);
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.brand span {
  color: var(--muted);
  font-weight: 500;
}

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

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

.nav a:not(.btn) {
  color: var(--muted);
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
}

.nav a:not(.btn):hover {
  color: var(--text);
  background: var(--panel-2);
  text-decoration: none;
}

.nav a:not(.btn)[aria-current='page'] {
  color: var(--text);
  background: var(--panel-2);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.14s ease, border-color 0.14s ease;
}

.btn:hover {
  text-decoration: none;
  background: #1e2431;
  border-color: #313a4d;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(140deg, #b98bff, #8b4bf0);
  border-color: transparent;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13.5px;
  border-radius: 8px;
}

.btn-ghost {
  background: transparent;
}

.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* ---------- layout blocks ---------- */

.section {
  padding: 72px 0;
}

.section.tight {
  padding: 44px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 32px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}

.lead {
  font-size: 18px;
  color: #cfd5e3;
}

.hero {
  padding: 64px 0 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 40px;
  align-items: center;
}

.hero h1 span {
  background: linear-gradient(120deg, #c9a6ff, var(--accent), #8b4bf0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  margin: 18px 0 26px;
  max-width: 46ch;
}

.hero-note {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--muted);
}

.shot {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.shot img {
  width: 100%;
  height: auto;
}

.shot figcaption {
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
  background: var(--panel-2);
}

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

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

.card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 22px;
}

.card h3 {
  margin-bottom: 8px;
}

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

.card .icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  border: 1px solid rgba(169, 112, 255, 0.28);
  color: #d9c6ff;
  font-size: 17px;
  margin-bottom: 14px;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.steps li {
  counter-increment: step;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 20px 20px 18px;
  margin: 0;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 10px;
  letter-spacing: 0.08em;
}

.steps li strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

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

.platforms {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.platforms li {
  margin: 0;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 13.5px;
  color: #d4d9e6;
}

.platforms li strong {
  font-weight: 600;
}

.callout {
  border: 1px dashed rgba(169, 112, 255, 0.45);
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.callout h3 {
  margin-bottom: 6px;
}

.callout p {
  margin: 0;
  color: #d6cbf0;
  font-size: 14.5px;
  max-width: 60ch;
}

.note {
  border-left: 3px solid var(--accent);
  background: var(--panel);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 18px;
  color: #c9d0df;
  font-size: 14.5px;
}

.note.warn {
  border-left-color: var(--warn);
}

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

.small {
  font-size: 13px;
}

.mono {
  font-family: var(--mono);
  font-size: 12.5px;
  word-break: break-all;
}

/* ---------- tables ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

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

th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--panel-2);
  font-weight: 700;
}

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

/* ---------- subpages ---------- */

.page-head {
  padding: 56px 0 8px;
}

.page-head h1 {
  margin-bottom: 10px;
}

.prose {
  max-width: 78ch;
}

.prose h2 {
  margin-top: 36px;
}

.prose h3 {
  margin-top: 26px;
}

.prose p,
.prose li {
  color: #c6ccda;
}

.meta-line {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 26px;
}

.toc {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.toc li {
  margin: 0;
}

.toc a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.toc a:hover {
  color: var(--text);
  text-decoration: none;
  border-color: #333c50;
}

.download-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.download-card .file {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  word-break: break-all;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line-soft);
  margin-top: 40px;
  padding: 44px 0 36px;
  background: rgba(8, 10, 14, 0.6);
}

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

.footer-brand p {
  color: var(--muted);
  font-size: 14px;
  max-width: 42ch;
}

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin: 8px 0;
}

.footer-col a {
  color: #c6ccda;
  font-size: 14px;
}

.footer-legal {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12.5px;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero-grid,
  .grid-2,
  .download-card {
    grid-template-columns: minmax(0, 1fr);
  }

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

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

  .section {
    padding: 52px 0;
  }

  .hero {
    padding-top: 44px;
  }

  .nav a:not(.btn) {
    padding: 7px 10px;
    font-size: 13px;
  }
}

@media (max-width: 600px) {
  .grid-4,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-header .container {
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .nav {
    width: 100%;
    margin-left: 0;
  }
}

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

  .btn {
    transition: none;
  }
}

/* ---------- FAQ accordions ---------- */

details.faq {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--panel);
  padding: 0 18px;
  margin: 10px 0;
}

details.faq summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}

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

details.faq summary::before {
  content: '+';
  font-family: var(--mono);
  color: var(--accent);
  margin-right: 10px;
}

details.faq[open] summary::before {
  content: '−';
}

details.faq p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14.5px;
}

/* keep anchored sections clear of the sticky header */
section[id],
h2[id] {
  scroll-margin-top: 88px;
}

/* Prose pages: keep the normal container width, cap only the reading measure. */
.container.prose {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.container.prose > *:not(.table-wrap) {
  max-width: 74ch;
}
