/* ============================================================
   NEXREY — style-docs.css v5 FINAL
   Theme: Yellow Pop (DapjiSync Style)
   - Halaman /docs (API Documentation)
   - Header pakai logo NEXREY real (img BxKx7Q)
   ============================================================ */

:root {
  --bg:        #FDFCF5;
  --bg-2:      #F5F3E5;
  --surface:   #FFFFFF;
  --surface-2: #FAFAF0;

  --yellow:    #FFE500;
  --yellow-dk: #E6CE00;
  --yellow-soft: #FFF9C4;
  --cyan:      #00BCD4;
  --green:     #16A34A;
  --red:       #DC2626;
  --lime:      #A8FF3E;
  --lime-soft: #ECFFD6;

  --ink:       #0A0A0A;
  --ink-2:     #4A4A4A;
  --ink-3:     #8A8A8A;

  --line:      #0A0A0A;
  --line-soft: #E5E2D3;

  --r:      16px;
  --r-sm:   12px;
  --r-pill: 100px;
  --bw:     2px;
  --max-w:  720px;

  --font-display: 'Archivo Black', -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono:    ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  --shadow-sm: 3px 3px 0 0 var(--line);
  --shadow-md: 4px 4px 0 0 var(--line);
  --shadow-lg: 5px 5px 0 0 var(--line);
}

*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100dvh;
  scroll-padding-top: 120px;
  scroll-behavior: smooth;
}

h1, h2, h3, h4 { font-weight: 900; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font: inherit; }
img { display: block; max-width: 100%; }
code, pre { font-family: var(--font-mono); }

/* ═══════════════════════════════════════════════════════════
   ANIMATED BACKGROUND
   ═══════════════════════════════════════════════════════════ */

.bg-anim {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.22;
  animation: orbFloat 18s ease-in-out infinite;
}
.bg-orb--1 { width: 320px; height: 320px; background: var(--yellow); top: -80px; left: -80px; }
.bg-orb--2 { width: 260px; height: 260px; background: var(--yellow); bottom: -60px; right: -60px; animation-delay: -6s; }
.bg-orb--3 { width: 200px; height: 200px; background: var(--yellow); top: 40%; right: 20%; animation-delay: -12s; }

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -30px) scale(1.1); }
  66%      { transform: translate(-30px, 40px) scale(0.95); }
}

.bg-grid {
  position: absolute;
  inset: -40px;
  background-image:
    linear-gradient(rgba(10,10,10,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,10,10,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridMove 14s linear infinite;
}

@keyframes gridMove {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(40px, 40px); }
}

/* ═══════════════════════════════════════════════════════════
   APP LAYOUT
   ═══════════════════════════════════════════════════════════ */

.app {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ═══════════════════════════════════════════════════════════
   HEADER — STICKY dengan LOGO NEXREY (img)
   ═══════════════════════════════════════════════════════════ */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: var(--bw) solid var(--line);
  will-change: transform;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  box-shadow: 0 2px 0 0 var(--line-soft), 0 4px 12px -4px rgba(0,0,0,0.08);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

/* ✅ LOGO BOX — pakai img NEXREY (BxKx7Q) */
.logo-box {
  width: 42px;
  height: 42px;
  border: var(--bw) solid var(--line);
  background: var(--yellow);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.logo-box svg { 
  width: 100%; 
  height: 100%; 
  display: block; 
}

.logo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.logo-box--anim {
  animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-3px) rotate(-4deg); }
}

.logo-text {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.5px;
  color: var(--ink);
  white-space: nowrap;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  transition: transform 0.12s ease;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.back-btn:active { transform: scale(0.96); }
.back-btn svg { width: 15px; height: 15px; stroke-width: 2.5; }

/* ═══════════════════════════════════════════════════════════
   MAIN
   ═══════════════════════════════════════════════════════════ */

.main {
  flex: 1;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 20px 16px 60px;
}

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */

.hero {
  text-align: center;
  padding: 16px 0 32px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--yellow);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  font-size: 11.5px;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.hero-badge--anim {
  animation: badgeFloat 2.5s ease-in-out infinite;
}

@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-3);
  flex-shrink: 0;
}

.dot--pulse {
  background: var(--green);
  animation: dotPulse 1.6s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 12px;
}

