@font-face {
  font-family: HubGrotesk;
  src: url('/fonts/grotesk-regular.woff2') format('woff2');
  font-weight: 400;
}

@font-face {
  font-family: HubGrotesk;
  src: url('/fonts/grotesk-bold.woff2') format('woff2');
  font-weight: 700;
}

* {
  box-sizing: border-box;
}

.melt-home-coming-soon {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #03152f;
  color: #eef8ff;
  font-family: HubGrotesk, Arial, sans-serif;
}

.melt-home-canvas,
.melt-home-stage {
  position: fixed;
  inset: 0;
}

.melt-home-canvas {
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
}

.melt-home-stage {
  z-index: 2;
  pointer-events: none;
}

.melt-home-brand {
  position: absolute;
  top: clamp(24px, 4vw, 42px);
  left: clamp(16px, 1.9vw, 28px);
  pointer-events: auto;
  font-size: clamp(8px, 0.72vw, 11px);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(220, 250, 255, 0.5);
  white-space: nowrap;
}

.melt-home-title {
  position: absolute;
  bottom: clamp(14px, 3vw, 46px);
  left: clamp(18px, 1.9vw, 30px);
  max-width: min(620px, 56vw);
  margin: 0;
  font-family: HubGrotesk, Arial, sans-serif;
  font-size: clamp(72px, 8.15vw, 122px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.74;
  text-transform: uppercase;
  text-shadow:
    0 0 7px rgba(230, 250, 255, 0.9),
    0 0 24px rgba(170, 225, 255, 0.55),
    0 0 62px rgba(68, 145, 205, 0.45);
}

.melt-home-title small {
  display: block;
  margin-top: 0.32em;
  font-size: clamp(7px, 0.75vw, 11px);
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1;
  opacity: 0.78;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

@media (max-width: 760px) {
  .melt-home-title {
    bottom: 18px;
    max-width: 84vw;
    font-size: clamp(54px, 18vw, 86px);
  }
}

html {
  background: #020a19;
  color: #e7edf6;
  font-family: HubGrotesk, Arial, sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: #020a19;
}

body[data-page='docs'] {
  min-height: 100vh;
}

a,
button {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
}

.site-shell {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(5, 18, 47, 0.86), rgba(2, 7, 20, 0.34) 42%, rgba(2, 7, 20, 0.92)),
    radial-gradient(ellipse at 50% 8%, rgba(68, 219, 255, 0.19), transparent 39%),
    radial-gradient(ellipse at 50% 78%, rgba(0, 226, 209, 0.14), transparent 42%),
    linear-gradient(180deg, #061943, #020813 62%, #01040c);
}

.webgl,
.poster-layer,
.terrain-depth,
.light-beams,
.origin-trails,
.origin-cube-ghost,
.origin-road-grid,
.atmosphere {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.webgl {
  z-index: 3;
  opacity: 0.74;
}

body[data-section='0'] .webgl {
  opacity: 0.68;
}

body[data-section='1'] .webgl {
  opacity: 0.44;
}

body[data-section='2'] .webgl,
body[data-section='3'] .webgl,
body[data-section='4'] .webgl,
body[data-section='5'] .webgl {
  opacity: 0.58;
}

body[data-section='2'] .webgl {
  opacity: 0.6;
}

.poster-layer {
  z-index: 1;
  background: url('/images/melt-pro-00.jpg') center / cover no-repeat;
  opacity: 0.78;
  filter: saturate(1.58) contrast(1.22) brightness(0.72) hue-rotate(8deg);
  transform: scale(1);
  transition: background-image 0.9s ease, opacity 0.9s ease, filter 0.9s ease, transform 5.5s ease;
}

body[data-section='1'] .poster-layer {
  opacity: 0.92;
  filter: saturate(1.38) contrast(1.22) brightness(0.68) hue-rotate(7deg);
  transform: scale(1.035);
}

body[data-section='0'] .poster-layer {
  opacity: 0.62;
  filter: saturate(1.85) contrast(1.34) brightness(0.66) hue-rotate(12deg);
  transform: scale(1.02);
  -webkit-mask-image: none;
  mask-image: none;
}

body[data-section='2'] .poster-layer,
body[data-section='3'] .poster-layer,
body[data-section='4'] .poster-layer,
body[data-section='5'] .poster-layer {
  opacity: 0.86;
  filter: saturate(1.42) contrast(1.2) brightness(0.68) hue-rotate(8deg);
  transform: scale(1.04);
  -webkit-mask-image: none;
  mask-image: none;
}

body[data-section='1'] .poster-layer {
  -webkit-mask-image: none;
  mask-image: none;
}

.terrain-depth {
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(112deg, transparent 0 24%, rgba(0, 240, 255, 0.2) 27%, rgba(0, 74, 130, 0.2) 29%, transparent 34%),
    linear-gradient(139deg, transparent 0 55%, rgba(31, 230, 255, 0.15) 58%, rgba(0, 66, 138, 0.12) 60%, transparent 68%),
    linear-gradient(155deg, transparent 0 18%, rgba(0, 3, 12, 0.64) 27%, rgba(0, 4, 16, 0.42) 35%, transparent 47%),
    linear-gradient(24deg, transparent 0 54%, rgba(0, 4, 15, 0.72) 66%, rgba(0, 3, 12, 0.88) 82%, transparent 100%),
    linear-gradient(180deg, rgba(1, 5, 16, 0.22) 0%, transparent 42%, rgba(0, 3, 12, 0.68) 100%);
  mix-blend-mode: multiply;
  opacity: 0.22;
  transition: opacity 0.6s ease, filter 0.6s ease;
}

body[data-section='1'] .terrain-depth,
body[data-section='2'] .terrain-depth,
body[data-section='3'] .terrain-depth {
  opacity: 0.34;
  filter: brightness(0.72) contrast(1.25);
}

body[data-section='4'] .terrain-depth,
body[data-section='5'] .terrain-depth {
  opacity: 0.46;
}

.light-beams {
  z-index: 4;
  pointer-events: none;
  opacity: 0.22;
  transition: opacity 0.55s ease;
  overflow: hidden;
}

body[data-section='1'] .light-beams,
body[data-section='2'] .light-beams,
body[data-section='3'] .light-beams {
  opacity: 0.36;
}

body[data-section='4'] .light-beams,
body[data-section='5'] .light-beams {
  opacity: 0.3;
}

.light-beams i {
  position: absolute;
  display: block;
  width: 56vw;
  height: 12px;
  left: -4vw;
  top: 62%;
  background: linear-gradient(90deg, transparent, rgba(43, 215, 255, 0.28), #73fbff 48%, rgba(35, 147, 255, 0.54), transparent);
  border-radius: 999px;
  filter: blur(0.5px) drop-shadow(0 0 14px rgba(43, 215, 255, 0.85)) drop-shadow(0 0 34px rgba(0, 106, 255, 0.7));
  transform: rotate(-22deg);
  animation: beam-drift 8s ease-in-out infinite alternate;
}

.origin-trails {
  z-index: 5;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: screen;
  transition: opacity 0.55s ease;
  overflow: hidden;
}

body[data-section='0'] .origin-trails {
  opacity: 0.28;
}

body[data-section='1'] .origin-trails,
body[data-section='2'] .origin-trails,
body[data-section='3'] .origin-trails,
body[data-section='4'] .origin-trails,
body[data-section='5'] .origin-trails {
  opacity: 0.95;
}

.origin-trails i {
  position: absolute;
  width: 58vw;
  height: 36vh;
  border: 8px solid transparent;
  border-top-color: rgba(79, 230, 255, 0.9);
  border-left-color: rgba(28, 160, 255, 0.42);
  border-radius: 50%;
  filter:
    blur(0.2px)
    drop-shadow(0 0 10px rgba(66, 229, 255, 0.95))
    drop-shadow(0 0 26px rgba(15, 130, 255, 0.72))
    drop-shadow(0 0 62px rgba(0, 63, 255, 0.42));
  transform: rotate(-18deg);
  animation: trail-drift 7.2s ease-in-out infinite alternate;
}

.origin-trails i:nth-child(1) {
  left: -13vw;
  top: 45vh;
}

.origin-trails i:nth-child(2) {
  left: 47vw;
  top: 15vh;
  width: 68vw;
  height: 32vh;
  transform: rotate(152deg);
  animation-delay: -2.1s;
}

.origin-trails i:nth-child(3) {
  left: 8vw;
  top: 2vh;
  width: 43vw;
  height: 42vh;
  border-width: 5px;
  opacity: 0.58;
  transform: rotate(108deg);
  animation-delay: -4.2s;
}

.origin-trails i:nth-child(4) {
  left: 54vw;
  top: 63vh;
  width: 52vw;
  height: 24vh;
  border-width: 5px;
  opacity: 0.5;
  transform: rotate(-8deg);
  animation-delay: -5.5s;
}

body[data-section='1'] .origin-trails i:nth-child(1),
body[data-section='2'] .origin-trails i:nth-child(1),
body[data-section='3'] .origin-trails i:nth-child(1) {
  left: -8vw;
  top: 6vh;
  width: 28vw;
  height: 92vh;
  border-width: 10px;
  transform: rotate(13deg);
}

body[data-section='1'] .origin-trails i:nth-child(2),
body[data-section='2'] .origin-trails i:nth-child(2),
body[data-section='3'] .origin-trails i:nth-child(2) {
  left: 62vw;
  top: 0;
  width: 48vw;
  height: 72vh;
  border-width: 9px;
  transform: rotate(142deg);
}

body[data-section='4'] .origin-trails i:nth-child(1),
body[data-section='5'] .origin-trails i:nth-child(1) {
  left: -10vw;
  top: 36vh;
  width: 78vw;
  height: 34vh;
  transform: rotate(-7deg);
}

body[data-section='4'] .origin-trails i:nth-child(2),
body[data-section='5'] .origin-trails i:nth-child(2) {
  left: 24vw;
  top: 50vh;
  width: 92vw;
  height: 28vh;
  transform: rotate(-5deg);
}

.origin-cube-ghost {
  z-index: 6;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 0.7s ease, transform 1.8s ease;
  transform: translate3d(0, 1.8vh, 0);
  overflow: hidden;
}

body[data-section='0'] .origin-cube-ghost {
  opacity: 0.94;
  transform: translate3d(0, 0, 0);
}

.origin-cube-ghost span {
  position: absolute;
  left: 50%;
  top: -5vh;
  display: block;
  width: min(56vw, 820px);
  height: min(48vh, 430px);
  transform: translateX(-34%) perspective(900px) rotateX(2deg) rotateY(-10deg) skewY(-1deg);
  clip-path: polygon(14% 0, 98% 6%, 85% 100%, 0 86%);
  background:
    linear-gradient(135deg, rgba(0, 253, 232, 0.92) 0%, rgba(164, 255, 255, 0.98) 42%, rgba(41, 180, 255, 0.7) 68%, rgba(0, 70, 180, 0.15) 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 18px);
  box-shadow:
    0 0 34px rgba(72, 247, 255, 0.86),
    0 0 90px rgba(0, 184, 255, 0.76),
    0 0 180px rgba(0, 83, 255, 0.42);
  filter: saturate(1.08) brightness(1.06) blur(0.2px);
}

.origin-cube-ghost span::before,
.origin-cube-ghost span::after {
  content: '';
  position: absolute;
  display: block;
  pointer-events: none;
}

.origin-cube-ghost span::before {
  right: -12%;
  top: 7%;
  width: 32%;
  height: 92%;
  clip-path: polygon(0 0, 100% 13%, 58% 100%, 0 93%);
  background: linear-gradient(120deg, rgba(12, 126, 255, 0.55), rgba(140, 255, 255, 0.85), rgba(3, 24, 72, 0.25));
  opacity: 0.86;
}

.origin-cube-ghost span::after {
  inset: 0;
  background:
    radial-gradient(ellipse at 64% 28%, rgba(255, 255, 255, 0.38), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 42%, rgba(0, 16, 38, 0.24));
  mix-blend-mode: screen;
}

.origin-road-grid {
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  overflow: hidden;
  mix-blend-mode: screen;
  transition: opacity 0.7s ease;
}

body[data-section='4'] .origin-road-grid,
body[data-section='5'] .origin-road-grid {
  opacity: 0.92;
}

.origin-road-grid::before {
  content: '';
  position: absolute;
  left: -8vw;
  right: -8vw;
  bottom: -8vh;
  height: 48vh;
  background:
    repeating-linear-gradient(92deg, transparent 0 6.8vw, rgba(43, 230, 255, 0.2) 7vw, transparent 7.3vw),
    repeating-linear-gradient(0deg, transparent 0 5.8vh, rgba(43, 230, 255, 0.22) 6vh, transparent 6.2vh),
    linear-gradient(180deg, transparent 0%, rgba(0, 228, 255, 0.2) 42%, rgba(2, 14, 36, 0.56) 100%);
  transform: perspective(620px) rotateX(62deg);
  transform-origin: 50% 100%;
  filter: drop-shadow(0 0 12px rgba(45, 229, 255, 0.72)) drop-shadow(0 0 36px rgba(0, 95, 255, 0.54));
}

.origin-road-grid i {
  position: absolute;
  bottom: 25vh;
  width: 22px;
  height: 16vh;
  background: linear-gradient(180deg, rgba(118, 255, 255, 0.92), rgba(19, 128, 255, 0.28));
  box-shadow: 0 0 18px rgba(63, 235, 255, 0.85), 0 0 58px rgba(0, 105, 255, 0.52);
  opacity: 0.54;
}

.origin-road-grid i:nth-child(1) { left: 18vw; height: 11vh; bottom: 23vh; }
.origin-road-grid i:nth-child(2) { left: 34vw; height: 18vh; bottom: 24vh; }
.origin-road-grid i:nth-child(3) { left: 52vw; height: 13vh; bottom: 22vh; }
.origin-road-grid i:nth-child(4) { left: 69vw; height: 21vh; bottom: 25vh; }
.origin-road-grid i:nth-child(5) { left: 81vw; height: 12vh; bottom: 23vh; }

@keyframes trail-drift {
  from {
    translate: -1.5vw 1vh;
    opacity: 0.72;
  }
  to {
    translate: 2.4vw -1.8vh;
    opacity: 1;
  }
}

.light-beams i::before,
.light-beams i::after {
  content: '';
  position: absolute;
  inset: -16px 12%;
  background: linear-gradient(90deg, transparent, rgba(61, 211, 255, 0.18), transparent);
  transform: translateY(-10px);
}

.light-beams i:nth-child(2) {
  left: 38vw;
  top: 41%;
  width: 58vw;
  transform: rotate(-16deg);
  animation-delay: -2.4s;
}

.light-beams i:nth-child(3) {
  left: 18vw;
  top: 77%;
  width: 68vw;
  transform: rotate(-8deg);
  opacity: 0.64;
  animation-delay: -4s;
}

@keyframes beam-drift {
  from { translate: -3vw 1vh; filter: blur(0.4px) drop-shadow(0 0 10px rgba(43, 215, 255, 0.72)) drop-shadow(0 0 28px rgba(0, 106, 255, 0.54)); }
  to { translate: 4vw -2vh; filter: blur(0.7px) drop-shadow(0 0 18px rgba(43, 215, 255, 0.9)) drop-shadow(0 0 46px rgba(0, 106, 255, 0.74)); }
}

.atmosphere {
  z-index: 5;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 20%, rgba(2, 10, 25, calc(var(--vignette-strength, 0.72) * 0.2)) 58%, rgba(2, 10, 25, calc(var(--vignette-strength, 0.72) * 0.92)) 100%),
    linear-gradient(90deg, rgba(2, 10, 25, 0.68), transparent 28%, transparent 72%, rgba(2, 10, 25, 0.58)),
    linear-gradient(180deg, rgba(2, 10, 25, 0.16), transparent 36%, rgba(2, 10, 25, 0.78)),
    repeating-linear-gradient(0deg, rgba(213, 224, 255, calc(var(--grain-opacity, 0.08) * 0.34)) 0, rgba(213, 224, 255, calc(var(--grain-opacity, 0.08) * 0.34)) 1px, transparent 1px, transparent 16px);
  opacity: 0.58;
}

.frame {
  position: absolute;
  z-index: 10;
  inset: 28px;
  border: 1px solid rgba(127, 238, 255, 0.035);
  border-radius: 0;
  pointer-events: none;
  opacity: 0.18;
}

.corner {
  position: absolute;
  width: 12px;
  height: 12px;
  background: rgba(213, 224, 255, 0.26);
}

.tl { left: -1px; top: -1px; clip-path: polygon(0 0, 100% 0, 0 100%); }
.tr { right: -1px; top: -1px; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.bl { left: -1px; bottom: -1px; clip-path: polygon(0 0, 0 100%, 100% 100%); }
.br { right: -1px; bottom: -1px; clip-path: polygon(100% 0, 0 100%, 100% 100%); }

.nav {
  position: absolute;
  z-index: 12;
  top: 44px;
  left: 52px;
  right: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
  opacity: 1;
  transition: opacity 0.28s ease;
}

.nav:hover,
.nav:focus-within {
  opacity: 1;
}

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

.brand-word {
  display: block;
  color: #f6fbff;
  font-family: HubGrotesk, Arial, sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: 0.02em;
  text-shadow: 0 0 18px rgba(78, 221, 202, 0.3), 0 0 38px rgba(46, 178, 255, 0.16);
}

.brand small {
  display: block;
  width: 82px;
  color: rgba(231, 237, 246, 0.36);
  font-size: 10px;
  line-height: 1.2;
  text-transform: uppercase;
}

.brand strong:not(.brand-word) {
  display: none;
  align-items: center;
  gap: 5px;
  height: 17px;
}

.glyph {
  --c: #d5e0ff;
  display: block;
  width: 15px;
  height: 15px;
  background: var(--c);
}

.glyph-h {
  clip-path: polygon(0 0, 18% 0, 18% 42%, 82% 42%, 82% 0, 100% 0, 100% 100%, 82% 100%, 82% 60%, 18% 60%, 18% 100%, 0 100%);
}

.glyph-u {
  clip-path: polygon(0 0, 18% 0, 18% 80%, 82% 80%, 82% 0, 100% 0, 100% 100%, 0 100%);
}

.glyph-b {
  clip-path: polygon(0 0, 82% 0, 100% 18%, 100% 42%, 84% 50%, 100% 58%, 100% 84%, 84% 100%, 0 100%, 0 0, 18% 18%, 18% 42%, 74% 42%, 82% 34%, 82% 22%, 72% 18%, 18% 18%, 18% 82%, 74% 82%, 82% 74%, 82% 64%, 74% 58%, 18% 58%, 18% 100%, 0 100%);
}

.glyph-t {
  clip-path: polygon(0 0, 100% 0, 100% 18%, 60% 18%, 60% 100%, 40% 100%, 40% 18%, 0 18%);
}

.glyph-o {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 0, 18% 18%, 18% 82%, 82% 82%, 82% 18%, 18% 18%);
}

.glyph-w {
  width: 21px;
  clip-path: polygon(0 0, 16% 0, 16% 82%, 34% 82%, 34% 28%, 50% 28%, 50% 82%, 68% 82%, 68% 0, 84% 0, 84% 82%, 100% 82%, 100% 100%, 0 100%);
}

.glyph-n {
  clip-path: polygon(0 100%, 0 0, 18% 0, 82% 72%, 82% 0, 100% 0, 100% 100%, 82% 100%, 18% 28%, 18% 100%);
}

.nav nav {
  display: flex;
  gap: 21px;
}

.nav nav a {
  color: rgba(231, 237, 246, 0.92);
  text-decoration: none;
}

.nav nav a:hover,
.nav nav a[aria-current='page'] {
  color: #e7edf6;
}

.nav-actions {
  position: relative;
  display: flex;
  filter: drop-shadow(0 0 18px rgba(18, 39, 82, 0.55));
}

.nav-actions button,
.nav-actions .nav-button,
.hero-copy a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 22px;
  cursor: pointer;
  border: 1px solid rgba(128, 236, 255, 0.16);
  background: rgba(8, 31, 63, 0.32);
  color: #e9f7ff;
  backdrop-filter: blur(16px);
  text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0;
  text-decoration: none;
  box-shadow: inset 0 0 18px rgba(47, 217, 255, 0.07), 0 0 24px rgba(16, 150, 255, 0.16);
  clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 11px 100%, 0 calc(100% - 11px));
}

.nav-actions .filled {
  background: #e7edf6;
  color: #020a19;
}

.wallet-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 40;
  width: 230px;
  padding: 12px;
  border: 1px solid rgba(213, 224, 255, 0.16);
  background: rgba(3, 10, 24, 0.94);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.44);
  color: #e7edf6;
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 13px 100%, 0 calc(100% - 13px));
}

