/* LeonZ Digital Service — Redesign v2.1 (dark + gold, widget baru) */
:root {
  --bg: #090a0c;
  --bg-page: #0e1014;
  --surface: #12151a;
  --card: #161a21;
  --surface-alt: #1a1f28;
  --elevated: #212733;
  --gold: #c9a24b;
  --gold-light: #e0c078;
  --gold-dim: rgba(201,162,75,.08);
  --gold-border: rgba(201,162,75,.32);
  --gold-glow: 0 0 18px rgba(201,162,75,.25);
  --ink: #eef0f4;
  --ink-soft: #c8cdd6;
  --ink-muted: #8b929e;
  --ink-faint: #5d6470;
  --border: rgba(255,255,255,.08);
  --border-strong: rgba(255,255,255,.16);
  --link: #e0c078;
  --danger: #e0887a;
  --ok: #7eb79a;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-md: 0 4px 24px rgba(0,0,0,.35);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.5);
  --font: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, serif;
  --page-max: 1180px;
  --header-h: 64px;
  --ease: cubic-bezier(.22,1,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65;
  color: var(--ink-soft); background: var(--bg); -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--gold-light); }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.shell { max-width: var(--page-max); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(9,10,12,.88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: var(--page-max); margin: 0 auto; padding: 0 24px;
  height: var(--header-h); display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand-name { font-size: 16px; color: var(--gold-light); letter-spacing: -.01em; }
.brand-sub { display: block; font-size: 11px; font-weight: 500; color: var(--ink-muted); letter-spacing: .04em; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--ink-soft);
}
.nav a:hover { background: var(--surface-alt); color: var(--ink); }
.nav a.is-active { background: var(--gold-dim); color: var(--gold-light); box-shadow: inset 0 0 0 1px var(--gold-border); }
.topbar-cta { display: flex; gap: 10px; align-items: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; line-height: 1.2;
  background: linear-gradient(180deg, var(--gold-light), var(--gold)); color: #14100a;
  border: 1px solid var(--gold); transition: all .2s var(--ease);
}
.btn:hover { filter: brightness(1.06); color: #14100a; transform: translateY(-1px); box-shadow: var(--gold-glow); }
.btn-outline { background: transparent; color: var(--ink-soft); border: 1px solid var(--border-strong); }
.btn-outline:hover { background: var(--surface-alt); color: var(--ink); border-color: var(--gold-border); box-shadow: none; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--gold-light); }
.btn-ghost:hover { background: var(--gold-dim); color: var(--gold-light); box-shadow: none; }
.btn-sm { padding: 7px 16px; font-size: 13.5px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }

/* ---------- hero ---------- */
.hero {
  padding: 76px 0 88px;
  background:
    radial-gradient(1000px 380px at 80% -10%, rgba(201,162,75,.12), transparent 60%),
    radial-gradient(700px 300px at 0% 110%, rgba(201,162,75,.05), transparent 55%),
    var(--bg-page);
  border-bottom: 1px solid var(--border);
}
.hero-inner { max-width: var(--page-max); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .06em;
  color: var(--gold-light); text-transform: uppercase;
  background: var(--gold-dim); border: 1px solid var(--gold-border);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 54px); line-height: 1.12; letter-spacing: -.02em;
  color: var(--ink); margin: 0 0 18px; max-width: 780px; font-weight: 800;
  text-shadow: 0 0 30px rgba(201,162,75,.15);
}
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero .lead { font-size: clamp(16px, 2vw, 19px); color: var(--ink-muted); max-width: 640px; margin: 0 0 14px; }
.hero .lead strong { color: var(--ink-soft); }
.offer-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--gold-dim); color: var(--gold-light);
  border: 1px dashed var(--gold-border); font-size: 13.5px; font-weight: 600;
  padding: 5px 14px; border-radius: 999px; margin: 4px 0 26px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.stats-row { display: flex; flex-wrap: wrap; gap: 44px; margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--border); }
