@font-face {
  font-family: "Archivo Black";
  src: url("./archivo-black.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #fff8ed;
  --muted: #e3d5ec;
  --lime: #bdff3d;
  --lime-soft: #e3ff81;
  --display: "Archivo Black", "Arial Black", system-ui, sans-serif;
  --inset: clamp(28px, 6.7vw, 86px);
  --header-height: 83px;
  --scene-tail: clamp(65px, 9vw, 129px);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 22px max(14px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  background: radial-gradient(ellipse at 50% 1%, #341547, transparent 63%), #10071c;
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; }

a:focus-visible, #downloads:focus-visible {
  outline: 3px solid var(--lime-soft);
  outline-offset: 5px;
}

.skip-link {
  position: absolute;
  z-index: 5;
  inset: 12px auto auto 12px;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--lime);
  color: #170e18;
  font-weight: 750;
  transform: translateY(-150%);
}

.skip-link:focus { transform: none; }

.page {
  position: relative;
  isolation: isolate;
  max-width: 1280px;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--lime-soft);
  border-radius: 34px;
  box-shadow: 0 0 28px #cafa5333, 0 23px 58px #05020bcc;
  background: #100719;
}

.page::before {
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: clamp(295px, 29vw, 410px);
  background: linear-gradient(90deg, #12071d36, #13091fe0 42%, #13091fe0 60%, #12071d36),
              url("./neon-city.webp") center bottom / 100% 650% no-repeat;
  mask-image: linear-gradient(transparent, black 58%);
  pointer-events: none;
  content: "";
}

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header-height);
  padding: 0 var(--inset);
  background: linear-gradient(110deg, #110a1999, #190c2b6b 63%, #100b1599);
}

.site-header::after {
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, #331b48, #e077f6 46%, #46304c);
  box-shadow: 0 0 14px #d84dffb3;
  animation: neon-glow 6s ease-in-out infinite alternate;
  content: "";
}

.wordmark, .hero-title {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -.075em;
  line-height: .82;
  text-transform: uppercase;
  transform: skewX(-10deg) rotate(-3deg);
}

.wordmark {
  display: block;
  margin: 0 0 0 5px;
  font-size: 30px;
  line-height: .86;
  text-decoration: none;
}

.wordmark span, .hero-title span { display: block; }
.wordmark span:last-child { color: var(--lime); }

.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 45px;
  padding: 0 20px;
  border: 2px solid var(--lime-soft);
  border-radius: 999px;
  background-color: #0d061bd9;
  box-shadow: inset 0 0 10px #baff3055, 0 0 17px #baff3055;
  color: var(--lime-soft);
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color .2s, box-shadow .2s, transform .2s;
}

.download-link svg { width: 21px; height: 21px; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-content: start;
  min-height: clamp(492px, 48vw, 612px);
  padding: clamp(38px, 4vw, 55px) var(--inset) 52px;
}

.hero-scene {
  position: absolute;
  z-index: -2;
  inset: calc(-1 * var(--header-height)) 0 0;
  pointer-events: none;
}

.hero-scene picture, .hero-scene img { display: block; width: 100%; height: 100%; }
.hero-scene picture {
  position: absolute;
  inset: 0 0 auto;
  height: calc(100% + var(--scene-tail));
  mask-image: linear-gradient(black 77%, transparent);
}

.hero-scene img { object-fit: cover; object-position: center top; }

