/* Round Table: hitam AMOLED, teks perak, warna hanya untuk "cahaya visor" (status & suara). */
@font-face { font-family: "Montserrat"; src: url("/assets/fonts/montserrat.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/geist-mono.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --bg: #000;
  --ink: #08090b;
  --panel: #0c0d10;
  --panel-2: #121318;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --line-3: rgba(255, 255, 255, 0.24);
  --text: #f1f2f4;
  --soft: #c9cbd1;
  --mute: #8e9099;
  --dim: #5f626b;
  --ice: #a7dcff; /* cahaya visor */
  --yes: #86e3bd;
  --no: #ff6f61;
  --wait: #e8c27a;
  --r: 14px;
  --r-sm: 9px;
  --gut: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --sans: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--sans); font-feature-settings: "tnum"; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(167, 220, 255, 0.25); }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.mono { font-family: var(--mono); font-feature-settings: normal; }
.mute { color: var(--mute); }
.dim { color: var(--dim); }
.soft { color: var(--soft); }
.num { font-variant-numeric: tabular-nums; }
.hide { display: none !important; }

/* ------------------------------------------------------------------ tipografi */
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.025em; line-height: 1.08; }
.h1 { font-size: clamp(36px, 4.8vw, 66px); }
.h2 { font-size: clamp(30px, 4.2vw, 54px); }
.h3 { font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.02em; line-height: 1.2; }
.two b, .two strong { font-weight: inherit; color: var(--mute); }
.lead { font-size: clamp(16px, 1.45vw, 19px); color: var(--soft); max-width: 60ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--line-3); }
p { margin: 0 0 1em; }

/* ------------------------------------------------------------------ tombol */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; font-weight: 500; font-size: 15px; cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s; white-space: nowrap; }
.btn:hover { border-color: var(--line-3); background: rgba(255, 255, 255, 0.04); }
.btn.primary { background: #fff; color: #000; border-color: #fff; }
.btn.primary:hover { background: #e6e7ea; }
.btn.sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn[disabled], .btn.off { opacity: 0.55; cursor: not-allowed; }
.btn.accent { border-color: rgba(167, 220, 255, 0.45); color: var(--ice); }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--soft); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: color 0.2s, border-color 0.2s; }
.link:hover { color: #fff; border-color: var(--line-3); }
.link::after { content: "→"; font-size: 0.9em; }
.ext::after { content: "↗"; }

/* ------------------------------------------------------------------ kepala halaman */
.hd { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s; border-bottom: 1px solid transparent; }
.hd.solid { background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); border-bottom-color: var(--line); }
.hd-in { display: flex; align-items: center; gap: 22px; height: 68px; max-width: 1360px; margin: 0 auto; padding: 0 var(--gut); }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand svg { width: 30px; height: 30px; }
.wordmark { font: 500 13.5px/1 var(--sans); letter-spacing: 0.34em; }
.nav { display: flex; gap: 4px; margin-left: 10px; }
.nav a { padding: 8px 12px; border-radius: 999px; font-size: 14px; color: var(--soft); transition: color 0.2s, background 0.2s; }
.nav a:hover, .nav a.on { color: #fff; background: rgba(255, 255, 255, 0.06); }
.hd-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ca-chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); font: 400 13px/1 var(--mono); color: var(--soft); cursor: pointer; background: transparent; }
.ca-chip b { font-family: var(--sans); font-weight: 600; color: #fff; letter-spacing: 0.02em; }
.ca-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--wait); box-shadow: 0 0 10px var(--wait); }
.ca-chip.live .dot { background: var(--yes); box-shadow: 0 0 10px var(--yes); }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--soft); transition: color 0.2s, border-color 0.2s; }
.icon-btn:hover { color: #fff; border-color: var(--line-3); }
.icon-btn svg { width: 15px; height: 15px; }
.menu-btn { display: none; }
@media (max-width: 980px) {
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
  .hd-end .ca-chip span.addr { display: none; }
  .hd.open .nav { display: flex; position: fixed; top: 68px; left: 0; right: 0; flex-direction: column; padding: 12px var(--gut) 20px; background: rgba(0, 0, 0, 0.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
  .hd.open .nav a { padding: 14px 4px; font-size: 17px; border-radius: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .hd-end .x-link, .hd-end .tg-link { display: none; }
  .hd-end .btn.desk { display: none; }
}

/* ------------------------------------------------------------------ bagian umum */
section { position: relative; }
.sec { padding: clamp(80px, 11vw, 150px) 0; }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 760px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { position: relative; border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.005)); padding: 22px; }
.card h3 { font-size: 18px; letter-spacing: -0.015em; margin-bottom: 8px; }
.card p { color: var(--mute); font-size: 15px; margin: 0; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); font: 500 11.5px/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--soft); white-space: nowrap; }
.tag.yes { background: rgba(134, 227, 189, 0.1); color: var(--yes); }
.tag.no { background: rgba(255, 111, 97, 0.1); color: var(--no); }
.tag.wait { background: rgba(232, 194, 122, 0.1); color: var(--wait); }
.tag.ice { background: rgba(167, 220, 255, 0.1); color: var(--ice); }

