/* StableCharter design system
   Accent: blue — institutional, regulatory, trust.
   Same dark substrate as Stable402, StableKYA, StablePQC, StablecoinAtlas.
   No Starlight; custom properties mirror the platform token set. */

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

:root {
  --font-sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Fira Code', ui-monospace, monospace;

  --bg:         #0a0e17;
  --bg-raised:  #0d1120;
  --bg-card:    #0f1528;
  --border:     rgba(148, 163, 184, 0.1);
  --border-mid: rgba(148, 163, 184, 0.18);

  --text-primary:   #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted:     #475569;

  /* Charter blue accent */
  --accent:         #3B82F6;
  --accent-dim:     rgba(59, 130, 246, 0.12);
  --accent-border:  rgba(59, 130, 246, 0.3);
  --accent-glow:    rgba(59, 130, 246, 0.06);

  /* Status colors */
  --approved:   #34d399;
  --pending:    #fbbf24;
  --filed:      #60a5fa;
  --warning:    #f43f5e;

  /* Protocol colors — labels only */
  --amber:  #fbbf24;
  --blue:   #3B82F6;
  --green:  #34d399;
  --purple: #a78bfa;
  --teal:   #2dd4bf;
  --crimson: #f43f5e;
}

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

body {
  min-height: 100vh;
}

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

a:hover {
  text-decoration: underline;
}

/* ── Network bar ── */
.network-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.5rem;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  flex-wrap: wrap;
}

.network-current {
  color: var(--text-primary);
  font-weight: 600;
}

.network-sep {
  color: #1e293b;
  user-select: none;
}

.network-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.network-link:hover {
  color: var(--text-secondary);
  text-decoration: none;
}

.network-badge {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.network-badge-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

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

.container-wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Hero ── */
.hero {
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  max-width: 740px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero-tagline {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 620px;
  margin: 0 auto 2rem;
}

.hero-stat {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent);
  margin-bottom: 2rem;
}

.hero-stat strong {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.hero-rule {
  width: 40px;
  height: 2px;
  background: var(--accent);
  border: none;
  margin: 0 auto;
  opacity: 0.5;
}

/* ── Bands ── */
.band {
  border-top: 1px solid var(--border);
  padding: 4rem 1.5rem;
}

.band.light {
  background: #ffffff;
  color: #0f172a;
  border-top-color: #e2e8f0;
}

.band.light .band-label { color: #64748b; }
.band.light .band-title { color: #0f172a; }
.band.light .band-body  { color: #334155; }
.band.light .card        { background: #f8fafc; border-color: #e2e8f0; }
.band.light .card-number { color: #3B82F6; }
.band.light .card-title  { color: #0f172a; }
.band.light .card-desc   { color: #475569; }
.band.light .data-table th { background: #f1f5f9; color: #475569; border-bottom-color: #e2e8f0; }
.band.light .data-table td { color: #334155; border-bottom-color: #e2e8f0; }
.band.light .data-table .value { color: #0f172a; }
.band.light .data-table tbody tr:hover { background: rgba(59,130,246,0.06); }
.band.light .citation     { color: #64748b; border-top-color: #e2e8f0; }
.band.light .citation a   { color: #64748b; }
.band.light a              { color: #3B82F6; }
.band.light .platform-card { background: #f8fafc; border-color: #e2e8f0; }
.band.light .platform-desc { color: #475569; }

.band-header {
  margin-bottom: 2.5rem;
}

.band-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.band-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.band-body {
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 680px;
  margin-top: 0.75rem;
}

/* ── Cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  background: var(--bg-card);
  transition: border-color 0.15s;
}

.card:hover {
  border-color: var(--border-mid);
}

.card-number {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.card-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── Data table ── */
.data-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 1.5rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  font-family: var(--font-mono);
}

.data-table thead {
  position: sticky;
  top: 0;
}

.data-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  background: var(--bg-raised);
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border-mid);
  white-space: nowrap;
}

.data-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: top;
}

.data-table tbody tr:hover {
  background: var(--accent-glow);
}

.data-table .value {
  color: var(--text-primary);
  font-weight: 600;
}

.data-table .status-approved {
  color: var(--approved);
  font-weight: 600;
}

.data-table .status-pending {
  color: var(--pending);
  font-weight: 600;
}

.data-table .status-filed {
  color: var(--filed);
  font-weight: 600;
}

/* ── Platform links ── */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}

.platform-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  background: var(--bg-card);
  text-decoration: none;
  transition: border-color 0.15s;
  display: block;
}

.platform-card:hover {
  border-color: var(--border-mid);
  text-decoration: none;
}

.platform-name {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.platform-name.slate   { color: #94a3b8; }
.platform-name.amber   { color: var(--amber); }
.platform-name.teal    { color: var(--teal); }
.platform-name.crimson { color: var(--crimson); }
.platform-name.blue    { color: var(--accent); }

.platform-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Citation ── */
.citation {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.citation a {
  color: var(--text-muted);
}

.citation a:hover {
  color: var(--text-secondary);
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--text-secondary);
  text-decoration: none;
}
