:root {
  --bg: #10110b;
  --bg-2: #171a10;
  --ink: #f4f4eb;
  --muted: #bfc5ae;
  --line: rgba(174, 214, 76, 0.14);
  --green: #aed64c;
  --mint: #c8df76;
  --gold: #dfe99b;
  --rust: #91bd3b;
  --panel: rgba(22, 25, 14, 0.84);
  --panel-solid: #171a10;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 92px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(174, 214, 76, 0.12);
  background: rgba(16, 17, 11, 0.82);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-title {
  color: var(--ink);
  font-size: 16px;
  line-height: 1;
}

.brand-subtitle {
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(174, 214, 76, 0.34);
  background: #10110b;
  box-shadow: 0 0 0 3px rgba(174, 214, 76, 0.08);
  border-radius: 8px;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.site-nav {
  justify-content: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(174, 214, 76, 0.14);
  background: rgba(174, 214, 76, 0.05);
  border-radius: 999px;
}

.site-nav a {
  padding: 8px 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
}

.site-nav a:hover {
  color: var(--ink);
  background: rgba(174, 214, 76, 0.1);
}

.site-nav a.nav-x {
  min-width: 36px;
  color: #10110b;
  background: var(--green);
  text-align: center;
  font-weight: 900;
}

.site-nav a.nav-x:hover {
  color: #10110b;
  background: var(--mint);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 128px 32px 108px;
}

#privacy-scene,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#privacy-scene {
  background: #10110b;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(16, 17, 11, 0.94) 0%, rgba(16, 17, 11, 0.78) 38%, rgba(16, 17, 11, 0.2) 100%),
    linear-gradient(0deg, rgba(16, 17, 11, 1) 0%, rgba(16, 17, 11, 0) 30%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  max-width: 740px;
  font-size: clamp(52px, 8vw, 104px);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.16;
}

.hero-copy {
  max-width: 620px;
  color: var(--muted);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  font-weight: 800;
  border-radius: 8px;
}

.button.primary {
  background: var(--green);
  color: #10110b;
}

.button.secondary {
  border: 1px solid rgba(174, 214, 76, 0.24);
  background: rgba(174, 214, 76, 0.06);
}

.hero-status {
  position: absolute;
  z-index: 3;
  left: 32px;
  right: 32px;
  bottom: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 980px;
  border: 1px solid rgba(174, 214, 76, 0.14);
  background: rgba(174, 214, 76, 0.06);
  box-shadow: var(--shadow);
}

.hero-status div {
  padding: 18px;
  background: rgba(20, 23, 13, 0.84);
}

.hero-status span,
.chain-facts dt {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-status strong,
.chain-facts dd {
  margin: 5px 0 0;
  display: block;
  font-size: 18px;
}

.band {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.intro {
  padding: 88px 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1.1fr);
  gap: 70px;
  align-items: end;
}

.intro-grid p:last-child,
.chain-grid p {
  color: var(--muted);
  font-size: 18px;
}

.services,
.chain-section {
  padding: 108px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-heading.compact {
  max-width: 680px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-card {
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--panel-solid);
  border-radius: 8px;
}

.service-card.wide {
  grid-column: span 2;
  min-height: 210px;
}

.service-card p,
.flow-step p {
  color: var(--muted);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 26px;
  background: rgba(174, 214, 76, 0.1);
  color: var(--mint);
  font-weight: 900;
  border-radius: 8px;
}

.flow {
  padding: 104px 0;
}

.flow-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.flow-step {
  position: relative;
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(174, 214, 76, 0.04);
  border-radius: 8px;
}

.flow-step span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 34px;
  border: 1px solid rgba(174, 214, 76, 0.38);
  color: var(--gold);
  font-weight: 900;
  border-radius: 50%;
}

.docs-section {
  padding: 108px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.docs-stack {
  display: grid;
  gap: 44px;
}

.docs-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(320px, 1.1fr);
  gap: 52px;
  align-items: center;
}

.docs-grid p {
  color: var(--muted);
  font-size: 18px;
}

.docs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.docs-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border: 1px solid var(--line);
  background: rgba(174, 214, 76, 0.06);
}

.docs-panel div {
  min-height: 150px;
  padding: 20px;
  background: var(--panel-solid);
}

.docs-panel span {
  display: block;
  margin-bottom: 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.docs-panel strong {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}

.docs-panel code {
  display: block;
  max-width: 100%;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.docs-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.docs-card {
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--panel-solid);
  border-radius: 8px;
}

.docs-card span,
.contract-head span {
  display: block;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.docs-card p,
.docs-card li {
  color: var(--muted);
}

.docs-card ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.docs-card code,
.contract-row code {
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.contract-table {
  display: grid;
  border: 1px solid var(--line);
  background: rgba(174, 214, 76, 0.06);
}

.contract-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.65fr) minmax(240px, 1.1fr) minmax(260px, 1fr);
  gap: 18px;
  padding: 18px 20px;
  background: var(--panel-solid);
  border-bottom: 1px solid var(--line);
}

.contract-row:last-child {
  border-bottom: 0;
}

.contract-row > span:first-child {
  color: var(--ink);
  font-weight: 900;
}

.contract-row > span:nth-child(2) {
  color: var(--muted);
}

.contract-head {
  background: rgba(174, 214, 76, 0.08);
}

.explorer-section {
  padding: 108px 0;
  background: #14170e;
  border-bottom: 1px solid var(--line);
}

.explorer-grid {
  display: grid;
  grid-template-columns: minmax(0, 900px);
  justify-content: center;
  gap: 42px;
  align-items: center;
}

.explorer-copy {
  text-align: center;
}

.explorer-copy p {
  color: var(--muted);
  font-size: 18px;
}

.tx-callout {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  padding: 18px;
  text-align: left;
  border: 1px solid rgba(174, 214, 76, 0.24);
  background: rgba(174, 214, 76, 0.06);
  border-radius: 8px;
}

.tx-callout span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.tx-callout strong {
  font-size: 20px;
}

.tx-callout p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.tx-callout code {
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

.tx-callout a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 40px;
  padding: 0 14px;
  margin-top: 4px;
  background: var(--green);
  color: #10110b;
  font-size: 14px;
  font-weight: 900;
  border-radius: 8px;
}

.privacy-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 28px;
}

.privacy-points div {
  min-height: 150px;
  padding: 18px;
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(174, 214, 76, 0.04);
  border-radius: 8px;
}

.privacy-points span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.privacy-points strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.privacy-points p {
  margin: 0;
  font-size: 14px;
}

.explorer-figure {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(174, 214, 76, 0.16);
  background: rgba(174, 214, 76, 0.05);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.explorer-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: top center;
  border-radius: 6px;
}

.explorer-figure figcaption {
  padding: 12px 4px 2px;
  color: var(--muted);
  font-size: 13px;
}

.chain-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 0.8fr);
  gap: 52px;
  align-items: center;
}

