/* =========================================
   Landing page sections
   ========================================= */

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding-top: clamp(104px, 12vw, 140px);
  padding-bottom: clamp(56px, 7vw, 96px);
  overflow: hidden;
  background: var(--surface-1);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-mesh);
  z-index: var(--z-base);
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  position: relative;
  z-index: var(--z-content);
}
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
}
.hero__title {
  font-size: var(--fs-hero);
  line-height: var(--lh-tight);
  letter-spacing: -0.035em;
  font-weight: 800;
  margin-top: 18px;
}
.hero__title em {
  font-style: normal;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}
.hero__sub {
  font-size: var(--fs-lead);
  color: var(--ink-500);
  margin-top: 22px;
  max-width: 540px;
}
@media (max-width: 920px) { .hero__sub { margin-inline: auto; } }
.hero__cta {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 920px) { .hero__cta { justify-content: center; } }
.hero__trust {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: var(--ink-500);
}
.hero__trust .stars { color: var(--gold); letter-spacing: 1px; }

/* Hero visual: phone mockup with orbiting pills */
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 560px;
}
/* Phone frame — image is a tightly-cropped iPhone screenshot from the PSD source
   with the device bezel already drawn into the pixels. We just display it
   natively at its own aspect ratio with a soft drop-shadow. No CSS overlay,
   no transparency tricks — what you see is what was rendered. */
.phone-frame {
  position: relative;
  width: min(320px, 75vw);
  filter: drop-shadow(0 18px 36px rgba(31, 111, 235, .22)) drop-shadow(0 4px 12px rgba(11, 21, 48, .12));
  animation: floatSlow 7s ease-in-out infinite;
  transform-origin: center;
  transition: transform var(--t-base) var(--ease-out);
}
.phone-frame img {
  width: 100%;
  height: auto;
  display: block;
}
.orbit-pill {
  position: absolute;
  z-index: 4;
  animation: float 5s ease-in-out infinite;
}
.orbit-pill--1 { top: 8%;  left: -8%;  animation-delay: 0s; }
.orbit-pill--2 { top: 38%; right: -10%; animation-delay: 1s; }
.orbit-pill--3 { bottom: 14%; left: -4%; animation-delay: 2s; }
.orbit-pill--4 { bottom: 0;   right: -6%; animation-delay: .5s; }

.hero__bgcircles span {
  position: absolute;
  border-radius: var(--r-full);
  background: var(--brand-100);
  opacity: .5;
}
.hero__bgcircles .c1 { width: 380px; height: 380px; top: -120px; right: -120px; }
.hero__bgcircles .c2 { width: 220px; height: 220px; top: 40%; right: 8%; opacity: .35; }
.hero__bgcircles .c3 { width: 160px; height: 160px; bottom: -60px; left: -40px; opacity: .4; }

/* ---------- Logo / Trust strip ---------- */
.trust-strip {
  padding-block: 36px;
  background: var(--surface-0);
  border-block: 1px solid var(--ink-100);
}
.trust-strip__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  color: var(--ink-400);
  font-size: .9rem;
}
.trust-strip__stat {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.trust-strip__stat b {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ink-900);
  font-weight: 700;
}

/* ---------- Three pillars ---------- */
.pillars {
  background: linear-gradient(180deg, var(--surface-0) 0%, var(--surface-1) 100%);
}
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 820px) {
  .pillars__grid { grid-template-columns: 1fr; }
}
.pillar {
  background: var(--surface-0);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out);
  cursor: default;
}
.pillar::before {
  content: "";
  position: absolute;
  inset: auto -40% -60% auto;
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--brand-100), transparent 70%);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease-out);
}
.pillar:hover {
  transform: translateY(-6px);
  border-color: var(--brand-200);
  box-shadow: var(--shadow-lg);
}
.pillar:hover::before { opacity: 1; }
.pillar__icon {
  width: 72px; height: 72px;
  margin-bottom: 20px;
  filter: drop-shadow(0 12px 24px rgba(31, 111, 235, .25));
  transition: transform var(--t-base) var(--ease-spring);
}
.pillar:hover .pillar__icon { transform: scale(1.08) rotate(-3deg); }
.pillar h3 { font-size: var(--fs-h3); margin-bottom: 8px; }
.pillar p { color: var(--ink-500); font-size: .98rem; line-height: 1.65; }

