/*
 * Swiper Global Ecosystem & Media Infrastructure Repository
 * Design System: Modern Software Documentation & Infrastructure
 * Philosophy: Technical density, authoritative minimalism, deep charcoal + vibrant blue
 * Fonts: IBM Plex Mono (code/labels), IBM Plex Sans (body), Space Grotesk (headings)
 * Colors: #121212 (base), #3B82F6 (accent/verified), #1E293B (surface), #F8FAFC (text)
 */

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

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

body {
  background-color: #121212;
  color: #E2E8F0;
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ─── Typography ────────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: #F8FAFC;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: #94A3B8; }

p { color: #CBD5E1; margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a { color: #3B82F6; text-decoration: none; transition: color 0.15s ease; }
a:hover { color: #60A5FA; }

code, .mono {
  font-family: 'IBM Plex Mono', 'Fira Code', monospace;
  font-size: 0.8125rem;
}

/* ─── Layout Utilities ──────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--wide { max-width: 1400px; }
.container--narrow { max-width: 860px; }

.section {
  padding: 5rem 0;
}

.section--sm {
  padding: 3rem 0;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

/* ─── Header / Navigation ───────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 18, 18, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 2rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.04em;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text-primary {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: #F8FAFC;
  letter-spacing: -0.01em;
}

.logo-text-secondary {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6875rem;
  color: #64748B;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
}

.nav-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #94A3B8;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
  text-decoration: none;
}

.nav-link:hover { color: #F8FAFC; background: rgba(255,255,255,0.06); }
.nav-link.active { color: #3B82F6; background: rgba(59,130,246,0.1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* ─── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s cubic-bezier(0.23, 1, 0.32, 1);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: #3B82F6;
  color: #fff;
  box-shadow: 0 1px 3px rgba(59,130,246,0.3), 0 0 0 1px rgba(59,130,246,0.2);
}

.btn-primary:hover {
  background: #2563EB;
  color: #fff;
  box-shadow: 0 4px 12px rgba(59,130,246,0.4), 0 0 0 1px rgba(59,130,246,0.3);
}

.btn-outline {
  background: transparent;
  color: #CBD5E1;
  border: 1px solid rgba(255,255,255,0.12);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.06);
  color: #F8FAFC;
  border-color: rgba(255,255,255,0.2);
}

.btn-verify {
  background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.5rem 1.125rem;
  border-radius: 7px;
  box-shadow: 0 2px 8px rgba(59,130,246,0.35);
  letter-spacing: 0.02em;
}

.btn-verify:hover {
  background: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(59,130,246,0.5);
  transform: translateY(-1px);
}

.btn-lg {
  font-size: 0.9375rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9px;
}

/* ─── Hero Section ──────────────────────────────────────────────────────────── */
.hero {
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(59,130,246,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 50%, rgba(29,78,216,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  color: #3B82F6;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 100px;
  padding: 0.3rem 0.875rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #3B82F6;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

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

.hero-title { margin-bottom: 1.25rem; }

.hero-title span {
  background: linear-gradient(135deg, #3B82F6 0%, #93C5FD 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.0625rem;
  color: #94A3B8;
  max-width: 640px;
  margin-bottom: 2rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-meta {
  margin-top: 3.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.hero-meta-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: #F8FAFC;
}

.hero-meta-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6875rem;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-meta-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.1);
}

/* ─── Cards ─────────────────────────────────────────────────────────────────── */
.card {
  background: #1A1A2E;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: rgba(59,130,246,0.25);
  box-shadow: 0 0 0 1px rgba(59,130,246,0.1), 0 8px 24px rgba(0,0,0,0.3);
}

.card--flat {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.06);
}

.card-icon {
  width: 40px;
  height: 40px;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: #3B82F6;
}

.card-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #3B82F6;
  margin-bottom: 0.5rem;
}

.card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #F8FAFC;
  margin-bottom: 0.625rem;
}

.card-body {
  font-size: 0.875rem;
  color: #94A3B8;
  line-height: 1.65;
}

/* ─── Verified Node Badge ───────────────────────────────────────────────────── */
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #3B82F6;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 100px;
  padding: 0.2rem 0.625rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.verified-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  background: #3B82F6;
  border-radius: 50%;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 500;
  border-radius: 100px;
  padding: 0.2rem 0.625rem;
  letter-spacing: 0.04em;
}

.status-badge--active {
  color: #34D399;
  background: rgba(52,211,153,0.1);
  border: 1px solid rgba(52,211,153,0.25);
}

.status-badge--active::before {
  content: '';
  width: 5px;
  height: 5px;
  background: #34D399;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

.status-badge--pending {
  color: #FBBF24;
  background: rgba(251,191,36,0.1);
  border: 1px solid rgba(251,191,36,0.25);
}

/* ─── Section Headers ───────────────────────────────────────────────────────── */
.section-header {
  margin-bottom: 3rem;
}

.section-header--center { text-align: center; }

.section-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #3B82F6;
  margin-bottom: 0.75rem;
  display: block;
}

.section-title { margin-bottom: 0.875rem; }

.section-description {
  font-size: 1rem;
  color: #94A3B8;
  max-width: 560px;
  line-height: 1.7;
}

.section-header--center .section-description { margin: 0 auto; }

/* ─── Code / Terminal Blocks ────────────────────────────────────────────────── */
.code-block {
  background: #0D1117;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  overflow: hidden;
}

.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 1rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.code-block-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: #64748B;
  letter-spacing: 0.04em;
}

.code-block-body {
  padding: 1.25rem 1.25rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8125rem;
  line-height: 1.75;
  color: #94A3B8;
  overflow-x: auto;
}

.code-block-body .key { color: #7DD3FC; }
.code-block-body .val { color: #86EFAC; }
.code-block-body .str { color: #FCA5A5; }
.code-block-body .comment { color: #475569; font-style: italic; }

/* ─── Data Table ────────────────────────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table th {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748B;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.data-table td {
  padding: 0.875rem 1rem;
  color: #CBD5E1;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: top;
}

.data-table tr:last-child td { border-bottom: none; }

.data-table tr:hover td { background: rgba(255,255,255,0.02); }

.data-table .mono { color: #7DD3FC; }

/* ─── Divider ───────────────────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  border: none;
  margin: 0;
}

/* ─── Breadcrumb ────────────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: #475569;
  margin-bottom: 2rem;
}

.breadcrumb a { color: #64748B; text-decoration: none; }
.breadcrumb a:hover { color: #94A3B8; }
.breadcrumb-sep { color: #334155; }
.breadcrumb-current { color: #94A3B8; }

/* ─── Sidebar Layout ────────────────────────────────────────────────────────── */
.doc-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  align-items: start;
}

.doc-sidebar {
  position: sticky;
  top: 88px;
}

.sidebar-nav-group { margin-bottom: 1.5rem; }

.sidebar-nav-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #475569;
  padding: 0 0.75rem;
  margin-bottom: 0.375rem;
  display: block;
}

.sidebar-nav-link {
  display: block;
  font-size: 0.8125rem;
  color: #64748B;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
  border-left: 2px solid transparent;
}

.sidebar-nav-link:hover { color: #CBD5E1; background: rgba(255,255,255,0.04); }
.sidebar-nav-link.active { color: #3B82F6; border-left-color: #3B82F6; background: rgba(59,130,246,0.07); }

/* ─── Alert / Info Boxes ────────────────────────────────────────────────────── */
.alert {
  border-radius: 8px;
  padding: 1rem 1.25rem;
  display: flex;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.alert--info {
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.2);
  color: #93C5FD;
}

.alert--warning {
  background: rgba(251,191,36,0.07);
  border: 1px solid rgba(251,191,36,0.2);
  color: #FDE68A;
}

.alert--success {
  background: rgba(52,211,153,0.07);
  border: 1px solid rgba(52,211,153,0.2);
  color: #6EE7B7;
}

.alert-icon { flex-shrink: 0; margin-top: 1px; }

/* ─── Footer ────────────────────────────────────────────────────────────────── */
.site-footer {
  background: #0D0D0D;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 3rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand-desc {
  font-size: 0.8125rem;
  color: #475569;
  line-height: 1.65;
  margin-top: 0.875rem;
}

.footer-col-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #475569;
  margin-bottom: 0.875rem;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }

.footer-links a {
  font-size: 0.8125rem;
  color: #475569;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover { color: #94A3B8; }

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-text {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6875rem;
  color: #334155;
}

.footer-domain-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6875rem;
  color: #3B82F6;
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.15);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
}

/* ─── Spec Row ──────────────────────────────────────────────────────────────── */
.spec-row {
  display: flex;
  gap: 0;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.spec-key {
  flex: 0 0 220px;
  padding: 0.875rem 1.125rem;
  background: rgba(255,255,255,0.03);
  border-right: 1px solid rgba(255,255,255,0.07);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8125rem;
  color: #64748B;
}

.spec-val {
  flex: 1;
  padding: 0.875rem 1.125rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8125rem;
  color: #CBD5E1;
}

/* ─── Contact Node Card ─────────────────────────────────────────────────────── */
.node-card {
  background: #141420;
  border: 1px solid rgba(59,130,246,0.15);
  border-radius: 14px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.node-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #3B82F6 0%, #1D4ED8 100%);
}

.node-card:hover {
  border-color: rgba(59,130,246,0.35);
  box-shadow: 0 0 0 1px rgba(59,130,246,0.1), 0 12px 32px rgba(0,0,0,0.4);
}

.node-card-type {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #3B82F6;
  margin-bottom: 0.75rem;
}

.node-card-address {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #F8FAFC;
  margin-bottom: 0.75rem;
  word-break: break-all;
}

.node-card-desc {
  font-size: 0.875rem;
  color: #64748B;
  line-height: 1.6;
}

/* ─── Prose (long-form text) ────────────────────────────────────────────────── */
.prose h2 {
  font-size: 1.375rem;
  margin-top: 2.5rem;
  margin-bottom: 0.875rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.prose h3 {
  font-size: 1.0625rem;
  margin-top: 1.75rem;
  margin-bottom: 0.625rem;
}

.prose p {
  font-size: 0.9375rem;
  color: #94A3B8;
  line-height: 1.8;
  margin-bottom: 1.125rem;
}

.prose ul, .prose ol {
  padding-left: 1.5rem;
  margin-bottom: 1.125rem;
  color: #94A3B8;
  font-size: 0.9375rem;
  line-height: 1.75;
}

.prose li { margin-bottom: 0.375rem; }

.prose strong { color: #CBD5E1; font-weight: 600; }

/* ─── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .doc-layout { grid-template-columns: 1fr; }
  .doc-sidebar { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 4rem 0 3rem; }
  .section { padding: 3.5rem 0; }
  .site-nav { display: none; }
  .hero-meta { gap: 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .spec-row { flex-direction: column; }
  .spec-key { flex: none; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); }
}

/* ─── Utility Classes ───────────────────────────────────────────────────────── */
.text-blue { color: #3B82F6; }
.text-muted { color: #64748B; }
.text-light { color: #94A3B8; }
.text-white { color: #F8FAFC; }
.text-mono { font-family: 'IBM Plex Mono', monospace; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.w-full { width: 100%; }
.relative { position: relative; }
