/* ═══ RESET & TOKENS ═══ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --accent: #7448FF;
  --accent-light: #A060F4;
  --teal: #00BDC9;
  --green: #22c55e;
  --gradient: linear-gradient(135deg, #7448FF 0%, #A060F4 50%, #00BDC9 100%);

  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --text: #111827;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --line: #e5e7eb;

  --nav-h: 64px;
  --container: 1140px;
  --radius: 16px;
  --radius-sm: 10px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══ BUTTONS ═══ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 100px;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--accent {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(116, 72, 255, 0.3);
}
.btn--accent:hover { box-shadow: 0 6px 28px rgba(116, 72, 255, 0.4); }
.btn--outline {
  background: var(--bg);
  color: var(--text);
  border: 1.5px solid var(--line);
}
.btn--outline:hover { border-color: var(--text-muted); }

/* ═══ NAV ═══ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100;
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 1px 8px rgba(0,0,0,0.06); }
.nav__inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 32px;
}
.nav__logo img { height: 22px; width: auto; }
.nav__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav__link:hover { color: var(--text); }
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
  font-weight: 600;
  border-radius: 100px;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.nav__cta:hover { opacity: 0.85; }
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
  margin-left: auto;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--bg);
  padding: 16px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 99;
  transform: translateY(-110%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.mobile-menu.open { transform: translateY(0); opacity: 1; }
.mobile-menu a {
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--line);
  transition: background 0.2s, color 0.2s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { background: var(--bg-alt); color: var(--text); }
.mobile-menu__cta {
  margin-top: 8px;
  text-align: center;
  background: var(--text) !important;
  color: var(--bg) !important;
  padding: 14px 16px !important;
  border-radius: 100px !important;
  font-weight: 600 !important;
}
.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  top: var(--nav-h);
  background: rgba(0,0,0,0.3);
  z-index: 98;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-menu-backdrop.open { opacity: 1; pointer-events: auto; }

/* ═══ HERO ═══ */
.hero {
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 60px;
  background: var(--bg-alt);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero__title {
  font-size: clamp(24px, 3.5vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--text-secondary);
}
.hero__title-sub {
  font-size: clamp(20px, 2.8vw, 32px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__subtitle {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 480px;
}
.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero__stats { display: flex; gap: 16px; }
.hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.hero__stat-num {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero__stat-num--purple { color: var(--accent); }
.hero__stat-num--teal { color: var(--teal); }
.hero__stat-num--green { color: var(--green); }
.hero__stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
}
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero__phones {
  max-width: 640px;
  width: 100%;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,0.15));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ═══ TRUST BAR ═══ */
.trust {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust__label {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.trust__track {
  overflow: hidden;
  width: 100%;
}
.trust__logos {
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  animation: marquee 20s linear infinite;
}
.trust__logos:hover {
  animation-play-state: paused;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-25%); }
}
.trust__name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.trust__name:hover {
  opacity: 1;
}
.trust__sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
}

/* ═══ STEPS ═══ */
.steps {
  padding: 80px 0;
  background: var(--bg);
  overflow: hidden;
}
.steps__title {
  text-align: center;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 400;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 8px;
}
.steps__title strong { font-weight: 700; }
.steps__desc {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 48px;
  line-height: 1.6;
}
.steps__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 48px;
  padding-bottom: 40px;
}
.steps__col {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.steps__pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  position: relative;
  z-index: 1;
  width: 100%;
}
.steps__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f2f2f4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.steps__pill span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1;
}
.steps__line-v {
  width: 2px;
  height: 16px;
  background-image: repeating-linear-gradient(to bottom, var(--text-muted) 0, var(--text-muted) 4px, transparent 4px, transparent 9px);
  opacity: 0.3;
}
.steps__line-h {
  position: absolute;
  top: 27px;
  left: 0;
  right: 0;
  height: 2px;
  background-image: repeating-linear-gradient(to right, var(--text-muted) 0, var(--text-muted) 5px, transparent 5px, transparent 11px);
  opacity: 0.5;
  z-index: 0;
}
.steps__phone { width: 100%; }
.steps__phone img { width: 100%; height: auto; }
.steps__dots {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.steps__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  transition: background 0.3s, transform 0.3s;
}
.steps__dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

/* ═══ FEATURES ═══ */
.features {
  padding: 80px 0;
  background: var(--bg-alt);
}
.features__title {
  text-align: center;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
}
.features__grid {
  display: flex;
  gap: 20px;
}
.features__card {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.features__card-img {
  height: 320px;
  position: relative;
  overflow: hidden;
  padding: 16px 16px 0;
}
.features__card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}
.features__card:last-child .features__card-img {
  padding: 24px 0 0 24px;
  border-radius: 12px;
}
.features__card:last-child .features__card-img img {
  object-fit: cover;
  object-position: top left;
  border-radius: 12px 0 0 0;
  box-shadow: -2px 2px 20px rgba(0,0,0,0.08);
}
.features__card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.features__card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.features__card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.features__checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.features__checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.features__checklist svg { flex-shrink: 0; }
.features__card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: var(--text);
  color: var(--bg);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.2s;
  margin-top: 24px;
}
.features__card-btn:hover { opacity: 0.85; }

