:root {
  --background: #030405;
  --main: rgba(255, 255, 255, 0.88);
  --secondary: rgba(255, 255, 255, 0.46);
  --muted: rgba(255, 255, 255, 0.28);
  --faint: rgba(255, 255, 255, 0.12);
  --accent: #d99a32;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
}

body {
  min-height: 100svh;
  margin: 0;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.045), transparent 31rem),
    radial-gradient(circle at 82% 18%, rgba(217, 154, 50, 0.055), transparent 24rem),
    linear-gradient(180deg, #050607 0%, var(--background) 60%, #020303 100%);
  color: var(--main);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.home-page {
  overflow: hidden;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 72%);
}

canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: clamp(1rem, 3vw, 2.1rem);
  left: clamp(1rem, 3vw, 2.2rem);
  z-index: 3;
}

.home-page .site-header {
  display: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  min-height: 2rem;
  color: var(--secondary);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  line-height: 1;
  transition: color 180ms ease;
}

.brand::before {
  width: 0.32rem;
  height: 0.32rem;
  border: 1px solid rgba(217, 154, 50, 0.7);
  border-radius: 50%;
  content: "";
}

.brand:hover,
.brand:focus-visible {
  color: var(--main);
}

.hero {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 100svh;
  place-content: center;
  justify-items: center;
  padding: 6rem 1rem 9.5rem;
  text-align: center;
  transition: opacity 420ms ease, transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.home-page h1 {
  max-width: min(92vw, 70rem);
  margin: 0;
  color: var(--main);
  font-size: clamp(0.72rem, 2.5vw, 1.48rem);
  font-weight: 200;
  letter-spacing: clamp(0.16em, 1.2vw, 0.34em);
  line-height: 1.08;
  text-indent: clamp(0.16em, 1.2vw, 0.34em);
  text-transform: uppercase;
}

.subtitle {
  margin: 1.1rem 0 0;
  color: var(--secondary);
  font-size: clamp(0.78rem, 1.8vw, 0.98rem);
  font-weight: 300;
  letter-spacing: 0.18em;
  line-height: 1.5;
}

.ambient-nav {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.nav-link {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  min-height: 2rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  line-height: 1;
  pointer-events: auto;
  transition: color 180ms ease, transform 180ms ease;
}

.nav-link::before {
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0.8rem rgba(217, 154, 50, 0.28);
  content: "";
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: rgba(255, 255, 255, 0.78);
  transform: translateX(2px);
}

.nav-link:hover::before,
.nav-link:focus-visible::before {
  opacity: 1;
  transform: scale(1);
}

.nav-apps {
  top: 24%;
  left: 12%;
}

.nav-games {
  top: 39%;
  left: 5.5%;
}

.nav-ai {
  top: 62%;
  left: 16%;
}

.nav-photography {
  top: 19%;
  right: 9%;
}

.nav-music {
  top: 50%;
  right: 5.5%;
}

.nav-journal {
  right: 19%;
  bottom: 18%;
}

.nav-contact {
  right: 2rem;
  bottom: 2rem;
}

.apps-panel {
  position: fixed;
  top: calc(24% + 2.05rem);
  left: calc(12% + 0.95rem);
  z-index: 6;
  display: grid;
  grid-template-columns: auto minmax(9.5rem, 14rem);
  gap: 0.82rem;
  align-items: start;
  padding: 0.25rem 0 0.2rem;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-0.45rem);
  transform-origin: left top;
  transition:
    opacity 240ms ease,
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.apps-panel::before {
  content: none;
}

.panel-rule {
  width: 1px;
  height: 6.6rem;
  margin-top: 0.12rem;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(217, 154, 50, 0.68), rgba(217, 154, 50, 0.08), transparent);
  transform: scaleY(0.12);
  transform-origin: top;
  transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.app-links {
  grid-column: 2;
  display: grid;
  gap: 0.18rem;
  margin-top: -0.08rem;
}

.app-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.56rem;
  width: max-content;
  min-height: 1.55rem;
  color: rgba(255, 255, 255, 0.34);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  line-height: 1;
  transform: translateX(-0.34rem);
  opacity: 0;
  transition:
    color 180ms ease,
    opacity 260ms ease,
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.app-links a::before {
  width: 0.18rem;
  height: 0.18rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  content: "";
  opacity: 0.2;
  transition: opacity 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.app-links a::after {
  position: absolute;
  left: 0.74rem;
  right: -0.45rem;
  bottom: 0.28rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(217, 154, 50, 0.24), transparent);
  content: "";
  opacity: 0;
  transform: scaleX(0.2);
  transform-origin: left;
  transition: opacity 180ms ease, transform 220ms ease;
}

.app-links a:nth-child(2) {
  transition-delay: 45ms;
}

.app-links a:nth-child(3) {
  transition-delay: 90ms;
}

.app-links a:hover,
.app-links a:focus-visible {
  color: rgba(255, 255, 255, 0.74);
  transform: translateX(0.2rem);
}

.app-links a:hover::before,
.app-links a:focus-visible::before {
  opacity: 0.95;
  transform: scale(1.18);
  box-shadow: 0 0 1rem rgba(217, 154, 50, 0.34);
}

.app-links a:hover::after,
.app-links a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.construction-note {
  position: fixed;
  right: clamp(1rem, 4vw, 3rem);
  bottom: clamp(1rem, 4vw, 3rem);
  z-index: 4;
  margin: 0;
  color: rgba(217, 154, 50, 0.58);
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.32em;
  line-height: 1;
  pointer-events: none;
  opacity: 0;
  transform: translateY(0.4rem);
  transition: opacity 220ms ease, transform 220ms ease;
}

.home-page.is-apps-open .hero {
  opacity: 0.52;
  transform: translateX(1.2rem) scale(0.96);
}

.home-page.is-apps-open .apps-panel {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.home-page.is-apps-open .panel-rule {
  transform: scaleY(1);
}

.home-page.is-apps-open .app-links a {
  opacity: 1;
  transform: translateX(0);
}

.home-page.is-construction-open .hero {
  opacity: 0.58;
}

.home-page.is-construction-open .construction-note {
  opacity: 1;
  transform: translateY(0);
}

.product-page,
.placeholder-page {
  overflow-x: hidden;
}

.product-shell,
.placeholder-shell {
  position: relative;
  z-index: 2;
}

.product-shell {
  width: min(1180px, calc(100% - 2rem));
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(6rem, 12vw, 8.5rem) 0 4rem;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(18rem, 0.82fr) minmax(24rem, 1.18fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: center;
}

.product-copy {
  max-width: 34rem;
}

.product-logo {
  width: 5.4rem;
  height: 5.4rem;
  margin-bottom: 1.4rem;
  border-radius: 1.35rem;
  box-shadow: 0 1.3rem 3.8rem rgba(0, 0, 0, 0.38);
}

.product-kicker,
.placeholder-shell p {
  margin: 0 0 0.9rem;
  color: rgba(217, 154, 50, 0.58);
  font-size: 0.64rem;
  font-weight: 300;
  letter-spacing: 0.32em;
  line-height: 1;
  text-transform: uppercase;
}

.product-page h1,
.placeholder-page h1 {
  margin: 0;
  color: var(--main);
  font-size: clamp(2.9rem, 9vw, 7.8rem);
  font-weight: 180;
  letter-spacing: 0.04em;
  line-height: 0.94;
}

.product-lead {
  max-width: 31rem;
  margin: 1.6rem 0 0;
  color: rgba(255, 255, 255, 0.57);
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  font-weight: 300;
  line-height: 1.72;
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.2rem;
}

.store-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.7rem;
  padding: 0 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.store-link:hover,
.store-link:focus-visible {
  border-color: rgba(217, 154, 50, 0.54);
  background: rgba(217, 154, 50, 0.08);
  color: var(--main);
}

.store-link-disabled {
  color: rgba(255, 255, 255, 0.32);
}

.screenshot-orbit {
  position: relative;
  min-height: 42rem;
  perspective: 1300px;
}

.screenshot-orbit::before {
  position: absolute;
  inset: 15% 4% 10%;
  border: 1px solid rgba(217, 154, 50, 0.11);
  border-radius: 50%;
  content: "";
  transform: rotate(-8deg);
}

.phone-shot {
  position: absolute;
  width: min(30vw, 15.2rem);
  border-radius: 2rem;
  box-shadow: 0 2rem 5.5rem rgba(0, 0, 0, 0.55);
  opacity: 0.92;
}

.shot-one {
  top: 10%;
  left: 33%;
  z-index: 5;
  transform: rotate(-3deg);
}

.shot-two {
  top: 20%;
  left: 6%;
  z-index: 3;
  transform: rotate(-13deg) scale(0.88);
  opacity: 0.68;
}

.shot-three {
  top: 29%;
  right: 2%;
  z-index: 4;
  transform: rotate(12deg) scale(0.9);
  opacity: 0.76;
}

.shot-four {
  bottom: 3%;
  left: 20%;
  z-index: 2;
  transform: rotate(8deg) scale(0.78);
  opacity: 0.48;
}

.shot-five {
  bottom: 10%;
  right: 20%;
  z-index: 1;
  transform: rotate(-8deg) scale(0.72);
  opacity: 0.42;
}

.placeholder-shell {
  display: grid;
  min-height: 100svh;
  place-content: center;
  justify-items: center;
  padding: 6rem 1rem;
  text-align: center;
}

.placeholder-shell span {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
}

@media (max-width: 760px) {
  body.home-page {
    min-height: 100dvh;
    overflow: hidden;
  }

  body::after {
    background-size: 46px 46px;
    opacity: 0.55;
  }

  .site-header {
    top: 1.1rem;
    left: 1rem;
  }

  .brand {
    font-size: 0.62rem;
    letter-spacing: 0.18em;
  }

  .home-page .hero {
    position: fixed;
    top: 36dvh;
    left: 50%;
    width: min(100% - 2rem, 24rem);
    min-height: auto;
    padding: 0;
    place-content: initial;
    transform: translate(-50%, -50%);
  }

  .home-page h1 {
    max-width: 20rem;
    font-size: clamp(0.88rem, 3vw, 1.12rem);
    letter-spacing: 0.14em;
    line-height: 1.16;
    text-indent: 0.14em;
  }

  .subtitle {
    margin-top: 1rem;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
  }

  .ambient-nav {
    position: fixed;
    z-index: 5;
    top: 48dvh;
    left: 50%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.38rem 1.25rem;
    justify-items: center;
    width: min(17rem, calc(100vw - 2rem));
    margin: 0;
    padding: 0;
    pointer-events: auto;
    transform: translateX(-50%);
  }

  .nav-link {
    position: static;
    justify-content: center;
    min-height: 1.55rem;
    color: rgba(255, 255, 255, 0.32);
    font-size: 0.62rem;
    letter-spacing: 0.17em;
  }

  .nav-link:hover,
  .nav-link:focus-visible {
    transform: translateY(-1px);
  }

  .nav-contact {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .apps-panel {
    position: fixed;
    z-index: 6;
    top: calc(48dvh + 2rem);
    bottom: auto;
    left: calc(50% - 7.9rem);
    grid-template-columns: auto minmax(0, 1fr);
    width: min(13rem, calc(50vw - 1rem));
    margin: 0;
    padding: 0.2rem 0 0;
    transform: translateY(-0.35rem);
    transform-origin: left top;
  }

  .apps-panel::before {
    display: none;
  }

  .home-page.is-apps-open .hero {
    opacity: 0.62;
    transform: translate(-50%, -50%) scale(0.98);
  }

  .home-page.is-apps-open .apps-panel {
    transform: translateY(0) scale(1);
  }

  .panel-rule {
    height: 4.9rem;
  }

  .app-links a {
    min-height: 1.42rem;
    font-size: 0.6rem;
    letter-spacing: 0.16em;
  }

  .construction-note {
    right: 50%;
    bottom: 1.4rem;
    width: max-content;
    transform: translate(50%, 0.4rem);
  }

  .home-page.is-construction-open .construction-note {
    transform: translate(50%, 0);
  }

  .product-shell {
    width: min(100% - 1.5rem, 34rem);
    padding: 6rem 0 2.5rem;
  }

  .product-hero {
    grid-template-columns: 1fr;
    gap: 2.8rem;
    justify-items: center;
  }

  .product-copy {
    display: grid;
    justify-items: center;
    max-width: 100%;
    text-align: center;
  }

  .product-logo {
    width: 4.6rem;
    height: 4.6rem;
    margin-right: auto;
    margin-left: auto;
    border-radius: 1.15rem;
  }

  .product-page h1,
  .placeholder-page h1 {
    font-size: clamp(2.7rem, 16vw, 4.6rem);
  }

  .product-lead {
    max-width: 28rem;
    font-size: 1rem;
  }

  .store-links {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
    max-width: 28rem;
  }

  .store-link {
    justify-content: center;
  }

  .screenshot-orbit {
    display: flex;
    gap: 0.75rem;
    min-height: auto;
    margin-right: -0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0.75rem 1.6rem 0;
    perspective: none;
    scroll-snap-type: x mandatory;
  }

  .screenshot-orbit::before {
    display: none;
  }

  .phone-shot {
    position: static;
    flex: 0 0 min(68vw, 17rem);
    width: min(68vw, 17rem);
    opacity: 0.9;
    scroll-snap-align: center;
    transform: none;
  }
}

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