:root {
  --bg: #0b1020;
  --bg2: #111833;
  --card: #141c38;
  --line: #243056;
  --text: #e8ecf8;
  --muted: #8f9bc2;
  --accent: #2ee6a6;
  --accent-ink: #062218;
  --ok: #2ee6a6;
  --bad: #ff5d73;
  --warn: #ffc24b;
  --skip: #7c88b3;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 14px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f5f7fc; --bg2: #ffffff; --card: #ffffff; --line: #dde3f0;
  --text: #121a33; --muted: #5d6888; --accent: #0aa873; --accent-ink: #ffffff;
  --ok: #0a9e6c; --bad: #e0384f; --warn: #c98a00; --skip: #7a84a3;
  --shadow: 0 8px 24px rgba(20,30,70,.08);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: radial-gradient(1200px 500px at 70% -10%, rgba(46,230,166,.08), transparent 60%), var(--bg);
  color: var(--text);
  font: 15px/1.6 "Plus Jakarta Sans", system-ui, sans-serif;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
main.wrap { flex: 1; }
.mono, .num { font-family: "JetBrains Mono", ui-monospace, monospace; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(10px); background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { white-space: nowrap; color: var(--muted); padding: 6px 12px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.nav a:hover { color: var(--text); text-decoration: none; background: var(--bg2); }
.nav a.active { color: var(--text); background: var(--bg2); box-shadow: inset 0 -2px 0 var(--accent); }
.tools { display: flex; gap: 6px; }
.icon-btn { background: var(--bg2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; height: 34px; min-width: 38px; font: 600 12px "JetBrains Mono", monospace; cursor: pointer; }
.demo-banner { background: var(--warn); color: #241a00; text-align: center; font-weight: 600; font-size: 13px; padding: 6px 16px; }

/* hero */
.eyebrow { color: var(--accent); font: 600 12px "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 8px; }
h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.1; letter-spacing: -.03em; margin: 0 0 12px; }
h2 { font-size: 22px; letter-spacing: -.02em; margin: 0 0 16px; }
h3 { font-size: 16px; margin: 6px 0; }
.lead { color: var(--muted); font-size: 17px; max-width: 620px; margin: 0 auto 26px; }
.lead.small { font-size: 14px; margin: 0; }
.hero { text-align: center; padding: 56px 0 28px; }
.search { display: flex; align-items: center; max-width: 520px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 18px; box-shadow: var(--shadow); transition: border-color .2s; }
.search:focus-within { border-color: var(--accent); }
.search .at { color: var(--muted); font: 600 18px "JetBrains Mono", monospace; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: 500 18px "JetBrains Mono", monospace; padding: 10px 6px; }
.btn { background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 999px; padding: 12px 26px; font: 700 15px "Plus Jakarta Sans", sans-serif; cursor: pointer; transition: transform .1s, opacity .2s; }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); padding: 8px 16px; font-size: 13px; }
.hint { color: var(--muted); font-size: 13px; min-height: 20px; margin-top: 12px; }

/* result */
.result { max-width: 760px; margin: 8px auto 40px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; animation: rise .35s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.profile { display: flex; gap: 16px; align-items: center; padding: 20px; border-bottom: 1px solid var(--line); }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--bg2); flex: none; object-fit: cover; display: grid; place-items: center; font-weight: 800; font-size: 24px; color: var(--muted); border: 1px solid var(--line); }
.profile .name { font-weight: 800; font-size: 18px; display: flex; align-items: center; gap: 6px; }
.profile .handle { color: var(--muted); font-family: "JetBrains Mono", monospace; font-size: 14px; }
.profile .meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 4px; }
.profile .meta b { color: var(--text); }
.verdict { padding: 14px 20px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.verdict.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.verdict.bad { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
.verdict.warn { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); }
.tests { list-style: none; margin: 0; padding: 0; }
.tests li { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: start; padding: 16px 20px; border-top: 1px solid var(--line); }
.dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.dot.clear { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.dot.banned { background: color-mix(in srgb, var(--bad) 18%, transparent); color: var(--bad); }
.dot.unknown { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.dot.skipped { background: color-mix(in srgb, var(--skip) 18%, transparent); color: var(--skip); }
.tests .tname { font-weight: 700; }
.tests .tdesc { color: var(--muted); font-size: 14px; }
.tests .tlink { font-size: 12px; font-family: "JetBrains Mono", monospace; }
.pill { font: 600 11px "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .06em; padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
.pill.clear { color: var(--ok); border: 1px solid var(--ok); }
.pill.banned { color: var(--bad); border: 1px solid var(--bad); }
.pill.unknown { color: var(--warn); border: 1px solid var(--warn); }
.pill.skipped { color: var(--skip); border: 1px solid var(--skip); }
.result-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.skeleton { padding: 28px 20px; }
.skeleton .bar { height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--bg2), var(--line), var(--bg2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; margin: 12px 0; }
@keyframes shimmer { to { background-position: -200% 0; } }
.scan { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.radar { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-box { padding: 20px; color: var(--bad); font-weight: 600; }

/* explain */
.explain { padding: 20px 0 50px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card p { color: var(--muted); font-size: 14px; margin: 0; }
.tag { font: 600 11px "JetBrains Mono", monospace; color: var(--accent); }
.fine { color: var(--muted); font-size: 13px; margin-top: 18px; }

/* trends */
.trends-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: 40px 0 18px; }
.trends-head h1 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 4px; }
.tr-controls { display: flex; gap: 8px; flex-wrap: wrap; }
select, input[type=search] { background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font: 500 14px "Plus Jakarta Sans", sans-serif; outline: 0; }
select:focus, input[type=search]:focus { border-color: var(--accent); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tab { background: none; border: 0; color: var(--muted); font: 600 14px "Plus Jakarta Sans", sans-serif; padding: 10px 14px; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tab.active { color: var(--text); border-bottom-color: var(--accent); }
.loading, .empty { color: var(--muted); padding: 40px 0; text-align: center; }

.timeline { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 14px; scroll-snap-type: x mandatory; }
.tcard { flex: 0 0 270px; scroll-snap-align: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tcard h3 { margin: 0; padding: 12px 14px; font: 600 13px "JetBrains Mono", monospace; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); background: var(--bg2); }
.tcard h3 .ago { color: var(--muted); font-weight: 400; }
.tcard ol { list-style: none; margin: 0; padding: 6px 0; max-height: 640px; overflow-y: auto; }
.tcard li { display: grid; grid-template-columns: 26px 1fr auto; gap: 6px; padding: 5px 14px; font-size: 14px; align-items: baseline; }
.tcard li:hover { background: var(--bg2); }
.tcard .rk { color: var(--muted); font: 12px "JetBrains Mono", monospace; text-align: right; }
.tcard .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.tcard .ct { color: var(--muted); font: 11px "JetBrains Mono", monospace; }
.hl { background: color-mix(in srgb, var(--accent) 22%, transparent); border-radius: 4px; }

.ttable { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tablewrap { overflow-x: auto; border-radius: var(--radius); }
.ttable th, .ttable td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; white-space: nowrap; }
.ttable th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; background: var(--bg2); }
.ttable td.num, .ttable th.num { text-align: right; font-family: "JetBrains Mono", monospace; }
.ttable td.name a { color: var(--text); font-weight: 600; }
.chg { font: 600 12px "JetBrains Mono", monospace; }
.chg.up { color: var(--ok); } .chg.down { color: var(--bad); } .chg.new { color: var(--warn); } .chg.same { color: var(--muted); }
.spark { display: block; }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stats3 ol { margin: 8px 0 0; padding-left: 22px; }
.stats3 li { padding: 4px 0; }
.stats3 li span { color: var(--muted); font: 12px "JetBrains Mono", monospace; margin-left: 6px; }


/* ---------- umum */
.small { font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.brand img { display: block; height: 28px; width: auto; }
a.icon-btn { display: grid; place-items: center; padding: 0 8px; }
a.icon-btn:hover { text-decoration: none; }
#themeBtn { display: grid; place-items: center; }
.announce { background: var(--accent); color: var(--accent-ink); text-align: center; font-weight: 600; font-size: 14px; padding: 8px 16px; }
.announce a { color: inherit; text-decoration: underline; }
.admin-strip { font-size: 13px; padding-top: 8px; color: var(--muted); }
.verified { color: var(--accent); }
.section { padding: 10px 0 40px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.section-head a { font-weight: 600; font-size: 14px; }
.ad { margin: 0 auto 28px; text-align: center; overflow: hidden; max-width: 100%; }
.ad-result { max-width: 760px; }
.seo-text { padding-top: 34px; }

/* chips trending di beranda */
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; color: var(--text); font-weight: 600; font-size: 14px; }
.chips a:hover { border-color: var(--accent); text-decoration: none; }
.chips .rk { color: var(--accent); font: 600 12px "JetBrains Mono", monospace; }
.chips small { color: var(--muted); font: 11px "JetBrains Mono", monospace; }

/* kartu artikel */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .15s, border-color .15s; }
.post-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.post-card-link { display: block; color: inherit; height: 100%; }
.post-card-link:hover { text-decoration: none; }
.post-cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg2); }
.post-cover--empty { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 30%, var(--bg2)), var(--bg2) 70%); }
.post-card-body { padding: 16px 18px 18px; }
.post-card h3 { font-size: 17px; line-height: 1.35; margin: 6px 0 8px; }
.post-card p { color: var(--muted); font-size: 14px; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* daftar artikel */
.page-head { padding: 44px 0 24px; }
.blog-search input { width: 100%; max-width: 420px; margin-top: 16px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pill-link { font: 600 12px "JetBrains Mono", monospace; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; color: var(--muted); }
.pill-link:hover, .pill-link.on { color: var(--accent); border-color: var(--accent); text-decoration: none; }
.pager { display: flex; justify-content: center; align-items: center; gap: 18px; padding: 30px 0 50px; font-weight: 600; }

/* artikel */
.article { max-width: 740px; margin: 0 auto; padding: 32px 0 20px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.article-head h1 { font-size: clamp(28px, 4.6vw, 42px); }
.article-head .tag-row { margin: 0 0 14px; }
.article-head .meta { margin: 10px 0 0; }
.article-cover { width: 100%; height: auto; border-radius: var(--radius); margin: 22px 0; border: 1px solid var(--line); }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin: 20px 0; }
.toc summary { font-weight: 700; cursor: pointer; }
.toc ol { margin: 10px 0 0; padding-left: 20px; }
.toc li.lv3 { margin-left: 16px; list-style: circle; }
.prose { font-size: 17px; line-height: 1.75; }
.prose h2 { font-size: 26px; margin: 38px 0 12px; scroll-margin-top: 80px; }
.prose h3 { font-size: 20px; margin: 28px 0 10px; scroll-margin-top: 80px; }
.prose p, .prose ul, .prose ol { margin: 0 0 18px; }
.prose li { margin: 6px 0; }
.prose img { max-width: 100%; height: auto; border-radius: 10px; }
.prose figure { margin: 24px 0; }
.prose figcaption { color: var(--muted); font-size: 14px; text-align: center; margin-top: 6px; }
.prose blockquote { margin: 22px 0; padding: 4px 18px; border-left: 3px solid var(--accent); color: var(--muted); }
.prose pre { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 14px; overflow-x: auto; font-size: 14px; }
.prose code { font-family: "JetBrains Mono", monospace; font-size: .9em; background: var(--bg2); padding: 2px 6px; border-radius: 4px; }
.prose pre code { background: none; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 10px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 30px 0; }
.prose .note, .prose .tip, .prose .warning, .prose .callout { padding: 14px 18px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); }
.prose .warning { border-color: var(--warn); }
.prose .tip { border-color: var(--accent); }
.share { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 30px 0 18px; font-weight: 600; font-size: 14px; }
.cta { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin: 24px 0; }

/* footer */
.foot { border-top: 1px solid var(--line); margin-top: 30px; }
.foot-in { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px 30px; padding: 28px 16px; font-size: 14px; }
.foot-in p { margin: 4px 0 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; align-content: flex-start; }
.foot-links a { color: var(--muted); }
.foot-in > .small { grid-column: 1 / -1; }

@media (max-width: 860px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-in { grid-template-columns: 1fr; }
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .stats3 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .post-grid { grid-template-columns: 1fr; }
  .prose { font-size: 16px; }
  .topbar-in { gap: 8px; }
  .icon-btn { min-width: 32px; }
  .brand span { display: none; }
  .nav { gap: 0; overflow-x: auto; }
  .nav a { padding: 6px 7px; font-size: 12.5px; }
  .grid4 { grid-template-columns: 1fr; }
  .hero { padding-top: 36px; }
  .btn { padding: 12px 18px; }
  .tests li { grid-template-columns: 30px 1fr; }
  .tests li .pill { grid-column: 2; justify-self: start; }
  .tcard { flex-basis: 85%; }
  .tr-controls { width: 100%; }
  .tr-controls > * { flex: 1; }
}
