:root {
  --purple: #6a4fe0;
  --purple-dark: #4f3fd6;
  --purple-light: #f0edff;
  --text-dark: #1f2430;
  --text-muted: #6b7085;
  --border: #ececf2;
  --bg-soft: #f6f6fb;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

html, body {
  margin: 0;
  font-family: "Segoe UI", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background: #fff;
}

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

section[id] {
  scroll-margin-top: 84px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Scroll-in page transitions. Defined early (low in the cascade) on purpose
   so later, more-specific :hover rules on individual cards (same 2-class
   specificity as .reveal-card.in-view) still win once a card has settled
   into view. */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-card {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  color: var(--text-dark);
}

.nav__logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--purple);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__links a.link {
  display: inline-block;
  position: relative;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 17px;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transform-origin: center;
  transition: color 0.25s ease, border-color 0.25s ease,
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    filter 0.25s ease;
}

/* Scale instead of changing font-size, so the word "pops" toward the
   viewer without pushing its neighbors left/right (font-size would reflow
   the whole flex row on every hover). */
.nav__links a.link:hover {
  color: var(--purple);
  transform: scale(1.18);
  z-index: 1;
  filter: drop-shadow(0 6px 10px rgba(106, 79, 224, 0.28));
}

.nav__links a.link.link--active {
  color: var(--purple);
  font-size: 21px;
  font-weight: 700;
  border-bottom-color: var(--purple);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  isolation: isolate;
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,0.45) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
  pointer-events: none;
  z-index: 1;
}

.btn:hover::before { transform: translateX(120%); }

.btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 24px rgba(30, 20, 80, 0.14);
}

.btn:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 4px 10px rgba(30, 20, 80, 0.12);
}

.btn__ripple {
  position: absolute;
  width: 10px;
  height: 10px;
  margin: -5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transform: scale(0);
  animation: ripple 0.6s ease-out;
  pointer-events: none;
  z-index: 0;
}

.btn--ghost .btn__ripple { background: rgba(106, 79, 224, 0.25); }

@keyframes ripple {
  to { transform: scale(18); opacity: 0; }
}

.btn--ghost {
  color: var(--purple);
  background: transparent;
  border-color: var(--border);
}

.btn--ghost:hover { color: var(--purple-dark); border-color: var(--purple); }

.btn--solid {
  background: var(--purple);
  color: #fff;
}

.btn--solid:hover { background: var(--purple-dark); }

.btn--block { width: 100%; }

/* Hero */
.hero {
  position: relative;
  padding: 100px 0 70px;
  background: radial-gradient(60% 60% at 50% 0%, #f2effe 0%, #ffffff 70%);
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  z-index: 0;
  animation: blob-float 10s ease-in-out infinite;
}

.blob--a {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, #c9bcfa 0%, transparent 70%);
  top: -120px;
  left: -100px;
}

.blob--b {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, #ffd9c2 0%, transparent 70%);
  bottom: -140px;
  right: -80px;
  animation-delay: 2.5s;
}

@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, -18px) scale(1.08); }
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
}

.hero__copy { text-align: left; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--purple);
  font-weight: 600;
  font-size: 13px;
  background: var(--purple-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: 48px;
  line-height: 1.15;
  margin: 0 0 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.hero p.lead {
  max-width: 520px;
  margin: 0 0 36px;
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn--lg { padding: 14px 28px; font-size: 15px; border-radius: 12px; }

/* Hero visual mockup */
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 420px;
}

.channel-rail {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 10px 0;
  z-index: 2;
}

.channel-rail::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--purple) 0 6px, transparent 6px 13px);
  opacity: 0.5;
}