/* ---------- Sticky feature scroll ---------- */
.features {
  background: var(--surface-0);
}
.features__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
  position: relative;
}
@media (max-width: 920px) {
  .features__row { grid-template-columns: 1fr; }
}
.features__copy {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.features__item {
  padding-block: 40px;
}
.features__item h3 {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  margin-top: 14px;
  margin-bottom: 14px;
}
.features__item p {
  color: var(--ink-500);
  font-size: var(--fs-lead);
}
.features__visual {
  position: sticky;
  top: 120px;
  align-self: start;
  display: flex;
  justify-content: center;
  height: clamp(520px, 70vh, 720px);
}
@media (max-width: 920px) {
  .features__visual { position: relative; top: 0; height: auto; padding-block: 40px; }
}
.features__phone {
  position: relative;
  width: min(310px, 70vw);
  /* Natural aspect from the cropped phone PNGs (1104 × 2265) */
  aspect-ratio: 1104 / 2265;
  filter: drop-shadow(0 18px 36px rgba(31, 111, 235, .2)) drop-shadow(0 4px 12px rgba(11, 21, 48, .1));
}
.features__phone .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  transform: scale(.98);
}
.features__phone .slide.is-active {
  opacity: 1;
  transform: scale(1);
}

/* ---------- Strategies ---------- */
.strategies {
  background: var(--surface-2);
  position: relative;
  overflow: hidden;
}
.strategies__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1000px) { .strategies__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .strategies__grid { grid-template-columns: 1fr; } }
.strategy {
  background: var(--surface-0);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  border: 1px solid rgba(31, 111, 235, .08);
  transition: transform var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.strategy:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: var(--shadow-lg); }
