/* Ngerapek + GobasPay Public Landing & Docs Stylesheet
   Selaras 100% dengan Palet Dashboard Ngerapek:
   Obsidian Violet & Warm Silk (Dark) / Alabaster Editorial (Light) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
  --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-sans: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --brand-primary: #7c3aed;
  --brand-accent: #8b5cf6;
  --brand-sky: #a78bfa;
  --accent-bright: #a78bfa;
  --brand-rose: #ec4899;
  --status-paid: #34d399;
  --status-paid-soft: rgba(52, 211, 153, 0.14);
  --status-pending: #fbbf24;
  --status-pending-soft: rgba(251, 191, 36, 0.14);
  --status-danger: #fb7185;
  --radius-md: 14px;
  --radius-lg: 18px;
}

[data-theme='dark'] {
  --bg-page: #09090d;
  --bg-elevated: #0d0d13;
  --bg-surface: #12121a;
  --bg-soft: #181823;
  --text-primary: #f4f4f6;
  --text-secondary: #c4c4d0;
  --text-muted: #7c7c8e;
  --border-subtle: rgba(255, 255, 255, 0.075);
  --border-strong: rgba(255, 255, 255, 0.14);
  --nav-bg: rgba(9, 9, 13, 0.88);
  --hero-bg: #09090d;
  --shadow-card: 0 14px 36px -10px rgba(0, 0, 0, 0.65);
}

[data-theme='light'] {
  --bg-page: #f7f7fa;
  --bg-elevated: #ffffff;
  --bg-surface: #ffffff;
  --bg-soft: #f4f4f8;
  --text-primary: #111118;
  --text-secondary: #3f3f4e;
  --text-muted: #717184;
  --brand-accent: #7c3aed;
  --brand-sky: #6d28d9;
  --accent-bright: #6d28d9;
  --status-paid: #059669;
  --status-paid-soft: rgba(5, 150, 105, 0.10);
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.15);
  --nav-bg: rgba(255, 255, 255, 0.92);
  --hero-bg: #111118;
  --shadow-card: 0 10px 28px -8px rgba(15, 23, 42, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  background-image:
    radial-gradient(900px 420px at 78% -10%, rgba(139, 92, 246, 0.10), transparent 65%),
    radial-gradient(650px 360px at 18% 0%, rgba(236, 72, 153, 0.05), transparent 60%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--font-mono); }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: 0.92rem;
  border: 1px solid transparent; cursor: pointer; transition: all 0.18s ease;
}
.btn-primary {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: #ffffff;
  box-shadow: 0 6px 20px -6px rgba(139, 92, 246, 0.55);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #9d74f7 0%, #8b5cf6 100%);
  transform: translateY(-1px);
}
.btn-secondary { background: var(--bg-surface); color: var(--text-primary); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--bg-soft); border-color: rgba(139, 92, 246, 0.45); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--text-primary); }
.btn-sm { padding: 7px 13px; font-size: 0.84rem; border-radius: 9px; }

.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  border-radius: 999px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.03em;
}
.badge-paid { background: var(--status-paid-soft); color: var(--status-paid); }
.badge-pending { background: var(--status-pending-soft); color: var(--status-pending); }
.badge-info { background: rgba(139, 92, 246, 0.16); color: var(--brand-sky); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}
.site-header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 70px;
}
.brand-mark { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark img { width: 38px; height: 38px; border-radius: 10px; }
.brand-text-wrap { display: flex; flex-direction: column; line-height: 1.18; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.12rem; }
.brand-sub { font-size: 0.67rem; font-weight: 700; letter-spacing: 0.18em; color: var(--brand-sky); margin-top: 5px; }

.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { font-size: 0.91rem; font-weight: 500; color: var(--text-secondary); transition: color 0.15s ease; }
.site-nav a:hover { color: var(--brand-sky); }
.site-header-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--border-strong); background: var(--bg-surface);
  color: var(--text-primary); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.theme-toggle:hover { border-color: rgba(139, 92, 246, 0.45); }

.hero-section {
  background-color: var(--hero-bg);
  background-image:
    radial-gradient(820px 380px at 80% 0%, rgba(139, 92, 246, 0.18), transparent 65%),
    radial-gradient(620px 320px at 12% 10%, rgba(236, 72, 153, 0.10), transparent 60%);
  color: #f4f4f6;
  padding: 66px 0 74px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-grid { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 46px; align-items: center; }
.hero-eyebrow {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: #a78bfa; margin-bottom: 14px;
}
.hero-title {
  font-family: var(--font-display); font-size: clamp(2.1rem, 4.2vw, 3.3rem);
  font-weight: 800; line-height: 1.09; letter-spacing: -0.025em; margin: 0 0 18px; color: #ffffff;
}
.hero-title .accent {
  background: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-desc { font-size: 1.02rem; color: #c4c4d0; max-width: 540px; margin: 0 0 26px; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero-cta-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #f4f4f6;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.hero-cta-secondary:hover {
  background: rgba(139, 92, 246, 0.14);
  border-color: rgba(167, 139, 250, 0.45);
}
.hero-checks { display: flex; flex-wrap: wrap; gap: 18px; font-size: 0.88rem; color: #c4c4d0; }
.check-ico { color: #34d399; font-weight: 800; }

.sim-card {
  background: #12121a;
  border: 1px solid rgba(167, 139, 250, 0.24);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(139, 92, 246, 0.12);
}
.sim-card-head {
  background: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 58%, #db2777 100%);
  padding: 16px 20px; display: flex; align-items: center; justify-content: space-between;
}
.sim-card-brand { display: flex; align-items: center; gap: 10px; }
.sim-card-brand strong { display: block; font-size: 0.94rem; color: #ffffff; }
.sim-card-brand small { color: rgba(255, 255, 255, 0.86); font-size: 0.76rem; }
.sim-pill { font-size: 0.7rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); color: #ffffff; }
.sim-card-body { padding: 20px; }
.sim-order-top { display: flex; justify-content: space-between; font-size: 0.78rem; color: #9c9cb0; margin-bottom: 6px; }
.sim-amount { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: #ffffff; margin-bottom: 14px; }
.sim-source-box, .sim-status-bar {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px;
}
.sim-source-box strong { display: block; font-size: 0.9rem; color: #f4f4f6; }
.sim-source-box small { color: #9c9cb0; font-size: 0.78rem; }
.sim-breakdown { border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 12px; display: grid; gap: 8px; font-size: 0.88rem; }
.sim-row { display: flex; justify-content: space-between; color: #c4c4d0; }
.sim-event-row {
  margin-top: 14px; padding: 11px 13px; border-radius: 10px;
  background: rgba(52, 211, 153, 0.09); border: 1px solid rgba(52, 211, 153, 0.24);
  display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; color: #d1fae5;
}
.sim-card-foot { padding: 12px 20px; background: rgba(0, 0, 0, 0.28); display: flex; justify-content: space-between; font-size: 0.78rem; color: #9c9cb0; }
.sim-replay-btn { background: transparent; border: none; color: #a78bfa; font-weight: 600; cursor: pointer; }
.sim-replay-btn:hover { color: #c4b5fd; }

.stats-strip { padding: 34px 0; background: var(--bg-elevated); border-bottom: 1px solid var(--border-subtle); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat-box { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 18px; }
.stat-value { font-family: var(--font-display); font-size: 1.45rem; font-weight: 800; }
.stat-label { font-size: 0.84rem; color: var(--text-secondary); margin-top: 4px; }

.section { padding: 68px 0; }
.section-alt { background: var(--bg-elevated); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.section-header { max-width: 680px; margin-bottom: 36px; }
.section-eyebrow { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-sky); margin-bottom: 8px; }
.section-title { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin: 0 0 12px; }
.section-desc { color: var(--text-secondary); margin: 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.card:hover { border-color: rgba(139, 92, 246, 0.30); }
.card h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin: 0 0 8px; }
.card p { margin: 0; color: var(--text-secondary); font-size: 0.92rem; }
.step-num {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  color: #ffffff; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; margin-bottom: 12px;
}
.provider-badge {
  display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em;
  color: var(--brand-sky); background: rgba(139, 92, 246, 0.14);
  padding: 4px 9px; border-radius: 6px; margin-bottom: 10px;
}

.notice-box {
  margin-top: 22px; padding: 16px 18px; border-radius: var(--radius-md);
  background: var(--status-pending-soft); border: 1px solid rgba(251, 191, 36, 0.35);
  font-size: 0.91rem;
}

.pricing-card { display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; }
.pricing-card:hover,
.pricing-card.featured {
  border-color: rgba(139, 92, 246, 0.65);
  box-shadow: 0 16px 40px -12px rgba(139, 92, 246, 0.35);
  transform: translateY(-2px);
}
.pricing-card:hover .pricing-cta-btn,
.pricing-card.featured .pricing-cta-btn {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 20px -6px rgba(139, 92, 246, 0.55);
}
.pricing-price { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; margin: 12px 0 6px; color: var(--brand-sky); }

.dev-section {
  background: #0d0d13;
  color: #f4f4f6;
  padding: 72px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}
.code-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.code-tab {
  background: rgba(255, 255, 255, 0.06); color: #c4c4d0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 7px 14px; border-radius: 8px; font-weight: 600; cursor: pointer;
}
.code-tab.active {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: #ffffff; border-color: #a78bfa;
}
.code-block {
  background: #09090d; border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-md); padding: 16px; overflow-x: auto;
  max-width: 100%; width: 100%; -webkit-overflow-scrolling: touch;
  font-family: var(--font-mono); font-size: 0.83rem; line-height: 1.65; color: #e4e4f0; margin: 0;
}
html, body { overflow-x: hidden; max-width: 100%; }
code.mono { overflow-wrap: anywhere; word-break: break-word; }

/* ===== DOCS PAGE RESPONSIVE & AI COPY PROMPT ===== */
.docs-main {
  padding: 36px 24px 72px;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.docs-main > *,
.docs-card {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.docs-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.docs-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.docs-card p {
  margin: 0 0 12px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
}
.docs-ai-box {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.14) 0%, rgba(236, 72, 153, 0.08) 100%);
  border: 1px solid rgba(139, 92, 246, 0.42);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
}
.docs-ai-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.docs-ai-copy-btn {
  white-space: nowrap;
  flex-shrink: 0;
}
.docs-code-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 8px;
}
.docs-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-bottom: none;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.docs-code-wrap .code-block {
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}
.docs-copy-mini {
  background: rgba(139, 92, 246, 0.16);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.32);
  border-radius: 7px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.docs-copy-mini:hover {
  background: rgba(139, 92, 246, 0.28);
  color: #ffffff;
}
.http-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.http-get { background: rgba(16, 185, 129, 0.16); color: #34d399; }
.http-post { background: rgba(139, 92, 246, 0.22); color: #c4b5fd; }

.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); overflow: hidden; }
.faq-btn { width: 100%; background: transparent; border: none; color: var(--text-primary); padding: 17px 20px; text-align: left; font-weight: 600; font-size: 0.97rem; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.faq-answer { display: none; padding: 0 20px 18px; color: var(--text-secondary); font-size: 0.92rem; }
.faq-item.open .faq-answer { display: block; }

.site-footer { background: var(--bg-elevated); border-top: 1px solid var(--border-subtle); padding: 38px 0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 0.9rem; color: var(--text-secondary); }
.footer-links a:hover { color: var(--brand-sky); }

.live-toast-pill {
  position: fixed; left: 20px; bottom: 20px; z-index: 40;
  background: var(--bg-surface); border: 1px solid rgba(139, 92, 246, 0.38);
  box-shadow: var(--shadow-card); border-radius: 12px; padding: 10px 14px;
  font-size: 0.82rem; display: flex; align-items: center; gap: 10px; max-width: 340px;
}

.modal-backdrop {
  position: fixed; inset: 0; background: rgba(9, 9, 13, 0.76); z-index: 100;
  display: none; align-items: center; justify-content: center; padding: 16px;
}
.modal-backdrop.open { display: flex; }
.modal-box { width: 100%; max-width: 460px; background: var(--bg-surface); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: 24px; }

@media (max-width: 960px) {
  .hero-grid, .grid-3, .grid-4, .stats-grid { grid-template-columns: 1fr 1fr; }
  .site-nav { display: none; }
}
@media (max-width: 640px) {
  .container { padding: 0 14px; }
  .hero-grid, .grid-2, .grid-3, .grid-4, .stats-grid { grid-template-columns: 1fr; }
  .live-toast-pill { display: none; }
  .site-header-inner {
    height: auto;
    min-height: 60px;
    padding: 10px 0;
    flex-wrap: wrap;
    gap: 10px;
  }
  .site-header-actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .site-header-actions .btn-sm {
    flex: 1 1 auto;
    padding: 8px 10px;
    font-size: 0.8rem;
    text-align: center;
  }
  .docs-main {
    padding: 20px 14px 48px;
    gap: 14px;
  }
  .docs-card,
  .docs-ai-box {
    padding: 16px;
  }
  .docs-ai-top {
    flex-direction: column;
    align-items: stretch;
  }
  .docs-ai-copy-btn {
    width: 100%;
    justify-content: center;
  }
  .code-block {
    padding: 12px;
    font-size: 0.76rem;
    line-height: 1.55;
  }
  .section-title {
    font-size: 1.45rem !important;
    line-height: 1.25 !important;
  }
}
