:root {
  --bg: #06060C;
  --panel: #0C0C14;
  --panel-2: #10101A;
  --line: #1E1E2A;
  --line-hi: #353546;
  --text: #F2ECE2;
  --beige: #F6D8BA;
  --dim: #8E8A80;
  --gold: #E47800;
  --gold-soft: rgba(228, 120, 0, .35);
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { color-scheme: dark; }

body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 -apple-system, "SF Pro Text", Inter, system-ui, sans-serif;
  padding: 0 clamp(20px, 4vw, 56px) 90px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, .word, .pill, .tier { font-family: "Space Grotesk", -apple-system, system-ui, sans-serif; }

/* ---------- header ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0 0;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.wordmark { width: 180px; height: auto; display: block; }
.divider { color: #3c3c4a; }
.product { color: var(--dim); font-size: 13.5px; letter-spacing: .02em; }
.topnav a { color: var(--dim); font-size: 13px; text-decoration: none; }
.topnav a:hover { color: var(--beige); }

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 9vh, 96px) 0 8px; max-width: 880px; }
.herokicker, .kicker {
  display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold);
  border: 1px solid var(--gold-soft); border-radius: 999px; padding: 5px 13px; margin-bottom: 22px;
}
.herocta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero h1 {
  font-size: clamp(34px, 5.4vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 600;
  background: linear-gradient(100deg, var(--text) 55%, var(--beige) 78%, var(--gold) 105%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { color: var(--dim); max-width: 62ch; margin-top: 18px; font-size: 16px; }

/* ---------- toolbar ---------- */
.toolbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  padding: 18px 0 14px;
  background: linear-gradient(var(--bg) 78%, transparent);
}
.pill {
  border: 1px solid var(--line); background: var(--panel); color: var(--dim);
  border-radius: 999px; padding: 7px 16px; font-size: 13px; font-weight: 500;
  cursor: pointer; user-select: none; transition: all .16s ease;
}
.pill:hover { color: var(--text); border-color: var(--line-hi); }
.pill.on { color: #0a0602; background: var(--beige); border-color: var(--beige); font-weight: 600; }
.count { color: #55524b; font-size: 12.5px; margin-left: 4px; }
#q {
  margin-left: auto; background: var(--panel); border: 1px solid var(--line); color: var(--text);
  border-radius: 9px; padding: 8px 13px; font-size: 13px; width: 210px; outline: none;
  transition: border-color .16s;
}
#q:focus { border-color: var(--gold-soft); }

/* ---------- grid / cards ---------- */
.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  margin-top: 10px;
}
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; position: relative;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-hi);
  box-shadow: 0 18px 50px -18px rgba(0, 0, 0, .8), 0 0 0 1px rgba(246, 216, 186, .04);
}
.media {
  position: relative; aspect-ratio: 16 / 10; background: #000; overflow: hidden;
}
.media img, .media canvas, .media iframe {
  width: 100%; height: 100%; object-fit: cover; display: block; border: 0;
}
.media .poster { position: absolute; inset: 0; transition: opacity .25s; }
.media .stagehost { position: absolute; inset: 0; opacity: 0; transition: opacity .3s; }
.card.live .stagehost { opacity: 1; }
.badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  background: rgba(6, 6, 12, .62); backdrop-filter: blur(6px);
  color: var(--beige); padding: 4px 9px; border-radius: 999px;
  border: 1px solid rgba(246, 216, 186, .14);
}
.badge.live-dot::before {
  content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold); margin-right: 5px; vertical-align: 1px;
}
.meta { padding: 12px 14px 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.title { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.tags { color: var(--dim); font-size: 12px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tier { font-size: 10.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.tier.free { color: #6fbf73; }

/* ---------- lightbox ---------- */
#box {
  position: fixed; inset: 0; z-index: 20;
  background: rgba(4, 4, 8, .86); backdrop-filter: blur(14px);
  display: flex; align-items: center; justify-content: center;
  padding: 3vh 3vw;
}
#box[hidden] { display: none; }
.sheet {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 18px;
  width: min(1120px, 100%); max-height: 94vh; overflow: auto;
}
.sheet .stagebig { aspect-ratio: 16 / 9; background: #000; position: relative; }
.sheet .stagebig canvas, .sheet .stagebig iframe { width: 100%; height: 100%; display: block; border: 0; }
.sheet .body { padding: 22px 26px 28px; }
.sheet h2 { font-size: 21px; letter-spacing: -0.02em; font-weight: 600; }
.sheet .desc { color: #B9B2A4; margin: 10px 0 16px; max-width: 74ch; }
.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
  font-size: 11.5px; color: var(--dim); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 11px;
}
.chip.gold { color: var(--gold); border-color: var(--gold-soft); }
.actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-size: 13.5px; font-weight: 600; border-radius: 10px; padding: 10px 18px;
  transition: all .15s ease; border: 1px solid transparent;
}
.btn.primary { background: var(--gold); color: #140900; }
.btn.primary:hover { background: #f98a10; }
.btn.ghost { border-color: var(--line-hi); color: var(--beige); }
.btn.ghost:hover { border-color: var(--beige); }

/* ---------- studio ---------- */
.studio {
  margin-top: 84px; border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(28px, 5vw, 56px);
  background:
    radial-gradient(90% 120% at 85% 0%, rgba(228, 120, 0, .08), transparent 55%),
    var(--panel);
}
.studio h2 {
  font-size: clamp(28px, 4vw, 44px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.05;
}
.studiosub { color: var(--dim); max-width: 66ch; margin: 16px 0 8px; font-size: 15.5px; }
.steps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 28px 0 6px; }
.step {
  border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 16px;
  background: rgba(6, 6, 12, .45);
}
.step .num { color: var(--gold); font-family: "Space Grotesk"; font-weight: 700; font-size: 13px; letter-spacing: .08em; }
.step b { display: block; margin: 8px 0 6px; font-size: 15px; }
.step p { color: var(--dim); font-size: 13.5px; }

/* ---------- feature stack ---------- */
.stack { margin-top: 84px; border-top: 1px solid var(--line); padding-top: 56px; }
.stack h2, .faq h2 {
  font-size: clamp(24px, 3.2vw, 36px); font-weight: 600; letter-spacing: -0.02em; max-width: 24ch;
}
.stacksub { color: var(--dim); max-width: 58ch; margin: 12px 0 30px; }
.stackgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.feat {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 18px 16px; display: grid; gap: 4px;
  transition: border-color .16s, transform .16s;
}
.feat:hover { border-color: var(--line-hi); transform: translateY(-2px); }
.feat img { width: 44px; height: 44px; object-fit: contain; margin-bottom: 8px; }
.feat b { font-size: 14.5px; font-weight: 600; }
.feat span { color: var(--dim); font-size: 12.5px; }

/* ---------- faq ---------- */
.faq { margin-top: 72px; }
.faq details {
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
  padding: 0 18px; margin-top: 10px;
}
.faq details:first-of-type { margin-top: 26px; }
.faq summary {
  cursor: pointer; padding: 15px 0; font-weight: 600; font-size: 14.5px;
  list-style: none; position: relative; padding-right: 30px;
}
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 12px;
  color: var(--gold); font-size: 18px; font-weight: 500; transition: transform .18s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--dim); font-size: 14px; padding-bottom: 16px; max-width: 78ch; }
.faq a { color: var(--beige); }

/* ---------- footer ---------- */
.foot {
  margin-top: 76px; border-top: 1px solid var(--line); padding-top: 34px;
  display: grid; gap: 22px; grid-template-columns: 1fr auto auto;
  align-items: start; color: #86827a; font-size: 13px;
}
.footbrand { display: flex; gap: 12px; align-items: flex-start; max-width: 380px; }
.footbrand b { color: var(--beige); font-size: 14px; }
.footbrand span { color: #6b675f; font-size: 12.5px; }
.footlinks { display: grid; gap: 8px; }
.footlinks a { color: var(--dim); text-decoration: none; }
.footlinks a:hover { color: var(--beige); }
.social { display: flex; gap: 12px; }
.social img { width: 26px; height: 26px; opacity: .75; transition: opacity .15s, transform .15s; }
.social a:hover img { opacity: 1; transform: translateY(-2px); }
.legal {
  grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid var(--line); margin-top: 8px; padding: 18px 0 0;
  color: #4e4b45; font-size: 12px;
}

@media (max-width: 720px) {
  #q { width: 100%; margin-left: 0; order: 9; }
  .toolbar { position: static; }
  .foot { grid-template-columns: 1fr; }
  .wordmark { width: 140px; }
}
