/* StableKYA design system
   Accent: teal — compliance, identity, trust.
   Same dark substrate as Stable402 and 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;

  /* KYA teal accent */
  --accent:         #2dd4bf;
  --accent-dim:     rgba(45, 212, 191, 0.15);
  --accent-border:  rgba(45, 212, 191, 0.3);

  /* Protocol colors — used as labels only, not chrome */
  --amber:  #fbbf24;
  --blue:   #60a5fa;
  --green:  #34d399;
  --purple: #a78bfa;
}

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

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

/* ── KYA component cards ── */
.component-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

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

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

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

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

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

/* ── Regulation timeline items ── */
.reg-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 640px;
}

.reg-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
}

.reg-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  min-width: 90px;
  padding-top: 1px;
}

.reg-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.reg-text strong {
  color: var(--text-primary);
  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(--accent); }

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

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