@font-face {
  font-family: Inter;
  src: url("inter.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: Inter, Arial, sans-serif;
  --bg: #08090d;
  --text: #f2f0f7;
  --soft: #aeb1bd;
  --muted: #7d8190;
  --violet: #bba2f5;
  --violet-hi: #e4d8ff;
  --accent: #7c3aed;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
p,
ol {
  margin: 0;
}

a {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 4px;
  border-radius: 8px;
}

::selection {
  color: #fff;
  background: #6d28d9;
}

/* Backdrop */

.backdrop {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.aurora {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .5;
}

.aurora-a {
  top: -25vmax;
  right: -15vmax;
  background: radial-gradient(circle, #5b21b6 0%, transparent 65%);
  animation: drift-a 22s ease-in-out infinite alternate;
}

.aurora-b {
  bottom: -30vmax;
  left: -20vmax;
  background: radial-gradient(circle, #3b1f6e 0%, transparent 65%);
  animation: drift-b 26s ease-in-out infinite alternate;
}

.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#ffffff08 1px, transparent 1px),
    linear-gradient(90deg, #ffffff08 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 45%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 10%, transparent 70%);
}

/* Header */

.top {
  display: flex;
  justify-content: center;
  padding: max(20px, env(safe-area-inset-top)) 16px 0;
}

.logo {
  display: block;
  width: clamp(130px, 14vw, 170px);
  height: auto;
}

/* Stage */

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  width: min(100% - 32px, 1100px);
  margin-inline: auto;
  padding-block: 16px;
}

.art {
  position: relative;
  width: min(100%, 52svh, 460px);
  aspect-ratio: 1;
  justify-self: center;
  isolation: isolate;
}

.halo {
  position: absolute;
  z-index: -1;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, #7c3aed55, #2a124a22 50%, transparent 70%);
  animation: breathe 6s ease-in-out infinite;
}

.orbits {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.spin {
  transform-origin: 300px 300px;
}

.spin-fast { animation: spin 14s linear infinite; }
.spin-slow { animation: spin 40s linear infinite; }
.spin-rev { animation: spin 32s linear infinite reverse; }

.ring {
  stroke-dasharray: 1672;
  stroke-dashoffset: 1672;
  animation: draw 2.4s var(--ease-out) .3s forwards;
}

.emblem {
  position: absolute;
  top: 15%;
  left: 24%;
  width: 52%;
  height: 70%;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px #000000a0) drop-shadow(0 0 18px #8b5cf640);
  animation: float 7s ease-in-out infinite;
}

/* Copy */

.product-gallery {
  width: min(340px, 100%, calc(66svh * .6054));
  justify-self: center;
}

.gallery-frames {
  position: relative;
  aspect-ratio: 356 / 588;
  overflow: hidden;
  border-radius: 18px;
  background: #0b0a1a;
  box-shadow: 0 24px 48px -24px #000c;
}

.gallery-card {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 450ms ease;
  pointer-events: none;
  user-select: none;
}

.gallery-card.is-active { opacity: 1; }

.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-top: 8px;
}

.gallery-position { display: flex; gap: 5px; }
.gallery-position span { width: 14px; height: 3px; border-radius: 2px; background: #bba2f52e; }
.gallery-position .is-current { background: var(--violet); }

.gallery-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--soft);
  cursor: pointer;
}

.gallery-toggle:hover { color: var(--text); background: #bba2f512; }
.gallery-toggle .play-icon { display: none; }
.product-gallery[data-paused="true"] .pause-icon { display: none; }
.product-gallery[data-paused="true"] .play-icon { display: block; }

.copy {
  display: grid;
  gap: clamp(14px, 2.4svh, 22px);
  max-width: 540px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 6px 12px 6px 10px;
  border: 1px solid #bba2f533;
  border-radius: 999px;
  background: #bba2f50d;
  color: var(--violet);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
}

.dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a78bfa;
}

.dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #a78bfa;
  animation: ping 2.4s var(--ease-out) infinite;
}

h1 {
  font-size: clamp(30px, min(5vw, 7svh), 56px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.shine {
  background: linear-gradient(100deg, #b79cf7 0%, #efe7ff 40%, #b79cf7 60%, #8b5cf6 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 6s ease-in-out 1.4s infinite;
}

.lede {
  color: var(--soft);
  font-size: clamp(15px, 2svh, 17px);
  max-width: 46ch;
}

/* Steps */

.steps {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  max-width: 440px;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.steps::before,
.steps::after {
  content: "";
  position: absolute;
  top: 13px;
  left: 14px;
  right: 14px;
  height: 1px;
  background: #ffffff1f;
}

.steps::after {
  right: auto;
  width: 0;
  background: linear-gradient(90deg, #7c3aed, #c4b5fd);
  box-shadow: 0 0 10px #a78bfa;
  animation: progress 6s var(--ease-out) 1.2s infinite;
}

.steps li {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

.steps li:first-child { justify-items: start; text-align: left; }
.steps li:last-child { justify-items: end; text-align: right; }

.steps span {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid #bba2f540;
  border-radius: 50%;
  background: var(--bg);
  color: var(--violet);
  font-size: 12px;
  font-weight: 700;
  animation: light 6s ease-in-out 1.2s infinite;
}

.steps li:nth-child(2) span { animation-delay: 2.2s; }
.steps li:nth-child(3) span { animation-delay: 3.2s; }

/* Actions */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cta,
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 200ms var(--ease-out), background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.cta {
  position: relative;
  overflow: hidden;
  border: 0;
  color: inherit;
  font-family: inherit;
  line-height: inherit;
  cursor: pointer;
  background: linear-gradient(180deg, #8b4cf6, #6d28d9);
  box-shadow: inset 0 1px 0 #ffffff30, 0 10px 30px -8px #7c3aedaa;
}

.cta:disabled {
  cursor: wait;
  opacity: .75;
  transform: none;
}

.link-status {
  color: var(--soft);
  font-size: 14px;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, #ffffff40 50%, transparent 70%);
  transform: translateX(-120%);
  animation: sweep 4.5s ease-in-out 2s infinite;
}

.cta > * {
  position: relative;
}

.cta svg {
  transition: transform 200ms var(--ease-out);
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 #ffffff30, 0 16px 36px -8px #7c3aedcc;
}

.cta:hover svg {
  transform: translateX(4px);
}

.ghost {
  border: 1px solid #ffffff26;
  background: #ffffff06;
}

.ghost:hover {
  border-color: var(--violet);
  transform: translateY(-2px);
}

.cta:active,
.ghost:active {
  transform: scale(.98);
}

.signin,
.licence {
  color: var(--muted);
  font-size: 13px;
}

.signin a {
  color: var(--violet);
  text-underline-offset: 3px;
}

/* Footer */

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 20px;
  width: min(100% - 32px, 1100px);
  margin-inline: auto;
  padding: 14px 0 max(16px, env(safe-area-inset-bottom));
  border-top: 1px solid #ffffff12;
  color: var(--muted);
  font-size: 12px;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.foot a {
  text-decoration: none;
}

.foot a:hover {
  color: var(--text);
}

/* Entrance */

/* No base opacity:0, so content stays visible if animations never run (crawlers, ad review screenshots). */
.reveal {
  animation: rise .9s var(--ease-out) calc(var(--i, 0) * 70ms + 60ms) both;
}

.art.reveal {
  animation: zoom-in 1.3s var(--ease-out) .1s both;
}

/* Footer only fades, so the entrance never pushes the page past one screen. */
.foot.reveal {
  animation-name: fade;
}

/* Keyframes */

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

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

@keyframes zoom-in {
  from { opacity: 0; transform: scale(.88) rotate(-8deg); filter: blur(10px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

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

@keyframes breathe {
  0%, 100% { opacity: .7; transform: scale(.96); }
  50% { opacity: 1; transform: scale(1.04); }
}

@keyframes ping {
  0% { transform: scale(1); opacity: .8; }
  80%, 100% { transform: scale(3); opacity: 0; }
}

@keyframes sheen {
  0%, 15% { background-position: 100% 0; }
  60%, 100% { background-position: 0 0; }
}

@keyframes sweep {
  0% { transform: translateX(-120%); }
  35%, 100% { transform: translateX(120%); }
}

@keyframes progress {
  0% { width: 0; opacity: 1; }
  55% { width: calc(100% - 28px); opacity: 1; }
  85% { width: calc(100% - 28px); opacity: 0; }
  100% { width: 0; opacity: 0; }
}

@keyframes light {
  0%, 8% { border-color: #bba2f540; color: var(--violet); box-shadow: none; background: var(--bg); }
  14%, 70% { border-color: #a78bfa; color: #fff; box-shadow: 0 0 14px #8b5cf6aa; background: #6d28d9; }
  85%, 100% { border-color: #bba2f540; color: var(--violet); box-shadow: none; background: var(--bg); }
}

@keyframes drift-a {
  to { transform: translate(-10vmax, 8vmax) scale(1.1); }
}

@keyframes drift-b {
  to { transform: translate(12vmax, -6vmax) scale(1.15); }
}

html[data-motion="paused"] *,
html[data-motion="paused"] *::before,
html[data-motion="paused"] *::after {
  animation-play-state: paused !important;
}

/* Tablet and phone: stack, art shrinks to fit one screen */

@media (max-width: 860px) {
  .product-gallery {
    width: min(240px, 53vw, calc(37svh * .6054));
  }
  .stage {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: clamp(8px, 2svh, 20px);
    text-align: center;
  }

  .art {
    width: min(64vw, 30svh, 300px);
  }

  .copy {
    justify-items: center;
  }

  .lede {
    margin-inline: auto;
  }

  .steps {
    width: 100%;
  }

  .actions {
    justify-content: center;
    width: 100%;
  }

  .foot {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .top {
    padding-top: max(14px, env(safe-area-inset-top));
  }

  .copy {
    gap: clamp(10px, 1.8svh, 16px);
  }

  .eyebrow {
    font-size: 11px;
  }

  .lede {
    font-size: 14px;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cta,
  .ghost {
    min-height: 48px;
    padding: 0 16px;
    font-size: 15px;
    white-space: nowrap;
  }

  .ghost {
    min-height: 44px;
  }

  .foot {
    gap: 4px 14px;
    padding-top: 10px;
    font-size: 11px;
  }
}

/* Short screens (small phones, landscape laptops) */

@media (max-width: 860px) and (max-height: 700px) {
  .product-gallery { width: min(180px, calc(30svh * .6054)); }
  .stage {
    padding-block: 4px;
  }

  .art {
    width: min(48vw, 20svh, 190px);
  }

  .copy {
    gap: 10px;
  }

  h1 {
    font-size: clamp(26px, 6.4svh, 34px);
  }

  .steps {
    display: none;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .product-gallery { width: min(220px, calc(65svh * .6054)); }
  .stage {
    grid-template-columns: auto minmax(0, 1fr);
    text-align: left;
  }

  .art {
    width: min(36vw, 60svh);
  }

  .copy,
  .actions {
    justify-items: start;
    justify-content: start;
  }

  .lede,
  .steps {
    display: none;
  }

  .foot {
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
  }

  .ring {
    stroke-dashoffset: 0;
  }
}

@media (forced-colors: active) {
  .cta,
  .ghost {
    border: 1px solid ButtonText;
  }

  .shine {
    color: CanvasText;
  }
}
