:root {
  --bg: #080b09;
  --surface: #111412;
  --card: #141a16;
  --border: #283329;
  --text: #e1e3df;
  --muted: #c4c9b0;
  --lime: #b8e83e;
  --lime-soft: #e3ff9f;
  --ink: #263500;
  --glow: rgba(184, 232, 62, 0.28);
  --font: "Hanken Grotesk", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

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

.glow {
  position: fixed;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.35;
  z-index: 0;
}

.glow-a {
  top: -12vw;
  right: -8vw;
  background: var(--glow);
}

.glow-b {
  bottom: 10vh;
  left: -16vw;
  background: rgba(184, 232, 62, 0.12);
}

.nav,
main,
.footer {
  position: relative;
  z-index: 1;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px max(24px, calc((100% - 1072px) / 2)) 8px;
  border-bottom: 1px solid transparent;
  transition:
    padding 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.nav.scrolled {
  padding-top: 12px;
  padding-bottom: 12px;
  background-color: rgba(8, 11, 9, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  display: block;
  border: 0;
  outline: none;
  box-shadow: 0 0 24px var(--glow);
}

.mark img,
img.mark {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border: 0;
  outline: none;
  background: #000;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-cta {
  color: var(--ink);
  background: var(--lime);
  padding: 10px 16px;
  border-radius: 999px;
}

.hero,
.band,
.features,
.download {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 24px;
}

.hero {
  text-align: center;
  padding-top: 56px;
}

.hero-logo {
  position: relative;
  width: 112px;
  margin: 28px auto 20px;
}

/* Winner's crown worn on the logo's top-left corner. The same image is drawn
   twice: the whole crown behind the icon, and only its front band in front,
   so the corner looks like it goes through the crown. */
.crown {
  position: absolute;
  top: -27px;
  left: -25px;
  width: 98px;
  aspect-ratio: 240 / 121;
  background: url(/crown-worn.png) center / 100% 100% no-repeat;
  rotate: -26deg;
  pointer-events: none;
}

/* A glint of light, kept inside the crown's shape by masking with the image. */
.crown::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      110deg,
      transparent 40%,
      rgba(255, 255, 240, 0.85) 50%,
      transparent 60%
    )
    100% 0 / 300% 100% no-repeat;
  -webkit-mask: url(/crown-worn.png) center / 100% 100% no-repeat;
  mask: url(/crown-worn.png) center / 100% 100% no-repeat;
}

.award-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 720px;
  margin: 28px auto 0;
  padding: 16px 22px;
  border: 1px solid rgba(184, 232, 62, 0.45);
  border-radius: 20px;
}

/* Light that sweeps along the award card's outline. */
.award-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 2.5px;
  border-radius: inherit;
  background: linear-gradient(
      90deg,
      transparent 44%,
      var(--lime) 48.5%,
      #ffffff 50%,
      var(--lime) 51.5%,
      transparent 56%
    )
    100% 0 / 300% 100% no-repeat;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
}

.award-card strong {
  font-weight: 800;
}

.award-card small {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.award-card a {
  color: var(--lime-soft);
  text-decoration: underline;
}

.crown-back {
  z-index: 0;
}

.crown-front {
  z-index: 2;
  clip-path: inset(52% 0 0 0);
}

.hero-icon {
  position: relative;
  z-index: 1;
  width: 112px;
  height: 112px;
  margin: 0;
  display: block;
  border: 0;
  outline: none;
  object-fit: cover;
  border-radius: 28px;
  background: #000;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 40px var(--glow);
}

.eyebrow {
  color: var(--lime);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 800;
  margin: 12px 0 18px;
}

.lede,
.section-copy {
  max-width: 640px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.125rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 28px 0 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
}

.btn-lime {
  background: var(--lime);
  color: var(--ink);
}

.btn-ghost {
  border: 1px solid var(--border);
  background: var(--card);
}

.platforms {
  color: var(--muted);
  font-size: 0.9rem;
}

.phone {
  width: min(300px, 80vw);
  margin: 56px auto 0;
  border-radius: 44px;
  padding: 10px;
  background: #0c0f0d;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 60px var(--glow);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 34px;
}

.hero-phones {
  transform: perspective(1400px) rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg));
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 56px;
}

