:root {
  --bg: #f7f7fb;
  --fg: #0f172a;
  --muted: #64748b;
  --primary: #7c5cff;
  --primary-soft: rgba(124, 92, 255, 0.12);
  --primary-deep: #6344e8;
  --green: #22c55e;
  --green-soft: rgba(34, 197, 94, 0.12);
  --card: #ffffff;
  --line: rgba(15, 23, 42, 0.08);
  --shadow: 0 18px 50px rgba(79, 70, 229, 0.12);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.06);
  --radius: 18px;
  --font: "Poppins", system-ui, sans-serif;
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--fg);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font: inherit;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
}

.page-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(48% 42% at 90% 0%, rgba(124, 92, 255, 0.16), transparent 58%),
    radial-gradient(42% 38% at 0% 100%, rgba(16, 185, 129, 0.12), transparent 55%),
    linear-gradient(180deg, #f5f3ff 0%, #ffffff 42%, #f8fafc 100%);
}

.grid-overlay {
  display: none;
}

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

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.nav__logo,
.footer__logo {
  height: 40px;
  width: auto;
}

.nav__links {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.nav__links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.65);
  transition: color 0.2s ease;
}

.nav__links a:hover {
  color: var(--primary);
}

.nav__actions {
  display: none;
  align-items: center;
  gap: 0.85rem;
}

.nav__link-quiet {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.65);
}

.nav__link-quiet:hover {
  color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(124, 92, 255, 0.28);
}

.btn--primary:hover {
  background: var(--primary-deep);
}

.btn--sm {
  padding: 0.65rem 1.15rem;
  font-size: 0.85rem;
}

.nav__menu {
  width: 42px;
  height: 42px;
  display: grid;
  place-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.nav__menu span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--fg);
}

.mobile-nav {
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  padding: 0.85rem 0.5rem;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.7);
  border-bottom: 1px solid var(--line);
}

.mobile-nav a:last-child {
  border-bottom: 0;
}

/* Hero */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  align-content: start;
  gap: clamp(2rem, 5vw, 3.5rem);
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 2.5rem) 3.5rem;
}

.hero__content {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.hero__brand {
  margin: 0 0 0.75rem;
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--fg);
}

.hero__brand::first-letter {
  color: var(--green);
}

.hero__title {
  margin: 0 auto;
  max-width: 18ch;
  font-size: clamp(1.55rem, 3.8vw, 2.55rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--fg);
}

.hero__title em {
  font-style: normal;
  color: var(--primary);
}

.hero__sub {
  margin: 1.15rem auto 0;
  max-width: 54ch;
  font-size: clamp(0.98rem, 1.6vw, 1.12rem);
  line-height: 1.65;
  color: var(--muted);
}

.hero__cta {
  margin-top: 1.75rem;
}

.store-group {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.store-badge {
  display: inline-flex;
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.98;
}

.store-badge:hover {
  transform: translateY(-2px);
  opacity: 1;
}

.store-badge img {
  height: 50px;
  width: auto;
}

.coming-soon {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
}

/* Stage + phone + stats */
.hero__stage {
  position: relative;
  width: min(920px, 100%);
  margin: 0.5rem auto 0;
  min-height: 420px;
  display: grid;
  place-items: center;
}

.phone {
  width: min(270px, 68vw);
  filter: drop-shadow(0 28px 45px rgba(79, 70, 229, 0.18));
  animation: phone-in 1s ease both;
}

.phone__bezel {
  border-radius: 34px;
  padding: 10px;
  background: linear-gradient(160deg, #1e1b4b, #0f172a 60%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.phone__notch {
  width: 38%;
  height: 18px;
  margin: 0 auto 8px;
  border-radius: 0 0 14px 14px;
  background: #020617;
}

.phone__screen {
  border-radius: 26px;
  min-height: 460px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(124, 92, 255, 0.18), transparent 28%),
    #0b1220;
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
}

.app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #94a3b8;
  margin-bottom: 12px;
}

.app-top strong {
  color: var(--green);
  font-size: 0.9rem;
  letter-spacing: -0.02em;
}

.app-cart {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.68rem;
}

.app-search {
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #64748b;
  font-size: 0.78rem;
  margin-bottom: 12px;
}

.app-cats {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.app-cats span {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
}

.app-cats span:first-child {
  background: var(--primary-soft);
  color: #c4b5fd;
}

.app-banner {
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.45), rgba(16, 185, 129, 0.28));
  border: 1px solid rgba(167, 139, 250, 0.35);
}

.app-banner p {
  margin: 0;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}

.app-banner small {
  display: block;
  margin-top: 4px;
  color: #e9d5ff;
  font-size: 0.72rem;
}

.app-chart {
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.app-chart__bars {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 92px;
  margin-bottom: 10px;
}

.app-chart__bars i {
  flex: 1;
  height: var(--h);
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, #a78bfa, rgba(124, 92, 255, 0.35));
  animation: bar-rise 1.1s ease both;
}

.app-chart p {
  margin: 0;
  font-size: 0.72rem;
  color: #94a3b8;
}

.stat-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 170px;
  padding: 0.95rem 1.05rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.stat-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  flex-shrink: 0;
}

.stat-card__icon svg {
  width: 18px;
  height: 18px;
}

