:root {
  color-scheme: dark;
  --black: #030106;
  --white: #f4f2ee;
  --pink: #ff19c8;
  --lime: #b7ff00;
  --blue: #0094ff;
  --purple: #8e24ff;
  --grid: rgba(176, 0, 255, 0.34);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(138, 0, 255, 0.2), transparent 36rem),
    #000;
  color: var(--white);
  display: grid;
  place-items: start center;
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-x: hidden;
}

button,
a {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.phone-stage {
  position: relative;
  width: min(100vw, 480px);
  height: 100vh;
  height: 100dvh;
  height: 100lvh;
  min-height: 844px;
  overflow: hidden;
  isolation: isolate;
  background: var(--black);
  box-shadow: 0 0 0 1px rgba(255, 25, 200, 0.18), 0 0 80px rgba(0, 0, 0, 0.9);
  container-type: inline-size;
}

.background,
.interference,
.phone-stage::before,
.phone-stage::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.background {
  z-index: -4;
  background-image: linear-gradient(rgba(3, 1, 6, 0.1), rgba(3, 1, 6, 0.12)), url("./assets/background.png");
  background-size: cover;
  background-position: center top;
  transform: scale(1.035);
  filter: contrast(1.16) saturate(1.16) brightness(0.9);
}

.interference {
  z-index: 40;
  opacity: 0.24;
  mix-blend-mode: screen;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(0, 145, 255, 0.12) 0 1px, transparent 1px 9px);
  animation: scan-drift 5s linear infinite;
}

.phone-stage::before {
  content: "";
  z-index: 38;
  background:
    linear-gradient(90deg, transparent 0 46%, rgba(255, 0, 208, 0.18) 47%, transparent 48% 100%),
    linear-gradient(0deg, transparent 0 72%, rgba(0, 137, 255, 0.18) 73%, transparent 74% 100%);
  opacity: 0.3;
  mix-blend-mode: screen;
  animation: glitch-slice 3.8s steps(1, end) infinite;
}

.phone-stage::after {
  content: "";
  z-index: 39;
  background:
    radial-gradient(circle at 50% 36%, transparent 0 38%, rgba(0, 0, 0, 0.42) 78%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.36), transparent 18%, transparent 78%, rgba(0, 0, 0, 0.48));
}

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

.topbar {
  position: absolute;
  z-index: 20;
  top: max(14px, env(safe-area-inset-top));
  left: 18px;
  right: 18px;
  height: 78px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.brand {
  display: grid;
  grid-template-columns: 52px auto;
  gap: 9px;
  align-items: center;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.28));
}

.brand-orbit,
.mini-globe {
  position: relative;
  display: inline-block;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.brand-orbit {
  width: 52px;
  height: 52px;
}

.brand-orbit::before,
.brand-orbit::after,
.mini-globe::before,
.mini-globe::after {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.82;
}

.brand-orbit::before,
.mini-globe::before {
  transform: scaleX(0.35);
}

.brand-orbit::after,
.mini-globe::after {
  transform: scaleY(0.35);
}

.brand-copy {
  display: grid;
  gap: 0;
  font-weight: 900;
  font-size: 20px;
  line-height: 0.82;
  text-transform: uppercase;
}

.top-stamp {
  position: absolute;
  top: -6px;
  left: 42%;
  width: 136px;
  z-index: 2;
  rotate: -5deg;
}

.hamburger {
  width: 42px;
  height: 42px;
  padding: 7px 4px;
  display: grid;
  align-content: center;
  gap: 8px;
  color: var(--white);
  background: transparent;
  border-radius: 2px;
  transition: transform 160ms ease, color 160ms ease;
}

.hamburger span {
  display: block;
  height: 4px;
  background: currentColor;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.62);
}

.hamburger:active {
  transform: scale(0.93);
}

.sysline {
  position: absolute;
  z-index: 18;
  top: calc(max(14px, env(safe-area-inset-top)) + 70px);
  left: 24px;
  right: 24px;
  padding: 9px 0 9px 8px;
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 14px;
  color: var(--white);
  border-top: 1px solid rgba(155, 0, 255, 0.56);
  border-bottom: 1px solid rgba(155, 0, 255, 0.24);
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.42);
}

.led {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 14px rgba(183, 255, 0, 0.82);
  animation: blink 1.9s steps(2, end) infinite;
}

.waveform {
  position: absolute;
  z-index: 17;
  top: 115px;
  right: 67px;
  width: 124px;
  height: 32px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--pink);
  opacity: 0.8;
}

.waveform span {
  width: 3px;
  height: 8px;
  background: currentColor;
  box-shadow: 0 0 14px currentColor;
  animation: wave 800ms ease-in-out infinite alternate;
}

