:root {
  --ink: #07060a;
  --ink-2: #141018;
  --panel: #110d14;
  --paper: #f6efe8;
  --muted: #b7a8b2;
  --line: rgba(246, 239, 232, 0.14);
  --rose: #ff2d6a;
  --lime: #ff2d6a;
  --clay: #c4a484;
  --danger: #ff5a36;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: Syne, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background:
    radial-gradient(900px 520px at 88% -10%, rgba(255, 45, 106, 0.28), transparent 60%),
    radial-gradient(700px 480px at -10% 80%, rgba(255, 45, 106, 0.12), transparent 55%),
    var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.02em;
}
body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.22;
  background-image: radial-gradient(rgba(246,239,232,0.2) 0.6px, transparent 0.6px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.topbar, .bay-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--paper);
}
.logo-mark {
  width: 48px;
  height: 48px;
  display: block;
  filter: drop-shadow(0 10px 22px rgba(255, 45, 106, 0.45));
}
.word {
  font-family: var(--sans);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.8;
}
.word em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.28em;
  color: var(--rose);
  margin-left: 1px;
}
.topnav { margin-left: auto; display: flex; gap: 18px; align-items: center; font-size: 14px; }
.topnav a { text-decoration: none; }
.who { color: var(--muted); }
main { padding: 8px 28px 72px; position: relative; }
.ticker {
  overflow: hidden;
  margin: 0 -28px 8px;
  border-block: 1px solid rgba(255, 45, 106, 0.45);
  background: rgba(255, 45, 106, 0.08);
}
.ticker-track {
  display: flex;
  gap: 36px;
  width: max-content;
  padding: 10px 0;
  animation: marquee 16s linear infinite;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  font-weight: 700;
}
.ticker-track span:nth-child(odd) { color: var(--rose); }
@keyframes marquee { to { transform: translateX(-50%); } }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 28px;
  align-items: center;
  min-height: calc(100vh - 220px);
  padding: 4vh 0 6vh;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--lime);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
}
h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(52px, 7vw, 92px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}
h1 em { font-style: italic; color: var(--rose); }
.lede { max-width: 46ch; color: var(--muted); font-size: 18px; line-height: 1.45; }
.hero-actions, .transport, .bin-head, .tl-tools, .studio-head { display: flex; gap: 12px; align-items: center; }
.btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
  border-radius: 999px;
  padding: 12px 18px;
  text-decoration: none;
  cursor: pointer;
}
.btn.solid {
  background: var(--rose);
  color: #fff;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(255, 45, 106, 0.35);
}
.btn.ghost { background: transparent; }
.btn.tiny { padding: 8px 12px; font-size: 13px; }
.hero-stage { display: grid; gap: 18px; justify-items: end; }
.phone {
  width: min(340px, 78vw);
  aspect-ratio: 9 / 16;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  justify-self: end;
  box-shadow: 0 40px 90px rgba(0,0,0,0.55), 0 0 80px rgba(255, 45, 106, 0.28);
  border: 1px solid rgba(255, 45, 106, 0.55);
  transform: rotate(3deg);
}
.phone-still {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(42% 32% at 48% 22%, #ffd2c4, transparent 62%),
    radial-gradient(55% 42% at 70% 78%, rgba(255, 45, 106, 0.95), transparent 60%),
    linear-gradient(180deg, #2a1524, #07060a 74%);
}
.phone-caption, .caption-live {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 28px;
  text-align: center;
  font-weight: 520;
  font-size: 22px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.7);
}
.phone-tc, .timecode {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--paper);
}
.hero-timeline { width: min(440px, 100%); }
.tl-label, .track-name {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.tl-track, .track {
  position: relative;
  height: 42px;
  margin: 6px 0 10px;
  background: rgba(243,239,230,0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.block, .seg {
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-size: 12px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
}
.b1, .tone-0 { background: #ffd2c4; width: 22%; }
.b2, .tone-1 { background: #ff2d6a; color: #fff; width: 30%; }
.b3, .tone-2 { background: #f6efe8; width: 18%; }
.b4, .tone-3 { background: #7a4a62; color: #fff; width: 24%; }
.playhead, .tl-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--lime);
}
.hero-timeline .playhead { left: 38%; animation: sweep 7s ease-in-out infinite; }
@keyframes sweep { 50% { left: 72%; } }
.cap, .caption-block {
  background: transparent;
  color: var(--paper);
  border: 1px dashed rgba(255, 45, 106, 0.7);
  margin: 8px;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
}
.how {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding: 48px 0 10px;
  border-top: 1px solid var(--line);
}
.how p:first-child { font-family: var(--mono); color: var(--lime); margin: 0; }
.how h2 { font-family: var(--serif); font-weight: 400; font-size: 48px; margin: 8px 0; letter-spacing: -0.04em; }
.how article p:last-child { color: var(--muted); line-height: 1.45; }
.colophon {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 18px 28px 28px;
  color: var(--muted);
  font-size: 12px;
}
.colophon a { color: var(--muted); }
.auth-card, .new-bay {
  max-width: 460px;
}
body.auth main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 168px);
}
.auth-stage {
  width: min(920px, 100%);
  margin: 4vh auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}
.auth-frame {
  padding: 2px;
  border-radius: 32px;
  background:
    linear-gradient(128deg, #ffd4e2 0%, #ff2d6a 18%, rgba(255, 45, 106, 0.25) 46%, #fff6f8 58%, #ff2d6a 78%, #ff8aaf 100%);
  box-shadow:
    0 0 0 1px rgba(255, 45, 106, 0.5),
    0 0 28px rgba(255, 45, 106, 0.34),
    0 22px 50px rgba(0, 0, 0, 0.48);
}
.auth-card {
  max-width: none;
  margin: 0;
  padding: 32px 28px 36px;
  border-radius: 30px;
  background:
    radial-gradient(280px 160px at 12% 0%, rgba(255, 45, 106, 0.22), transparent 70%),
    #100910;
}
.auth-card .lede { font-size: 16px; }
.auth-card h1 { font-size: clamp(40px, 4.4vw, 58px); margin-bottom: 10px; }
.studio-head h1 { font-size: clamp(42px, 6vw, 68px); }
.nav-register {
  background: var(--rose);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
}
form { display: grid; gap: 12px; }
label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
input, select, textarea {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--lime); }
input[type="range"] { accent-color: var(--lime); padding: 0; }
.flash { color: var(--lime); }
.switch { color: var(--muted); }
.new-bay { grid-template-columns: 1.4fr 1fr 0.6fr auto; align-items: end; max-width: none; margin: 18px 0 28px; }
.bay-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.bay-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.bay-list a { text-decoration: none; display: grid; gap: 4px; }
.bay-list span, .empty, .hint, .note, .save-state, .readout { color: var(--muted); }
.text-btn { background: none; border: 0; color: var(--muted); cursor: pointer; }
.bay-body { overflow: hidden; }
.bay {
  height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 300px;
  grid-template-rows: 78px minmax(0, 1fr) 230px;
  position: relative;
  z-index: 1;
}
.bay-bar { grid-column: 1 / -1; background: rgba(18,17,14,0.92); }
.title-input { max-width: 240px; padding: 8px 10px; }
.bin, .direct, .stage, .timeline { min-width: 0; min-height: 0; }
.bin, .direct { padding: 16px; overflow: auto; background: var(--panel); }
.direct { border-left: 1px solid var(--line); }
.bin { border-right: 1px solid var(--line); }
.bin h2, .direct h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 0 0 8px; }
.stage { display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 16px; }
.monitor {
  position: relative;
  height: min(100%, 68vh);
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 45, 106, 0.45);
  box-shadow: 0 24px 60px rgba(255, 45, 106, 0.16);
}
.monitor.feed { aspect-ratio: 4 / 5; }
.monitor video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.empty-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  pointer-events: none;
}
.caption-live { font-size: 18px; bottom: 18px; }
.transport { padding-top: 10px; }
.timeline { grid-column: 1 / -1; border-top: 1px solid var(--line); padding: 8px 16px 12px; background: #100f0c; }
.tl-scroll { position: relative; overflow-x: auto; padding-bottom: 8px; }
.tl-ruler { height: 18px; position: relative; color: var(--muted); font-family: var(--mono); font-size: 10px; }
.tick { position: absolute; top: 0; }
.tl-row { display: grid; grid-template-columns: 28px 1fr; gap: 8px; align-items: center; }
.track { display: block; overflow: visible; }
.seg, .caption-block {
  position: absolute;
  top: 4px;
  height: 34px;
  border-radius: 7px;
  cursor: grab;
  user-select: none;
}
.seg.selected { outline: 1px solid var(--lime); }
.handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 8px;
  cursor: ew-resize;
}
.handle.left { left: 0; }
.handle.right { right: 0; }
.tl-playhead { top: 18px; z-index: 3; pointer-events: none; }
.tl-playhead::before {
  content: "";
  position: absolute;
  top: -6px;
  left: -4px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--lime);
}
#clip-list, #caption-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.clip {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 8px;
  align-items: center;
}
.swatch { width: 42px; height: 42px; border-radius: 8px; }
.clip input { padding: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chips button { border-radius: 999px; border: 1px solid var(--line); background: transparent; padding: 6px 10px; cursor: pointer; font-size: 12px; }
.toast {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--paper);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 999px;
  z-index: 5;
}
@media (max-width: 980px) {
  .hero, .how, .new-bay, .auth-stage { grid-template-columns: 1fr; }
  body.auth main { min-height: 0; align-items: stretch; }
  .auth-stage { gap: 22px; width: min(440px, 100%); }
  .auth-card { padding: 28px 22px 32px; }
  .phone { transform: none; justify-self: center; }
  .hero-stage { justify-items: center; }
  .bay-body { overflow: auto; }
  .bay { height: auto; grid-template-columns: 1fr; grid-template-rows: auto; }
  .bay-bar { flex-wrap: wrap; }
  .monitor { height: auto; width: min(100%, 360px); }
  .timeline { min-height: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-timeline .playhead, .ticker-track { animation: none; }
}
