:root {
  --bg: #0b0907;
  --bg-elevated: #14110f;
  --tile: #1d1a18;
  --fg: #edebe7;
  --muted: #938e89;
  --amber: #f7a224;
  --amber-soft: rgba(247, 162, 36, 0.16);
  --violet: #7b3fd6;
  --violet-deep: #2a1048;
  --navy: #0a0e1c;
  --line: rgba(237, 235, 231, 0.1);
  --radius: 18px;
  --max: 1120px;
  --font-display: "Onest", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--fg);
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(123, 63, 214, 0.28), transparent 55%),
    radial-gradient(900px 500px at 0% 20%, rgba(247, 162, 36, 0.08), transparent 50%),
    linear-gradient(165deg, var(--navy) 0%, var(--bg) 42%, #120b18 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--amber);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--amber);
  color: #14110f;
  border-radius: 999px;
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

/* ——— Top bar ——— */

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(11, 9, 7, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.top.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(11, 9, 7, 0.88);
}

.top__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--fg);
}

.brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 8px 24px rgba(123, 63, 214, 0.35);
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.top__nav {
  display: none;
  gap: 1.4rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

.top__nav a {
  text-decoration: none;
}

.top__nav a:hover {
  color: var(--fg);
}

@media (min-width: 760px) {
  .top__nav {
    display: flex;
  }
}

/* ——— Hero ——— */

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(100vh, 920px);
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3.5rem;
  display: grid;
  align-items: center;
  gap: 2.5rem;
  --mx: 0;
  --my: 0;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    padding: 3.5rem 1.5rem 4.5rem;
    gap: 2rem;
  }
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
  will-change: transform, opacity;
}

.hero__glow--a {
  inset: -22% -8% auto auto;
  width: min(72vw, 580px);
  height: min(72vw, 580px);
  background: radial-gradient(circle, rgba(123, 63, 214, 0.5), transparent 68%);
  animation: glow-drift 10s ease-in-out infinite alternate;
}

.hero__glow--b {
  inset: auto auto -10% -15%;
  width: min(55vw, 420px);
  height: min(55vw, 420px);
  background: radial-gradient(circle, rgba(247, 162, 36, 0.22), transparent 70%);
  animation: glow-drift 14s ease-in-out infinite alternate-reverse;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(237, 235, 231, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 235, 231, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
  pointer-events: none;
  opacity: 0.65;
  animation: grid-pulse 8s ease-in-out infinite;
}

.hero__orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.55;
}

.orb--1 {
  width: 10px;
  height: 10px;
  top: 18%;
  left: 48%;
  background: var(--amber);
  box-shadow: 0 0 18px rgba(247, 162, 36, 0.7);
  animation: orb-float 7s ease-in-out infinite;
}

.orb--2 {
  width: 7px;
  height: 7px;
  top: 62%;
  left: 58%;
  background: #b48cff;
  box-shadow: 0 0 14px rgba(180, 140, 255, 0.7);
  animation: orb-float 9s 0.8s ease-in-out infinite reverse;
}

.orb--3 {
  width: 6px;
  height: 6px;
  top: 28%;
  right: 12%;
  background: #fff;
  opacity: 0.35;
  animation: orb-float 6.5s 0.4s ease-in-out infinite;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 34rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--d, 0) * 90ms);
}

body.is-ready .reveal {
  opacity: 1;
  transform: none;
  filter: none;
}

.hero__brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  background: linear-gradient(120deg, #fff 10%, #d7c6ff 45%, var(--amber) 80%, #fff 110%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brand-shimmer 7s linear infinite;
}

.hero__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.65rem, 4.2vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero__lead {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: clamp(1.02rem, 2.2vw, 1.18rem);
  max-width: 32rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__feedback {
  display: inline-flex;
  margin-top: 1.35rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--amber);
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), color 0.25s ease;
}

.hero__feedback:hover {
  transform: translateX(6px);
  color: #ffc45d;
}

/* ——— Store badges ——— */

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 168px;
  padding: 0.65rem 1rem 0.65rem 0.85rem;
  border-radius: 12px;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.store-badge:hover {
  color: #fff;
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(247, 162, 36, 0.6);
  box-shadow: 0 18px 40px rgba(247, 162, 36, 0.22);
}

.store-badge:active {
  transform: translateY(-1px) scale(0.99);
}

.store-badge__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.store-badge__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.store-badge__eyebrow {
  font-size: 0.68rem;
  font-weight: 500;
  opacity: 0.75;
  letter-spacing: 0.01em;
}

.store-badge__name {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ——— Stage / phone ——— */

.hero__visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  perspective: 900px;
}

.stage {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  transform:
    rotateX(calc(var(--my) * -6deg))
    rotateY(calc(var(--mx) * 8deg));
  transition: transform 0.15s ease-out;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(237, 235, 231, 0.14);
  pointer-events: none;
}

.orbit--outer {
  inset: 4%;
  animation: spin 28s linear infinite;
}

.orbit--inner {
  inset: 18%;
  border-style: solid;
  border-color: rgba(123, 63, 214, 0.18);
  animation: spin 18s linear infinite reverse;
}

.chip {
  position: absolute;
  z-index: 3;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(20, 17, 15, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--fg);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}

.chip--a {
  top: 8%;
  left: 50%;
  animation: chip-float-a 5.5s ease-in-out infinite;
}

.chip--b {
  top: 46%;
  right: 0;
  animation: chip-float-b 6.2s ease-in-out infinite;
}

.chip--c {
  bottom: 10%;
  left: 6%;
  animation: chip-float-c 5.8s 0.3s ease-in-out infinite;
}