.waveform span:nth-child(2) { animation-delay: 80ms; height: 15px; }
.waveform span:nth-child(3) { animation-delay: 140ms; height: 24px; }
.waveform span:nth-child(4) { animation-delay: 40ms; height: 13px; }
.waveform span:nth-child(5) { animation-delay: 120ms; height: 30px; }
.waveform span:nth-child(6) { animation-delay: 210ms; height: 10px; }

.hero {
  position: absolute;
  z-index: 12;
  top: 132px;
  left: 0;
  right: 0;
  min-height: 345px;
}

.hero-logo {
  position: absolute;
  top: 14px;
  left: 23px;
  width: 70%;
  max-width: 350px;
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.5)) drop-shadow(0 0 22px rgba(255, 25, 200, 0.2));
  transform: translate3d(var(--px, 0), var(--py, 0), 0);
}

.hero-copy {
  position: absolute;
  top: 260px;
  left: 31px;
  width: 210px;
  margin: 0;
  font-size: 17px;
  line-height: 1.32;
  color: var(--white);
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.34);
}

mark {
  color: var(--pink);
  background: transparent;
}

mark:nth-of-type(2) {
  color: var(--lime);
}

.hero-actions {
  position: absolute;
  top: 392px;
  left: 22px;
  width: min(84%, 346px);
  display: grid;
  gap: 10px;
}

.primary-cta,
.secondary-cta,
.dock-command {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 22px;
  text-transform: uppercase;
  letter-spacing: 0;
  border-radius: 2px;
  transition: transform 140ms ease, filter 140ms ease, background 140ms ease;
}

.primary-cta {
  background: rgba(255, 25, 200, 0.9);
  color: #080008;
  border: 2px solid #ff77dc;
  box-shadow: 0 0 0 1px rgba(255, 25, 200, 0.42), 0 0 24px rgba(255, 25, 200, 0.44);
  font-weight: 900;
  font-size: 18px;
}

.secondary-cta {
  width: 79%;
  min-height: 47px;
  background: rgba(7, 9, 2, 0.58);
  color: var(--lime);
  border: 1px solid var(--lime);
  box-shadow: 0 0 18px rgba(183, 255, 0, 0.16);
  font-weight: 900;
  font-size: 16px;
}

.primary-cta:active,
.secondary-cta:active,
.dock-command:active,
.drop-card:active {
  transform: translateY(2px) scale(0.99);
}

.primary-cta:hover,
.secondary-cta:hover,
.dock-command:hover,
.drop-card:hover {
  filter: saturate(1.3) brightness(1.16);
}

.arrow {
  font-size: 28px;
  line-height: 1;
}

.mini-globe {
  width: 24px;
  height: 24px;
  color: currentColor;
}

.terminal {
  position: absolute;
  z-index: 15;
  left: 50px;
  top: 614px;
  width: 255px;
  min-height: 103px;
  padding: 12px 14px 10px;
  background: rgba(1, 10, 29, 0.68);
  border: 1px solid rgba(0, 148, 255, 0.24);
  box-shadow: inset 0 0 26px rgba(0, 0, 0, 0.78), 0 0 20px rgba(0, 148, 255, 0.12);
  color: var(--blue);
  text-transform: uppercase;
  font-size: 12px;
  line-height: 1.25;
}

.terminal p {
  margin: 0;
}

.meter {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 6px;
}

.meter span {
  min-width: 42px;
  font-size: 18px;
}

.meter i {
  display: block;
  width: 8px;
  height: 14px;
  background: var(--blue);
  opacity: calc(0.32 + var(--i) * 0.075);
  animation: meter-flicker 900ms steps(2, end) infinite;
  animation-delay: calc(var(--i) * 64ms);
}

.sticker,
.asset {
  position: absolute;
  display: block;
  height: auto;
  z-index: 9;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: none;
  transform:
    translate3d(var(--drag-x, 0), var(--drag-y, 0), 0)
    translate3d(var(--px, 0), var(--py, 0), 0)
    rotate(var(--rot, 0deg))
    scale(var(--scale, 1));
  transform-origin: center center;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.74));
  transition: filter 130ms ease;
}

.asset:hover,
.sticker:hover {
  filter: drop-shadow(0 0 12px rgba(255, 25, 200, 0.54)) drop-shadow(0 4px 4px rgba(0, 0, 0, 0.74));
}

.asset.is-dragging,
.sticker.is-dragging {
  z-index: 35;
  filter: drop-shadow(0 0 18px rgba(183, 255, 0, 0.52)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.8));
}

.cd {
  top: 223px;
  right: -68px;
  width: 238px;
  z-index: 7;
  --rot: 8deg;
}

