:root {
  --bg: #0e1013;
  --surface: #171a1f;
  --surface-2: #1e2229;
  --line: #2a2f37;
  --text: #ece7da;
  --muted: #a7a196;
  --gold: #c9a227;
  --gold-bright: #e6c35a;
  --on-gold: #241a00;
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 520px at 85% -10%, rgba(201, 162, 39, 0.12), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  display: flex;
  flex-direction: column;
}

a { color: var(--gold-bright); }

/* Lebar konten sama untuk semua bagian agar garis pemisah sejajar (16px tepi di HP). */
.topbar,
main,
.footer {
  width: min(100% - 32px, 1088px);
  margin-inline: auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.topbar-link {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}
.topbar-link:hover { color: var(--text); }

main { flex: 1; }

.hero {
  display: grid;
  gap: 40px;
  align-items: center;
  padding: 48px 0 56px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lead {
  max-width: 560px;
  margin: 16px 0 32px;
  color: var(--muted);
  font-size: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--gold); color: var(--on-gold); }
.btn-primary:hover { background: var(--gold-bright); }

.btn-secondary { border-color: var(--gold); color: var(--gold-bright); background: transparent; }
.btn-secondary:hover { background: rgba(201, 162, 39, 0.1); }

.btn.is-disabled {
  border-color: var(--line);
  color: var(--muted);
  cursor: not-allowed;
  pointer-events: none;
}

.btn:focus-visible,
a:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 3px;
}

.meta {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.qr-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.qr-card h2 { margin: 0 0 4px; font-size: 18px; }
.qr-card p { margin: 0; color: var(--muted); font-size: 14px; }

.qr {
  flex: none;
  width: 148px;
  height: 148px;
  padding: 10px;
  background: #fff;
  border-radius: 10px;
}
.qr svg { display: block; width: 100%; height: 100%; }

.section { padding: 40px 0; border-top: 1px solid var(--line); }
.section h2 { margin: 0 0 20px; font-size: 24px; letter-spacing: -0.01em; }

.steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: langkah;
}
.steps li {
  position: relative;
  padding: 18px 18px 18px 64px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: langkah;
}
.steps li::before {
  content: counter(langkah);
  position: absolute;
  left: 18px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.15);
  color: var(--gold-bright);
  font-weight: 700;
}
.steps h3,
.features h3 { margin: 0 0 4px; font-size: 16px; }
.steps p,
.features p { margin: 0; color: var(--muted); font-size: 15px; }

.features { display: grid; gap: 12px; }
.features article {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.features svg { width: 28px; height: 28px; margin-bottom: 10px; fill: var(--gold); }

.changelog p { margin: 0; color: var(--muted); white-space: pre-line; }

.footer {
  padding-top: 24px;
  padding-bottom: 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.footer p { margin: 4px 0; }

@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 960px) {
  .hero { grid-template-columns: 1.4fr 1fr; padding: 80px 0 88px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .qr-card { flex-direction: column; align-items: flex-start; padding: 28px; }
  .qr { width: 200px; height: 200px; }
}

/* Di HP tombol memenuhi lebar; kode QR tidak berguna di layar HP sendiri. */
@media (max-width: 599px) {
  .btn { width: 100%; }
  .qr-card { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
