@font-face {
  font-family: "SpaceGroteskLocal";
  src: url("fonts/SpaceGrotesk-Variable.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SpaceMonoLocal";
  src: url("fonts/SpaceMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SpaceMonoLocal";
  src: url("fonts/SpaceMono-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #06111F;
  --bg-deep: #020812;
  --bg-warm: #111726;
  --panel: #0A1624;
  --panel-strong: #0D1B2B;
  --line: #26384D;
  --line-bright: #345F8D;
  --fg: #F4F8FF;
  --fg-soft: #B5C0CB;
  --fg-muted: #7D8996;
  --accent: #73BAFF;
  --accent-deep: #315D8A;
  --mint: #5DE3C1;
  --coral: #FF9A70;
  --gold: #F4C85B;
  --violet: #B59BFF;
  --ink-shadow: rgba(2, 8, 18, 0.72);
  --page-pad: 6vw;
  --ring-gap: clamp(8px, 1.2vw, 16px);
  --stack-shift: clamp(-142px, -8vw, -44px);
  --pic4-lift: clamp(18px, 7vh, 60px);
  --pic3-shift: clamp(74px, 7vw, 134px);
  --tilt-a: -5deg;
  --tilt-b: 5deg;
  --tilt-c: -7deg;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

html {
  background: var(--bg-deep);
  -webkit-text-size-adjust: 100%;
}

body {
  overflow: hidden;
  color: var(--fg);
  font-family: "SpaceGroteskLocal", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
  background:
    linear-gradient(137deg, rgba(6, 17, 31, 0.98) 0%, rgba(2, 8, 18, 1) 48%, rgba(16, 18, 36, 0.98) 100%),
    linear-gradient(90deg, rgba(93, 227, 193, 0.08), rgba(255, 154, 112, 0.05));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
}

.frame {
  height: 100%;
  width: 100%;
  padding-inline: var(--page-pad);
  display: flex;
}

.page {
  display: flex;
  height: 100%;
  width: 100%;
}

.left {
  flex: 0 0 70%;
  min-width: 0;
  height: 100%;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) 1.05fr minmax(230px, 1fr);
  grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: var(--ring-gap);
  align-items: center;
  justify-items: center;
  padding-block: clamp(16px, 3vh, 34px);
}

.right {
  flex: 0 0 30%;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  position: relative;
  z-index: 6;
  display: grid;
  place-items: center;
  padding: clamp(18px, 3vh, 28px) 0 clamp(42px, 6vh, 66px);
}

.hero {
  grid-column: 2;
  grid-row: 2;
  width: min(540px, 41vw);
  position: relative;
  z-index: 5;
  text-align: left;
}

.brand-lockup {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  min-height: 146px;
}

.appicon-wrap {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
}

.appicon-bg {
  position: absolute;
  top: -100px;
  left: -104px;
  width: 292px;
  height: 194px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 16px 42px rgba(2, 8, 18, 0.56);
  opacity: 0.88;
  z-index: 2;
  user-select: none;
  pointer-events: none;
  --tx: 0px;
  --ty: 0px;
  --rot: var(--tilt-a);
  transform: translate(var(--tx), var(--ty)) rotate(var(--rot));
  transform-origin: center center;
}

.appicon {
  position: relative;
  z-index: 6;
  width: 136px;
  height: 136px;
  object-fit: cover;
  border-radius: 31px;
  background: var(--panel);
  box-shadow:
    0 0 0 1px rgba(244, 248, 255, 0.78),
    0 18px 44px rgba(2, 8, 18, 0.62);
  transform: translate(10px, 14px);
}

.additional-links a,
.footer,
.slideshow-dots {
  font-family: "SpaceMonoLocal", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.subhead {
  margin: 26px 0 4px;
  color: var(--fg-soft);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0;
}

.headline {
  margin: 0;
  color: var(--fg);
  font-size: 62px;
  line-height: 0.94;
  font-weight: 700;
  letter-spacing: 0;
}

.headline span {
  color: var(--accent);
}

.lede {
  max-width: 470px;
  margin: 18px 0 0;
  color: var(--fg-soft);
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: 0;
}

.store-wrap {
  position: relative;
  display: inline-block;
  margin-top: 28px;
  --store-x: 22px;
  --store-y: -10px;
  --press-offset: 4px;
}

.store-bg {
  position: absolute;
  top: 16px;
  left: -112px;
  width: 302px;
  height: 212px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 16px 44px rgba(2, 8, 18, 0.58);
  opacity: 0.9;
  z-index: 2;
  user-select: none;
  pointer-events: none;
  --tx: 0px;
  --ty: 0px;
  --rot: var(--tilt-b);
  transform: translate(var(--tx), var(--ty)) rotate(var(--rot));
  transform-origin: center center;
}

.store-link {
  display: inline-block;
  position: relative;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.store-badge {
  position: relative;
  z-index: 6;
  width: 196px;
  height: auto;
  transform: translate(var(--store-x), var(--store-y));
  filter: drop-shadow(0 12px 26px rgba(2, 8, 18, 0.52));
  transition:
    transform 140ms cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 140ms ease;
}

.store-link:hover .store-badge,
.store-link:focus-visible .store-badge {
  filter: drop-shadow(0 16px 30px rgba(2, 8, 18, 0.58));
}

.store-link:active .store-badge,
.store-link.is-pressed .store-badge {
  transform: translate(var(--store-x), calc(var(--store-y) + var(--press-offset)));
  filter: drop-shadow(0 7px 16px rgba(2, 8, 18, 0.48));
}

.store-link:focus-visible,
.slideshow-dot:focus-visible,
.slideshow-shell:focus-visible,
.additional-links a:focus-visible {
  outline: 2px solid rgba(115, 186, 255, 0.58);
  outline-offset: 4px;
}

.additional-links {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  margin-left: 102px;
  position: relative;
  z-index: 7;
}

.additional-links a {
  color: rgba(244, 248, 255, 0.78);
  font-size: 11px;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 160ms ease;
}

.additional-links a:hover {
  color: var(--fg);
}

.ring {
  width: clamp(218px, 27vw, 350px);
  aspect-ratio: 3 / 2;
  border-radius: 16px;
  object-fit: cover;
  box-shadow:
    0 18px 50px rgba(2, 8, 18, 0.58),
    0 0 0 1px rgba(244, 248, 255, 0.08);
  user-select: none;
  pointer-events: none;
  z-index: 3;
  position: relative;
  transform-origin: center center;
}

.tr {
  grid-column: 3;
  grid-row: 1;
  --tx: var(--stack-shift);
  --ty: calc(-1 * var(--pic4-lift));
  --rot: var(--tilt-b);
  transform: translate(var(--tx), var(--ty)) rotate(var(--rot));
}

.mr {
  grid-column: 3;
  grid-row: 2;
  width: clamp(190px, 23vw, 310px);
  --tx: calc(var(--stack-shift) + var(--pic3-shift));
  --ty: 0px;
  --rot: var(--tilt-b);
  transform: translate(var(--tx), var(--ty)) rotate(var(--rot));
}

.br {
  grid-column: 3;
  grid-row: 3;
  --tx: var(--stack-shift);
  --ty: 0px;
  --rot: var(--tilt-a);
  transform: translate(var(--tx), var(--ty)) rotate(var(--rot));
}

.product-carousel {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 18px;
  width: min(100%, 360px);
  --phone-height: min(60svh, 560px);
  transform: translateX(clamp(0px, 0.6vw, 10px));
}

.slideshow-shell {
  position: relative;
  width: 100%;
  height: calc(var(--phone-height) + 104px);
  overflow: visible;
  border-radius: 0;
  isolation: isolate;
  touch-action: pan-y;
  filter: drop-shadow(0 30px 54px rgba(2, 8, 18, 0.66));
}

.slideshow-viewport {
  position: relative;
  width: 100%;
  height: 100%;
}

.slideshow-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 84px var(--phone-height);
  align-content: start;
  justify-items: center;
  gap: 20px;
  opacity: 0;
  transform: scale(0.982);
  filter: blur(8px) saturate(0.92);
  transition:
    opacity 440ms ease,
    transform 560ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 440ms ease;
  pointer-events: none;
  will-change: opacity, transform, filter;
}

.slideshow-slide.is-active {
  opacity: 1;
  transform: scale(1);
  filter: blur(0) saturate(1);
  z-index: 2;
}

.slideshow-slide.is-previous,
.slideshow-slide.is-next {
  z-index: 1;
}

.slide-caption {
  align-self: end;
  margin: 0;
  width: 100%;
  color: var(--fg);
  font-size: 34px;
  line-height: 0.94;
  font-weight: 700;
  letter-spacing: 0;
  text-align: center;
}

.slide-caption span {
  display: inline-block;
}

.accent-blue {
  color: var(--accent);
}

.accent-violet {
  color: var(--violet);
}

.accent-gold {
  color: var(--gold);
}

.accent-mint {
  color: var(--mint);
}

.accent-coral {
  color: var(--coral);
}

.iphone-frame {
  position: relative;
  width: calc(var(--phone-height) * 430 / 890);
  height: var(--phone-height);
  padding: 10px;
  border-radius: clamp(34px, 6svh, 50px);
  background: #000;
  box-shadow:
    inset 0 0 0 1px rgba(84, 101, 121, 0.08),
    inset 0 0 0 4px rgba(0, 0, 0, 0.94),
    0 26px 54px rgba(2, 8, 18, 0.52);
}

.iphone-frame::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 17px;
  z-index: 5;
  width: 33%;
  height: clamp(18px, 2.8svh, 25px);
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
}

.iphone-frame::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 28%;
  width: 3px;
  height: clamp(54px, 10svh, 86px);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(96, 110, 130, 0.82), rgba(5, 9, 15, 0.9));
}

.iphone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: clamp(28px, 5svh, 41px);
  background: #000;
}

