/* ==========================================================================
   Hyuu APIs — Minimalist Neo-Brutalism Design System
   Pure Light Theme · Sharp Borders · Solid Hard Shadows · High Contrast
   ========================================================================== */

:root {
  /* Palette Tokens */
  --bg: #f8f6f0;               /* Warm clean paper */
  --surface: #ffffff;          /* Pure white card surface */
  --surface-alt: #f1ede4;      /* Subtle contrast background */
  --ink: #121212;              /* Deep solid black */
  --muted: #5a5750;            /* Warm readable muted text */
  --line: #121212;             /* High contrast brutal border */

  /* Semantic Accents */
  --accent: #ffd028;           /* Primary bold yellow/amber */
  --accent-hover: #f5c418;     /* Darker yellow on hover */
  --accent-sage: #86efac;      /* Positive / Success / Green */
  --accent-sky: #93c5fd;       /* Info / Blue */
  --accent-pink: #f9a8d4;      /* Secondary / Pink */
  --accent-coral: #fca5a5;     /* Warning / Red */

  /* Brutal Geometry */
  --border-w: 2.5px;
  --border: var(--border-w) solid var(--line);
  --border-thin: 1.5px solid var(--line);
  --shadow: 4px 4px 0 var(--line);
  --shadow-sm: 2.5px 2.5px 0 var(--line);
  --shadow-lg: 6px 6px 0 var(--line);
  --shadow-hover: 6px 6px 0 var(--line);
  --radius: 6px;
  --radius-sm: 4px;
}

/* ---------- Global Resets & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

code, pre, .mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Reusable Neo-Brutalism Primitives ---------- */
.nb {
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.nb-sm {
  box-shadow: var(--shadow-sm);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: var(--border-thin);
  border-radius: var(--radius-sm);
  box-shadow: 2px 2px 0 var(--line);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
  line-height: 1;
}

.bg-accent { background: var(--accent); }
.bg-yellow, .bg-amber { background: var(--accent); }
.bg-sage, .bg-lime { background: var(--accent-sage); }
.bg-sky, .bg-blue { background: var(--accent-sky); }
.bg-pink { background: var(--accent-pink); }
.bg-coral, .bg-orange { background: var(--accent-coral); }
.bg-surface { background: var(--surface); }

.hl {
  background: var(--accent);
  padding: 0 6px;
  border: var(--border-thin);
  border-radius: var(--radius-sm);
  display: inline-block;
  box-shadow: 2px 2px 0 var(--line);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--surface);
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hover);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--line);
}

.btn-primary {
  background: var(--accent);
  color: var(--ink);
}
.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  background: var(--surface);
}

.btn-lime {
  background: var(--accent-sage);
}

.btn-sky {
  background: var(--accent-sky);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
  box-shadow: var(--shadow-sm);
}

/* ---------- Site Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 9px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo-mark {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  border: var(--border-thin);
  border-radius: var(--radius-sm);
  box-shadow: 2px 2px 0 var(--line);
  font-weight: 800;
  font-size: 14px;
  color: var(--ink);
}

.logo-text {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.logo-badge {
  margin-left: 2px;
}

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

.nav-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  background: var(--surface-alt);
  border: var(--border-thin);
  border-radius: var(--radius-sm);
  box-shadow: 2px 2px 0 var(--line);
  font-size: 11px;
  font-weight: 700;
}

.health-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: #bbb;
  display: inline-block;
}

.health-dot.ok { background: #22c55e; }
.health-dot.warn { background: #f59e0b; }
.health-dot.down { background: #ef4444; }

.nav-link {
  font-weight: 700;
  font-size: 13.5px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.1s ease;
}

.nav-link:hover {
  background: var(--surface-alt);
}

.nav-link.active {
  background: var(--accent);
  border: var(--border-thin);
  box-shadow: 2px 2px 0 var(--line);
}

/* ---------- Hero Section (Minimalist Neo-Brutalist) ---------- */
.hero-section {
  padding: 44px 0 24px;
}

