/* docs.css — Developer docs landing pages (iter-N+16).
 *
 * Shared chrome for /docs/api and /docs/integrations.  Builds on top
 * of the dashboard v11/v13 token system (gn-eyebrow, gn-btn, gn-dot,
 * gn-wrap, gn-hex-bg) so the docs feel native to the wallet.
 *
 * Award-worthy goals:
 *   - Cinematic hero with radial glow + grid haze
 *   - Tab-able quickstart code panels with one-click copy
 *   - Glassy resource grid that lifts on hover
 *   - Sticky filter chips on the integrations directory
 */

/* ── HERO ───────────────────────────────────────────────────────── */
.gn-docs-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  gap: 28px;
  padding: 44px 36px;
  margin-bottom: 38px;
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 12% 10%, rgba(139,92,246,.15), transparent 55%),
    radial-gradient(ellipse at 88% 90%, rgba(34,211,238,.10), transparent 60%),
    linear-gradient(135deg, rgba(18,18,32,.92), rgba(10,12,22,.95));
  border: 1px solid rgba(139,92,246,.18);
  box-shadow: 0 30px 80px -40px rgba(139,92,246,.45);
  overflow: hidden;
}
.gn-docs-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(139,92,246,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,92,246,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 30% 0%, #000 0%, transparent 70%);
}
.gn-docs-hero-copy { position: relative; z-index: 1; }
.gn-docs-h1 {
  margin: 14px 0 16px;
  font-family: Poppins, Inter, system-ui, sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 700; line-height: 1.1; color: #f8fafc;
  letter-spacing: -.01em;
  background: linear-gradient(135deg, #f8fafc 0%, #c4b5fd 50%, #67e8f9 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.gn-docs-lede {
  max-width: 60ch; margin: 0 0 22px;
  color: #cbd5e1; font-size: 1.02rem; line-height: 1.6;
}
.gn-docs-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.gn-docs-pills {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 14px;
  color: #9ca3af; font-size: 0.78rem; font-weight: 600;
}
.gn-docs-pills li { display: inline-flex; align-items: center; gap: 6px; }
.gn-docs-pills .gn-dot { width: 7px; height: 7px; border-radius: 999px; background:#34d399; box-shadow:0 0 8px rgba(52,211,153,.6); }

.gn-docs-hero-card {
  position: relative; z-index: 1;
  background: linear-gradient(160deg, rgba(167,139,250,.10), rgba(34,211,238,.06));
  border: 1px solid rgba(167,139,250,.22);
  border-radius: 18px;
  padding: 22px 22px 18px;
  color: #e2e8f0;
  align-self: start;
  backdrop-filter: blur(8px);
}
.gn-docs-hero-card header { margin-bottom: 12px; }
.gn-docs-hero-card h3 { margin: 4px 0 0; font-size: 1.05rem; color: #f8fafc; }
.gn-docs-hero-card ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.gn-docs-hero-card li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.88rem; line-height: 1.45; color: #cbd5e1;
}
.gn-docs-hero-card li i { color: #a78bfa; font-size: 1.05rem; margin-top: 1px; flex: 0 0 auto; }
.gn-docs-hero-card--ints li strong { color: #c4b5fd; }

/* ── SECTION SCAFFOLDING ────────────────────────────────────────── */
.gn-docs-section { margin: 32px 0 44px; }
.gn-docs-section-head { margin-bottom: 18px; }
.gn-docs-section-head h2 {
  margin: 6px 0 6px;
  font-family: Poppins, Inter, sans-serif;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 700; color: #f1f5f9;
}
.gn-docs-section-head p {
  max-width: 68ch; margin: 0;
  color: #94a3b8; font-size: 0.95rem; line-height: 1.55;
}

/* ── QUICKSTART (tabs + code) ───────────────────────────────────── */
.gn-qs {
  background: linear-gradient(145deg, rgba(16,16,32,.85), rgba(10,12,22,.9));
  border: 1px solid rgba(139,92,246,.16);
  border-radius: 16px;
  overflow: hidden;
}
.gn-qs-tabs {
  display: flex; flex-wrap: wrap; gap: 4px;
  padding: 10px 12px 0;
  border-bottom: 1px solid rgba(139,92,246,.08);
}
.gn-qs-tab {
  background: transparent; border: 0;
  color: #94a3b8; font-weight: 600; font-size: 0.86rem;
  padding: 9px 16px; border-radius: 10px 10px 0 0;
  cursor: pointer; transition: color .15s, background .15s;
  border-bottom: 2px solid transparent;
}
.gn-qs-tab:hover { color: #c4b5fd; }
.gn-qs-tab.is-active {
  color: #f1f5f9;
  background: rgba(139,92,246,.08);
  border-bottom-color: #a78bfa;
}
.gn-qs-panel { display: none; padding: 18px 22px 22px; }
.gn-qs-panel.is-active { display: block; }
.gn-qs-blurb { margin: 0 0 12px; color: #94a3b8; font-size: 0.88rem; line-height: 1.55; max-width: 68ch; }
.gn-qs-codewrap { position: relative; }
.gn-qs-code {
  margin: 0;
  padding: 18px 20px;
  background: rgba(8,10,18,.85);
  border: 1px solid rgba(139,92,246,.12);
  border-radius: 12px;
  color: #e2e8f0;
  font-family: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.86rem; line-height: 1.55;
  overflow: auto;
  max-height: 360px;
}
.gn-qs-copy {
  position: absolute; top: 10px; right: 10px;
  background: rgba(139,92,246,.10);
  border: 1px solid rgba(139,92,246,.25);
  color: #c4b5fd;
  font-size: 0.74rem; font-weight: 600;
  padding: 5px 10px; border-radius: 8px;
  cursor: pointer; transition: background .15s, color .15s;
  display: inline-flex; align-items: center; gap: 4px;
}
.gn-qs-copy:hover { background: rgba(139,92,246,.18); color: #f1f5f9; }
.gn-qs-copy.is-done {
  background: rgba(52,211,153,.15); border-color: rgba(52,211,153,.4); color: #6ee7b7;
}

/* ── DOCS GRID (resources + integrations) ──────────────────────── */
.gn-docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.gn-docs-card {
  position: relative;
  display: flex; flex-direction: column; gap: 8px;
  padding: 20px;
  background: linear-gradient(150deg, rgba(20,20,36,.85), rgba(12,12,24,.92));
  border: 1px solid rgba(139,92,246,.14);
  border-radius: 14px;
  color: #e2e8f0;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s, box-shadow .25s;
  overflow: hidden;
}
.gn-docs-card::before {
  content: ""; position: absolute; inset: 0; border-radius: 14px; pointer-events: none;
  background: radial-gradient(ellipse at 80% -10%, rgba(167,139,250,.14), transparent 65%);
  opacity: 0; transition: opacity .25s;
}
.gn-docs-card:hover {
  transform: translateY(-3px);
  border-color: rgba(167,139,250,.45);
  box-shadow: 0 16px 40px -22px rgba(167,139,250,.55);
}
.gn-docs-card:hover::before { opacity: 1; }
.gn-docs-card-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(139,92,246,.12);
  color: #c4b5fd; font-size: 1.05rem;
}
.gn-docs-card-tag {
  display: inline-block; align-self: flex-start;
  padding: 2px 8px; border-radius: 999px;
  background: rgba(34,211,238,.10);
  color: #67e8f9; font-size: 0.66rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
}
.gn-docs-card h4 {
  margin: 0; font-size: 1rem; font-weight: 700; color: #f8fafc;
}
.gn-docs-card p {
  margin: 0; font-size: 0.86rem; color: #94a3b8; line-height: 1.5;
  flex-grow: 1;
}
.gn-docs-card-cta {
  margin-top: 4px;
  font-size: 0.82rem; font-weight: 700;
  color: #a78bfa;
  transition: color .15s;
}
.gn-docs-card:hover .gn-docs-card-cta { color: #c4b5fd; }

/* ── AUTH GRID ─────────────────────────────────────────────────── */
.gn-auth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.gn-auth-card {
  padding: 18px 20px;
  background: rgba(16,16,32,.85);
  border: 1px solid rgba(139,92,246,.14);
  border-radius: 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.gn-auth-card header {
  display: flex; align-items: center; justify-content: space-between;
}
.gn-auth-card h4 { margin: 0; font-size: 1rem; color: #f1f5f9; }
.gn-auth-rate {
  font-size: 0.72rem; font-weight: 700; color: #67e8f9;
  background: rgba(34,211,238,.10);
  padding: 3px 9px; border-radius: 999px;
}
.gn-auth-card p { margin: 0; font-size: 0.88rem; color: #cbd5e1; line-height: 1.55; }
.gn-auth-card p code {
  background: rgba(139,92,246,.10); color: #c4b5fd;
  padding: 1px 6px; border-radius: 5px; font-size: 0.82rem;
}
.gn-auth-card footer {
  margin-top: auto;
  font-size: 0.82rem; color: #94a3b8;
}
.gn-auth-card footer strong { color: #f1f5f9; font-weight: 600; }

/* ── RATE TABLE ────────────────────────────────────────────────── */
.gn-rate-table {
  background: rgba(16,16,32,.85);
  border: 1px solid rgba(139,92,246,.14);
  border-radius: 14px;
  overflow: hidden;
}
.gn-rate-row {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  align-items: center;
  padding: 12px 18px;
  border-top: 1px solid rgba(139,92,246,.06);
  font-size: 0.9rem;
}
.gn-rate-row:first-child { border-top: 0; }
.gn-rate-head {
  background: rgba(139,92,246,.06);
  color: #c4b5fd; font-weight: 700; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: .05em;
}
.gn-rate-tier  { color: #f1f5f9; font-weight: 700; }
.gn-rate-limit { color: #67e8f9; font-variant-numeric: tabular-nums; font-weight: 600; }
.gn-rate-note  { color: #94a3b8; }

/* ── INTEGRATIONS FILTER ───────────────────────────────────────── */
.gn-int-filter {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 4px 0 16px;
}
.gn-int-chip {
  background: rgba(16,16,32,.6);
  border: 1px solid rgba(139,92,246,.18);
  color: #cbd5e1;
  padding: 6px 14px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.gn-int-chip:hover { color: #c4b5fd; border-color: rgba(167,139,250,.45); }
.gn-int-chip.is-active {
  background: linear-gradient(135deg, rgba(139,92,246,.25), rgba(34,211,238,.15));
  color: #f1f5f9;
  border-color: rgba(167,139,250,.55);
  box-shadow: 0 6px 18px -10px rgba(167,139,250,.6);
}
.gn-int-card.is-hidden { display: none; }

/* ── SDK GRID ──────────────────────────────────────────────────── */
.gn-sdk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.gn-sdk-card {
  padding: 16px 18px;
  background: rgba(16,16,32,.85);
  border: 1px solid rgba(139,92,246,.14);
  border-radius: 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.gn-sdk-card h4 { margin: 0; font-size: 0.98rem; color: #f1f5f9; }
.gn-sdk-card p  { margin: 0; font-size: 0.84rem; color: #94a3b8; line-height: 1.5; }
.gn-sdk-install {
  margin-top: auto;
  background: rgba(8,10,18,.85);
  color: #67e8f9;
  font-family: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.78rem;
  padding: 6px 10px; border-radius: 8px;
  border: 1px solid rgba(34,211,238,.18);
  user-select: all;
}

/* ── NEXT BAND ─────────────────────────────────────────────────── */
.gn-docs-next {
  display: flex; flex-wrap: wrap; gap: 18px;
  justify-content: space-between; align-items: center;
  padding: 26px 30px;
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 100% 100%, rgba(34,211,238,.12), transparent 65%),
    radial-gradient(ellipse at 0% 0%, rgba(139,92,246,.14), transparent 60%),
    rgba(16,16,32,.85);
  border: 1px solid rgba(139,92,246,.18);
}
.gn-docs-next h3 { margin: 0 0 6px; color: #f8fafc; font-size: 1.18rem; }
.gn-docs-next p { margin: 0; color: #94a3b8; font-size: 0.9rem; line-height: 1.5; max-width: 60ch; }
.gn-docs-next-ctas { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 880px) {
  .gn-docs-hero { grid-template-columns: 1fr; padding: 32px 22px; }
  .gn-docs-hero-card { order: -1; }
  .gn-rate-row { grid-template-columns: 1fr 1fr; gap: 6px; padding: 12px 14px; }
  .gn-rate-row .gn-rate-note { grid-column: 1 / -1; color: #94a3b8; }
  .gn-rate-head .gn-rate-note { display: none; }
}
@media (max-width: 520px) {
  .gn-docs-hero { padding: 24px 18px; }
  .gn-qs-tab { padding: 8px 12px; font-size: 0.82rem; }
  .gn-docs-next { padding: 22px 18px; }
}
