/* Layout: landing penuh lebar dengan mock dock 3 kolom; dashboard & tutorial memakai sidebar kiri + konten kanan. */
:root {
  --bg: #01030a;
  --surface: #050b1d;
  --surface2: #0c1838;
  --line: rgba(110, 160, 255, 0.17);
  --fg: #e8eefc;
  --muted: #93a3cb;
  --accent: #2e78ff;
  --accent-ink: #ffffff;
  --cyan: #00d0ff;
  --c-import: #00d0ff;
  --c-upload: #86a8ff;
  --c-tools: #2fe0c0;
  --ok: #46f4b0;
  --warn: #ffd846;
  --danger: #ff7a7a;
  --code-bg: #00020a;
  --font-display: "Chakra Petch", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: dark;
}
/* Default selalu gelap (hitam). Tema terang hanya aktif kalau dipilih lewat tombol Tema. */
:root[data-theme="light"] {
  --bg: #f2f5fc; --surface: #ffffff; --surface2: #e6edfb; --line: rgba(20, 40, 100, 0.14);
  --fg: #0b1530; --muted: #52618a; --accent: #1d5fe0; --accent-ink: #ffffff; --cyan: #0079a6;
  --c-import: #0083b0; --c-upload: #3b62d6; --c-tools: #0b8f79;
  --ok: #0a7f55; --warn: #8a6500; --danger: #c13434; --code-bg: #eaf0fc;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 15px; line-height: 1.6;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg);
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; line-height: 1.15; letter-spacing: 0.005em; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
.wrap {
  max-width: 1160px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.mono { font-family: var(--font-mono); }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 16px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.brand i {
  width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-style: normal; font-size: 14px;
  background: var(--accent); color: var(--accent-ink);
}
.top nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.top nav a, .theme {
  text-decoration: none; padding: 7px 12px; border-radius: 8px; color: var(--muted); font-weight: 500; font-size: 14px;
  background: none; border: 0;
}
.top nav a:hover, .theme:hover { color: var(--fg); background: var(--surface); }
.top nav a[aria-current="page"] { color: var(--fg); background: var(--surface); }
.theme { border: 1px solid var(--line); }

/* ---------- tombol ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 14px;
  padding: 11px 18px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--fg);
}
.btn:hover { border-color: var(--cyan); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.1); }

/* ---------- landing ---------- */
.hero { padding-block: 56px 40px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; background: var(--surface);
}
.pill b { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); font-weight: 700; margin-top: 18px; }
.hero h1 em { font-style: normal; color: var(--cyan); }
.hero p.lead { margin-top: 16px; color: var(--muted); font-size: 16px; max-width: 46ch; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 28px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

.dock {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.25fr) minmax(0, 0.8fr); gap: 10px; align-items: stretch;
  padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface);
}
.win { border: 1px solid var(--line); border-radius: 12px; background: var(--bg); padding: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.win .bar { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.win .bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--c-tools); }
.win.mid .bar i { background: var(--cyan); }
.disc {
  width: 70%; aspect-ratio: 1; margin: 6px auto; border-radius: 50%;
  background: radial-gradient(circle, var(--bg) 0 8%, var(--surface2) 9% 30%, var(--bg) 31% 34%, var(--surface2) 35% 62%, var(--bg) 63% 66%, var(--surface2) 67%);
  border: 2px solid var(--c-upload); animation: spin 14s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ph { height: 8px; border-radius: 4px; background: var(--surface2); }
.ph.s { width: 60%; } .ph.m { width: 80%; }
.minis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.mini { border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; background: var(--surface); }
.mini small { display: block; font-family: var(--font-mono); font-size: 9px; color: var(--muted); }
.mini b { font-family: var(--font-display); font-size: 18px; }
.chips { display: flex; gap: 4px; flex-wrap: wrap; }
.chips span { font-family: var(--font-mono); font-size: 9px; padding: 2px 6px; border-radius: 5px; background: var(--surface2); color: var(--muted); }
.chips span.on { background: var(--accent); color: var(--accent-ink); }
.row { display: flex; align-items: center; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.row i { width: 18px; height: 18px; border-radius: 4px; background: var(--surface2); flex: none; }
.row .ph { flex: 1; }

.section { padding-block: 48px; border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(24px, 3.2vw, 34px); }
.section .sub { color: var(--muted); margin-top: 8px; max-width: 60ch; }
.groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 28px; }
.group h3 { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-family: var(--font-mono); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.group h3::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--g); }
.group ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.group li a { display: block; text-decoration: none; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.group li a:hover b { color: var(--cyan); }
.group li b { font-family: var(--font-display); font-size: 16px; display: block; }
.group li span { color: var(--muted); font-size: 13px; }
.g-import { --g: var(--c-import); } .g-upload { --g: var(--c-upload); } .g-tools { --g: var(--c-tools); }

.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 28px; counter-reset: q; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.quick li { list-style: none; padding: 18px; border-right: 1px solid var(--line); background: var(--surface); counter-increment: q; }
.quick li:last-child { border-right: 0; }
.quick li::before { content: counter(q); font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--cyan); display: block; margin-bottom: 6px; }
.quick b { display: block; font-family: var(--font-display); font-size: 16px; margin-bottom: 4px; }
.quick span { color: var(--muted); font-size: 13px; }
.quick { padding: 0; margin-inline: 0; }
footer.foot { border-top: 1px solid var(--line); padding-block: 28px; color: var(--muted); font-size: 13px; }
footer.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- app shell (dashboard + tutorial) ---------- */
.shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding-block: 28px 64px; }
.side { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 72px); align-self: start; max-height: calc(100vh - 100px); overflow-y: auto; }
.side h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 18px 0 6px; font-weight: 600; }
.side h4:first-child { margin-top: 0; }
.side a { display: flex; align-items: center; gap: 9px; text-decoration: none; padding: 7px 10px; border-radius: 8px; color: var(--muted); font-size: 14px; font-weight: 500; }
.side a:hover { background: var(--surface); color: var(--fg); }
.side a[aria-current="page"] { background: var(--surface2); color: var(--fg); }
.side a i { font-style: normal; font-family: var(--font-mono); font-size: 10px; width: 24px; height: 20px; border-radius: 5px; display: grid; place-items: center; background: var(--surface); color: var(--g, var(--muted)); border: 1px solid var(--line); flex: none; }
.main { min-width: 0; }

