/* PlayerV client docs site */
:root {
  --bg: #07080a;
  --text: #f3f4f6;
  --muted: #9aa1ac;
  --accent: #e11d2e;
  --accent-2: #ff4d5a;
  --line: rgba(255, 255, 255, 0.08);
  --font-display: 'Syne', 'Segoe UI', sans-serif;
  --font-body: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --max: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

a {
  color: var(--accent-2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(7, 8, 10, 0.72);
  border-bottom: 1px solid var(--line);
}

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
}

.logo:hover {
  text-decoration: none;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #12151a;
  box-shadow: 0 0 0 1px rgba(225, 29, 46, 0.55);
  display: grid;
  place-items: center;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  justify-content: flex-end;
}

.nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.nav a:hover {
  color: var(--text);
}

.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(7, 8, 10, 0.25) 0%, rgba(7, 8, 10, 0.55) 45%, rgba(7, 8, 10, 0.96) 100%),
    url('./hero.jpg') center / cover no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 360px at 70% 30%, rgba(225, 29, 46, 0.22), transparent 60%);
  z-index: -1;
}

.hero-inner {
  padding: 72px 0 56px;
}

.hero-brand {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.hero-brand span {
  color: var(--accent-2);
}

.hero p {
  margin: 0 0 22px;
  max-width: 36rem;
  color: #d5d8de;
  font-size: 1.1rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 20px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 10px 28px rgba(225, 29, 46, 0.35);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--line);
}

section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.kicker {
  margin: 0 0 8px;
  color: var(--accent-2);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.lead {
  margin: 0 0 28px;
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature {
  padding: 18px 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tab {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

.tab.active {
  color: #fff;
  background: rgba(225, 29, 46, 0.18);
  border-color: rgba(225, 29, 46, 0.4);
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

pre {
  margin: 0;
  padding: 18px;
  overflow: auto;
  border-radius: 14px;
  background: #0c0f14;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  line-height: 1.5;
  color: #e8eaee;
}

code.inline {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 6px;
}

.note {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(225, 29, 46, 0.28);
  background: rgba(225, 29, 46, 0.08);
  color: #e8eaee;
  font-size: 0.95rem;
}

.note strong {
  color: #fff;
}

.steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.steps li::before {
  content: counter(step);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
  background: rgba(225, 29, 46, 0.2);
  color: #ffb4b8;
}

.steps strong {
  display: block;
  margin-bottom: 4px;
}

.steps span {
  color: var(--muted);
  font-size: 0.95rem;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 16px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}

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

.faq summary::after {
  content: '+';
  float: right;
  color: var(--muted);
  font-weight: 500;
}

.faq details[open] summary::after {
  content: '–';
}

.faq .ans {
  padding: 0 0 16px;
  color: var(--muted);
}

.faq .ans p {
  margin: 0 0 10px;
}

.faq .ans p:last-child {
  margin-bottom: 0;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

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

th {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
  font-weight: 700;
}

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

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

.foot {
  padding: 36px 0 56px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
}

@media (max-width: 720px) {
  .top-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero-inner {
    padding-top: 48px;
  }
}

/* Demo + builder */
.demo-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 24px 60px rgba(0, 0, 0, 0.55);
}

.demo-caption {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.builder-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-bottom: 16px;
}

.builder-card {
  margin: 0;
  padding: 16px 18px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  min-width: 0;
}

.builder-card legend {
  padding: 0 6px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.field {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--muted);
}

.field input,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  background: #0c0f14;
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}

.checks {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #d7dbe2;
  font-size: 0.92rem;
  cursor: pointer;
}

.check input {
  margin-top: 3px;
  accent-color: var(--accent);
}

.builder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 10px;
}

.builder-actions .btn {
  border: 0;
  cursor: pointer;
}

.toast {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(61, 220, 151, 0.15);
  color: #3ddc97;
  font-size: 0.85rem;
  font-weight: 700;
}

.builder-out {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.out-title {
  margin: 0 0 8px;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.out-pre {
  max-height: 360px;
  font-size: 0.75rem;
}