.iphone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.slideshow-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 32px;
  padding: 9px 12px;
  border: 1px solid rgba(244, 248, 255, 0.12);
  border-radius: 999px;
  background: rgba(10, 22, 36, 0.72);
  box-shadow: 0 14px 28px rgba(2, 8, 18, 0.28);
  backdrop-filter: blur(16px);
}

.slideshow-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(181, 192, 203, 0.42);
  cursor: pointer;
  opacity: 0.9;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    opacity 160ms ease;
}

.slideshow-dot:hover {
  opacity: 1;
}

.slideshow-dot.is-active {
  background: var(--accent);
  transform: scale(1.28);
}

.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;
}

@keyframes burstOut {
  0% {
    transform: translate(calc(var(--tx) * 0.12), calc(var(--ty) * 0.12)) rotate(var(--rot)) scale(0.88);
    opacity: 0;
    filter: blur(6px);
  }

  62% {
    transform: translate(calc(var(--tx) * 1.04), calc(var(--ty) * 1.04)) rotate(var(--rot)) scale(1.02);
    opacity: 1;
    filter: blur(0);
  }

  100% {
    transform: translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(1);
    opacity: 1;
    filter: none;
  }
}

.burst {
  animation: burstOut 880ms cubic-bezier(0.18, 0.72, 0.2, 1.02) both;
  animation-delay: var(--delay, 0ms);
  will-change: transform, opacity, filter;
}