.page-title { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.page-title h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; }
.page-title p { color: var(--muted); margin-top: 6px; max-width: 58ch; }
.search { position: relative; }
.search input {
  width: 260px; max-width: 100%; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  color: var(--fg); font: inherit; font-size: 14px;
}
.search input::placeholder { color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.stat { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--surface); }
.stat small { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }
.stat b { display: block; font-family: var(--font-display); font-size: 32px; line-height: 1.1; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--muted); }

.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 28px; }
.filters button { border: 1px solid var(--line); background: var(--surface); padding: 6px 14px; border-radius: 99px; font-size: 13px; font-weight: 500; color: var(--muted); }
.filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.card {
  display: flex; flex-direction: column; gap: 10px; text-decoration: none; padding: 16px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--surface); min-width: 0; transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--g); transform: translateY(-2px); }
.card .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-family: var(--font-mono); font-weight: 600; font-size: 13px; color: var(--g); border: 1px solid var(--g); background: var(--bg); }
.card b { font-family: var(--font-display); font-size: 17px; }
.card p { color: var(--muted); font-size: 13px; line-height: 1.5; }
.card .go { margin-top: auto; font-size: 12px; font-family: var(--font-mono); color: var(--g); }
.empty { color: var(--muted); padding: 24px 0; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin-top: 14px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--surface); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td code, p code, li code, .kbd {
  font-family: var(--font-mono); font-size: 12.5px; background: var(--surface2); padding: 1px 6px; border-radius: 5px; white-space: nowrap;
}
.btnchip { font-family: var(--font-mono); font-weight: 600; font-size: 12px; background: var(--accent); color: var(--accent-ink); padding: 3px 9px; border-radius: 6px; white-space: nowrap; display: inline-block; }

