/* DIME — sistem desain bersama. Monokrom hitam–perak–putih mengikuti seni murai mekanik.
   Aksen satu-satunya = cahaya putih dingin (seperti garis cahaya di pelat murai). */
:root {
  --bg: #060607;
  --bg-2: #0b0c0e;
  --panel: rgba(16, 17, 20, 0.78);
  --panel-solid: #101114;
  --panel-2: #15161a;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #eceef1;
  --muted: #a2a5ad;
  --dim: #6c7079;
  --white: #ffffff;
  --silver: linear-gradient(180deg, #ffffff 0%, #d9dce2 45%, #9fa4ad 100%);
  --glow: 0 0 0 1px rgba(255,255,255,.18), 0 0 24px rgba(220,230,255,.12);
  --ok: #cfe9d8;
  --warn: #f1d9a6;
  --bad: #f0b4b4;
  --radius: 14px;
  --radius-lg: 22px;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --max: 1200px;
  --nav-h: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 15px/1.6 var(--sans); letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a.link, .prose a { color: var(--white); text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 3px; }
a.link:hover, .prose a:hover { text-decoration-color: var(--white); }
button { font: inherit; color: inherit; }
::selection { background: rgba(255,255,255,.85); color: #000; }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Navigasi ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: linear-gradient(180deg, rgba(6,6,7,.92), rgba(6,6,7,.72));
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line-2); }
.brand b { font-weight: 700; letter-spacing: .32em; font-size: 15px; padding-left: 2px; }
.nav-links { display: flex; gap: 22px; font-size: 14px; color: var(--muted); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--white); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-burger { display: none; background: none; border: 0; padding: 8px; margin-left: auto; cursor: pointer; }
.nav-burger span { display: block; width: 20px; height: 1.5px; background: var(--text); margin: 5px 0; }
@media (max-width: 860px) {
  .nav-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(8,8,10,.98); border-bottom: 1px solid var(--line); padding: 8px 24px 16px; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav.open .nav-links { display: flex; }
  .nav-burger { display: block; margin-left: 0; }
  .nav-right { margin-left: auto; }
  .nav-right .ca-chip { display: none; }
}

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2);
  background: transparent; color: var(--text); font-size: 14px; font-weight: 500; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s; white-space: nowrap;
}
.btn:hover { border-color: rgba(255,255,255,.32); background: rgba(255,255,255,.04); }
.btn-primary { background: var(--white); color: #050506; border-color: var(--white); }
.btn-primary:hover { background: #e7e9ee; border-color: #e7e9ee; box-shadow: 0 0 28px rgba(220,230,255,.25); }
.btn-sm { height: 32px; padding: 0 13px; font-size: 13px; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.arrow::after { content: '↗'; font-size: .95em; opacity: .8; }

/* ---------- Teks ---------- */
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.h1 { font-weight: 600; font-size: clamp(38px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -0.035em; margin: 0; }
.h2 { font-weight: 600; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -0.03em; margin: 0; }
.h3 { font-weight: 600; font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; margin: 0; }
.tone { color: #8b8f98; }                         /* nada kedua untuk judul dua warna */
.silver { background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 640px; }
.prose { color: var(--muted); line-height: 1.75; }
.prose strong { color: var(--text); font-weight: 600; }
.prose code, code.inline { font: 13px var(--mono); background: rgba(255,255,255,.06); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; color: var(--text); }

/* ---------- Panel & garis ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.panel-solid { background: var(--panel-solid); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.hair { border: 0; border-top: 1px solid var(--line); margin: 0; }
.section { padding: 112px 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
@media (max-width: 720px) { .section { padding: 72px 0; } }

/* Cincin HUD tersegmen — motif khas DIME (diambil dari seni murai) */
.ring { width: 100%; aspect-ratio: 1; }
.ring circle { fill: none; stroke: rgba(255,255,255,.75); stroke-width: 1.4; stroke-dasharray: 40 9 8 9; filter: drop-shadow(0 0 6px rgba(220,230,255,.5)); }
.ring.spin { animation: ringspin 60s linear infinite; transform-origin: 50% 50%; }
@keyframes ringspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ring.spin { animation: none; } }

/* Titik live */
.live { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--mono); letter-spacing: .08em; color: var(--muted); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--white); box-shadow: 0 0 10px rgba(255,255,255,.9); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(10,10,12,.6); font-size: 12.5px; color: var(--muted); }

/* Chip CA */
.ca-chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 6px 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); font: 12.5px var(--mono); color: var(--muted); cursor: pointer; }
.ca-chip b { color: var(--text); font-weight: 500; }
.ca-chip .copy { height: 22px; padding: 0 8px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--text); font-size: 11px; display: inline-flex; align-items: center; }

/* Tabel ledger */
.ledger { width: 100%; border-collapse: collapse; font-size: 14px; }
.ledger th { text-align: left; font: 500 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); padding: 12px 14px; border-bottom: 1px solid var(--line); }
.ledger td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ledger tr:last-child td { border-bottom: 0; }
.ledger td.r, .ledger th.r { text-align: right; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Formulir */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; color: var(--muted); }
.input, .textarea, .select {
  width: 100%; background: rgba(255,255,255,.03); border: 1px solid var(--line-2); border-radius: 12px; color: var(--text);
  font: 15px var(--sans); padding: 11px 14px; outline: none; transition: border-color .15s, background .15s;
}
.input:focus, .textarea:focus, .select:focus { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.05); }
.textarea { resize: vertical; min-height: 96px; line-height: 1.55; }
.hint { font-size: 12.5px; color: var(--dim); }

/* Struk (receipt) — komponen khas DIME */
.receipt { font: 12.5px/1.6 var(--mono); color: var(--muted); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: rgba(255,255,255,.02); }
.receipt .row { display: flex; justify-content: space-between; gap: 16px; }
.receipt .row b { color: var(--text); font-weight: 500; }
.receipt .total { border-top: 1px dashed var(--line-2); margin-top: 6px; padding-top: 6px; }

/* Notifikasi kecil */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); opacity: 0; z-index: 200;
  background: #f2f3f6; color: #070708; padding: 11px 18px; border-radius: 999px; font-size: 14px; font-weight: 500;
  transition: opacity .2s, transform .2s; pointer-events: none; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Modal */
.modal-back { position: fixed; inset: 0; z-index: 150; background: rgba(0,0,0,.66); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-back.open { display: flex; }
.modal { width: min(460px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 26px; }
.modal h3 { margin: 0 0 6px; font-size: 19px; }
.wallet-list { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.wallet-list button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255,255,255,.02); cursor: pointer; text-align: left; }
.wallet-list button:hover { border-color: rgba(255,255,255,.35); }
.wallet-list img { width: 26px; height: 26px; border-radius: 6px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; color: var(--muted); font-size: 14px; }
.footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { font: 500 11.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin: 0 0 14px; }
.footer a { display: block; padding: 4px 0; }
.footer a:hover { color: var(--white); }
.footer .legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 12.5px; color: var(--dim); }
@media (max-width: 760px) { .footer .cols { grid-template-columns: 1fr 1fr; } }

/* Kotak kosong yang jujur */
.empty { padding: 28px; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); text-align: center; font-size: 14px; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--line-2); color: var(--muted); }
.tag.free { color: #050506; background: #e9ecf1; border-color: #e9ecf1; }
.grid { display: grid; gap: 16px; }
.footer .brand { display: flex; }
