html { scroll-behavior: smooth; }

body {
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  font-variation-settings: normal;
}

/* ========== Ambient — drifting aurora ==========
   Three soft orbs at distinct hues, drifting at different speeds. Far slower
   than typical hover effects so the page reads as static-but-alive — the
   movement is felt before it's seen. */
.ambient {
  overflow: hidden;
}
.ambient::before,
.ambient::after,
.ambient > .aurora-orb {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  pointer-events: none;
  will-change: transform;
}
.ambient::before {
  width: 60vw;
  height: 60vw;
  left: -10vw;
  top: -8vw;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.18) 0%, transparent 60%);
  animation: aurora-drift-a 28s ease-in-out infinite;
}
.ambient::after {
  width: 50vw;
  height: 50vw;
  right: -12vw;
  top: 30vh;
  background: radial-gradient(circle, rgba(120, 73, 251, 0.16) 0%, transparent 60%);
  animation: aurora-drift-b 36s ease-in-out infinite;
}
.ambient > .aurora-orb {
  width: 45vw;
  height: 45vw;
  left: 25vw;
  top: 70vh;
  background: radial-gradient(circle, rgba(205, 189, 255, 0.12) 0%, transparent 60%);
  animation: aurora-drift-c 44s ease-in-out infinite;
}
@keyframes aurora-drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(8vw, 6vw) scale(1.15); }
}
@keyframes aurora-drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-6vw, -4vw) scale(0.9); }
}
@keyframes aurora-drift-c {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-10vw, 4vw) scale(1.1); }
  66% { transform: translate(6vw, -8vw) scale(0.95); }
}
@media (prefers-reduced-motion: reduce) {
  .ambient::before,
  .ambient::after,
  .ambient > .aurora-orb {
    animation: none;
  }
}

/* ========== Mouse spotlight ========== */
.spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(205, 189, 255, 0.06) 0%, rgba(120, 73, 251, 0.03) 30%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
  mix-blend-mode: screen;
  pointer-events: none;
}
body:hover .spotlight { opacity: 1; }