/* ---------- halaman tutorial ---------- */
.crumbs { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--cyan); }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.meta span { font-family: var(--font-mono); font-size: 12px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--muted); }
.meta span b { color: var(--g); font-weight: 600; }
.block { margin-top: 36px; }
.block > h2 { font-size: 22px; margin-bottom: 14px; }
.need { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.need li { padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); display: flex; gap: 10px; }
.need li::before { content: "✓"; color: var(--ok); font-weight: 700; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 0; border-left: 2px solid var(--line); margin-left: 15px; }
.steps li { counter-increment: s; position: relative; padding: 0 0 22px 28px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(s); position: absolute; left: -17px; top: -2px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; background: var(--bg); border: 2px solid var(--g, var(--cyan)); color: var(--fg);
}
.steps b { font-family: var(--font-display); font-size: 17px; display: block; }
.steps p { color: var(--muted); margin-top: 2px; max-width: 68ch; }
.notes { margin: 0; padding-left: 20px; display: grid; gap: 8px; max-width: 72ch; }
.notes li::marker { color: var(--g, var(--cyan)); }
.code { position: relative; margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--code-bg); }
.code .cap { display: flex; justify-content: space-between; align-items: center; padding: 8px 8px 8px 14px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.code .cap button { border: 1px solid var(--line); background: var(--surface); border-radius: 7px; padding: 4px 10px; font-size: 12px; }
.code pre { margin: 0; padding: 14px; overflow-x: auto; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7; }
details { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
details + details { margin-top: 8px; }
summary { cursor: pointer; padding: 12px 14px; font-weight: 600; list-style: none; display: flex; gap: 10px; align-items: baseline; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; font-family: var(--font-mono); color: var(--warn); width: 12px; }
details[open] summary::before { content: "–"; }
details p { padding: 0 14px 14px 36px; color: var(--muted); max-width: 70ch; }
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 48px; }
.pager a { text-decoration: none; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--surface); min-width: 0; }
.pager a:hover { border-color: var(--cyan); }
.pager small { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.pager b { font-family: var(--font-display); font-size: 16px; }
.pager a:last-child { text-align: right; }
.callout { margin-top: 14px; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line); border-left: 3px solid var(--warn); background: var(--surface); max-width: 72ch; }