.hero-container {
  padding: 36px 40px;
  background: var(--surface);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-chip-row {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.hero-headline {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 18px;
  letter-spacing: -0.035em;
}

.hero-subline {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 540px;
}

.hero-cta-group {
  display: flex;
  gap: 14px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.btn-arrow {
  font-weight: 800;
  font-size: 17px;
}

.hero-badges-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 24px;
  border-top: 1.5px dashed rgba(18, 18, 18, 0.2);
}

.badge-item {
  display: flex;
  flex-direction: column;
}

.badge-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
}

.badge-lbl {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.badge-divider {
  width: 1px;
  height: 28px;
  background: rgba(18, 18, 18, 0.2);
}

/* Terminal Card in Hero */
.terminal-card {
  background: #191816;
  color: #f7f4ea;
  border-radius: var(--radius);
  overflow: hidden;
}

.terminal-header {
  background: #23221f;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #33322d;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.3);
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.terminal-title {
  font-size: 12px;
  color: #a8a49a;
}

.terminal-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #22c55e;
}

.terminal-body {
  padding: 18px;
}

.terminal-cmd-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #0d0c0b;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #2e2c28;
  margin-bottom: 14px;
}

.prompt-sign {
  color: var(--accent);
  font-weight: 700;
}

.cmd-text {
  font-size: 12.5px;
  color: #e5e2d9;
  word-break: break-all;
}

.terminal-output-box {
  background: #0d0c0b;
  border-radius: var(--radius-sm);
  border: 1.5px solid #2e2c28;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.output-label {
  font-size: 11px;
  color: #888479;
  margin-bottom: 8px;
}

.output-code {
  font-size: 12px;
  line-height: 1.45;
  color: #86efac;
  overflow-x: auto;
}

.terminal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.note-text {
  font-size: 11px;
  color: #9d998f;
}

/* ---------- Feature Boxes Grid ---------- */
.section {
  padding: 36px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-box {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  font-size: 20px;
  margin-bottom: 16px;
}

.feature-box h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.feature-box p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- Section Titles ---------- */
.section-title-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 20px;
  flex-wrap: wrap;
}

.section-heading {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  letter-spacing: -0.03em;
  margin-top: 6px;
}

.section-subtext {
  font-size: 15px;
  color: var(--muted);
  max-width: 500px;
}

/* ---------- Method badges (docs) ---------- */
.method {
  display: inline-block;
  padding: 3px 8px;
  border: var(--border-thin);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 800;
  font-family: "JetBrains Mono", monospace;
  box-shadow: 1.5px 1.5px 0 var(--line);
}

.method.GET {
  background: var(--accent-sage);
}

.method.POST {
  background: var(--accent-sky);
}

/* section-cta-center & ep-card styles dihapus bersama seksi Featured Endpoints landing */

/* ---------- Live System Health Widget (landing) ---------- */
.status-widget {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.widget-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.widget-title {
  font-size: 18px;
}

.widget-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--surface-alt);
  border: var(--border-thin);
  border-radius: var(--radius-sm);
  font-size: 12px;
}

.stat-boxes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  padding: 14px;
  background: var(--surface-alt);
  border: var(--border-thin);
  border-radius: var(--radius-sm);
  box-shadow: 2px 2px 0 var(--line);
  display: flex;
  flex-direction: column;
}

.stat-lbl {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.stat-val {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}

.widget-footer {
  font-size: 12px;
  color: var(--muted);
  margin-top: auto;
  border-top: 1px dashed rgba(18, 18, 18, 0.2);
  padding-top: 12px;
}

/* Snippets Widget */
.copy-btn {
  font-size: 11px;
  font-weight: 800;
  font-family: "JetBrains Mono", monospace;
  padding: 4px 10px;
}


/* ---------- FAQ Section ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.faq-card {
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  padding: 18px 20px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}

.faq-trigger:hover {
  background: var(--surface-alt);
}

.faq-icon {
  font-size: 20px;
  font-weight: 800;
  margin-left: 12px;
  transition: transform 0.2s ease;
}

.faq-card.open .faq-icon {
  transform: rotate(45deg);
}

.faq-content {
  display: none;
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  border-top: 1px dashed rgba(18, 18, 18, 0.15);
  margin-top: 6px;
  padding-top: 14px;
}

.faq-card.open .faq-content {
  display: block;
}

/* ---------- Documentation Layout (sidebar, tanpa navbar) ---------- */
body.docs-page {
  overflow-x: hidden;
}

.docs-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 24px 40px;
  align-items: start;
  width: 100%;
}