.chain-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 0;
  border: 1px solid var(--line);
  background: rgba(174, 214, 76, 0.06);
}

.chain-facts div {
  min-height: 128px;
  padding: 22px;
  background: var(--panel-solid);
}

.chain-facts dd {
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 32px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .intro-grid,
  .chain-grid,
  .docs-grid,
  .docs-detail-grid,
  .explorer-grid,
  .flow-track {
    grid-template-columns: 1fr;
  }

  .contract-row {
    grid-template-columns: 1fr;
  }

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

  .hero-status {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 48px;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 64px;
    padding: 0 18px;
  }

  .brand span:last-child {
    display: grid;
  }

  .brand-subtitle {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 104px 18px 48px;
  }

  h1 {
    font-size: 48px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .section-inner {
    width: min(100% - 32px, 1180px);
  }

  .intro,
  .services,
  .flow,
  .docs-section,
  .explorer-section,
  .chain-section {
    padding: 72px 0;
  }

  .service-grid,
  .docs-panel,
  .privacy-points,
  .chain-facts {
    grid-template-columns: 1fr;
  }

  .explorer-figure {
    padding: 8px;
  }

  .explorer-figure img {
    aspect-ratio: 4 / 3;
  }

  .tx-callout a {
    width: 100%;
  }

  .service-card,
  .service-card.wide {
    grid-column: auto;
    min-height: auto;
  }

  .site-footer {
    flex-direction: column;
    padding: 24px 18px;
  }
}
