:root {
  --bg: #0a0d14;
  --surface: #0f131d;
  --surface-2: #141925;
  --border: #1b2130;
  --border-2: #252c3b;
  --text: #e6e9f0;
  --muted: #8a93a6;
  --faint: #5d667a;
  --blue: #4f8ef7;
  --purple: #9d5cf5;
  --teal: #2ed3b7;
  --pink: #e8336b;
  --red: #e84a5f;
  --green: #3fd17a;
  --accent: linear-gradient(90deg, var(--blue), var(--purple));
  --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; display: block; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ---- Tombol ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 24px; border-radius: 999px; border: 1px solid var(--border-2);
  background: var(--surface-2); color: var(--text); font: inherit; font-weight: 600;
  cursor: pointer; transition: opacity .15s, transform .15s;
}
.btn:hover { opacity: .88; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: transparent; color: #fff; }
.btn-lg { padding: 16px 32px; font-size: 17px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-danger { color: #ffb3bd; border-color: #4a2330; background: #1d1219; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---- Navigasi ---- */
.nav { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); background: rgb(10 13 20 / .75); border-bottom: 1px solid var(--border); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand img { height: 26px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--text); }

/* ---- Hero ---- */
.hero { position: relative; padding: 96px 0 72px; text-align: center; overflow: hidden; }
.hero::before, .hero::after {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  filter: blur(120px); opacity: .28; z-index: -1;
}
.hero::before { background: var(--blue); top: -160px; left: 50%; transform: translateX(-90%); }
.hero::after { background: var(--purple); top: -120px; left: 50%; transform: translateX(-10%); }
.hero-logo { height: 96px; width: auto; margin: 0 auto 36px; }
.hero h1 { font-size: clamp(34px, 6vw, 58px); line-height: 1.1; margin: 0 0 18px; letter-spacing: -.02em; }
.gradient-text { background: linear-gradient(90deg, var(--teal), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { max-width: 640px; margin: 0 auto 36px; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.hero-meta { margin-top: 18px; color: var(--faint); font-size: 13px; }

/* ---- Section ---- */
section { padding: 72px 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--purple); margin-bottom: 10px; }
.section-head h2 { font-size: clamp(26px, 4vw, 36px); margin: 0; letter-spacing: -.01em; }
.section-head p { color: var(--muted); margin: 10px auto 0; max-width: 560px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.feature .icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgb(79 142 247 / .18), rgb(157 92 245 / .18)); color: #b9a4ff; margin-bottom: 16px;
}
.feature .icon svg { width: 22px; height: 22px; }
.feature h3 { margin: 0 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---- Langkah ---- */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 64px; }
.step::before {
  counter-increment: step; content: counter(step); position: absolute; left: 24px; top: 24px;
  width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
}
.step h3 { margin: 0 0 6px; font-size: 16px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---- Changelog ---- */
.changelog { max-width: 760px; margin-inline: auto; display: grid; gap: 14px; }
.release-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.release-head strong { font-size: 18px; }
.release-head span { color: var(--faint); font-size: 13px; }
.badge { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--accent); color: #fff; }
.notes { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.notes li { position: relative; padding-left: 18px; color: #c7cdd9; font-size: 14px; }
.notes li::before { content: ""; position: absolute; left: 2px; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: var(--purple); }

.empty { text-align: center; color: var(--muted); }

.note-box { max-width: 760px; margin: 28px auto 0; padding: 16px 20px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border-2); color: var(--muted); font-size: 14px; }
.note-box strong { color: var(--text); }

footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--faint); font-size: 13px; }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---- Admin ---- */
.admin { max-width: 960px; margin: 40px auto; }
.admin-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; gap: 12px; flex-wrap: wrap; }
.admin h1 { font-size: 24px; margin: 0; }
.admin h2 { font-size: 18px; margin: 0 0 16px; }
.login { max-width: 400px; margin: 12vh auto; }
.login .brand { justify-content: center; margin-bottom: 24px; font-size: 18px; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 6px; }
.field { margin-bottom: 16px; }
.hint { font-size: 12px; color: var(--faint); margin-top: 6px; }
input[type=text], input[type=password], textarea, input[type=file] {
  width: 100%; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--border-2);
  background: var(--surface-2); color: var(--text); font: inherit;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--blue); }
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; }
.alert-error { background: #2a1219; border: 1px solid #5a2333; color: #ffb3bd; }
.alert-ok { background: #0f2a1d; border: 1px solid #1f5a3a; color: #a7f3c8; }
.progress { height: 8px; border-radius: 4px; background: var(--border); overflow: hidden; margin: 14px 0 4px; display: none; }
.progress > div { height: 100%; width: 0; background: var(--accent); transition: width .2s; }
code.hash { display: block; word-break: break-all; padding: 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border-2); font-size: 13px; margin: 8px 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--faint); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; padding: 0 12px 10px; }
td { padding: 12px; border-top: 1px solid var(--border); vertical-align: top; }
td ul { margin: 0; padding-left: 18px; color: var(--muted); }
.table-wrap { overflow-x: auto; }

@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
  .hero { padding: 64px 0 48px; }
  .hero-logo { height: 68px; }
  section { padding: 52px 0; }
  .grid { grid-template-columns: 1fr; }
}
