/* StableDID design system
   Accent: blue — decentralized identity, resolution, trust.
   Same dark substrate as Stable402, StablecoinAtlas, StableKYA.
   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;

  /* DID blue accent */
  --accent:         #60a5fa;
  --accent-dim:     rgba(96, 165, 250, 0.15);
  --accent-border:  rgba(96, 165, 250, 0.3);

  /* Protocol colors — used as labels only, not chrome */
  --amber:  #fbbf24;
  --blue:   #60a5fa;
  --green:  #34d399;
  --purple: #a78bfa;
  --teal:   #2dd4bf;
  --orange: #fb923c;
  --pink:   #f472b6;
  --cyan:   #38bdf8;
}

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(--accent);
  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;
}

/* ── 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: 600px;
  margin: 0 auto 2rem;
}

.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-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;
}

/* ── POC page layout ── */
.poc-page {
  padding: 3rem 0 4rem;
}

.poc-hero {
  max-width: 680px;
  margin-bottom: 3rem;
}

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

.poc-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.poc-tagline {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── Illustration wrapper ── */
.illustration-wrapper {
  max-width: 960px;
  margin: 0 auto 3.5rem;
}

.section-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.5rem;
}

.section-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 640px;
  margin-bottom: 1.5rem;
}

/* ── POC demo wrapper ── */
.poc-demo-wrapper {
  margin-bottom: 3.5rem;
}

/* ── POC narrative ── */
.poc-narrative {
  max-width: 640px;
  margin-bottom: 2rem;
}

.narrative-body {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.narrative-body strong {
  color: var(--text-primary);
  font-weight: 600;
}

.narrative-body code {
  font-family: var(--font-mono);
  font-size: 0.84em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.15em 0.4em;
  border-radius: 3px;
}

.narrative-body em {
  color: var(--text-primary);
  font-style: italic;
}

/* ── Tool cards grid (index page) ── */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.tool-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  background: var(--bg-card);
  text-decoration: none;
  display: block;
  transition: border-color 0.2s, transform 0.15s;
}

.tool-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
  text-decoration: none;
}

.tool-card-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2em 0.6em;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
}

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

.tool-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.tool-card-illustration-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ── 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;
}
