@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;
  --photo-radius: 8px;
}

* {
  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%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.left {
  flex: 0 0 70%;
  min-width: 0;
  height: 100%;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(240px, 0.66fr);
  gap: clamp(24px, 3.8vw, 58px);
  align-items: center;
  justify-items: center;
  padding-block: clamp(22px, 4vh, 46px);
  padding-right: clamp(10px, 2vw, 28px);
}

.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 {
  width: min(560px, 100%);
  position: relative;
  z-index: 5;
  text-align: left;
  justify-self: end;
}

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

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

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

.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: 0px;
  --store-y: 0px;
  --press-offset: 4px;
}

.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: 16px;
  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);
}

.ambient-photos {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.ambient-photos::before,
.ambient-photos::after {
  content: "";
  position: absolute;
  z-index: 1;
  width: clamp(220px, 22vw, 360px);
  border-top: 1px dashed rgba(244, 248, 255, 0.14);
  pointer-events: none;
}

.ambient-photos::before {
  top: 22%;
  left: 39%;
  transform: rotate(17deg);
}

.ambient-photos::after {
  right: 8%;
  bottom: 20%;
  transform: rotate(-12deg);
}

.ambient-photo {
  position: absolute;
  z-index: 2;
  overflow: hidden;
  border-radius: var(--photo-radius);
  background: rgba(10, 22, 36, 0.7);
  box-shadow:
    0 20px 44px rgba(2, 8, 18, 0.46),
    0 0 0 1px rgba(244, 248, 255, 0.1);
  transform: rotate(var(--photo-rotate, 0deg));
  transform-origin: center;
}

.ambient-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(244, 248, 255, 0.1);
  pointer-events: none;
}

.ambient-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

.ambient-photo-work {
  top: 8%;
  left: 43%;
  width: clamp(166px, 16vw, 254px);
  aspect-ratio: 4 / 3;
  --photo-rotate: -4deg;
}

.ambient-photo-water {
  top: 30%;
  left: 55%;
  width: clamp(150px, 15vw, 232px);
  aspect-ratio: 3 / 2;
  --photo-rotate: 6deg;
}

.ambient-photo-cafe {
  top: 38%;
  left: 37%;
  width: clamp(128px, 12vw, 188px);
  aspect-ratio: 3 / 4;
  --photo-rotate: -5deg;
}

.ambient-photo-drive {
  left: 46%;
  bottom: 14%;
  width: clamp(178px, 18vw, 282px);
  aspect-ratio: 3 / 2;
  --photo-rotate: 4deg;
}

.ambient-photo-camp {
  right: 5%;
  bottom: 16%;
  width: clamp(126px, 12vw, 190px);
  aspect-ratio: 1 / 1;
  opacity: 0.88;
  --photo-rotate: -7deg;
}

.ambient-photo-work img {
  object-position: center 56%;
}

.ambient-photo-water img {
  object-position: 54% 50%;
}

.ambient-photo-cafe img {
  object-position: 58% 52%;
}

.ambient-photo-drive img {
  object-position: 52% 52%;
}

.ambient-photo-camp img {
  object-position: 67% 54%;
}

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

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

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

@media (max-width: 1200px) {
  .left {
    flex-basis: 64%;
    grid-template-columns: minmax(300px, 1fr) minmax(250px, 0.66fr);
    gap: clamp(22px, 3vw, 44px);
  }

  .right {
    flex-basis: 36%;
  }

  .hero {
    width: min(520px, 100%);
  }

  .headline {
    font-size: 58px;
  }

  .subhead {
    font-size: 25px;
  }

  .lede {
    font-size: 17px;
  }

  .ambient-photo-work {
    left: 40%;
    width: clamp(146px, 15vw, 210px);
  }

  .ambient-photo-water {
    left: 52%;
    width: clamp(136px, 14vw, 198px);
  }

  .ambient-photo-cafe {
    left: 37%;
    width: clamp(118px, 12vw, 168px);
  }

  .ambient-photo-drive {
    left: 43%;
    width: clamp(158px, 17vw, 230px);
  }

  .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: auto;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 30px;
    padding: 48px 20px 30px;
    overflow: visible;
  }

  .hero {
    width: min(100%, 540px);
    text-align: center;
    justify-self: center;
    padding: 0;
  }

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

  .ambient-photos::before,
  .ambient-photos::after {
    display: none;
  }

  .ambient-photo-work {
    top: 540px;
    left: 5%;
    width: min(62vw, 330px);
  }

  .ambient-photo-water {
    top: 630px;
    left: auto;
    right: -3%;
    width: min(49vw, 250px);
  }

  .ambient-photo-cafe {
    top: 770px;
    left: -3%;
    width: min(42vw, 210px);
  }

  .ambient-photo-drive {
    top: 900px;
    left: 12%;
    bottom: auto;
    width: min(66vw, 350px);
  }

  .ambient-photo-camp {
    top: 920px;
    right: -4%;
    bottom: auto;
    width: min(42vw, 220px);
  }

  .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-badge {
    width: 188px;
  }

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

  .right {
    width: 100%;
    min-height: auto;
    margin-top: clamp(500px, 135vw, 620px);
    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;
  }

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

  .ambient-photo-work {
    top: 540px;
    left: 1%;
    width: 62vw;
  }

  .ambient-photo-water {
    top: 640px;
    right: -5%;
    width: 49vw;
  }

  .ambient-photo-cafe {
    top: 780px;
    left: -7%;
    width: 42vw;
  }

  .ambient-photo-drive {
    top: 900px;
    left: 6%;
    width: 67vw;
  }

  .ambient-photo-camp {
    top: 930px;
    right: -8%;
    width: 43vw;
  }

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

}

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

  .subhead {
    font-size: 18px;
  }

  .lede {
    font-size: 15px;
  }

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

}

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

  .ambient-photos {
    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) {
  .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));
  }
}