.stat strong { display: block; font-size: 30px; font-weight: 800; color: var(--gold-light); letter-spacing: -.02em; }
.stat span { font-size: 13.5px; color: var(--ink-muted); }

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section--alt { background: var(--bg-page); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { margin-bottom: 32px; }
.section-kicker {
  font-size: 12.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 8px;
}
.section-title { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.02em; color: var(--ink); margin: 0; line-height: 1.2; }
.section-sub { color: var(--ink-muted); margin: 12px 0 0; max-width: 640px; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column; gap: 8px;
  transition: all .2s var(--ease);
}
a.card { color: inherit; }
a.card:hover { border-color: var(--gold-border); box-shadow: var(--gold-glow), var(--shadow-md); transform: translateY(-3px); color: inherit; }
.card .tag {
  align-self: flex-start; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  background: var(--gold-dim); color: var(--gold-light);
  border: 1px solid var(--gold-border);
  border-radius: 999px; padding: 4px 10px;
}
.card .tag--gold { background: rgba(201,162,75,.16); }
.card .tag--ok { background: rgba(126,183,154,.1); color: var(--ok); border-color: rgba(126,183,154,.3); }
.card h3 { margin: 4px 0 2px; font-size: 17.5px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.card p { margin: 0; font-size: 14.5px; color: var(--ink-muted); }
.card .go { margin-top: auto; padding-top: 12px; font-size: 14px; font-weight: 600; color: var(--gold); }
a.card:hover .go { color: var(--gold-light); }
.feature-card .num {
  font-size: 13px; font-weight: 800; color: var(--gold-light);
  background: var(--gold-dim); border: 1px solid var(--gold-border);
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border-radius: 9px; margin-bottom: 10px;
}

/* ---------- steps ---------- */
.steps { display: grid; gap: 14px; }
.step {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px;
}
.step-icon {
  flex: 0 0 38px; height: 38px; border-radius: 10px;
  background: var(--gold-dim); border: 1px solid var(--gold-border); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px;
}
.step h4 { margin: 0 0 4px; font-size: 15.5px; color: var(--ink); font-weight: 700; }
.step p { margin: 0; font-size: 14px; color: var(--ink-muted); }

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
table.plain { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.plain th {
  text-align: left; padding: 12px 16px; background: var(--surface-alt);
  font-weight: 700; color: var(--gold-light); border-bottom: 1px solid var(--gold-border); white-space: nowrap;
}
table.plain td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--ink-soft); vertical-align: top; }
table.plain tr:last-child td { border-bottom: 0; }
table.plain td strong { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; max-width: 800px; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 20px; }
.faq-item summary {
  cursor: pointer; font-weight: 650; color: var(--ink); font-size: 15.5px;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-weight: 700; color: var(--gold); font-size: 20px; flex: 0 0 auto; transition: transform .2s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] { border-color: var(--gold-border); }
.faq-item p { margin: 10px 0 0; font-size: 14.5px; color: var(--ink-muted); }

/* ---------- CTA ---------- */
.cta-band {
  background: linear-gradient(135deg, #14100a, #2a2114);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg); color: var(--ink-soft); padding: 44px 40px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: -1px;
  background: radial-gradient(600px 200px at 90% 0%, rgba(201,162,75,.18), transparent 60%);
  pointer-events: none;
}
.cta-band h2 { margin: 0 0 8px; font-size: clamp(22px, 3vw, 30px); font-weight: 800; color: var(--gold-light); letter-spacing: -.01em; }
.cta-band p { margin: 0; color: var(--ink-muted); font-size: 15.5px; }

/* ---------- article index ---------- */
.art-group { margin-bottom: 40px; }
.art-group-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.art-group-head h3 { margin: 0; font-size: 18px; font-weight: 750; color: var(--ink); }
.art-group-head .count { font-size: 12.5px; color: var(--gold); font-weight: 600; }
.art-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.art-row a {
  display: block; background: var(--card); border: 1px solid var(--border);
  border-left: 3px solid var(--gold-border);
  border-radius: var(--radius-sm); padding: 14px 16px;
  transition: all .15s var(--ease);
}
.art-row a:hover { border-left-color: var(--gold); box-shadow: var(--gold-glow), var(--shadow-md); transform: translateY(-2px); }
.art-row .t { font-weight: 650; color: var(--ink); font-size: 14.5px; display: block; }
.art-row .d { color: var(--ink-muted); font-size: 13px; margin-top: 3px; display: block; }

/* ---------- notice ---------- */
.notice {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--gold-dim); border: 1px solid var(--gold-border);
  color: var(--ink-soft); border-radius: var(--radius-sm);
  padding: 14px 18px; font-size: 14px; margin: 24px 0;
}
.notice .ic { flex: 0 0 auto; font-size: 16px; }
.notice strong { color: var(--gold-light); }

/* ---------- breadcrumb ---------- */
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--ink-faint); margin-bottom: 26px; }
.crumbs a { color: var(--ink-muted); }
.crumbs a:hover { color: var(--gold-light); }
.crumbs .sep { color: var(--ink-faint); }

