:root {
  --primary: #176b57;
  --secondary: #d79a2b;
  --ink: #17221f;
  --muted: #66736f;
  --line: #dfe7e3;
  --surface: #ffffff;
  --soft: #f5f8f6;
  --danger: #b42318;
  --shadow: 0 12px 34px rgba(22, 49, 42, .12);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-weight: 800;
}

.brand img { width: 42px; height: 42px; }
.brand small { display: block; color: var(--muted); font-weight: 600; }

.hero-section {
  min-height: 82vh;
  position: relative;
  display: flex;
  align-items: center;
  color: #fff;
  background: linear-gradient(rgba(9, 39, 31, .72), rgba(9, 39, 31, .72)), url("../assets/banner/pondok.svg") center/cover no-repeat;
}

.hero-content {
  position: relative;
  max-width: 820px;
  padding-top: 3rem;
  padding-bottom: 5rem;
}

.hero-content h1 {
  margin: .6rem 0 1rem;
  font-size: clamp(2.4rem, 7vw, 5.6rem);
  line-height: .98;
  font-weight: 850;
}

.hero-content p {
  max-width: 720px;
  font-size: 1.15rem;
  color: rgba(255,255,255,.9);
}

.eyebrow {
  display: inline-flex;
  padding: .35rem .7rem;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 999px;
  font-weight: 700;
  font-size: .86rem;
}

.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: #0f5745; border-color: #0f5745; }

.section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: -3rem;
  position: relative;
  z-index: 2;
}

.content-card,
.panel,
.metric-card,
.login-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.content-card { overflow: hidden; }
.content-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #e8efeb; }
.content-card h3 { margin: 1rem 1rem .35rem; font-size: 1.08rem; }
.content-card p { margin: 0 1rem 1rem; color: var(--muted); }

.page-shell { min-height: 100vh; display: flex; flex-direction: column; }
.main-content { flex: 1; padding: 2rem 0 4rem; }
.page-title { margin-bottom: 1.2rem; }
.page-title h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; margin: 0; }
.page-title p { color: var(--muted); margin: .35rem 0 0; }

.state {
  display: grid;
  gap: .25rem;
  padding: 2rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.state strong { color: var(--ink); }
.toast-area { position: fixed; right: 1rem; bottom: 1rem; z-index: 50; display: grid; gap: .5rem; }
.app-toast { padding: .85rem 1rem; border-radius: 8px; background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.app-toast-error { background: var(--danger); }

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: linear-gradient(rgba(9, 39, 31, .7), rgba(9, 39, 31, .7)), url("../assets/banner/pondok.svg") center/cover no-repeat;
}

.login-card { width: min(440px, 100%); padding: 2rem; }
.login-card h1 { font-size: 1.75rem; font-weight: 800; }
.login-card p { color: var(--muted); }
.footer { padding: 1.5rem 0; color: var(--muted); border-top: 1px solid var(--line); background: var(--surface); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}
