:root {
  --void: #030405;
  --black: #07090c;
  --carbon: #10141a;
  --panel: #151a21;
  --lunar: #f4f7f9;
  --paper: #ffffff;
  --muted: #a6b0bb;
  --steel: #68727f;
  --line: rgba(244, 247, 249, 0.16);
  --line-dark: rgba(3, 4, 5, 0.14);
  --amber: #d99b34;
  --amber-soft: #f1c66f;
  --ember: #e14c3d;
  --cobalt: #4e8bff;
  --green: #3be08f;
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.34);
  --max: 1180px;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.72) 0 1px, transparent 1.5px),
    radial-gradient(circle at 42% 32%, rgba(255, 255, 255, 0.52) 0 1px, transparent 1.5px),
    radial-gradient(circle at 76% 24%, rgba(255, 255, 255, 0.62) 0 1px, transparent 1.5px),
    radial-gradient(circle at 88% 72%, rgba(255, 255, 255, 0.48) 0 1px, transparent 1.5px),
    radial-gradient(circle at 22% 84%, rgba(255, 255, 255, 0.5) 0 1px, transparent 1.5px),
    linear-gradient(180deg, #020304 0%, #080a0e 48%, #050607 100%);
  background-size: 420px 420px, 540px 540px, 620px 620px, 500px 500px, 700px 700px, 100% 100%;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

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

button,
input {
  font: inherit;
}

code {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 26px;
  background: rgba(3, 4, 5, 0.7);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-family: "Orbitron", sans-serif;
  font-weight: 800;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.nav-links,
.nav-actions,
.hero-actions,
.social-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-links a {
  color: rgba(244, 247, 249, 0.72);
  font-size: 0.9rem;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--paper);
}

.button,
.icon-button,
.icon-link {
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

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

.button svg,
.icon-button svg,
.icon-link svg,
.chart-pending svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.button-primary {
  color: #050607;
  background: linear-gradient(180deg, #ffffff 0%, #dfe6ec 100%);
  border-color: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 40px rgba(244, 247, 249, 0.14);
}

.button-light {
  color: #050607;
  background: var(--paper);
}

.button-ghost {
  color: var(--paper);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.button-dark {
  color: var(--paper);
  border-color: rgba(3, 4, 5, 0.2);
  background: var(--void);
}

.button:hover,
.button:focus-visible,
.icon-button:hover,
.icon-button:focus-visible,
.icon-link:hover,
.icon-link:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.55;
}

.icon-button,
.icon-link {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  padding: 112px 26px 82px;
  isolation: isolate;
}

.hero-image,
.hero-overlay,
.starfield {
  position: absolute;
  inset: 0;
}

.hero-image {
  z-index: -3;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(1.05);
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(3, 4, 5, 0.96) 0%, rgba(3, 4, 5, 0.7) 42%, rgba(3, 4, 5, 0.22) 72%, rgba(3, 4, 5, 0.62) 100%),
    linear-gradient(180deg, rgba(3, 4, 5, 0.35) 0%, rgba(3, 4, 5, 0.72) 92%, #030405 100%);
}

.starfield {
  z-index: -2;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 86px 86px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.2));
}

.hero-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 430px;
  gap: 54px;
  align-items: end;
}

.hero-copy {
  max-width: 760px;
  padding-top: 120px;
}

.kicker {
  margin: 0 0 18px;
  color: var(--amber-soft);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.kicker.dark {
  color: var(--ember);
}

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

h1,
h2 {
  font-family: "Orbitron", sans-serif;
  font-weight: 900;
}

h1 {
  max-width: 850px;
  font-size: 5.9rem;
  text-transform: uppercase;
}

h2 {
  color: var(--void);
  font-size: 3.3rem;
}

h3 {
  font-size: 1.18rem;
}

.hero-lede,
.section-heading p,
.chart-copy p,
.closing-copy p {
  max-width: 640px;
  margin: 22px 0 0;
  color: rgba(244, 247, 249, 0.78);
  font-size: 1.12rem;
}

.contract-console {
  width: min(100%, 720px);
  min-height: 74px;
  margin-top: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  align-items: center;
  gap: 12px;
  padding: 11px 13px 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(3, 4, 5, 0.58);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
}

.console-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contract-console code {
  display: block;
  color: var(--paper);
  font-size: 0.98rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-actions {
  flex-wrap: wrap;
  margin-top: 22px;
}

.mission-dial {
  position: relative;
  align-self: center;
  justify-self: end;
  width: 390px;
  height: 390px;
  display: grid;
  place-items: center;
}

.mission-dial img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow);
}