/* ---------- keyword pills ---------- */
.kw { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.kw span {
  font-size: 12.5px; color: var(--ink-muted); background: var(--surface);
  border: 1px dashed var(--border-strong); border-radius: 999px; padding: 4px 12px;
}

/* =========================================================
   WIDGET BARU — konsep "gold rail" (sidebar v2.1)
   ========================================================= */
.page-cols { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 36px; align-items: start; }
.page-cols__main { min-width: 0; }

.widget {
  background: linear-gradient(180deg, var(--card), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 18px 16px; margin-bottom: 18px;
  position: relative; overflow: hidden;
}
.widget::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent 70%);
  opacity: .55;
}
.w-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.w-ico {
  flex: 0 0 30px; height: 30px; border-radius: 8px;
  background: var(--gold-dim); border: 1px solid var(--gold-border);
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.w-head h3 { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-light); }
.w-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.w-list a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 8px 10px; border-radius: 8px; font-size: 13.5px; color: var(--ink-soft);
  transition: background .15s var(--ease);
}
.w-list a:hover { background: var(--gold-dim); color: var(--gold-light); }
.w-list .w-meta { flex: 0 0 auto; font-size: 11px; color: var(--ink-faint); font-weight: 600; letter-spacing: .03em; }
.w-more { display: block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--gold); }
.w-more:hover { color: var(--gold-light); }

/* widget progres mini (kursus) */
.w-progress { display: grid; gap: 8px; margin: 4px 0 2px; }
.w-bar { display: grid; gap: 5px; }
.w-bar .lbl { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-muted); }
.w-bar .lbl b { color: var(--gold-light); font-weight: 700; }
.w-bar .track { height: 6px; border-radius: 999px; background: var(--surface-alt); overflow: hidden; }
.w-bar .fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); }

/* widget CTA mini */
.widget--cta { background: linear-gradient(160deg, #241c0e, var(--card)); border-color: var(--gold-border); text-align: center; padding: 22px 18px; }
.widget--cta::before { opacity: 1; }
.widget--cta .w-title { font-size: 15.5px; font-weight: 800; color: var(--gold-light); margin: 8px 0 6px; }
.widget--cta p { font-size: 13px; color: var(--ink-muted); margin: 0 0 14px; }
.widget--cta .btn { width: 100%; }

/* widget nav khusus Hacking Course */
.widget--course { background: linear-gradient(180deg, #1c1812, var(--card)); border-color: rgba(201,162,75,.24); }
.widget--course .w-ico { background: rgba(201,162,75,.14); }
.widget--course .w-list a .w-meta { color: var(--gold); opacity: .75; }

/* widget offer/badge */
.widget--offer { text-align: center; }
.widget--offer .w-offer {
  font-size: 12.5px; color: var(--ink-muted); line-height: 1.7;
  border-top: 1px dashed var(--border-strong); margin-top: 12px; padding-top: 12px;
}
.widget--offer .w-offer b { color: var(--gold-light); }

/* ---------- footer ---------- */
.footer { margin-top: 24px; padding: 48px 0 32px; border-top: 1px solid var(--border); background: var(--bg-page); }
.footer-inner { max-width: var(--page-max); margin: 0 auto; padding: 0 24px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.footer-brand { max-width: 320px; }
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { font-size: 13.5px; color: var(--ink-muted); margin: 0; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 { margin: 0 0 12px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gold); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a { font-size: 14px; color: var(--ink-soft); }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  font-size: 13px; color: var(--ink-faint);
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .page-cols { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { gap: 40px; }
}
@media (max-width: 768px) {
  .nav { display: none; }
  .topbar-cta .btn-outline { display: none; }
  .grid-2, .grid-3, .grid-4, .art-row { grid-template-columns: 1fr; }
  .hero { padding: 52px 0 60px; }
  .section { padding: 48px 0; }
  .stats-row { gap: 28px; }
  .cta-band { padding: 32px 24px; flex-direction: column; align-items: flex-start; }
  .topbar-cta { margin-left: auto; }
}
