:root {
  color-scheme: dark;
  --bg: #0d0b08;
  --bg-soft: #14100b;
  --bg-muted: #1a140d;
  --surface: rgba(24, 19, 14, 0.94);
  --surface-strong: rgba(31, 24, 17, 0.98);
  --border: rgba(240, 197, 93, 0.16);
  --border-strong: rgba(240, 197, 93, 0.28);
  --text: #f6efe0;
  --text-muted: #c5b79c;
  --accent: #f0c55d;
  --accent-strong: #ffdd8f;
  --accent-soft: rgba(240, 197, 93, 0.12);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  --radius: 8px;
  --container: min(1120px, calc(100vw - 2rem));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(240, 197, 93, 0.08), transparent 28%),
    linear-gradient(180deg, #090806 0%, #0d0b08 38%, #100d09 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

p,
li {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  line-height: 1.1;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.4rem);
  max-width: 9ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 18ch;
}

h3 {
  font-size: 1.12rem;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(10, 9, 7, 0.78);
  border-bottom: 1px solid rgba(240, 197, 93, 0.08);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.8rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand-mark {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: rgba(240, 197, 93, 0.08);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
}

.brand-mark img {
  width: 115%;
  max-width: none;
  transform: scale(1.18);
}

.brand-copy {
  display: grid;
  gap: 0.15rem;
}

.brand-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-strong);
  text-transform: uppercase;
}

.brand-title {
  font-size: 1rem;
  font-weight: 650;
  color: var(--text);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
}

