:root {
  --charcoal: #1C1F26;
  --charcoal-deep: #141619;
  --copper: #B87333;
  --bronze: #8C5A2B;
  --surface: #2D3139;
  --surface-light: #F5F3EF;
  --surface-light-border: #d9d5cc;
  --text-dark: #0F1114;
  --text-muted: #6B6F7A;
  --success: #5DCAA5;
  --warning: #EF9F27;
  --danger: #E24B4A;
  --info: #378ADD;

  --max-width: 1200px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  color: var(--surface-light);
  background: var(--charcoal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--copper); text-decoration: none; }
a:hover { color: var(--bronze); }

h1, h2, h3, h4 {
  font-weight: 500;
  line-height: 1.2;
  color: var(--surface-light);
}

.display { font-size: 3.5rem; line-height: 1.1; letter-spacing: 0.02em; }
h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; line-height: 1.3; }
h3 { font-size: 1.25rem; line-height: 1.4; }
h4 { font-size: 1rem; line-height: 1.5; }

p, li { font-size: 1rem; }
.lead { font-size: 1.125rem; }
.small { font-size: 0.875rem; }
.micro { font-size: 0.75rem; }
.mono { font-family: var(--font-mono); font-size: 0.875rem; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
  border-top: 1px solid var(--surface);
}
.section:first-of-type { border-top: none; }

.section-light {
  background: var(--surface-light);
  color: var(--text-dark);
  border-top-color: var(--surface-light-border);
}
.section-light h1,
.section-light h2,
.section-light h3,
.section-light h4 { color: var(--text-dark); }
.section-light p { color: var(--text-dark); }
.section-light .section-label { color: var(--text-muted); }
/* Cards stay dark-bg/light-text even when nested inside a light section */
.section-light .card h3,
.section-light .card h4 { color: var(--surface-light); }
.section-light .card p { color: var(--surface-light); }

.section-label {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: block;
}

.prose { max-width: 68ch; }
.prose p + p { margin-top: 1rem; }
.prose p { color: var(--surface-light); opacity: 0.85; }
.section-light .prose p { opacity: 1; color: var(--text-dark); }
.prose ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.prose ul li {
  padding: 0.375rem 0 0.375rem 1.25rem;
  position: relative;
  color: var(--surface-light);
  opacity: 0.85;
}
.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.9375rem;
  width: 8px;
  height: 1px;
  background: var(--copper);
}
.section-light .prose ul li { color: var(--text-dark); opacity: 1; }

/* header */
.site-header {
  border-bottom: 1px solid var(--surface);
  padding: 1.125rem 0;
  position: sticky;
  top: 0;
  background: rgba(28, 31, 38, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  color: var(--surface-light);
}
.logo:hover { color: var(--surface-light); }
.logo svg { width: 75px; height: 75px; flex-shrink: 0; }
.logo-word {
  font-weight: 500;
  letter-spacing: 0.125em;
  font-size: 1.375rem;
  display: block;
  line-height: 1.1;
}
.logo-tag {
  color: var(--copper);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  display: block;
  line-height: 1.1;
  margin-top: 2px;
}

.site-nav {
  display: flex;
  gap: 2rem;
}
.site-nav a {
  color: var(--surface-light);
  font-size: 0.9375rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--copper); }
.site-nav a[aria-current="page"] {
  color: var(--copper);
  border-bottom-color: var(--copper);
}

/* hero */
.hero {
  padding: 7rem 0 6rem;
  border-bottom: 1px solid var(--surface);
}
.hero .eyebrow {
  color: var(--copper);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: block;
}
.hero h1 { max-width: 18ch; margin-bottom: 1.5rem; }
.hero .lead {
  max-width: 56ch;
  color: var(--surface-light);
  opacity: 0.8;
  margin-bottom: 2.5rem;
}

.cta-group { display: flex; gap: 1rem; flex-wrap: wrap; }

/* buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 1.5rem;
  border: 1px solid var(--copper);
  background: var(--copper);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  border-radius: 1px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover {
  background: var(--bronze);
  border-color: var(--bronze);
  color: var(--surface-light);
}
.btn-secondary {
  background: transparent;
  color: var(--copper);
}
.btn-secondary:hover {
  background: var(--copper);
  color: var(--charcoal);
  border-color: var(--copper);
}

/* cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.card {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--surface);
  border-radius: 1px;
  transition: border-color 0.15s;
}
.card:hover { border-color: var(--copper); }
.card h3 { margin-bottom: 0.75rem; }
.card p { color: var(--surface-light); opacity: 0.8; font-size: 0.9375rem; }

/* tables */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
th, td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--surface);
  vertical-align: top;
}
thead th {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  border-bottom: 1px solid var(--copper);
}
td code {
  font-family: var(--font-mono);
  color: var(--copper);
  background: transparent;
}
.section-light th,
.section-light td { border-bottom-color: var(--surface-light-border); }
.section-light thead th { color: var(--text-muted); }
.section-light td code { color: var(--bronze); }

