/* ============================================================
   PixBoost — marketing site styles
   ============================================================ */

:root {
  --blue: #3852ff;
  --blue-light: #40a0ff;
  --purple: #8530ff;
  --ink: #0a0f29;
  --ink-soft: #5b6478;
  --bg: #ffffff;
  --bg-tint: #f5f6ff;
  --line: #e7e9f6;
  --card: #ffffff;
  --grad: linear-gradient(100deg, var(--blue-light), var(--blue) 45%, var(--purple));
  --shadow-soft: 0 18px 50px rgba(51, 46, 154, 0.10);
  --shadow-lift: 0 26px 70px rgba(51, 46, 154, 0.16);
  --radius: 22px;
  --nav-h: 68px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* ---------- shared ---------- */

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

.spark { font-size: 12px; }

.section { padding: 110px 24px; max-width: 1180px; margin: 0 auto; }

.section-tint {
  max-width: none;
  background: var(--bg-tint);
}

.section-tint > * { max-width: 1180px; margin-left: auto; margin-right: auto; }

.section-head { text-align: center; margin-bottom: 64px; }

.section-head h2 {
  font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin-top: 14px;
  font-weight: 800;
}

.section-sub {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  border-radius: 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 12px 30px rgba(64, 62, 220, 0.35);
}

.btn-primary:hover { box-shadow: 0 18px 40px rgba(64, 62, 220, 0.45); }

.btn-light {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 14px 34px rgba(10, 8, 60, 0.25);
}

.btn-small {
  padding: 10px 18px;
  font-size: 14.5px;
  border-radius: 12px;
}

.btn-store {
  padding: 13px 26px;
  border-radius: 18px;
}

.btn-store .apple-glyph { width: 24px; height: 24px; }

.btn-small .apple-glyph { width: 15px; height: 15px; }

.btn-store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  font-size: 19px;
  letter-spacing: 0.01em;
}

.btn-store-text small {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.85;
  letter-spacing: 0.04em;
}

/* sweeping highlight — both keyframe endpoints sit outside the button,
   so the band is invisible during the pause between sweeps */
.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::after {
  content: "";
  position: absolute;
  top: -40%;
  bottom: -40%;
  left: 0;
  width: 42%;
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-160%) skewX(-20deg);
  /* 62% of 2.1s ≈ 1.3s sweep, then a 0.8s pause before the next pass */
  animation: btn-shine-sweep 2.1s ease-in-out infinite;
  pointer-events: none;
}

@keyframes btn-shine-sweep {
  0% { transform: translateX(-160%) skewX(-20deg); }
  62%, 100% { transform: translateX(400%) skewX(-20deg); }
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(231, 233, 246, 0.7);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.nav-brand img {
  width: 34px;
  height: 34px;
  border-radius: 8.5px;
  box-shadow: 0 4px 12px rgba(51, 46, 154, 0.22);
}

.nav-links { display: flex; gap: 30px; }

.nav-links a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--blue); }

/* ---------- hero ---------- */

.hero { position: relative; overflow: hidden; }

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

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

.blob-a { width: 520px; height: 520px; left: -160px; top: -120px; background: #dbe4ff; }
.blob-b { width: 620px; height: 620px; right: -200px; top: 40px; background: #eadcff; }
.blob-c { width: 420px; height: 420px; left: 34%; bottom: -260px; background: #d8f0ff; }

.hero-inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 84px 24px 110px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
}

.hero-copy h1 {
  font-size: clamp(38px, 5.6vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 18px 0 22px;
}

.lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 500px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.hero-note .stars {
  color: #f5a623;
  font-size: 15px;
  letter-spacing: 2px;
}

.hero-note p { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin-top: 38px;
  max-width: 480px;
}

.hero-chips li {
  font-size: 13px;
  font-weight: 600;
  color: #3d47a5;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  box-shadow: 0 4px 14px rgba(51, 46, 154, 0.06);
}

/* hero phone */

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone {
  position: relative;
  width: min(320px, 78vw);
  border-radius: 46px;
  background: #0d1020;
  padding: 12px;
  box-shadow:
    0 40px 90px rgba(23, 20, 90, 0.30),
    inset 0 0 0 2px #2a2e45;
}

.phone img { border-radius: 36px; }

.phone-notch {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 26px;
  border-radius: 999px;
  background: #0d1020;
  z-index: 2;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 10px 16px;
  box-shadow: var(--shadow-lift);
  animation: floaty 5s ease-in-out infinite;
}

.float-card strong { display: block; font-size: 13.5px; }
.float-card small { color: var(--ink-soft); font-size: 11.5px; }
.float-icon { font-size: 20px; }

.float-card-a { top: 12%; left: -4%; }
.float-card-b { bottom: 10%; right: -6%; animation-delay: -2.5s; }

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

/* ---------- stats ---------- */

.stats { padding: 0 24px; }

.stats-inner {
  max-width: 1180px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 16px;
  padding: 30px 24px;
  position: relative;
  z-index: 2;
}

.stat { text-align: center; }

.stat strong {
  display: block;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat span { font-size: 13.5px; color: var(--ink-soft); font-weight: 600; }

.stat-divider { width: 1px; height: 44px; background: var(--line); }

/* ---------- features ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: #d5daff;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.feature-icon svg { width: 26px; height: 26px; }

.icon-blue   { background: #e8f1ff; color: #2f6bff; }
.icon-teal   { background: #e2f8f1; color: #0eaf87; }
.icon-pink   { background: #ffe9f2; color: #f0447c; }
.icon-amber  { background: #fff3e0; color: #f08c1a; }
.icon-violet { background: #f1e8ff; color: #8530ff; }
.icon-indigo { background: #e9eaff; color: #3852ff; }

.feature-card h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 8px; }

.feature-card p { font-size: 14.5px; color: var(--ink-soft); }

.feature-extra {
  text-align: center;
  margin-top: 42px;
  font-size: 15px;
  color: var(--ink-soft);
}

/* ---------- showcase ---------- */

#showcase { padding-top: 110px; padding-bottom: 40px; }

.show-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 90px);
  padding: 46px 0;
}

.show-row-flip .show-media { order: 2; }
.show-row-flip .show-copy { order: 1; }

.show-media {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  background: #fff;
}

.show-media video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.show-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(23, 20, 90, 0.14);
}

.show-num {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--blue);
  opacity: 0.75;
}

