:root {
  --bg: #090a0b;
  --bg-soft: #101113;
  --ink: #f0f0ed;
  --muted: rgba(240, 240, 237, .58);
  --quiet: rgba(240, 240, 237, .27);
  --line: rgba(255, 255, 255, .09);
  --red: rgb(230, 0, 3);
  --mx: 0;
  --my: 0;
}

*,
*::before,
*::after { box-sizing: border-box; }

html,
body {
  width: 100%;
  min-width: 320px;
  height: 100%;
  margin: 0;
  background: var(--bg);
}

body {
  overflow: hidden;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
a { -webkit-tap-highlight-color: transparent; }

.splash {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background:
    radial-gradient(100% 78% at 50% 42%, rgba(255,255,255,.025), transparent 62%),
    radial-gradient(64% 54% at 18% 5%, rgba(255,255,255,.055), transparent 48%),
    radial-gradient(45% 60% at 85% 55%, rgba(255,255,255,.02), transparent 62%),
    linear-gradient(115deg, #0c0d0e 0%, #08090a 48%, #0a0b0c 100%);
}

.surface,
.surface::before,
.surface::after,
.grid,
.ambient,
.ambient span {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.surface {
  z-index: -7;
  opacity: .46;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  transform: scale(1.08) translate3d(calc(var(--mx) * -2px), calc(var(--my) * -2px), 0);
}

.surface::before {
  content: "";
  opacity: .32;
  background:
    linear-gradient(128deg, transparent 0 14%, rgba(255,255,255,.07) 15%, transparent 16% 37%, rgba(255,255,255,.035) 38%, transparent 39%),
    linear-gradient(18deg, transparent 0 29%, rgba(255,255,255,.025) 30%, transparent 31% 72%, rgba(255,255,255,.022) 73%, transparent 74%);
  filter: blur(.4px);
}

.surface::after {
  content: "";
  background:
    radial-gradient(85% 50% at 48% 48%, transparent 42%, rgba(0,0,0,.22) 78%, rgba(0,0,0,.62) 100%);
}

.grid {
  z-index: -6;
  width: min(70vw, 1120px);
  height: 78vh;
  margin: auto;
  opacity: .13;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse at center, #000 0 35%, transparent 72%);
  transform: translate3d(calc(var(--mx) * 3px), calc(var(--my) * 2px), 0);
}

.ambient { z-index: -5; overflow: hidden; }

.ambient__glow {
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  opacity: .12;
  filter: blur(1px);
  background: radial-gradient(circle, rgba(255,255,255,.20), rgba(255,255,255,.035) 34%, transparent 68%);
  will-change: transform, opacity;
}

.ambient__glow--a {
  inset: -22vw auto auto -14vw;
  animation: float-a 18s ease-in-out infinite alternate;
}

.ambient__glow--b {
  width: 30vw;
  height: 30vw;
  inset: 20% -12vw auto auto;
  opacity: .075;
  animation: float-b 24s ease-in-out infinite alternate;
}

.ambient__glow--c {
  width: 24vw;
  height: 24vw;
  inset: auto auto -12vw 34%;
  opacity: .06;
  animation: float-c 21s ease-in-out infinite alternate;
}

.ambient__sweep {
  inset: -45% auto auto -18%;
  width: 18%;
  height: 190%;
  opacity: 0;
  transform: rotate(21deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.045), rgba(255,255,255,.105), rgba(255,255,255,.025), transparent);
  animation: sweep 13s ease-in-out 2.2s infinite;
}

.hero {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  width: min(720px, 66vw);
  transform: translate3d(calc(-50% + var(--mx) * 1.4px), calc(-50% + var(--my) * 1.1px), 0);
  text-align: center;
}

.brand {
  position: relative;
  display: block;
  width: clamp(154px, 12.6vw, 214px);
  margin: 0 auto clamp(26px, 3.2vh, 40px);
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  outline: none;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,.36));
  user-select: none;
}

.brand:hover img {
  filter: drop-shadow(0 12px 28px rgba(0,0,0,.36)) brightness(1.025);
}

.brand:focus-visible {
  outline: 1px solid rgba(255,255,255,.18);
  outline-offset: 9px;
  border-radius: 8px;
}

.brand__hint {
  position: absolute;
  left: 50%;
  top: calc(100% + 12px);
  width: max-content;
  transform: translateX(-50%);
  color: rgba(255,255,255,.25);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .55em;
  white-space: nowrap;
}

