:root {
  color-scheme: light dark;
  --font-nabla: "Nabla";
  --ink: #f7fbff;
  --cyan: #4feaff;
  --acid: #caff64;
  --rose: #ff74cf;
  --violet: #9d8cff;
  --void: #ddfff3;
  --ground-shadow: rgba(43, 70, 76, 0.32);
  --body-background:
    radial-gradient(circle at 18% 12%, rgba(79, 234, 255, 0.34), transparent 32%),
    radial-gradient(circle at 86% 16%, rgba(255, 116, 207, 0.3), transparent 34%),
    linear-gradient(135deg, #c7fbff 0%, #dcffd6 48%, #ffd8f3 100%),
    var(--void);
  --home-atmosphere:
    radial-gradient(circle at 52% 44%, rgba(255, 255, 255, 0.32), transparent 0 24rem),
    radial-gradient(circle at 50% 112%, rgba(116, 255, 205, 0.36), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(137, 234, 255, 0.24));
  --screen-vignette: rgba(60, 96, 118, 0.2);
  --blob-field-background:
    radial-gradient(ellipse at 13% 28%, rgba(79, 234, 255, 0.9) 0 22%, transparent 58%),
    radial-gradient(ellipse at 84% 18%, rgba(255, 116, 207, 0.82) 0 20%, transparent 54%),
    radial-gradient(ellipse at 72% 86%, rgba(202, 255, 100, 0.68) 0 19%, transparent 54%),
    radial-gradient(ellipse at 17% 85%, rgba(157, 140, 255, 0.72) 0 22%, transparent 58%);
  --blob-before-background:
    radial-gradient(ellipse at 34% 50%, rgba(255, 214, 96, 0.58) 0 18%, transparent 55%),
    radial-gradient(ellipse at 62% 42%, rgba(80, 255, 205, 0.66) 0 24%, transparent 62%);
  --blob-after-background:
    radial-gradient(ellipse at 48% 52%, rgba(255, 255, 255, 0.36) 0 16%, transparent 48%),
    radial-gradient(ellipse at 30% 64%, rgba(101, 146, 255, 0.5) 0 22%, transparent 58%);
  --blob-opacity: 0.6;
  --floor-background:
    radial-gradient(circle at 52% 45%, rgba(255, 255, 255, 0.34) 0, transparent 24rem),
    linear-gradient(135deg, rgba(93, 239, 255, 0.44), rgba(255, 152, 220, 0.3) 48%, rgba(202, 255, 100, 0.38)),
    rgba(234, 255, 244, 0.58);
  --floor-shade-background:
    radial-gradient(ellipse at center, transparent 0 44%, rgba(81, 154, 136, 0.22) 88%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 28%, rgba(94, 186, 163, 0.2) 92%);
  --floor-light-background:
    radial-gradient(circle at 52% 45%, rgba(202, 255, 100, 0.24) 0, transparent 23rem),
    radial-gradient(ellipse at 50% 52%, rgba(255, 116, 207, 0.18), transparent 58%);
  --floor-grid-primary: rgba(42, 109, 126, 0.24);
  --floor-grid-secondary: rgba(42, 109, 126, 0.19);
  --traffic-dot: rgba(19, 115, 123, 0.92);
  --traffic-dot-a: rgba(19, 115, 123, 0.92);
  --traffic-dot-b: rgba(231, 82, 168, 0.9);
  --traffic-dot-c: rgba(54, 180, 102, 0.9);
  --traffic-dot-d: rgba(238, 157, 42, 0.9);
  --traffic-dot-e: rgba(103, 105, 224, 0.9);
  --traffic-dot-core: rgba(255, 255, 255, 0.96);
  --store-badge-background: #ffffff;
  --store-badge-border: rgba(0, 0, 0, 0.18);
  --store-badge-hover-background: #f3f6f7;
  --store-badge-hover-border: rgba(0, 0, 0, 0.32);
  --store-badge-ink: #050608;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --void: #060816;
    --ground-shadow: rgba(0, 0, 0, 0.56);
    --body-background:
      radial-gradient(circle at 18% 12%, rgba(48, 205, 255, 0.24), transparent 34%),
      radial-gradient(circle at 86% 16%, rgba(255, 74, 178, 0.22), transparent 36%),
      linear-gradient(135deg, #071727 0%, #101226 48%, #07180f 100%),
      var(--void);
    --home-atmosphere:
      radial-gradient(circle at 52% 44%, rgba(255, 255, 255, 0.1), transparent 0 24rem),
      radial-gradient(circle at 50% 112%, rgba(63, 255, 187, 0.16), transparent 58%),
      linear-gradient(180deg, rgba(2, 6, 18, 0.1), rgba(4, 9, 24, 0.42));
    --screen-vignette: rgba(0, 0, 0, 0.36);
    --blob-field-background:
      radial-gradient(ellipse at 13% 28%, rgba(41, 217, 255, 0.58) 0 22%, transparent 58%),
      radial-gradient(ellipse at 84% 18%, rgba(255, 85, 196, 0.56) 0 20%, transparent 54%),
      radial-gradient(ellipse at 72% 86%, rgba(168, 255, 73, 0.36) 0 19%, transparent 54%),
      radial-gradient(ellipse at 17% 85%, rgba(128, 109, 255, 0.48) 0 22%, transparent 58%);
    --blob-before-background:
      radial-gradient(ellipse at 34% 50%, rgba(255, 197, 64, 0.34) 0 18%, transparent 55%),
      radial-gradient(ellipse at 62% 42%, rgba(50, 255, 202, 0.42) 0 24%, transparent 62%);
    --blob-after-background:
      radial-gradient(ellipse at 48% 52%, rgba(255, 255, 255, 0.12) 0 16%, transparent 48%),
      radial-gradient(ellipse at 30% 64%, rgba(91, 127, 255, 0.36) 0 22%, transparent 58%);
    --blob-opacity: 0.68;
    --floor-background:
      radial-gradient(circle at 52% 45%, rgba(255, 255, 255, 0.09) 0, transparent 24rem),
      linear-gradient(135deg, rgba(43, 222, 255, 0.2), rgba(255, 94, 206, 0.13) 48%, rgba(163, 255, 75, 0.14)),
      rgba(5, 11, 23, 0.88);
    --floor-shade-background:
      radial-gradient(ellipse at center, transparent 0 44%, rgba(0, 0, 0, 0.48) 88%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 28%, rgba(0, 0, 0, 0.34) 92%);
    --floor-light-background:
      radial-gradient(circle at 52% 45%, rgba(168, 255, 73, 0.12) 0, transparent 23rem),
      radial-gradient(ellipse at 50% 52%, rgba(255, 85, 196, 0.11), transparent 58%);
    --floor-grid-primary: rgba(125, 246, 255, 0.18);
    --floor-grid-secondary: rgba(193, 255, 130, 0.13);
    --traffic-dot: rgba(202, 255, 100, 0.92);
    --traffic-dot-a: rgba(202, 255, 100, 0.92);
    --traffic-dot-b: rgba(255, 100, 203, 0.9);
    --traffic-dot-c: rgba(91, 229, 255, 0.9);
    --traffic-dot-d: rgba(255, 196, 82, 0.9);
    --traffic-dot-e: rgba(161, 134, 255, 0.9);
    --traffic-dot-core: rgba(255, 255, 255, 0.96);
    --store-badge-background: #080a0d;
    --store-badge-border: rgba(255, 255, 255, 0.28);
    --store-badge-hover-background: #14171c;
    --store-badge-hover-border: rgba(255, 255, 255, 0.5);
    --store-badge-ink: #ffffff;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--body-background);
  color: var(--ink);
  font-family: "Trebuchet MS", "Gill Sans", "Segoe UI", sans-serif;
  overflow-x: hidden;
}

.loading-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  contain: paint;
  height: 0.28rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.22);
  opacity: 1;
  transition:
    opacity 420ms ease,
    transform 420ms ease;
}