/* ═══ CASES ═══ */
.cases {
  padding: 80px 0;
  background: var(--bg-alt);
}
.cases__title {
  text-align: center;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 32px;
}
.cases__tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}
.cases__tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px 10px 10px;
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: 100px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.cases__tab:hover { border-color: var(--text-muted); }
.cases__tab.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.cases__tab-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: contain;
}
.cases__content { display: none; }
.cases__content.active { display: block; }
.cases__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg);
}
.cases__info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.cases__logo-block {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.cases__logo {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  border: 1px solid var(--line);
  object-fit: contain;
  flex-shrink: 0;
}
.cases__name {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.cases__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.cases__stats {
  display: flex;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cases__stat { flex: 1; text-align: center; }
.cases__stat-num {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}
.cases__stat-label { font-size: 12px; color: var(--text-muted); }
.cases__stat-sep {
  width: 1px;
  height: 40px;
  background: var(--line);
}
.cases__screens {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 8px;
  align-items: flex-start;
}
.cases__screens::-webkit-scrollbar { display: none; }
.cases__screens img {
  height: 300px;
  width: auto;
  border-radius: 16px;
  flex-shrink: 0;
}

/* ═══ BLOG ═══ */
.blog {
  padding: 80px 0;
  background: var(--bg);
}
.blog__title {
  text-align: center;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.blog__desc {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 40px;
}
.blog__grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.blog__grid::-webkit-scrollbar { display: none; }
.blog__card {
  flex: 0 0 340px;
  scroll-snap-align: start;
}
.blog__card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  flex: 0 0 340px;
  scroll-snap-align: start;
}
.blog__card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.blog__card-img {
  width: 100%;
  height: 200px;
}
.blog__card-body {
  padding: 24px;
}
.blog__card-date {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
}
.blog__card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}
.blog__card-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ═══ CTA ═══ */
.cta {
  padding: 80px 0;
  background: var(--bg-alt);
  text-align: center;
}
.cta__title {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}
.cta__desc {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}
.cta__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══ FOOTER ═══ */
.footer {
  padding: 60px 0 0;
  background: var(--text);
  color: rgba(255,255,255,0.7);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer__logo {
  height: 24px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 12px;
}
.footer__tagline {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 20px;
}
.footer__social {
  display: flex;
  gap: 12px;
}
.footer__social a {
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer__social a:hover { color: #fff; }
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__col-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer__col a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer__col a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.footer__links {
  display: flex;
  gap: 24px;
}
.footer__links a {
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}
.footer__links a:hover { color: rgba(255,255,255,0.8); }

/* ═══ RESPONSIVE ═══ */

@media (max-width: 1024px) {
  .hero__phones { max-width: 400px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 56px; }
  .container { padding: 0 20px; }

  /* Nav */
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }

  .hide-mobile { display: none !important; }

  /* Hero */
  .hero {
    padding-top: calc(var(--nav-h) + 24px);
    padding-bottom: 28px;
  }
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__visual { display: none; }
  .hero__subtitle {
    font-size: 14px;
    margin-bottom: 24px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero__title { font-size: 22px; }
  .hero__title-sub { font-size: 18px; margin-bottom: 14px; }
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    justify-content: center;
  }
  .btn {
    justify-content: center;
    padding: 12px 20px;
    font-size: 14px;
  }
  .hero__stats { gap: 10px; justify-content: center; }
  .hero__stat { padding: 14px 12px; min-width: 0; flex: 1; }
  .hero__stat-num { font-size: 22px; }
  .hero__stat-label { font-size: 11px; }

  /* Trust */
  .trust { padding: 14px 0; }
  .trust__name { font-size: 14px; }

  /* Steps */
  .steps { padding: 32px 0; }
  .steps__grid {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 16px;
    margin: 0 -20px;
    padding: 0 20px;
    scrollbar-width: none;
  }
  .steps__grid::-webkit-scrollbar { display: none; }
  .steps__col { flex: 0 0 55%; scroll-snap-align: center; }
  .steps__line-h { display: none; }
  .steps__dots { display: flex; }

  /* Features — horizontal swipe */
  .features { padding: 24px 0; }
  .features__title { font-size: 20px; margin-bottom: 16px; }
  .features__grid {
    flex-direction: row;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }
  .features__grid::-webkit-scrollbar { display: none; }
  .features__card {
    border-radius: 16px;
    flex: 0 0 85%;
    scroll-snap-align: center;
  }
  .features__card-img { height: 220px; padding: 16px 16px 0; }
  .features__card-body { padding: 20px; }
  .features__card-title { font-size: 16px; }
  .features__card-desc { font-size: 13px; margin-bottom: 16px; }
  .features__checklist { gap: 10px; }
  .features__checklist li { font-size: 13px; }
  .features__card-btn { padding: 12px; font-size: 13px; margin-top: 20px; }

  /* Cases */
  .cases { padding: 48px 0; }
  .cases__title { font-size: 22px; margin-bottom: 20px; }
  .cases__tabs { gap: 8px; margin-bottom: 24px; }
  .cases__tab { padding: 8px 14px 8px 8px; font-size: 13px; }
  .cases__tab-logo { width: 28px; height: 28px; }
  .cases__grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px;
    border-radius: 16px;
  }
  .cases__logo { width: 60px; height: 60px; }
  .cases__name { font-size: 20px; }
  .cases__screens img { height: 240px; }

  /* Blog */
  .blog { padding: 48px 0; }
  .blog__title { font-size: 22px; }
  .blog__desc { margin-bottom: 24px; }
  .blog__card { flex: 0 0 280px; }
  .blog__card-img { height: 160px; }
  .blog__card-body { padding: 20px; }
  .blog__card-title { font-size: 16px; }

  /* CTA */
  .cta { padding: 48px 0; }
  .cta__title { font-size: 22px; }
  .cta__desc { font-size: 14px; }
  .cta__actions { flex-direction: column; align-items: center; }

  /* Footer */
  .footer { padding: 40px 0 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer__links { gap: 16px; }
}

@media (max-width: 400px) {
  .hero__stats { gap: 6px; }
  .hero__stat { padding: 10px 6px; }
  .hero__stat-num { font-size: 18px; }
  .hero__stat-label { font-size: 10px; }
}
