:root {
  --bg: #07090f;
  --card: #111827;
  --border: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #22d3ee;
  --accent2: #a78bfa;
  --good: #4ade80;
  --danger: #fb7185;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 480px at 10% -10%, rgba(34, 211, 238, 0.16), transparent 55%),
    radial-gradient(800px 420px at 90% 0%, rgba(167, 139, 250, 0.14), transparent 50%),
    var(--bg);
  min-height: 100vh;
  line-height: 1.55;
}
a { color: var(--accent); }
.wrap { width: min(1100px, calc(100% - 2rem)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(7, 9, 15, 0.82);
  border-bottom: 1px solid var(--border);
}
.site-header .inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: .9rem 0; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .7rem; color: inherit; text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: grid; place-items: center; font-weight: 900; color: #041016;
}
.brand strong { display: block; letter-spacing: -.02em; }
.brand span { font-size: .72rem; color: var(--muted); }
.nav { display: flex; gap: .85rem; flex-wrap: wrap; align-items: center; }
.nav a { color: var(--muted); font-weight: 600; text-decoration: none; font-size: .92rem; }
.nav a:hover { color: var(--text); }
.btn {
  border: 0; cursor: pointer; border-radius: 12px; padding: .78rem 1.15rem;
  font-weight: 700; font-size: .95rem; text-decoration: none; display: inline-flex;
  align-items: center; justify-content: center; gap: .4rem;
}
.btn-primary {
  color: #041016;
  background: linear-gradient(135deg, var(--accent), #67e8f9);
}
.btn-violet {
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, var(--accent2));
}
.btn-ghost {
  background: transparent; color: var(--text); border: 1px solid var(--border);
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.hero { padding: 3.2rem 0 1.5rem; }
.hero-grid { display: grid; gap: 1.5rem; grid-template-columns: 1.15fr .85fr; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.eyebrow {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent);
  border: 1px solid rgba(34, 211, 238, .35); border-radius: 999px; padding: .3rem .7rem;
  background: rgba(34, 211, 238, .08);
}
h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.1rem); line-height: 1.05; margin: .8rem 0;
  letter-spacing: -.035em;
}
h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { color: var(--muted); font-size: 1.08rem; max-width: 38rem; }
.card {
  background: linear-gradient(180deg, #141b2b, #0e1420);
  border: 1px solid var(--border); border-radius: 18px; padding: 1.2rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}
.bullets { list-style: none; padding: 0; margin: 1rem 0 0; color: var(--muted); }
.bullets li { margin: .45rem 0; padding-left: 1.15rem; position: relative; }
.bullets li::before {
  content: ""; position: absolute; left: 0; top: .55rem; width: .4rem; height: .4rem;
  border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2));
}
.section { padding: 2.4rem 0; }
.grid-3 { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
.feature {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 1.1rem;
}
.feature h3 { margin: .2rem 0 .45rem; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--muted); font-size: .92rem; }
.price-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem;
}
.price-card {
  border: 1px solid var(--border); border-radius: 16px; padding: 1.15rem; background: var(--card);
  display: flex; flex-direction: column; gap: .55rem;
}
.price-card.featured {
  border-color: rgba(34, 211, 238, .45);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, .15);
}
.price-card .amt { font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; }
.price-card .blurb { color: var(--muted); font-size: .88rem; flex: 1; }
.legal-banner {
  margin-top: 1.2rem; padding: .85rem 1rem; border-radius: 12px;
  border: 1px solid rgba(34, 211, 238, .3); background: rgba(34, 211, 238, .07);
  color: #a5f3fc; font-size: .88rem;
}
.site-footer {
  border-top: 1px solid var(--border); padding: 1.75rem 0 2.5rem; color: var(--muted);
  font-size: .88rem; margin-top: 2rem;
}
.hook {
  font-size: 1.15rem; font-weight: 700; color: #e2e8f0; margin: 1rem 0 .5rem;
}
.pill {
  display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; border-radius: 999px; padding: .22rem .5rem;
  border: 1px solid var(--border); color: var(--muted);
}
.pill-good { color: #bbf7d0; border-color: rgba(74, 222, 128, .35); background: rgba(74, 222, 128, .1); }

/* App */
.app-shell { display: grid; grid-template-columns: 280px 1fr; min-height: calc(100vh - 70px); }
@media (max-width: 900px) { .app-shell { grid-template-columns: 1fr; } }
.app-side {
  border-right: 1px solid var(--border); padding: 1rem; background: rgba(0, 0, 0, .25);
}
.app-main { padding: 1rem; position: relative; }
.stage-wrap {
  position: relative; background: #000; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border); aspect-ratio: 16/9; max-height: 70vh;
}
#screen-preview, #composite-preview {
  width: 100%; height: 100%; object-fit: contain; background: #000; display: block;
}
.pip {
  position: absolute; width: 168px; height: 168px; border-radius: 50%;
  overflow: hidden; border: 0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .55); cursor: grab; z-index: 5;
  touch-action: none; background: transparent;
}
.pip.rect { border-radius: 18px; }
.pip.square { border-radius: 14px; }
.pip.resizing { cursor: nwse-resize; }
.editor-playback {
  width: 100%; max-height: 280px; margin: .5rem 0 .75rem;
  border-radius: 12px; border: 1px solid var(--border); background: #000;
}
.trim-ui { margin-top: .5rem; }
.trim-meta {
  display: flex; flex-wrap: wrap; gap: .75rem 1.1rem; font-size: .85rem; color: var(--muted); margin-bottom: .55rem;
}
.trim-meta b { color: var(--text); }
.trim-track {
  position: relative; height: 48px; border-radius: 12px;
  background: linear-gradient(90deg, #1e293b, #0f172a 40%, #1e293b);
  border: 1px solid var(--border); overflow: hidden;
}
.trim-range {
  position: absolute; top: 0; bottom: 0; left: 0; width: 100%;
  background: rgba(34, 211, 238, 0.22); border-left: 2px solid var(--accent);
  border-right: 2px solid var(--accent); pointer-events: none;
}
.trim-handle {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%; margin: 0;
  background: transparent; pointer-events: none; -webkit-appearance: none; appearance: none;
}
.trim-handle::-webkit-slider-thumb {
  pointer-events: auto; -webkit-appearance: none; appearance: none;
  width: 16px; height: 48px; border-radius: 4px; background: #22d3ee;
  border: 2px solid #fff; cursor: ew-resize; box-shadow: 0 0 0 1px rgba(0,0,0,.4);
}
.trim-handle::-moz-range-thumb {
  pointer-events: auto; width: 16px; height: 48px; border-radius: 4px;
  background: #22d3ee; border: 2px solid #fff; cursor: ew-resize;
}
.trim-handle-out::-webkit-slider-thumb { background: #a78bfa; }
.trim-handle-out::-moz-range-thumb { background: #a78bfa; }
.playhead {
  position: absolute; top: 0; bottom: 0; width: 2px; background: #f43f5e;
  left: 0; pointer-events: none; box-shadow: 0 0 6px #f43f5e;
}
.pro-tools {
  margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--border);
}
.editor-panel { margin-top: 1rem; }
.controls {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; align-items: center;
}
.status-line { color: var(--muted); font-size: .9rem; min-height: 1.3rem; margin-top: .6rem; }
.status-line.err { color: var(--danger); }
.field { margin: .55rem 0; }
.field label { display: block; font-size: .78rem; color: var(--muted); font-weight: 700; margin-bottom: .25rem; }
.field select, .field input[type="text"], .field input[type="email"], .field input[type="number"] {
  width: 100%; background: #0b1220; border: 1px solid var(--border); color: var(--text);
  border-radius: 10px; padding: .55rem .7rem; font: inherit;
}
.rec-dot {
  width: .7rem; height: .7rem; border-radius: 50%; background: var(--danger);
  display: inline-block; animation: pulse 1.1s infinite;
}
@keyframes pulse { 50% { opacity: .35; } }
.privacy-panel {
  margin-top: 1rem; padding: .75rem; border-radius: 12px; border: 1px solid var(--border);
  background: rgba(34, 211, 238, .05); font-size: .82rem; color: var(--muted);
}
.privacy-panel strong { color: var(--good); }
.hidden { display: none !important; }
.timeline {
  margin-top: 1rem; background: #0b1220; border: 1px solid var(--border);
  border-radius: 12px; padding: .75rem;
}
.timeline input[type="range"] { width: 100%; }
.pro-lock {
  opacity: .85; border: 1px dashed rgba(167, 139, 250, .45); border-radius: 12px;
  padding: .75rem; margin-top: .75rem; font-size: .88rem; color: var(--muted);
}
.legal-page { max-width: 760px; padding: 2.5rem 0 4rem; }
.legal-page h2 { color: #67e8f9; margin-top: 1.5rem; }
.legal-page h3 { color: #a5f3fc; font-size: 1rem; margin-top: 1.1rem; }
.legal-page ul { color: var(--muted); }
.legal-strong, .legal-banner {
  margin: 1rem 0 1.25rem; padding: .85rem 1rem; border-radius: 12px;
  border: 1px solid rgba(34, 211, 238, .3); background: rgba(34, 211, 238, .07);
  color: #a5f3fc; font-size: .92rem;
}