.loading-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(90deg, var(--cyan), var(--acid) 36%, var(--rose) 68%, var(--violet));
  box-shadow:
    0 0 18px rgba(79, 234, 255, 0.45),
    0 0 24px rgba(255, 116, 207, 0.28);
  transform-origin: left center;
  animation: loading-progress-run 2.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  transform: scaleX(0.08);
  transition: transform 220ms ease-out;
}

html[data-site-ready="true"] .loading-progress {
  opacity: 0;
  transform: translateY(-100%);
}

html[data-site-ready="true"] .loading-progress span {
  animation: none;
  transform: scaleX(1);
}

.loading-stage {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  opacity: 0;
  transition: opacity 720ms ease;
}

html[data-site-ready="true"] .loading-stage {
  opacity: 1;
}

button {
  font: inherit;
}

a {
  color: inherit;
}

.home {
  --brand-title-size: clamp(3.45rem, 7.25vw, 7.75rem);
  --shadow-x: 5px;
  --shadow-y: 9px;
  --light-x: 0px;
  --light-y: 0px;
  position: relative;
  contain: layout paint;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: clamp(1.4rem, 4vw, 4rem);
  text-align: center;
}

.site-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--home-atmosphere);
  contain: paint;
  pointer-events: none;
}

.site-backdrop::after {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(circle at center, transparent 58%, var(--screen-vignette));
  background-size: 100% 3px, 100% 100%;
  content: "";
  opacity: 0.55;
  pointer-events: none;
}