/* ------------------------------------------------------------------ pita angka live */
.proof { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof > div { padding: 22px 20px; border-left: 1px solid var(--line); }
.proof > div:first-child { border-left: 0; }
.proof .k { font: 500 11.5px/1.3 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }
.proof .v { margin-top: 10px; font-size: clamp(22px, 2.4vw, 32px); font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.proof .s { margin-top: 4px; font-size: 13px; color: var(--dim); }
@media (max-width: 900px) {
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof > div { border-left: 0; border-top: 1px solid var(--line); }
  .proof > div:nth-child(even) { border-left: 1px solid var(--line); }
  .proof > div:nth-child(-n + 2) { border-top: 0; }
  .proof > div:last-child { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------------ tabel */
.tbl-wrap { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.tbl-scroll { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { text-align: left; font: 500 11.5px/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; background: rgba(255, 255, 255, 0.015); }
.tbl td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.r, .tbl th.r { text-align: right; }
.tbl tbody tr { transition: background 0.15s; }
.tbl tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
.empty { padding: 44px 20px; text-align: center; color: var(--mute); }
.empty b { display: block; color: var(--text); font-weight: 600; margin-bottom: 6px; }

/* ------------------------------------------------------------------ kaki halaman */
.ft { border-top: 1px solid var(--line); padding: 64px 0 40px; margin-top: 40px; }
.ft-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.ft h4 { margin: 0 0 14px; font: 500 11.5px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.ft a { display: block; color: var(--soft); font-size: 14.5px; padding: 4px 0; }
.ft a:hover { color: #fff; }
.ft a.brand { display: inline-flex; padding: 0; }
.ft-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }
@media (max-width: 760px) { .ft-grid { grid-template-columns: 1fr 1fr; } .ft-grid > :first-child { grid-column: 1 / -1; } }

/* ------------------------------------------------------------------ halaman dalam */
.page-hero { padding: 150px 0 56px; border-bottom: 1px solid var(--line); background: radial-gradient(60% 120% at 50% -20%, rgba(167, 220, 255, 0.07), transparent 60%); }
.page-hero .lead { margin-top: 18px; }
.addr { font: 400 13.5px/1.4 var(--mono); color: var(--soft); word-break: break-all; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 10px 22px; font-size: 14.5px; }
.kv dt { color: var(--mute); }
.kv dd { margin: 0; font-variant-numeric: tabular-nums; }
.note { border: 1px solid var(--line); border-left: 2px solid var(--wait); border-radius: var(--r-sm); padding: 14px 16px; color: var(--soft); font-size: 14.5px; background: rgba(232, 194, 122, 0.03); }
.note.ice { border-left-color: var(--ice); background: rgba(167, 220, 255, 0.03); }
.copy { cursor: pointer; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; z-index: 90; background: #fff; color: #000; padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; transition: opacity 0.25s, transform 0.25s; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
pre.code { margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--ink); overflow-x: auto; font: 400 13.5px/1.65 var(--mono); color: var(--soft); }

/* gerak masuk saat digulir (dimatikan untuk reduced-motion) */
/* hanya disembunyikan bila JS hidup: tanpa JS konten tetap terlihat */
.js .rv { opacity: 0; transform: translateY(16px); transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------------ feed (dipakai beranda & halaman agen) */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.feed li:last-child { border-bottom: 0; }
.feed .what { color: var(--soft); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed .when { color: var(--dim); font-size: 12.5px; white-space: nowrap; }
.votes { display: inline-flex; gap: 3px; }
.votes i { width: 7px; height: 14px; border-radius: 2px; background: rgba(255, 111, 97, 0.65); }
.votes i.y { background: var(--yes); }