.brand__binary {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  place-items: center;
  width: 100%;
  height: 33.7%;
  padding: 0 9%;
  overflow: hidden;
  background: rgb(29, 29, 27);
  color: white;
  font-size: clamp(11px, 1vw, 16px);
  font-weight: 800;
  letter-spacing: .03em;
  opacity: 0;
}

.brand__binary span {
  opacity: 0;
  transform: translateY(8px) scale(.8);
}

.brand.is-binary .brand__binary { animation: binary-panel .82s ease both; }
.brand.is-binary .brand__binary span { animation: bit .46s cubic-bezier(.2,.7,.2,1) both; }
.brand.is-binary .brand__binary span:nth-child(2) { animation-delay: 30ms; }
.brand.is-binary .brand__binary span:nth-child(3) { animation-delay: 60ms; }
.brand.is-binary .brand__binary span:nth-child(4) { animation-delay: 90ms; }
.brand.is-binary .brand__binary span:nth-child(5) { animation-delay: 120ms; }
.brand.is-binary .brand__binary span:nth-child(6) { animation-delay: 150ms; }
.brand.is-binary .brand__binary span:nth-child(7) { animation-delay: 180ms; }
.brand.is-binary .brand__binary span:nth-child(8) { animation-delay: 210ms; }
.brand.is-binary .brand__binary span:nth-child(9) { animation-delay: 240ms; }
.brand.is-binary .brand__binary span:nth-child(10) { animation-delay: 270ms; }

.hero__copy { position: relative; }

.hero__title {
  margin: 0;
  color: #ededeb;
  font-size: clamp(37px, 3.55vw, 58px);
  font-weight: 760;
  line-height: .99;
  letter-spacing: .075em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255,255,255,.08), 0 18px 50px rgba(0,0,0,.28);
}

.hero__title span { display: block; }
.hero__title span + span { margin-top: .13em; }

.hero__subtitle {
  margin: clamp(18px, 2.3vh, 27px) 0 0;
  color: rgba(244,244,241,.75);
  font-size: clamp(15px, 1.1vw, 19px);
  font-weight: 350;
  line-height: 1.45;
  letter-spacing: .015em;
}

.hero__subtitle strong { color: rgba(255,255,255,.92); font-weight: 430; }

.stores {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(20px, 2.7vh, 30px);
}

.store-button {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 184px;
  height: 56px;
  padding: 8px 17px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(19,20,22,.84), rgba(8,9,10,.88));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.055),
    0 10px 32px rgba(0,0,0,.18);
  color: #fff;
  text-align: left;
  text-decoration: none;
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

.store-button:hover,
.store-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.42);
  background: linear-gradient(180deg, rgba(28,29,31,.93), rgba(11,12,13,.94));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 14px 36px rgba(0,0,0,.27),
    0 0 22px rgba(255,255,255,.025);
  outline: none;
}

.store-button:active { transform: translateY(0); }

.store-button__icon {
  flex: 0 0 auto;
  width: 30px;
  height: 34px;
}

.store-button__icon--apple { width: 28px; height: 34px; }
.store-button__icon--play { width: 30px; height: 34px; }

.store-button__text { display: grid; line-height: 1; }
.store-button__text small {
  margin-bottom: 4px;
  color: rgba(255,255,255,.74);
  font-size: 10px;
  font-weight: 420;
}
.store-button__text strong {
  font-size: 18px;
  font-weight: 570;
  letter-spacing: -.015em;
}

.signal {
  width: min(475px, 78%);
  margin: clamp(24px, 3.8vh, 38px) auto 0;
}

.signal__track {
  position: relative;
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.72) 8%, rgba(255,255,255,.22) 55%, transparent);
}

.signal__track i {
  position: absolute;
  top: 50%;
  left: 29%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 8px white, 0 0 20px rgba(255,255,255,.45);
  transform: translate(-50%, -50%);
  animation: signal-dot 8s ease-in-out infinite alternate;
}

.signal p {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 12px 0 0;
  color: rgba(255,255,255,.31);
  font-size: 7px;
  font-weight: 620;
  letter-spacing: .36em;
  white-space: nowrap;
}
.signal b { color: rgba(255,255,255,.15); }