.hero-phones .phone {
  margin: 0;
  flex: none;
}

.hero-phones .phone-main {
  position: relative;
  z-index: 2;
  width: min(300px, 62vw);
}

.hero-phones .phone-side {
  width: min(250px, 48vw);
  opacity: 0.85;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

/* The side screens are cards behind Home. --fan runs from 0 (stacked behind
   it) to 1 (spread out like a hand of cards); the page script drives it from
   the scroll position, and without the script they simply stay spread. */
.hero-phones {
  --fan: 1;
  --pull: 150px;
}

.hero-phones .phone-side {
  transform-origin: 50% 100%;
  transition:
    translate 0.15s linear,
    rotate 0.15s linear;
}

.hero-phones .phone-side:first-child {
  margin-right: -96px;
  translate: calc((1 - var(--fan)) * var(--pull)) 0;
  rotate: calc(-2deg - var(--fan) * 4deg);
}

.hero-phones .phone-side:last-child {
  margin-left: -96px;
  translate: calc((var(--fan) - 1) * var(--pull)) 0;
  rotate: calc(2deg + var(--fan) * 4deg);
}

.phone.swap {
  display: grid;
}

.phone.swap img {
  grid-area: 1 / 1;
  transition: opacity 0.9s ease;
}

.phone.swap img:not(.on) {
  opacity: 0;
}

.video {
  position: relative;
  max-width: 860px;
  aspect-ratio: 16 / 9;
  margin: 40px auto 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 50% 45%, rgba(184, 232, 62, 0.16), transparent 55%),
    var(--card);
  background-size: cover;
  background-position: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  display: grid;
  place-items: center;
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-play {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 0;
  background: var(--lime);
  box-shadow: 0 0 0 10px rgba(184, 232, 62, 0.16), 0 0 50px var(--glow);
  display: grid;
  place-items: center;
  cursor: default;
}

.video.has-video .video-play {
  cursor: pointer;
  transition: scale 0.2s ease;
}

.video.has-video .video-play:hover {
  scale: 1.08;
}

.video-icon {
  width: 0;
  height: 0;
  margin-left: 6px;
  border-style: solid;
  border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent var(--ink);
}

.video-note {
  position: absolute;
  bottom: 18px;
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.video.has-video .video-note {
  display: none;
}

.cursor-glow {
  position: fixed;
  top: -260px;
  left: -260px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 232, 62, 0.09), transparent 62%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.cursor-glow.on {
  opacity: 1;
}

.shine {
  background: linear-gradient(
    100deg,
    var(--text) 40%,
    var(--lime-soft) 50%,
    var(--text) 60%
  );
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.store.store-with-icon {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.store-with-icon > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.store-icon {
  width: 30px;
  height: 30px;
  flex: none;
  color: var(--text);
}

.store-live {
  position: relative;
}

/* A light that runs around the border on hover. */
.store-live::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 2px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--angle),
    transparent 0 62%,
    var(--lime-soft) 82%,
    transparent 100%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.store-live:hover::before {
  opacity: 1;
}

.screens {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 24px;
}

.screens h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-align: center;
  margin-bottom: 12px;
}

.screen-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 8px;
}

.screen-row figure {
  margin: 0;
}

.screen-row .phone {
  width: 100%;
  max-width: 280px;
  margin: 32px auto 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 40px var(--glow);
}

.screen-row figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 280px;
  margin: 20px auto 0;
  text-align: center;
}

.screen-row figcaption strong {
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.screen-row figcaption span {
  color: var(--muted);
}

.band h2,
.download h2,
.legal h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-align: center;
  margin-bottom: 12px;
}

.steps,
.features {
  display: grid;
  gap: 16px;
  margin-top: 36px;
}

.steps {
  grid-template-columns: repeat(3, 1fr);
}

.features {
  grid-template-columns: repeat(3, 1fr);
  padding-top: 8px;
}

.steps article,
.features article {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 22px;
}

.steps h3,
.features h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.steps p,
.features p {
  margin: 0;
  color: var(--muted);
}

.download {
  text-align: center;
}

.download p {
  color: var(--muted);
}

.store-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.store {
  min-width: 220px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.store em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.9rem;
}

