:root {
  color-scheme: dark;
  --bg: #07111f;
  --card: #111c2f;
  --card-2: #17243a;
  --line: #334155;
  --text: #f8fafc;
  --muted: #b6c2d1;
  --blue: #38bdf8;
  --blue-2: #2563eb;
  --green: #22c55e;
  --yellow: #f59e0b;
  --purple: #8b5cf6;
  --red: #ef4444;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(circle at top left, rgba(56,189,248,.22), transparent 28rem), var(--bg);
  color: var(--text);
  font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: #7dd3fc; }
.shell { width: min(760px, calc(100vw - 24px)); margin: 0 auto; padding: 18px 0 28px; display: grid; gap: 12px; }
.public-shell { width: min(980px, calc(100vw - 24px)); }
.card { background: linear-gradient(145deg, rgba(23,36,58,.98), rgba(17,28,47,.98)); border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: 0 18px 50px rgba(0,0,0,.26); }
.hero { position: relative; overflow: hidden; }
.hero:after { content: ""; position: absolute; width: 190px; height: 190px; right: -80px; top: -100px; background: radial-gradient(circle, rgba(34,197,94,.35), transparent 70%); pointer-events: none; }
.eyebrow { color: var(--blue); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
h1 { margin: 4px 0 2px; font-size: clamp(34px, 8vw, 58px); letter-spacing: -.07em; line-height: .92; }
h2 { margin: 0 0 8px; font-size: 17px; letter-spacing: -.02em; }
p { margin: 8px 0; }
ul { margin: 10px 0 0; padding-left: 20px; }
li { margin: 6px 0; }
.lede { max-width: 42rem; color: #dbeafe; font-size: 15px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.status-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.badge { display: inline-flex; align-items: center; width: fit-content; border: 1px solid var(--line); background: #0b1220; color: #dbeafe; border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 900; }
.badge.ok { border-color: rgba(34,197,94,.75); color: #bbf7d0; }
.badge.warn { border-color: rgba(245,158,11,.75); color: #fde68a; }
.badge.error { border-color: rgba(239,68,68,.75); color: #fecaca; }
.button-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.button-grid.three { grid-template-columns: repeat(3, 1fr); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.form-grid label, .crop-controls label { display: grid; gap: 6px; color: #dbeafe; font-size: 12px; font-weight: 800; }
input, select { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: rgba(2,6,23,.62); color: var(--text); padding: 10px 11px; font: inherit; }
input:focus, select:focus { outline: 2px solid rgba(56,189,248,.6); outline-offset: 2px; }
input[type="range"] { padding: 0; accent-color: var(--blue); }
output { color: var(--blue); font-weight: 900; font-size: 12px; }
.advanced { margin-top: 12px; color: var(--muted); }
.advanced summary { cursor: pointer; color: #dbeafe; font-weight: 800; }
.crop-card { border-color: rgba(34,197,94,.38); }
.crop-controls { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; align-items: end; }
.crop-preview { position: relative; margin: 16px auto 0; width: min(520px, 100%); aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid rgba(56,189,248,.5); border-radius: 14px; background: linear-gradient(135deg, #132b48, #0c1423 58%, #164e63); }
.crop-preview:before, .crop-preview:after { content: ""; position: absolute; background: rgba(255,255,255,.18); }
.crop-preview:before { inset: 50% 0 auto; height: 1px; }.crop-preview:after { inset: 0 auto 0 50%; width: 1px; }
.crop-frame { position: absolute; transform: translate(-50%, -50%); min-width: 28%; min-height: 28%; border: 3px solid #22c55e; border-radius: 10px; background: rgba(34,197,94,.12); box-shadow: 0 0 0 999px rgba(2,6,23,.18); display: grid; place-items: center; text-align: center; }
.crop-frame span { padding: 5px 8px; border-radius: 999px; background: rgba(2,6,23,.76); color: #dcfce7; font-size: 11px; font-weight: 900; }
.workflow-message { margin: 14px 0 0; padding: 10px 12px; border-left: 3px solid var(--blue); border-radius: 8px; background: rgba(56,189,248,.08); color: #dbeafe; }.workflow-message.ok { border-color: var(--green); background: rgba(34,197,94,.09); color: #dcfce7; }.workflow-message.error { border-color: var(--red); background: rgba(239,68,68,.1); color: #fecaca; }.workflow-message.warn { border-color: var(--yellow); background: rgba(245,158,11,.1); color: #fde68a; }
.analysis-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }.analysis-summary div { padding: 12px; border: 1px solid rgba(148,163,184,.25); border-radius: 13px; background: rgba(2,6,23,.28); display: grid; gap: 2px; }.analysis-summary strong { color: var(--blue); font-size: 20px; }.analysis-summary span { color: var(--muted); font-size: 11px; font-weight: 700; }
.cut-list { display: grid; gap: 8px; margin-top: 12px; }.cut-item { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px; border: 1px solid rgba(148,163,184,.24); border-radius: 14px; background: rgba(2,6,23,.34); }.cut-item.kept { opacity: .58; border-style: dashed; }.cut-item p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }.cut-item button { flex: 0 0 auto; font-size: 12px; padding: 9px 10px; }.empty-state { padding: 14px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); text-align: center; }.caption-toggle { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--muted); font-size: 12px; }.caption-toggle input { width: auto; }
.button-link { display: grid; place-items: center; border-radius: 14px; padding: 12px 14px; background: linear-gradient(135deg, var(--blue-2), var(--blue)); color: #f8fafc; text-decoration: none; font-weight: 950; }
button { border: 0; border-radius: 14px; padding: 12px 14px; background: linear-gradient(135deg, var(--blue-2), var(--blue)); color: #f8fafc; font-weight: 950; cursor: pointer; box-shadow: 0 10px 28px rgba(37,99,235,.22); }
button.secondary { background: #334155; box-shadow: none; }
button:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.icon-button { position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; padding: 0; border-radius: 999px; background: #334155; box-shadow: none; font-size: 22px; }
.sequence-card { margin-top: 12px; padding: 14px; border: 1px solid rgba(56,189,248,.45); border-radius: 16px; background: rgba(14, 165, 233, .09); display: grid; gap: 3px; }
.sequence-card .label { color: var(--blue); font-size: 11px; font-weight: 950; text-transform: uppercase; letter-spacing: .11em; }
.sequence-card strong { font-size: 18px; }
.hidden { display: none; }
.account-card { border-color: rgba(139,92,246,.55); }
.feature-card { border-color: rgba(245,158,11,.35); }
.section-header { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.rough-cut-preview { display: grid; gap: 8px; margin: 14px 0; }
.cut-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid rgba(148,163,184,.25); border-radius: 14px; background: rgba(15,23,42,.55); }
.cut-row span { color: var(--muted); font-size: 12px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.plans.stacked { grid-template-columns: 1fr; }
.plan { border: 1px solid rgba(148,163,184,.25); border-radius: 16px; background: rgba(15,23,42,.55); padding: 12px; display: grid; gap: 4px; }
.plan span { color: var(--blue); font-weight: 950; }
.plan strong { font-size: 22px; }
.plan small { color: var(--muted); }
.plan.current, .plan-card.featured { border-color: rgba(56,189,248,.75); box-shadow: 0 0 0 1px rgba(56,189,248,.18) inset; }
.public-nav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.public-nav a { border: 1px solid var(--line); border-radius: 999px; color: #dbeafe; text-decoration: none; padding: 8px 12px; background: rgba(15,23,42,.75); font-weight: 800; }
.public-nav a:hover { border-color: rgba(56,189,248,.8); }
.legal-card { font-size: 15px; }
.legal-card h2 { margin-top: 22px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.plan-card { display: grid; align-content: start; gap: 8px; }
.plan-card strong { font-size: 32px; letter-spacing: -.04em; }
.modal-backdrop { position: fixed; inset: 0; display: none; place-items: center; padding: 18px; background: rgba(2,6,23,.72); backdrop-filter: blur(8px); z-index: 20; }
.modal { width: min(520px, 100%); position: relative; }
@media (max-width: 720px) {
  .button-grid, .button-grid.three, .plans, .pricing-grid, .form-grid, .crop-controls { grid-template-columns: 1fr; }
  .section-header { display: grid; }
  .cut-item { align-items: stretch; flex-direction: column; }
  .analysis-summary { grid-template-columns: 1fr; }
}
