:root {
  color-scheme: dark;
  font-family:
    Inter, ui-rounded, "SF Pro Rounded", "PingFang SC", "Microsoft YaHei",
    sans-serif;
  --ink: #faf7ff;
  --muted: rgba(229, 219, 242, 0.62);
  --faint: rgba(229, 219, 242, 0.4);
  --line: rgba(223, 204, 255, 0.16);
  --violet: #bd8cff;
  --mint: #7cf1c3;
  --gold: #ffd998;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 5%, rgba(128, 74, 190, 0.4), transparent 35rem),
    radial-gradient(circle at 86% 78%, rgba(66, 105, 210, 0.2), transparent 30rem),
    radial-gradient(circle at 8% 86%, rgba(78, 190, 158, 0.08), transparent 24rem),
    #07040f;
  color: var(--ink);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(255, 255, 255, 0.012), rgba(255, 255, 255, 0)),
    #07040f;
  content: "";
}

.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.34;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 16% 24%, rgba(255, 255, 255, 0.78) 0 1px, transparent 1.6px),
    radial-gradient(circle at 78% 33%, rgba(229, 214, 255, 0.68) 0 1px, transparent 1.5px),
    radial-gradient(circle at 53% 78%, rgba(255, 255, 255, 0.62) 0 1px, transparent 1.4px);
  background-size: 127px 127px, 173px 173px, 211px 211px;
}

main {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: start center;
  padding:
    max(58px, env(safe-area-inset-top))
    22px
    max(54px, env(safe-area-inset-bottom));
}