.hero-title--anim {
  animation: titleIn 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

@keyframes titleIn {
  0%   { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.text-gradient {
  background: linear-gradient(135deg, var(--yellow) 0%, var(--ink) 50%, var(--yellow) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 14px;
  color: var(--ink-2);
  max-width: 380px;
  margin: 0 auto 24px;
  line-height: 1.6;
  font-weight: 500;
}

.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 12px 24px;
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}

.hero-stats--anim {
  animation: titleIn 0.8s 0.15s cubic-bezier(0.2, 0.9, 0.3, 1.2) backwards;
}

.hero-stat { text-align: center; }

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 3px;
}

.hero-stat-label {
  font-size: 10.5px;
  color: var(--ink-3);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-stat-divider {
  width: 1px;
  height: 26px;
  background: var(--line-soft);
}

/* ═══════════════════════════════════════════════════════════
   SECTION HEAD
   ═══════════════════════════════════════════════════════════ */

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.section-count {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  background: var(--yellow);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-pill);
}

/* ═══════════════════════════════════════════════════════════
   API KEY BANNER
   ═══════════════════════════════════════════════════════════ */

.api-key-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  margin-bottom: 22px;
  background: linear-gradient(135deg, #FFFBE5 0%, #FFEE88 100%);
  border: var(--bw) solid var(--line);
  border-radius: var(--r);
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}

.api-key-banner--anim {
  animation: titleIn 0.6s 0.2s backwards;
}

.api-key-banner-icon {
  width: 48px;
  height: 48px;
  background: var(--ink);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: keyPulse 2.4s ease-in-out infinite;
}

@keyframes keyPulse {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50%      { transform: rotate(-8deg) scale(1.05); }
}

.api-key-banner-icon svg { width: 24px; height: 24px; color: var(--yellow); stroke-width: 2.5; }

.api-key-banner-text { flex: 1; min-width: 200px; }

.api-key-banner-text h3 {
  font-size: 15px;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 4px;
}

.api-key-banner-text p {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.5;
  font-weight: 500;
  margin: 0;
}

.api-key-banner-text p b {
  background: var(--ink);
  color: #fff;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.api-key-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  background: #25D366;
  color: #fff;
  border: var(--bw) solid var(--line);
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.12s;
  box-shadow: var(--shadow-sm);
}

.api-key-banner-btn svg { width: 15px; height: 15px; stroke-width: 2.5; }
.api-key-banner-btn:active { transform: scale(0.96); }

/* ═══════════════════════════════════════════════════════════
   API WARNING
   ═══════════════════════════════════════════════════════════ */

.api-warning {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  margin-bottom: 22px;
  background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
  border: 2px solid #DC2626;
  border-radius: var(--r);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.api-warning--anim {
  animation: titleIn 0.6s 0.3s backwards;
}

.api-warning::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: #DC2626;
  animation: warningPulse 1.6s ease-in-out infinite;
}

@keyframes warningPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

.api-warning-icon {
  width: 44px;
  height: 44px;
  background: #DC2626;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: warningShake 2.4s ease-in-out infinite;
}

@keyframes warningShake {
  0%, 100% { transform: rotate(0deg); }
  25%      { transform: rotate(-6deg); }
  75%      { transform: rotate(6deg); }
}

.api-warning-icon svg {
  width: 22px;
  height: 22px;
  color: #FFFFFF;
  stroke-width: 2.5;
}

.api-warning-text {
  flex: 1;
  min-width: 0;
}

.api-warning-text b {
  display: block;
  font-size: 13.5px;
  font-weight: 900;
  color: #991B1B;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.api-warning-text span {
  display: block;
  font-size: 12.5px;
  color: #7F1D1D;
  line-height: 1.6;
  font-weight: 500;
}

.api-warning-text code {
  background: rgba(220, 38, 38, 0.15);
  color: #991B1B;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 700;
  font-family: var(--font-mono);
}

.api-warning-text b code {
  background: rgba(255, 255, 255, 0.6);
  color: #991B1B;
}

/* ═══════════════════════════════════════════════════════════
   LANGUAGE TABS
   ═══════════════════════════════════════════════════════════ */

.api-lang-tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-pill);
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}

.api-lang-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-3) !important;
  background: transparent;
  transition: all 0.15s;
  white-space: nowrap;
  border: none;
}