/* Sidebar: elemen navigasi utama menggantikan navbar */
.docs-nav {
  position: sticky;
  top: 24px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.docs-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.docs-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.docs-brand-text b {
  font-size: 15px;
  letter-spacing: -0.02em;
}

.docs-brand-text small {
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.docs-nav-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.docs-nav-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border: var(--border-thin);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  font-weight: 700;
  font-size: 13.5px;
  transition: transform 0.1s, box-shadow 0.1s;
}

.docs-nav-link:hover {
  transform: translate(-1.5px, -1.5px);
  box-shadow: 2.5px 2.5px 0 var(--line);
}

.docs-nav-link.active {
  background: var(--accent);
  box-shadow: 2px 2px 0 var(--line);
}

.docs-nav-sep {
  height: 0;
  border-top: var(--border-thin);
}

.docs-nav-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.docs-nav-meta {
  font-size: 11px;
  color: var(--muted);
}

.docs-content {
  min-width: 0;
}

.side-toggle {
  display: none;
}

.search-bar {
  margin-bottom: 24px;
}

.search-bar input {
  width: 100%;
  padding: 14px 18px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  font-weight: 600;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  outline: none;
  background: var(--surface);
  color: var(--ink);
}

.search-bar input:focus {
  border-color: var(--line);
  box-shadow: var(--shadow-hover);
}

.group {
  margin-bottom: 40px;
}

.group-head {
  margin-bottom: 18px;
}

.group-head h2 {
  font-size: 26px;
  margin-top: 8px;
  margin-bottom: 4px;
}

.group-head p {
  color: var(--muted);
  font-size: 14.5px;
}

/* Endpoint Item in Docs */
.ep {
  margin-bottom: 16px;
  overflow: hidden;
}

.ep-head {
  width: 100%;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: "Space Grotesk", sans-serif;
  transition: background 0.1s;
}

.ep-head:hover {
  background: var(--surface-alt);
}

.ep-path {
  font-size: 13.5px;
  font-weight: 700;
  flex: 1;
}

.ep-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
}

.ep-open-hint {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  border: var(--border-thin);
  border-radius: var(--radius-sm);
  padding: 3px 7px;
  background: var(--surface-alt);
  flex: 0 0 auto;
}

.ep-head:hover .ep-open-hint {
  background: var(--accent);
  color: var(--ink);
}

.ep-body {
  display: none;
  padding: 20px;
  border-top: var(--border-thin);
  background: #fffdfa;
}

.ep.open .ep-body {
  display: block;
}

.ep-desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.field label .hint {
  font-weight: 400;
  color: var(--muted);
  font-size: 12px;
  margin-left: auto;
}

.field input, .field textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  border: var(--border-thin);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  outline: none;
}

.try-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  flex-wrap: wrap;
}

.response {
  background: #191816;
  border-radius: var(--radius-sm);
  border: var(--border-thin);
  margin-top: 16px;
  overflow: hidden;
}

.response-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: #262521;
  color: #dfdbce;
  font-size: 12px;
  font-weight: 700;
  border-bottom: 1px solid #3d3b35;
}

.response pre {
  padding: 14px;
  color: #86efac;
  font-size: 12.5px;
  overflow-x: auto;
  max-height: 380px;
}

.code-examples {
  margin-top: 18px;
  background: #191816;
  border-radius: var(--radius-sm);
  border: var(--border-thin);
  overflow: hidden;
}

.code-examples-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: #262521;
  color: #dfdbce;
  font-size: 12px;
  font-weight: 700;
}

.code-examples .snippet-tabs {
  padding: 8px 14px;
  background: #1e1d1a;
  border-bottom: 1px solid #33312a;
}

.code-examples .snippet-panel {
  padding: 14px;
  color: #f7f4ea;
  font-size: 12px;
  max-height: 280px;
  overflow-x: auto;
}

/* ---------- Site Footer ---------- */
.site-footer {
  margin-top: auto;
  background: var(--surface);
  border-top: var(--border);
  padding: 24px 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  font-size: 14px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
}