.store-live {
  color: var(--text);
  text-decoration: none;
  border-color: var(--lime);
  transition: background 0.15s ease;
}

.store-live em {
  color: var(--lime-soft);
}

.store-live:hover {
  background: var(--surface);
}

.footer,
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 24px 48px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  max-width: 1120px;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.legal-subnav,
.operator {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 4px 24px 0;
}

.legal-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--muted);
}

.legal-subnav a[aria-current="page"] {
  color: var(--lime);
}

.operator {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-top: 10px;
}

.legal h1 {
  text-align: left;
}

.legal h2 {
  margin-top: 28px;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.legal p,
.legal li {
  color: var(--muted);
}

.legal a {
  color: var(--lime-soft);
  text-decoration: underline;
}

.legal a.btn {
  text-decoration: none;
  margin: 8px 0 16px;
}

.legal a.btn-lime {
  color: var(--ink);
}

.table-wrap {
  overflow-x: auto;
  margin: 16px 0 8px;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.legal th,
.legal td {
  border: 1px solid var(--border);
  padding: 12px 14px;
  vertical-align: top;
  text-align: left;
}

.legal th {
  color: var(--text);
  background: var(--card);
  font-weight: 700;
}

.legal td:first-child {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
  width: 28%;
}

.legal ol {
  padding-left: 1.2rem;
}

.legal-end {
  margin-top: 36px;
}

@media (max-width: 800px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .legal td:first-child {
    white-space: normal;
  }

  .steps,
  .features,
  .screen-row {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
  }

  .hero-phones .phone-main {
    width: 56vw;
  }

  .hero-phones .phone-side {
    width: 40vw;
  }

  .hero-phones {
    --pull: 14vw;
  }

  .hero-phones .phone-side:first-child {
    margin-right: -31vw;
  }

  .hero-phones .phone-side:last-child {
    margin-left: -31vw;
  }
}

/* Motion. Everything here is skipped when the visitor asks for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .shine {
    animation: shine 1.6s ease-in-out 1.1s both;
  }

  .store-live:hover::before {
    animation: orbit 2.4s linear infinite;
  }

  .hero-logo,
  .award-card,
  .hero .eyebrow,
  .hero h1,
  .hero .lede,
  .hero-actions {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .hero .eyebrow {
    animation-delay: 0.08s;
  }

  .hero h1 {
    animation-delay: 0.16s;
  }

  .hero .lede {
    animation-delay: 0.24s;
  }

  .hero-actions {
    animation-delay: 0.32s;
  }

  .award-card {
    animation-delay: 0.4s;
  }

  .crown::after {
    animation: glint 4.5s ease-in-out 1.6s infinite;
  }

  .award-card::before {
    opacity: 1;
    animation: sweep 5s ease-in-out 1.2s infinite;
  }

  .crown {
    animation: crown-drop 0.7s cubic-bezier(0.3, 1.5, 0.5, 1) 0.5s both;
  }

  .hero-phones .phone-main {
    animation:
      rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.4s both,
      float 6s ease-in-out 1.3s infinite;
  }

  .js .hero-phones {
    --fan: 0;
  }

  .hero-phones .phone-side:first-child {
    animation:
      fade-in 0.6s ease 0.6s both,
      float 7s ease-in-out 1.65s infinite;
  }

  .hero-phones .phone-side:last-child {
    animation:
      fade-in 0.6s ease 0.6s both,
      float 6.5s ease-in-out 2.4s infinite;
  }

  .reveal {
    opacity: 0;
    translate: 0 28px;
    transition:
      opacity 0.7s ease,
      translate 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .reveal.is-in {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    translate: 0 24px;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes shine {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: 0 0;
  }
}

@keyframes orbit {
  to {
    --angle: 360deg;
  }
}

@keyframes crown-drop {
  from {
    opacity: 0;
    translate: 0 -24px;
  }
}

/* The glint crosses quickly, then rests until the next pass. */
@keyframes glint {
  0% {
    background-position: 100% 0;
  }
  30%,
  100% {
    background-position: 0 0;
  }
}

@keyframes sweep {
  0% {
    background-position: 100% 0;
  }
  45%,
  100% {
    background-position: 0 0;
  }
}