.api-lang-tab svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
  color: var(--ink-3) !important;
  stroke: var(--ink-3) !important;
}

.api-lang-tab span {
  color: var(--ink-3) !important;
}

.api-lang-tab:hover {
  color: var(--ink) !important;
}
.api-lang-tab:hover svg {
  color: var(--ink) !important;
  stroke: var(--ink) !important;
}
.api-lang-tab:hover span {
  color: var(--ink) !important;
}

.api-lang-tab--active {
  background: var(--yellow) !important;
  box-shadow: 2px 2px 0 0 var(--line);
}

.api-lang-tab--active,
.api-lang-tab--active span,
.api-lang-tab--active i {
  color: #0A0A0A !important;
  -webkit-text-fill-color: #0A0A0A !important;
}

.api-lang-tab--active svg {
  color: #0A0A0A !important;
  stroke: #0A0A0A !important;
  fill: none !important;
}

.api-lang-tab--active svg * {
  stroke: #0A0A0A !important;
  fill: none !important;
}

.api-lang-tab--active:hover,
.api-lang-tab--active:hover span {
  color: #0A0A0A !important;
  -webkit-text-fill-color: #0A0A0A !important;
}
.api-lang-tab--active:hover svg {
  stroke: #0A0A0A !important;
}

/* ═══════════════════════════════════════════════════════════
   API SECTION
   ═══════════════════════════════════════════════════════════ */

.api-section { margin-bottom: 32px; }

.api-intro {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  margin-bottom: 20px;
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.api-intro-icon {
  width: 44px;
  height: 44px;
  background: var(--yellow);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.api-intro-icon svg { width: 22px; height: 22px; color: var(--ink); stroke-width: 2.5; }
.api-intro-text { flex: 1; min-width: 0; }

.api-intro-text b {
  display: block;
  font-size: 13.5px;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 3px;
}

.api-intro-text span {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.5;
  font-weight: 500;
}

.api-intro-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 229, 0, 0.4), transparent);
  transform: translateX(-100%);
  animation: introShine 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes introShine {
  0%, 100% { transform: translateX(-100%); }
  50%      { transform: translateX(100%); }
}

/* ═══════════════════════════════════════════════════════════
   API ENDPOINTS
   ═══════════════════════════════════════════════════════════ */

.api-endpoints {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.api-card {
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.api-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--ink);
  color: #fff;
  flex-wrap: wrap;
}

.api-version-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  background: var(--yellow);
  color: #0A0A0A !important;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.api-version-badge--v2 {
  background: var(--cyan);
  color: #FFFFFF !important;
}

.api-method {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.08em;
}

.api-method--post {
  background: var(--green);
  color: #FFFFFF !important;
}

.api-path {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--yellow);
  word-break: break-all;
}

.api-step-badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 10px;
  background: var(--yellow);
  color: var(--ink) !important;
  border-radius: var(--r-pill);
  letter-spacing: 0.06em;
}

.api-step-badge--new {
  background: var(--yellow);
  color: #0A0A0A !important;
}

.api-card-desc {
  padding: 16px 18px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
  font-weight: 500;
  border-bottom: 1px dashed var(--line-soft);
}

.api-card-desc code {
  background: var(--bg-2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--ink);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   PARAMS
   ═══════════════════════════════════════════════════════════ */

.api-params {
  padding: 14px 18px 0;
}

.api-params-title {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 10px;
  padding-left: 8px;
  border-left: 3px solid var(--yellow);
}

.api-param-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  margin-bottom: 6px;
  font-size: 12.5px;
}

.api-param-name {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  color: #0A0A0A !important;
  padding: 2px 8px;
  background: var(--yellow);
  border-radius: 4px;
}

.api-param-type {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  background: var(--cyan);
  color: #FFFFFF !important;
  border-radius: 4px;
}

.api-param-desc {
  flex: 1;
  min-width: 140px;
  color: var(--ink-2);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════
   CODE BLOCK
   ═══════════════════════════════════════════════════════════ */

.api-code-wrap {
  margin: 16px 18px 0;
}

.api-code-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.api-code-lang-label { color: var(--ink-3); }

.api-copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: var(--yellow);
  color: var(--ink) !important;
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.12s;
  box-shadow: 2px 2px 0 0 var(--line);
}

