/* kalimashada.id — stylesheet publik & console (tema hitam + oranye, padat, target 1366x768) */

/* Geist & Geist Mono (variable font, disajikan lokal) */
@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-sans-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/geist-mono-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #07080d;
  --surface: #12131a;
  --surface-2: #1a1b24;
  --border: rgba(255, 255, 255, .08);
  --border-soft: rgba(255, 255, 255, .05);
  --text: #e8e8ee;
  --muted: #8b8d98;
  --accent: #f97316;
  --accent-2: #ea580c;
  --accent-soft: rgba(249, 115, 22, .14);
  --accent-line: rgba(249, 115, 22, .45);
  --ring: rgba(249, 115, 22, .35);
  --ink: #0a0a0c;
  --ok: #34d399;
  --warn: #f59e0b;
  --danger: #f87171;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

::selection { background: var(--ring); color: #fff; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

code, pre, .mono {
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.8rem;
}

/* label teknis ala mission-control: mono + uppercase */
.chip, .kpi .l, .table-dark2 thead th, .sidebar .nav .grp { font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* ---------- public navbar ---------- */
.pub-nav {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(7, 8, 13, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}
.pub-nav .inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.55rem 1rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--text); }
.brand:hover { text-decoration: none; color: var(--text); }
.brand .mark {
  width: 26px; height: 26px; border-radius: 7px;
  background: linear-gradient(135deg, #f97316, #fb923c);
  display: grid; place-items: center; color: #0a0a0c; font-size: 0.8rem;
  box-shadow: 0 4px 14px rgba(249, 115, 22, .28);
}
.pub-nav .links { display: flex; gap: 1rem; margin-left: auto; align-items: center; }
.pub-nav .links a { color: var(--muted); font-size: 0.82rem; }
.pub-nav .links a:hover, .pub-nav .links a.active { color: var(--text); text-decoration: none; }

/* ---------- generic ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 1rem; }
.section { padding: 2.25rem 0; }
.section-title { font-size: 1.05rem; font-weight: 600; margin: 0 0 0.25rem; }
.section-sub { color: var(--muted); font-size: 0.82rem; margin: 0 0 1rem; }

.card2 {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.card2 > .card2-head {
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0.85rem;
  display: flex; align-items: center; gap: 0.5rem;
  font-weight: 600; font-size: 0.85rem;
}
.card2 > .card2-body { padding: 0.85rem; }

.muted { color: var(--muted); }
.tiny { font-size: 0.72rem; }
.strong { font-weight: 600; }

.chip {
  display: inline-flex; align-items: center; gap: 0.3rem;
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.72rem;
  color: var(--muted);
}
.chip.ok { border-color: rgba(52,211,153,.45); color: var(--ok); }
.chip.warn { border-color: rgba(245,158,11,.45); color: var(--warn); }
.chip.info { border-color: var(--accent-line); color: var(--accent); }

.pill { display: inline-block; border-radius: 999px; padding: 0.1rem 0.5rem; font-size: 0.7rem; font-weight: 600; }
.pill.ok { background: rgba(52,211,153,.15); color: var(--ok); }
.pill.warn { background: rgba(245,158,11,.15); color: var(--warn); }
.pill.danger { background: rgba(248,113,113,.15); color: var(--danger); }
.pill.info { background: var(--accent-soft); color: var(--accent); }
.pill.mute { background: var(--surface-2); color: var(--muted); }

.btn2 {
  display: inline-flex; align-items: center; gap: 0.4rem;
  border-radius: 8px; padding: 0.4rem 0.85rem;
  font-size: 0.82rem; font-weight: 600; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); cursor: pointer;
}
.btn2:hover { border-color: rgba(255,255,255,.22); }
.btn2.primary {
  background: var(--accent); border-color: var(--accent); color: var(--ink);
  box-shadow: 0 6px 18px rgba(249, 115, 22, .22);
}
.btn2.primary:hover { background: #fb923c; border-color: #fb923c; box-shadow: 0 8px 24px rgba(249, 115, 22, .32); }
.btn2.ghost { background: transparent; }
.btn2.sm { padding: 0.25rem 0.6rem; font-size: 0.75rem; }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(900px 320px at 12% -10%, rgba(234, 88, 12, .22), transparent 60%),
    radial-gradient(700px 300px at 88% 0%, rgba(249, 115, 22, .16), transparent 60%);
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  max-width: 1180px; margin: 0 auto; padding: 2.5rem 1rem 2rem;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2rem; align-items: center;
}
.hero h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 0.6rem; letter-spacing: -0.02em; }
.hero p.lead { color: #c9c9d1; font-size: 0.95rem; margin: 0 0 1rem; max-width: 46ch; }
.hero .chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.1rem; }
.hero .cta { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 1.5rem; margin-top: 1.25rem; }
.hero-stats .n { font-size: 1.15rem; font-weight: 700; }
.hero-stats .l { font-size: 0.72rem; color: var(--muted); }

.hero-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
}
.hero-panel .row-line {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.4rem 0; border-bottom: 1px dashed var(--border-soft);
}
.hero-panel .row-line:last-child { border-bottom: 0; }
.balance { font-size: 1.35rem; font-weight: 700; }
.qr-box {
  width: 132px; height: 132px; border-radius: 8px; background: #fff;
  display: grid; place-items: center; color: #111; font-size: 0.7rem; text-align: center;
  padding: 0.5rem;
}

/* ---------- grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.85rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
.feature { display: flex; gap: 0.65rem; }
.feature i { color: var(--accent); font-size: 1.05rem; line-height: 1.2; }
.feature h3 { font-size: 0.86rem; margin: 0 0 0.2rem; font-weight: 600; }
.feature p { margin: 0; color: var(--muted); font-size: 0.78rem; }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem; }
.step { position: relative; padding-left: 2rem; }
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: 0;
  width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: var(--accent); color: var(--ink);
  display: grid; place-items: center; font-size: 0.75rem; font-weight: 700;
}

/* ---------- tables ---------- */
.table-dark2 { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.8rem; }
.table-dark2 thead th {
  text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--muted); font-weight: 600; white-space: nowrap;
  padding: 0.45rem 0.5rem; border-bottom: 1px solid var(--border);
  background: var(--surface-2); position: sticky; top: 0; z-index: 2;
}
.table-dark2 tbody td { padding: 0.4rem 0.5rem; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
.table-dark2 tbody tr:hover { background: rgba(255,255,255,.02); }
.table-dark2 td.num, .table-dark2 th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-dark2 td:first-child code { white-space: nowrap; }
.table-wrap { overflow: auto; max-height: 460px; border: 1px solid var(--border); border-radius: var(--radius); }

.input2 {
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); padding: 0.35rem 0.55rem; font-size: 0.8rem; width: 100%;
}
.input2:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.form-select.input2 { padding-right: 1.9rem; }
label.lbl { display: block; font-size: 0.74rem; color: var(--muted); margin-bottom: 0.25rem; }

/* ---------- code ---------- */
pre.code {
  background: #0a0b10; border: 1px solid var(--border); border-radius: 8px;
  padding: 0.7rem 0.8rem; overflow: auto; margin: 0; color: #cfd0d8;
  max-width: 100%;
}
/* Isi panjang (perintah/URL/tabel) tidak boleh melebarkan kolom grid melewati batas kartu. */
.grid-2 > *,
.grid-3 > *,
.grid-4 > *,
.steps > * {
  min-width: 0;
}
pre.code .k { color: #f87171; }
pre.code .s { color: #fdba74; }
pre.code .c { color: var(--muted); }
pre.code .f { color: #fb923c; }
code.inline {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 5px; padding: 0.05rem 0.3rem; color: #cfd0d8;
}

/* ---------- console shell ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: 218px;
  background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; overflow: hidden; z-index: 1040;
}
.sidebar .side-head { padding: 0.7rem 0.85rem; border-bottom: 1px solid var(--border); }
.sidebar .nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0.5rem 0.5rem 1rem; display: flex; flex-direction: column; gap: 0.1rem; }
.sidebar .nav a {
  display: flex; align-items: center; gap: 0.55rem;
  color: var(--muted); padding: 0.4rem 0.6rem; border-radius: 7px; font-size: 0.82rem;
}
.sidebar .nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.sidebar .nav a.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.sidebar .nav .grp { font-size: 0.68rem; text-transform: uppercase; letter-spacing: .06em; color: #71727c; padding: 0.6rem 0.6rem 0.2rem; }
.sidebar .side-foot { flex: 0 0 auto; background: #0d0e15; border-top: 1px solid var(--border); padding: 0.55rem 0.85rem; font-size: 0.72rem; color: var(--muted); }

.main { flex: 1 1 auto; min-width: 0; margin-left: 218px; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.6rem 1rem; border-bottom: 1px solid var(--border);
  background: rgba(7,8,13,.92); position: sticky; top: 0; z-index: 1030;
}
.topbar h1 { font-size: 0.95rem; margin: 0; font-weight: 600; }
.main-body { padding: 1rem 1.1rem 2rem; }

.kpi { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; }
.kpi .v { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.kpi .l { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.kpi .ic {
  width: 30px; height: 30px; border-radius: 8px; flex: 0 0 auto;
  display: grid; place-items: center; background: var(--surface-2); color: var(--accent);
}

.spark { width: 100%; height: 96px; display: block; }
.bar-row { display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; }
.bar-row .lbl { width: 190px; flex: 0 0 auto; }
.bar { flex: 1 1 auto; height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, #ea580c, #fb923c); }

.chat { display: flex; flex-direction: column; gap: 0.6rem; }
.msg { display: flex; gap: 0.55rem; font-size: 0.82rem; }
.msg .who { flex: 0 0 auto; width: 62px; color: var(--muted); font-size: 0.72rem; padding-top: 0.15rem; }
.msg .bubble { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 0.5rem 0.65rem; flex: 1 1 auto; }
.msg.user .bubble { background: var(--accent-soft); border-color: var(--accent-line); }

.step-list { display: grid; gap: 0.5rem; }
.radio-row {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  border: 1px solid var(--border); border-radius: 8px; padding: 0.45rem 0.6rem; cursor: pointer;
  background: var(--surface-2);
}
.radio-row.sel { border-color: var(--accent); background: var(--accent-soft); }

.pub-footer { border-top: 1px solid var(--border); margin-top: 2rem; padding: 1.25rem 0; color: var(--muted); font-size: 0.76rem; }
.pub-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 1rem; }
.pub-footer h4 { font-size: 0.78rem; color: var(--text); margin: 0 0 0.4rem; }
.pub-footer a { color: var(--muted); display: block; padding: 0.1rem 0; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .pub-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .sidebar { display: none; }
  .main { margin-left: 0; }
  .grid-3, .grid-4, .grid-2, .steps { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.55rem; }
}
@media (min-width: 992px) and (max-height: 800px) {
  .hero-inner { padding: 1.75rem 1rem 1.5rem; }
  .hero h1 { font-size: 1.75rem; }
}