.strategy__badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: var(--r-full);
  margin-bottom: 14px;
}
.strategy--1 .strategy__badge { background: #FEE2E2; color: #B91C1C; }
.strategy--2 .strategy__badge { background: #DCFCE7; color: #166534; }
.strategy--3 .strategy__badge { background: #FEF3C7; color: #92400E; }
.strategy--4 .strategy__badge { background: #DBEAFE; color: #1D4ED8; }
.strategy h3 { font-size: 1.15rem; margin-bottom: 8px; }
.strategy p { font-size: .92rem; color: var(--ink-500); line-height: 1.6; }
.strategy__img {
  width: 80px; height: 80px; object-fit: contain;
  margin-bottom: 16px;
  filter: drop-shadow(0 8px 16px rgba(11, 21, 48, .12));
}

/* ---------- AI band (dark) ---------- */
.ai-band {
  background: var(--grad-night);
  color: #E6ECFA;
  position: relative;
  overflow: hidden;
  border-radius: var(--r-2xl);
  margin: clamp(40px, 6vw, 80px) auto;
  max-width: calc(var(--container) - 24px);
}
.ai-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 80% at 80% 0%, rgba(91, 160, 255, .25), transparent 60%),
    radial-gradient(40% 60% at 10% 100%, rgba(140, 195, 255, .2), transparent 60%);
  pointer-events: none;
}
.ai-band .container { position: relative; z-index: 2; }
.ai-band h2 { color: #fff; font-size: var(--fs-h1); max-width: 700px; }
.ai-band h2 em {
  font-style: normal;
  background: linear-gradient(90deg, #93C5FD, #fff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ai-band p { color: rgba(230, 236, 250, .7); margin-top: 16px; max-width: 600px; font-size: var(--fs-lead); }
.ai-band__demos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 56px;
}
@media (max-width: 820px) { .ai-band__demos { grid-template-columns: 1fr; } }
.ai-demo {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-lg);
  padding: 28px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.ai-demo h4 { color: #fff; font-size: 1.1rem; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.ai-demo h4 svg { width: 22px; height: 22px; color: var(--brand-300); }
.ai-demo__chip {
  background: rgba(255, 255, 255, .08);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: .95rem;
}
.ai-demo__chip .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--income); flex-shrink: 0;
  animation: pulseDot 1.8s ease-in-out infinite;
}
@keyframes pulseDot { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.8); } }
.ai-demo__wave {
  display: flex; align-items: center; gap: 4px; height: 32px;
}
.ai-demo__wave span {
  width: 3px; background: var(--brand-300); border-radius: 2px;
  animation: wave 1.4s ease-in-out infinite;
}
.ai-demo__wave span:nth-child(1) { height: 30%; animation-delay: 0s; }
.ai-demo__wave span:nth-child(2) { height: 60%; animation-delay: .1s; }
.ai-demo__wave span:nth-child(3) { height: 90%; animation-delay: .2s; }
.ai-demo__wave span:nth-child(4) { height: 50%; animation-delay: .3s; }
.ai-demo__wave span:nth-child(5) { height: 70%; animation-delay: .4s; }
.ai-demo__wave span:nth-child(6) { height: 40%; animation-delay: .5s; }
.ai-demo__wave span:nth-child(7) { height: 80%; animation-delay: .6s; }
.ai-demo__wave span:nth-child(8) { height: 30%; animation-delay: .7s; }
@keyframes wave { 0%,100% { transform: scaleY(.5); } 50% { transform: scaleY(1); } }

.ai-demo__receipt {
  background: rgba(255,255,255,.92);
  color: var(--ink-900);
  border-radius: 12px;
  padding: 16px 18px;
  font-family: "SF Mono", "Menlo", monospace;
  font-size: .82rem;
  position: relative;
  overflow: hidden;
}
.ai-demo__receipt .row { display: flex; justify-content: space-between; padding: 3px 0; }
.ai-demo__receipt .row.total { font-weight: 700; border-top: 1px dashed var(--ink-300); margin-top: 6px; padding-top: 6px; }
.ai-demo__receipt .scan-line {
  position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-500), transparent);
  animation: scanLine 2.2s ease-in-out infinite;
  box-shadow: 0 0 12px var(--brand-500);
}
@keyframes scanLine { 0% { top: 0; } 100% { top: 100%; } }