.api-copy span,
.api-copy svg {
  color: var(--ink) !important;
  stroke: var(--ink) !important;
}

.api-copy svg { width: 12px; height: 12px; stroke-width: 2.5; }
.api-copy:active { transform: scale(0.96); }

.api-copy--success {
  background: var(--green) !important;
  color: #FFFFFF !important;
}
.api-copy--success span,
.api-copy--success svg {
  color: #FFFFFF !important;
  stroke: #FFFFFF !important;
}

.api-code {
  background: #0A0A0A;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.65;
  color: var(--yellow);
  white-space: pre;
  margin: 0;
  display: none;
}

.api-code-lang--active { display: block; }

/* ═══════════════════════════════════════════════════════════
   TRY IT
   ═══════════════════════════════════════════════════════════ */

.api-tryit {
  margin: 16px 18px 0;
  background: var(--surface-2);
  border: 1px dashed var(--line);
  border-radius: var(--r-sm);
  padding: 14px;
}

.api-tryit-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  color: var(--ink);
}

.api-tryit-head svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
  color: var(--yellow-dk);
}

.api-tryit-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--ink-2);
  font-weight: 700;
}

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--red);
  border-radius: 50%;
  animation: dotPulse 1.4s ease-in-out infinite;
}

.api-tryit-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.api-tryit-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
}

.api-tryit-input {
  width: 100%;
  padding: 11px 13px;
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
}

.api-tryit-input:focus { border-color: var(--yellow); }
.api-tryit-input::placeholder { color: var(--ink-3); font-weight: 500; }

.api-tryit-textarea {
  resize: vertical;
  min-height: 60px;
  line-height: 1.5;
  font-size: 12px;
}

.api-tryit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--yellow);
  color: var(--ink) !important;
  border: var(--bw) solid var(--line);
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.12s;
  width: 100%;
  box-shadow: var(--shadow-sm);
}

.api-tryit-btn span,
.api-tryit-btn svg {
  color: var(--ink) !important;
  stroke: var(--ink) !important;
}

.api-tryit-btn svg { width: 15px; height: 15px; stroke-width: 2.5; }
.api-tryit-btn:active:not(:disabled) { transform: scale(0.97); }
.api-tryit-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.api-tryit-btn--loading {
  background: var(--ink);
  color: var(--yellow) !important;
}
.api-tryit-btn--loading span,
.api-tryit-btn--loading svg {
  color: var(--yellow) !important;
  stroke: var(--yellow) !important;
}