.blob-field,
.blob-field::before,
.blob-field::after {
  position: absolute;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
}

.blob-field {
  background: var(--blob-field-background);
  opacity: var(--blob-opacity);
  transform-origin: center;
  animation: drift-a 28s ease-in-out infinite alternate;
}

.blob-field::before {
  background: var(--blob-before-background);
  content: "";
  animation: drift-b 36s ease-in-out infinite alternate;
}

.blob-field::after {
  background: var(--blob-after-background);
  content: "";
  animation: drift-c 42s ease-in-out infinite alternate;
}

.floor {
  position: absolute;
  inset: 0;
  z-index: 1;
  contain: paint;
  overflow: hidden;
  background: var(--floor-background);
  box-shadow:
    inset 0 0 80px rgba(255, 255, 255, 0.07);
  opacity: 0.95;
}

.floor::before {
  position: absolute;
  inset: 0;
  background: var(--floor-shade-background);
  content: "";
  pointer-events: none;
}

.floor::after {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--floor-light-background);
  content: "";
  pointer-events: none;
  transform: translate3d(var(--light-x), var(--light-y), 0);
}

.floor-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.floor-grid-static {
  background-image:
    repeating-linear-gradient(30deg, var(--floor-grid-primary) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(150deg, var(--floor-grid-secondary) 0 1px, transparent 1px 48px);
  background-position: center;
}

.floor-grid-ready {
  background-image: none;
}

.floor-grid-dots {
  pointer-events: none;
}

.floor-dots-ready {
  background-image: none;
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 60rem);
  justify-items: center;
  transform: translateY(clamp(-0.25rem, 1vh, 1rem));
}

.brand-title {
  display: flex;
  flex-wrap: wrap;
  column-gap: clamp(1.15rem, 2.9vw, 2.7rem);
  row-gap: 0;
  justify-content: center;
  margin: 0;
  max-width: min(100%, 56rem);
  color: var(--ink);
  font-family: var(--font-nabla), "Trebuchet MS", fantasy;
  font-size: var(--brand-title-size);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.9;
  text-wrap: balance;
  text-shadow: 0 0 22px rgba(103, 248, 255, 0.22);
}

.brand-subtitle {
  display: flex;
  flex-wrap: wrap;
  column-gap: clamp(0.7rem, 1.8vw, 1.55rem);
  row-gap: 0;
  justify-content: center;
  margin: 0.08em 0 0;
  color: var(--ink);
  font-family: var(--font-nabla), "Trebuchet MS", fantasy;
  font-size: calc(var(--brand-title-size) * 0.8);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.9;
  text-shadow: 0 0 18px rgba(103, 248, 255, 0.2);
}

.brand-word {
  display: inline-flex;
  white-space: nowrap;
}

.brand-space {
  display: none;
}

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

.character-rig {
  position: relative;
  display: inline-block;
  transform-origin: 50% 100%;
  transform-style: preserve-3d;
}

.character-rig::before {
  position: absolute;
  right: 14%;
  bottom: -0.02em;
  left: 14%;
  z-index: -1;
  height: 0.12em;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, var(--ground-shadow), rgba(43, 70, 76, 0.12) 56%, transparent 74%);
  content: "";
  transform: translate3d(var(--shadow-x), var(--shadow-y), 0) rotate(-24deg) skewX(-34deg) scaleY(0.48);
  transform-origin: center;
  animation: character-shadow 2.6s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
  animation-delay: calc(var(--character-index) * 58ms);
  will-change: opacity, transform;
}