.chrome {
  top: 315px;
  right: -76px;
  width: 293px;
  z-index: 11;
  --rot: -3deg;
}

.bubble {
  top: 168px;
  right: 120px;
  width: 74px;
  z-index: 14;
}

.no-signal {
  top: 170px;
  right: 28px;
  width: 94px;
  z-index: 14;
  --rot: 9deg;
}

.phone {
  left: -33px;
  top: 548px;
  width: 86px;
  z-index: 8;
  --rot: -14deg;
}

.wire-globe {
  left: 152px;
  top: 575px;
  width: 114px;
  z-index: 8;
}

.error-dialog {
  left: 67px;
  top: 648px;
  width: 265px;
  z-index: 17;
  --rot: -4deg;
}

.mp3 {
  left: 8px;
  top: 764px;
  width: 258px;
  z-index: 16;
  --rot: -2deg;
}

.skull {
  left: 10px;
  bottom: 75px;
  width: 128px;
  z-index: 13;
  --rot: -7deg;
}

.ticket {
  left: 177px;
  top: 788px;
  width: 134px;
  z-index: 18;
  --rot: 1deg;
}

.meltdown {
  right: 86px;
  top: 594px;
  width: 139px;
  z-index: 20;
  --rot: -10deg;
}

.monitor-eye {
  right: -5px;
  top: 628px;
  width: 131px;
  z-index: 19;
  --rot: 5deg;
}

.monitor-smile {
  right: 80px;
  top: 720px;
  width: 114px;
  z-index: 16;
  --rot: 4deg;
}

.monitor-question {
  right: 12px;
  top: 738px;
  width: 125px;
  z-index: 15;
  --rot: -3deg;
}

.dont-trust {
  right: 6px;
  top: 766px;
  width: 84px;
  z-index: 22;
  --rot: 2deg;
}

.hand {
  right: 115px;
  top: 828px;
  width: 94px;
  z-index: 18;
  --rot: -12deg;
}

.enter-void {
  right: 84px;
  top: 824px;
  width: 66px;
  z-index: 20;
  --rot: -10deg;
}

.drip-smile {
  right: 42px;
  top: 276px;
  width: 52px;
  z-index: 13;
  --rot: 8deg;
}

.drop-grid {
  position: absolute;
  z-index: 21;
  left: 16px;
  right: 16px;
  bottom: 82px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.drop-card {
  min-width: 0;
  height: 82px;
  position: relative;
  overflow: hidden;
  padding: 45px 10px 8px;
  color: var(--white);
  background: rgba(9, 4, 18, 0.84);
  border: 1px solid rgba(190, 40, 255, 0.82);
  border-radius: 7px;
  text-align: left;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.58), 0 0 12px rgba(190, 40, 255, 0.18);
}

.drop-card.is-active {
  border-color: var(--pink);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.58), 0 0 16px rgba(255, 25, 200, 0.4);
}

.drop-card img {
  position: absolute;
  top: 8px;
  left: 11px;
  width: 38px;
  height: 34px;
  object-fit: contain;
}

.drop-card span {
  display: block;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.drop-card small {
  display: block;
  margin-top: 4px;
  color: #d7cce7;
  font-size: 10px;
  line-height: 1;
}

.drop-card:nth-child(4) small {
  display: inline-block;
  padding: 2px 5px;
  color: #050005;
  background: var(--pink);
  border-radius: 2px;
}

.drop-card b {
  position: absolute;
  right: 10px;
  bottom: 9px;
  font-size: 14px;
  font-weight: 700;
}

.scroll-cue {
  position: absolute;
  z-index: 22;
  left: 0;
  right: 0;
  bottom: 52px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 13px;
  color: var(--white);
  font-weight: 900;
  font-size: 17px;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.42);
}

.scroll-cue span {
  width: 20px;
  height: 20px;
  border-right: 4px solid var(--pink);
  border-bottom: 4px solid var(--pink);
  transform: rotate(45deg);
  animation: cue 1s ease-in-out infinite alternate;
}

.dock {
  position: absolute;
  z-index: 28;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46px;
  padding: 7px max(18px, env(safe-area-inset-left)) calc(7px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  display: grid;
  grid-template-columns: 1fr minmax(176px, 1.35fr) 1fr;
  align-items: center;
  gap: 9px;
  background: rgba(0, 0, 0, 0.84);
  border-top: 1px solid rgba(255, 25, 200, 0.52);
  backdrop-filter: blur(12px);
}

.online,
.affinity {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--lime);
  font-weight: 900;
  font-size: 12px;
}

.affinity {
  justify-content: flex-end;
  color: var(--pink);
  font-size: 18px;
}