.wallet-menu[hidden] {
  display: none;
}

.wallet-menu strong,
.wallet-menu small {
  display: block;
  line-height: 1.35;
}

.wallet-menu strong {
  font-size: 13px;
}

.wallet-menu small {
  margin-top: 4px;
  color: rgba(231, 237, 246, 0.58);
  font-size: 11px;
  text-transform: none;
}

.wallet-menu button {
  justify-content: flex-start;
  width: 100%;
  min-height: 34px;
  margin-top: 10px;
  padding: 0 10px;
  border: 1px solid rgba(213, 224, 255, 0.12);
  background: rgba(213, 224, 255, 0.055);
  color: #e7edf6;
}

.wallet-menu button:last-child {
  color: #020a19;
  background: #e7edf6;
}

.nav-actions i,
.nav-button i,
.hero-copy a::before,
.bottom-bar button i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  background:
    linear-gradient(currentColor 0 0) 0 0 / 3px 3px no-repeat,
    linear-gradient(currentColor 0 0) 4px 0 / 3px 3px no-repeat,
    linear-gradient(currentColor 0 0) 0 4px / 3px 3px no-repeat,
    linear-gradient(currentColor 0 0) 4px 4px / 3px 3px no-repeat;
}

.hero-copy a::before {
  content: '';
}

.docs-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 150px 52px 64px;
  background:
    linear-gradient(125deg, rgba(43, 215, 255, 0.13) 0 1px, transparent 1px 28%),
    linear-gradient(218deg, rgba(226, 182, 105, 0.11) 0 1px, transparent 1px 32%),
    linear-gradient(180deg, #050d22, #020813 52%, #01050f);
  color: #e7edf6;
}

.docs-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(213, 224, 255, 0.035) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(180deg, rgba(213, 224, 255, 0.028) 1px, transparent 1px) 0 0 / 64px 64px,
    repeating-linear-gradient(125deg, transparent 0 22px, rgba(57, 232, 194, 0.025) 22px 23px, transparent 23px 68px),
    linear-gradient(180deg, rgba(2, 10, 25, 0.1), rgba(2, 10, 25, 0.78));
  opacity: 0.82;
}

.docs-nav {
  position: fixed;
}

.docs-nav nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(231, 237, 246, 0.88);
  text-decoration: none;
}

.docs-nav nav a span {
  color: rgba(57, 232, 194, 0.76);
}

.docs-nav nav a[aria-current='page'] {
  color: #e7edf6;
}

.docs-hero,
.docs-content {
  position: relative;
  z-index: 2;
}

.docs-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 28px;
  align-items: end;
  width: min(1300px, 100%);
  margin: 0 auto 46px;
}

.docs-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: rgba(43, 215, 255, 0.78);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.docs-kicker span {
  width: 7px;
  height: 7px;
  background: currentColor;
}

.docs-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 6vw, 86px);
  line-height: 0.92;
  text-transform: uppercase;
}

.docs-hero p {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(231, 237, 246, 0.7);
  font-size: 16px;
  line-height: 1.65;
}