.micro {
  position: absolute;
  z-index: 1;
  inset-block: 5.5%;
  width: 28%;
  color: rgba(255,255,255,.32);
  font-size: 8px;
  font-weight: 560;
  letter-spacing: .34em;
  line-height: 1.72;
  text-transform: uppercase;
  transform: translate3d(calc(var(--mx) * -.75px), calc(var(--my) * -.4px), 0);
}

.micro--left { left: 4.1%; }
.micro--right { right: 4.1%; transform: translate3d(calc(var(--mx) * .75px), calc(var(--my) * -.4px), 0); }

.micro__rail {
  position: absolute;
  inset: 0 auto 0 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.16) 12%, rgba(255,255,255,.08) 83%, transparent);
}

.micro__stack {
  position: absolute;
  top: 13%;
  left: 23px;
  margin: 0;
}
.micro__stack span { display: block; }
.micro__stack::after {
  content: "";
  display: block;
  width: 21px;
  height: 1px;
  margin-top: 12px;
  background: rgba(255,255,255,.28);
}
.micro__stack--bottom { top: auto; bottom: 12%; }
.micro__stack--right-top { right: 0; left: auto; text-align: left; }
.micro__stack--right-bottom { top: auto; right: 0; bottom: 11%; left: auto; }

.wave {
  position: absolute;
  top: 49%;
  left: -30%;
  width: 78%;
  height: 82px;
  overflow: visible;
}
.wave path {
  fill: none;
  vector-effect: non-scaling-stroke;
}
.wave__ghost { stroke: rgba(255,255,255,.09); stroke-width: .8; }
.wave__live {
  stroke: rgba(255,255,255,.40);
  stroke-width: .85;
  stroke-dasharray: 78 420;
  animation: waveform 8.2s ease-in-out infinite;
}

.micro__frame {
  position: absolute;
  top: 6%;
  right: 4%;
  width: 73%;
  height: 78%;
  border: 1px solid rgba(255,255,255,.045);
  border-left-color: rgba(255,255,255,.07);
}

.binary {
  margin: 0;
  font-variant-numeric: tabular-nums;
  letter-spacing: .5em;
}
.binary span { display: block; }
.binary--side {
  position: absolute;
  right: 0;
  top: 61%;
  color: rgba(255,255,255,.28);
  font-size: 8px;
  line-height: 1.7;
}

.pages-light {
  position: absolute;
  top: 32%;
  right: -18%;
  width: 65%;
  height: 29%;
  perspective: 420px;
  opacity: .42;
  filter: blur(.25px);
  transform: translate3d(calc(var(--mx) * 1.8px), calc(var(--my) * .8px), 0);
}

.pages-light::before {
  content: "";
  position: absolute;
  left: -20%;
  top: 38%;
  width: 115%;
  height: 26%;
  background: radial-gradient(ellipse at left, rgba(255,255,255,.2), rgba(255,255,255,.045) 42%, transparent 72%);
  filter: blur(8px);
}

.pages-light span {
  position: absolute;
  left: 8%;
  top: 50%;
  width: 96%;
  height: 1px;
  transform-origin: 0 50%;
  background: linear-gradient(90deg, rgba(255,255,255,.5), rgba(255,255,255,.19) 42%, transparent 95%);
  box-shadow: 0 0 9px rgba(255,255,255,.08);
}
.pages-light span:nth-child(1) { transform: rotate(-15deg) scaleX(.92); opacity: .42; }
.pages-light span:nth-child(2) { transform: rotate(-11deg) scaleX(1.03); opacity: .52; }
.pages-light span:nth-child(3) { transform: rotate(-7deg) scaleX(.96); opacity: .76; }
.pages-light span:nth-child(4) { transform: rotate(-3deg) scaleX(1.08); opacity: .52; }
.pages-light span:nth-child(5) { transform: rotate(1deg) scaleX(.95); opacity: .72; }
.pages-light span:nth-child(6) { transform: rotate(5deg) scaleX(1.02); opacity: .45; }
.pages-light span:nth-child(7) { transform: rotate(9deg) scaleX(.88); opacity: .66; }
.pages-light span:nth-child(8) { transform: rotate(13deg) scaleX(1.05); opacity: .36; }
.pages-light span:nth-child(9) { transform: rotate(17deg) scaleX(.91); opacity: .50; }
.pages-light span:nth-child(10) { transform: rotate(21deg) scaleX(.84); opacity: .24; }

.footer {
  position: absolute;
  z-index: 7;
  bottom: max(22px, env(safe-area-inset-bottom));
  left: 4.1%;
  right: 4.1%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255,255,255,.57);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.footer p { margin: 0; }
