:root {
  --bg: #0a0a0c;
  --page: #0f1012;
  --comp: #23262a;
  --comp-2: #18191c;
  --line: rgba(255,255,255,.05);
  --line-2: rgba(255,255,255,.09);
  --tx: #e9e9ec;
  --tx-2: rgba(255,255,255,.5);
  --tx-3: rgba(255,255,255,.34);
  --mint: #65d69e;
  --ink: #07120d;
  --bad: #ff7a5c;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--tx); }
body { font: 400 14px/1.5 'Inter', system-ui, sans-serif; -webkit-font-smoothing: antialiased; min-height: 100vh; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.cl-page { max-width: 1240px; margin: 0 auto; padding: 0 16px 80px; }

.cl-hero {
  display: grid; place-items: center;
  min-height: min(520px, 62vh);
  padding: 56px 0 40px;
  background: radial-gradient(60% 90% at 50% 0%, rgba(255,255,255,.035) 0%, transparent 70%);
}
.cl-hero-in { width: 100%; max-width: 693px; display: flex; flex-direction: column; gap: 18px; }
.cl-hero-title { display: flex; align-items: center; justify-content: center; gap: 12px; }
.cl-logo {
  width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border-radius: 10px;
  background: rgba(101,214,158,.12); border: 1px solid rgba(101,214,158,.3); color: var(--mint); font-size: 17px;
}
.cl-hero-title h1 {
  margin: 0; font: 700 28px/32px 'Space Grotesk', sans-serif;
  letter-spacing: -.02em; text-transform: uppercase; color: #fff; text-align: center;
}
.cl-sub { margin: -6px auto 4px; max-width: 520px; text-align: center; color: var(--tx-2); font-size: 14px; }

.cl-composer { display: flex; flex-direction: column; width: 100%; }
.cl-box {
  position: relative; z-index: 2; display: flex; flex-direction: column; gap: 8px;
  min-height: 108px; padding: 12px;
  background: var(--comp); border: 1px solid var(--line); border-radius: 22px;
  transition: border-color .15s, box-shadow .15s;
}
.cl-box.cl-drag { border-color: rgba(101,214,158,.45); box-shadow: 0 0 0 4px rgba(101,214,158,.08); }
.cl-input { display: flex; align-items: center; gap: 10px; padding: 4px 4px 0; }
.cl-input-ic { color: var(--tx-3); font-size: 13px; }
.cl-input input {
  flex: 1; min-width: 0; height: 36px; border: 0; background: none; outline: none;
  color: var(--tx); font: 400 15px/20px 'Inter', sans-serif;
}
.cl-input input::placeholder { color: var(--tx-2); }
.cl-file {
  display: flex; align-items: center; gap: 10px; margin: 2px 4px 0; padding: 8px 10px;
  border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line-2);
}
.cl-file > i { color: var(--mint); }
.cl-file-nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.cl-file-sz { color: var(--tx-2); font-size: 12px; }
.cl-file-x { border: 0; background: none; color: var(--tx-2); cursor: pointer; padding: 2px 4px; }
.cl-file-x:hover { color: #fff; }

.cl-range {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 2px 4px 0; padding: 8px 10px;
  border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line-2);
  font: 500 12px/16px 'Inter', sans-serif; color: var(--tx-2);
}
.cl-range-t { color: var(--tx); }
.cl-range-f { display: inline-flex; align-items: center; gap: 6px; }
.cl-range-f input {
  width: 76px; height: 28px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line-2);
  background: rgba(0,0,0,.25); color: var(--tx); outline: none;
  font: 500 13px/16px 'Inter', sans-serif; font-variant-numeric: tabular-nums;
}
.cl-range-f input:focus { border-color: rgba(101,214,158,.5); }
.cl-range-f input.cl-bad { border-color: rgba(255,122,92,.6); }
.cl-range-sep { color: var(--tx-3); }
.cl-range-len { margin-left: auto; color: var(--mint); white-space: nowrap; }
.cl-range-len.cl-bad { color: #ffb4a2; }
.cl-tog-range span { text-decoration: none !important; color: var(--tx-2); }
.cl-tog-range.cl-tog-on span { color: var(--tx); font-variant-numeric: tabular-nums; }

.cl-row { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.cl-round {
  width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center;
  border: 0; border-radius: 999px; background: rgba(255,255,255,.05); color: var(--tx); cursor: pointer; font-size: 14px;
}
.cl-round:hover { background: rgba(255,255,255,.09); }
.cl-pill, .cl-tog {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px;
  border: 0; border-radius: 999px; background: none; cursor: pointer; white-space: nowrap;
}
.cl-pill:hover, .cl-tog:hover { background: rgba(255,255,255,.05); }
.cl-pill i, .cl-tog i { color: rgba(255,255,255,.55); font-size: 12px; }
.cl-pill select {
  appearance: none; -webkit-appearance: none; border: 0; background: none; cursor: pointer; outline: none;
  color: var(--tx); font: 500 12px/16px 'Inter', sans-serif; padding: 0 2px;
}
.cl-pill select option { background: #16171a; }
.cl-tog span { font: 500 12px/16px 'Inter', sans-serif; color: var(--tx-2); }
.cl-tog-on span { color: var(--tx); }
.cl-tog-on i { color: var(--mint); }
.cl-tog:not(.cl-tog-on) span { text-decoration: line-through; text-decoration-color: rgba(255,255,255,.3); }

.cl-send {
  position: relative; width: 34px; height: 34px; flex: 0 0 34px; margin-left: auto;
  display: grid; place-items: center; border: 1px solid rgba(101,214,158,.30); border-radius: 999px;
  background: linear-gradient(150deg, rgba(101,214,158,.26), rgba(101,214,158,.10) 62%, rgba(255,255,255,.05)), rgba(255,255,255,.04);
  backdrop-filter: blur(10px) saturate(130%); -webkit-backdrop-filter: blur(10px) saturate(130%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 2px 10px rgba(101,214,158,.12);
  color: var(--mint); cursor: pointer;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .12s ease;
}
.cl-send svg { display: block; width: 16px; height: 16px; }
.cl-send:hover:not(:disabled) {
  border-color: rgba(101,214,158,.55);
  background: linear-gradient(150deg, rgba(101,214,158,.40), rgba(101,214,158,.18) 62%, rgba(255,255,255,.07)), rgba(255,255,255,.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 3px 16px rgba(101,214,158,.26);
}
.cl-send:active:not(:disabled) { transform: scale(.94); }
.cl-send:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.cl-send:disabled {
  cursor: not-allowed; border-color: rgba(255,255,255,.07); background: rgba(255,255,255,.03);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06); color: rgba(255,255,255,.28);
}
.cl-send.cl-busy svg { animation: cl-spin 1s linear infinite; }
@keyframes cl-spin { to { transform: rotate(360deg); } }

.cl-under {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 16px;
  width: calc(100% - 32px); margin: -8px auto 0; min-height: 48px; padding: 16px 16px 10px;
  background: var(--comp-2); border-radius: 0 0 22px 22px;
}
.cl-under-src { font: 400 12px/1.35 'Inter', sans-serif; color: var(--tx-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-under-src b { color: var(--tx); font-weight: 500; }
.cl-under-src.warn { white-space: normal; }
.cl-under-sp { flex: 1; }
.cl-under-cost { font: 500 12px/1 'Inter', sans-serif; color: var(--mint); white-space: nowrap; }

.cl-msg {
  padding: 12px 14px; border-radius: 14px; font-size: 13px;
  background: rgba(255,122,92,.08); border: 1px solid rgba(255,122,92,.25); color: #ffc2b3;
}
.cl-msg a, .cl-msg button { color: var(--mint); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; font: inherit; }
.cl-msg.cl-msg-ok { background: rgba(101,214,158,.07); border-color: rgba(101,214,158,.22); color: var(--tx); }

.cl-jobs { display: flex; flex-direction: column; gap: 18px; }
.cl-jobs:empty { display: none; }
.cl-job { background: var(--page); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.cl-job-head { display: flex; align-items: center; gap: 12px; }
.cl-job-ic {
  width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 10px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line-2); color: var(--tx-2); font-size: 13px;
}
.cl-job-meta { flex: 1; min-width: 0; }
.cl-job-title { font: 600 14px/1.3 'Inter', sans-serif; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-job-sub { font-size: 12px; color: var(--tx-2); margin-top: 2px; }
.cl-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px;
  font: 500 11px/1 'Inter', sans-serif; background: rgba(255,255,255,.05); color: var(--tx-2); white-space: nowrap;
}
.cl-chip .cl-dot { width: 6px; height: 6px; border-radius: 99px; background: var(--mint); animation: cl-pulse 1.2s ease-in-out infinite; }
.cl-chip-done { background: rgba(101,214,158,.12); color: var(--mint); }
.cl-chip-bad { background: rgba(255,122,92,.1); color: #ffb4a2; }
@keyframes cl-pulse { 50% { opacity: .3; } }

.cl-steps { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0 10px; }
.cl-step {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--tx-3); font: 500 11px/1 'Inter', sans-serif;
}
.cl-step i { font-size: 10px; }
.cl-step-on { color: var(--tx); border-color: rgba(101,214,158,.35); }
.cl-step-on i { color: var(--mint); }
.cl-step-ok { color: var(--tx-2); }
.cl-step-ok i { color: var(--mint); }
.cl-bar { height: 3px; border-radius: 3px; background: rgba(255,255,255,.06); overflow: hidden; }
.cl-bar > span { display: block; height: 100%; background: var(--mint); border-radius: 3px; transition: width .6s ease; }
.cl-job-err, .cl-job-wait { margin-top: 14px; }

.cl-grid { display: grid; gap: 14px; margin-top: 18px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.cl-clip { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cl-clip-vis {
  position: relative; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden;
  background: #141518; border: 1px solid var(--line);
}
.cl-clip-vis video, .cl-clip-vis img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cl-clip-vis video { background: #000; }
.cl-clip-vis video:fullscreen { object-fit: contain; }
.cl-clip-vis video:-webkit-full-screen { object-fit: contain; }
.cl-clip-play {
  position: absolute; inset: 0; display: grid; place-items: center; border: 0; background: linear-gradient(to top, rgba(0,0,0,.45), transparent 45%);
  cursor: pointer; color: #fff;
}
.cl-clip-play span {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 999px;
  background: rgba(255,255,255,.14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.2);
}
.cl-score {
  position: absolute; top: 8px; left: 8px; z-index: 2; height: 24px; padding: 0 8px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(10,10,12,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font: 700 12px/1 'Space Grotesk', sans-serif; color: var(--mint); border: 1px solid rgba(101,214,158,.25);
}
.cl-dur {
  position: absolute; bottom: 8px; right: 8px; z-index: 2; height: 22px; padding: 0 7px; border-radius: 6px;
  display: inline-flex; align-items: center; background: rgba(0,0,0,.6); font: 500 11px/1 'Inter', sans-serif; color: #fff;
}
.cl-clip-skel { position: absolute; inset: 0; background: linear-gradient(110deg, #141518 30%, #1c1d21 50%, #141518 70%); background-size: 200% 100%; animation: cl-shim 1.4s linear infinite; }
.cl-clip-skel-tx { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-size: 11px; color: var(--tx-3); }
@keyframes cl-shim { to { background-position: -200% 0; } }
.cl-clip-bad { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 14px; font-size: 12px; color: #ffb4a2; }
.cl-clip-ttl { font: 600 13px/1.3 'Inter', sans-serif; color: #fff; }
.cl-clip-why { font-size: 12px; line-height: 1.45; color: var(--tx-2); margin-top: -4px; }
.cl-clip-when { font-size: 11px; color: var(--tx-3); }
.cl-clip-acts { display: flex; gap: 6px; }
.cl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--line-2); background: none; color: var(--tx);
  font: 500 12px/1 'Inter', sans-serif; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.cl-btn:hover { border-color: rgba(101,214,158,.35); color: #fff; }
.cl-btn-main { background: var(--mint); color: var(--ink); border-color: var(--mint); flex: 1; }
.cl-btn-main:hover { background: #7de3b0; color: var(--ink); }

.cl-how { padding: 64px 0 0; }
.cl-how h2 {
  margin: 0 0 26px; text-align: center; font: 700 20px/24px 'Space Grotesk', sans-serif;
  letter-spacing: -.03em; text-transform: uppercase; color: var(--mint);
}
.cl-how-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.cl-how-card { padding: 10px 10px 16px; border-radius: 16px; transition: background .15s; }
.cl-how-card:hover { background: rgba(255,255,255,.03); }
.cl-how-card h3 { margin: 14px 4px 6px; font: 600 15px/1.3 'Inter', sans-serif; color: #fff; }
.cl-how-card p { margin: 0 4px; font-size: 13px; color: var(--tx-2); }

.cl-mock {
  position: relative; aspect-ratio: 432 / 253; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); display: grid; place-items: center;
}
.cl-mock::before {
  content: ''; position: absolute; top: 8%; bottom: 8%; left: 50%; width: 27%; transform: translateX(-50%);
  border-radius: 10px; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 10px 40px rgba(0,0,0,.45);
}
.cl-mock-pod { background: radial-gradient(80% 120% at 30% 20%, #3a2a22 0%, #16120f 60%, #0c0b0a 100%); }
.cl-mock-pod::before { background: radial-gradient(60% 45% at 50% 38%, #8a6a55 0%, #3b2c24 55%, #1b1512 100%); }
.cl-mock-game { background: linear-gradient(160deg, #1d2b3a 0%, #2b1d3a00 40%), linear-gradient(20deg, #3a2a12 0%, #101418 70%); }
.cl-mock-game::before { background: linear-gradient(180deg, #0c0d10 0 30%, transparent 30% 70%, #0c0d10 70%), linear-gradient(120deg, #e4a85a 0%, #b4513a 45%, #2b3f6b 100%); }
.cl-mock-band { display: none; }
.cl-mock-cap3 { background: radial-gradient(90% 120% at 70% 10%, #13302a 0%, #0d1513 55%, #0a0c0b 100%); }
.cl-mock-cap3::before { background: radial-gradient(55% 40% at 50% 42%, #4d7f72 0%, #213a35 60%, #111a18 100%); }
.cl-mock-ttl, .cl-mock-cap { position: absolute; left: 50%; transform: translateX(-50%); width: 25%; text-align: center; z-index: 1; }
.cl-mock-ttl { top: 15%; padding: 3px 4px; border-radius: 3px; background: #fff; color: #000; font: 800 7px/1.15 'Inter', sans-serif; }
.cl-mock-cap { bottom: 26%; font: 900 9px/1.1 'Inter', sans-serif; color: #fff; text-shadow: 0 0 2px #000, 0 0 2px #000, 0 1px 3px #000; }
.cl-mock-cap b { color: var(--mint); font-weight: 900; }
.cl-mock-cap-big { bottom: 40%; font-size: 11px; }
.cl-mock-score {
  position: absolute; top: 12%; left: calc(36.5% + 6px); z-index: 1; padding: 2px 5px; border-radius: 99px;
  background: rgba(10,10,12,.75); color: var(--mint); font: 700 8px/1 'Space Grotesk', sans-serif;
}

@media (max-width: 860px) {
  .cl-how-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}
@media (max-width: 600px) {
  .cl-hero { padding: 36px 0 28px; min-height: 0; }
  .cl-hero-title h1 { font-size: 22px; line-height: 26px; }
  .cl-logo { width: 34px; height: 34px; flex-basis: 34px; font-size: 15px; }
  .cl-tog span { display: none; }
  .cl-pill { padding: 0 8px; }
  .cl-under { flex-wrap: wrap; gap: 6px 12px; }
  .cl-under-src { white-space: normal; }
  .cl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cl-job { padding: 14px; }
  .cl-btn { padding: 0 10px; }
}