.footer-brand span {
  font-weight: 400;
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.socials {
  display: flex;
  gap: 14px;
}

.social {
  font-weight: 700;
  font-size: 13px;
  padding: 6px 12px;
  border: var(--border-thin);
  border-radius: var(--radius-sm);
  box-shadow: 2px 2px 0 var(--line);
  background: var(--surface-alt);
  transition: transform 0.1s;
}

.social:hover {
  transform: translate(-1.5px, -1.5px);
  box-shadow: 3px 3px 0 var(--line);
}

/* ==========================================================================
   Endpoint Detail Drawer (docs)
   ========================================================================== */
.ep-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 18, 18, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  z-index: 200;
}

.ep-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.ep-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(620px, 94vw);
  background: var(--surface);
  border-left: var(--border);
  box-shadow: -6px 0 0 rgba(18, 18, 18, 0.15);
  transform: translateX(102%);
  visibility: hidden;
  transition: transform 0.22s ease, visibility 0.22s ease;
  z-index: 210;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ep-drawer.open {
  transform: translateX(0);
  visibility: visible;
}

body.drawer-open {
  overflow: hidden;
}

.ep-drawer-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--surface-alt);
  border-bottom: var(--border);
}

.ep-drawer-title {
  font-size: 13.5px;
  font-weight: 700;
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.ep-drawer-close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  background: var(--surface);
  border: var(--border-thin);
  border-radius: var(--radius-sm);
  box-shadow: 2px 2px 0 var(--line);
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
}

.ep-drawer-close:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--line);
  background: var(--accent-coral);
}

.ep-drawer-body {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px;
}

/* ep-body dipindah ke drawer: harus tampil tanpa aturan .ep.open */
.ep-drawer-body > .ep-body {
  display: block;
  padding: 0;
  border-top: none;
  background: transparent;
}

.ep-drawer-body pre {
  max-width: 100%;
}

.ep-drawer-body .response pre,
.ep-drawer-body .snippet-panel {
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Sidebar docs jadi panel geser + tombol toggle */
  .docs-shell {
    grid-template-columns: 1fr;
    padding: 16px 16px 32px;
    gap: 16px;
  }

  .side-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 0 16px;
    padding: 7px 12px;
    background: var(--surface);
    border: var(--border-thin);
    border-radius: var(--radius-sm);
    box-shadow: 2px 2px 0 var(--line);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
  }

  .side-toggle-bars {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
  }

  .side-toggle-bars i {
    display: block;
    width: 14px;
    height: 2px;
    background: var(--line);
  }

  .docs-nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100dvh;
    max-height: 100dvh;
    width: min(300px, 86vw);
    z-index: 210;
    border-radius: 0;
    border-top: none;
    border-bottom: none;
    border-left: none;
    transform: translateX(-104%);
    visibility: hidden;
    transition: transform 0.22s ease, visibility 0.22s ease;
  }

  .docs-nav.open {
    transform: translateX(0);
    visibility: visible;
  }

  .ep-path {
    font-size: 12.5px;
  }

  .ep-name {
    display: none;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 16px;
  }

  .header-inner {
    padding: 8px 16px;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .logo-badge,
  .status-label {
    display: none;
  }

  .ep-open-hint {
    display: none;
  }

  .nav {
    gap: 8px;
    flex: 0 0 auto;
  }

  .nav-status {
    padding: 4px 8px;
    box-shadow: 1.5px 1.5px 0 var(--line);
  }

  .nav-cta {
    display: none;
  }

  .hero-container {
    padding: 24px 20px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .stat-boxes-grid {
    grid-template-columns: 1fr;
  }

  .hero-badges-row {
    flex-wrap: wrap;
    gap: 12px;
  }

  .badge-divider {
    display: none;
  }

  /* Drawer jadi layar penuh di HP */
  .ep-drawer {
    width: 100vw;
    border-left: none;
  }

  .ep-drawer-head {
    padding: 10px 12px;
    gap: 8px;
  }

  .ep-drawer-body {
    padding: 12px;
  }

  .try-row .btn {
    flex: 1 1 auto;
  }

  .snippet-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ==========================================================================
   Small-phone refinements
   ========================================================================== */

@media (max-width: 420px) {
  .stat-boxes-grid {
    grid-template-columns: 1fr;
  }

  .search-bar input {
    padding: 12px 14px;
    font-size: 14px;
  }

  .ep-head {
    padding: 12px 13px;
    gap: 8px;
  }

  .ep-drawer-body {
    padding: 10px;
  }

  .hero-badges-row {
    gap: 10px;
  }

  .badge-val {
    font-size: 18px;
  }
}