.dock-command {
  min-height: 34px;
  padding: 0 22px;
  justify-content: center;
  gap: 20px;
  color: var(--pink);
  background: rgba(21, 1, 20, 0.76);
  border: 1px solid var(--pink);
  border-radius: 999px;
  font-weight: 900;
  font-size: 14px;
  box-shadow: 0 0 18px rgba(255, 25, 200, 0.24);
}

.menu-panel,
.archive-panel {
  position: absolute;
  z-index: 36;
  background: rgba(5, 1, 13, 0.94);
  border: 1px solid rgba(255, 25, 200, 0.75);
  box-shadow: 0 0 44px rgba(255, 25, 200, 0.22), inset 0 0 34px rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(18px);
  transition: transform 220ms ease, opacity 220ms ease;
}

.menu-panel {
  top: 18px;
  right: 12px;
  width: 206px;
  padding: 46px 18px 18px;
  display: grid;
  gap: 12px;
  transform: translateX(115%);
  opacity: 0;
}

.menu-panel.is-open {
  transform: translateX(0);
  opacity: 1;
}

.menu-panel a {
  display: flex;
  justify-content: space-between;
  color: var(--white);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid rgba(142, 36, 255, 0.36);
  font-weight: 900;
}

.menu-panel a::after {
  content: "->";
  color: var(--lime);
}

.archive-panel {
  left: 12px;
  right: 12px;
  bottom: 53px;
  padding: 18px;
  transform: translateY(118%);
  opacity: 0;
}

.archive-panel.is-open {
  transform: translateY(0);
  opacity: 1;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 28px;
  height: 28px;
  color: var(--white);
  background: transparent;
  font-weight: 900;
  font-size: 18px;
}

.panel-title {
  display: grid;
  gap: 5px;
  margin-right: 34px;
  color: var(--blue);
  font-size: 12px;
}

.panel-title b {
  color: var(--lime);
  font-size: 28px;
  line-height: 1;
}

.panel-list {
  display: grid;
  gap: 9px;
  margin-top: 17px;
}

.panel-list button {
  display: flex;
  justify-content: space-between;
  padding: 12px 10px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
}

.panel-list button span {
  color: var(--pink);
}

.is-flashing {
  animation: panel-flash 320ms steps(2, end) 2;
}

@keyframes scan-drift {
  from { transform: translateY(-18px); }
  to { transform: translateY(18px); }
}

@keyframes glitch-slice {
  0%, 91%, 100% { transform: translateX(0); opacity: 0.18; }
  92% { transform: translateX(-9px); opacity: 0.54; }
  94% { transform: translateX(7px); opacity: 0.28; }
  96% { transform: translateX(-3px); opacity: 0.5; }
}

@keyframes blink {
  0%, 60% { opacity: 1; }
  61%, 100% { opacity: 0.36; }
}

@keyframes wave {
  from { transform: scaleY(0.45); opacity: 0.54; }
  to { transform: scaleY(1.15); opacity: 1; }
}

@keyframes meter-flicker {
  0%, 74% { opacity: 0.88; }
  75%, 100% { opacity: 0.34; }
}

@keyframes cue {
  from { opacity: 0.58; transform: translateY(-2px) rotate(45deg); }
  to { opacity: 1; transform: translateY(4px) rotate(45deg); }
}

@keyframes panel-flash {
  0% { filter: none; }
  100% { filter: invert(1) hue-rotate(130deg); }
}

@media (max-width: 380px) {
  .brand {
    grid-template-columns: 44px auto;
  }

  .brand-orbit {
    width: 44px;
    height: 44px;
  }

  .brand-copy {
    font-size: 17px;
  }

  .top-stamp {
    width: 122px;
    left: 41%;
  }

  .hero-logo {
    width: 73%;
    left: 17px;
  }

  .hero-copy {
    top: 247px;
    left: 24px;
    width: 195px;
    font-size: 16px;
  }

  .hero-actions {
    top: 376px;
    left: 18px;
  }

  .primary-cta {
    font-size: 16px;
    padding: 0 16px;
  }

  .secondary-cta {
    font-size: 14px;
  }

  .terminal {
    left: 38px;
    width: 232px;
  }

  .drop-grid {
    gap: 5px;
    left: 10px;
    right: 10px;
  }

  .drop-card {
    padding-left: 8px;
    padding-right: 7px;
  }

  .drop-card span {
    font-size: 11px;
  }

  .dock {
    grid-template-columns: 0.75fr 1.5fr 0.65fr;
    gap: 5px;
  }

  .online {
    font-size: 11px;
  }

  .affinity {
    gap: 4px;
    font-size: 16px;
  }
}
