:root {
  color-scheme: dark;
  --bg: #121212;
  --text: #ffffff;
  --ghost: rgba(255, 255, 255, 0.15);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  height: 100vh;
  height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

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

.page {
  height: 100vh;
  height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero {
  width: min(100vw, 1440px);
  height: 100vh;
  height: 100dvh;
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(36px, 6vh, 64px) 32px clamp(48px, 7vh, 76px);
  overflow: hidden;
  isolation: isolate;
}

.brand-pill {
  position: absolute;
  top: clamp(40px, 7.8vh, 72px);
  left: 50%;
  z-index: 30;
  transform: translate(-50%, -4px);
  min-width: 132px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 14px 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(36, 36, 36, 0.58);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 18px 48px rgba(0, 0, 0, 0.26),
    0 0 0 1px rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
}

.brand-name {
  font-size: 0.93rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.tooltip {
  position: absolute;
  left: 50%;
  top: calc(100% + 12px);
  z-index: 20;
  width: max-content;
  max-width: 210px;
  transform: translateX(-50%) translateY(-4px);
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(18, 18, 18, 0.94);
  color: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.tooltip::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -5px;
  width: 9px;
  height: 9px;
  transform: translateX(-50%) rotate(45deg);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 18, 18, 0.94);
}

.brand-pill:hover .tooltip,
.brand-pill:focus-visible .tooltip,
.brand-pill:focus .tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.watch-composite {
  --watch-width: clamp(360px, 36.5vw, 400px);
  --screen-ratio: 0.52;
  --screen-height-ratio: 0.64;
  --screen-radius-ratio: 0.085;
  --watch-shell-scale: 0.922;
  --crown-copy-offset: 8px;

  position: relative;
  width: var(--watch-width);
  height: auto;
  aspect-ratio: 636 / 932;
  margin-top: clamp(22px, 6vh, 72px);
  margin-bottom: clamp(64px, 10vh, 92px);
  transform: translate(8px, -24px);
}

.watch-shell {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
  pointer-events: none;
  transform: scale(var(--watch-shell-scale));
  transform-origin: center;
  filter: drop-shadow(0 30px 52px rgba(0, 0, 0, 0.32));
}

.watch-screen {
  position: absolute;
  left: 49%;
  top: 48.5%;
  width: calc(var(--watch-width) * var(--screen-ratio));
  height: calc(var(--watch-width) * var(--screen-height-ratio));
  transform: translate(-50%, -48%);
  object-fit: cover;
  z-index: 2;
  border-radius: calc(var(--watch-width) * var(--screen-radius-ratio));
}

.watch-video {
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.watch-composite.is-playing .watch-video {
  opacity: 1;
}

.watch-composite.is-playing .watch-still {
  opacity: 0;
}

.side-copy {
  position: absolute;
  left: calc(100% + var(--crown-copy-offset));
  top: calc(39% - 8px);
  width: 210px;
  min-height: 42px;
  display: flex;
  align-items: center;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: 0;
  text-align: left;
  font-family: inherit;
}

.copy-controls {
  position: absolute;
  left: calc(100% + var(--crown-copy-offset));
  top: calc(39% + 54px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.copy-control {
  --progress: 0deg;
  position: relative;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(36, 36, 36, 0.72);
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  line-height: 1;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.copy-control::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(255, 196, 0, 0.72);
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
}

.copy-control.echo::after {
  animation: controlEcho 1200ms ease-out forwards;
}

@keyframes controlEcho {
  0% {
    opacity: 0;
    transform: scale(0.86);
  }

  24% {
    opacity: 0.72;
  }

  100% {
    opacity: 0;
    transform: scale(1.32);
  }
}

.copy-control[data-direction="1"] {
  border-color: transparent;
  background: rgba(36, 36, 36, 0.72);
}

.copy-control[data-direction="1"]::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(
    rgba(255, 255, 255, 0.82) var(--progress),
    rgba(255, 255, 255, 0.14) 0
  );
  pointer-events: none;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.copy-control:hover,
.copy-control:focus-visible {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(36, 36, 36, 0.92);
  color: rgba(255, 255, 255, 0.95);
}

.copy-control[data-direction="1"]:hover,
.copy-control[data-direction="1"]:focus-visible,
.copy-control.is-ready {
  color: rgba(255, 255, 255, 0.98);
}

.copy-control[data-direction="1"]:hover,
.copy-control[data-direction="1"]:focus-visible {
  background: rgba(36, 36, 36, 0.94);
}

.copy-control[hidden] {
  display: none;
}

.copy-line {
  display: block;
  will-change: opacity, transform;
}

.copy-line span {
  font-weight: 700;
}

.copy-line.is-exiting {
  animation: copyOut 720ms ease forwards;
}

.copy-line.is-entering {
  animation: copyIn 820ms ease forwards;
}

@keyframes copyOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-5px);
  }
}

@keyframes copyIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.app-store {
  width: 154px;
  height: 54px;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
}

.app-store img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-capsule {
  position: absolute;
  left: 50%;
  bottom: -72px;
  width: min(760px, calc(100% - 64px));
  height: 196px;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 92px;
  padding: 34px 64px 0;
  border-radius: 72px 72px 0 0;
  background: #242424;
}

.footer-copy {
  margin: 0;
  padding-top: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.69rem;
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: 0;
}

.footer-copy strong,
.footer-copy span {
  display: block;
}

.footer-copy strong {
  font-weight: 700;
}

.footer-copy span {
  opacity: 0.8;
}

.footer-copy a {
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease;
}

.footer-copy a:hover,
.footer-copy a:focus-visible {
  color: #ffc400;
}

@media (max-width: 800px) {
  .hero {
    padding: 50px 20px 40px;
    align-content: start;
  }

  .brand-pill {
    top: 28px;
    min-width: 112px;
    height: 56px;
    gap: 12px;
    padding: 7px 12px 7px 8px;
  }

  .app-icon {
    width: 42px;
    height: 42px;
  }

  .brand-name {
    font-size: 0.7rem;
  }

  .watch-composite {
    --watch-width: min(293px, 75vw, 40dvh);
    --screen-ratio: 0.638;
    --screen-height-ratio: 0.786;
    --screen-radius-ratio: 0.109;
    --watch-shell-scale: 1.1;

    height: auto;
    transform: translate(12px, 16px);
    margin-top: clamp(8px, 3vh, 28px);
    margin-bottom: clamp(142px, 23vh, 208px);
  }

  .side-copy {
    left: 50%;
    top: calc(100% + 58px);
    bottom: auto;
    width: min(210px, calc(100vw - 96px));
    min-height: 34px;
    transform: translateX(-50%);
    justify-content: center;
    text-align: center;
    font-size: 0.74rem;
  }

  .copy-controls {
    left: 50%;
    top: calc(100% + 16px);
    transform: translateX(-50%);
    z-index: 6;
  }

  .copy-control {
    width: 28px;
    height: 28px;
    font-size: 0.78rem;
  }

  .footer-capsule {
    bottom: calc(-180px - env(safe-area-inset-bottom, 0px));
    width: calc(100% - 32px);
    height: calc(302px + env(safe-area-inset-bottom, 0px));
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 24px 28px calc(28px + env(safe-area-inset-bottom, 0px));
    border-radius: 42px 42px 0 0;
  }

  .app-store {
    width: 146px;
    height: 51px;
  }

  .footer-copy {
    padding-top: 0;
    text-align: center;
    font-size: 0.58rem;
  }
}

@media (max-height: 760px) and (min-width: 801px) {
  .hero {
    padding-top: 44px;
    padding-bottom: 50px;
  }

  .brand-pill {
    top: 28px;
    min-width: 112px;
    height: 56px;
    gap: 12px;
    padding: 7px 12px 7px 8px;
  }

  .app-icon {
    width: 42px;
    height: 42px;
  }

  .brand-name {
    font-size: 0.7rem;
  }

  .watch-composite {
    --watch-width: 411px;

    height: auto;
    margin-top: 100px;
    margin-bottom: 78px;
  }

  .footer-capsule {
    bottom: -58px;
    height: 168px;
    padding-top: 28px;
    gap: 72px;
  }
}


@media (max-width: 800px) and (max-height: 720px) {
  .brand-pill {
    top: 18px;
  }

  .watch-composite {
    --watch-width: min(236px, 62vw, 34dvh);

    margin-top: 30px;
    margin-bottom: 136px;
  }

  .side-copy {
    top: calc(100% + 50px);
  }

  .copy-controls {
    top: calc(100% + 12px);
  }

  .footer-capsule {
    bottom: calc(-180px - env(safe-area-inset-bottom, 0px));
  }
}