/* ========== Typography ========== */
.hero-display {
  font-size: clamp(48px, 9vw, 112px);
  line-height: 0.95;
  font-weight: 500;
  letter-spacing: -0.035em;
}
.hero-display .accent {
  background: linear-gradient(135deg, #cdbdff 0%, #a78bfa 60%, #7849fb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.section-heading {
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* ========== Monospace labels ========== */
.mono-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.2px;
  color: #898989;
  text-transform: uppercase;
}
.mono-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: #cdbdff;
  box-shadow: 0 0 12px rgba(205, 189, 255, 0.6);
}
.mono-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #898989;
}
.mono-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #4d4d4d;
}
.mono-footer {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #898989;
  transition: color 0.2s ease;
}
.mono-footer:hover { color: #cdbdff; }

/* ========== Divider ========== */
.divider {
  max-width: 1100px;
  margin: 0 auto;
  height: 1px;
  background: #242424;
}

/* ========== Buttons (pill, restrained) ========== */
.btn-primary {
  background: #fafafa;
  color: #0f0f0f;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.14;
  border: 1px solid #fafafa;
  transition: transform 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn-primary:hover { background: #e6e6e6; transform: translateY(-1px); }

.btn-primary-lg {
  background: #fafafa;
  color: #0f0f0f;
  padding: 12px 28px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.14;
  border: 1px solid #fafafa;
  transition: transform 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn-primary-lg:hover { background: #e6e6e6; transform: translateY(-1px); }

.btn-secondary-lg {
  background: #0f0f0f;
  color: #fafafa;
  padding: 12px 28px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.14;
  border: 1px solid #2e2e2e;
  transition: border-color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  display: inline-block;
}
.btn-secondary-lg:hover { border-color: #4d4d4d; background: #171717; }

/* ========== Cards ========== */
.card {
  position: relative;
  background: #171717;
  border: 1px solid #2e2e2e;
  border-radius: 12px;
  padding: 28px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.card:hover { border-color: #393939; background: #1a1a1a; }

.card-inner { position: relative; z-index: 1; }

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #0f0f0f;
  border: 1px solid #2e2e2e;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cdbdff;
  margin-bottom: 20px;
}

.card-title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.33;
  letter-spacing: -0.16px;
  color: #fafafa;
  margin-bottom: 8px;
}

.card-body {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.57;
  color: #898989;
}

/* ========== Plan cards ========== */
.card-plan {
  background: #171717;
  border: 1px solid #2e2e2e;
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: border-color 0.2s ease;
}
.card-plan:hover { border-color: #393939; }

.card-plan--accent {
  border-color: rgba(205, 189, 255, 0.25);
  background: linear-gradient(180deg, rgba(205, 189, 255, 0.03) 0%, rgba(23, 23, 23, 1) 60%);
}
.card-plan--accent:hover { border-color: rgba(205, 189, 255, 0.4); }

.plan-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 24px;
  border-bottom: 1px solid #242424;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.price-amount {
  font-size: 40px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fafafa;
}
.price-period {
  font-size: 14px;
  color: #898989;
}

.plan-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}
.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: #b4b4b4;
}
.plan-list .check {
  font-size: 18px !important;
  color: #cdbdff;
  flex-shrink: 0;
  margin-top: 1px;
}

.plan-cta {
  text-align: center;
}

.plan-meta {
  font-size: 12px;
  color: #898989;
  margin-top: 4px;
}

.plan-footnote {
  font-size: 12px;
  color: #4d4d4d;
  text-align: center;
  margin-top: -8px;
}

.list-lead {
  color: #fafafa;
  font-weight: 500;
}

.check--brand {
  color: #cdbdff !important;
}

.card-plan--accent {
  position: relative;
  overflow: hidden;
}
.card-plan--accent::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(205, 189, 255, 0.6) 50%, transparent 100%);
  pointer-events: none;
}

/* ========== Reveal (scroll in) ========== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0ms);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Tilt cards (subtle) ========== */
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.25s ease-out, border-color 0.2s ease, background 0.2s ease;
}
.tilt-card-inner {
  position: relative;
  z-index: 1;
  transform: translateZ(12px);
}
.tilt-card-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(205, 189, 255, 0.08) 0%, transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.tilt-card:hover .tilt-card-glow { opacity: 1; }

/* ========== Navbar scroll state ========== */
#navbar.scrolled {
  background: rgba(15, 15, 15, 0.9);
}

/* ========== Modal ========== */
.modal-overlay {
  animation: modal-in 0.2s ease-out;
}
.modal-overlay.hidden { display: none; }
.modal-panel {
  animation: panel-in 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  background: #171717;
  border: 1px solid #2e2e2e;
  border-radius: 16px;
}
@keyframes modal-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes panel-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
body.modal-open { overflow: hidden; }