.footer b { margin-inline: .6em; color: rgba(255,255,255,.26); }

.reveal {
  opacity: 0;
  transform: translateY(9px);
}
body.is-ready .reveal {
  animation: reveal .72s cubic-bezier(.2,.75,.25,1) var(--delay, 0ms) both;
}

@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float-a {
  from { transform: translate3d(-2%, -2%, 0) scale(.96); opacity: .08; }
  to   { transform: translate3d(16%, 10%, 0) scale(1.08); opacity: .15; }
}
@keyframes float-b {
  from { transform: translate3d(2%, -8%, 0) scale(1.02); }
  to   { transform: translate3d(-23%, 15%, 0) scale(.92); }
}
@keyframes float-c {
  from { transform: translate3d(-10%, 2%, 0) scale(.9); }
  to   { transform: translate3d(22%, -14%, 0) scale(1.12); }
}
@keyframes sweep {
  0%, 68% { left: -28%; opacity: 0; }
  72% { opacity: .10; }
  84% { opacity: .045; }
  92%, 100% { left: 118%; opacity: 0; }
}
@keyframes waveform {
  0%, 100% { stroke-dashoffset: 480; opacity: .18; }
  50% { stroke-dashoffset: 145; opacity: .72; }
}
@keyframes signal-dot {
  from { left: 17%; }
  to { left: 76%; }
}
@keyframes binary-panel {
  0%, 100% { opacity: 0; }
  12%, 76% { opacity: 1; }
}
@keyframes bit {
  0% { opacity: 0; transform: translateY(8px) scale(.78); }
  38%, 78% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-5px) scale(.86); }
}

@media (max-width: 1120px) {
  .hero { width: min(680px, 72vw); }
  .micro { width: 24%; }
  .pages-light { right: -31%; width: 79%; }
}

@media (max-width: 920px) {
  .splash { min-height: 610px; }
  .micro { display: none; }
  .hero {
    width: min(660px, calc(100vw - 44px));
    top: 48.5%;
  }
  .brand { width: clamp(148px, 20vw, 190px); }
  .hero__title { font-size: clamp(34px, 6vw, 49px); }
  .hero__subtitle { font-size: 16px; }
  .footer { left: 22px; right: 22px; }
  .footer p:last-child { display: none; }
}

@media (max-width: 600px) {
  .splash { min-height: 620px; }
  .surface { opacity: .38; }
  .grid { width: 100%; height: 72%; background-size: 72px 72px; opacity: .09; }

  .hero {
    top: 48%;
    width: calc(100vw - 32px);
  }

  .brand {
    width: 146px;
    margin-bottom: 32px;
  }
  .brand__hint {
    top: calc(100% + 9px);
    font-size: 6px;
  }

  .hero__title {
    font-size: clamp(31px, 9.7vw, 42px);
    line-height: 1.01;
    letter-spacing: .055em;
  }
  .hero__title span + span { margin-top: .10em; }

  .hero__subtitle {
    width: 92%;
    margin: 19px auto 0;
    font-size: 14px;
  }

  .stores {
    gap: 8px;
    margin-top: 23px;
  }
  .store-button {
    min-width: 0;
    width: min(44vw, 174px);
    height: 51px;
    gap: 8px;
    padding: 7px 11px;
    border-radius: 9px;
  }
  .store-button__icon { width: 24px; height: 28px; }
  .store-button__icon--apple { width: 23px; height: 28px; }
  .store-button__text small { font-size: 8px; }
  .store-button__text strong { font-size: 15px; }

  .signal { width: 86%; margin-top: 29px; }
  .signal p { font-size: 6px; letter-spacing: .22em; }

  .footer {
    bottom: max(16px, env(safe-area-inset-bottom));
    justify-content: center;
    font-size: 7px;
    letter-spacing: .17em;
  }

  .ambient__glow--a { width: 88vw; height: 88vw; }
  .ambient__glow--b { width: 68vw; height: 68vw; }
  .ambient__glow--c { display: none; }
}

@media (max-height: 720px) and (min-width: 601px) {
  .brand { width: 145px; margin-bottom: 23px; }
  .hero__title { font-size: clamp(34px, 3.1vw, 48px); }
  .hero__subtitle { margin-top: 14px; }
  .stores { margin-top: 17px; }
  .store-button { height: 50px; }
  .signal { margin-top: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