.api-tryit-btn--loading svg { animation: spin 0.7s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════
   RESPONSE
   ═══════════════════════════════════════════════════════════ */

.api-response {
  margin: 16px 18px 18px;
  background: #0A0A0A;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.api-response-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255, 229, 0, 0.1);
  border-bottom: 1px solid rgba(255, 229, 0, 0.2);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.api-response-head svg { width: 13px; height: 13px; stroke-width: 2.5; color: var(--yellow); }

.api-response-status {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: none;
}

.api-response-status--idle    { background: #8A8A8A; color: #FFFFFF !important; }
.api-response-status--loading { background: #00BCD4; color: #FFFFFF !important; }
.api-response-status--ok      { background: #16A34A; color: #FFFFFF !important; }
.api-response-status--warn    { background: var(--yellow); color: #0A0A0A !important; }
.api-response-status--fail    { background: #DC2626; color: #FFFFFF !important; }

.api-response-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 14px;
  background: rgba(0,0,0,0.3);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(255, 229, 0, 0.7);
  border-bottom: 1px solid rgba(255, 229, 0, 0.1);
  letter-spacing: 0.02em;
}

.api-response-body {
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.6;
  color: #FFF9C4;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 0;
  max-height: 320px;
  overflow-y: auto;
}

.api-response-body--live { min-height: 60px; }

.api-response-body::-webkit-scrollbar { width: 6px; }
.api-response-body::-webkit-scrollbar-track { background: rgba(0,0,0,0.4); }
.api-response-body::-webkit-scrollbar-thumb { background: var(--yellow); border-radius: 999px; }

.api-response--error .api-response-head {
  background: rgba(220, 38, 38, 0.1);
  color: #FF6B6B;
  border-bottom-color: rgba(220, 38, 38, 0.2);
}
.api-response--error .api-response-head svg { color: #FF6B6B; }

/* ═══════════════════════════════════════════════════════════
   API NOTE
   ═══════════════════════════════════════════════════════════ */

.api-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-radius: var(--r);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-2);
  font-weight: 500;
  margin-top: 20px;
  box-shadow: var(--shadow-sm);
}

.api-note svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
  color: var(--yellow-dk);
  flex-shrink: 0;
  margin-top: 1px;
}

.api-note b { color: var(--ink); font-weight: 700; }

/* ═══════════════════════════════════════════════════════════
   BASE URL
   ═══════════════════════════════════════════════════════════ */

.api-baseurl {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  margin: 24px 0;
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}

.api-baseurl-icon {
  width: 40px;
  height: 40px;
  background: var(--yellow);
  border: 2px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.api-baseurl-icon svg { width: 18px; height: 18px; color: var(--ink); stroke-width: 2.5; }
.api-baseurl-text { flex: 1; min-width: 0; }

.api-baseurl-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  margin-bottom: 4px;
}

.api-baseurl-value {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  word-break: break-all;
  background: var(--surface-2);
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-block;
  border: 1px solid var(--line-soft);
}

/* ═══════════════════════════════════════════════════════════
   INFO STRIP
   ═══════════════════════════════════════════════════════════ */

.info-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}

.info-item svg { width: 20px; height: 20px; color: var(--ink); flex-shrink: 0; stroke-width: 2.5; }

.info-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

.info-desc {
  font-size: 11.5px;
  color: var(--ink-2);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════════════════════════════ */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */

.footer {
  margin-top: auto;
  padding: 24px 16px;
  border-top: var(--bw) solid var(--line);
  text-align: center;
  background: var(--bg);
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.footer-brand img {
  border-radius: 6px;
  object-fit: cover;
  display: block;
}

.footer-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-2);
  letter-spacing: 0.03em;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (min-width: 640px) {
  .hero-title { font-size: 56px; }
  .info-strip { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .header-inner { padding: 12px 14px; }
  .logo-box { width: 36px; height: 36px; }
  .logo-text { font-size: 14px; }
  .back-btn { padding: 8px 12px; font-size: 11.5px; }

  .hero-title { font-size: 38px; }
  .hero-desc { font-size: 13px; }
  .hero-stats { padding: 10px 18px; gap: 16px; }
  .hero-stat-value { font-size: 18px; }

  .api-key-banner { padding: 14px 16px; gap: 12px; }
  .api-key-banner-icon { width: 42px; height: 42px; }
  .api-key-banner-icon svg { width: 20px; height: 20px; }
  .api-key-banner-text h3 { font-size: 13.5px; }
  .api-key-banner-text p { font-size: 12px; }
  .api-key-banner-btn { width: 100%; justify-content: center; font-size: 12px; padding: 10px 14px; }

  .api-warning {
    padding: 14px 16px;
    gap: 12px;
  }
  .api-warning-icon {
    width: 38px;
    height: 38px;
  }
  .api-warning-icon svg {
    width: 18px;
    height: 18px;
  }
  .api-warning-text b { font-size: 12.5px; }
  .api-warning-text span { font-size: 11.5px; }

  .api-lang-tab { padding: 8px 10px; font-size: 11.5px; gap: 5px; }
  .api-lang-tab svg { width: 13px; height: 13px; }

  .api-card-head { padding: 12px 14px; gap: 8px; }
  .api-path { font-size: 12px; }
  .api-method, .api-version-badge, .api-step-badge { font-size: 10px; padding: 2px 8px; }
  .api-card-desc { padding: 14px 16px; font-size: 12.5px; }
  .api-params { padding: 12px 16px 0; }
  .api-param-row { padding: 9px 11px; font-size: 12px; }
  .api-param-name, .api-param-type { font-size: 10.5px; }
  .api-code-wrap { margin: 14px 16px 0; }
  .api-code { font-size: 10.5px; padding: 12px; }
  .api-tryit { margin: 14px 16px 0; padding: 12px; }
  .api-response { margin: 14px 16px 16px; }
  .api-response-body { font-size: 10.5px; padding: 12px; }
  .api-baseurl { padding: 14px 16px; }
  .api-baseurl-value { font-size: 11.5px; padding: 5px 10px; }

  .footer-brand img { width: 20px; height: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}