:root {
  --bg: #061018;
  --bg-top: #10202f;
  --surface: rgba(10, 20, 32, 0.86);
  --surface-soft: rgba(16, 28, 44, 0.78);
  --line: rgba(255, 255, 255, 0.12);
  --line-accent: rgba(200, 255, 36, 0.36);
  --text: #f5fbff;
  --muted: rgba(230, 244, 255, 0.72);
  --accent: #c8ff24;
  --accent-2: #39d0ff;
  --accent-3: #72ffb0;
  --shadow: 0 28px 74px rgba(0, 0, 0, 0.42);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body);
  color: var(--text);
  background:
    radial-gradient(circle at 12% 12%, rgba(57, 208, 255, 0.18), transparent 30%),
    radial-gradient(circle at 86% 18%, rgba(200, 255, 36, 0.18), transparent 26%),
    linear-gradient(180deg, var(--bg-top), var(--bg));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.38), transparent 85%);
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  width: min(1200px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 60px;
}

.site-header,
.hero-copy,
.hero-panel,
.section,
.site-footer {
  position: relative;
  z-index: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-copy strong,
h1,
h2,
h3 {
  font-family: var(--display);
  letter-spacing: -0.03em;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.92rem;
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.header-nav a,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.btn {
  gap: 10px;
}

.header-nav a:hover,
.header-nav a:focus-visible,
.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  color: #08120f;
  background: linear-gradient(135deg, var(--accent), #efff9a);
  border-color: transparent;
}

.btn-wallet {
  justify-content: flex-start;
}

.btn-logo {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(66, 22, 196, 0.22);
}

.btn-secondary {
  color: var(--text);
  background: rgba(57, 208, 255, 0.12);
  border-color: rgba(57, 208, 255, 0.32);
}

.btn-ghost,
.header-nav a:hover,
.header-nav a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.btn-small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.9rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.86fr);
  gap: 22px;
  margin-top: 22px;
  align-items: stretch;
}

.hero-copy {
  padding: 34px;
}

.hero-panel {
  padding: 22px;
  display: grid;
  gap: 14px;
  align-content: start;
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  font-weight: 800;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4.5vw, 4.2rem);
  line-height: 0.97;
  max-width: 13ch;
}

h2,
h3 {
  margin: 0;
}

.hero-lead,
.hero-note,
.hero-card-meta,
.metric-meta,
.trust-card p,
.faq-card p,
.step-card p,
.site-footer p,
.data-note {
  color: var(--muted);
  line-height: 1.75;
}

.hero-lead {
  margin-top: 18px;
  max-width: 64ch;
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-note,
.status-chip,
.bar-panel,
.epoch-card,
.step-card,
.trust-card,
.faq-card,
.metric-card,
.hero-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.hero-note {
  margin-top: 18px;
  padding: 14px 16px;
}

.wallet-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wallet-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 12px 26px rgba(66, 22, 196, 0.18);
}

.wallet-lockup-copy {
  min-width: 0;
}

.hero-card {
  padding: 18px;
  min-width: 0;
}

.hero-card-accent {
  border-color: var(--line-accent);
  background:
    linear-gradient(135deg, rgba(200, 255, 36, 0.14), rgba(57, 208, 255, 0.08)),
    var(--surface-soft);
}

.hero-card-label,
.metric-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-card-value,
.metric-value {
  display: block;
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  font-weight: 800;
}

.hero-card-value {
  font-size: 1rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.hero-card-value-mono {
  font-family: var(--mono);
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.section {
  margin-top: 22px;
  padding: 28px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.split-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.status-chip-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.status-chip {
  padding: 16px 18px;
  min-width: 0;
}

.status-chip[data-state="ok"] {
  border-color: rgba(114, 255, 176, 0.28);
}

.status-chip[data-state="warn"] {
  border-color: rgba(255, 214, 102, 0.34);
}

.status-chip[data-state="error"] {
  border-color: rgba(255, 133, 113, 0.4);
}

.status-chip-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.status-chip-value {
  display: block;
  font-family: var(--mono);
  font-size: 0.95rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.metric-grid,
.step-grid,
.trust-grid,
.faq-grid,
.epoch-grid {
  display: grid;
  gap: 14px;
}

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

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

.metric-card,
.step-card,
.trust-card,
.faq-card {
  padding: 20px;
}

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

.epoch-card {
  padding: 18px;
}

.epoch-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.epoch-head strong {
  font-family: var(--mono);
  font-size: 0.92rem;
}

.epoch-date {
  color: var(--muted);
  font-size: 0.84rem;
}

.epoch-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.epoch-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.epoch-list li:first-child {
  padding-top: 0;
  border-top: none;
}

.epoch-list span {
  color: var(--muted);
}

.epoch-list strong {
  text-align: right;
}

.bar-panel {
  margin-top: 16px;
  padding: 20px;
}

.bar-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.bar-row {
  display: grid;
  gap: 8px;
}

.bar-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.bar-track {
  width: 100%;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

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

.copy-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.copy-inline code {
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.copy-inline-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-height: 42px;
  padding: 0;
  border: 1px solid rgba(57, 208, 255, 0.32);
  border-radius: 14px;
  background: rgba(57, 208, 255, 0.12);
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.copy-inline-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.copy-inline-btn::after {
  content: attr(aria-label);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translate(-50%, 6px);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(57, 208, 255, 0.18);
  background: rgba(8, 18, 25, 0.96);
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
}

.copy-inline-btn:hover,
.copy-inline-btn:focus-visible {
  transform: translateY(-2px);
  background: rgba(57, 208, 255, 0.18);
}

.copy-inline-btn:hover::after,
.copy-inline-btn:focus-visible::after,
.copy-inline-btn[data-copied="true"]::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.copy-inline-btn[data-copied="true"] {
  color: var(--accent);
  border-color: rgba(217, 255, 70, 0.46);
  background: rgba(217, 255, 70, 0.14);
}

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

.step-number {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: rgba(200, 255, 36, 0.14);
  border: 1px solid var(--line-accent);
  color: var(--accent);
  font-weight: 800;
}

.empty-state {
  padding: 22px;
  text-align: center;
  color: var(--muted);
  border-radius: var(--radius-md);
  border: 1px dashed rgba(255, 255, 255, 0.18);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding: 18px 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

code {
  font-family: var(--mono);
  word-break: break-word;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero,
  .metric-grid,
  .metric-grid-secondary,
  .status-chip-row,
  .epoch-grid,
  .step-grid,
  .trust-grid,
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .page-shell {
    width: min(100vw - 20px, 100%);
    padding-top: 12px;
  }

  .site-header,
  .hero-copy,
  .hero-panel,
  .section,
  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-nav,
  .split-heading {
    justify-content: flex-start;
    align-items: flex-start;
  }

  .metric-grid,
  .metric-grid-secondary,
  .status-chip-row,
  .epoch-grid,
  .step-grid,
  .trust-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .wallet-lockup {
    align-items: flex-start;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