.terms-body {
  scrollbar-width: thin;
  scrollbar-color: #393939 transparent;
}
.terms-body::-webkit-scrollbar { width: 6px; }
.terms-body::-webkit-scrollbar-track { background: transparent; }
.terms-body::-webkit-scrollbar-thumb { background: #393939; border-radius: 3px; }
.terms-body::-webkit-scrollbar-thumb:hover { background: #4d4d4d; }

/* ========== Legal pages (prose) ========== */
.legal-prose {
  font-size: 15px;
  line-height: 1.7;
  color: #b4b4b4;
}
.legal-prose h1 {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 400;
  color: #fafafa;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 8px;
}
.legal-prose h2 {
  font-size: 22px;
  font-weight: 500;
  color: #fafafa;
  letter-spacing: -0.01em;
  margin-top: 56px;
  margin-bottom: 16px;
  padding-top: 32px;
  border-top: 1px solid #242424;
}
.legal-prose h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 48px;
}
.legal-prose h3 {
  font-size: 17px;
  font-weight: 500;
  color: #fafafa;
  margin-top: 32px;
  margin-bottom: 12px;
}
.legal-prose h4 {
  font-size: 14px;
  font-weight: 500;
  color: #fafafa;
  margin-top: 20px;
  margin-bottom: 8px;
}
.legal-prose p { margin-bottom: 16px; }
.legal-prose ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 16px;
}
.legal-prose ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}
.legal-prose ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #4d4d4d;
}
.legal-prose ol {
  padding-left: 20px;
  margin-bottom: 16px;
}
.legal-prose ol li { margin-bottom: 8px; }
.legal-prose strong {
  color: #fafafa;
  font-weight: 500;
}
.legal-prose em { color: #b4b4b4; font-style: normal; }
.legal-prose a {
  color: #cdbdff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(205, 189, 255, 0.35);
  transition: text-decoration-color 0.2s ease;
}
.legal-prose a:hover { text-decoration-color: #cdbdff; }
.legal-prose hr {
  border: none;
  border-top: 1px solid #242424;
  margin: 48px 0;
}
.legal-prose code {
  background: #0f0f0f;
  border: 1px solid #2e2e2e;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: #fafafa;
}
.legal-prose blockquote {
  border-left: 2px solid #cdbdff;
  padding-left: 16px;
  color: #b4b4b4;
  margin: 20px 0;
}
.legal-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #898989;
  margin-bottom: 24px;
}

/* ========== Reduced motion ========== */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .tilt-card { transform: none !important; }
  .cd-playhead { animation: none !important; }
  .cd-meter-fill { animation: none !important; }
  .hero-stage > * { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* ========== Hero stage — cinematic on-load choreography ==========
   Each piece enters with a hand-tuned delay so the eye reads in order:
   eyebrow → headline → subhead → CTAs → demo. The demo's lanes themselves
   then stagger in (set in the timeline widget below). Total runway ~2.6s. */
.hero-stage {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 96px 0 48px;
}
.hero-stage > * {
  opacity: 0;
  transform: translateY(14px);
  animation: hero-rise 1s cubic-bezier(0.2, 0.65, 0.2, 1) forwards;
}
.hero-stage > .stage-eyebrow { animation-delay: 0.1s; }
.hero-stage > .stage-title { animation-delay: 0.25s; }
.hero-stage > .stage-sub { animation-delay: 0.5s; }
.hero-stage > .stage-cta { animation-delay: 0.7s; }
.hero-stage > .stage-meta { animation-delay: 0.85s; }
.hero-stage > .stage-demo { animation-delay: 1.0s; transform: translateY(28px) scale(0.985); }
@keyframes hero-rise {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.stage-title {
  max-width: 1180px;
}
.stage-sub {
  margin-top: 28px;
  font-size: clamp(16px, 1.6vw, 22px);
  line-height: 1.5;
  color: #b4b4b4;
  max-width: 640px;
}
.stage-cta {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.stage-meta {
  margin-top: 20px;
}
.stage-demo {
  margin-top: 64px;
  width: 100%;
  max-width: 1080px;
  position: relative;
}

/* Demo frame: stronger shadow + inner highlight ring + lavender ambient halo
   so the widget reads as the page's centerpiece, not a side decoration. */
.stage-demo-frame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid #2e2e2e;
  background: #131313;
  box-shadow:
    0 24px 80px -20px rgba(0, 0, 0, 0.8),
    0 8px 32px -8px rgba(120, 73, 251, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}
.stage-demo-halo {
  position: absolute;
  inset: -40px;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(167, 139, 250, 0.25) 0%, transparent 55%),
    radial-gradient(ellipse at 30% 0%, rgba(205, 189, 255, 0.18) 0%, transparent 50%);
  pointer-events: none;
  filter: blur(40px);
  z-index: 0;
}
.stage-demo-frame > * {
  position: relative;
  z-index: 1;
}

/* Per-lane stagger inside the timeline. Each lane fades in from a slight
   left offset so the visual reads as "voices arriving one at a time" — which
   is literally what the multi-track recorder does in real sessions. */
.stage-demo .cd-lane {
  opacity: 0;
  transform: translateX(-12px);
  animation: hero-lane-in 0.7s cubic-bezier(0.2, 0.65, 0.2, 1) forwards;
}
.stage-demo .cd-lane:nth-child(2) { animation-delay: 1.25s; }
.stage-demo .cd-lane:nth-child(3) { animation-delay: 1.45s; }
.stage-demo .cd-lane:nth-child(4) { animation-delay: 1.65s; }
.stage-demo .cd-lane:nth-child(5) { animation-delay: 1.85s; }
@keyframes hero-lane-in {
  to { opacity: 1; transform: translateX(0); }
}
.stage-demo .cd-tl-head .cd-lane-head {
  opacity: 0;
  animation: hero-lane-in 0.7s cubic-bezier(0.2, 0.65, 0.2, 1) forwards;
  transform: translateX(-8px);
}
/* The first child of .cd-tl-head is the zoom toolbar; lane heads start at the
   2nd child, so offset all nth-child indices by one. */
.stage-demo .cd-tl-head .cd-lane-head:nth-child(2) { animation-delay: 1.20s; }
.stage-demo .cd-tl-head .cd-lane-head:nth-child(3) { animation-delay: 1.40s; }
.stage-demo .cd-tl-head .cd-lane-head:nth-child(4) { animation-delay: 1.60s; }
.stage-demo .cd-tl-head .cd-lane-head:nth-child(5) { animation-delay: 1.80s; }

/* ========== Feature ribbon — single-row scope summary ==========
   Sits below the hero so visitors see the breadth in one glance without
   needing to scroll into the bento. */
.feature-ribbon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  padding: 28px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.012), rgba(255, 255, 255, 0));
}
.feature-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
  font-weight: 500;
  color: #c9c5d0;
  letter-spacing: -0.01em;
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.feature-chip:hover {
  border-color: rgba(205, 189, 255, 0.3);
  color: #fafafa;
  transform: translateY(-1px);
}
.feature-chip .material-symbols-outlined {
  font-size: 16px;
  color: #cdbdff;
}
.feature-ribbon-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.08);
}

