:root {
  --anchor-offset: 2rem;
  --bg: #f4f8f6;
  --ink: #14231d;
  --muted: #4a6358;
  --panel: #ffffff;
  --surface: #e5f0ea;
  --line: #cadfd3;
  --accent: #1e8f5e;
  --accent-strong: #146645;
  --shadow: 0 0.625rem 1.875rem rgba(20, 35, 29, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-padding-top: var(--anchor-offset);
}

body {
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.5;
  overflow-x: clip;
}

.bg-orb {
  position: fixed;
  z-index: -1;
  width: 38rem;
  height: 38rem;
  border-radius: 50%;
  filter: blur(3.75rem);
  opacity: 0.32;
}

.bg-orb-a {
  top: -14rem;
  left: -10rem;
  background: #9cd9b8;
}

.bg-orb-b {
  right: -12rem;
  bottom: -16rem;
  background: #8fd6ce;
}

.container {
  width: min(100% - 2rem, 76rem);
  margin: 0 auto;
}

.section {
  margin-top: 1.25rem;
}

[id] {
  scroll-margin-top: var(--anchor-offset);
}

section[id]:target::before {
  content: "";
  display: block;
  height: var(--anchor-offset);
  margin-top: calc(var(--anchor-offset) * -1);
  visibility: hidden;
  pointer-events: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(0.625rem);
  background: color-mix(in oklab, #f4f8f6 76%, transparent);
  border-bottom: 0.0625rem solid color-mix(in oklab, var(--line) 75%, transparent);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
}

.brand-mark {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  border-radius: 0.25rem;
}

.nav-links {
  display: none;
  gap: 1rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--ink);
}

.hero {
  padding-top: 1.2rem;
}

.hero-panel,
.card,
.spec-card,
.layer-card,
.cta {
  background: var(--panel);
  border: 0.0625rem solid var(--line);
  border-radius: 1.35rem;
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: clamp(1.5rem, 3vw, 3rem);
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--muted);
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0;
}

h1 {
  margin-top: 0.8rem;
  font-size: clamp(2rem, 5vw, 3.7rem);
}

h2 {
  font-size: clamp(1.5rem, 2.9vw, 2.5rem);
}

h3 {
  font-size: 1.12rem;
}