/* badges / status */
.badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  border: 1px solid var(--text-muted);
  color: var(--text-muted);
  border-radius: 1px;
  letter-spacing: 0.05em;
}
.badge-pending { border-color: var(--warning); color: var(--warning); }
.badge-held { border-color: var(--success); color: var(--success); }
.badge-progress { border-color: var(--info); color: var(--info); }
.badge-legacy { border-color: var(--text-muted); color: var(--text-muted); }

/* identifier grid */
.id-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.id-card {
  padding: 1.25rem 1.25rem 1.25rem 1.125rem;
  background: var(--surface);
  border-left: 3px solid var(--copper);
}
.section-light .id-card { background: #eeeae0; }
.id-card .label {
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.id-card .value {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--surface-light);
  line-height: 1.4;
}
.section-light .id-card .value { color: var(--text-dark); }
.id-card .value.pending { color: var(--warning); }

/* clean list */
ul.clean {
  list-style: none;
  padding: 0;
  max-width: 72ch;
}
ul.clean li {
  padding: 0.75rem 0 0.75rem 1.75rem;
  position: relative;
  border-bottom: 1px solid var(--surface);
}
ul.clean li:last-child { border-bottom: none; }
ul.clean li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.375rem;
  width: 10px;
  height: 1px;
  background: var(--copper);
}
.section-light ul.clean li { border-bottom-color: var(--surface-light-border); }

/* inline list (markets bar) */
.inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  margin-top: 1.5rem;
  list-style: none;
  padding: 0;
}
.inline-list li {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.inline-list li strong {
  color: var(--copper);
  font-weight: 400;
  margin-right: 0.5rem;
}

/* empty state */
.empty-state {
  padding: 2rem;
  border: 1px dashed var(--surface);
  border-radius: 1px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  max-width: 60ch;
}

/* footer */
.site-footer {
  background: var(--charcoal-deep);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--surface);
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-grid h4 {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 500;
}
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid li { padding: 0.25rem 0; }
.footer-grid li a,
.footer-grid li span {
  color: var(--surface-light);
  opacity: 0.7;
  font-size: 0.9375rem;
}
.footer-grid li a:hover { color: var(--copper); opacity: 1; }
.footer-grid .mono {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}
.footer-grid .mono .label {
  color: var(--text-muted);
  display: block;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-bottom {
  border-top: 1px solid var(--surface);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.8125rem;
  gap: 1rem;
  flex-wrap: wrap;
}

/* accessibility */
:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}
.skip-link {
  position: absolute;
  top: -48px;
  left: 0;
  background: var(--copper);
  color: var(--charcoal);
  padding: 0.625rem 1rem;
  font-weight: 500;
  z-index: 100;
  font-size: 0.875rem;
}
.skip-link:focus { top: 0; }

/* credentials bar */
.credentials-bar {
  padding: 1.125rem 0;
  background: var(--charcoal-deep);
}
.credentials-bar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
}
.credentials-bar .cert-name {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--surface-light);
  opacity: 0.85;
}
.credentials-bar .sep {
  font-family: var(--font-mono);
  color: var(--copper);
  opacity: 0.7;
}

/* stat card variant of id-card */
.id-card.stat {
  padding: 1.5rem 1.25rem;
}
.id-card.stat .value {
  font-size: 2rem;
  color: var(--copper);
  margin-bottom: 0.5rem;
  line-height: 1;
}
.id-card.stat .label {
  margin-bottom: 0;
}

/* card bullets — used inside .card for capability lists */
.card-bullets {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.card-bullets li {
  font-size: 0.875rem;
  padding: 0.375rem 0 0.375rem 1rem;
  position: relative;
  color: var(--surface-light);
  opacity: 0.85;
}
.card-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.9375rem;
  width: 6px;
  height: 1px;
  background: var(--copper);
}

/* responsive */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .display { font-size: 2.25rem; }
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }
  .section { padding: 3.5rem 0; }
  .hero { padding: 4rem 0 3.5rem; }
  .site-nav { gap: 1.25rem; font-size: 0.875rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; }
  .logo svg { width: 52px; height: 52px; }
  .logo-word { font-size: 1rem; }
  .container { padding: 0 1.25rem; }
}