/* ========== Hero multi-track timeline widget ========== */
.cd-timeline {
  display: flex;
  background: #131313;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  color: #b4b4b4;
}
.cd-tl-head {
  width: 168px;
  flex-shrink: 0;
  border-right: 1px solid #242424;
  background: rgba(10, 10, 10, 0.5);
}
.cd-tl-toolbar {
  height: 24px;
  border-bottom: 1px solid #242424;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #595959;
}
.cd-mono {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  color: #595959;
  letter-spacing: 0.04em;
}
.cd-lane-head {
  height: 56px;
  border-bottom: 1px solid rgba(36, 36, 36, 0.6);
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}
.cd-lane-head:nth-child(odd-row) { background: rgba(255, 255, 255, 0.012); }
.cd-lane-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cd-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex-shrink: 0;
}
.cd-lane-ctrls {
  display: flex;
  align-items: center;
  gap: 2px;
  color: #4d4d4d;
}
.cd-lane-ctrls .material-symbols-outlined { font-size: 13px; }
.cd-time {
  margin-left: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  color: rgba(137, 137, 137, 0.4);
  font-variant-numeric: tabular-nums;
}
.cd-tl-body {
  flex: 1;
  min-width: 0;
  position: relative;
}
.cd-ruler {
  height: 24px;
  border-bottom: 1px solid #242424;
  background: rgba(10, 10, 10, 0.5);
  position: relative;
}
.cd-ruler span {
  position: absolute;
  top: 0;
  bottom: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  color: rgba(137, 137, 137, 0.4);
  padding-left: 4px;
  border-left: 1px solid rgba(137, 137, 137, 0.18);
  display: flex;
  align-items: flex-start;
  padding-top: 3px;
  white-space: nowrap;
}
.cd-lane {
  height: 56px;
  border-bottom: 1px solid rgba(36, 36, 36, 0.6);
  position: relative;
}
.cd-lane:nth-child(odd-row) { background: rgba(255, 255, 255, 0.012); }
.cd-wave {
  width: 100%;
  height: 100%;
  display: block;
}
.cd-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #ef4444;
  pointer-events: none;
  left: 0;
  animation: cd-sweep 9s linear infinite;
}
.cd-playhead::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -5px;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.55);
}
@keyframes cd-sweep {
  0% { left: 0%; opacity: 0; }
  3% { opacity: 1; }
  95% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
/* ========== App-frame mock (Studio + Captions) ==========
   These mocks are deliberately visual-only — buttons don't navigate, status
   strings are static. Goal is "this is the real product" recognition before
   the visitor scrolls. */

.cdapp {
  display: flex;
  flex-direction: column;
  background: #131318;
  color: #e6e1e9;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  border-radius: 16px;
  overflow: hidden;
  /* Force a stable aspect on desktop so the rotate-on-hover frame doesn't
     reflow when waveforms generate. */
  min-height: 460px;
}

.cdapp-titlebar {
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: rgba(10, 10, 12, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-family: "Inter", sans-serif;
  font-size: 11px;
  color: #898a96;
  -webkit-app-region: drag;
  user-select: none;
  letter-spacing: 0.04em;
}
.cdapp-titlebar-dots {
  display: flex;
  gap: 5px;
  margin-right: 12px;
}
.cdapp-titlebar-dots span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #3a3a44;
}
.cdapp-titlebar-dots span:nth-child(1) { background: #ff5f56; }
.cdapp-titlebar-dots span:nth-child(2) { background: #ffbd2e; }
.cdapp-titlebar-dots span:nth-child(3) { background: #27c93f; }
.cdapp-titlebar-brand { font-weight: 600; color: #c9c5d0; }
.cdapp-titlebar-spacer { flex: 1; }

.cdapp-body { display: flex; flex: 1; min-height: 0; }

/* ----- Sidebar ----- */
.cdapp-side {
  width: 168px;
  flex-shrink: 0;
  background: rgba(10, 10, 12, 0.45);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
}
.cdapp-side-action {
  margin: 12px 12px 8px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.32);
  cursor: default;
}
.cdapp-side-action .material-symbols-outlined { font-size: 16px; }

.cdapp-side-eyebrow {
  padding: 8px 16px 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: rgba(201, 197, 208, 0.5);
  text-transform: uppercase;
  font-weight: 600;
}
.cdapp-side-nav { padding: 0 8px; display: flex; flex-direction: column; gap: 2px; flex: 1; min-height: 0; }
.cdapp-side-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #898a96;
  cursor: default;
}
.cdapp-side-item .material-symbols-outlined { font-size: 17px; }
.cdapp-side-item.is-active {
  background: rgba(190, 194, 255, 0.12);
  color: #cdbdff;
}
.cdapp-side-item.is-active .material-symbols-outlined {
  color: #cdbdff;
  font-variation-settings: 'FILL' 1;
}
.cdapp-side-foot {
  padding: 8px 16px 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  color: rgba(137, 138, 150, 0.6);
  letter-spacing: 0.08em;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* ----- Topbar ----- */
.cdapp-top {
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
  background: rgba(15, 15, 18, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.cdapp-statuspill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  color: #e6e1e9;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.cdapp-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #4ade80;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.7);
  animation: cdapp-pulse 1.4s ease-in-out infinite;
}
@keyframes cdapp-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}
.cdapp-live-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #4ade80;
}
.cdapp-badge {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.cdapp-badge--pro {
  background: rgba(190, 194, 255, 0.15);
  color: #cdbdff;
  border: 1px solid rgba(190, 194, 255, 0.35);
}
.cdapp-badge--variant {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: rgba(201, 197, 208, 0.7);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.cdapp-badge--variant::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #4ade80;
}
.cdapp-top-spacer { flex: 1; }
.cdapp-top-stop {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: default;
  box-shadow: 0 2px 12px rgba(239, 68, 68, 0.3);
}
.cdapp-top-stop .material-symbols-outlined { font-size: 16px; font-variation-settings: 'FILL' 1; }

/* ----- Main content area ----- */
.cdapp-main {
  flex: 1;
  min-width: 0;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  background: #131318;
}
.cdapp-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.cdapp-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #e6e1e9;
  letter-spacing: -0.01em;
}
.cdapp-section-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: rgba(201, 197, 208, 0.55);
  letter-spacing: 0.04em;
}

/* ----- Captions tabs (captions.html) ----- */
.cdapp-tabs {
  height: 36px;
  flex-shrink: 0;
  display: flex;
  gap: 4px;
  padding: 4px 12px 0;
  background: rgba(10, 10, 12, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.cdapp-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px 8px 0 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(201, 197, 208, 0.5);
  cursor: default;
}
.cdapp-tab .material-symbols-outlined { font-size: 14px; }
.cdapp-tab.is-active {
  background: #131318;
  color: #e6e1e9;
}

/* ----- Captions live cards ----- */
.cdapp-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cdapp-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: rgba(201, 197, 208, 0.6);
  text-transform: uppercase;
  font-weight: 700;
}
.cdapp-row { display: flex; align-items: center; gap: 10px; }
.cdapp-pip {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
  animation: cdapp-pulse 1.4s ease-in-out infinite;
}
.cdapp-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.cdapp-pill--gpu { background: rgba(190, 194, 255, 0.12); color: #cdbdff; }
.cdapp-pill--pipe { background: rgba(74, 222, 128, 0.12); color: #4ade80; }
.cdapp-pill--rec { background: rgba(239, 68, 68, 0.12); color: #ef4444; display: inline-flex; gap: 5px; align-items: center; }
.cdapp-pill--rec::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: #ef4444; animation: cdapp-pulse 1s ease-in-out infinite; }
.cdapp-mono { font-family: "JetBrains Mono", monospace; font-size: 11px; color: #c9c5d0; }
.cdapp-text-muted { color: rgba(201, 197, 208, 0.55); font-size: 11px; }

/* Live caption stream — feels alive even though it's CSS keyframes */
.cdapp-stream {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 10px;
  padding: 14px 16px;
  min-height: 130px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  font-size: 13.5px;
  line-height: 1.45;
}
.cdapp-stream-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  opacity: 0;
  animation: cdapp-stream-in 9s linear infinite;
}
.cdapp-stream-line .who {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
  width: 60px;
}
.cdapp-stream-line .what { color: #e6e1e9; }
@keyframes cdapp-stream-in {
  0%, 100% { opacity: 0; transform: translateY(8px); }
  4%, 22% { opacity: 1; transform: translateY(0); }
  28%, 100% { opacity: 0; transform: translateY(-4px); }
}
.cdapp-cap-overlay {
  position: relative;
  margin-top: 4px;
  background: rgba(10, 10, 14, 0.85);
  border: 1px dashed rgba(190, 194, 255, 0.3);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 14px;
  text-align: center;
  color: #e6e1e9;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cdapp-cap-overlay::after {
  content: "OBS BROWSER SOURCE";
  position: absolute;
  top: -8px; right: 12px;
  background: #131318;
  padding: 0 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.18em;
  color: rgba(190, 194, 255, 0.55);
}
.cdapp-cap-overlay-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 18px;
  font-size: 14px;
  color: #e6e1e9;
  opacity: 0;
  animation: cdapp-stream-in 9s linear infinite;
}

/* ========== Bento features grid ========== */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 1080px;
}
.bento-cell {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.012), rgba(255, 255, 255, 0.005));
  border: 1px solid #242424;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  text-align: left;
  overflow: hidden;
  transition: border-color 0.4s ease, transform 0.4s ease;
}
.bento-cell:hover {
  border-color: rgba(205, 189, 255, 0.22);
}
.bento-cell--lg { grid-column: span 12 / span 12; }
.bento-cell--md { grid-column: span 12 / span 12; }
.bento-cell--sm { grid-column: span 12 / span 12; }
@media (min-width: 768px) {
  .bento-cell--lg { grid-column: span 8 / span 8; grid-row: span 2 / span 2; }
  .bento-cell--md { grid-column: span 4 / span 4; }
  .bento-cell--sm { grid-column: span 4 / span 4; }
}
.bento-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(205, 189, 255, 0.7);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.bento-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #cdbdff;
  box-shadow: 0 0 8px rgba(205, 189, 255, 0.6);
}
.bento-title {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #fafafa;
  line-height: 1.2;
  margin-bottom: 10px;
}
.bento-cell--lg .bento-title { font-size: 28px; line-height: 1.15; margin-bottom: 14px; }
.bento-body {
  font-size: 14px;
  line-height: 1.5;
  color: #b4b4b4;
}
.bento-cell--lg .bento-body { font-size: 15px; max-width: 480px; }
.bento-demo { margin-top: auto; padding-top: 18px; }

/* Reactive avatar bobs — 4 colored discs that scale on a phase-offset cycle to
   suggest live peak-driven animation. */
.bento-avatars {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  height: 72px;
}
.bento-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.7);
  animation: bento-bob 1.6s ease-in-out infinite;
  position: relative;
}
.bento-avatar::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 2px solid currentColor;
  opacity: 0.25;
  animation: bento-ring 1.6s ease-out infinite;
}
@keyframes bento-bob {
  0%, 100% { transform: scale(0.85); }
  50% { transform: scale(1.12); }
}
@keyframes bento-ring {
  0% { transform: scale(0.9); opacity: 0.45; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Recording library mini list — small session rows with mini wave thumbs */
.bento-sessions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}
.bento-session-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 11px;
}
.bento-session-row .name {
  font-family: "JetBrains Mono", monospace;
  color: #c9c5d0;
  font-weight: 600;
}
.bento-session-row .meta {
  font-family: "JetBrains Mono", monospace;
  color: rgba(201, 197, 208, 0.4);
  margin-left: auto;
  font-size: 10px;
}
.bento-thumb {
  width: 60px;
  height: 18px;
  flex-shrink: 0;
}

