:root {
  --bg: #121218;
  --bg-2: #17171f;
  --panel: #1d1d28;
  --panel-2: #262634;
  --line: #34344a;
  --text: #ececf6;
  --muted: #9d9db8;
  --accent: #8f7dff;
  --accent-2: #46e0a0;
  --warn: #ffb454;
  --radius: 14px;
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul, ol { padding-left: 1.2em; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.015em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 18, 24, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--bg) 0 22%, transparent 23%),
              conic-gradient(from 0deg, #cfc8ff, var(--accent), #5a49d6, #cfc8ff);
  position: relative;
}
.logo-mark::after {
  content: ""; position: absolute; inset: 9px; border-radius: 50%;
  border: 2px solid var(--accent-2);
}
.nav { display: flex; gap: 6px; }
.nav a {
  padding: 8px 14px; border-radius: 10px; color: var(--muted); font-size: 15px; font-weight: 500;
  transition: background .15s, color .15s;
}
.nav a:hover { background: var(--panel); color: var(--text); }
.nav a.active { background: var(--panel-2); color: var(--text); }
.burger {
  display: none; background: var(--panel); border: 1px solid var(--line); color: var(--text);
  width: 42px; height: 42px; border-radius: 10px; font-size: 20px; cursor: pointer;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 12px; font-weight: 600; font-size: 16px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #12101f; }
.btn-primary:hover { background: #a393ff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: var(--panel); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 56px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; width: 640px; height: 640px; right: -180px; top: -260px;
  background: radial-gradient(circle, rgba(143,125,255,.22), transparent 65%); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; position: relative; }
.kicker {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 14px;
}
.hero h1 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: 19px; color: var(--muted); max-width: 580px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip {
  font-size: 13px; padding: 5px 12px; border-radius: 99px; background: var(--panel);
  border: 1px solid var(--line); color: var(--muted);
}

/* ---------- css mock of the OBS window ---------- */
.mock { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,.45); }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: var(--panel); border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #444459; display: block; }
.mock-bar i:nth-child(1) { background: #ff6b6b; }
.mock-bar i:nth-child(2) { background: #ffd166; }
.mock-bar i:nth-child(3) { background: #46e0a0; }
.mock-bar span { margin-left: 8px; }
.mock-stage { margin: 14px; aspect-ratio: 16 / 9; border-radius: 10px; background: linear-gradient(135deg, #2b2650, #14141f 60%); border: 1px solid var(--line); position: relative; overflow: hidden; }
.mock-stage .box { position: absolute; border-radius: 8px; border: 2px dashed rgba(255,255,255,.35); background: rgba(143,125,255,.18); }
.mock-stage .b1 { left: 6%; top: 10%; width: 56%; height: 70%; }
.mock-stage .b2 { right: 6%; bottom: 10%; width: 26%; height: 34%; background: rgba(70,224,160,.2); }
.mock-stage .live { position: absolute; left: 12px; bottom: 10px; font-size: 11px; background: #e5484d; color: #fff; padding: 2px 8px; border-radius: 6px; font-weight: 700; letter-spacing: .06em; }
.mock-panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 14px 14px; }
.mock-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: 12px; color: var(--muted); }
.mock-panel b { display: block; color: var(--text); font-size: 12px; margin-bottom: 6px; }
.mock-panel div { padding: 3px 6px; border-radius: 5px; }
.mock-panel div.on { background: var(--panel-2); color: var(--text); }
.meter { height: 7px; border-radius: 4px; background: linear-gradient(90deg, var(--accent-2) 0 55%, var(--warn) 55% 80%, #ff6b6b 80%); margin: 7px 0; opacity: .9; }
.meter.m2 { width: 70%; }
.meter.m3 { width: 40%; }

/* ---------- sections ---------- */
section { padding: 64px 0; }
section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 720px; margin-bottom: 36px; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 12px; }
.sec-head p { color: var(--muted); }
h3 { font-size: 20px; margin-bottom: 8px; }
p + p { margin-top: 14px; }
.prose { max-width: 760px; }
.prose p { color: #cfcfe4; }
.prose h3 { margin-top: 28px; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card p { color: var(--muted); font-size: 16px; }
.card .num {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 10px; background: var(--panel-2); color: var(--accent); font-weight: 700; margin-bottom: 14px;
}
.stat { text-align: left; }
.stat strong { display: block; font-size: 32px; color: var(--accent); letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: 15px; }

/* ---------- tabs (download page) ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tab {
  background: var(--panel); border: 1px solid var(--line); color: var(--muted);
  padding: 11px 20px; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.tab.on { background: var(--accent); color: #12101f; border-color: var(--accent); }
.tab-pane { display: none; }
.tab-pane.on { display: block; }
.dl-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; }
.dl-box ul { color: var(--muted); }
.dl-box li { margin-bottom: 6px; }
.dl-box h3 { margin-bottom: 12px; }

/* ---------- steps ---------- */
.steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 14px; }
.steps li {
  counter-increment: s; position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 20px 20px 70px;
}
.steps li::before {
  content: counter(s); position: absolute; left: 20px; top: 18px; width: 34px; height: 34px; border-radius: 10px;
  background: var(--accent); color: #12101f; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.steps li strong { display: block; margin-bottom: 2px; }
.steps li span { color: var(--muted); font-size: 16px; }

/* ---------- timeline (project page) ---------- */
.timeline { border-left: 2px solid var(--line); margin-left: 8px; padding-left: 28px; display: grid; gap: 26px; }
.tl-item { position: relative; }
.tl-item::before {
  content: ""; position: absolute; left: -37px; top: 6px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--accent);
}
.tl-item small { color: var(--accent-2); font-weight: 700; letter-spacing: .06em; }
.tl-item p { color: var(--muted); }

/* ---------- glossary / table (obs page) ---------- */
.gloss { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.gloss div { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.gloss dt { font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.gloss dd { color: var(--muted); font-size: 16px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 16px; }
th { background: var(--panel-2); color: var(--muted); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
td:first-child { color: var(--text); font-weight: 600; }
td { color: #cfcfe4; background: var(--panel); }
kbd {
  background: var(--panel-2); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px;
  padding: 1px 8px; font-size: 14px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- note / faq ---------- */
.note { border-left: 4px solid var(--warn); background: var(--panel); padding: 16px 20px; border-radius: 0 12px 12px 0; color: #d9d9ec; font-size: 16px; }
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 18px; }

.cta-band { background: linear-gradient(135deg, #2a2360, #1a1a2a); border: 1px solid var(--line); border-radius: 20px; padding: 48px; text-align: center; }
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 10px; }
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 auto; }
.cta-band .btn-row { justify-content: center; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 30px; background: var(--bg-2); color: var(--muted); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.foot-grid h4 { color: var(--text); font-size: 15px; margin-bottom: 12px; }
.foot-grid ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.foot-grid a:hover { color: var(--text); }
.legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .5s; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero-grid, .dl-box { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .burger { display: block; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 20px 18px;
  }
  .nav.open { display: flex; }
  .grid-2, .grid-3, .grid-4, .gloss, .foot-grid { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 36px; }
  section { padding: 44px 0; }
  .cta-band { padding: 32px 20px; }
  .mock-panels { grid-template-columns: 1fr 1fr; }
  .mock-panels .mock-panel:last-child { grid-column: span 2; }
}

/* ---------- logo image ---------- */
.logo-img { width: 32px; height: 32px; object-fit: contain; display: block; border-radius: 6px; }

.hero-stats { align-content: center; }

section[id] { scroll-margin-top: 76px; }