.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 10px var(--page-pad);
  color: rgba(244, 248, 255, 0.72);
  font-size: 11px;
  background: transparent;
  pointer-events: auto;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.045;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="160" height="160" viewBox="0 0 160 160"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.82" numOctaves="4" stitchTiles="stitch"/></filter><rect width="160" height="160" filter="url(%23n)" opacity="0.28"/></svg>') repeat;
}

.mobile-gallery {
  display: none;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.gallery-item {
  position: absolute;
  width: clamp(138px, 35vw, 200px);
  height: clamp(94px, 23vw, 133px);
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(2, 8, 18, 0.5);
  opacity: 0.88;
  z-index: 1;
}

.gallery-item:nth-child(1) {
  top: 9%;
  left: -16%;
  transform: rotate(-13deg);
}

.gallery-item:nth-child(2) {
  top: 5%;
  right: -20%;
  transform: rotate(10deg);
}

.gallery-item:nth-child(3) {
  top: 45%;
  left: -25%;
  transform: rotate(-8deg);
}

.gallery-item:nth-child(4) {
  top: 50%;
  right: -17%;
  transform: rotate(15deg);
}

.gallery-item:nth-child(5) {
  bottom: 13%;
  left: 50%;
  transform: translateX(-50%) rotate(-4deg);
}

::-webkit-scrollbar {
  display: none;
}

@media (max-width: 1200px) {
  .left {
    flex-basis: 66%;
    grid-template-columns: minmax(200px, 1fr) 1.05fr minmax(200px, 1fr);
  }

  .right {
    flex-basis: 34%;
  }

  .hero {
    width: min(560px, 52vw);
  }

  .headline {
    font-size: 58px;
  }

  .subhead {
    font-size: 25px;
  }

  .lede {
    font-size: 17px;
  }

  .ring {
    width: clamp(205px, 25vw, 330px);
  }

  .product-carousel {
    width: min(100%, 346px);
  }
}

@media (max-width: 960px) {
  .frame {
    padding-inline: clamp(18px, 4vw, 36px);
  }

  .page {
    flex-direction: column;
    height: auto;
    min-height: 100svh;
  }

  html,
  body {
    height: auto;
    overflow: auto;
  }

  .left,
  .right {
    flex: 0 0 auto;
    height: auto;
  }

  .left {
    min-height: 66svh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 48px 20px 30px;
    overflow: hidden;
  }

  .ring {
    display: none;
  }

  .mobile-gallery {
    display: block;
  }

  .hero {
    width: min(100%, 520px);
    text-align: center;
    padding: 28px 24px;
    border: 1px solid rgba(115, 186, 255, 0.16);
    border-radius: 22px;
    background: rgba(3, 10, 20, 0.84);
    box-shadow:
      0 20px 56px rgba(2, 8, 18, 0.46),
      inset 0 1px 0 rgba(244, 248, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .brand-lockup {
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
  }

  .appicon {
    width: 116px;
    height: 116px;
    border-radius: 27px;
    transform: none;
  }

  .appicon-bg {
    display: none;
  }

  .subhead {
    margin-top: 20px;
    font-size: 22px;
  }

  .headline {
    font-size: 56px;
    line-height: 0.98;
  }

  .lede {
    max-width: 430px;
    margin-inline: auto;
  }

  .store-wrap {
    --store-x: 0px;
    --store-y: 0px;
    --press-offset: 3px;
  }

  .store-bg {
    display: none;
  }

  .store-badge {
    width: 188px;
  }

  .additional-links {
    justify-content: center;
    margin-left: 0;
  }

  .right {
    width: 100%;
    min-height: auto;
    padding: 12px 18px 42px;
  }

  .product-carousel {
    width: min(100%, 330px);
    transform: none;
  }

  .slide-caption {
    font-size: 30px;
  }

  .footer {
    position: static;
    justify-content: center;
    padding: 20px 18px 28px;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .left {
    min-height: 62svh;
    padding: 36px 14px 22px;
  }

  .hero {
    max-width: 340px;
    padding: 24px 18px;
  }

  .appicon {
    width: 102px;
    height: 102px;
    border-radius: 24px;
  }

  .subhead {
    font-size: 19px;
  }

  .headline {
    font-size: 42px;
  }

  .lede {
    font-size: 16px;
  }

  .store-badge {
    width: 172px;
  }

  .additional-links {
    gap: 12px;
  }

  .right {
    padding-inline: 14px;
  }

  .product-carousel {
    width: min(100%, 300px);
    gap: 14px;
  }

  .slide-caption {
    font-size: 26px;
  }

  .slideshow-dots {
    gap: 7px;
    padding-inline: 10px;
  }

  .slideshow-dot {
    width: 7px;
    height: 7px;
  }

  .gallery-item:nth-child(n+3) {
    display: none;
  }
}

@media (max-width: 380px) {
  .headline {
    font-size: 36px;
  }

  .subhead {
    font-size: 18px;
  }

  .lede {
    font-size: 15px;
  }

  .product-carousel {
    width: min(100%, 276px);
  }

  .gallery-item {
    width: clamp(118px, 33vw, 150px);
    height: clamp(82px, 22vw, 104px);
  }
}

@media (max-width: 760px) and (orientation: landscape) and (max-height: 500px) {
  .page {
    flex-direction: row;
  }

  .left {
    flex: 1 1 58%;
    min-height: 100svh;
    padding: 16px;
  }

  .right {
    flex: 1 1 42%;
    padding: 12px;
  }

  .mobile-gallery {
    display: none;
  }

  .appicon {
    width: 76px;
    height: 76px;
    border-radius: 18px;
  }

  .hero {
    padding: 16px 14px;
    background: rgba(3, 10, 20, 0.9);
    box-shadow:
      0 12px 34px rgba(2, 8, 18, 0.42),
      inset 0 1px 0 rgba(244, 248, 255, 0.08);
  }

  .subhead {
    margin-top: 10px;
    font-size: 16px;
  }

  .headline {
    font-size: 34px;
  }

  .lede {
    display: none;
  }

  .store-wrap {
    margin-top: 12px;
  }

  .store-badge {
    width: 136px;
  }

  .additional-links {
    margin-top: 8px;
  }

  .product-carousel {
    width: min(100%, 184px);
    gap: 10px;
  }

  .footer {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .burst,
  .slideshow-slide,
  .store-badge,
  .slideshow-dot {
    animation: none;
    transition: none;
  }
}

@supports (padding: max(0px)) {
  .frame {
    padding-left: max(var(--page-pad), env(safe-area-inset-left));
    padding-right: max(var(--page-pad), env(safe-area-inset-right));
  }
}
