/* ============================================================
   Klipin — Premium dark design system
   ============================================================ */
:root {
  --bg: #07080d;
  --bg-2: #0b0d14;
  --surface: #12141c;
  --surface-2: #171a24;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f6fb;
  --muted: #9aa3b2;
  --muted-2: #6b7280;
  --v1: #7c5cff;   /* violet */
  --v2: #5b8def;   /* indigo */
  --v3: #22d3ee;   /* cyan   */
  --good: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --grad: linear-gradient(100deg, var(--v1) 0%, var(--v2) 50%, var(--v3) 100%);
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .logo-text, .price-amount, .hero-title {
  font-family: "Poppins", sans-serif;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Aurora background ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(1000px 600px at 50% -15%, rgba(124, 92, 255, 0.16), transparent 60%),
    var(--bg);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: float 18s ease-in-out infinite;
}
.blob-1 { width: 520px; height: 520px; top: -140px; left: -120px;
  background: radial-gradient(circle, rgba(124,92,255,0.55), transparent 70%); }
.blob-2 { width: 480px; height: 480px; top: 20%; right: -160px;
  background: radial-gradient(circle, rgba(34,211,238,0.40), transparent 70%);
  animation-delay: -6s; }
.blob-3 { width: 560px; height: 560px; bottom: -220px; left: 30%;
  background: radial-gradient(circle, rgba(91,141,239,0.42), transparent 70%);
  animation-delay: -11s; }
@keyframes float {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(30px,-40px) scale(1.08); }
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(9, 10, 16, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.logo-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--grad);
  color: #fff; font-size: 17px;
  box-shadow: 0 6px 20px rgba(124, 92, 255, 0.45);
}
.logo-text { font-size: 20px; font-weight: 800; }
.nav-links {
  display: flex; gap: 28px; margin-left: auto;
  font-size: 14.5px; color: var(--muted); font-weight: 500;
}
.nav-links a { transition: color .15s; }
.nav-links a:hover { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-family: "Inter", sans-serif;
  font-weight: 600; font-size: 15px;
  border-radius: 12px;
  padding: 11px 20px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s, box-shadow .2s, filter .15s, background .2s, border-color .2s;
  white-space: nowrap;
}
.btn-nav { margin-left: 4px; }
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 26px rgba(124, 92, 255, 0.4);
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 14px 40px rgba(124, 92, 255, 0.55);
}
.btn-primary:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn-nav.btn { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(124,92,255,.35); }
.btn-outline {
  background: rgba(255,255,255,0.03);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--v1); background: rgba(124,92,255,0.08); }
.btn-lg { padding: 15px 28px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; margin-top: 22px; padding: 15px; font-size: 16px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* ---------- Sections ---------- */
main { display: block; }
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 90px 24px;
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--v3);
  margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; line-height: 1.15; }
.section-sub { color: var(--muted); margin-top: 14px; font-size: 16px; }

/* ---------- Hero ---------- */
.hero { padding: 70px 24px 40px; }
.hero-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.badge-beta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: 999px;
  background: rgba(124, 92, 255, 0.1);
  border: 1px solid rgba(124, 92, 255, 0.3);
  color: #c9bcff; font-size: 13.5px; font-weight: 500;
  margin-bottom: 26px;
}
.badge-beta .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--v3); box-shadow: 0 0 12px var(--v3);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }
.hero-title {
  font-size: clamp(34px, 6.4vw, 66px);
  font-weight: 900;
  line-height: 1.06;
  margin-bottom: 22px;
}
.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
  max-width: 640px; margin: 0 auto 34px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 18px; justify-content: center; flex-wrap: wrap;
  margin-top: 56px;
}
.stat {
  display: flex; flex-direction: column;
  padding: 18px 26px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 160px;
  backdrop-filter: blur(6px);
}
.stat b { font-family: "Poppins"; font-size: 26px; font-weight: 800; }
.stat b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: 13.5px; margin-top: 2px; }

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.feature-card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.fc-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; font-size: 26px;
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.25);
  margin-bottom: 18px;
}
.feature-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 15px; }

/* ---------- Steps ---------- */
.steps {
  display: flex; align-items: stretch; justify-content: center;
  gap: 8px; flex-wrap: wrap;
}
.step {
  flex: 1; min-width: 240px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  text-align: center;
}
.step-num {
  width: 46px; height: 46px; margin: 0 auto 16px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-family: "Poppins"; font-weight: 800; font-size: 20px;
  background: var(--grad); color: #fff;
  box-shadow: 0 8px 22px rgba(124,92,255,.4);
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; }
.step-line {
  align-self: center; flex: 0 0 40px; height: 2px;
  background: linear-gradient(90deg, var(--v1), var(--v3));
  opacity: .5; border-radius: 2px;
}