.stat-card__label {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
}

.stat-card__value {
  margin: 0.1rem 0 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--primary);
}

.stat-card__trend {
  margin-left: auto;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green);
}

.stat-card__spark {
  position: absolute;
  right: 12px;
  bottom: 10px;
  width: 48px;
  height: 18px;
  background:
    radial-gradient(circle at 10% 80%, var(--primary) 2px, transparent 3px),
    radial-gradient(circle at 30% 40%, var(--primary) 2px, transparent 3px),
    radial-gradient(circle at 55% 55%, var(--primary) 2px, transparent 3px),
    radial-gradient(circle at 80% 25%, var(--primary) 2px, transparent 3px);
  opacity: 0.55;
}

.stat-card--stores { top: 8%; left: 0; }
.stat-card--vendors { top: 4%; right: 0; }
.stat-card--deliveries { bottom: 18%; left: 2%; }
.stat-card--tx { bottom: 10%; right: 1%; }

.float-a { animation: float-y 5.5s ease-in-out infinite; }
.float-b { animation: float-y 6.2s ease-in-out infinite 0.4s; }
.float-c { animation: float-y 5.8s ease-in-out infinite 0.8s; }
.float-d { animation: float-y 6.5s ease-in-out infinite 0.2s; }

/* Brand marquee */
.brands {
  padding: 2.75rem clamp(1rem, 4vw, 2.5rem) 2.25rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.brands__eyebrow {
  margin: 0 0 1.25rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.brands__viewport {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 6%,
    #000 94%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 6%,
    #000 94%,
    transparent 100%
  );
}

.brands__track {
  display: flex;
  width: max-content;
  animation: brands-marquee 34s linear infinite;
}

.brands__viewport:hover .brands__track {
  animation-play-state: paused;
}

.brands__group {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding-right: clamp(2rem, 5vw, 4rem);
  flex-shrink: 0;
}

.brands__group span {
  white-space: nowrap;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--fg);
  opacity: 0.85;
}

.brands__group .brands__serif {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.brands__group .brands__wide {
  letter-spacing: 0.18em;
}

@keyframes brands-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Markets */
.markets {
  padding: 1rem clamp(1rem, 4vw, 2.5rem) 5rem;
}

.markets__inner {
  width: min(920px, 100%);
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
}

.markets h2 {
  margin: 0 auto;
  max-width: 18ch;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.markets__sub {
  margin: 0.9rem auto 0;
  max-width: 52ch;
  color: var(--muted);
  line-height: 1.65;
}

.markets__list {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.markets__list li {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  padding: 1.25rem 0.75rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.market-code {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--primary);
  background: var(--primary-soft);
}

.markets__list strong {
  font-size: 1rem;
}

.markets__list span:last-child {
  font-size: 0.82rem;
  color: var(--muted);
}

.markets__soon .market-code {
  color: #fff;
  background: var(--primary);
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem clamp(1rem, 4vw, 2.5rem) 1.5rem;
  display: grid;
  gap: 2rem;
  background: rgba(255, 255, 255, 0.7);
}

.footer__brand img {
  margin-bottom: 0.75rem;
}

.footer__brand p {
  margin: 0;
  max-width: 36ch;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.footer__cols h3 {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer__cols a {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--fg);
}

.footer__cols a:hover {
  color: var(--primary);
}

.footer__copy {
  margin: 0;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: #94a3b8;
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.8s ease forwards;
  animation-delay: var(--d, 0ms);
}

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

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

@keyframes phone-in {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes bar-rise {
  from { transform: scaleY(0.2); transform-origin: bottom; opacity: 0.4; }
  to { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
}

@media (min-width: 768px) {
  .nav__links,
  .nav__actions {
    display: flex;
  }

  .nav__menu {
    display: none;
  }

  .markets__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .footer {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }

  .footer__copy {
    grid-column: 1 / -1;
  }
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 1rem 2rem;
    padding-top: 2.5rem;
  }

  .hero__content {
    text-align: left;
    margin: 0;
  }

  .hero__title {
    margin: 0;
  }

  .hero__sub {
    margin-left: 0;
  }

  .hero__cta {
    display: flex;
    justify-content: flex-start;
  }

  .hero__stage {
    min-height: 540px;
    margin: 0;
  }

  .phone {
    width: 280px;
  }

  .stat-card--stores { left: 2%; top: 12%; }
  .stat-card--vendors { right: 0; top: 8%; }
  .stat-card--deliveries { left: 0; bottom: 16%; }
  .stat-card--tx { right: 2%; bottom: 8%; }
}

@media (max-width: 720px) {
  .hero__stage {
    min-height: 560px;
    margin-top: 1rem;
  }

  .stat-card {
    min-width: 148px;
    padding: 0.75rem 0.85rem;
  }

  .stat-card__value {
    font-size: 1.05rem;
  }

  .stat-card--stores { top: 0; left: 0; }
  .stat-card--vendors { top: 0; right: 0; }
  .stat-card--deliveries { bottom: 4%; left: 0; }
  .stat-card--tx { bottom: 0; right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .float-a,
  .float-b,
  .float-c,
  .float-d,
  .phone,
  .app-chart__bars i {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