/* Caption stream mini — used inside Live Transcription bento card */
.bento-stream {
  position: relative;
  height: 80px;
  margin-top: auto;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.04);
  overflow: hidden;
  font-size: 12px;
  line-height: 1.45;
}
.bento-stream-line {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  opacity: 0;
  animation: cdapp-stream-in 9s linear infinite;
}
.bento-stream-line .who {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

/* Broadcast filter visualization — game/music icons getting crossed out */
.bento-filter-vis {
  margin-top: auto;
  padding: 14px 12px 10px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  gap: 10px;
}
.bento-filter-input {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bento-filter-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-family: "JetBrains Mono", monospace;
  color: rgba(201, 197, 208, 0.65);
  position: relative;
}
.bento-filter-chip.is-blocked { color: rgba(239, 68, 68, 0.55); text-decoration: line-through; text-decoration-thickness: 1px; }
.bento-filter-chip.is-allowed { color: #4ade80; }
.bento-filter-chip .material-symbols-outlined { font-size: 14px; }
.bento-filter-arrow {
  color: rgba(201, 197, 208, 0.3);
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
}

/* Mini stereo waveform — single colored line that pulses */
.bento-stereo-vis {
  margin-top: auto;
  height: 64px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
}
.bento-stereo-vis svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.bento-stereo-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(205, 189, 255, 0.12) 50%, transparent 100%);
  animation: bento-stereo-sweep 3.2s linear infinite;
}
@keyframes bento-stereo-sweep {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

/* Big multi-track demo — compact 4-lane preview inside the lg bento cell */
.bento-mt {
  margin-top: auto;
  height: 156px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.bento-mt-lane {
  flex: 1;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  padding-left: 60px;
}
.bento-mt-lane:last-child { border-bottom: none; }
.bento-mt-lane > .label {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.bento-mt-lane > .label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}
.bento-mt-lane > svg {
  width: 100%;
  height: 100%;
}
.bento-mt-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #ef4444;
  pointer-events: none;
  left: 60px;
  animation: cd-sweep 9s linear infinite;
}
.bento-mt-playhead::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -4px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

/* Caption ribbon under timeline — speaker captions cycle in sync */
.cd-captions {
  border-top: 1px solid #242424;
  background: rgba(10, 10, 10, 0.6);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 64px;
  font-size: 12.5px;
  line-height: 1.45;
}
.cd-cap-line {
  opacity: 0;
  animation: cd-cap-in 9s linear infinite;
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.cd-cap-line .cd-cap-name {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  min-width: 56px;
}
.cd-cap-line .cd-cap-text { color: #d4d4d4; }
@keyframes cd-cap-in {
  0%, 100% { opacity: 0; transform: translateY(2px); }
  4%, 18% { opacity: 1; transform: translateY(0); }
  22% { opacity: 0.4; }
  30%, 100% { opacity: 0; }
}