.hero-scene::before, .hero-scene::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.hero-scene::before {
  bottom: calc(-1 * var(--scene-tail));
  background: linear-gradient(90deg, #0c051957 0%, #0c051961 37%, transparent 67%),
              linear-gradient(0deg, #100719d9, #10071900 30%);
  mask-image: linear-gradient(black 77%, transparent);
}

.hero-scene::after {
  inset: auto -5% 0;
  height: 34%;
  background: radial-gradient(ellipse at 13% 80%, #9d39ce65, transparent 60%),
              radial-gradient(ellipse at 92% 70%, #b94ddd59, transparent 56%);
  mask-image: linear-gradient(transparent, black 37%, transparent);
  animation: smoke-drift 11s ease-in-out infinite alternate;
}

.hero-copy { grid-column: 1; grid-row: 1; }

.kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(9px, 1.25vw, 17px);
  margin: 0 0 clamp(19px, 2.3vw, 29px);
  padding: 7px clamp(12px, 1.55vw, 20px);
  border: 1px solid var(--lime-soft);
  border-radius: 999px;
  background: #0e081ad9;
  color: var(--lime-soft);
  font-size: clamp(.57rem, 1.02vw, .86rem);
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.kicker span { font-size: 1.35em; line-height: .8; }

.hero-title {
  width: max-content;
  margin: 0 0 0 7px;
  font-size: clamp(73px, 9.15vw, 127px);
  text-shadow: 4px 7px #080412, 0 0 18px #080412;
}

.hero-title span:last-child {
  position: relative;
  margin-top: .07em;
  color: var(--lime);
  background: linear-gradient(#ddff95, #a9fa0a);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(4px 6px #080412);
}

.title-swoosh {
  position: absolute;
  right: -.17em;
  bottom: -.1em;
  width: 59%;
  height: auto;
  overflow: visible;
  fill: var(--lime-soft);
  filter: drop-shadow(0 0 5px #d6ff3ae6);
  pointer-events: none;
}

.tagline {
  margin: clamp(20px, 2.5vw, 34px) 0 6px;
  font-family: var(--display);
  font-size: clamp(24px, 3.12vw, 43px);
  letter-spacing: -.05em;
  line-height: 1.14;
  text-shadow: 0 2px 12px #080413, 2px 3px #080413;
  transform: skewX(-9deg);
  transform-origin: left center;
}

.description {
  margin: 0;
  color: var(--ink);
  font-size: clamp(.91rem, 1.38vw, 1.16rem);
  line-height: 1.45;
  text-wrap: balance;
  text-shadow: 0 1px 6px #070310, 0 1px 12px #070310;
}

.hero-character {
  position: absolute;
  z-index: -1;
  top: 4px;
  right: 9.5%;
  bottom: 13%;
  width: 47%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: none;
}

.hero-character::before {
  position: absolute;
  bottom: -2%;
  left: 50%;
  width: 49%;
  height: 5%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, #090318cc, #09031866 38%, transparent 72%);
  content: "";
}

.hero-character picture {
  position: relative;
  display: flex;
  justify-content: center;
  height: 100%;
  max-width: 100%;
}

.hero-character img {
  display: block;
  height: 100%;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  object-position: center bottom;
  animation: character-breathe 5s ease-in-out infinite;
  transform-origin: center bottom;
}

.download {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
  align-self: start;
  margin-top: 12px;
  scroll-margin-block-start: 18px;
}

.stores { display: flex; align-items: center; gap: 3px; }

.store {
  display: grid;
  place-items: center;
  min-width: 188px;
  min-height: 83px;
  padding: 0;
  border-radius: 13px;
  text-decoration: none;
  transition: background-color .18s, box-shadow .18s;
}

.store img { display: block; height: auto; }
.ios img { width: 168px; }
.android img { width: 216px; }

.availability {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
  margin: 1px 0 0;
  color: var(--ink);
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .105em;
  text-transform: uppercase;
  text-shadow: 0 1px 6px #080411;
}

.availability span { color: var(--lime-soft); }

.features {
  position: relative;
  margin-top: -18px;
  padding: 0 var(--inset) 27px;
  text-align: center;
  background: linear-gradient(#10071900, #10071947 32%, #10071926);
}

.feature-emblem {
  display: block;
  width: 36px;
  height: 36px;
  margin-inline: auto;
  color: var(--lime-soft);
  filter: drop-shadow(0 0 7px #a9ff32ab);
}

.features h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.4vw, 32px);
  margin: 3px auto 19px;
  color: var(--lime-soft);
  font: 400 clamp(.8rem, 1.6vw, 1.15rem)/1.3 var(--display);
  font-style: italic;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.features h2::before, .features h2::after {
  flex: 1 1 0;
  max-width: 240px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lime-soft) 78%, #87a937);
  box-shadow: 0 0 8px #befd3666;
  content: "";
}

.features h2::after { transform: scaleX(-1); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-card {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 22px);
  min-height: 110px;
  padding: 14px clamp(11px, 1.7vw, 23px);
  border: 1px solid #9750aa;
  border-radius: 20px;
  background: linear-gradient(145deg, #32183f, #180b27 52%, #291334);
  box-shadow: inset 0 1px 0 #efa1ff36, inset 0 0 13px #de54f821;
  text-align: left;
}

.feature-card svg {
  flex: 0 0 clamp(35px, 5vw, 67px);
  width: clamp(35px, 5vw, 67px);
  fill: var(--lime);
  stroke: #e7ffab;
  stroke-width: 1;
  filter: drop-shadow(0 0 9px #a3ff2994);
}

.feature-card .icon-cut { fill: none; stroke: #4c7419; stroke-width: 2; }

.feature-card h3 {
  max-width: 16ch;
  margin: 0 0 4px;
  font: 400 clamp(.79rem, 1.55vw, 1.19rem)/1.06 var(--display);
  font-style: italic;
  letter-spacing: -.035em;
  text-wrap: balance;
  text-transform: uppercase;
}

.feature-card p { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.3; }

.site-footer {
  position: relative;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0 20px;
  padding: 3px var(--inset) 5px;
  border-top: 1px solid #70428470;
  background: #0d07168c;
  color: var(--muted);
  font-size: .75rem;
}

.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 17px; }

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  text-decoration: none;
}

.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (hover: hover) {
  .download-link:hover { background: #283512; box-shadow: 0 0 22px #baff3080; }
  .store:hover { background: #b7fa2720; box-shadow: inset 0 0 0 1px #bdff3d88; }
}

.download-link:active { transform: scale(.97); }
.store:active { background: #b7fa2738; }

@keyframes smoke-drift {
  from { opacity: .38; transform: translateX(-3%); }
  to { opacity: .75; transform: translateX(3%); }
}

@keyframes neon-glow {
  from { opacity: .65; }
  to { opacity: 1; }
}

@keyframes character-breathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@media (max-width: 900px) and (min-width: 740px) {
  :root { --inset: 30px; }
  .hero { min-height: 475px; }
  .hero-character { right: 5%; bottom: clamp(13%, calc(64% - 26.7vw + 8px), 24%); }
  .feature-card { min-height: 97px; }
}

@media (max-width: 739px) {
  :root { --inset: 15px; --header-height: 54px; }

  body {
    padding-top: max(8px, env(safe-area-inset-top));
    padding-right: max(8px, env(safe-area-inset-right));
    padding-left: max(8px, env(safe-area-inset-left));
  }

  .page { max-width: 530px; border-radius: 24px; }

  .page::before { display: none; }

  .site-header::after { animation: none; }
  .wordmark { font-size: 22px; }
  .download-link { min-height: 44px; padding: 0 10px; gap: 6px; font-size: .61rem; }
  .download-link svg { width: 15px; height: 15px; }

  .hero {
    position: static;
    isolation: auto;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    min-height: 0;
    padding: 16px var(--inset) 8px;
    text-align: center;
  }

  .hero-copy { grid-row: 1; }
  .kicker { margin-bottom: 14px; padding: 5px 10px; font-size: clamp(.56rem, 2.65vw, .71rem); }
  .hero-title { margin: 0 auto; font-size: clamp(54px, 16.9vw, 88px); }
  .tagline { margin: 16px auto 4px; font-size: clamp(22px, 6.5vw, 34px); transform-origin: center; }
  .description { max-width: 30ch; margin-inline: auto; font-size: clamp(.86rem, 3.75vw, 1rem); }

  .hero-scene {
    inset: 0;
  }

  .hero-scene picture { inset: 0; height: 100%; mask-image: none; }
  .hero-scene img { object-fit: fill; }

  .hero-scene::before {
    bottom: 0;
    mask-image: none;
    background: linear-gradient(#10071954, #1007192b 26%, transparent 33% 53%, #10071945 65%, #10071950);
  }

  .hero-scene::after { display: none; }

  .hero-character {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    grid-column: 1;
    grid-row: 2;
    width: auto;
    height: clamp(196px, 58vw, 290px);
    height: clamp(196px, min(58vw, 28svh), 290px);
    margin: 5px 0 -5px;
  }

  .hero-character img { animation: none; }
  .hero-character::before { width: 36%; }

  .download { grid-row: 3; justify-self: center; margin-top: 7px; }
  .stores { display: grid; gap: 0; justify-items: center; }
  .store { min-width: 0; width: 218px; min-height: 68px; }
  .ios img { width: 159px; }
  .android img { width: 204px; }
  .availability { margin-top: 0; font-size: .63rem; gap: 9px; }

  .features { margin-top: 3px; padding-bottom: 17px; }
  .feature-emblem { width: 27px; height: 27px; }
  .features h2 { margin: 1px auto 12px; }
  .feature-grid { grid-template-columns: 1fr; gap: 7px; }
  .feature-card { min-height: 62px; padding: 9px 14px; border-radius: 13px; }
  .feature-card svg { flex-basis: 34px; width: 34px; }
  .feature-card h3 { max-width: none; font-size: clamp(.75rem, 3.5vw, .92rem); }
  .feature-card p { font-size: .76rem; }

  .site-footer { justify-content: center; text-align: center; }
}

@media (max-width: 360px), (max-width: 739px) and (max-height: 670px) {
  .stores { display: flex; justify-content: center; }
  .store { width: auto; }
  .ios img { width: clamp(126px, 35vw, 145px); }
  .android img { width: clamp(164px, 45vw, 188px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scene::after, .hero-character img, .site-header::after { animation: none; }
  .download-link, .store { transition: none; }
  .download-link:active { transform: none; }
}