.phone {
  position: relative;
  z-index: 2;
  width: min(72%, 240px);
  aspect-ratio: 9 / 16;
  border-radius: 36px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.1), transparent 42%),
    linear-gradient(205deg, #1a1028 0%, #0b0907 48%, #2a1048 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(123, 63, 214, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  overflow: hidden;
  animation: phone-bob 5.8s ease-in-out infinite;
}

.phone__shine {
  position: absolute;
  inset: -40% -30% auto;
  height: 70%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  transform: rotate(-18deg);
  animation: shine-sweep 5.5s ease-in-out infinite;
  pointer-events: none;
}

.phone__ring {
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 1px solid rgba(247, 162, 36, 0.28);
  animation: ring-pulse 3.2s ease-out infinite;
  pointer-events: none;
}

.phone__icon {
  position: relative;
  z-index: 1;
  width: 118px;
  height: 118px;
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(123, 63, 214, 0.5);
  animation: icon-float 4.8s ease-in-out infinite;
}

.phone__caption {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.phone__bolt {
  position: absolute;
  bottom: 12%;
  width: 64px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  animation: bolt-glow 2.4s ease-in-out infinite;
}

@media (max-width: 899px) {
  .hero__visual {
    order: -1;
  }

  .stage {
    width: min(100%, 280px);
  }

  .phone {
    width: min(68%, 200px);
  }

  .phone__icon {
    width: 96px;
    height: 96px;
    border-radius: 22px;
  }

  .phone__ring {
    width: 140px;
    height: 140px;
  }
}

/* ——— Features ——— */

.features {
  position: relative;
  padding: 4rem 1.25rem 3rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 17, 15, 0.55), rgba(11, 9, 7, 0.2));
}

.features__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}

.features h2,
.cta h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  letter-spacing: -0.03em;
}

.features__lead {
  margin: 0 0 2.25rem;
  color: var(--muted);
  max-width: 34rem;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

@media (min-width: 800px) {
  .feature-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 2.5rem;
  }
}

.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.35rem 0.85rem;
  margin: 0 -0.85rem;
  border-top: 1px solid var(--line);
  border-radius: 14px;
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.feature.is-in {
  opacity: 1;
  transform: none;
}

.feature:hover {
  background: rgba(247, 162, 36, 0.06);
  box-shadow: inset 3px 0 0 var(--amber);
  transform: translateX(4px);
}

.feature h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: color 0.25s ease;
}

.feature:hover h3 {
  color: #ffc45d;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.feature__index {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--amber);
  padding-top: 0.2rem;
  letter-spacing: 0.04em;
  transition: transform 0.3s ease;
}

.feature:hover .feature__index {
  transform: scale(1.12);
}

/* ——— CTA ——— */

.cta {
  padding: 3.5rem 1.25rem 4.5rem;
}

.cta__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(600px 220px at 10% 0%, rgba(247, 162, 36, 0.16), transparent 60%),
    radial-gradient(500px 240px at 100% 100%, rgba(123, 63, 214, 0.22), transparent 55%),
    var(--bg-elevated);
  border: 1px solid var(--line);
  background-size: 120% 120%, 120% 120%, auto;
  animation: cta-breathe 10s ease-in-out infinite alternate;
  transition: transform 0.4s ease, border-color 0.3s ease;
}

.cta__inner:hover {
  transform: translateY(-3px);
  border-color: rgba(247, 162, 36, 0.28);
}

.cta__inner p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  max-width: 32rem;
}

/* ——— Footer ——— */

.footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1.25rem 2.75rem;
}

.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
}

.footer__brand img {
  border-radius: 7px;
}

.footer__meta,
.footer__copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer__meta a {
  color: var(--fg);
  font-weight: 600;
  text-decoration: none;
}

.footer__meta a:hover {
  color: var(--amber);
}

/* ——— Motion ——— */

@keyframes brand-shimmer {
  to {
    background-position: 200% center;
  }
}

@keyframes grid-pulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 0.75;
  }
}

@keyframes orb-float {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(18px, -22px);
  }
}

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

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

@keyframes chip-float-b {
  0%,
  100% {
    transform: translate(0, -50%);
  }
  50% {
    transform: translate(-8px, calc(-50% - 8px));
  }
}

@keyframes chip-float-c {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(6px, -12px);
  }
}

@keyframes phone-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes icon-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(-2deg);
  }
}

@keyframes ring-pulse {
  0% {
    transform: scale(0.85);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.25);
    opacity: 0;
  }
  100% {
    transform: scale(1.25);
    opacity: 0;
  }
}

@keyframes bolt-glow {
  0%,
  100% {
    opacity: 0.45;
    width: 48px;
  }
  50% {
    opacity: 1;
    width: 72px;
  }
}

@keyframes glow-drift {
  from {
    transform: translate(0, 0) scale(1);
    opacity: 0.85;
  }
  to {
    transform: translate(-28px, 22px) scale(1.1);
    opacity: 1;
  }
}

@keyframes shine-sweep {
  0%,
  100% {
    transform: translateX(-16%) rotate(-18deg);
    opacity: 0.3;
  }
  50% {
    transform: translateX(22%) rotate(-18deg);
    opacity: 0.75;
  }
}

@keyframes cta-breathe {
  from {
    background-position: 0% 0%, 100% 100%, center;
  }
  to {
    background-position: 20% 10%, 80% 90%, center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .phone,
  .phone__icon,
  .phone__shine,
  .phone__ring,
  .phone__bolt,
  .hero__glow,
  .hero__grid,
  .orbit,
  .orb,
  .chip,
  .hero__brand,
  .cta__inner,
  .feature {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .stage {
    transform: none !important;
  }
}
