: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;
  min-height: 100%;
}

body {
  min-height: 100vh;
  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 {
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero {
  width: min(100vw, 1440px);
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  padding: 64px 32px 76px;
  isolation: isolate;
}

.brand-pill {
  position: absolute;
  top: clamp(40px, 7.8vh, 72px);
  left: 50%;
  z-index: 10;
  transform: translateX(-50%);
  min-width: 132px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 14px 8px 10px;
  border: 0;
  border-radius: 999px;
  background: #242424;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.16);
}

.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 {
  position: relative;
  width: 312px;
  height: 457px;
  aspect-ratio: 636 / 932;
  margin-top: clamp(88px, 12vh, 136px);
  margin-bottom: 92px;
  transform: translateY(16px);
}

.watch-shell {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 30px 52px rgba(0, 0, 0, 0.32));
}

.watch-screen {
  position: absolute;
  left: 49%;
  top: 48.5%;
  width: 182px;
  height: auto;
  transform: translate(-50%, -48%);
  object-fit: contain;
  border-radius: 32px;
}

.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% - 6px);
  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% - 6px);
  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 {
    width: min(266px, 68vw);
    height: auto;
    margin-top: 56px;
    margin-bottom: 208px;
  }

  .watch-shell {
    transform: scale(1.1);
    transform-origin: center;
  }

  .watch-screen {
    width: 152px;
  }

  .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: -102px;
    width: calc(100% - 32px);
    height: 224px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 24px 28px 0;
    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 {
    width: 242px;
    height: 355px;
    margin-top: 100px;
    margin-bottom: 78px;
  }

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