.show-copy h3 {
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 12px 0 16px;
}

.show-copy > p { color: var(--ink-soft); font-size: 16px; max-width: 440px; }

.show-list { list-style: none; margin-top: 22px; display: grid; gap: 10px; }

.show-list li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  font-weight: 600;
  color: #2c3352;
}

.show-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-top: 2px;
}

/* ---------- screenshots ---------- */

.screens-scroller {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  padding: 10px 6px 26px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.screens-scroller::-webkit-scrollbar { height: 8px; }
.screens-scroller::-webkit-scrollbar-track { background: var(--bg-tint); border-radius: 99px; }
.screens-scroller::-webkit-scrollbar-thumb { background: #c9cfef; border-radius: 99px; }

.screen-card {
  flex: 0 0 auto;
  width: 250px;
  scroll-snap-align: center;
  text-align: center;
}

.screen-card img {
  border-radius: 26px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screen-card:hover img {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lift);
}

.screen-card figcaption {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 700;
  color: #2c3352;
}

/* ---------- steps ---------- */

#how { padding-top: 96px; padding-bottom: 110px; }

.steps {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 18px;
}

.step {
  flex: 1;
  max-width: 300px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 30px 26px;
  text-align: center;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
  box-shadow: 0 10px 22px rgba(64, 62, 220, 0.35);
}

.step h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }

.step p { font-size: 14px; color: var(--ink-soft); }

.step-arrow {
  align-self: center;
  color: #b9c0e8;
  font-size: 26px;
  font-weight: 700;
}

/* ---------- cta ---------- */

.cta { padding: 40px 24px 110px; }

.cta-panel {
  position: relative;
  overflow: hidden;
  max-width: 1180px;
  margin: 0 auto;
  background: linear-gradient(115deg, #3f8dff, #3852ff 42%, #7a2bff);
  border-radius: 34px;
  padding: 74px 32px;
  text-align: center;
  color: #fff;
  box-shadow: 0 40px 90px rgba(56, 60, 220, 0.35);
}

.cta-glow {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  filter: blur(80px);
  top: -260px;
  left: 50%;
  transform: translateX(-50%);
}

.cta-icon {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 22px;
  margin: 0 auto 26px;
  box-shadow: 0 18px 40px rgba(6, 8, 40, 0.35);
}

.cta-panel h2 {
  position: relative;
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cta-panel > p {
  position: relative;
  margin: 14px auto 32px;
  font-size: 17px;
  opacity: 0.92;
  max-width: 440px;
}

.cta-panel .btn { position: relative; }

.cta-fine {
  position: relative;
  margin-top: 22px;
  font-size: 13px;
  opacity: 0.8;
}

/* ---------- footer ---------- */

.footer { border-top: 1px solid var(--line); background: #fff; }

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links { display: flex; gap: 26px; }

.footer-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.footer-links a:hover { color: var(--blue); }

.footer-copy { font-size: 13px; color: #9aa1bb; }

/* ---------- reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card { animation: none; }
  .btn-shine::after { animation: none; opacity: 0; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .nav-links { display: none; }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 56px;
    padding-bottom: 80px;
    text-align: center;
  }

  .hero-copy h1 { margin-left: auto; margin-right: auto; }
  .lede, .hero-chips { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-chips { justify-content: center; }
  .hero-visual { margin-top: 26px; }
  .float-card-a { left: 0; }
  .float-card-b { right: 0; }

  .stats-inner { flex-wrap: wrap; gap: 22px; }
  .stat { flex: 1 1 40%; }
  .stat-divider { display: none; }

  .feature-grid { grid-template-columns: 1fr 1fr; }

  .show-row { grid-template-columns: 1fr; gap: 30px; padding: 36px 0; }
  .show-row-flip .show-media { order: 0; }
  .show-row-flip .show-copy { order: 1; }
  .show-copy { text-align: center; }
  .show-copy > p { margin-left: auto; margin-right: auto; }
  .show-list { max-width: 340px; margin-left: auto; margin-right: auto; text-align: left; }
  .show-media { max-width: 440px; margin: 0 auto; }

  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); }
  .step { max-width: 420px; width: 100%; }
}

@media (max-width: 560px) {
  .section { padding: 80px 20px; }
  .feature-grid { grid-template-columns: 1fr; }
  .screen-card { width: 210px; }
  .footer-inner { justify-content: center; text-align: center; }
}