/* ---------- Compare table ---------- */
.compare { max-width: 780px; margin: 0 auto; }
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.compare-table th, .compare-table td {
  padding: 16px 20px;
  text-align: left;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
}
.compare-table thead th {
  font-family: "Poppins"; font-weight: 700; font-size: 15px;
  background: rgba(255,255,255,0.02);
  color: var(--text);
}
.compare-table th.col-us, .compare-table td:nth-child(2) { text-align: center; }
.compare-table td:nth-child(3), .compare-table th:nth-child(3) { text-align: center; color: var(--muted); }
.compare-table .col-us {
  color: transparent;
  background: linear-gradient(rgba(255,255,255,0.02), rgba(255,255,255,0.02));
}
.compare-table .col-us .brand-name {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.compare-table .yes { color: var(--good); font-weight: 700; }
.compare-table .no { color: var(--muted-2); }
.compare-table .price-cell {
  font-weight: 800; font-family: "Poppins";
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Tool section ---------- */
.tool-section .tool-wrap { max-width: 900px; margin: 0 auto; }
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
}
.hidden { display: none !important; }

/* dropzone */
.dropzone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 52px 20px;
  text-align: center;
  cursor: pointer;
  transition: .2s;
  background: rgba(255,255,255,0.015);
}
.dropzone:hover, .dropzone.drag {
  border-color: var(--v1);
  background: rgba(124, 92, 255, 0.07);
}
.dz-icon { font-size: 48px; }
.dz-title { font-size: 19px; font-weight: 700; margin-top: 10px; font-family: "Poppins"; }
.dz-sub { color: var(--muted); font-size: 13px; margin-top: 6px; }
.file-name { margin-top: 14px; color: #c9bcff; font-weight: 600; }

/* kode akses */
.access-code { margin-top: 18px; }
.access-code label {
  display: block; font-size: 14px; color: var(--muted); margin-bottom: 8px;
}
.access-code label .opt { opacity: .6; }
.access-code input {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  background: var(--bg-2); border: 1px solid var(--border-strong);
  color: var(--text); font-size: 14px; letter-spacing: .04em;
}
.access-code input:focus {
  outline: none; border-color: rgba(124,92,255,0.6);
}
.access-status { margin-top: 8px; font-size: 13px; min-height: 18px; }
.access-status.ok { color: #4ae08a; }
.access-status.bad { color: #ffb4a0; }

/* settings */
.settings { margin-top: 20px; }
.settings summary {
  cursor: pointer; color: var(--muted); font-size: 14px; user-select: none;
  padding: 8px 0;
}
.settings summary:hover { color: var(--text); }
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.settings-grid label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; color: var(--muted);
}
.settings-grid input, .settings-grid select,
.music-picker select {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color .15s;
}
.settings-grid input:focus, .settings-grid select:focus,
.music-picker select:focus { outline: none; border-color: var(--v1); }

/* music picker */
.music-picker {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 10px;
}
.music-picker > label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; color: var(--muted);
}
.music-or {
  text-align: center; font-size: 12px; color: var(--muted-2);
  letter-spacing: .08em; margin: -2px 0;
}
.music-upload { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.music-file-name { font-size: 13px; color: #c9bcff; font-weight: 600; }
.music-controls {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px;
}
.music-controls audio { width: 100%; height: 36px; }
.music-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.music-start { font-size: 13px; color: #c9bcff; font-weight: 600; }
.music-vol {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; color: var(--muted);
}
.music-vol input[type="range"] { accent-color: var(--v1); }
.music-hint { font-size: 12px; color: var(--muted); }
.music-hint code {
  background: var(--bg); border: 1px solid var(--border);
  padding: 1px 6px; border-radius: 6px; font-size: 11px; color: #c9bcff;
}

/* ghost button (used inside tool) */
.btn-ghost {
  background: transparent; color: #c9bcff;
  border: 1px solid var(--border-strong); border-radius: 10px;
  padding: 8px 14px; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.btn-ghost:hover { border-color: var(--v1); background: rgba(124,92,255,0.08); }

/* progress */
.spinner {
  width: 42px; height: 42px; margin: 4px auto 18px;
  border: 4px solid var(--border-strong);
  border-top-color: var(--v1);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.progress-stage { text-align: center; font-weight: 700; font-size: 18px; font-family: "Poppins"; }
.progress-message { text-align: center; color: var(--muted); margin: 6px 0 18px; min-height: 20px; }
.progress-track {
  height: 12px; background: var(--bg);
  border-radius: 99px; overflow: hidden; border: 1px solid var(--border);
}
.progress-bar {
  height: 100%; width: 0%;
  background: var(--grad);
  transition: width .4s ease;
}
.hint { color: var(--muted); font-size: 12px; text-align: center; margin-top: 16px; }

/* results */
.results-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 22px; gap: 12px; flex-wrap: wrap;
}
.results-head h2 { font-size: 22px; }
.clips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.clip {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s, border-color .2s;
}
.clip:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.clip video { width: 100%; height: auto; max-height: 540px; object-fit: contain; display: block; background: #000; }
.clip-body { padding: 14px 15px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.clip-title { font-weight: 700; font-size: 14.5px; line-height: 1.35; }
.clip-meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 11px; color: var(--muted); }
.badge {
  background: var(--bg); border: 1px solid var(--border);
  padding: 3px 9px; border-radius: 99px;
}
.badge.score { color: var(--good); border-color: rgba(52,211,153,0.35); }
.clip-reason { font-size: 12.5px; color: var(--muted); font-style: italic; }
.clip-dl {
  margin-top: auto; text-align: center;
  background: var(--grad); color: #fff; text-decoration: none;
  padding: 10px; border-radius: 10px; font-weight: 600; font-size: 13px;
  transition: filter .15s, transform .15s;
}
.clip-dl:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* error */
.err-icon { font-size: 42px; text-align: center; }
.err-message { text-align: center; color: var(--warn); margin: 12px 0 18px; }
#error-card { text-align: center; }

/* ---------- Pricing ---------- */
.pricing {
  display: flex; justify-content: center; align-items: stretch;
  flex-wrap: wrap; gap: 20px;
}
.price-card {
  position: relative;
  width: 100%; max-width: 280px; flex: 1 1 240px;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: 34px 26px 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.price-card.featured { border-color: rgba(124,92,255,0.6); transform: translateY(-8px); }
.price-card.lifetime { border-color: rgba(255,196,84,0.55); }
.price-card.lifetime::before { background: linear-gradient(135deg, #ffd97a, #f0a53c); opacity: .55; }
.price-badge.badge-gold {
  background: rgba(255,196,84,0.15); color: #ffd79a;
  border-color: rgba(255,196,84,0.4);
}
.price-card .btn-block { margin-top: auto; }
.price-card::before {
  content: ""; position: absolute; inset: 0;
  padding: 1px; border-radius: 24px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .5;
  pointer-events: none;
}
.price-badge {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: .05em;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(124,92,255,0.15); color: #c9bcff;
  border: 1px solid rgba(124,92,255,0.3);
  margin-bottom: 18px;
}
.price-name { font-size: 16px; color: var(--muted); font-weight: 600; }
.price-amount {
  font-family: "Poppins"; font-weight: 900; font-size: 58px; line-height: 1;
  margin: 6px 0 4px;
}
.price-amount .cur { font-size: 24px; vertical-align: super; margin-right: 4px; color: var(--muted); }
.price-amount .per { font-size: 18px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.price-desc { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.price-list { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 26px; }
.price-list li { font-size: 15px; color: var(--text); }
.price-list li::first-letter { color: var(--good); }
.price-foot { text-align: center; color: var(--muted); font-size: 13px; margin-top: 14px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 4px 22px;
  transition: border-color .2s;
}
.faq-item[open] { border-color: var(--border-strong); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; list-style: none;
  padding: 18px 0;
  font-family: "Poppins"; font-weight: 600; font-size: 16.5px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { font-size: 24px; color: var(--v1); transition: transform .25s; font-weight: 400; }
.faq-item[open] .faq-plus { transform: rotate(45deg); }
.faq-item p { color: var(--muted); font-size: 15px; padding: 0 0 20px; }

/* ---------- CTA final ---------- */
.cta-final {
  max-width: 820px; margin: 40px auto 0; padding: 70px 30px 90px;
  text-align: center;
}
.cta-final h2 { font-size: clamp(28px, 5vw, 46px); font-weight: 900; margin-bottom: 14px; }
.cta-final p { color: var(--muted); font-size: 18px; margin-bottom: 30px; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.3);
}
.footer-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 44px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
}
.footer-tag { color: var(--muted); font-size: 15px; }
.footer-copy { color: var(--muted-2); font-size: 13px; margin-top: 6px; }

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
}
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .blob { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .nav-links { display: none; }
  .section { padding: 64px 20px; }
  .hero { padding: 40px 20px 20px; }
  .step-line { display: none; }
  .hero-stats { gap: 12px; }
  .stat { min-width: 140px; padding: 14px 18px; }
  .card { padding: 22px; }
  .compare-table th, .compare-table td { padding: 13px 12px; font-size: 13.5px; }
}