/* ---------- efek futuristik ---------- */
#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
#app { position: relative; z-index: 1; }
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: 0.75; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 75% 85% at 50% 35%, #000 15%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 85% at 50% 35%, #000 15%, transparent 78%);
  animation: gridmove 14s linear infinite;
}
.hero::after {
  content: ""; position: absolute; width: 540px; height: 540px; right: -140px; top: -170px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 42%, transparent), transparent 65%);
  filter: blur(8px); animation: orb 9s ease-in-out infinite alternate;
}
.hero .wrap { position: relative; z-index: 1; }
@keyframes gridmove { to { background-position: 0 44px, 44px 0; } }
@keyframes orb { to { transform: translate(-70px, 60px) scale(1.18); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes shine { to { background-position: 200% 0; } }
@keyframes blink { 50% { opacity: 0.25; } }
@keyframes sweep { from { top: 0; } to { top: 100%; } }
@keyframes glowpulse { 50% { box-shadow: 0 0 46px -6px color-mix(in srgb, var(--cyan) 50%, transparent); } }
@keyframes marquee { to { transform: translateX(-50%); } }

.rise { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--i, 0) * 55ms); }
.hero .wrap > div:first-child > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero .wrap > div:first-child > :nth-child(2) { animation-delay: 0.08s; }
.hero .wrap > div:first-child > :nth-child(3) { animation-delay: 0.16s; }
.hero .wrap > div:first-child > :nth-child(4) { animation-delay: 0.24s; }
.hero .wrap > div:first-child > :nth-child(5) { animation-delay: 0.32s; }
.stats .stat { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.stats .stat:nth-child(2) { animation-delay: 0.07s; } .stats .stat:nth-child(3) { animation-delay: 0.14s; } .stats .stat:nth-child(4) { animation-delay: 0.21s; }
.group li { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.group li:nth-child(2) { animation-delay: 0.07s; } .group li:nth-child(3) { animation-delay: 0.14s; } .group li:nth-child(4) { animation-delay: 0.21s; }

.pill b { animation: blink 1.4s ease-in-out infinite; box-shadow: 0 0 10px var(--ok); }
.hero h1 em {
  background: linear-gradient(90deg, var(--cyan), #7aa8ff, var(--cyan)); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  animation: shine 4.5s linear infinite;
}
.btn.primary { box-shadow: 0 0 24px -6px var(--accent); }
.btn.primary:hover { box-shadow: 0 0 34px -2px var(--accent); }
.dock { position: relative; overflow: hidden; box-shadow: 0 0 26px -10px var(--cyan); animation: rise 0.9s 0.2s both, glowpulse 4.5s 1.2s ease-in-out infinite; }
.dock::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; pointer-events: none; opacity: 0.7;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent); animation: sweep 5.5s linear infinite;
}
.card:hover { box-shadow: 0 0 28px -8px var(--g); }
.stat b { text-shadow: 0 0 20px color-mix(in srgb, var(--cyan) 35%, transparent); }

.chart-box canvas.chart { width: 100%; height: 100px; display: block; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); }
.chead { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; font-family: var(--font-mono); font-size: 10px; color: var(--muted); margin-bottom: 6px; }
.chead b { color: var(--fg); font-size: 11px; }
.chead .px { color: var(--fg); font-size: 13px; font-variant-numeric: tabular-nums; }
.chead .chg { font-variant-numeric: tabular-nums; }
.chead em { font-style: normal; margin-left: auto; opacity: 0.8; }
.up { color: var(--ok); } .down { color: var(--danger); }
.panel { margin-top: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 14px 16px; }
.panel .chead { font-size: 12px; margin-bottom: 10px; }
.panel .chead b { font-size: 13px; }
.panel .chead .px { font-size: 22px; font-family: var(--font-display); font-weight: 600; }
.panel canvas.chart { height: 200px; }

.ticker { border-block: 1px solid var(--line); overflow: hidden; background: var(--surface); }
.ticker .track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.ticker .track:hover { animation-play-state: paused; }
.ticker span { white-space: nowrap; padding: 10px 22px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); border-right: 1px solid var(--line); }
.ticker b { color: var(--fg); font-weight: 600; margin-right: 10px; }
.ticker em { font-style: normal; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .groups { grid-template-columns: minmax(0, 1fr); }
  .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick li:nth-child(2) { border-right: 0; }
  .quick li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .shell { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .side { position: static; max-height: none; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; }
  .side h4 { display: none; }
  .side a { white-space: nowrap; border: 1px solid var(--line); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .dock { grid-template-columns: minmax(0, 1fr); }
  .dock .win:not(.mid) { display: none; }
  .quick { grid-template-columns: minmax(0, 1fr); }
  .quick li { border-right: 0; border-bottom: 1px solid var(--line); }
  .quick li:last-child { border-bottom: 0; }
  .top nav a:not([data-keep]) { display: none; }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .pager a:last-child { text-align: left; }
  .search input { width: 100%; }
  .search { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .disc { animation: none; }
  html { scroll-behavior: auto; }
  .card { transition: none; }
}

/* ---------- polish futuristik (ditambahkan) ---------- */
::selection { background: color-mix(in srgb, var(--accent) 55%, transparent); color: #fff; }
.top { background: color-mix(in srgb, var(--bg) 72%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5); border-bottom-color: transparent; }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan), var(--accent), transparent); opacity: .55; }
.brand i { box-shadow: 0 0 18px -2px var(--accent), inset 0 0 8px rgba(255,255,255,.25); }
.card, .stat, .panel, .dock, .code, details { background-image: linear-gradient(160deg, color-mix(in srgb, var(--accent) 7%, transparent), transparent 55%); }
.side a[aria-current="page"] { box-shadow: inset 2px 0 0 var(--cyan); }
* { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--accent) 50%, transparent) transparent; }
