/* Network Data Labs — shared styles
   Dark developer aesthetic · teal accents · monospace for API feel
   No purple AI-slop gradients. */

:root {
  --bg: #0b0f14;
  --bg-elevated: #12181f;
  --bg-card: #151c24;
  --border: #243040;
  --border-subtle: #1a2430;
  --text: #e8eef4;
  --text-muted: #8b9aab;
  --text-dim: #5c6b7a;
  --accent: #3dd6c6;
  --accent-dim: #2a9e92;
  --accent-bg: rgba(61, 214, 198, 0.08);
  --warn: #e8b84a;
  --code-bg: #0a0e12;
  --radius: 10px;
  --font-sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", "Fira Code", ui-monospace, monospace;
  --max: 1080px;
  --header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

code,
.mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(11, 15, 20, 0.85);
  backdrop-filter: blur(12px);
}

.site-header .inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.logo:hover {
  text-decoration: none;
  color: var(--accent);
}
.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--accent-bg);
  border: 1px solid var(--accent-dim);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
}
.nav a:hover {
  color: var(--text);
}
.nav .lang {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
}
.nav .lang:hover {
  border-color: var(--accent-dim);
  color: var(--accent);
}
.nav .btn-sm {
  margin-left: 0.25rem;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.15rem;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 560;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover {
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #061018;
}
.btn-primary:hover {
  background: #5ee0d2;
  color: #061018;
}
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--accent-dim);
  color: var(--accent);
}
.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
}

/* —— Layout —— */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

section {
  padding: 4.5rem 0;
}
section + section {
  border-top: 1px solid var(--border-subtle);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin: 0 0 0.75rem;
}
h1, h2, h3 {
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  font-weight: 650;
}
h1 { font-size: clamp(1.85rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.45rem, 3vw, 1.85rem); }
h3 { font-size: 1.1rem; }
.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 38rem;
  margin: 0 0 1.5rem;
}

/* —— Hero —— */
.hero {
  padding: 3.5rem 0 4rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-bg);
  border: 1px solid rgba(61, 214, 198, 0.25);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.hero-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Code / JSON panel */
.code-panel {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.code-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.85rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}
.code-dots {
  display: flex;
  gap: 5px;
}
.code-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}
.code-panel pre {
  margin: 0;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.code-panel .cmd {
  color: var(--accent);
}
.code-panel .key {
  color: #7eb8ff;
}
.code-panel .str {
  color: #9ad4a0;
}
.code-panel .num {
  color: var(--warn);
}
.code-panel .bool {
  color: #d4a0d4;
}
.code-panel .hl {
  background: rgba(61, 214, 198, 0.12);
  outline: 1px solid rgba(61, 214, 198, 0.25);
  border-radius: 3px;
  padding: 0 2px;
  margin: 0 -2px;
}

/* —— Features —— */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
@media (max-width: 800px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
}
.feature-card .icon {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  margin-bottom: 0.65rem;
}
.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* —— Pricing —— */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.price-card.featured {
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 1px rgba(61, 214, 198, 0.15);
  position: relative;
}
.price-card .tier {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}
.price-card .amount {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.price-card .amount span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}
.price-card .quota {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.price-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1;
}
.price-card li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.3rem 0;
  border-top: 1px solid var(--border-subtle);
}
.price-card li::before {
  content: "→ ";
  color: var(--accent-dim);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.pricing-note {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* —— CTA —— */
.cta-band {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem 1.75rem;
  text-align: center;
}
.cta-band p {
  color: var(--text-muted);
  margin: 0.5rem auto 1.25rem;
  max-width: 32rem;
}
.cta-email {
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2rem 0 2.5rem;
  margin-top: 1rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.footer-inner a {
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: 1.25rem;
}

/* —— Docs page —— */
.docs-body {
  margin: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.docs-toolbar {
  flex-shrink: 0;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-sans);
}
.docs-toolbar a {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.docs-toolbar a:hover {
  color: var(--accent);
}
#redoc-container {
  flex: 1;
  overflow: auto;
  min-height: 0;
}

/* Utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
