/* ------------------------------- dasar ------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
/* aturan display eksplisit di bawah mengalahkan [hidden] bawaan browser */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #0b0d12;
  color: #e6e9f0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
button, input { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: 860px; margin-inline: auto; padding-inline: 20px; }

.bg-glow {
  position: fixed; inset: -30% -10% auto -10%; height: 70vh; pointer-events: none; z-index: 0;
  background:
    radial-gradient(45% 55% at 22% 30%, rgba(99,102,241,.20), transparent 70%),
    radial-gradient(40% 50% at 78% 20%, rgba(16,185,129,.14), transparent 70%);
  filter: blur(20px);
}
main, .site-head, .site-foot { position: relative; z-index: 1; }

/* ------------------------------- header ------------------------------- */
.site-head { padding: 20px 0 4px; }
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(140deg, #6366f1, #10b981); color: #fff;
}
.brand-mark svg { width: 19px; height: 19px; }
.brand-text { letter-spacing: -0.02em; color: #aeb6c6; }
.brand-text b { color: #fff; font-weight: 700; }

.badge-priv {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; color: #7ee0b5;
  background: rgba(16,185,129,.10); border: 1px solid rgba(16,185,129,.28);
  padding: 5px 11px; border-radius: 999px; white-space: nowrap;
}
.badge-priv svg { width: 13px; height: 13px; }

/* -------------------------------- hero -------------------------------- */
.hero { padding: 44px 0 34px; text-align: center; }
.hero h1 { font-size: clamp(1.85rem, 5.4vw, 3rem); font-weight: 800; }
.grad {
  background: linear-gradient(100deg, #818cf8 10%, #34d399 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sub { margin: 18px auto 0; max-width: 620px; color: #9aa3b4; font-size: 1.02rem; }

/* -------------------------------- kartu ------------------------------- */
.card {
  background: rgba(20,24,33,.82);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 18px;
  backdrop-filter: blur(10px);
}
.step-head { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.step-num {
  display: grid; place-items: center; flex: none; width: 27px; height: 27px; border-radius: 8px;
  background: rgba(99,102,241,.16); border: 1px solid rgba(99,102,241,.34);
  color: #a5b4fc; font-size: .84rem; font-weight: 700;
}
.step-head h2 { font-size: 1.12rem; font-weight: 650; }

/* ----------------------------- area unggah ---------------------------- */
.drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 44px 20px; text-align: center; cursor: pointer;
  border: 1.5px dashed rgba(255,255,255,.17); border-radius: 14px;
  background: rgba(255,255,255,.015);
  transition: border-color .18s, background .18s, transform .18s;
}
.drop:hover, .drop:focus-visible { border-color: rgba(129,140,248,.6); background: rgba(99,102,241,.06); outline: none; }
.drop.is-over { border-color: #818cf8; background: rgba(99,102,241,.12); transform: scale(1.008); }
.drop-ico { width: 34px; height: 34px; color: #818cf8; }
.drop-title { font-weight: 600; }
.drop-hint { font-size: .84rem; color: #79839a; }

.file-info {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px 15px; border-radius: 12px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
}
.fi-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.fi-main svg { width: 21px; height: 21px; flex: none; color: #818cf8; }
.fi-name { font-weight: 600; font-size: .93rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fi-meta { font-size: .8rem; color: #79839a; }

.video {
  width: 100%; margin-top: 16px; border-radius: 12px; background: #000;
  max-height: 60vh; display: block;
}

/* ------------------------------- preset ------------------------------- */
.presets { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 10px; }
.preset {
  text-align: left; padding: 13px 15px; border-radius: 12px; cursor: pointer;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.09);
  transition: border-color .16s, background .16s;
}
.preset:hover { border-color: rgba(255,255,255,.22); }
.preset b { display: block; font-size: .95rem; font-weight: 650; }
.preset small { display: block; margin-top: 3px; font-size: .78rem; color: #79839a; line-height: 1.4; }
.preset.is-on { background: rgba(99,102,241,.13); border-color: rgba(129,140,248,.62); }
.preset.is-on b { color: #c7d2fe; }

/* ---------------------------- lanjutan/opsi --------------------------- */
.adv { margin-top: 16px; border-top: 1px solid rgba(255,255,255,.07); padding-top: 14px; }
.adv summary { cursor: pointer; font-size: .89rem; color: #9aa3b4; user-select: none; }
.adv summary:hover { color: #e6e9f0; }
.adv-body { padding-top: 14px; display: grid; gap: 18px; }
.opt > label { display: block; font-size: .89rem; font-weight: 550; margin-bottom: 7px; }
.opt p { margin-top: 6px; font-size: .8rem; color: #79839a; }
.opt-val { color: #a5b4fc; font-variant-numeric: tabular-nums; }
.opt input[type=range] { width: 100%; accent-color: #818cf8; }
.chk { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.chk input { width: 16px; height: 16px; accent-color: #818cf8; }

/* ------------------------------- tombol ------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 11px; cursor: pointer; font-weight: 600; font-size: .93rem;
  border: 1px solid transparent; transition: filter .16s, background .16s, border-color .16s;
}
.btn.primary { background: linear-gradient(135deg, #6366f1, #4f46e5); color: #fff; }
.btn.primary:hover:not(:disabled) { filter: brightness(1.13); }
.btn.ghost { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.13); color: #d7dce6; }
.btn.ghost:hover:not(:disabled) { background: rgba(255,255,255,.09); }
.btn.lg { width: 100%; margin-top: 18px; padding: 14px; font-size: 1rem; }
.btn.sm { padding: 6px 13px; font-size: .82rem; }
.btn:disabled { opacity: .42; cursor: not-allowed; }
.btn.is-busy { pointer-events: none; opacity: .75; }

/* ------------------------------ progres ------------------------------- */
.progress { margin-top: 16px; }
.bar { height: 7px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0%; border-radius: 99px; background: linear-gradient(90deg, #6366f1, #34d399); transition: width .18s; }
.progress-text { margin-top: 8px; font-size: .84rem; color: #9aa3b4; }

.err, .warn {
  margin-top: 14px; padding: 11px 14px; border-radius: 10px; font-size: .87rem;
  background: rgba(239,68,68,.10); border: 1px solid rgba(239,68,68,.32); color: #fca5a5;
}
.warn { background: rgba(245,158,11,.10); border-color: rgba(245,158,11,.32); color: #fcd34d; }

/* -------------------------------- hasil ------------------------------- */
.ab { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ab-label { font-size: .89rem; color: #9aa3b4; }
.ab-switch { display: inline-flex; padding: 3px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); }
.ab-btn { padding: 7px 15px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; font-size: .87rem; font-weight: 550; color: #9aa3b4; }
.ab-btn.is-on { background: rgba(99,102,241,.30); color: #fff; }
.ab-hint { margin-top: 9px; font-size: .8rem; color: #79839a; }

.dl { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.dl .btn { flex: 1 1 auto; }
.dl-note { margin-top: 11px; font-size: .8rem; color: #79839a; }

/* -------------------------------- info -------------------------------- */
.info { margin: 34px 0 24px; }
.info > h2 { font-size: 1.05rem; font-weight: 650; margin-bottom: 16px; color: #aeb6c6; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.info-grid h3 { font-size: .93rem; font-weight: 650; margin-bottom: 6px; color: #dfe4ee; }
.info-grid p { font-size: .87rem; color: #8b94a6; }
.info-grid b { color: #c7d2fe; font-weight: 600; }

.site-foot { padding: 26px 0 40px; border-top: 1px solid rgba(255,255,255,.06); margin-top: 20px; }
.site-foot p { font-size: .82rem; color: #6b7488; text-align: center; }

@media (max-width: 560px) {
  .card { padding: 18px; border-radius: 15px; }
  .hero { padding: 30px 0 26px; }
  .badge-priv { display: none; }
  .dl { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