.brand-character {
  display: inline-block;
  transform-origin: 50% 100%;
  animation: character-bounce 2.6s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
  animation-delay: calc(var(--character-index) * 58ms);
  will-change: transform;
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: clamp(1.55rem, 3.8vh, 2.9rem);
}

.store-link {
  display: inline-flex;
  width: 11.5rem;
  min-height: 3.45rem;
  align-items: center;
  justify-content: flex-start;
  border: 1px solid var(--store-badge-border);
  border-radius: 0.72rem;
  padding: 0.48rem 0.75rem;
  background: var(--store-badge-background);
  color: var(--store-badge-ink);
  text-decoration: none;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.store-link:hover {
  background: var(--store-badge-hover-background);
  border-color: var(--store-badge-hover-border);
  transform: translateY(-2px);
}

.store-link:focus-visible {
  outline: 3px solid var(--acid);
  outline-offset: 6px;
}

.store-mark {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  place-items: center;
  margin-right: 0.62rem;
}

.store-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.store-mark-apple svg,
.store-mark-web svg {
  fill: currentcolor;
}

.play-blue {
  fill: #3bccff;
}

.play-green {
  fill: #40df86;
}

.play-yellow {
  fill: #ffd45a;
}

.play-red {
  fill: #ff665d;
}

.store-copy {
  display: grid;
  gap: 0.08rem;
  justify-items: start;
  line-height: 1;
}

.store-eyebrow {
  font-size: 0.64rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: uppercase;
}

.store-name {
  font-size: 1.12rem;
  font-weight: 850;
  letter-spacing: 0;
}

@keyframes character-bounce {
  0%,
  25%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }

  9% {
    transform: translate3d(0, -0.12em, 0) rotate(-1.8deg) scale(1.03, 0.98);
  }

  16% {
    transform: translate3d(0, 0.025em, 0) rotate(1.2deg) scale(0.98, 1.04);
  }
}

@keyframes character-shadow {
  0%,
  25%,
  100% {
    opacity: 0.68;
    transform: translate3d(var(--shadow-x), var(--shadow-y), 0) rotate(-24deg) skewX(-34deg) scaleY(0.48) scale(1);
  }

  9% {
    opacity: 0.32;
    transform: translate3d(var(--shadow-x), var(--shadow-y), 0) rotate(-24deg) skewX(-34deg) scaleY(0.48) scale(0.82);
  }

  16% {
    opacity: 0.78;
    transform: translate3d(var(--shadow-x), var(--shadow-y), 0) rotate(-24deg) skewX(-34deg) scaleY(0.48) scale(1.12);
  }
}

@keyframes loading-progress-run {
  0% {
    transform: scaleX(0.08);
  }

  55% {
    transform: scaleX(0.72);
  }

  100% {
    transform: scaleX(0.9);
  }
}

@keyframes drift-a {
  from {
    transform: translate3d(-3%, -2%, 0) rotate(0deg) scale(1);
  }

  to {
    transform: translate3d(4%, 3%, 0) rotate(12deg) scale(1.08);
  }
}

@keyframes drift-b {
  from {
    transform: translate3d(3%, 2%, 0) rotate(0deg) scale(1);
  }

  to {
    transform: translate3d(-4%, -2%, 0) rotate(-10deg) scale(1.12);
  }
}

@keyframes drift-c {
  from {
    transform: translate3d(-2%, 3%, 0) rotate(8deg) scale(0.94);
  }

  to {
    transform: translate3d(3%, -4%, 0) rotate(-12deg) scale(1.06);
  }
}

@media (max-width: 680px) {
  .home {
    --brand-title-size: clamp(3.05rem, 16.6vw, 5.55rem);
    padding: 1rem;
  }

  .hero {
    width: min(100%, 23rem);
    transform: translateY(4vh);
  }

  .brand-word {
    width: 100%;
    justify-content: center;
  }

  .brand-subtitle .brand-word {
    width: auto;
  }

  .brand-space {
    display: none;
  }

  .store-link {
    width: min(100%, 19rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .loading-progress,
  .loading-progress span,
  .loading-stage {
    transition-duration: 1ms !important;
  }

  .loading-progress span {
    animation-duration: 1ms !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
