* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #1D9E75;
  --green-dark: #167a5b;
  --green-light: #e6f7f2;
  --green-mid: #d1f0e6;
  --text: #111827;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --bg: #f9fafb;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
}

body {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-icon { font-size: 24px; }

.nav-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--green);
  line-height: 1.2;
}

.nav-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.btn-login-nav {
  background: var(--green);
  color: white;
  border: none;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.btn-login-nav:hover { background: var(--green-dark); }

/* ===== HERO ===== */
.hero {
  padding: 80px 40px 72px;
  text-align: center;
  background: linear-gradient(160deg, #f0fdf8 0%, #ffffff 60%);
  border-bottom: 1px solid var(--green-mid);
}

.hero-badge {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 99px;
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}

.hero-title {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 20px;
}

.hero-accent { color: var(--green); }

.hero-desc {
  max-width: 560px;
  margin: 0 auto 32px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn-primary {
  background: var(--green);
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-primary:disabled { background: #9ca3af; cursor: not-allowed; transform: none; }
.btn-primary.btn-full { width: 100%; padding: 13px; }
.btn-primary.btn-lg { padding: 15px 36px; font-size: 16px; }

.btn-outline {
  background: white;
  color: var(--green);
  border: 2px solid var(--green);
  padding: 12px 28px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.btn-outline:hover { background: var(--green-light); }

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--green);
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ===== SECTIONS ===== */
.section {
  padding: 72px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-alt {
  max-width: 100%;
  background: var(--bg);
  padding: 72px 40px;
}

.section-alt > * { max-width: 1100px; margin-left: auto; margin-right: auto; }

.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  text-align: center;
}

.section-desc {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 48px;
  font-size: 15px;
}

/* ===== CARDS LAYANAN ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card-layanan {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card-layanan:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.card-layanan.card-featured {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

.card-featured h3 { color: white; }
.card-featured p { color: rgba(255,255,255,0.85); }
.card-featured .card-list li { color: rgba(255,255,255,0.9); }
.card-featured .card-list li::before { color: rgba(255,255,255,0.7); }

.card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.2);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.card-layanan h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.card-layanan p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.card-list {
  list-style: none;
  margin-bottom: 24px;
}

.card-list li {
  font-size: 13px;
  color: var(--text-muted);
  padding: 4px 0;
}

.card-list li::before {
  content: '✓ ';
  color: var(--green);
  font-weight: 700;
}

.card-featured .card-list li::before { color: rgba(255,255,255,0.8); }

.card-btn {
  width: 100%;
  padding: 11px;
  background: var(--green-light);
  color: var(--green-dark);
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.card-btn:hover { background: var(--green-mid); }

.card-btn-white {
  background: white;
  color: var(--green);
}
.card-btn-white:hover { background: var(--green-light); }

/* ===== PROFIL BPBAT ===== */
.profil-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.info-list { display: flex; flex-direction: column; gap: 12px; }

.info-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--text-muted);
}

.info-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

.visual-card {
  background: var(--green);
  color: white;
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
}

.visual-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
}

.visual-text {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,0.9);
  font-style: italic;
}

.fungsi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.fungsi-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== CTA ===== */
.section-cta {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  padding: 72px 40px;
  text-align: center;
  color: white;
}

.section-cta h2 {
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 800;
  margin-bottom: 12px;
}

.section-cta p {
  color: rgba(255,255,255,0.85);
  font-size: 16px;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.section-cta .btn-primary {
  background: white;
  color: var(--green);
}
.section-cta .btn-primary:hover { background: var(--green-light); }

/* ===== FOOTER ===== */
.footer {
  padding: 32px 40px;
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-brand {
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
}

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 200;
  backdrop-filter: blur(3px);
}

.modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 201;
  background: white;
  border-radius: 16px;
  padding: 36px 32px 32px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  max-height: 90vh;
  overflow-y: auto;
}

.modal.open, .modal-overlay.open { display: block; }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--bg);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { background: var(--border); }

.modal-brand {
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 20px;
}

.modal-tabs {
  display: flex;
  background: var(--bg);
  border-radius: 9px;
  padding: 4px;
  margin-bottom: 24px;
  gap: 4px;
}

.modal-tab {
  flex: 1;
  padding: 9px;
  border: none;
  background: transparent;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  font-family: inherit;
  transition: all 0.2s;
}

.modal-tab.active {
  background: white;
  color: var(--green);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* ===== FORM ===== */
.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  color: var(--text);
  background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--green); }

.msg {
  font-size: 13px;
  margin-bottom: 10px;
  min-height: 18px;
  border-radius: 6px;
  padding: 0;
}

.error-msg { color: #dc2626; }
.success-msg { color: #16a34a; }

.msg:not(:empty) { padding: 8px 12px; }
.error-msg:not(:empty) { background: #fef2f2; }
.success-msg:not(:empty) { background: #f0fdf4; }

.verify-info {
  text-align: center;
  padding: 20px 0;
  margin-bottom: 16px;
}

.verify-icon { font-size: 40px; margin-bottom: 12px; }
.verify-info p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.verify-info strong { color: var(--text); }

.btn-text {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  padding: 10px;
  font-family: inherit;
  margin-top: 4px;
}
.btn-text:hover { color: var(--green); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar { padding: 12px 20px; }
  .hero { padding: 48px 20px 56px; }
  .section { padding: 56px 20px; }
  .section-alt { padding: 56px 20px; }
  .profil-grid { grid-template-columns: 1fr; gap: 36px; }
  .section-cta { padding: 56px 20px; }
  .footer { padding: 24px 20px; }
  .hero-stats { gap: 20px; }
}