.dial-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(244, 247, 249, 0.24);
}

.ring-one {
  animation: spin 38s linear infinite;
}

.ring-one::before,
.ring-two::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
}

.ring-two {
  inset: 34px;
  border-style: dashed;
  animation: spin 56s linear infinite reverse;
}

.dial-readout {
  position: absolute;
  right: 0;
  bottom: 42px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(3, 4, 5, 0.76);
  backdrop-filter: blur(14px);
}

.dial-readout span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.dial-readout strong {
  color: var(--paper);
  font-family: "IBM Plex Mono", monospace;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.mission-strip {
  width: min(calc(100% - 52px), var(--max));
  margin: -34px auto 0;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 12, 16, 0.92);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mission-strip div {
  min-height: 100px;
  padding: 22px;
  border-right: 1px solid var(--line);
}

.mission-strip div:last-child {
  border-right: 0;
}

.mission-strip span,
.manifest-row span,
.telemetry-panel span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.mission-strip strong,
.manifest-row strong,
.telemetry-panel strong {
  display: block;
  margin-top: 7px;
  color: var(--paper);
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.14rem;
}

.section,
.chart-section,
.closing {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 118px 26px;
}

.protocol,
.engine,
.chart-section {
  color: var(--void);
}

.protocol,
.chart-section {
  background: var(--lunar);
  width: 100%;
  max-width: none;
}

.protocol > *,
.chart-section > * {
  width: min(100%, var(--max));
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  max-width: 780px;
}

.section-heading p,
.chart-copy p {
  color: #4c5560;
}

.payload-grid {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.payload-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: var(--paper);
}

.payload-index {
  font-family: "IBM Plex Mono", monospace;
  color: var(--ember);
  font-weight: 800;
}

.payload-card h3 {
  color: var(--void);
  font-size: 1.45rem;
}

.payload-card p {
  margin: 18px 0 0;
  color: #4d5661;
}

.manifest {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 46px;
  align-items: start;
}

.manifest h2,
.engine h2 {
  color: var(--paper);
}

.manifest-copy p,
.engine .section-heading p {
  color: rgba(244, 247, 249, 0.72);
}

.manifest-list {
  border-top: 1px solid var(--line);
}

.manifest-row {
  min-height: 84px;
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.manifest-row strong {
  margin: 0;
  font-size: 1rem;
}

.engine {
  position: relative;
}

.telemetry-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.telemetry-panel {
  min-height: 138px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    var(--carbon);
}

.telemetry-panel strong {
  overflow-wrap: anywhere;
}

.rewards-console {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    #090b0f;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.console-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.console-header .kicker {
  margin-bottom: 10px;
}

.console-header h3 {
  color: var(--paper);
  font-size: 1.55rem;
}

.console-header > span {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(59, 224, 143, 0.34);
  border-radius: 999px;
  color: var(--green);
  background: rgba(59, 224, 143, 0.08);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.rewards-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.reward-metric {
  min-height: 136px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.reward-metric:last-child {
  border-right: 0;
}

.reward-metric span,
.token-payout-row span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.reward-metric strong {
  display: block;
  margin-top: 10px;
  color: var(--paper);
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.reward-metric small,
.token-payout-row small {
  display: block;
  margin-top: 8px;
  color: var(--steel);
  font-family: "IBM Plex Mono", monospace;
}

.token-payout-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.token-payout-row {
  min-height: 74px;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) minmax(160px, 0.5fr) 120px;
  gap: 18px;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}

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

.token-payout-row strong {
  color: var(--paper);
  font-family: "IBM Plex Mono", monospace;
  overflow-wrap: anywhere;
}

.token-payout-row em {
  color: var(--steel);
  font-family: "IBM Plex Mono", monospace;
  font-style: normal;
  overflow-wrap: anywhere;
}

.ops-status-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-bottom: 1px solid var(--line);
}

.ops-block {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
}

.ops-block:last-child {
  border-right: 0;
}

.ops-block h4,
.ops-feed h4 {
  margin: 0 0 14px;
  color: var(--paper);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ops-row {
  min-height: 34px;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid rgba(244, 247, 249, 0.08);
}

.ops-row span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ops-row strong {
  color: var(--paper);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.94rem;
  overflow-wrap: anywhere;
}

.ops-feeds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.ops-feed {
  min-height: 260px;
  padding: 22px 24px;
  border-right: 1px solid var(--line);
}

.ops-feed:last-child {
  border-right: 0;
}

.feed-list {
  display: grid;
  gap: 10px;
}

.feed-item {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(244, 247, 249, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.feed-item strong {
  color: var(--paper);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.feed-item span,
.feed-item small,
.feed-empty {
  color: var(--steel);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
}

.feed-empty {
  padding: 16px 0;
}

.chart-section {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 36px;
  align-items: start;
}

.chart-shell {
  min-height: 520px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: #080a0d;
  overflow: hidden;
}

.chart-shell iframe {
  width: 100%;
  height: 620px;
  border: 0;
  background: #080a0d;
}

.chart-pending {
  min-height: 520px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 34px;
  text-align: center;
  color: var(--paper);
  background:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    #080a0d;
  background-size: 44px 44px;
}

.chart-pending svg {
  width: 44px;
  height: 44px;
  color: var(--amber-soft);
}

.chart-pending strong {
  font-family: "Orbitron", sans-serif;
  font-size: 1.4rem;
}

.chart-pending span {
  max-width: 420px;
  color: var(--muted);
}

.closing {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 56px;
  align-items: center;
}

.closing-media {
  position: relative;
  aspect-ratio: 1;
}

.closing-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.closing-media::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  pointer-events: none;
}

.closing h2 {
  color: var(--paper);
}

.social-row {
  margin-top: 28px;
  flex-wrap: wrap;
}

.footer {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 34px 26px 46px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer strong {
  display: block;
  color: var(--paper);
  font-family: "Orbitron", sans-serif;
  font-size: 1.35rem;
}

.footer span {
  display: block;
  margin-top: 4px;
}

.footer p {
  max-width: 620px;
  margin: 0;
  font-size: 0.9rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 60;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--void);
  font-weight: 800;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, 18px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

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

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

@media (max-width: 1080px) {
  h1 {
    font-size: 4.5rem;
  }

  h2 {
    font-size: 2.75rem;
  }

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

  .hero-copy {
    padding-top: 70px;
  }

  .mission-dial {
    justify-self: start;
    width: 310px;
    height: 310px;
  }

  .mission-dial img {
    width: 200px;
    height: 200px;
  }

  .mission-strip,
  .payload-grid,
  .telemetry-grid,
  .rewards-metrics,
  .ops-status-grid,
  .ops-feeds {
    grid-template-columns: repeat(2, 1fr);
  }

  .reward-metric:nth-child(2) {
    border-right: 0;
  }

  .reward-metric:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
  }

  .ops-feed:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
  }

  .manifest,
  .chart-section,
  .closing {
    grid-template-columns: 1fr;
  }

  .closing-media {
    max-width: 360px;
  }
}

@media (max-width: 760px) {
  .nav {
    padding: 12px 16px;
  }

  .nav-links,
  .nav-actions .icon-link {
    display: none;
  }

  .hero {
    min-height: 700px;
    padding: 94px 18px 62px;
  }

  .hero-image img {
    object-position: 58% center;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.1rem;
  }

  .hero-lede,
  .section-heading p,
  .chart-copy p,
  .closing-copy p {
    font-size: 1rem;
  }

  .mission-strip,
  .payload-grid,
  .telemetry-grid,
  .rewards-metrics,
  .ops-status-grid,
  .ops-feeds {
    grid-template-columns: 1fr;
  }

  .console-header,
  .token-payout-row {
    grid-template-columns: 1fr;
  }

  .console-header {
    flex-direction: column;
  }

  .reward-metric,
  .reward-metric:nth-child(2),
  .reward-metric:last-child {
    grid-column: auto;
    border-right: 0;
    border-top: 0;
    border-bottom: 1px solid var(--line);
  }

  .reward-metric:last-child {
    border-bottom: 0;
  }

  .ops-block,
  .ops-block:last-child,
  .ops-feed,
  .ops-feed:last-child {
    grid-column: auto;
    border-right: 0;
    border-top: 0;
    border-bottom: 1px solid var(--line);
  }

  .ops-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .mission-strip {
    width: calc(100% - 28px);
  }

  .mission-strip div {
    min-height: 82px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .mission-strip div:last-child {
    border-bottom: 0;
  }

  .section,
  .chart-section,
  .closing {
    padding: 78px 18px;
  }

  .contract-console {
    grid-template-columns: minmax(0, 1fr) 44px;
  }

  .hero-actions,
  .social-row {
    align-items: stretch;
  }

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

  .mission-dial {
    display: none;
  }

  .manifest-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 0;
  }

  .footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