.site-nav a,
.footer-links a,
.footer-links span {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.site-nav a:hover,
.footer-links a:hover {
  color: var(--accent-strong);
}

.hero {
  position: relative;
  overflow: clip;
}

.hero-background {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 28%, rgba(240, 197, 93, 0.18), transparent 24%),
    radial-gradient(circle at 80% 76%, rgba(240, 197, 93, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(7, 7, 6, 0.24) 0%, rgba(7, 7, 6, 0.78) 100%);
}

.hero-shell {
  position: relative;
  z-index: 1;
  min-height: 82svh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 2rem;
  padding-top: 7rem;
  padding-bottom: 4rem;
}

.hero-copy {
  display: grid;
  gap: 1.25rem;
}

.eyebrow {
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-body {
  max-width: 42rem;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 650;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #1d1609;
}

.button-primary:hover {
  background: var(--accent-strong);
}

.button-secondary {
  background: rgba(17, 14, 10, 0.58);
  border-color: rgba(240, 197, 93, 0.24);
  color: var(--text);
}

.button-secondary:hover {
  background: rgba(29, 23, 16, 0.84);
  border-color: rgba(240, 197, 93, 0.48);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 2rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(240, 197, 93, 0.22);
  color: var(--accent-strong);
  font-size: 0.93rem;
}

.hero-note {
  max-width: 40rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-logo-stage {
  width: min(100%, 30rem);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 219, 123, 0.18) 0%, rgba(240, 197, 93, 0.04) 48%, transparent 70%);
}

.hero-logo {
  width: 88%;
  max-width: none;
  filter: drop-shadow(0 28px 56px rgba(0, 0, 0, 0.45));
}

.status-strip {
  border-top: 1px solid rgba(240, 197, 93, 0.08);
  border-bottom: 1px solid rgba(240, 197, 93, 0.08);
  background: rgba(17, 14, 10, 0.62);
}

.status-strip-row {
  display: grid;
  grid-template-columns: 18rem minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  padding: 1.2rem 0;
}

.status-strip-label {
  color: var(--accent-strong);
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-strip-copy {
  color: var(--text);
}

.section {
  padding: clamp(4rem, 7vw, 5.5rem) 0;
}

.section-compact {
  padding-top: clamp(3rem, 5vw, 4rem);
  padding-bottom: clamp(3rem, 5vw, 4rem);
}

.section-compact-top {
  padding-top: clamp(3rem, 5vw, 4rem);
}

.section-dark {
  background: linear-gradient(180deg, rgba(14, 11, 8, 0.98), rgba(19, 15, 10, 0.98));
}

.section-muted {
  background: linear-gradient(180deg, rgba(22, 17, 12, 0.92), rgba(18, 14, 10, 0.92));
}

.section-heading {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.section-note {
  max-width: 50rem;
}

.section-grid,
.story-grid {
  display: grid;
  gap: 2rem;
}

.section-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.story-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.story-panel,
.timeline-card,
.content-card,
.info-card {
  min-width: 0;
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(29, 23, 16, 0.92), rgba(18, 14, 10, 0.96));
  box-shadow: var(--shadow);
}

.stack {
  display: grid;
  gap: 1rem;
}

.feature-list {
  display: grid;
  gap: 0.85rem;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 1.2rem;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(240, 197, 93, 0.38);
}

.card-grid,
.timeline-grid,
.transparency-grid {
  display: grid;
  gap: 1rem;
}

.card-grid-milestones {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid-organizations {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-card {
  display: grid;
  gap: 1rem;
}

.card-top,
.card-meta,
.txid-list {
  display: grid;
  gap: 0.7rem;
}

.card-top h3 {
  max-width: 20ch;
}

.milestone-warning {
  color: var(--text);
  font-size: 0.94rem;
}

.card-meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-meta-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.meta-item {
  padding-top: 0.8rem;
  border-top: 1px solid rgba(240, 197, 93, 0.1);
}

.meta-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.meta-value,
.txid-list code {
  color: var(--text);
  font-size: 0.96rem;
  word-break: break-word;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(240, 197, 93, 0.16);
  background: rgba(240, 197, 93, 0.06);
  color: var(--text);
  font-size: 0.82rem;
}

.badge-draft,
.badge-not-live {
  color: #ffe4ab;
  background: rgba(240, 197, 93, 0.1);
}

.badge-proposed,
.badge-pending-verification,
.badge-opening {
  color: #f7d68a;
  background: rgba(184, 127, 23, 0.16);
}

.badge-active,
.badge-verified {
  color: #dbf6c9;
  background: rgba(82, 153, 81, 0.22);
  border-color: rgba(114, 188, 104, 0.28);
}

.badge-completed {
  color: #d2e9ff;
  background: rgba(86, 124, 180, 0.22);
  border-color: rgba(117, 154, 219, 0.28);
}

.badge-preparing {
  color: #f4e9c2;
  background: rgba(120, 104, 47, 0.24);
  border-color: rgba(214, 188, 116, 0.28);
}

.empty-note {
  margin: 0;
}

.timeline-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.timeline-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  background: rgba(240, 197, 93, 0.1);
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 700;
}

.timeline-card p,
.info-card p {
  margin: 0;
}

.transparency-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.disclaimer-band {
  border-top: 1px solid rgba(240, 197, 93, 0.08);
  border-bottom: 1px solid rgba(240, 197, 93, 0.08);
}

.disclaimer-copy {
  max-width: 58rem;
  color: var(--text);
}

.site-footer {
  padding: 1.8rem 0 2.8rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.footer-copy p,
.footer-meta {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-end;
}

@media (max-width: 1080px) {
  .hero-shell,
  .section-grid,
  .story-grid,
  .card-grid-organizations,
  .card-grid-milestones,
  .timeline-grid,
  .transparency-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-shell {
    align-items: start;
  }

  .timeline-grid article:last-child {
    grid-column: 1 / -1;
  }

  .card-meta-three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .header-row,
  .footer-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav,
  .footer-links {
    justify-content: flex-start;
  }

  .hero-shell,
  .status-strip-row,
  .section-grid,
  .story-grid,
  .card-grid-organizations,
  .card-grid-milestones,
  .timeline-grid,
  .transparency-grid {
    grid-template-columns: 1fr;
  }

  .hero-shell {
    min-height: auto;
    padding-top: 6.5rem;
    gap: 2.2rem;
  }

  .hero-visual {
    order: -1;
  }

  .hero-logo-stage {
    width: min(100%, 22rem);
  }

  h1 {
    max-width: 10ch;
  }

  .card-meta {
    grid-template-columns: 1fr;
  }
}

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

  .button {
    transition: none;
  }
}