.home {
  position: fixed;
  top: max(23px, env(safe-area-inset-top));
  left: 24px;
  z-index: 10;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(226, 207, 255, 0.2);
  border-radius: 50%;
  background: rgba(18, 10, 31, 0.58);
  box-shadow: 0 0 22px rgba(173, 121, 255, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.home span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f0deff;
  box-shadow:
    0 0 8px #e5c5ff,
    0 0 19px rgba(181, 124, 255, 0.9);
}

.wallet {
  width: min(100%, 560px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sample-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.orb {
  width: 96px;
  aspect-ratio: 1;
  padding: 6px;
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid rgba(236, 224, 255, 0.34);
  border-radius: 50%;
  background: rgba(13, 7, 23, 0.74);
  box-shadow:
    0 0 58px rgba(188, 132, 255, 0.56),
    0 0 112px rgba(77, 142, 255, 0.16),
    inset 0 0 28px rgba(255, 255, 255, 0.12);
  animation: float 5.6s ease-in-out infinite;
}

.sprite {
  display: block;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-size: 300% 200%;
}

.sheet-actions {
  background-image: url("/pictograms-actions-v1.png");
}

.sheet-concepts {
  background-image: url("/pictograms-concepts-v1.png");
}

.sheet-states {
  background-image: url("/pictograms-states-v1.png");
}

.cell-0 {
  background-position: 0 0;
}

.cell-1 {
  background-position: 50% 0;
}

.cell-2 {
  background-position: 100% 0;
}

.cell-3 {
  background-position: 0 100%;
}

.cell-4 {
  background-position: 50% 100%;
}

.cell-5 {
  background-position: 100% 100%;
}

.badge {
  margin-bottom: 10px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 215, 142, 0.2);
  border-radius: 999px;
  background: rgba(255, 196, 82, 0.055);
  color: rgba(255, 220, 151, 0.8);
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.16em;
}

h1 {
  margin-bottom: 14px;
  color: rgba(244, 236, 255, 0.72);
  font-size: 14px;
  font-weight: 560;
  letter-spacing: 0.05em;
}

.amount {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 13px;
}

.amount strong {
  font-size: clamp(42px, 11vw, 62px);
  font-weight: 320;
  letter-spacing: -0.055em;
}

.amount span {
  color: rgba(226, 215, 242, 0.6);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0.14em;
}

.asset-context {
  max-width: 470px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.boundary {
  max-width: 470px;
  margin-top: 7px;
  color: rgba(255, 215, 142, 0.62);
  font-size: 11px;
  line-height: 1.6;
}

.finality {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 15px;
  color: var(--faint);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.finality:hover,
.finality:focus-visible {
  color: rgba(247, 241, 255, 0.9);
  outline: none;
}

.verification {
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
}

.verification.is-valid {
  color: var(--mint);
  text-shadow: 0 0 12px rgba(92, 239, 184, 0.72);
}

.verification.is-invalid {
  color: #ff779f;
}

.proof-story {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 35px 0 22px;
}

.proof-story::before {
  position: absolute;
  top: 33px;
  right: 9%;
  left: 9%;
  height: 1px;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(189, 140, 255, 0.22),
    rgba(124, 241, 195, 0.62),
    rgba(189, 140, 255, 0.22)
  );
  box-shadow: 0 0 12px rgba(124, 241, 195, 0.18);
  content: "";
}

.proof-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.proof-step > .sprite {
  width: 66px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(226, 207, 255, 0.2);
  border-radius: 50%;
  background-color: #08040f;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.35),
    0 0 24px rgba(163, 108, 255, 0.12);
}

.proof-step small {
  color: var(--faint);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.route-card {
  width: 100%;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 0, rgba(142, 84, 219, 0.14), transparent 18rem),
    rgba(18, 10, 31, 0.68);
  box-shadow:
    0 26px 82px rgba(0, 0, 0, 0.3),
    inset 0 0 34px rgba(255, 255, 255, 0.018);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.route-heading {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding-bottom: 17px;
  border-bottom: 1px solid rgba(226, 207, 255, 0.11);
}

.route-symbol {
  width: 58px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 18px;
  background-color: #08040f;
}

.route-heading h2 {
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.route-heading p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.data-block {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(226, 207, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.018);
}

.data-label {
  display: block;
  margin-bottom: 9px;
  color: rgba(229, 219, 242, 0.56);
  font-size: 10px;
  font-weight: 620;
  letter-spacing: 0.05em;
}

.copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

code {
  min-width: 0;
  overflow: hidden;
  color: rgba(246, 240, 255, 0.82);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-block small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 215, 142, 0.52);
  font-size: 9px;
  line-height: 1.5;
}

button {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(226, 207, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  color: rgba(239, 231, 248, 0.68);
  cursor: pointer;
  font-size: 17px;
}

button:hover,
button:focus-visible {
  border-color: rgba(226, 207, 255, 0.34);
  outline: none;
  color: white;
}

button.copied {
  color: var(--mint);
}

.explorer {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 0 19px;
  border: 1px solid rgba(124, 241, 195, 0.18);
  border-radius: 18px;
  background: rgba(84, 198, 157, 0.06);
  color: rgba(222, 255, 242, 0.88);
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}

.explorer:hover,
.explorer:focus-visible {
  border-color: rgba(124, 241, 195, 0.42);
  outline: none;
  background: rgba(84, 198, 157, 0.1);
}

.qr-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 28px;
}

.qr {
  position: relative;
  width: min(48vw, 188px);
  display: block;
  padding: 12px;
  border: 1px solid rgba(240, 230, 255, 0.2);
  border-radius: 29px;
  background: #fbf9ff;
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.38),
    0 0 48px rgba(173, 125, 247, 0.18);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.qr:hover,
.qr:focus-visible {
  outline: none;
  transform: translateY(-3px) scale(1.01);
  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.42),
    0 0 58px rgba(190, 145, 255, 0.3);
}

.qr img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}

.qr > span {
  position: absolute;
  right: 18px;
  bottom: 17px;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #0a0612;
  color: white;
  font-size: 16px;
}

.qr-zone p {
  max-width: 360px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

.third-party {
  max-width: 450px;
  margin-top: 17px;
  color: var(--faint);
  font-size: 9px;
  line-height: 1.65;
  text-align: center;
}

.technical-proofs {
  width: 100%;
  margin-top: 20px;
  border-top: 1px solid rgba(226, 207, 255, 0.11);
}

.technical-proofs summary {
  padding: 18px 3px;
  color: var(--faint);
  cursor: pointer;
  font-size: 10px;
  letter-spacing: 0.07em;
  list-style-position: inside;
}

.technical-proofs summary:hover,
.technical-proofs summary:focus-visible {
  color: rgba(247, 241, 255, 0.84);
  outline: none;
}

.proof-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-bottom: 4px;
}

.proof-links a {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(226, 207, 255, 0.09);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.015);
  color: var(--faint);
  font-size: 9px;
  line-height: 1.4;
  text-decoration: none;
}

.proof-links a:hover,
.proof-links a:focus-visible {
  border-color: rgba(226, 207, 255, 0.25);
  outline: none;
  color: rgba(247, 241, 255, 0.82);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@media (max-width: 520px) {
  main {
    padding-right: 16px;
    padding-left: 16px;
  }

  .proof-story {
    gap: 3px;
  }

  .proof-story::before {
    top: 28px;
  }

  .proof-step > .sprite {
    width: 56px;
  }

  .proof-step small {
    font-size: 8px;
    letter-spacing: 0;
  }

  .route-card {
    padding: 16px;
    border-radius: 24px;
  }

  .route-heading {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .route-symbol {
    width: 50px;
  }
}

@media (max-width: 370px) {
  .proof-step > .sprite {
    width: 50px;
  }

  .proof-story::before {
    top: 25px;
  }

  .proof-links {
    grid-template-columns: 1fr;
  }
}

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

  .orb {
    animation: none;
  }
}
