﻿:root {
  --bg: #101827;
  --bg-soft: #1f2937;
  --panel: #1f2937;
  --panel-2: #243244;
  --line: #374151;
  --text: #f3f4f6;
  --muted: #9ca3af;
  --green: #22c55e;
  --green-soft: rgba(34, 197, 94, 0.14);
  --violet: #7c3aed;
  --indigo: #4338ca;
  --warning: #f59e0b;
  --font: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
  color: var(--text);
  font-family: var(--font);
}

a {
  color: inherit;
}

.top-nav {
  border-bottom: 2px solid #1f2937;
  background: #111827;
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav-wrap {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #10b981 0%, #22c55e 100%);
  color: #052e16;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-text {
  font-size: 1.35rem;
  font-weight: 700;
}

.desktop-nav {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
}

.desktop-nav a,
.mobile-nav a {
  text-decoration: none;
  color: #9ca3af;
  border-radius: 8px;
  padding: 0.46rem 0.72rem;
  border: 1px solid transparent;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.desktop-nav a.active,
.mobile-nav a.active {
  color: #ffffff;
  background: rgba(75, 85, 99, 0.32);
  border-color: #4b5563;
}

.menu-toggle {
  display: none;
  border: 1px solid #374151;
  border-radius: 8px;
  background: #1f2937;
  color: #d1d5db;
  padding: 0.45rem 0.65rem;
  font: inherit;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  border-top: 1px solid #1f2937;
  background: #111827;
  padding: 0.65rem 1rem 0.95rem;
  flex-direction: column;
  gap: 0.35rem;
}

.mobile-nav.open {
  display: flex;
}

.shell {
  width: min(1200px, calc(100% - 2rem));
  margin: 1rem auto 2rem;
  display: grid;
  gap: 1rem;
}

.promo {
  background: linear-gradient(90deg, #6d28d9, #4338ca);
  border: 2px solid #4338ca;
  border-radius: 14px;
  padding: 1rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.45);
}

.promo-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: #f59e0b;
  color: #111827;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.promo-copy h2 {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.5rem);
}

.promo-copy p {
  margin: 0.35rem 0 0;
  color: #d1d5db;
}

.promo-btn {
  text-decoration: none;
  background: #e5e7eb;
  color: #6d28d9;
  font-weight: 700;
  border-radius: 8px;
  padding: 0.55rem 0.9rem;
}

.promo-btn:hover {
  background: #c7d2fe;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
}

.hero {
  background: linear-gradient(140deg, #1f2937 0%, #172236 100%);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #86efac;
  font-weight: 700;
  font-size: 0.75rem;
  margin: 0;
}

h1 {
  margin: 0.4rem 0 0.65rem;
  line-height: 1.15;
  font-size: clamp(1.45rem, 4vw, 2.2rem);
}

h2 {
  margin: 0;
  font-size: clamp(1.1rem, 2.4vw, 1.55rem);
}

h3 {
  margin: 0;
  font-size: 1.02rem;
}

.lead {
  margin: 0;
  color: #d1d5db;
  max-width: 80ch;
}

.hero-links {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}

.pill {
  text-decoration: none;
  border: 1px solid #4b5563;
  color: #d1d5db;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(31, 41, 55, 0.7);
}

.pill:hover {
  color: #ffffff;
  border-color: #22c55e;
}

.card-grid {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.step-card {
  background: var(--panel-2);
  border: 1px solid #4b5563;
  border-radius: 12px;
  padding: 0.85rem;
  display: grid;
  gap: 0.45rem;
}

.step-card p {
  margin: 0;
  color: #d1d5db;
  font-size: 0.95rem;
}

.step-num {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green-soft);
  border: 1px solid var(--green);
  color: #bbf7d0;
  font-weight: 700;
  font-size: 0.8rem;
}

.split {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

.muted {
  color: var(--muted);
}

.list {
  margin: 0.7rem 0 0;
  padding-left: 1.15rem;
}

.list li + li {
  margin-top: 0.45rem;
}

code {
  font-family: Consolas, "Courier New", monospace;
  background: #111827;
  border: 1px solid #374151;
  color: #d1fae5;
  border-radius: 6px;
  padding: 0.08rem 0.3rem;
}

.endpoint-grid {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.endpoint-card {
  background: var(--panel-2);
  border: 1px solid #4b5563;
  border-radius: 12px;
  padding: 0.9rem;
}

.code-wrap {
  margin-top: 0.65rem;
  position: relative;
}

.copy {
  position: absolute;
  right: 0.5rem;
  top: 0.45rem;
  border: 1px solid #4b5563;
  background: #111827;
  color: #e5e7eb;
  border-radius: 7px;
  padding: 0.3rem 0.5rem;
  font-size: 0.78rem;
  cursor: pointer;
}

.copy:hover {
  border-color: #22c55e;
  color: #86efac;
}

pre {
  margin: 0;
  border: 1px solid #374151;
  border-radius: 10px;
  background: #0b1220;
  padding: 0.82rem;
  overflow-x: auto;
}

pre code {
  background: transparent;
  border: 0;
  color: #dbeafe;
  padding: 0;
}

.endpoint-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.endpoint-tags span {
  display: inline-flex;
  border: 1px solid #4b5563;
  border-radius: 999px;
  padding: 0.3rem 0.6rem;
  background: #111827;
}

.warning {
  border-color: rgba(245, 158, 11, 0.7);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0%, rgba(31, 41, 55, 1) 45%);
}

.site-footer {
  border-top: 1px solid #374151;
  padding: 1rem 0 1.2rem;
}

.footer-wrap {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  gap: 0.35rem;
}

.footer-wrap p {
  margin: 0;
  color: #9ca3af;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: #a7f3d0;
}

.footer-links a:hover {
  color: #86efac;
}

.copyright {
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

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

  .promo-btn {
    justify-self: start;
  }

  .shell,
  .nav-wrap,
  .footer-wrap {
    width: min(1200px, calc(100% - 1rem));
  }

  pre {
    padding-top: 2rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .panel,
  .promo {
    animation: rise 360ms ease-out;
  }

  .panel:nth-of-type(2) {
    animation-delay: 40ms;
  }

  .panel:nth-of-type(3) {
    animation-delay: 80ms;
  }

  .panel:nth-of-type(4) {
    animation-delay: 120ms;
  }

  .panel:nth-of-type(5) {
    animation-delay: 160ms;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
