:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --surface: #fff;
  --surface-2: #f8fafc;
  --ink: #172033;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-soft: #eef1f5;
  --track: #e9edf3;
  --brand: var(--color-primary-600, #c2410c);
  --brand-dark: var(--color-primary-700, #9a3412);
  --brand-soft: var(--color-primary-100, #ffedd5);
  --brand-line: var(--color-primary-300, #fdba74);
  --notice-bg: #fff4ed;
  --focus: #2563eb;
  --pill-bg: #f1f5f9;
  --pill-ink: #475569;
  --warn-bg: #fef3c7;
  --warn-ink: #92400e;
  --ok-bg: #dcfce7;
  --ok-ink: #166534;
  --bag-bg: #fdf3ec;
  --bag-ink: var(--ink);
  --bag-accent: var(--brand);
}

:root[data-tema="dark"] {
  color-scheme: dark;
  --bg: #0b1220;
  --surface: #111827;
  --surface-2: #0f172a;
  --ink: #e5e7eb;
  --muted: #9ca3af;
  --line: #243044;
  --line-soft: #1f2937;
  --track: #0b1220;
  --brand-dark: #fdba74;
  --brand-soft: #3b1a0c;
  --brand-line: #7c2d12;
  --notice-bg: #1f140c;
  --focus: #60a5fa;
  --pill-bg: #1f2937;
  --pill-ink: #cbd5e1;
  --warn-bg: #422006;
  --warn-ink: #fcd34d;
  --ok-bg: #143524;
  --ok-ink: #86efac;
  --bag-bg: var(--color-primary-700, #9a3412);
  --bag-ink: #fff7ed;
  --bag-accent: #fed7aa;
}
.theme-icon { display: none; }
:root[data-theme="light"] .moon-icon,
:root[data-theme="dark"] .sun-icon { display: block; }
.theme-btn { width: 44px; padding: 0; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
body {
  min-height: 100vh; min-height: 100dvh; margin: 0; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
body.no-scroll { overflow: hidden; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.shell { width: min(1240px, calc(100% - 36px)); margin-inline: auto; }
main.shell { flex: 1 0 auto; padding-block: 24px 40px; }

.topbar { position: relative; z-index: 40; background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-inner { min-height: 72px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-logo { height: 44px; width: auto; flex: 0 0 auto; }
.brand-name { font-size: 16px; font-weight: 800; line-height: 1.25; }
.brand-sub { display: block; color: var(--muted); font-size: 12px; }

.topbar-menu { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.nav a {
  display: inline-flex; align-items: center; gap: 5px; min-height: 40px; padding: 6px 12px;
  border-radius: 10px; color: var(--ink); font-weight: 700; white-space: nowrap;
}
.nav a:hover { background: var(--notice-bg); color: var(--brand-dark); }
.nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-dark); }
.nav svg { width: 13px; height: 13px; opacity: .7; }
.topbar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lang-form, .logout-form { margin: 0; }
.lang-select, .btn-top {
  min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); font-weight: 700; white-space: nowrap;
}
.btn-top { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-top:hover, .lang-select:hover { border-color: var(--brand-line); }
.btn-top svg { width: 18px; height: 18px; }
.btn-top.primary { border-color: var(--brand); background: var(--brand); color: #fff; }
.btn-top.primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.tema-btn { width: 44px; padding: 0; }
.tema-btn .ikon-matahari { display: none; }
:root[data-tema="dark"] .tema-btn .ikon-matahari { display: block; }
:root[data-tema="dark"] .tema-btn .ikon-bulan { display: none; }
.nav-toggle {
  display: none; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
}
.nav-toggle:hover { border-color: var(--brand-line); }
.bars, .bars::before, .bars::after {
  display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform .18s, background .18s;
}
.bars { position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; }
.bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-footer { flex: 0 0 auto; margin-top: auto; border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 18px; color: var(--muted); font-size: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-links a { font-weight: 700; color: var(--brand-dark); }
.footer-links a:hover { text-decoration: underline; }

.hero {
  position: relative; isolation: isolate; overflow: hidden; padding: clamp(24px, 4vw, 38px);
  border-radius: 22px; color: #fff; background: linear-gradient(120deg, #431407, #c2410c 75%, #ea580c);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; width: 240px; height: 240px; right: -75px; top: -110px;
  border: 1px solid #ffffff35; border-radius: 50%;
  box-shadow: 0 0 0 32px #ffffff0b, 0 0 0 65px #ffffff08; pointer-events: none;
}
.eyebrow { color: #fed7aa; font-size: 11px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; }
.hero h1 { max-width: 680px; margin: 10px 0; font-size: clamp(27px, 4vw, 38px); line-height: 1.2; letter-spacing: -1px; }
.hero p { max-width: 680px; color: #ffedd5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero-btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: 12px;
  border: 1px solid #ffffff66; color: #fff; font-weight: 800;
}
.hero-btn:hover { background: #ffffff1f; }
.hero-btn.solid { border-color: #fff; background: #fff; color: var(--brand-dark); }
.hero-btn.solid:hover { background: var(--brand-soft); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin: 30px 0 15px; }
.section-head h2 { font-size: 20px; letter-spacing: -.4px; }
.section-head p { margin-top: 4px; color: var(--muted); font-size: 13px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.stat { min-width: 0; display: flex; align-items: center; gap: 14px; padding: 19px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.stat-icon { flex: 0 0 42px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.stat-icon svg { width: 22px; height: 22px; }
.stat-label { color: var(--muted); font-size: 12px; }
.stat-number { font-size: 25px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }

@media (min-width: 1600px) {
  body { font-size: 15px; }
  .shell { width: min(1480px, calc(100% - 64px)); }
}
@media (max-width: 900px) {
  .brand { flex: 1 1 0; }
  .nav-toggle { display: grid; flex: 0 0 44px; }
  .js .topbar-menu { display: none; flex: 1 0 100%; flex-direction: column; align-items: stretch; gap: 10px; padding: 8px 0 12px; border-top: 1px solid var(--line); }
  .js .topbar-menu.open { display: flex; }
  .topbar-menu { flex: 1 0 100%; flex-direction: column; align-items: stretch; }
  .nav { flex-direction: column; align-items: stretch; }
  .nav a { min-height: 46px; padding-inline: 12px; white-space: normal; }
    .topbar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
  .lang-select, .btn-top { min-height: 44px; }
}
@media (max-width: 560px) {
  .shell { width: calc(100% - 24px); }
  main.shell { padding-top: 16px; }
  .topbar-inner { min-height: 64px; }
  .brand { gap: 9px; }
  .brand-logo { height: 38px; }
  .brand-name { font-size: 14px; }
  .brand-sub { display: none; }
  .hero { border-radius: 17px; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .stats { grid-template-columns: 1fr; gap: 10px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.stat-of { color: var(--muted); font-size: 14px; font-weight: 600; }
.section-tag { padding: 5px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); font-size: 11px; white-space: nowrap; }
