:root {
  --ink: #7132f5;
  --violet: #9a69ff;
  --lilac: #d8c8ff;
  --paper: #f7f3ff;
  --muted: #aaa0c0;
  --night: #07040d;
  --panel: #10091d;
  --panel-solid: #0d0716;
  --line: rgba(184, 153, 255, .22);
  --danger: #ff557a;
  --success: #75f5cb;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--night); }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at 82% 13%, rgba(113, 50, 245, .27), transparent 31rem),
    radial-gradient(circle at 4% 92%, rgba(113, 50, 245, .13), transparent 28rem),
    var(--night);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { max-width: 100%; }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.site-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .48;
  background-image:
    linear-gradient(rgba(183, 153, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(183, 153, 255, .045) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 96%);
  mask-image: linear-gradient(to bottom, #000, transparent 96%);
}

.site-header {
  position: relative;
  z-index: 4;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.wordmark { color: #fff; font-size: 18px; font-weight: 900; letter-spacing: .17em; text-decoration: none; }
.wordmark span, .x-link span { color: var(--violet); }
.x-link { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .15em; text-decoration: none; }
.x-link:hover { color: var(--paper); }

.landing {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 242px);
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  align-items: center;
  gap: 56px;
  padding-block: 65px;
}
.hero-copy { position: relative; z-index: 3; }
.eyebrow { margin: 0 0 22px; color: var(--violet); font-size: 11px; font-weight: 900; letter-spacing: .2em; }
.eyebrow i { display: inline-block; width: 7px; height: 7px; margin-right: 9px; background: var(--ink); box-shadow: 0 0 15px var(--violet); }
h1, h2, p { margin-top: 0; }
h1 {
  margin-bottom: 28px;
  font-size: clamp(54px, 6.5vw, 96px);
  line-height: .9;
  letter-spacing: -.085em;
  text-transform: uppercase;
}
h1 em { color: var(--lilac); font-style: normal; }
.lead {
  max-width: 620px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.7;
}
.actions { display: flex; gap: 14px; margin-top: 38px; }
.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 0 19px;
  border: 1px solid rgba(216, 200, 255, .5);
  color: var(--paper);
  background: transparent;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .09em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); border-color: var(--lilac); }
.button-primary { min-width: 248px; background: linear-gradient(135deg, var(--ink), #4a14bf); box-shadow: 0 16px 48px rgba(113, 50, 245, .25); }
.button-secondary { min-width: 195px; background: rgba(113, 50, 245, .055); }
.button span { color: var(--lilac); font-size: 16px; }
.microcopy { margin-top: 17px; color: #776d88; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }

.art-stack { position: relative; min-height: 500px; perspective: 1000px; }
.aura { position: absolute; inset: 11% 2% 4% 6%; border-radius: 50%; background: rgba(113, 50, 245, .25); filter: blur(60px); }
.token {
  position: absolute;
  width: min(54%, 300px);
  margin: 0;
  padding: 8px 8px 13px;
  border: 1px solid rgba(184, 153, 255, .46);
  background: rgba(8, 4, 16, .96);
  box-shadow: 0 28px 62px rgba(0, 0, 0, .58);
  transform-style: preserve-3d;
}
.token img { display: block; width: 100%; aspect-ratio: 1; image-rendering: pixelated; }
.token figcaption { display: flex; justify-content: space-between; padding: 12px 4px 0; font-size: 8px; letter-spacing: .12em; }
.token figcaption span { color: var(--muted); }
.token-back { left: -1%; top: 136px; transform: rotate(-8deg) translateZ(-40px); animation: float-back 8s ease-in-out infinite; }
.token-mid { left: 26%; top: 22px; z-index: 2; transform: rotate(1.5deg); animation: float-mid 7s ease-in-out infinite; }
.token-front { right: -3%; top: 162px; z-index: 3; transform: rotate(8deg) translateZ(30px); animation: float-front 9s ease-in-out infinite; }

.site-footer {
  position: relative;
  z-index: 2;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: #726881;
  font-size: 9px;
  letter-spacing: .15em;
}
.site-footer p { margin: 0; }

.flow {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity .24s ease, visibility .24s ease;
}
.flow.is-open { visibility: visible; opacity: 1; }
.flow-backdrop { position: absolute; inset: 0; background: rgba(3, 1, 7, .9); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.flow-shell {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 28px));
  height: min(820px, calc(100vh - 28px));
  overflow: hidden;
  border: 1px solid rgba(184, 153, 255, .22);
  background:
    linear-gradient(rgba(183, 153, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(183, 153, 255, .035) 1px, transparent 1px),
    #090510;
  background-size: 24px 24px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .8);
}
.flow-topbar {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: 0;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 5, 16, .92);
}
.flow-topbar > div { display: flex; align-items: center; gap: 18px; }
.flow-kicker { color: var(--paper); font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.flow-progress { color: var(--violet); font-size: 9px; font-weight: 900; }
.close-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.close-button:hover { color: var(--paper); border-color: var(--lilac); }

.drum { position: absolute; inset: 72px 0 0; perspective: 1200px; }
.flow-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(650px, calc(100% - 42px));
  max-height: calc(100% - 74px);
  overflow-y: auto;
  padding: 40px 42px 38px;
  border: 1px solid rgba(184, 153, 255, .3);
  color: var(--paper);
  background:
    radial-gradient(circle at 100% 0, rgba(113, 50, 245, .2), transparent 18rem),
    rgba(16, 9, 29, .98);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .62);
  transform: translate(-50%, -50%) translateY(190px) scale(.84) rotateX(12deg);
  transform-origin: center center;
  opacity: 0;
  pointer-events: none;
  transition: transform .52s cubic-bezier(.2, .72, .18, 1), opacity .38s ease, filter .42s ease;
}
.flow-card.is-active { z-index: 20; transform: translate(-50%, -50%) translateY(0) scale(1) rotateX(0); opacity: 1; pointer-events: auto; filter: none; }
.flow-card.is-past-1 { z-index: 10; transform: translate(-50%, -50%) translateY(-170px) scale(.89) rotateX(-13deg); opacity: .24; filter: blur(1px); }
.flow-card.is-past-2 { z-index: 8; transform: translate(-50%, -50%) translateY(-255px) scale(.78) rotateX(-20deg); opacity: .08; filter: blur(2px); }
.flow-card.is-next-1 { z-index: 9; transform: translate(-50%, -50%) translateY(185px) scale(.89) rotateX(13deg); opacity: .19; filter: blur(1px); }
.flow-card.is-next-2 { z-index: 7; transform: translate(-50%, -50%) translateY(270px) scale(.78) rotateX(20deg); opacity: .06; filter: blur(2px); }
.card-index { float: right; color: rgba(184, 153, 255, .22); font-size: 46px; font-weight: 900; line-height: 1; }
.flow-card .eyebrow { padding-top: 7px; margin-bottom: 16px; }
.flow-card h2 { max-width: 540px; margin-bottom: 20px; font-size: clamp(28px, 4vw, 45px); line-height: 1.02; letter-spacing: -.065em; text-transform: uppercase; }
.flow-card > p:not(.eyebrow):not(.field-help):not(.privacy-note) { max-width: 560px; color: var(--muted); font-family: Arial, Helvetica, sans-serif; font-size: 15px; line-height: 1.62; }
.flow-card strong { color: var(--paper); }
.card-note { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0; }
.card-note span { padding: 8px 10px; border: 1px solid var(--line); color: var(--lilac); font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.card-button {
  width: 100%;
  min-height: 51px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 26px;
  padding: 0 17px;
  border: 1px solid rgba(216, 200, 255, .5);
  color: #fff;
  background: linear-gradient(135deg, var(--ink), #4a14bf);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .11em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}
.card-button:hover:not(:disabled) { filter: brightness(1.13); }
.card-button:disabled { color: #716782; background: #1a1128; border-color: var(--line); cursor: wait; }
.link-button { box-sizing: border-box; }
.protocol-list { display: grid; gap: 1px; margin-top: 26px; background: var(--line); border: 1px solid var(--line); }
.protocol-list div { display: grid; grid-template-columns: 40px 1fr; gap: 15px; align-items: center; padding: 15px; background: #0c0714; }
.protocol-list b { color: var(--ink); font-size: 11px; }
.protocol-list span { color: var(--muted); font-family: Arial, Helvetica, sans-serif; font-size: 14px; }

.x-action {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0;
  padding: 0 15px;
  border: 1px solid var(--line);
  color: var(--paper);
  background: rgba(113, 50, 245, .08);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
}
.x-action:hover { border-color: var(--violet); }
.field { display: block; margin-top: 20px; }
.field > span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .14em; }
.field input {
  width: 100%;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  padding: 0 14px;
  color: var(--paper);
  background: #09050f;
  font-size: 13px;
}
.field input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(113, 50, 245, .12); }
.field input::placeholder { color: #51485f; }
.input-wrap { position: relative; }
.input-wrap i { position: absolute; left: 15px; top: 50%; z-index: 2; transform: translateY(-50%); color: var(--violet); font-style: normal; }
.input-wrap input { padding-left: 34px; }
.field-help, .privacy-note { margin-top: 9px; color: #746a84; font-family: Arial, Helvetica, sans-serif; font-size: 11px; line-height: 1.45; }
.privacy-note { margin-bottom: 0; }
.forge-code { display: flex; align-items: stretch; margin: 25px 0; border: 1px solid rgba(184, 153, 255, .42); background: #09050f; }
.forge-code > span { flex: 1; padding: 18px; color: var(--lilac); font-size: 31px; font-weight: 900; letter-spacing: .22em; text-align: center; text-indent: .22em; }
.forge-code button { width: 78px; border: 0; border-left: 1px solid var(--line); color: var(--muted); background: rgba(113, 50, 245, .08); font-size: 8px; font-weight: 900; cursor: pointer; }
.reply-code { display: flex; align-items: center; justify-content: space-between; margin: 18px 0; padding: 12px 14px; border: 1px solid var(--line); background: #09050f; }
.reply-code span { color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .13em; }
.reply-code strong { color: var(--lilac); font-size: 18px; letter-spacing: .18em; }
.verified-line { margin-top: 15px; padding: 12px; border: 1px solid rgba(117, 245, 203, .25); color: var(--success); background: rgba(117, 245, 203, .055); font-size: 10px; letter-spacing: .06em; }
.verified-line i { display: inline-grid; width: 18px; height: 18px; margin-right: 8px; place-items: center; border-radius: 50%; color: #07120f; background: var(--success); font-style: normal; }
.identity-chip { display: flex; align-items: center; gap: 9px; margin: 24px 0; padding: 12px 14px; border: 1px solid var(--line); background: rgba(113, 50, 245, .06); }
.identity-chip > span { color: var(--violet); }
.identity-chip i { margin-left: auto; color: var(--success); font-size: 8px; font-style: normal; letter-spacing: .12em; }
.completion-mark { width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 26px; border-radius: 50%; color: #08110f; background: var(--success); box-shadow: 0 0 35px rgba(117, 245, 203, .25); font-size: 23px; font-weight: 900; }
.complete-card { text-align: left; }
.receipt { display: grid; grid-template-columns: 1fr auto; gap: 0; margin-top: 28px; border: 1px solid var(--line); }
.receipt span, .receipt b { padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 9px; letter-spacing: .1em; }
.receipt span { color: var(--muted); }
.receipt b { text-align: right; }
.receipt > :nth-last-child(-n+2) { border-bottom: 0; }
.status-ok { color: var(--success); }
.flow-message { position: absolute; z-index: 50; left: 50%; bottom: 14px; max-width: calc(100% - 32px); transform: translateX(-50%) translateY(12px); opacity: 0; padding: 10px 14px; border: 1px solid var(--line); color: var(--paper); background: #0d0716; box-shadow: 0 12px 35px rgba(0, 0, 0, .5); font-size: 9px; letter-spacing: .06em; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.flow-message.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.flow-message.is-error { border-color: rgba(255, 85, 122, .5); color: #ff9bb1; }
.flow-message.is-success { border-color: rgba(117, 245, 203, .4); color: var(--success); }
.noscript { position: fixed; z-index: 200; inset: auto 15px 15px; padding: 15px; color: #fff; background: #b51d45; text-align: center; }

@keyframes float-back { 50% { transform: rotate(-6deg) translateY(-9px) translateZ(-40px); } }
@keyframes float-mid { 50% { transform: rotate(.5deg) translateY(12px); } }
@keyframes float-front { 50% { transform: rotate(6deg) translateY(-8px) translateZ(30px); } }

@media (max-width: 920px) {
  .landing { grid-template-columns: 1fr; padding-top: 74px; }
  .art-stack { width: min(620px, 100%); min-height: 480px; margin-inline: auto; }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 30px, 1180px); }
  .site-header { height: 74px; }
  .x-link { font-size: 8px; }
  .landing { min-height: auto; padding-block: 56px 38px; gap: 10px; }
  h1 { font-size: clamp(51px, 17vw, 76px); }
  .lead { font-size: 16px; }
  .actions { flex-direction: column; }
  .button { width: 100%; }
  .art-stack { min-height: 365px; }
  .token { width: 51%; padding: 5px 5px 10px; }
  .token-back { top: 98px; }
  .token-mid { top: 28px; }
  .token-front { top: 125px; }
  .token figcaption { font-size: 6px; }
  .site-footer { min-height: 125px; flex-direction: column; justify-content: center; gap: 15px; text-align: center; }
  .flow-shell { width: 100%; height: 100%; max-height: none; border: 0; }
  .flow-topbar { height: 62px; padding: 0 15px; }
  .drum { inset: 62px 0 0; }
  .flow-card { width: calc(100% - 24px); max-height: calc(100% - 42px); padding: 29px 22px 25px; }
  .flow-card h2 { font-size: 30px; }
  .card-index { font-size: 36px; }
  .forge-code > span { font-size: 26px; }
  .flow-message { bottom: 8px; width: calc(100% - 24px); text-align: center; }
}

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