.channel-chip {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(30, 20, 80, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: chip-float 4s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

.chip--core {
  background: var(--purple);
  border-color: var(--purple);
}

.chip__label {
  color: #ffffff;
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
}

.chip--whatsapp { background: #25D366; border-color: #25D366; }
.chip--telegram { background: #229ED9; border-color: #229ED9; }
.chip--messenger { background: linear-gradient(135deg, #00B2FF, #006AFF); border-color: transparent; }
.chip--instagram {
  background: linear-gradient(135deg, #f58529, #dd2a7b 45%, #8134af 70%, #515bd4);
  border-color: transparent;
}

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

.rail-connector {
  position: relative;
  width: 46px;
  height: 2px;
  background: repeating-linear-gradient(to right, var(--purple) 0 6px, transparent 6px 13px);
  opacity: 0.6;
  flex-shrink: 0;
}

.rail-connector::after {
  content: '';
  position: absolute;
  top: -3px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 10px rgba(106, 79, 224, 0.7);
  animation: travel 2.2s linear infinite;
}

@keyframes travel {
  0% { left: 0; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

.widget-preview {
  position: relative;
  z-index: 2;
  width: 280px;
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(30, 20, 80, 0.16);
  padding: 22px;
  animation: widget-float 5s ease-in-out infinite;
}

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

.widget-preview__header {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.widget-preview__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 14px;
}

.widget-preview__header strong { font-size: 14px; }
.widget-preview__header div span { font-size: 13px; color: var(--text-muted); }

.widget-preview__search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.widget-preview__chips {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.widget-preview__chips span {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 12.5px;
  color: var(--text-dark);
}

.widget-preview__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  background: var(--purple);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.widget-preview__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 rgba(74, 222, 128, 0.6);
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.hero__scroll-hint {
  position: relative;
  z-index: 1;
  margin-top: 44px;
  display: flex;
  justify-content: center;
}

.hero__scroll-hint a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  font-size: 18px;
  animation: bob 2s ease-in-out infinite;
  background: #fff;
}

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

/* Stats strip */
.stats {
  padding: 50px 0;
  background: linear-gradient(135deg, var(--purple-dark), var(--purple) 60%, #8a6ef0);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat__number {
  font-size: 38px;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.stat__label {
  margin-top: 6px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.8);
}

/* Sections */
.section {
  padding: 90px 0;
  border-top: 1px solid var(--border);
}

.section--tint {
  background: var(--bg-soft);
}

.section__head {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 52px;
}

.section__eyebrow {
  display: inline-block;
  color: var(--purple);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section__head h2 {
  font-size: 34px;
  margin: 0 0 12px;
  font-weight: 800;
}

.section__head p {
  color: var(--text-muted);
  font-size: 16px;
}

/* Product features */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  background: #fff;
  transition: opacity 0.6s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(30, 20, 80, 0.08);
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--purple-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--purple);
  transition: background-color 0.25s ease, color 0.25s ease;
}

.feature-card__icon svg { transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }

.feature-card:hover .feature-card__icon {
  background: var(--purple);
  color: #fff;
}

.feature-card:hover .feature-card__icon svg {
  transform: scale(1.15) rotate(-6deg);
}

.feature-card h3 {
  font-size: 16px;
  margin: 0 0 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Solutions */
.solutions__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.solution-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  transition: opacity 0.6s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(30, 20, 80, 0.08);
}

.solution-card h3 {
  font-size: 16px;
  margin: 0 0 10px;
  color: var(--purple-dark);
}

.solution-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Pricing */
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}

.price-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  transition: opacity 0.6s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(30, 20, 80, 0.08);
}

.price-card--featured {
  border-color: var(--purple);
  box-shadow: 0 16px 40px rgba(106, 79, 224, 0.18);
}

.price-card--featured:hover {
  box-shadow: 0 20px 48px rgba(106, 79, 224, 0.26);
}

.price-card__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--purple);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

.price-card h3 {
  font-size: 16px;
  margin: 6px 0 10px;
}

.price-card__amount {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 20px;
}

.price-card__amount span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.price-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  flex: 1;
}

.price-card__features li {
  font-size: 13.5px;
  color: var(--text-dark);
  padding: 8px 0;
  border-top: 1px solid var(--border);
}

.price-card__features li:first-child { border-top: none; }

/* Help */
.help__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.help-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  transition: opacity 0.6s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.help-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(30, 20, 80, 0.08);
}

.help-card h3 {
  font-size: 16px;
  margin: 0 0 8px;
  color: var(--purple-dark);
}

.help-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Scroll-in delay stagger */
.features__grid .reveal-card:nth-child(1) { transition-delay: 0.05s; }
.features__grid .reveal-card:nth-child(2) { transition-delay: 0.1s; }
.features__grid .reveal-card:nth-child(3) { transition-delay: 0.15s; }
.features__grid .reveal-card:nth-child(4) { transition-delay: 0.2s; }
.features__grid .reveal-card:nth-child(5) { transition-delay: 0.25s; }
.features__grid .reveal-card:nth-child(6) { transition-delay: 0.3s; }

.solutions__grid .reveal-card:nth-child(1) { transition-delay: 0.05s; }
.solutions__grid .reveal-card:nth-child(2) { transition-delay: 0.1s; }
.solutions__grid .reveal-card:nth-child(3) { transition-delay: 0.15s; }
.solutions__grid .reveal-card:nth-child(4) { transition-delay: 0.2s; }

.pricing__grid .reveal-card:nth-child(1) { transition-delay: 0.05s; }
.pricing__grid .reveal-card:nth-child(2) { transition-delay: 0.1s; }
.pricing__grid .reveal-card:nth-child(3) { transition-delay: 0.15s; }
.pricing__grid .reveal-card:nth-child(4) { transition-delay: 0.2s; }

.help__grid .reveal-card:nth-child(1) { transition-delay: 0.05s; }
.help__grid .reveal-card:nth-child(2) { transition-delay: 0.1s; }
.help__grid .reveal-card:nth-child(3) { transition-delay: 0.15s; }

@media (prefers-reduced-motion: reduce) {
  /* Smooth-scrolling to a section (clicking Product/Pricing/etc in the nav)
     and the one-time fade/slide-up as a section or card enters view are
     both kept even under reduced-motion - they're short, single-direction
     entrances, not the open-ended parallax/looping motion this setting
     exists to suppress. Only the continuously-looping decorative bits
     (blobs, floating channel chips, the rail dash, the widget mockup) are
     turned off below. */
  .btn, .nav__links a.link,
  .blob, .channel-chip, .rail-connector::after, .widget-preview,
  .widget-preview__dot, .feature-card__icon svg {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .btn:hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    transform: translateY(-2px) scale(1.03) !important;
  }

  .btn:active {
    transform: translateY(0) scale(0.97) !important;
  }

  .nav__links a.link:hover {
    transition: transform 0.25s ease, filter 0.25s ease !important;
    transform: scale(1.18) !important;
  }
}

/* CTA band */
.cta-band {
  margin: 20px 0 70px;
  background: linear-gradient(135deg, var(--purple-dark), var(--purple) 60%, #8a6ef0);
  border-radius: 24px;
  padding: 56px 32px;
  text-align: center;
  color: #fff;
}

.cta-band h2 {
  font-size: 28px;
  margin: 0 0 12px;
}

.cta-band p {
  margin: 0 0 28px;
  color: rgba(255,255,255,0.85);
  font-size: 15px;
}

.cta-band .btn--solid {
  background: #fff;
  color: var(--purple-dark);
}

.cta-band .btn--solid:hover { background: #f2f0ff; }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 13px;
}

.footer__links { display: flex; gap: 20px; }
.footer__links a { color: var(--text-muted); }
.footer__links a:hover { color: var(--text-dark); }

@media (max-width: 980px) {
  .solutions__grid { grid-template-columns: repeat(2, 1fr); }
  .pricing__grid { grid-template-columns: repeat(2, 1fr); }
  .help__grid { grid-template-columns: 1fr; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero__cta { justify-content: center; }
  .hero__visual { margin-top: 20px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (max-width: 860px) {
  .features__grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .nav__links { display: none; }
}

@media (max-width: 640px) {
  .hero__visual { transform: scale(0.85); transform-origin: top center; }
}

@media (max-width: 560px) {
  .solutions__grid { grid-template-columns: 1fr; }
  .pricing__grid { grid-template-columns: 1fr; }
  .footer { flex-direction: column; gap: 14px; text-align: center; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero__visual { display: none; }
  .hero h1 { font-size: 30px; }
}