.hero-copy {
  margin-top: 1rem;
  max-width: 48rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.safe-id-example {
  margin: 0.95rem 0 0;
  padding: 0.72rem 0.9rem;
  border: 0.0625rem solid var(--line);
  border-radius: 0.8rem;
  background: linear-gradient(180deg, #ffffff, #f8fcfa);
  color: var(--ink);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.safe-id-example code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.84rem;
}

.hero-actions {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  padding: 0.72rem 1.2rem;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.92rem;
  border: 0.0625rem solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn:hover {
  transform: translateY(-0.0625rem);
}

.btn-primary {
  color: #fff;
  background: var(--accent);
}

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

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: var(--surface);
}

.hero-stats {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0.75rem;
}

.hero-stats li {
  border: 0.0625rem solid var(--line);
  border-radius: 0.9rem;
  background: linear-gradient(180deg, #ffffff, #f8fcfa);
  padding: 0.85rem 1rem;
}

.hero-stats strong {
  display: block;
  font-size: 1.02rem;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.88rem;
}

.section-head {
  margin-bottom: 1rem;
}

.section-head p {
  margin: 0.6rem 0 0;
  color: var(--muted);
  max-width: 55rem;
}

.grid {
  display: grid;
  gap: 0.85rem;
}

.grid-2 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

.card {
  padding: 1.15rem;
}

.card p {
  margin: 0.7rem 0 0;
  color: var(--muted);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 0.125rem dashed color-mix(in oklab, var(--accent) 45%, var(--line));
  margin-left: 0.6rem;
}

.timeline-step {
  position: relative;
  padding: 0 0 1rem 1.35rem;
}

.step-index {
  position: absolute;
  left: -0.86rem;
  top: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
}

.timeline-step p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.architecture {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  align-items: center;
}

.layer-card {
  padding: 1.1rem;
}

.layer-card p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.layer-arrow {
  text-align: center;
  color: var(--muted);
  font-size: 1.2rem;
}

.specs-grid {
  align-items: stretch;
}

.spec-card {
  padding: 1.05rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.spec-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  margin-top: 0.9rem;
  border-bottom: 0.0625rem solid var(--line);
}

.spec-tab {
  border: 0;
  border-bottom: 0.125rem solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 0.58rem 0.78rem 0.68rem;
  font: inherit;
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.spec-tab:hover {
  color: var(--ink);
}

.spec-tab:focus-visible {
  outline: 0.125rem solid color-mix(in oklab, var(--accent) 40%, transparent);
  outline-offset: -0.125rem;
}

.spec-tab.is-active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.spec-tab-panels {
  margin-top: 0.7rem;
}

.spec-panel {
  display: none;
}

.spec-panel.is-active {
  display: block;
}

.mainnet-soon {
  margin-top: 0;
  border: 0.0625rem solid var(--line);
  border-radius: 0.75rem;
  background: #f7fbf9;
  padding: 0.85rem;
}

.spec-card pre {
  margin: 0.75rem 0 0;
  border: 0.0625rem solid var(--line);
  border-radius: 0.75rem;
  background: #f7fbf9;
  padding: 0.85rem;
  overflow: auto;
}

.spec-card code,
.small-note code,
.mono-list code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
}

.small-note {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.mono-list {
  list-style: none;
  margin: 0.7rem 0 0;
  padding: 0;
}

.mono-list li {
  display: grid;
  grid-template-columns: minmax(8.5rem, 11rem) 1fr;
  gap: 0.6rem;
  align-items: start;
  border-bottom: 0.0625rem dashed var(--line);
  padding: 0.45rem 0;
}

.mono-list li:last-child {
  border-bottom: 0;
}

.mono-list span {
  color: var(--muted);
  font-size: 0.85rem;
}

.faq-list {
  display: grid;
  gap: 0.65rem;
}

details {
  border: 0.0625rem solid var(--line);
  border-radius: 0.85rem;
  background: #fff;
  padding: 0.85rem 0.95rem;
}

details summary {
  cursor: pointer;
  font-weight: 700;
}

details p {
  margin: 0.6rem 0 0;
  color: var(--muted);
}

.cta {
  padding: 1.6rem;
  background: linear-gradient(180deg, #f7fdf9, #edf8f2);
}

.cta p {
  margin: 0.6rem 0 0;
  color: var(--muted);
}

.legal-page {
  padding-bottom: 1.25rem;
}

.legal-card {
  max-width: 54rem;
  margin: 0 auto;
  padding: 1.35rem;
}

.legal-card h1 {
  margin-top: 0.5rem;
}

.legal-card h2 {
  margin-top: 1.15rem;
  font-size: clamp(1.08rem, 2.1vw, 1.32rem);
}

.legal-card p {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.legal-card a {
  color: var(--accent-strong);
}

.legal-card a:hover {
  color: var(--ink);
}

.footer {
  margin-top: 1.5rem;
  border-top: 0.0625rem solid var(--line);
  background: color-mix(in oklab, #ecf6f0 80%, #fff);
}

.footer-inner {
  min-height: 4rem;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: center;
  gap: 0.35rem;
  padding: 0.75rem 0;
}

.footer p {
  margin: 0;
  font-size: 0.83rem;
  color: var(--muted);
}

p.footer-credit {
  text-align: center;
  font-size: 0.66rem;
}

.footer-credit-name {
  color: var(--accent-strong);
  font-weight: 600;
  font-size: 0.83rem;
  margin-left: 0.15rem;
}

.footer-legal {
  white-space: nowrap;
}

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

.footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.reveal {
  animation: rise 0.45s ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 48rem) {
  .section {
    margin-top: 1.45rem;
  }

  .nav-links {
    display: flex;
  }

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

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

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

  .architecture {
    grid-template-columns: 1fr auto 1fr auto 1fr;
  }

  .cta {
    padding: 2rem;
  }

  .footer-inner {
    grid-template-columns: 1fr auto 1fr;
    gap: 0.6rem;
    padding: 0;
  }

  .footer-inner > p:first-child {
    justify-self: start;
  }

  .footer-legal {
    justify-self: end;
    text-align: right;
  }
}

@media (max-width: 40rem) {
  .nav-shell > .btn {
    display: none;
  }
}