/* ---------- Event / Group ---------- */
.event {
  background: var(--surface-0);
}
.event__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 920px) { .event__grid { grid-template-columns: 1fr; } }
.event__visual {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 480px;
}
.event__phone {
  position: relative;
  width: min(300px, 70vw);
  filter: drop-shadow(0 18px 36px rgba(31, 111, 235, .22)) drop-shadow(0 4px 12px rgba(11, 21, 48, .12));
  z-index: 2;
}
.event__phone img {
  width: 100%;
  height: auto;
  display: block;
}
.event__avatar {
  position: absolute;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: var(--shadow-md);
  background: var(--brand-100);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--brand-700);
  animation: orbit 12s linear infinite;
  z-index: 3;
}
.event__avatar--1 { top: 5%;   left: 5%; animation-delay: 0s; background: #FEE2E2; color: #B91C1C; }
.event__avatar--2 { top: 20%;  right: 0;  animation-delay: -3s; background: #DCFCE7; color: #166534; }
.event__avatar--3 { bottom: 30%; left: 0; animation-delay: -6s; background: #FEF3C7; color: #92400E; }
.event__avatar--4 { bottom: 5%; right: 8%; animation-delay: -9s; background: #DBEAFE; color: #1D4ED8; }
@keyframes orbit {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(8px, -10px); }
  50% { transform: translate(0, -16px); }
  75% { transform: translate(-8px, -10px); }
}

/* ---------- Stats ---------- */
.stats {
  background: var(--surface-1);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}
@media (max-width: 820px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } }
.stat {
  background: var(--surface-0);
  border-radius: var(--r-lg);
  padding: 28px 16px;
  border: 1px solid var(--ink-100);
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 800;
  letter-spacing: -.02em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.stat__label {
  margin-top: 8px;
  color: var(--ink-500);
  font-size: .92rem;
  font-weight: 500;
}

/* ---------- Testimonials (infinite marquee) ---------- */
.testimonials {
  background: var(--surface-0);
  overflow: hidden;
}
/* Full-bleed marquee that escapes the container so cards run edge to edge */
.testimonials__marquee {
  display: flex;
  flex-direction: column;
  gap: 20px;
  /* fade the left & right edges */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.tm-row {
  display: flex;
  width: max-content;
  gap: 20px;
  /* the track is duplicated 2x in markup, so -50% lands seamlessly */
  animation: tm-scroll var(--tm-duration, 48s) linear infinite;
  will-change: transform;
}
.tm-row--reverse { animation-direction: reverse; }
/* pause whole marquee when the user hovers anywhere on it */
.testimonials__marquee:hover .tm-row { animation-play-state: paused; }
@keyframes tm-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.quote {
  flex: 0 0 auto;
  width: 360px;
  background: var(--surface-1);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-lg);
  padding: 26px 28px;
  position: relative;
  transition: transform var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out);
}
.quote:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-200);
}
.quote__stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 10px; }
.quote__text { font-size: .98rem; line-height: 1.6; color: var(--ink-700); }
.quote__author {
  display: flex; align-items: center; gap: 12px;
  margin-top: 18px;
}
.quote__avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff;
}
.quote__name { font-weight: 600; color: var(--ink-900); font-size: .92rem; }
.quote__role { font-size: .8rem; color: var(--ink-400); }

@media (max-width: 560px) {
  .quote { width: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  .tm-row { animation: none; flex-wrap: wrap; justify-content: center; }
  /* hide the duplicated set so reduced-motion users don't see doubles */
  .tm-row > [data-tm-clone] { display: none; }
}

/* ---------- Final CTA ---------- */
.cta {
  position: relative;
  margin: clamp(40px, 6vw, 80px) auto;
  max-width: calc(var(--container) - 24px);
  border-radius: var(--r-2xl);
  padding: clamp(56px, 8vw, 96px) 24px;
  background: var(--grad-brand);
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 60% at 20% 20%, rgba(255,255,255,.25), transparent 60%),
    radial-gradient(50% 70% at 80% 80%, rgba(255,255,255,.15), transparent 60%);
  pointer-events: none;
}
.cta h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); max-width: 720px; margin: 0 auto; }
.cta p { color: rgba(255,255,255,.85); font-size: var(--fs-lead); margin: 18px auto 32px; max-width: 540px; }
.cta__buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta .store-btn { background: #fff; color: var(--ink-900); }
.cta .store-btn:hover { box-shadow: 0 24px 40px -12px rgba(0,0,0,.35); }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink-900);
  color: rgba(230,236,250,.7);
  padding: 64px 0 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 1.2rem; }
.footer__brand img { width: 36px; height: 36px; }
.footer__desc { margin-top: 14px; font-size: .9rem; line-height: 1.6; max-width: 300px; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; font-family: var(--font-display); }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { color: rgba(230,236,250,.7); font-size: .9rem; transition: color var(--t-fast) var(--ease-out); }
.footer ul li a:hover { color: #fff; }
.footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: .85rem;
}
.footer__social { display: flex; gap: 8px; }
.footer__social a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  transition: background var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.footer__social a:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); color: #fff; }
.footer__social svg { width: 18px; height: 18px; }