.docs-hero-panel {
  position: relative;
  padding: 22px;
  border: 1px solid rgba(57, 232, 194, 0.2);
  background:
    linear-gradient(135deg, rgba(57, 232, 194, 0.1), rgba(2, 8, 19, 0.58) 42%, rgba(231, 237, 246, 0.055)),
    rgba(3, 10, 24, 0.66);
  box-shadow: inset 0 0 34px rgba(57, 232, 194, 0.045), 0 24px 70px rgba(0, 0, 0, 0.28);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.docs-hero-panel small,
.docs-equation small {
  display: block;
  color: rgba(57, 232, 194, 0.68);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.docs-hero-panel strong {
  display: block;
  margin-top: 18px;
  color: #e7edf6;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 1.1;
}

.docs-hero-panel p {
  position: relative;
  z-index: 4;
  margin: 18px 0 0;
  color: rgba(231, 237, 246, 0.62);
  font-size: 13px;
  line-height: 1.55;
}

.docs-content {
  display: grid;
  grid-template-columns: 210px minmax(0, 820px) 250px;
  gap: 22px;
  align-items: start;
  width: min(1300px, 100%);
  margin: 0 auto;
}

.docs-index,
.docs-checklist {
  border: 1px solid rgba(231, 237, 246, 0.12);
  background: rgba(3, 10, 24, 0.62);
  backdrop-filter: blur(18px);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.docs-index,
.docs-checklist {
  position: sticky;
  top: 126px;
  padding: 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  text-transform: uppercase;
  max-height: calc(100vh - 150px);
  overflow: auto;
}

.docs-index strong,
.docs-checklist strong {
  display: block;
  margin-bottom: 14px;
  color: rgba(231, 237, 246, 0.48);
}

.docs-index__routes {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(231, 237, 246, 0.1);
}

.docs-index a,
.docs-checklist div {
  display: flex;
  align-items: center;
  min-height: 30px;
  color: rgba(231, 237, 246, 0.72);
  text-decoration: none;
}

.docs-index a {
  gap: 8px;
  line-height: 1.25;
}

.docs-index a[aria-current='page'] {
  color: #39e8c2;
}

.docs-checklist i {
  width: 7px;
  height: 7px;
  margin-right: 10px;
  background: #39e8c2;
}

.docs-stack {
  display: grid;
  gap: 18px;
}

.docs-card {
  position: relative;
  padding: 28px 30px 28px 34px;
  border: 1px solid rgba(231, 237, 246, 0.1);
  border-left-color: rgba(57, 232, 194, 0.35);
  background:
    linear-gradient(90deg, rgba(57, 232, 194, 0.11), transparent 1px) 0 0 / 1px 100% no-repeat,
    linear-gradient(135deg, rgba(231, 237, 246, 0.055), rgba(3, 10, 24, 0.34) 32%, rgba(1, 5, 16, 0.24)),
    rgba(3, 10, 24, 0.46);
  backdrop-filter: blur(16px);
  scroll-margin-top: 124px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.docs-card__number {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 28px;
  margin-bottom: 20px;
  border: 1px solid rgba(57, 232, 194, 0.28);
  background: rgba(57, 232, 194, 0.08);
  color: #b9fff0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.docs-card h2 {
  margin: 0;
  color: #f0f5f8;
  font-size: 30px;
  line-height: 1;
  text-transform: uppercase;
}

.docs-card p {
  margin: 14px 0 0;
  color: rgba(231, 237, 246, 0.68);
  font-size: 15px;
  line-height: 1.65;
}

.docs-card ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.docs-card li {
  min-height: 30px;
  padding: 10px 12px;
  border: 1px solid rgba(231, 237, 246, 0.09);
  background: linear-gradient(135deg, rgba(231, 237, 246, 0.055), rgba(57, 232, 194, 0.025));
  color: rgba(231, 237, 246, 0.72);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.35;
  text-transform: uppercase;
}

.docs-formulas {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.docs-equation {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  overflow-x: auto;
  padding: 14px;
  border: 1px solid rgba(57, 232, 194, 0.2);
  background:
    linear-gradient(90deg, rgba(57, 232, 194, 0.09), transparent),
    rgba(1, 5, 16, 0.58);
}

.docs-equation__line {
  min-width: max-content;
  color: #e7edf6;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(22px, 2.1vw, 30px);
  line-height: 1.25;
  white-space: nowrap;
}

.docs-equation__line sub {
  font-size: 0.58em;
}

.docs-equation__line::first-letter {
  color: #b9fff0;
}

.docs-card blockquote {
  margin: 18px 0 0;
  padding: 16px 18px;
  border: 1px solid rgba(57, 232, 194, 0.16);
  border-left: 2px solid #39e8c2;
  background:
    linear-gradient(90deg, rgba(57, 232, 194, 0.1), transparent),
    rgba(57, 232, 194, 0.035);
  color: #e7edf6;
  font-size: 18px;
  line-height: 1.45;
}

.docs-table {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.docs-table div {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(231, 237, 246, 0.1);
  background: rgba(2, 8, 19, 0.42);
}

.docs-table strong {
  color: #e7edf6;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.35;
  text-transform: uppercase;
}

.docs-table p {
  margin: 0;
  font-size: 14px;
}

/* MELT mechanism lab direction */
.docs-page {
  padding-top: 142px;
  background:
    linear-gradient(90deg, rgba(215, 233, 255, 0.05) 1px, transparent 1px) 50% 0 / 96px 96px,
    linear-gradient(180deg, rgba(215, 233, 255, 0.035) 1px, transparent 1px) 50% 0 / 96px 96px,
    radial-gradient(circle at 52% 24%, rgba(220, 240, 255, 0.14), transparent 31%),
    linear-gradient(180deg, #060912 0%, #02050d 48%, #030711 100%);
}

.docs-bg {
  background:
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(211, 231, 255, 0.03) 38px 39px, transparent 39px 96px),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(211, 231, 255, 0.025) 38px 39px, transparent 39px 96px),
    linear-gradient(120deg, transparent 0 38%, rgba(57, 232, 194, 0.035) 38.1% 38.4%, transparent 38.5% 100%);
}

.docs-metal-surface {
  position: fixed;
  inset: 92px 0 auto;
  height: 330px;
  pointer-events: none;
  opacity: 0.56;
  transform: skewY(-8deg);
  overflow: hidden;
}

.docs-metal-surface::before,
.docs-metal-surface::after,
.docs-metal-surface i {
  content: '';
  position: absolute;
  inset: auto 8% 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(238, 246, 255, 0.64), rgba(57, 232, 194, 0.48), transparent);
  filter: blur(0.2px);
}

.docs-metal-surface::before {
  bottom: 42px;
}

.docs-metal-surface::after {
  bottom: 118px;
  opacity: 0.42;
}

.docs-metal-surface i:nth-child(1) {
  bottom: 84px;
  left: 16%;
  right: 18%;
}

.docs-metal-surface i:nth-child(2) {
  bottom: 160px;
  left: 26%;
  right: 8%;
  opacity: 0.32;
}

.docs-metal-surface i:nth-child(3) {
  bottom: 205px;
  left: 4%;
  right: 38%;
  opacity: 0.22;
}

.docs-hero {
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 500px);
  align-items: stretch;
  gap: 46px;
  width: min(1420px, 100%);
  margin-bottom: 54px;
}

.docs-kicker {
  color: rgba(203, 218, 230, 0.72);
  letter-spacing: 0.18em;
}

.docs-kicker span {
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, #39e8c2, transparent);
}

.docs-hero h1 {
  max-width: 880px;
  font-size: clamp(52px, 8.2vw, 132px);
  line-height: 0.82;
  letter-spacing: 0;
}

.docs-hero p {
  max-width: 760px;
  color: rgba(231, 237, 246, 0.62);
  font-size: 17px;
}

.docs-hero__modules {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  max-width: 860px;
  margin-top: 32px;
  background: transparent;
}

.docs-hero__modules :is(a, div) {
  display: block;
  min-height: 72px;
  padding: 12px;
  border: 1px solid rgba(231, 237, 246, 0.1);
  background: rgba(2, 6, 14, 0.74);
  color: rgba(231, 237, 246, 0.76);
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.1;
  text-decoration: none;
  text-transform: uppercase;
}

.docs-hero__modules span {
  display: block;
  margin-bottom: 16px;
  color: rgba(57, 232, 194, 0.72);
}

.docs-hero__modules em {
  margin-left: 6px;
  color: rgba(231, 237, 246, 0.72);
  font-style: normal;
  text-transform: none;
}

.docs-hero-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 390px;
  padding: 28px;
  overflow: hidden;
  border-color: rgba(231, 237, 246, 0.16);
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%);
  background:
    linear-gradient(150deg, rgba(231, 237, 246, 0.18), rgba(111, 129, 142, 0.08) 18%, rgba(1, 4, 10, 0.72) 46%, rgba(57, 232, 194, 0.1)),
    linear-gradient(90deg, rgba(231, 237, 246, 0.09) 1px, transparent 1px) 0 0 / 26px 26px,
    rgba(3, 8, 17, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -80px 120px rgba(57, 232, 194, 0.05),
    0 34px 120px rgba(0, 0, 0, 0.44);
}

.docs-hero-panel::before {
  content: '';
  position: absolute;
  inset: 1px;
  pointer-events: none;
  border: 1px solid rgba(213, 224, 255, 0.12);
  clip-path: polygon(0 0, calc(100% - 33px) 0, 100% 33px, 100% 100%, 0 100%);
  z-index: 2;
}

.docs-hero-panel__liquid,
.docs-hero-panel__orbit,
.docs-hero-panel__scan {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.docs-hero-panel__liquid {
  inset: -18%;
  opacity: 0.78;
  background:
    radial-gradient(circle at 16% 32%, rgba(231, 237, 246, 0.46) 0 4%, rgba(43, 215, 255, 0.22) 7%, transparent 16%),
    radial-gradient(circle at 72% 22%, rgba(255, 255, 255, 0.56) 0 3.5%, rgba(43, 215, 255, 0.18) 7%, transparent 17%),
    radial-gradient(circle at 48% 64%, rgba(213, 224, 255, 0.5) 0 5%, rgba(35, 147, 255, 0.2) 9%, transparent 20%),
    radial-gradient(circle at 82% 80%, rgba(43, 215, 255, 0.34) 0 5%, transparent 18%),
    conic-gradient(from 120deg at 50% 50%, transparent, rgba(43, 215, 255, 0.16), rgba(213, 224, 255, 0.22), transparent 58%);
  filter: blur(14px) saturate(1.12) contrast(1.36);
  mix-blend-mode: screen;
  animation: docsHeroLiquid 16s ease-in-out infinite;
}

.docs-hero-panel__orbit {
  inset: 18% -12% auto;
  height: 42%;
  transform: rotate(-8deg);
  opacity: 0.58;
  filter: drop-shadow(0 0 24px rgba(43, 215, 255, 0.3));
}

.docs-hero-panel__orbit i {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(43, 215, 255, 0.12), rgba(231, 237, 246, 0.74), rgba(43, 215, 255, 0.2), transparent);
  transform-origin: center;
  animation: docsHeroCurrent 5.8s ease-in-out infinite;
}

.docs-hero-panel__orbit i:nth-child(1) {
  top: 16%;
}

.docs-hero-panel__orbit i:nth-child(2) {
  top: 54%;
  animation-delay: -1.6s;
  opacity: 0.62;
}

.docs-hero-panel__orbit i:nth-child(3) {
  top: 82%;
  animation-delay: -3.2s;
  opacity: 0.42;
}

.docs-hero-panel__scan {
  inset: 0;
  opacity: 0.36;
  background:
    repeating-linear-gradient(90deg, transparent 0 26px, rgba(213, 224, 255, 0.08) 27px, transparent 28px 54px),
    linear-gradient(180deg, transparent, rgba(43, 215, 255, 0.12), transparent);
  mask-image: linear-gradient(180deg, transparent 0, black 14%, black 88%, transparent 100%);
  animation: docsHeroScan 9s linear infinite;
}

.docs-hero-panel__top {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(231, 237, 246, 0.54);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
}

.docs-hero-panel__top em {
  font-style: normal;
  color: rgba(57, 232, 194, 0.72);
  font-size: 10px;
}

.docs-hero-panel strong {
  position: relative;
  z-index: 4;
  margin-top: auto;
  font-size: clamp(44px, 4.5vw, 70px);
  text-shadow:
    0 0 22px rgba(213, 224, 255, 0.22),
    0 0 44px rgba(43, 215, 255, 0.2);
}

.docs-surface-meter {
  position: relative;
  z-index: 4;
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.docs-surface-meter span {
  display: grid;
  grid-template-columns: 78px 1fr;
  align-items: center;
  gap: 12px;
  color: rgba(231, 237, 246, 0.6);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.docs-surface-meter i {
  height: 2px;
  background:
    linear-gradient(90deg, #39e8c2 0 var(--level), rgba(231, 237, 246, 0.14) var(--level) 100%);
}

.docs-content {
  grid-template-columns: 230px minmax(0, 920px) 286px;
  gap: 28px;
  width: min(1420px, 100%);
}

.docs-index,
.docs-checklist {
  border-color: rgba(231, 237, 246, 0.1);
  background:
    linear-gradient(180deg, rgba(231, 237, 246, 0.075), rgba(3, 8, 17, 0.68)),
    rgba(2, 6, 14, 0.74);
  backdrop-filter: blur(22px);
}

.docs-index strong,
.docs-checklist strong {
  color: rgba(231, 237, 246, 0.42);
  letter-spacing: 0.14em;
}

.docs-index a {
  border-bottom: 1px solid rgba(231, 237, 246, 0.055);
  color: rgba(231, 237, 246, 0.56);
}

.docs-index a:hover {
  color: #e7edf6;
}

.docs-readout {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid rgba(57, 232, 194, 0.18);
  background: rgba(57, 232, 194, 0.045);
}

.docs-readout small {
  color: rgba(57, 232, 194, 0.72);
  font-size: 10px;
  text-transform: uppercase;
}

.docs-readout b {
  display: block;
  margin-top: 12px;
  color: #e7edf6;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 28px;
  font-weight: 400;
}

.docs-readout p {
  margin: 10px 0 0;
  color: rgba(231, 237, 246, 0.58);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12px;
  line-height: 1.45;
  text-transform: none;
}

.docs-stack {
  gap: 28px;
}

.docs-module {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 0;
  padding: 0;
  border-color: rgba(231, 237, 246, 0.11);
  border-left-color: rgba(231, 237, 246, 0.11);
  background:
    linear-gradient(110deg, rgba(231, 237, 246, 0.09), transparent 26%),
    rgba(3, 8, 17, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.docs-module__rail {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: 24px 16px;
  border-right: 1px solid rgba(231, 237, 246, 0.1);
  background:
    linear-gradient(180deg, rgba(57, 232, 194, 0.11), transparent),
    rgba(1, 5, 12, 0.48);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
}

.docs-module__rail span {
  color: rgba(57, 232, 194, 0.72);
  font-size: 12px;
}

.docs-module__rail b {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: rgba(231, 237, 246, 0.68);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.docs-module__body {
  padding: 30px 34px 34px;
}

.docs-module__meta {
  margin-bottom: 12px;
  color: rgba(57, 232, 194, 0.68);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.docs-module h2 {
  max-width: 720px;
  font-size: clamp(34px, 4.2vw, 64px);
  line-height: 0.88;
  letter-spacing: 0;
}

.docs-module p {
  max-width: 760px;
  color: rgba(231, 237, 246, 0.66);
  font-size: 16px;
}

.docs-lab {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  margin-top: 24px;
  border: 1px solid rgba(231, 237, 246, 0.1);
  background: rgba(231, 237, 246, 0.08);
}

.docs-lab__primary,
.docs-lab__steps {
  background: rgba(1, 5, 12, 0.72);
}

.docs-lab__primary {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 188px;
  padding: 24px;
  overflow: hidden;
}

.docs-lab__primary small {
  color: rgba(57, 232, 194, 0.7);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.docs-lab__primary strong {
  display: block;
  max-width: 100%;
  color: #f0f5f8;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(32px, 4vw, 60px);
  font-weight: 400;
  line-height: 1;
  overflow-wrap: normal;
  text-wrap: balance;
  white-space: nowrap;
}

.docs-lab__primary--dense strong {
  font-size: clamp(27px, 3vw, 44px);
  letter-spacing: 0;
}

.docs-lab__steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 1px;
}

.docs-lab__steps .docs-equation {
  border: 0;
  border-bottom: 1px solid rgba(231, 237, 246, 0.08);
  background: rgba(255, 255, 255, 0.015);
}

.docs-equation {
  border-color: rgba(231, 237, 246, 0.08);
}

.docs-equation__line {
  font-size: clamp(21px, 1.75vw, 28px);
}

.docs-equation--dense .docs-equation__line {
  font-size: clamp(19px, 1.45vw, 24px);
}

.docs-module ul {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
}

.docs-module li {
  background:
    linear-gradient(135deg, rgba(231, 237, 246, 0.05), rgba(57, 232, 194, 0.018)),
    rgba(1, 5, 12, 0.38);
}

/* Arc blue alignment: keep the lab structure, but bind docs to the homepage palette. */
body[data-page='docs'] {
  --arc-blue: #2bd7ff;
  --arc-blue-deep: #2393ff;
  --arc-blue-bright: #72efff;
  --arc-ice: #d5e0ff;
  --arc-paper: #e7edf6;
  --arc-blue-soft: rgba(43, 215, 255, 0.72);
  --arc-blue-line: rgba(43, 215, 255, 0.28);
  --arc-blue-glow: rgba(43, 215, 255, 0.18);
}

@keyframes docsArcCurrent {
  0% {
    transform: translate3d(-18%, 0, 0) scaleX(0.82);
    opacity: 0;
  }
  22% {
    opacity: 0.72;
  }
  100% {
    transform: translate3d(116%, 0, 0) scaleX(1.08);
    opacity: 0;
  }
}

@keyframes docsLiquidLine {
  0%, 100% {
    transform: translate3d(-2%, 0, 0) skewY(-8deg);
    opacity: 0.34;
  }
  50% {
    transform: translate3d(3%, -12px, 0) skewY(-8deg);
    opacity: 0.68;
  }
}

@keyframes docsMeterPulse {
  0%, 100% {
    filter: drop-shadow(0 0 4px rgba(43, 215, 255, 0.28));
    opacity: 0.8;
  }
  50% {
    filter: drop-shadow(0 0 16px rgba(43, 215, 255, 0.76));
    opacity: 1;
  }
}

@keyframes docsPanelSweep {
  0% {
    transform: translateX(-120%) skewX(-18deg);
  }
  100% {
    transform: translateX(140%) skewX(-18deg);
  }
}

@keyframes docsHeroLiquid {
  0%, 100% {
    background-position:
      14% 30%,
      76% 20%,
      46% 66%,
      84% 78%,
      50% 50%;
    transform: translate3d(-1.5%, -1%, 0) scale(1) rotate(0deg);
    filter: blur(14px) saturate(1.12) contrast(1.36);
  }
  36% {
    background-position:
      24% 38%,
      64% 26%,
      38% 58%,
      72% 82%,
      44% 56%;
    transform: translate3d(1.8%, 0.6%, 0) scale(1.08) rotate(2deg);
    filter: blur(17px) saturate(1.28) brightness(1.1) contrast(1.48);
  }
  68% {
    background-position:
      10% 54%,
      84% 34%,
      54% 72%,
      92% 66%,
      58% 46%;
    transform: translate3d(0.4%, -1.2%, 0) scale(1.04) rotate(-1deg);
    filter: blur(13px) saturate(1.05) brightness(0.92) contrast(1.34);
  }
}

@keyframes docsHeroCurrent {
  0%, 100% {
    transform: translateX(-18%) scaleX(0.62);
    opacity: 0.18;
  }
  45% {
    transform: translateX(8%) scaleX(1.08);
    opacity: 0.94;
  }
  72% {
    transform: translateX(22%) scaleX(0.84);
    opacity: 0.36;
  }
}

@keyframes docsHeroScan {
  0% {
    background-position: 0 0, 0 -140px;
  }
  100% {
    background-position: 54px 0, 0 220px;
  }
}

@keyframes docsRailCharge {
  0%, 100% {
    opacity: 0.42;
    transform: translateY(-12%);
  }
  50% {
    opacity: 0.95;
    transform: translateY(18%);
  }
}

@keyframes docsSurfaceDrift {
  0% {
    background-position: 0 0, 0 0, 0 0;
    filter: saturate(0.32) brightness(0.56) contrast(1.18);
  }
  50% {
    background-position: 0 0, 92px -48px, -64px 38px;
    filter: saturate(0.42) brightness(0.64) contrast(1.24);
  }
  100% {
    background-position: 0 0, 184px -96px, -128px 76px;
    filter: saturate(0.32) brightness(0.56) contrast(1.18);
  }
}

@keyframes swapArcGridDrift {
  0%, 100% {
    background-position:
      50% 96%,
      50% 0,
      50% 0,
      0 0;
    filter: saturate(1) brightness(0.94);
  }
  50% {
    background-position:
      48% 94%,
      calc(50% + 22px) 16px,
      calc(50% - 18px) -12px,
      80px -44px;
    filter: saturate(1.16) brightness(1.04);
  }
}

@keyframes swapLiquidMetal {
  0%, 100% {
    background-position:
      24% 28%,
      74% 18%,
      62% 76%,
      0 0;
    transform: translate3d(-1.2%, 0.4%, 0) scale(1.02);
  }
  45% {
    background-position:
      36% 18%,
      66% 34%,
      52% 70%,
      36px -18px;
    transform: translate3d(1%, -1.2%, 0) scale(1.05);
  }
  72% {
    background-position:
      18% 38%,
      82% 28%,
      58% 84%,
      -24px 22px;
    transform: translate3d(0.3%, 0.8%, 0) scale(1.03);
  }
}

@keyframes swapPoolBreath {
  0%, 100% {
    opacity: 0.22;
    transform: translate(50%, 0) rotateX(72deg) scale(0.96);
  }
  50% {
    opacity: 0.38;
    transform: translate(50%, -1.5%) rotateX(72deg) scale(1.03);
  }
}

@keyframes docsHorizonBreath {
  0%, 100% {
    opacity: 0.4;
    filter: drop-shadow(0 0 8px rgba(43, 215, 255, 0.05));
  }
  50% {
    opacity: 0.68;
    filter: drop-shadow(0 0 22px rgba(43, 215, 255, 0.16));
  }
}

@keyframes docsHorizonSlide {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 240px 0;
  }
}

@keyframes docsGlassOrbit {
  0%, 100% {
    opacity: 0.28;
    transform:
      translate3d(calc(var(--doc-tilt-x) * 24px), calc(var(--doc-tilt-y) * 16px), 0)
      rotateX(calc(58deg + (var(--doc-tilt-y) * -4deg)))
      rotateZ(calc(39deg + (var(--doc-tilt-x) * 4deg)));
  }
  50% {
    opacity: 0.43;
    transform:
      translate3d(calc(-10px + (var(--doc-tilt-x) * 24px)), calc(6px + (var(--doc-tilt-y) * 16px)), 0)
      rotateX(calc(60deg + (var(--doc-tilt-y) * -4deg)))
      rotateZ(calc(51deg + (var(--doc-tilt-x) * 4deg)));
  }
}

@keyframes docsGlassLayer {
  0%, 100% {
    filter: brightness(0.82);
    background-position: center;
  }
  50% {
    filter: brightness(1.12);
    background-position: 54% 48%;
  }
}

@keyframes docsFogPass {
  0% {
    opacity: 0.1;
    transform: translate3d(calc(-12% + (var(--doc-tilt-x) * -10px)), calc(var(--doc-tilt-y) * -6px), 0);
  }
  50% {
    opacity: 0.22;
  }
  100% {
    opacity: 0.1;
    transform: translate3d(calc(12% + (var(--doc-tilt-x) * -10px)), calc(var(--doc-tilt-y) * -6px), 0);
  }
}

@keyframes docsCardLiquid {
  0%, 100% {
    background-position:
      8% 24%,
      92% 18%,
      26% 88%,
      72% 72%,
      50% 50%;
    filter: blur(8px) saturate(0.82) brightness(0.76) contrast(1.24);
    transform: translate3d(-1.5%, -1%, 0) scale(1);
  }
  38% {
    background-position:
      20% 30%,
      78% 26%,
      38% 78%,
      60% 66%,
      42% 48%;
    filter: blur(10px) saturate(0.95) brightness(0.9) contrast(1.32);
    transform: translate3d(1.2%, 0.6%, 0) scale(1.04);
  }
  68% {
    background-position:
      13% 45%,
      86% 36%,
      22% 70%,
      76% 82%,
      58% 52%;
    filter: blur(7px) saturate(0.78) brightness(0.7) contrast(1.2);
    transform: translate3d(0.4%, -0.8%, 0) scale(1.02);
  }
}

@keyframes docsCardSpecular {
  0% {
    opacity: 0.12;
    transform: translate3d(-78%, -18%, 0) rotate(16deg);
  }
  45% {
    opacity: 0.28;
  }
  100% {
    opacity: 0.08;
    transform: translate3d(92%, 18%, 0) rotate(16deg);
  }
}

@keyframes docsCardDroplets {
  0%, 100% {
    background-position:
      18% 18%,
      78% 24%,
      50% 78%,
      86% 70%;
    transform: translate3d(0, 0, 0) scale(1);
  }
  42% {
    background-position:
      28% 30%,
      68% 18%,
      43% 68%,
      74% 78%;
    transform: translate3d(1%, -1%, 0) scale(1.05);
  }
  72% {
    background-position:
      12% 34%,
      84% 36%,
      56% 84%,
      92% 58%;
    transform: translate3d(-0.6%, 0.8%, 0) scale(1.02);
  }
}

.docs-page {
  --mx: 52%;
  --my: 22%;
  --doc-scroll: 0;
  --doc-tilt-x: 0;
  --doc-tilt-y: 0;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(43, 215, 255, 0.13), transparent 22%),
    linear-gradient(90deg, rgba(213, 224, 255, 0.045) 1px, transparent 1px) 50% 0 / 96px 96px,
    linear-gradient(180deg, rgba(213, 224, 255, 0.032) 1px, transparent 1px) 50% 0 / 96px 96px,
    radial-gradient(circle at 52% 23%, rgba(43, 215, 255, 0.18), transparent 32%),
    radial-gradient(circle at 70% 42%, rgba(35, 147, 255, 0.12), transparent 30%),
    linear-gradient(180deg, #050d22 0%, #020813 52%, #01050f 100%);
}

.docs-bg {
  background:
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(213, 224, 255, 0.032) 38px 39px, transparent 39px 96px),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(213, 224, 255, 0.026) 38px 39px, transparent 39px 96px),
    linear-gradient(120deg, transparent 0 38%, rgba(43, 215, 255, 0.045) 38.1% 38.4%, transparent 38.5% 100%);
  transform: translateY(calc(var(--doc-scroll) * -90px));
}

.docs-flow {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.78;
  mix-blend-mode: screen;
}

.docs-flow i {
  position: absolute;
  left: -22%;
  width: 52%;
  height: 1px;
  background:
    linear-gradient(90deg, transparent, rgba(43, 215, 255, 0.08), rgba(213, 224, 255, 0.74), rgba(35, 147, 255, 0.34), transparent);
  box-shadow: 0 0 20px rgba(43, 215, 255, 0.22);
  transform-origin: center;
  animation: docsArcCurrent 9s linear infinite;
}

.docs-flow i:nth-child(1) {
  top: 22%;
  animation-duration: 10s;
}

.docs-flow i:nth-child(2) {
  top: 38%;
  width: 66%;
  animation-delay: -4s;
  animation-duration: 13s;
}

.docs-flow i:nth-child(3) {
  top: 58%;
  width: 44%;
  animation-delay: -7s;
  animation-duration: 11s;
  opacity: 0.72;
}

.docs-flow i:nth-child(4) {
  top: 76%;
  width: 74%;
  animation-delay: -2s;
  animation-duration: 16s;
  opacity: 0.42;
}

.docs-metal-surface::before,
.docs-metal-surface::after,
.docs-metal-surface i {
  background: linear-gradient(90deg, transparent, rgba(213, 224, 255, 0.72), rgba(43, 215, 255, 0.58), rgba(35, 147, 255, 0.28), transparent);
  animation: docsLiquidLine 7s ease-in-out infinite;
}

.docs-metal-surface::after {
  animation-delay: -2.4s;
}

.docs-metal-surface i:nth-child(1) {
  animation-delay: -1.2s;
}

.docs-metal-surface i:nth-child(2) {
  animation-delay: -3.4s;
}

.docs-metal-surface i:nth-child(3) {
  animation-delay: -5.2s;
}

.docs-kicker {
  color: rgba(213, 224, 255, 0.7);
}

.docs-kicker span,
.docs-card blockquote {
  border-left-color: var(--arc-blue);
}

.docs-kicker span {
  background: linear-gradient(90deg, var(--arc-blue), rgba(35, 147, 255, 0.34), transparent);
}

.docs-nav nav a[aria-current='page'],
.docs-index a[aria-current='page'],
.docs-hero__modules span,
.docs-hero-panel__top em,
.docs-readout small,
.docs-module__rail span,
.docs-module__meta,
.docs-lab__primary small,
.docs-hero-panel small,
.docs-equation small {
  color: var(--arc-blue-soft);
}

.docs-checklist i {
  background: var(--arc-blue);
  box-shadow: 0 0 16px rgba(43, 215, 255, 0.55);
}

.docs-hero-panel {
  border-color: rgba(213, 224, 255, 0.18);
  background:
    radial-gradient(circle at 24% 22%, rgba(213, 224, 255, 0.18), transparent 30%),
    radial-gradient(circle at 78% 78%, rgba(43, 215, 255, 0.16), transparent 34%),
    linear-gradient(150deg, rgba(231, 237, 246, 0.2), rgba(35, 147, 255, 0.13) 18%, rgba(1, 4, 10, 0.76) 48%, rgba(43, 215, 255, 0.13)),
    linear-gradient(90deg, rgba(213, 224, 255, 0.1) 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(0deg, rgba(213, 224, 255, 0.07) 1px, transparent 1px) 0 0 / 26px 26px,
    rgba(3, 8, 17, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -90px 140px rgba(43, 215, 255, 0.08),
    inset 0 0 56px rgba(213, 224, 255, 0.05),
    0 34px 120px rgba(0, 0, 0, 0.44),
    0 0 76px rgba(35, 147, 255, 0.14);
}

.docs-hero-panel::after,
.docs-module::after,
.docs-readout::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 0 34%, rgba(213, 224, 255, 0.18) 48%, transparent 62% 100%);
  opacity: 0.22;
  transform: translateX(-120%) skewX(-18deg);
  animation: docsPanelSweep 8s ease-in-out infinite;
  z-index: 3;
}

.docs-module::after {
  width: 42%;
  inset: -42% auto -42% 0;
  background:
    linear-gradient(90deg, transparent, rgba(231, 237, 246, 0.24), rgba(43, 215, 255, 0.2), transparent);
  mix-blend-mode: screen;
  animation: docsCardSpecular 13s cubic-bezier(0.44, 0, 0.2, 1) infinite;
  animation-delay: calc(var(--card-shift, 0) * -1s);
  opacity: 0.16;
}

.docs-readout::after {
  animation-delay: -3s;
  animation-duration: 10s;
  opacity: 0.16;
}

.docs-surface-meter i {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, var(--arc-blue) 0 var(--level), rgba(213, 224, 255, 0.15) var(--level) 100%);
  animation: docsMeterPulse 3.8s ease-in-out infinite;
}

.docs-surface-meter i::after {
  content: '';
  position: absolute;
  inset: -3px auto -3px 0;
  width: var(--level);
  background: linear-gradient(90deg, transparent, rgba(231, 237, 246, 0.82), transparent);
  opacity: 0.42;
  transform: translateX(-100%);
  animation: docsPanelSweep 3.6s ease-in-out infinite;
}

.docs-readout {
  position: relative;
  overflow: hidden;
  border-color: rgba(43, 215, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(43, 215, 255, 0.075), rgba(35, 147, 255, 0.03)),
    rgba(2, 8, 19, 0.36);
}

.docs-module__rail {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(43, 215, 255, 0.12), transparent),
    rgba(1, 5, 12, 0.48);
}

.docs-module__rail::after {
  content: '';
  position: absolute;
  inset: -30% 0;
  background: linear-gradient(180deg, transparent, rgba(43, 215, 255, 0.3), rgba(213, 224, 255, 0.12), transparent);
  opacity: 0.46;
  animation: docsRailCharge 6.5s ease-in-out infinite;
}

.docs-lab {
  border-color: rgba(213, 224, 255, 0.12);
  background: rgba(213, 224, 255, 0.08);
}

.docs-equation {
  border-color: rgba(43, 215, 255, 0.18);
}

.docs-equation__line::first-letter {
  color: var(--arc-blue-bright);
}

.docs-module li,
.docs-card li {
  background:
    linear-gradient(135deg, rgba(231, 237, 246, 0.055), rgba(43, 215, 255, 0.02)),
    rgba(1, 5, 12, 0.36);
}

.docs-card blockquote {
  border-color: rgba(43, 215, 255, 0.16);
  background:
    linear-gradient(90deg, rgba(43, 215, 255, 0.1), transparent),
    rgba(35, 147, 255, 0.035);
}

.docs-hero__modules :is(a, div),
.docs-module,
.docs-index a,
.docs-equation,
.docs-lab__primary {
  transition:
    border-color 0.36s ease,
    background-color 0.36s ease,
    box-shadow 0.36s ease,
    color 0.36s ease,
    transform 0.36s ease,
    opacity 0.36s ease;
}

.docs-hero__modules :is(a, div):hover,
.docs-hero__modules :is(a, div).is-active {
  border-color: rgba(43, 215, 255, 0.42);
  background:
    linear-gradient(135deg, rgba(43, 215, 255, 0.12), rgba(35, 147, 255, 0.06)),
    rgba(2, 8, 19, 0.82);
  box-shadow: inset 0 0 28px rgba(43, 215, 255, 0.08), 0 0 28px rgba(43, 215, 255, 0.1);
  transform: translateY(-2px);
}

.docs-index a[aria-current='true'] {
  color: var(--arc-paper);
  background: linear-gradient(90deg, rgba(43, 215, 255, 0.12), transparent);
  padding-left: 8px;
}

.docs-module.is-active {
  border-color: rgba(43, 215, 255, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 70px rgba(43, 215, 255, 0.075);
}

.docs-module.is-active::before {
  opacity: 0.9;
  filter: blur(7px) saturate(1) brightness(0.9) contrast(1.3);
}

.docs-module.is-active .docs-module__rail {
  background:
    linear-gradient(180deg, rgba(43, 215, 255, 0.2), transparent),
    rgba(1, 5, 12, 0.56);
}

.docs-module.is-active .docs-lab__primary {
  box-shadow: inset 0 0 34px rgba(43, 215, 255, 0.08);
}

.docs-stack {
  gap: 18px;
}

.docs-content {
  grid-template-columns: 190px minmax(0, 1fr) 220px;
  gap: 20px;
}

.docs-module {
  --card-shift: 0;
  scroll-margin-top: 128px;
  grid-template-columns: 92px minmax(0, 1fr);
  border: 0;
  border-top: 1px solid rgba(213, 224, 255, 0.18);
  border-bottom: 1px solid rgba(213, 224, 255, 0.08);
  background:
    linear-gradient(115deg, rgba(43, 215, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(213, 224, 255, 0.035), rgba(1, 5, 12, 0.22));
  clip-path: none;
  backdrop-filter: blur(18px);
  isolation: isolate;
  overflow: hidden;
}

.docs-module:nth-child(3n + 2) {
  --card-shift: 2.4;
  transform: translateX(24px);
}

.docs-module:nth-child(4n) {
  --card-shift: 4.7;
  transform: translateX(-18px);
}

.docs-module:nth-child(5n) {
  --card-shift: 6.1;
}

.docs-module::before {
  content: '';
  position: absolute;
  inset: -34%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 24%, rgba(236, 250, 255, 0.22) 0 5%, rgba(43, 215, 255, 0.13) 8%, transparent 17%),
    radial-gradient(circle at 92% 18%, rgba(213, 224, 255, 0.18) 0 4%, rgba(35, 147, 255, 0.12) 8%, transparent 18%),
    radial-gradient(circle at 26% 88%, rgba(114, 239, 255, 0.16) 0 7%, rgba(35, 147, 255, 0.08) 12%, transparent 22%),
    radial-gradient(circle at 72% 72%, rgba(231, 237, 246, 0.2) 0 3%, rgba(43, 215, 255, 0.1) 7%, transparent 15%),
    linear-gradient(115deg, transparent 18%, rgba(43, 215, 255, 0.07) 44%, rgba(231, 237, 246, 0.08) 50%, rgba(35, 147, 255, 0.05) 56%, transparent 78%);
  background-size:
    310px 230px,
    280px 220px,
    360px 260px,
    220px 180px,
    100% 100%;
  opacity: 0.72;
  mix-blend-mode: screen;
  animation: docsCardLiquid 18s ease-in-out infinite;
  animation-delay: calc(var(--card-shift) * -1s);
}

.docs-module > * {
  position: relative;
  z-index: 1;
}

.docs-module__body {
  position: relative;
  overflow: hidden;
  padding: 34px 34px 36px;
  background:
    radial-gradient(circle at 72% 18%, rgba(213, 224, 255, 0.045), transparent 22%),
    linear-gradient(180deg, rgba(1, 5, 12, 0.14), rgba(1, 5, 12, 0.32));
}

.docs-module__body::before {
  content: '';
  position: absolute;
  inset: -16%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 18% 18%, rgba(244, 252, 255, 0.18) 0 2.5%, rgba(114, 239, 255, 0.12) 4.5%, rgba(35, 147, 255, 0.04) 8%, transparent 12%),
    radial-gradient(ellipse at 78% 24%, rgba(231, 237, 246, 0.16) 0 2%, rgba(43, 215, 255, 0.11) 4%, transparent 10%),
    radial-gradient(ellipse at 50% 78%, rgba(213, 224, 255, 0.14) 0 2.2%, rgba(43, 215, 255, 0.09) 5%, transparent 12%),
    radial-gradient(ellipse at 86% 70%, rgba(244, 252, 255, 0.13) 0 1.8%, rgba(35, 147, 255, 0.08) 4.5%, transparent 9%);
  background-size:
    420px 300px,
    360px 260px,
    460px 320px,
    300px 220px;
  filter: blur(2px) saturate(0.9);
  opacity: 0.58;
  mix-blend-mode: screen;
  animation: docsCardDroplets 15s ease-in-out infinite;
  animation-delay: calc(var(--card-shift) * -0.7s);
}

.docs-module__body > * {
  position: relative;
  z-index: 1;
}

.docs-module__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 22px;
  align-items: start;
}

.docs-module__copy {
  min-width: 0;
}

.docs-module__signal {
  display: grid;
  align-content: space-between;
  min-height: 116px;
  padding: 14px;
  border-left: 1px solid rgba(213, 224, 255, 0.1);
  color: rgba(213, 224, 255, 0.46);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
}

.docs-module__signal small {
  color: var(--arc-blue-soft);
  font-size: 10px;
}

.docs-module__signal b {
  color: rgba(231, 237, 246, 0.88);
  font-size: 42px;
  font-weight: 400;
  line-height: 0.9;
}

.docs-module__signal span {
  font-size: 10px;
}

.docs-module h2 {
  max-width: 760px;
  font-size: clamp(30px, 3.1vw, 52px);
  line-height: 0.96;
  text-transform: none;
}

.docs-module p.docs-module__lead {
  max-width: 770px;
  margin-top: 16px;
  color: rgba(231, 237, 246, 0.86);
  font-size: 18px;
  line-height: 1.55;
}

.docs-module__support p {
  max-width: 720px;
  color: rgba(213, 224, 255, 0.68);
  font-size: 14px;
}

.docs-module--lead {
  grid-template-columns: 118px minmax(0, 1fr);
  margin-bottom: 12px;
  border-top-color: rgba(114, 239, 255, 0.34);
  background:
    linear-gradient(90deg, rgba(43, 215, 255, 0.15), transparent 54%),
    linear-gradient(135deg, rgba(213, 224, 255, 0.12), rgba(1, 5, 12, 0.2) 46%);
}

.docs-module--lead .docs-module__body {
  padding: 42px 42px 44px;
}

.docs-module--lead .docs-module__head {
  display: block;
}

.docs-module--lead .docs-module__signal {
  position: absolute;
  top: 34px;
  right: 34px;
  width: 104px;
  min-height: 112px;
  background: rgba(1, 5, 12, 0.28);
  backdrop-filter: blur(10px);
}

.docs-module--lead h2,
.docs-module--summary h2 {
  max-width: calc(100% - 126px);
  font-size: clamp(42px, 5.1vw, 76px);
  line-height: 0.86;
}

.docs-module--lead .docs-module__lead {
  max-width: 820px;
  font-size: 21px;
}

.docs-module--lead .docs-module__lead,
.docs-module--lead .docs-module__support {
  width: min(780px, calc(100% - 150px));
  padding: 14px 18px;
  background: rgba(1, 7, 18, 0.5);
  border-left: 1px solid rgba(43, 215, 255, 0.26);
}

.docs-module--lead .docs-module__support {
  margin-top: 8px;
}

.docs-module--lead .docs-points {
  margin-top: 14px;
}

.docs-module--math,
.docs-module--formula {
  background:
    linear-gradient(90deg, rgba(35, 147, 255, 0.11), transparent 58%),
    linear-gradient(180deg, rgba(213, 224, 255, 0.05), rgba(1, 5, 12, 0.28));
}

.docs-module--risk {
  border-top-color: rgba(255, 202, 121, 0.34);
  background:
    linear-gradient(100deg, rgba(255, 202, 121, 0.1), transparent 42%),
    linear-gradient(180deg, rgba(213, 224, 255, 0.04), rgba(1, 5, 12, 0.32));
}

.docs-module--risk .docs-module__meta,
.docs-module--risk .docs-points > small,
.docs-module--risk .docs-module__rail span {
  color: rgba(255, 214, 144, 0.78);
}

.docs-module--matrix .docs-module__head {
  grid-template-columns: minmax(0, 0.72fr) minmax(180px, 0.28fr);
}

.docs-points {
  margin-top: 22px;
}

.docs-points > small {
  display: block;
  margin-bottom: 10px;
  color: var(--arc-blue-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.docs-module ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
}

.docs-module li {
  min-height: 0;
  width: auto;
  padding: 8px 10px;
  border-color: rgba(213, 224, 255, 0.11);
  background: rgba(1, 5, 12, 0.44);
  color: rgba(231, 237, 246, 0.66);
  text-transform: none;
}

.docs-module--lead li,
.docs-module--summary li {
  border-color: rgba(43, 215, 255, 0.2);
  color: rgba(231, 237, 246, 0.78);
}

.docs-lab {
  margin-top: 26px;
  border: 0;
  border-left: 1px solid rgba(43, 215, 255, 0.32);
  background: transparent;
}

.docs-lab__primary {
  min-height: 156px;
  padding: 22px 0 22px 24px;
  background:
    radial-gradient(circle at 84% 20%, rgba(231, 237, 246, 0.12), transparent 19%),
    linear-gradient(90deg, rgba(43, 215, 255, 0.13), rgba(35, 147, 255, 0.045) 48%, transparent),
    rgba(1, 5, 12, 0.42);
  backdrop-filter: blur(12px);
}

.docs-lab__steps {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
  background: transparent;
}

.docs-lab__steps .docs-equation {
  border: 1px solid rgba(213, 224, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(231, 237, 246, 0.05), transparent 46%),
    rgba(1, 5, 12, 0.42);
  backdrop-filter: blur(10px);
}

.docs-table {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(213, 224, 255, 0.1);
  background: rgba(213, 224, 255, 0.08);
}

.docs-table div {
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 16px;
  border: 0;
  background: rgba(1, 5, 12, 0.52);
}

.docs-module blockquote {
  max-width: 760px;
  margin-top: 24px;
  font-size: 20px;
}

/* Cinematic Arc OS background pass: replace the generated grid feel with scene depth and material. */
.docs-page {
  background:
    radial-gradient(ellipse at var(--mx) var(--my), rgba(43, 215, 255, 0.1), transparent 24%),
    linear-gradient(180deg, #061126 0%, #020813 42%, #01040c 100%);
}

.docs-bg {
  z-index: 0;
  overflow: hidden;
  opacity: 1;
  background:
    linear-gradient(180deg, rgba(4, 13, 32, 0.72), rgba(1, 5, 13, 0.92) 56%, #01040c 100%),
    linear-gradient(110deg, rgba(43, 215, 255, 0.1), transparent 31% 100%),
    #020813;
  transform: translate3d(
    calc(var(--doc-tilt-x) * -10px),
    calc(var(--doc-tilt-y) * -6px),
    0
  );
  transition: transform 0.36s ease-out;
}

.docs-bg::before,
.docs-bg::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.docs-bg::before {
  left: -18vw;
  right: -18vw;
  top: 39vh;
  height: 74vh;
  background:
    linear-gradient(180deg, rgba(43, 215, 255, 0.18), rgba(7, 34, 62, 0.3) 22%, rgba(1, 7, 18, 0.88) 68%),
    url('/webgl/textures/water-normal.jpg') center / 720px repeat,
    url('/webgl/textures/terrain_normal.jpg') center / 920px repeat;
  border-top: 1px solid rgba(114, 239, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(213, 224, 255, 0.12),
    0 -36px 120px rgba(43, 215, 255, 0.08);
  opacity: 0.5;
  transform:
    perspective(920px)
    rotateX(calc(64deg + (var(--doc-tilt-y) * 2deg)))
    translate3d(
      calc(var(--doc-tilt-x) * -18px),
      calc((var(--doc-scroll) * -80px) + (var(--doc-tilt-y) * -10px)),
      0
    );
  transform-origin: top center;
  filter: saturate(0.34) brightness(0.58) contrast(1.2);
  animation: docsSurfaceDrift 24s ease-in-out infinite;
}

.docs-bg::after {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(1, 4, 12, 0.92) 0 17%, transparent 34% 76%, rgba(1, 4, 12, 0.72)),
    linear-gradient(180deg, rgba(1, 4, 12, 0.24), transparent 26% 42%, rgba(1, 4, 12, 0.28) 56%, rgba(1, 4, 12, 0.78) 100%);
  animation: docsFogPass 18s ease-in-out infinite alternate;
}

.docs-scene {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  perspective: 1200px;
}

.docs-horizon {
  position: absolute;
  left: 12vw;
  right: 8vw;
  top: 34vh;
  height: 42vh;
  opacity: 0.58;
  transform: translate3d(
    calc(var(--doc-tilt-x) * -28px),
    calc((var(--doc-scroll) * -56px) + (var(--doc-tilt-y) * -12px)),
    0
  );
  animation: docsHorizonBreath 10s ease-in-out infinite;
}

.docs-horizon::before,
.docs-horizon::after,
.docs-horizon i {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(213, 224, 255, 0.34), rgba(43, 215, 255, 0.32), transparent);
  background-size: 240px 1px;
  transform: perspective(900px) rotateX(58deg);
  transform-origin: center;
  animation: docsHorizonSlide 16s linear infinite;
}

.docs-horizon::before {
  top: 4%;
}

.docs-horizon::after {
  top: 38%;
  opacity: 0.44;
}

.docs-horizon i:nth-child(1) {
  top: 18%;
  left: 18%;
  right: 9%;
  opacity: 0.7;
}

.docs-horizon i:nth-child(2) {
  top: 58%;
  left: 3%;
  right: 28%;
  opacity: 0.36;
}

.docs-horizon i:nth-child(3) {
  top: 78%;
  left: 35%;
  right: -12%;
  opacity: 0.24;
}

.docs-glass-core {
  position: absolute;
  top: clamp(120px, 17vh, 210px);
  right: clamp(28px, 8vw, 150px);
  width: min(29vw, 430px);
  aspect-ratio: 1;
  opacity: 0.34;
  transform:
    translate3d(calc(var(--doc-tilt-x) * 24px), calc(var(--doc-tilt-y) * 16px), 0)
    rotateX(calc(58deg + (var(--doc-tilt-y) * -4deg)))
    rotateZ(calc(45deg + (var(--doc-tilt-x) * 4deg)));
  transform-style: preserve-3d;
  mix-blend-mode: screen;
  animation: docsGlassOrbit 18s ease-in-out infinite;
}

.docs-glass-core::before,
.docs-glass-core::after,
.docs-glass-core i {
  content: '';
  position: absolute;
  inset: 9%;
  border: 1px solid rgba(114, 239, 255, 0.24);
  background:
    linear-gradient(135deg, rgba(213, 224, 255, 0.12), rgba(43, 215, 255, 0.035) 36%, transparent),
    url('/webgl/textures/hero-cube-hex.png') center / 86% no-repeat;
  box-shadow:
    inset 0 0 44px rgba(43, 215, 255, 0.08),
    0 0 90px rgba(43, 215, 255, 0.08);
  animation: docsGlassLayer 9s ease-in-out infinite;
}

.docs-glass-core::before {
  transform: translateZ(34px);
}

.docs-glass-core::after {
  transform: translateZ(-34px) scale(0.86);
  opacity: 0.5;
  animation-delay: -3s;
}

.docs-glass-core i:nth-child(1) {
  inset: 18%;
  transform: translateZ(72px) rotateZ(45deg);
  opacity: 0.58;
  animation-delay: -1.4s;
}

.docs-glass-core i:nth-child(2) {
  inset: 30%;
  transform: translateZ(108px);
  opacity: 0.38;
  animation-delay: -4.6s;
}

.docs-glass-core i:nth-child(3) {
  inset: 2%;
  border-color: rgba(213, 224, 255, 0.11);
  background: none;
  transform: translateZ(-84px);
  opacity: 0.3;
}

.docs-flow {
  opacity: 0.24;
  mix-blend-mode: screen;
}

.docs-flow i {
  background: linear-gradient(90deg, transparent, rgba(43, 215, 255, 0.2), rgba(213, 224, 255, 0.42), transparent);
  box-shadow: 0 0 24px rgba(43, 215, 255, 0.12);
}

.docs-metal-surface {
  inset: 44vh 0 auto;
  height: 44vh;
  opacity: 0.34;
  transform: perspective(900px) rotateX(60deg) skewY(-4deg);
}

.docs-metal-surface::before,
.docs-metal-surface::after,
.docs-metal-surface i {
  background: linear-gradient(90deg, transparent, rgba(213, 224, 255, 0.38), rgba(43, 215, 255, 0.36), transparent);
}

.app-page {
  padding-bottom: 82px;
}

.app-page--mint {
  --app-accent: #72efff;
  --app-accent-soft: rgba(114, 239, 255, 0.26);
}

.app-page--stake {
  --app-accent: #39e8c2;
  --app-accent-soft: rgba(57, 232, 194, 0.22);
}

.app-page--swap {
  --app-accent: #23d7ff;
  --app-accent-soft: rgba(35, 215, 255, 0.2);
  --swap-arc: #23d7ff;
  --swap-arc-deep: #2393ff;
  --swap-metal: rgba(173, 219, 236, 0.15);
  --swap-ink: #030815;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(35, 215, 255, 0.12), transparent 34%),
    radial-gradient(ellipse at 50% 112%, rgba(35, 147, 255, 0.28), transparent 48%),
    linear-gradient(180deg, #071225 0%, #030815 50%, #01040b 100%);
}

body[data-app-route='swap'] .app-grid,
body[data-app-route='swap'] .app-readout,
body[data-app-route='swap'] .app-panels,
body[data-app-route='swap'] .app-hero__copy {
  display: none !important;
}

body[data-app-route='swap'] .docs-page {
  background:
    radial-gradient(ellipse at 50% 42%, rgba(35, 215, 255, 0.16), transparent 32%),
    radial-gradient(ellipse at 18% 24%, rgba(73, 182, 255, 0.12), transparent 34%),
    radial-gradient(ellipse at 82% 68%, rgba(35, 147, 255, 0.16), transparent 38%),
    linear-gradient(180deg, #06162c 0%, #031022 48%, #010611 100%);
}

body[data-app-route='swap'] .docs-bg {
  background:
    radial-gradient(ellipse at 50% 96%, rgba(35, 215, 255, 0.12), transparent 42%),
    linear-gradient(90deg, rgba(213, 224, 255, 0.035) 1px, transparent 1px) 50% 0 / 88px 88px,
    linear-gradient(180deg, rgba(213, 224, 255, 0.026) 1px, transparent 1px) 50% 0 / 88px 88px,
    repeating-linear-gradient(162deg, transparent 0 92px, rgba(35, 215, 255, 0.05) 92px 93px, transparent 93px 184px);
  opacity: 0.78;
  animation: swapArcGridDrift 20s ease-in-out infinite;
}

body[data-app-route='swap'] .docs-flow {
  opacity: 0.54;
  mix-blend-mode: screen;
}

body[data-app-route='swap'] .docs-flow i {
  width: 78%;
  height: 1px;
  background:
    linear-gradient(90deg, transparent, rgba(35, 147, 255, 0.14), rgba(35, 215, 255, 0.66), rgba(213, 224, 255, 0.28), transparent);
  box-shadow: 0 0 22px rgba(35, 215, 255, 0.18);
}

body[data-app-route='swap'] .docs-flow i:nth-child(1) {
  top: 20%;
}

body[data-app-route='swap'] .docs-flow i:nth-child(2) {
  top: 45%;
}

body[data-app-route='swap'] .docs-flow i:nth-child(3) {
  top: 66%;
}

body[data-app-route='swap'] .docs-flow i:nth-child(4) {
  top: 83%;
}

body[data-app-route='swap'] .docs-glass-core {
  display: none;
}

body[data-app-route='swap'] .docs-horizon {
  opacity: 0.42;
}

body[data-app-route='swap'] .docs-metal-surface {
  opacity: 0.48;
  filter: saturate(1.4) brightness(0.82) hue-rotate(8deg);
}

body[data-app-route='swap'] .docs-metal-surface::before,
body[data-app-route='swap'] .docs-metal-surface::after,
body[data-app-route='swap'] .docs-metal-surface i {
  background:
    linear-gradient(90deg, transparent, rgba(35, 147, 255, 0.28), rgba(35, 215, 255, 0.72), rgba(213, 224, 255, 0.24), transparent);
}

.app-hero,
.app-grid {
  position: relative;
  z-index: 2;
  width: min(1320px, 100%);
  margin-inline: auto;
}

.stake-workspace {
  position: relative;
  z-index: 2;
  width: min(1420px, 100%);
  min-height: calc(100vh - 164px);
  margin-inline: auto;
  padding-block: 8px 38px;
  display: grid;
  align-items: start;
}

.app-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 220px);
}

.coming-soon-workspace {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: min(1320px, 100%);
  min-height: calc(100vh - 178px);
  margin-inline: auto;
  padding: clamp(18px, 4vw, 54px) 0;
  isolation: isolate;
}

.coming-soon-backdrop {
  position: absolute;
  inset: clamp(18px, 4vw, 54px) 0;
  z-index: 0;
  display: grid;
  place-items: center;
  opacity: 0.46;
  filter: blur(11px) saturate(0.72) brightness(0.62);
  transform: scale(1.03);
  pointer-events: none;
  user-select: none;
}

.coming-soon-backdrop::before {
  content: '';
  position: absolute;
  inset: -18%;
  background:
    repeating-linear-gradient(90deg, rgba(213, 224, 255, 0.035) 0 1px, transparent 1px 54px),
    repeating-linear-gradient(0deg, rgba(213, 224, 255, 0.026) 0 1px, transparent 1px 54px),
    radial-gradient(circle at 50% 50%, var(--app-accent-soft), transparent 42%);
  opacity: 0.8;
}

.coming-soon-panel {
  position: relative;
  width: min(580px, 78vw);
  min-height: min(620px, 68vh);
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(213, 224, 255, 0.2);
  background:
    radial-gradient(circle at 30% 18%, rgba(231, 237, 246, 0.22), transparent 28%),
    radial-gradient(circle at 76% 70%, var(--app-accent-soft), transparent 32%),
    linear-gradient(150deg, rgba(231, 237, 246, 0.18), rgba(2, 8, 19, 0.86) 50%, rgba(43, 215, 255, 0.1)),
    rgba(2, 8, 19, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -80px 140px rgba(43, 215, 255, 0.07),
    0 38px 120px rgba(0, 0, 0, 0.48),
    0 0 86px var(--app-accent-soft);
  clip-path: polygon(0 0, calc(100% - 36px) 0, 100% 36px, 100% 100%, 36px 100%, 0 calc(100% - 36px));
}

.coming-soon-lockup {
  position: relative;
  z-index: 2;
  width: min(940px, 100%);
  padding: clamp(24px, 5vw, 54px) 18px;
  text-align: center;
  text-transform: uppercase;
  text-shadow:
    0 0 18px rgba(213, 224, 255, 0.28),
    0 0 78px var(--app-accent-soft),
    0 18px 70px rgba(0, 0, 0, 0.7);
}

.coming-soon-lockup small {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(213, 224, 255, 0.26);
  color: var(--app-accent);
  font-size: 11px;
  letter-spacing: 0.18em;
  background: rgba(2, 8, 19, 0.54);
  backdrop-filter: blur(14px);
}

.coming-soon-lockup h1 {
  margin: 18px 0 12px;
  color: #f4f8fb;
  font-size: clamp(58px, 12vw, 176px);
  line-height: 0.84;
  letter-spacing: 0;
}

.app-hero__copy h1 {
  margin: 0;
  color: #f0f5f8;
  font-size: clamp(66px, 13vw, 182px);
  line-height: 0.76;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow:
    0 0 22px rgba(213, 224, 255, 0.2),
    0 0 90px var(--app-accent-soft);
}

.app-hero__copy > strong {
  display: block;
  max-width: 680px;
  margin-top: 24px;
  color: rgba(231, 237, 246, 0.94);
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 400;
  line-height: 1.08;
}

.app-hero__copy p {
  max-width: 660px;
  margin: 22px 0 0;
  color: rgba(213, 224, 255, 0.7);
  font-size: 16px;
  line-height: 1.7;
}

.app-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.app-hero__actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(213, 224, 255, 0.14);
  background: rgba(213, 224, 255, 0.06);
  color: #e7edf6;
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 13px 100%, 0 calc(100% - 13px));
}

.app-hero__actions button:disabled {
  cursor: default;
  color: rgba(231, 237, 246, 0.42);
}

.app-hero__actions .filled {
  border-color: rgba(231, 237, 246, 0.82);
  background: #e7edf6;
  color: #020a19;
}

.app-hero__actions i,
.mint-stepper button::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  background:
    linear-gradient(currentColor 0 0) 0 0 / 3px 3px no-repeat,
    linear-gradient(currentColor 0 0) 4px 0 / 3px 3px no-repeat,
    linear-gradient(currentColor 0 0) 0 4px / 3px 3px no-repeat,
    linear-gradient(currentColor 0 0) 4px 4px / 3px 3px no-repeat;
}

.mint-console {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(213, 224, 255, 0.2);
  background:
    radial-gradient(circle at 30% 18%, rgba(231, 237, 246, 0.22), transparent 28%),
    radial-gradient(circle at 76% 70%, var(--app-accent-soft), transparent 32%),
    linear-gradient(150deg, rgba(231, 237, 246, 0.18), rgba(2, 8, 19, 0.86) 50%, rgba(43, 215, 255, 0.1)),
    rgba(2, 8, 19, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -80px 140px rgba(43, 215, 255, 0.07),
    0 38px 120px rgba(0, 0, 0, 0.48),
    0 0 86px var(--app-accent-soft);
  clip-path: polygon(0 0, calc(100% - 36px) 0, 100% 36px, 100% 100%, 36px 100%, 0 calc(100% - 36px));
  isolation: isolate;
}

.app-page--swap .mint-console {
  border-color: rgba(35, 215, 255, 0.22);
  background:
    radial-gradient(ellipse at 28% 18%, rgba(213, 224, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 20%),
    linear-gradient(135deg, rgba(35, 215, 255, 0.1), transparent 36%),
    repeating-linear-gradient(90deg, rgba(213, 224, 255, 0.035) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(0deg, rgba(213, 224, 255, 0.026) 0 1px, transparent 1px 44px),
    #04101f;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -54px 120px rgba(0, 0, 0, 0.46),
    0 28px 88px rgba(0, 0, 0, 0.58),
    0 0 56px rgba(35, 215, 255, 0.08),
    0 0 0 1px rgba(35, 215, 255, 0.08);
}

.stake-console {
  position: relative;
  display: grid;
  align-content: start;
  gap: 24px;
  min-height: 0;
  overflow: visible;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  clip-path: none;
  isolation: auto;
}

.stake-console > *:not(.mint-console__liquid) {
  position: relative;
  z-index: 2;
}

.stake-console > .mint-console__liquid {
  display: none;
}

.stake-console > .mint-console__top {
  padding: 14px 16px;
  border: 1px solid rgba(57, 232, 194, 0.2);
  background:
    linear-gradient(135deg, rgba(231, 237, 246, 0.075), rgba(57, 232, 194, 0.035)),
    rgba(1, 5, 12, 0.66);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 18px 46px rgba(0, 0, 0, 0.28),
    0 0 24px rgba(57, 232, 194, 0.055);
  backdrop-filter: blur(16px);
}

.stake-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 14px;
}

.stake-overview div,
.stake-card,
.stake-warning {
  border: 1px solid rgba(213, 224, 255, 0.14);
  background:
    linear-gradient(135deg, rgba(231, 237, 246, 0.075), rgba(57, 232, 194, 0.035)),
    rgba(1, 5, 12, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 50px rgba(0, 0, 0, 0.34),
    0 0 28px rgba(57, 232, 194, 0.055);
  backdrop-filter: blur(16px);
}

.stake-overview div {
  min-height: 74px;
  padding: 12px;
  min-width: 0;
}

.stake-overview span,
.stake-card small,
.stake-card__stats span,
.stake-field span {
  display: block;
  color: rgba(213, 224, 255, 0.48);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.stake-overview strong {
  display: block;
  margin-top: 10px;
  color: rgba(231, 237, 246, 0.94);
  font-size: clamp(13px, 1.85vw, 15px);
  line-height: 1.15;
  overflow-wrap: anywhere;
  word-break: normal;
}

.stake-pools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.stake-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.stake-card__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.stake-card h2 {
  margin: 4px 0 0;
  color: #f0f5f8;
  font-size: 36px;
  line-height: 0.9;
  text-transform: uppercase;
}

.stake-card p {
  margin: 6px 0 0;
  color: rgba(213, 224, 255, 0.66);
  font-size: 13px;
  line-height: 1.45;
}

.stake-card__head a {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(57, 232, 194, 0.24);
  background: rgba(57, 232, 194, 0.08);
  color: rgba(231, 237, 246, 0.9);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  text-decoration: none;
  text-transform: uppercase;
}

.stake-card__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.stake-card__stats div {
  min-height: 64px;
  padding: 10px;
  min-width: 0;
  border: 1px solid rgba(213, 224, 255, 0.08);
  background: rgba(1, 5, 12, 0.38);
}

.stake-card__stats strong {
  display: block;
  margin-top: 8px;
  color: rgba(231, 237, 246, 0.92);
  font-size: 12px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.stake-field {
  display: grid;
  gap: 7px;
}

.stake-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(213, 224, 255, 0.12);
  background: rgba(1, 5, 12, 0.58);
  color: #f0f5f8;
  font-size: 20px;
  outline: none;
}

.stake-field input:focus {
  border-color: rgba(57, 232, 194, 0.48);
  box-shadow: 0 0 20px rgba(57, 232, 194, 0.12);
}

.stake-presets {
  display: grid;
  gap: 9px;
}

.stake-presets input[type='range'] {
  width: 100%;
  height: 4px;
  margin: 2px 0;
  accent-color: #39e8c2;
  cursor: pointer;
}

.stake-presets div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.stake-presets button {
  min-height: 32px;
  border: 1px solid rgba(57, 232, 194, 0.18);
  background: rgba(57, 232, 194, 0.055);
  color: rgba(231, 237, 246, 0.82);
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.stake-presets button:hover {
  border-color: rgba(57, 232, 194, 0.42);
  color: #f0f5f8;
}

.stake-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

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

.stake-actions button {
  min-height: 46px;
  border: 1px solid rgba(222, 230, 239, 0.12);
  background: rgba(10, 14, 21, 0.74);
  color: #e7edf6;
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.stake-actions .filled {
  border-color: rgba(57, 232, 194, 0.76);
  background:
    linear-gradient(180deg, #a8ffec, #39e8c2 52%, #1fae98);
  color: #02130f;
  font-weight: 700;
  box-shadow: 0 0 24px rgba(57, 232, 194, 0.18);
}

.stake-actions button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.stake-note {
  min-height: 38px;
}

.stake-warning {
  display: grid;
  gap: 6px;
  padding: 14px;
}

.stake-warning strong {
  color: #f0f5f8;
  font-size: 13px;
  text-transform: uppercase;
}

.stake-warning span {
  color: rgba(213, 224, 255, 0.66);
  font-size: 12px;
  line-height: 1.45;
}

.mint-console::before,
.mint-console::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.mint-console::before {
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(213, 224, 255, 0.08) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(0deg, rgba(213, 224, 255, 0.06) 1px, transparent 1px) 0 0 / 32px 32px,
    repeating-linear-gradient(115deg, transparent 0 18px, rgba(213, 224, 255, 0.06) 18px 19px, transparent 19px 68px);
  opacity: 0.58;
}

.mint-console::after {
  inset: -30% auto -30% -44%;
  z-index: 4;
  width: 58%;
  background: linear-gradient(90deg, transparent, rgba(231, 237, 246, 0.42), var(--app-accent-soft), transparent);
  opacity: 0.2;
  transform: rotate(16deg);
  animation: docsCardSpecular 8s cubic-bezier(0.44, 0, 0.2, 1) infinite;
}

.app-page--swap .mint-console::before {
  background:
    radial-gradient(ellipse at 50% 112%, rgba(35, 215, 255, 0.15), transparent 38%),
    repeating-radial-gradient(ellipse at 50% 110%, transparent 0 34px, rgba(35, 215, 255, 0.06) 35px 36px, transparent 37px 74px),
    linear-gradient(115deg, transparent 0 42%, rgba(213, 224, 255, 0.06) 42.2% 42.7%, transparent 43% 100%);
  opacity: 0.9;
}

.app-page--swap .mint-console::after {
  inset: -18%;
  z-index: 1;
  width: auto;
  background:
    radial-gradient(circle at 24% 28%, rgba(236, 252, 255, 0.22) 0 3%, rgba(35, 215, 255, 0.17) 8%, transparent 18%),
    radial-gradient(circle at 74% 18%, rgba(35, 147, 255, 0.2) 0 4%, transparent 19%),
    radial-gradient(circle at 62% 76%, rgba(35, 215, 255, 0.18) 0 6%, transparent 22%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 18% 82%, rgba(35, 215, 255, 0.08));
  filter: blur(10px) saturate(1.35);
  opacity: 0.62;
  transform: translate3d(0, 0, 0);
  mix-blend-mode: screen;
  animation: swapLiquidMetal 18s ease-in-out infinite;
}

.mint-console__liquid {
  position: absolute;
  inset: -18%;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 28%, rgba(244, 252, 255, 0.34) 0 5%, var(--app-accent-soft) 9%, transparent 22%),
    radial-gradient(circle at 82% 22%, rgba(213, 224, 255, 0.2) 0 4%, rgba(35, 147, 255, 0.13) 9%, transparent 22%),
    radial-gradient(circle at 46% 72%, var(--app-accent-soft) 0 8%, transparent 24%),
    linear-gradient(120deg, transparent 12%, rgba(231, 237, 246, 0.14) 48%, transparent 74%);
  filter: blur(12px) saturate(1.12) contrast(1.28);
  opacity: 0.9;
  mix-blend-mode: screen;
  animation: docsHeroLiquid 18s ease-in-out infinite;
}

.app-page--swap .mint-console__liquid {
  inset: -22%;
  background:
    radial-gradient(ellipse at 28% 32%, rgba(224, 250, 255, 0.2), transparent 22%),
    radial-gradient(ellipse at 62% 54%, rgba(35, 215, 255, 0.2), transparent 30%),
    radial-gradient(ellipse at 48% 88%, rgba(35, 147, 255, 0.22), transparent 28%),
    linear-gradient(112deg, transparent 0 28%, rgba(35, 215, 255, 0.08) 34%, rgba(213, 224, 255, 0.07) 42%, transparent 54% 100%);
  filter: blur(8px) saturate(1.28) contrast(1.12);
  opacity: 0.78;
  mix-blend-mode: screen;
  animation: swapLiquidMetal 22s ease-in-out infinite reverse;
}

.mint-console > *:not(.mint-console__liquid) {
  position: relative;
  z-index: 2;
}

.mint-console__top,
.mint-progress span,
.mint-console__metrics span,
.app-readout strong,
.app-readout span,
.app-panels small {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
}

.mint-console__top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: rgba(213, 224, 255, 0.54);
  font-size: 10px;
}

.mint-console__top small {
  color: var(--app-accent);
}

.mint-console__top em {
  max-width: 230px;
  font-style: normal;
  text-align: right;
}

.mint-console__core {
  display: grid;
  place-items: center;
  min-height: 260px;
  margin: 34px 0 22px;
  border: 1px solid rgba(213, 224, 255, 0.1);
  background:
    radial-gradient(circle at 50% 45%, rgba(231, 237, 246, 0.12), transparent 34%),
    rgba(1, 5, 12, 0.36);
  text-align: center;
}

.mint-console__core span,
.mint-console__core small {
  color: rgba(213, 224, 255, 0.48);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.mint-console__core strong {
  color: #f0f5f8;
  font-size: clamp(88px, 13vw, 150px);
  line-height: 0.78;
  font-weight: 700;
  text-shadow: 0 0 34px var(--app-accent-soft);
}

.mint-stepper {
  display: grid;
  grid-template-columns: 62px 1fr 62px;
  align-items: center;
  gap: 8px;
}

.mint-stepper button {
  min-height: 52px;
  border: 1px solid rgba(231, 237, 246, 0.14);
  background: rgba(231, 237, 246, 0.055);
  color: rgba(231, 237, 246, 0.75);
  font-size: 24px;
}

.mint-stepper b {
  display: grid;
  place-items: center;
  min-height: 52px;
  border: 1px solid rgba(231, 237, 246, 0.14);
  background: rgba(1, 5, 12, 0.42);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  text-transform: uppercase;
}

.mint-progress {
  position: relative;
  margin-top: 18px;
}

.mint-progress span {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: rgba(231, 237, 246, 0.6);
  font-size: 10px;
}

.mint-progress em {
  font-style: normal;
  color: rgba(231, 237, 246, 0.82);
}

.mint-progress i {
  display: block;
  position: relative;
  z-index: 1;
  max-width: 100%;
  height: 3px;
  margin-top: 10px;
  background: var(--app-accent);
  box-shadow: 0 0 22px var(--app-accent-soft);
}

.mint-progress::after {
  content: "";
  display: block;
  height: 3px;
  margin-top: -3px;
  background: rgba(231, 237, 246, 0.14);
}

.mint-console__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.mint-console__metrics div,
.app-readout div,
.app-panels article {
  border: 1px solid rgba(213, 224, 255, 0.11);
  background:
    linear-gradient(135deg, rgba(231, 237, 246, 0.055), rgba(43, 215, 255, 0.022)),
    rgba(1, 5, 12, 0.42);
  backdrop-filter: blur(14px);
}

.mint-console__metrics div {
  min-height: 82px;
  padding: 13px;
}

.mint-console__metrics span {
  display: block;
  color: rgba(213, 224, 255, 0.46);
  font-size: 10px;
}

.mint-console__metrics strong {
  display: block;
  margin-top: 10px;
  color: rgba(231, 237, 246, 0.92);
  font-size: 14px;
  line-height: 1.2;
}

.swap-console {
  display: grid;
  align-content: start;
  gap: 16px;
  width: min(640px, 100%);
  min-height: 0;
  margin-inline: auto;
  padding: 22px;
  clip-path: none;
  border-radius: 8px;
}

.app-page--swap .swap-console {
  overflow: hidden;
  border-radius: 10px;
}

.swap-workspace {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: min(1320px, 100%);
  min-height: calc(100vh - 180px);
  margin-inline: auto;
  padding-block: 24px 42px;
}

.swap-workspace::before,
.swap-workspace::after {
  content: '';
  position: absolute;
  inset: auto 50% 5% auto;
  z-index: 0;
  width: min(760px, 78vw);
  height: min(760px, 78vw);
  border: 1px solid rgba(35, 215, 255, 0.16);
  border-radius: 50%;
  opacity: 0.28;
  transform: translate(50%, 0) rotateX(72deg);
  pointer-events: none;
}

.swap-workspace::after {
  width: min(520px, 64vw);
  height: min(520px, 64vw);
  border-color: rgba(213, 224, 255, 0.14);
  opacity: 0.24;
}

.swap-workspace::before {
  border-color: rgba(35, 215, 255, 0.16);
  box-shadow: 0 0 52px rgba(35, 215, 255, 0.08);
  animation: swapPoolBreath 12s ease-in-out infinite;
}

.swap-title {
  text-align: center;
}

.swap-title h1 {
  margin: 6px 0 0;
  color: #f0f5f8;
  font-size: 42px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.swap-title p {
  margin: 9px auto 0;
  color: rgba(222, 230, 239, 0.54);
  font-size: 13px;
  line-height: 1.45;
}

.swap-tabs,
.lp-adjust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.swap-tabs button,
.lp-adjust button {
  min-height: 40px;
  border: 1px solid rgba(222, 230, 239, 0.12);
  background: rgba(10, 14, 21, 0.72);
  color: rgba(231, 237, 246, 0.68);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.swap-tabs button.active,
.lp-adjust button:hover {
  border-color: rgba(35, 215, 255, 0.62);
  background:
    linear-gradient(180deg, rgba(35, 215, 255, 0.2), rgba(35, 147, 255, 0.08));
  color: #f0f5f8;
  box-shadow: inset 0 0 24px rgba(35, 215, 255, 0.08);
}

.swap-form {
  display: grid;
  gap: 12px;
}

.amm-panel {
  display: none;
}

.amm-panel.active {
  display: grid;
}

.swap-field {
  display: grid;
  gap: 8px;
}

.swap-field span,
.swap-readout span {
  color: rgba(213, 224, 255, 0.48);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.swap-field div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  border: 1px solid rgba(222, 230, 239, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    linear-gradient(110deg, rgba(35, 215, 255, 0.035), transparent 38%),
    rgba(3, 6, 11, 0.72);
  border-radius: 7px;
}

.swap-token-cell {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
  border-left: 1px solid rgba(222, 230, 239, 0.1);
  padding: 9px 10px;
}

.swap-token-cell small {
  display: block;
  min-height: 13px;
  overflow: hidden;
  color: rgba(213, 224, 255, 0.62);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  line-height: 1.2;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.swap-field input,
.swap-field select {
  min-width: 0;
  height: 64px;
  border: 0;
  background: transparent;
  color: #f0f5f8;
  font: inherit;
}

.swap-field input {
  padding: 0 16px;
  font-size: 24px;
}

.swap-field select {
  width: 100%;
  height: 24px;
  padding: 0 2px;
  color: var(--app-accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
  text-align: right;
}

.swap-field input:focus,
.swap-field select:focus {
  outline: 1px solid var(--app-accent);
  outline-offset: -1px;
}

.swap-percent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 54px;
  align-items: center;
  gap: 10px 12px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(35, 215, 255, 0.18);
  background:
    linear-gradient(110deg, rgba(35, 215, 255, 0.07), transparent 50%),
    rgba(1, 5, 12, 0.46);
  border-radius: 7px;
  box-shadow: inset 0 0 18px rgba(35, 215, 255, 0.035);
}

.swap-percent span,
.swap-percent b,
.swap-percent button {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.swap-percent span {
  color: rgba(213, 224, 255, 0.56);
}

.swap-percent b {
  color: var(--app-accent);
  text-align: right;
}

.swap-percent input {
  width: 100%;
  min-width: 0;
  accent-color: var(--app-accent);
}

.swap-percent div {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.swap-percent button {
  min-height: 30px;
  border: 1px solid rgba(213, 224, 255, 0.12);
  background: rgba(10, 14, 21, 0.72);
  color: rgba(231, 237, 246, 0.78);
  transition: border-color 160ms ease, filter 160ms ease, transform 120ms ease;
  cursor: pointer;
}

.swap-percent button:hover {
  border-color: rgba(35, 215, 255, 0.58);
  filter: brightness(1.08);
}

.swap-percent button:active {
  transform: translateY(1px) scale(0.985);
}

.swap-flip {
  width: 42px;
  aspect-ratio: 1;
  min-height: 38px;
  justify-self: center;
  border: 1px solid rgba(35, 215, 255, 0.4);
  background:
    radial-gradient(circle at 35% 20%, rgba(224, 250, 255, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(35, 215, 255, 0.18), rgba(10, 18, 33, 0.82));
  color: #f0f5f8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0;
  text-transform: uppercase;
  border-radius: 50%;
}

.swap-flip::before {
  content: '⇅';
  font-size: 20px;
  line-height: 1;
}

.swap-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
}

.swap-actions--single {
  grid-template-columns: 1fr;
}

.swap-actions button {
  min-height: 46px;
  border: 1px solid rgba(222, 230, 239, 0.12);
  background: rgba(10, 14, 21, 0.74);
  color: #e7edf6;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  text-transform: uppercase;
  transform: translateY(0);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 120ms ease, filter 160ms ease;
  cursor: pointer;
}

.swap-actions .filled {
  border-color: rgba(35, 215, 255, 0.86);
  background:
    linear-gradient(180deg, #8feeff, #23d7ff 48%, #2393ff);
  color: #031022;
  font-weight: 700;
  box-shadow: 0 0 28px rgba(35, 215, 255, 0.22);
}

.swap-tabs button:hover,
.lp-adjust button:hover,
.swap-actions button:hover {
  border-color: rgba(35, 215, 255, 0.58);
  filter: brightness(1.08);
}

.swap-tabs button:active,
.lp-adjust button:active,
.swap-actions button:active,
.swap-flip:active {
  transform: translateY(1px) scale(0.985);
}

.swap-actions button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.swap-actions .filled.is-busy {
  background:
    linear-gradient(90deg, #8feeff, #23d7ff, #2393ff, #8feeff);
  background-size: 240% 100%;
  animation: swapButtonBusy 1.3s linear infinite;
}

.amm-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.amm-summary div {
  min-width: 0;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid rgba(213, 224, 255, 0.12);
  background:
    linear-gradient(120deg, rgba(35, 215, 255, 0.055), transparent 46%),
    rgba(2, 7, 14, 0.48);
}

.amm-summary span {
  display: block;
  color: rgba(213, 224, 255, 0.52);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  line-height: 1.2;
  text-transform: uppercase;
}

.amm-summary strong {
  display: block;
  margin-top: 8px;
  color: rgba(239, 248, 255, 0.92);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

@keyframes swapButtonBusy {
  from {
    background-position: 0% 50%;
  }

  to {
    background-position: 240% 50%;
  }
}

.swap-readout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.swap-readout div {
  min-width: 0;
  min-height: 78px;
  padding: 12px;
  border: 1px solid rgba(222, 230, 239, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent),
    linear-gradient(125deg, rgba(35, 215, 255, 0.035), transparent 42%),
    rgba(3, 6, 11, 0.58);
  border-radius: 7px;
}

.swap-readout strong {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 9px;
  color: rgba(231, 237, 246, 0.9);
  font-size: 12px;
  line-height: 1.35;
}

.lp-pair-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

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

.lp-slider {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 54px;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 12px;
  border: 1px solid rgba(213, 224, 255, 0.14);
  background:
    linear-gradient(110deg, rgba(35, 215, 255, 0.04), transparent 46%),
    rgba(1, 5, 12, 0.42);
}

.lp-slider span,
.lp-slider b {
  color: rgba(213, 224, 255, 0.56);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.lp-slider b {
  color: var(--app-accent);
  text-align: right;
}

.lp-slider input {
  accent-color: var(--app-accent);
}

.app-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 240px;
  gap: 18px;
  margin-top: 30px;
}

.app-readout {
  display: grid;
  align-content: start;
  gap: 8px;
}

.app-readout strong {
  margin-bottom: 6px;
  color: rgba(213, 224, 255, 0.46);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.app-readout div {
  padding: 14px;
}

.app-readout span {
  display: block;
  color: var(--app-accent);
  font-size: 10px;
}

.app-readout b {
  display: block;
  margin-top: 8px;
  color: rgba(231, 237, 246, 0.84);
  font-size: 13px;
  line-height: 1.25;
}

.app-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.app-panels article {
  min-height: 230px;
  padding: 22px;
  overflow: hidden;
}

.app-panels small {
  color: var(--app-accent);
  font-size: 10px;
}

.app-panels h2 {
  margin: 42px 0 0;
  color: #f0f5f8;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 0.92;
}

.app-panels p {
  margin: 18px 0 0;
  color: rgba(213, 224, 255, 0.66);
  font-size: 14px;
  line-height: 1.55;
}

@media (prefers-reduced-motion: reduce) {
  .docs-flow i,
  .docs-bg::before,
  .docs-bg::after,
  .docs-horizon,
  .docs-horizon::before,
  .docs-horizon::after,
  .docs-horizon i,
  .docs-glass-core,
  .docs-glass-core::before,
  .docs-glass-core::after,
  .docs-glass-core i,
  .docs-metal-surface::before,
  .docs-metal-surface::after,
  .docs-metal-surface i,
  .docs-surface-meter i,
  .docs-surface-meter i::after,
  .docs-hero-panel::after,
  .docs-hero-panel__liquid,
  .docs-hero-panel__orbit i,
  .docs-hero-panel__scan,
  .mint-console::after,
  .mint-console__liquid,
  .docs-module::before,
  .docs-module::after,
  .docs-module__body::before,
  .docs-readout::after,
  .docs-module__rail::after {
    animation: none;
  }

  .docs-bg {
    transform: none;
  }
}

.left-rail {
  position: absolute;
  z-index: 12;
  top: 50%;
  left: 40px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.left-rail button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 114px;
  background: transparent;
  color: rgba(213, 224, 255, 0.28);
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
}

.left-rail span,
.kicker span {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: currentColor;
}

.left-rail .active {
  color: #d5e0ff;
}

.hero-copy {
  position: absolute;
  z-index: 12;
  left: 50%;
  bottom: clamp(118px, 21vh, 220px);
  width: min(820px, calc(100vw - 84px));
  transform: translateX(-50%);
  text-align: center;
  pointer-events: auto;
}

.kicker {
  display: none;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 3.05vw, 50px);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #f2f7ff;
  text-wrap: balance;
  text-shadow:
    0 0 18px rgba(213, 224, 255, 0.16),
    0 0 46px rgba(22, 210, 255, 0.1),
    0 2px 18px rgba(0, 0, 0, 0.6);
}

body[data-section='0'] .hero-copy {
  bottom: clamp(130px, 25vh, 260px);
  width: min(920px, calc(100vw - 48px));
}

body[data-section='0'] .hero-copy h1 {
  margin-bottom: 20px;
  font-size: clamp(52px, 7vw, 104px);
  line-height: 0.96;
  text-shadow:
    0 0 24px rgba(238, 250, 255, 0.22),
    0 0 74px rgba(50, 219, 255, 0.18),
    0 6px 28px rgba(0, 0, 0, 0.72);
}

body[data-section='0'] .hero-copy p {
  max-width: min(560px, 78vw);
  color: rgba(232, 244, 255, 0.72);
}

.hero-copy p {
  margin: 0 auto;
  max-width: min(650px, 46vw);
  color: rgba(226, 238, 255, 0.6);
  font-size: clamp(12px, 0.86vw, 14px);
  line-height: 1.55;
  font-weight: 300;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.72);
}

.copy-word {
  display: inline-block;
  white-space: nowrap;
}

.copy-char {
  display: inline-block;
  opacity: 0;
  animation: copy-char-in 0.42s cubic-bezier(0.2, 0, 0, 1) forwards;
  animation-delay: var(--d, 0s);
}

.copy-line {
  display: inline-block;
  opacity: 0;
  transform: translateY(2.5rem);
  animation: copy-line-in 0.95s cubic-bezier(0.2, 0, 0, 1) forwards;
  animation-delay: var(--d, 0.2s);
}

.hero-copy ul {
  display: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 18px auto 0;
  padding: 0;
  list-style: none;
}

.hero-copy li {
  opacity: 0;
  animation: copy-line-in 0.8s cubic-bezier(0.2, 0, 0, 1) forwards;
  animation-delay: var(--d, 0.4s);
  min-height: 24px;
  padding: 7px 11px 6px;
  border: 1px solid rgba(116, 239, 255, 0.13);
  background: rgba(2, 18, 42, 0.34);
  color: rgba(232, 248, 255, 0.76);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  line-height: 1.1;
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.hero-copy a {
  margin-top: 18px;
  min-height: 34px;
  color: #f5fbff;
  background: rgba(3, 16, 36, 0.42);
  opacity: 0;
  transform: translateY(2.5rem);
  animation: copy-line-in 1s cubic-bezier(0.2, 0, 0, 1) 0.58s forwards;
}

.bottom-bar {
  opacity: 0;
  pointer-events: none;
}

.left-rail {
  opacity: 0;
}

.left-rail:hover,
.left-rail:focus-within {
  opacity: 0.82;
}

@keyframes copy-char-in {
  from {
    opacity: 0;
    filter: blur(3px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes copy-line-in {
  from {
    opacity: 0;
    transform: translateY(2.5rem);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.hero-copy a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  min-height: 34px;
  padding: 0 18px;
  text-decoration: none;
  border: 1px solid rgba(213, 224, 255, 0.18);
  background: rgba(1, 9, 24, 0.28);
  font-size: 10px;
}

body[data-section='1'] .hero-copy,
body[data-section='2'] .hero-copy,
body[data-section='3'] .hero-copy {
  opacity: 1;
}

.districts {
  position: absolute;
  z-index: 11;
  inset: 0;
  pointer-events: none;
  display: none;
}

body[data-section='4'] .districts,
body[data-section='5'] .districts {
  opacity: 0;
}

.districts div {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 22px;
  padding: 0 0 0 28px;
  background: transparent;
  color: rgba(225, 236, 255, 0.76);
  opacity: 0;
  transform: translate3d(-999px, -999px, 0);
  transition: opacity 0.25s ease;
  will-change: transform, opacity;
}

.districts b,
.districts span {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.districts b {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 24px;
  margin: 0;
  padding: 0;
  background: rgba(213, 224, 255, 0.88);
  color: #020a19;
}

.districts span {
  font-size: 11px;
  color: rgba(225, 236, 255, 0.68);
}

.districts div::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  border: 1px solid rgba(213, 224, 255, 0.72);
  background: rgba(2, 10, 25, 0.72);
  transform: translate(-50%, -50%) rotate(45deg);
}

.districts div::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, rgba(213, 224, 255, 0.5), transparent);
  transform: translateX(2px);
}

.bottom-bar {
  position: absolute;
  z-index: 12;
  left: 30px;
  right: 30px;
  bottom: 30px;
  height: 54px;
  display: grid;
  grid-template-columns: 168px 1fr 168px;
  border: 1px solid rgba(213, 224, 255, 0.08);
  border-top-color: rgba(213, 224, 255, 0.11);
  border-radius: 0 0 13px 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.bottom-bar button,
.bottom-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  text-decoration: none;
  border-left: 1px solid rgba(213, 224, 255, 0.08);
  border-right: 1px solid rgba(213, 224, 255, 0.08);
  color: rgba(213, 224, 255, 0.76);
}

.launch-panel {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.launch-panel.open {
  opacity: 1;
  pointer-events: auto;
}

.launch-panel__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 5, 16, 0.68);
  backdrop-filter: blur(14px);
}

.launch-panel__card {
  position: relative;
  width: min(640px, calc(100vw - 38px));
  max-height: min(760px, calc(100vh - 38px));
  overflow: auto;
  padding: 30px;
  border: 1px solid rgba(231, 237, 246, 0.14);
  background:
    linear-gradient(135deg, rgba(231, 237, 246, 0.08), rgba(43, 215, 255, 0.03) 38%, rgba(3, 10, 24, 0.94) 100%),
    rgba(3, 10, 24, 0.92);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  color: #e7edf6;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.launch-panel__close {
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(231, 237, 246, 0.12);
  background: rgba(231, 237, 246, 0.045);
  color: rgba(231, 237, 246, 0.72);
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.launch-panel__eyebrow,
.launch-grid span,
.launch-note {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
}

.launch-panel__eyebrow {
  margin-bottom: 12px;
  color: rgba(43, 215, 255, 0.72);
  font-size: 10px;
}

.launch-panel h2 {
  margin: 0;
  max-width: 420px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 0.95;
  text-transform: uppercase;
}

.launch-panel__copy {
  max-width: 470px;
  margin: 18px 0 0;
  color: rgba(231, 237, 246, 0.68);
  font-size: 13px;
  line-height: 1.6;
}

.wallet-status {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 5px 12px;
  align-items: center;
  margin-top: 24px;
  padding: 15px;
  border: 1px solid rgba(231, 237, 246, 0.12);
  background: rgba(231, 237, 246, 0.04);
}

.wallet-status span {
  grid-row: span 2;
  width: 9px;
  height: 9px;
  background: rgba(231, 237, 246, 0.34);
}

.wallet-status span[data-state='connected'] {
  background: #39e8c2;
  box-shadow: 0 0 18px rgba(57, 232, 194, 0.58);
}

.wallet-status span[data-state='warning'] {
  background: #e2b669;
  box-shadow: 0 0 18px rgba(226, 182, 105, 0.45);
}

.wallet-status strong {
  font-size: 14px;
  text-transform: uppercase;
}

.wallet-status small {
  color: rgba(231, 237, 246, 0.58);
  font-size: 12px;
  line-height: 1.45;
}

.launch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.launch-grid article {
  min-height: 76px;
  padding: 14px;
  border: 1px solid rgba(231, 237, 246, 0.1);
  background: rgba(2, 8, 19, 0.52);
}

.launch-grid span {
  display: block;
  color: rgba(231, 237, 246, 0.45);
  font-size: 10px;
}

.launch-grid strong {
  display: block;
  margin-top: 9px;
  font-size: 15px;
  line-height: 1.15;
}

.launch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.launch-actions button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(231, 237, 246, 0.14);
  background: rgba(231, 237, 246, 0.055);
  color: #e7edf6;
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.launch-actions .filled {
  background: #e7edf6;
  color: #020a19;
}

.wallet-picker {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.wallet-picker.open {
  pointer-events: auto;
  opacity: 1;
}

.wallet-picker__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 5, 15, 0.42);
  backdrop-filter: blur(6px);
}

.wallet-picker__card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(300px, 430px);
  width: min(92vw, 900px);
  min-height: 560px;
  overflow: hidden;
  border-radius: 24px;
  background: #fbfbfc;
  color: #111827;
  box-shadow: 0 32px 110px rgba(0, 0, 0, 0.42);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.18s ease;
}

.wallet-picker.open .wallet-picker__card {
  transform: translateY(0) scale(1);
}

.wallet-picker__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.wallet-picker__list,
.wallet-picker__info {
  padding: 28px 30px;
}

.wallet-picker__list {
  border-right: 1px solid #edf0f4;
}

.wallet-picker h3 {
  margin: 0 0 24px;
  color: #111827;
  font-size: 20px;
  line-height: 1.2;
}

.wallet-picker__group-label {
  margin: 18px 0 9px;
  color: #4169e1;
  font-size: 13px;
  font-weight: 700;
}

.wallet-picker__group:empty::before {
  content: 'No wallets detected';
  display: block;
  padding: 10px 0;
  color: #9ca3af;
  font-size: 14px;
}

.wallet-option {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 7px 0;
  background: transparent;
  color: #111827;
  cursor: pointer;
  text-align: left;
}

.wallet-option:hover span:not(.wallet-option__icon) {
  color: #2443ff;
}

.wallet-option__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.wallet-option__icon[data-wallet-icon='okx'] {
  background: #050505;
}

.wallet-option__icon[data-wallet-icon='phantom'] {
  background: linear-gradient(135deg, #ab9ff2, #6d59d3);
}

.wallet-option__icon[data-wallet-icon='metamask'] {
  background: linear-gradient(135deg, #f6851b, #e2761b);
}

.wallet-option__icon[data-wallet-icon='rainbow'] {
  background: linear-gradient(135deg, #16b8ff, #7c3aed, #f97316);
}

.wallet-option__icon[data-wallet-icon='coinbase'] {
  background: #315cf5;
}

.wallet-option__icon[data-wallet-icon='walletconnect'] {
  background: #3396ff;
}

.wallet-option__icon[data-wallet-icon='trust'] {
  background: #3375bb;
}

.wallet-option__icon[data-wallet-icon='base'] {
  background: #083df0;
}

.wallet-option span:not(.wallet-option__icon) {
  font-size: 16px;
  font-weight: 800;
}

.wallet-option small {
  color: #6b7280;
  font-size: 11px;
  font-weight: 700;
}

.wallet-picker__info {
  display: grid;
  align-content: center;
  gap: 32px;
  padding-inline: clamp(34px, 6vw, 88px);
}

.wallet-picker__info h3 {
  margin-bottom: 22px;
  text-align: center;
}

.wallet-picker__info article {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  align-items: start;
}

.wallet-picker__illustration {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 13px;
  background: linear-gradient(135deg, #c7d2fe, #fbcfe8);
  color: #1e1b4b;
  font-size: 22px;
}

.wallet-picker__illustration.alt {
  background: linear-gradient(135deg, #bef264, #67e8f9, #f9a8d4);
}

.wallet-picker__info strong {
  display: block;
  margin-bottom: 6px;
  color: #111827;
  font-size: 16px;
}

.wallet-picker__info p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.45;
}

.wallet-picker__info a {
  justify-self: center;
  margin-top: 10px;
  color: #2563eb;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.launch-actions i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  background:
    linear-gradient(currentColor 0 0) 0 0 / 3px 3px no-repeat,
    linear-gradient(currentColor 0 0) 4px 0 / 3px 3px no-repeat,
    linear-gradient(currentColor 0 0) 0 4px / 3px 3px no-repeat,
    linear-gradient(currentColor 0 0) 4px 4px / 3px 3px no-repeat;
}

.launch-note {
  margin-top: 16px;
  color: rgba(231, 237, 246, 0.52);
  font-size: 11px;
  line-height: 1.55;
}

.scroll-status {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.scroll-status i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--p, 0%);
  background: rgba(213, 224, 255, 0.03);
  transition: width 0.4s ease;
}

.scroll-status span {
  position: relative;
  z-index: 1;
}

.scroll-space section {
  min-height: 100vh;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 38%, rgba(87, 143, 255, 0.18), transparent 30%),
    linear-gradient(180deg, #061027, #020a19 62%, #020713);
  color: #d5e0ff;
  transition: opacity 0.75s ease, visibility 0.75s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-inner {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.loader-percent,
.loader-copy {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.pixel-logo {
  display: flex;
  gap: 6px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.pixel-logo span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(213, 224, 255, 0.28);
  background: rgba(213, 224, 255, 0.035);
}

.webgl {
  transition: opacity 0.35s ease;
}

@media (max-width: 900px) {
  .frame {
    inset: 12px;
  }

  .corner {
    width: 9px;
    height: 9px;
  }

  .nav {
    top: 20px;
    left: 34px;
    right: 18px;
    opacity: 1;
  }

  .nav nav,
  .districts {
    display: none;
  }

  .brand .brand-word {
    width: auto;
    height: auto;
    display: block;
    background: transparent;
    clip-path: none;
    font-size: 30px;
    transform: none;
  }

  .brand small {
    display: none;
  }

  .brand strong .glyph {
    display: none;
  }

  .nav-actions button {
    min-height: 49px;
    padding: 0 18px;
    font-size: 12px;
  }

  .nav-actions > button:first-child {
    display: none;
  }

  .left-rail {
    display: none;
  }

  .hero-copy {
    left: 50%;
    right: auto;
    bottom: clamp(76px, 15vh, 120px);
    width: min(84vw, 520px);
    transform: translateX(-50%);
    text-align: center;
    animation: none;
  }

  .kicker {
    display: flex;
    font-size: 12px;
    margin-bottom: 12px;
  }

  .hero-copy h1 {
    font-size: clamp(30px, 8.2vw, 42px);
    line-height: 1;
  }

  .hero-copy p {
    max-width: none;
    font-size: 14px;
    line-height: 1.55;
  }

  .hero-copy ul {
    justify-content: flex-start;
  }

  .hero-copy a {
    min-height: 38px;
    padding: 0 18px;
    font-size: 12px;
  }

  .bottom-bar {
    left: 10px;
    right: 10px;
    bottom: 12px;
    grid-template-columns: 72px 1fr 72px;
    height: 72px;
  }

  .bottom-bar button,
  .bottom-bar a {
    font-size: 0;
  }

  .bottom-bar button::before {
    content: 'Supply';
    font-size: 0;
  }

  .bottom-bar a::before {
    content: 'Access';
    font-size: 0;
  }

  .scroll-status span {
    font-size: 0;
  }

  .scroll-status span::before {
    content: 'Next';
    font-size: 12px;
    letter-spacing: 0.14em;
  }

  .terrain-depth {
    background:
      radial-gradient(ellipse at 50% 46%, rgba(34, 174, 255, 0.1), transparent 20%),
      linear-gradient(155deg, transparent 0 18%, rgba(0, 3, 12, 0.88) 35%, transparent 54%),
      linear-gradient(24deg, transparent 0 50%, rgba(0, 4, 15, 0.88) 66%, rgba(0, 3, 12, 0.96) 100%),
      linear-gradient(180deg, rgba(1, 5, 16, 0.28), transparent 50%, rgba(0, 3, 12, 0.48));
  }

  body[data-section='0'] .webgl {
    opacity: 0.56;
  }

  .origin-cube-ghost span {
    left: 50%;
    top: -2vh;
    width: 94vw;
    height: 38vh;
    transform: translateX(-48%) perspective(700px) rotateX(1deg) rotateY(-8deg) skewY(-1deg);
  }

  .origin-trails i {
    border-width: 6px;
  }

  body[data-section='1'] .origin-trails i:nth-child(1),
  body[data-section='2'] .origin-trails i:nth-child(1),
  body[data-section='3'] .origin-trails i:nth-child(1) {
    left: -20vw;
    top: 2vh;
    width: 52vw;
    height: 88vh;
  }

  .origin-road-grid::before {
    height: 38vh;
  }

  .poster-layer {
    background-position: center;
    filter: saturate(1.05) contrast(1.1) brightness(0.82);
  }

  body[data-section='0'] .poster-layer {
    opacity: 0.28;
    -webkit-mask-image: radial-gradient(ellipse 48% 36% at 50% 54%, transparent 0 46%, rgba(0, 0, 0, 0.12) 62%, rgba(0, 0, 0, 0.52) 78%, #000 100%);
    mask-image: radial-gradient(ellipse 48% 36% at 50% 54%, transparent 0 46%, rgba(0, 0, 0, 0.12) 62%, rgba(0, 0, 0, 0.52) 78%, #000 100%);
  }

  .launch-panel {
    padding: 14px;
    place-items: end center;
  }

  .launch-panel__card {
    width: 100%;
    max-height: calc(100vh - 28px);
    padding: 24px 20px;
  }

  .launch-panel__close {
    top: 14px;
    right: 14px;
  }

  .launch-panel h2 {
    padding-right: 70px;
    font-size: clamp(34px, 10vw, 46px);
  }

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

  .launch-actions button {
    width: 100%;
  }

  .wallet-picker {
    padding: 10px;
    place-items: end center;
  }

  .wallet-picker__card {
    grid-template-columns: 1fr;
    width: 100%;
    min-height: 0;
    max-height: calc(100vh - 20px);
    overflow-y: auto;
    border-radius: 18px;
  }

  .wallet-picker__list,
  .wallet-picker__info {
    padding: 22px;
  }

  .wallet-picker__list {
    border-right: 0;
    border-bottom: 1px solid #edf0f4;
  }

  .wallet-picker__info {
    align-content: start;
    gap: 18px;
  }

  .wallet-picker__info h3 {
    text-align: left;
  }
}

@media (max-height: 620px) {
  .hero-copy {
    bottom: 58px;
  }

  .hero-copy h1 {
    margin-bottom: 10px;
    font-size: clamp(32px, 2.6vw, 46px);
  }

  .hero-copy p {
    font-size: 13px;
    line-height: 1.45;
  }
}

@media (max-width: 1060px) {
  .docs-content {
    grid-template-columns: 1fr;
  }

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

  .app-hero {
    min-height: 0;
  }

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

  .app-panels {
    grid-template-columns: 1fr;
  }

  .docs-index,
  .docs-checklist {
    position: relative;
    top: auto;
  }

  .docs-index {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    align-items: center;
    max-height: none;
  }

  .docs-index strong {
    width: 100%;
    margin-bottom: 0;
  }
}

@media (max-width: 760px) {
  .docs-page {
    padding: 118px 20px 34px;
  }

  .docs-bg::before {
    top: 46vh;
    left: -72vw;
    right: -72vw;
    height: 62vh;
    opacity: 0.6;
  }

  .docs-scene {
    opacity: 0.72;
  }

  .docs-horizon {
    left: -12vw;
    right: -18vw;
    top: 30vh;
  }

  .docs-glass-core {
    top: 112px;
    right: -52px;
    width: 230px;
    opacity: 0.18;
  }

  .docs-flow {
    opacity: 0.16;
  }

  .docs-metal-surface {
    inset: 50vh 0 auto;
    opacity: 0.22;
  }

  .docs-nav {
    top: 26px;
    left: 20px;
    right: 20px;
  }

  .docs-nav nav {
    display: none;
  }

  .docs-hero {
    grid-template-columns: 1fr;
    margin-bottom: 26px;
  }

  .app-hero {
    gap: 26px;
  }

  .swap-workspace {
    min-height: calc(100vh - 142px);
    padding-block: 10px 28px;
  }

  .swap-console {
    padding: 16px;
  }

  .swap-title h1 {
    font-size: 34px;
  }

  .app-hero__copy h1 {
    font-size: clamp(64px, 22vw, 112px);
  }

  .app-hero__copy > strong {
    font-size: 21px;
    line-height: 1.14;
  }

  .app-hero__copy p {
    font-size: 14px;
  }

  .app-hero__actions button {
    flex: 1 1 160px;
    min-height: 50px;
  }

  .mint-console {
    min-height: 460px;
    padding: 18px;
  }

  .mint-console__core {
    min-height: 210px;
  }

  .mint-console__metrics {
    grid-template-columns: 1fr;
  }

  .swap-actions,
  .amm-summary,
  .swap-readout,
  .lp-pair-row {
    grid-template-columns: 1fr;
  }

  .swap-tabs,
  .lp-adjust {
    gap: 6px;
  }

  .swap-tabs button,
  .lp-adjust button {
    min-height: 38px;
    font-size: 9px;
  }

  .lp-slider {
    grid-template-columns: 1fr 54px;
    padding: 10px 12px;
  }

  .lp-slider span {
    grid-column: 1 / -1;
  }

  .swap-percent {
    grid-template-columns: 1fr 54px;
  }

  .swap-percent span {
    grid-column: 1 / -1;
  }

  .swap-percent div {
    gap: 6px;
  }

  .swap-field div {
    grid-template-columns: minmax(0, 1fr) 96px;
  }

  .swap-field input {
    font-size: 22px;
  }

  .app-grid {
    gap: 14px;
    margin-top: 18px;
  }

  .app-panels article {
    min-height: 190px;
  }

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

  .docs-hero-panel {
    padding: 18px;
    min-height: 300px;
  }

  .docs-hero-panel strong {
    font-size: 28px;
  }

  .docs-hero h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .docs-hero p,
  .docs-card p {
    font-size: 14px;
  }

  .docs-card {
    padding: 20px;
  }

  .docs-module {
    grid-template-columns: 1fr;
    padding: 0;
    transform: none;
  }

  .docs-module:nth-child(3n + 2),
  .docs-module:nth-child(4n) {
    transform: none;
  }

  .docs-module__rail {
    min-height: auto;
    flex-direction: row;
    align-items: center;
    padding: 14px 18px;
    border-right: 0;
    border-bottom: 1px solid rgba(231, 237, 246, 0.1);
  }

  .docs-module__rail b {
    writing-mode: horizontal-tb;
    transform: none;
  }

  .docs-module__body {
    padding: 20px;
  }

  .docs-module--lead .docs-module__body {
    padding: 24px 20px;
  }

  .docs-module__head,
  .docs-module--matrix .docs-module__head {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .docs-module__signal {
    grid-template-columns: 1fr auto auto;
    align-items: end;
    min-height: auto;
    padding: 12px 0 0;
    border-top: 1px solid rgba(213, 224, 255, 0.1);
    border-left: 0;
  }

  .docs-module--lead .docs-module__signal {
    position: relative;
    top: auto;
    right: auto;
    width: auto;
    min-height: auto;
    background: transparent;
    backdrop-filter: none;
  }

  .docs-module__signal b {
    font-size: 24px;
  }

  .docs-card h2 {
    font-size: 24px;
  }

  .docs-module h2,
  .docs-module--lead h2,
  .docs-module--summary h2 {
    font-size: clamp(30px, 10vw, 46px);
    line-height: 0.9;
  }

  .docs-module__lead,
  .docs-module--lead .docs-module__lead {
    font-size: 15px;
    line-height: 1.55;
  }

  .docs-module--lead .docs-module__lead,
  .docs-module--lead .docs-module__support {
    width: 100%;
  }

  .docs-card ul,
  .docs-table div,
  .docs-module ul,
  .docs-lab {
    grid-template-columns: 1fr;
  }

  .docs-lab__primary {
    min-height: 150px;
    padding: 18px;
  }

  .docs-lab__primary strong {
    font-size: 30px;
    white-space: normal;
  }

  .docs-lab__primary--dense strong {
    font-size: 22px;
    line-height: 1.12;
  }

  .docs-lab__steps {
    grid-template-columns: 1fr;
  }

  .docs-module ul {
    display: grid;
    grid-template-columns: 1fr;
  }

  .docs-equation {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .docs-table {
    grid-template-columns: 1fr;
  }

  .docs-equation__line {
    font-size: 22px;
    min-width: 0;
    white-space: normal;
  }

.docs-equation--dense .docs-equation__line {
    font-size: 18px;
  }
}

/* Keep the tuned always-on nav brightness in source so deploys do not regress it. */
html body .nav,
html body .docs-nav {
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

html body .nav *,
html body .docs-nav * {
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

html body .brand-word,
html body .docs-nav .brand-word {
  color: #eef8ff !important;
  -webkit-text-fill-color: #eef8ff !important;
  text-shadow: 0 0 8px rgba(78, 221, 202, 0.2), 0 0 18px rgba(46, 178, 255, 0.1) !important;
}

html body .brand small,
html body .docs-nav .brand small {
  color: rgba(231, 237, 246, 0.62) !important;
  -webkit-text-fill-color: rgba(231, 237, 246, 0.62) !important;
}

html body .nav nav a,
html body .docs-nav nav a,
html body .nav nav a:hover,
html body .docs-nav nav a:hover,
html body .nav nav a:focus,
html body .docs-nav nav a:focus,
html body .nav nav a:active,
html body .docs-nav nav a:active,
html body .nav nav a[aria-current='page'],
html body .docs-nav nav a[aria-current='page'] {
  color: #edf7ff !important;
  -webkit-text-fill-color: #edf7ff !important;
  text-shadow: 0 0 7px rgba(128, 236, 255, 0.16) !important;
}

html body .nav-actions,
html body .docs-nav .nav-actions {
  filter: drop-shadow(0 0 10px rgba(18, 39, 82, 0.38)) !important;
}

html body .nav-actions button,
html body .nav-actions .nav-button,
html body .docs-nav .nav-actions button,
html body .docs-nav .nav-actions .nav-button {
  border-color: rgba(128, 236, 255, 0.18) !important;
  background: rgba(8, 31, 63, 0.32) !important;
  color: #eaf6ff !important;
  -webkit-text-fill-color: #eaf6ff !important;
  box-shadow: inset 0 0 12px rgba(47, 217, 255, 0.055), 0 0 16px rgba(16, 150, 255, 0.12) !important;
}

html body .nav-actions .filled,
html body .docs-nav .nav-actions .filled {
  background: #eef8ff !important;
  color: #04101f !important;
  -webkit-text-fill-color: #04101f !important;
  box-shadow: 0 0 18px rgba(231, 237, 246, 0.16) !important;
}

@media (max-width: 900px) and (max-height: 700px) {
  .hero-copy {
    bottom: 92px;
  }

  .hero-copy h1 {
    font-size: clamp(24px, 7vw, 30px);
  }
}

@media (max-width: 760px) {
  .stake-console {
    min-height: 0;
    gap: 16px;
    padding: 0;
  }

  .stake-workspace {
    min-height: calc(100vh - 142px);
    padding-block: 10px 28px;
  }

  .stake-overview,
  .stake-pools,
  .stake-card__stats,
  .stake-actions {
    grid-template-columns: 1fr;
  }

  .stake-card {
    padding: 14px;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  }

  .stake-card__head {
    flex-direction: column;
  }

  .stake-card h2 {
    font-size: 30px;
  }
}
