:root {
  --purple-900: #2e1065;
  --purple-800: #3b0764;
  --purple-700: #5b21b6;
  --purple-600: #6d28d9;
  --purple-500: #7c3aed;
  --purple-400: #a855f7;
  --fuchsia-500: #d946ef;
  --pink-500: #ec4899;
  --ink: #1f1235;
  --muted: #6b6280;
  --bg: #ffffff;
  --bg-alt: #f7f4ff;
  --card: #ffffff;
  --line: rgba(109, 40, 217, 0.14);
  --shadow: 0 18px 50px -20px rgba(76, 29, 149, 0.45);
  --shadow-sm: 0 10px 30px -18px rgba(76, 29, 149, 0.5);
  --grad: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 45%, #d946ef 100%);
  --grad-soft: linear-gradient(135deg, #f5f0ff 0%, #fbe9ff 100%);
  --grad-text: var(--grad);
  --on-light-btn: #5b21b6; /* фіксований колір тексту на білих кнопках/плашках у будь-якій темі */
  --card-ink: #1f1235;
  --card-muted: #6b6280;
  color-scheme: light;
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1160px;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Unbounded", "Manrope", system-ui, sans-serif;
}

/* ---------- Dark theme ---------- */
[data-theme="dark"] {
  --purple-700: #c4b5fd;
  --purple-600: #a78bfa;
  --purple-500: #8b5cf6;
  --ink: #f2ecff;
  --muted: #a99ec9;
  --bg: #140a24;
  --bg-alt: #1b1030;
  --card: #1e1438;
  --line: rgba(168, 85, 247, 0.22);
  --grad-soft: linear-gradient(135deg, #271748 0%, #341a52 100%);
  --grad-text: linear-gradient(135deg, #a78bfa 0%, #c084fc 50%, #f0abfc 100%);
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.75);
  --shadow-sm: 0 10px 30px -16px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

body { transition: background-color .35s ease, color .35s ease; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.02em;
}

p { margin: 0 0 1em; }

a { color: var(--purple-600); text-decoration: none; }

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

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

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(124, 58, 237, .75);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -14px rgba(124, 58, 237, .85); }
.btn-outline { background: transparent; color: var(--purple-600); border-color: var(--line); }
.btn-outline:hover { background: var(--purple-500); color: #fff; transform: translateY(-3px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { color: var(--purple-600); }
.btn-light { background: #fff; color: var(--on-light-btn); }
.btn-light:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -14px rgba(0,0,0,.35); }
.btn-outline-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-light:hover { background: #fff; color: var(--on-light-btn); }

/* ---------- Background orbs ---------- */
.bg-orbs { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .45; animation: floaty 16s ease-in-out infinite; }
.orb-1 { width: 520px; height: 520px; background: radial-gradient(circle, #a855f7, transparent 70%); top: -180px; left: -140px; }
.orb-2 { width: 460px; height: 460px; background: radial-gradient(circle, #d946ef, transparent 70%); top: 32%; right: -180px; animation-delay: -5s; }
.orb-3 { width: 480px; height: 480px; background: radial-gradient(circle, #6d28d9, transparent 70%); bottom: -200px; left: 30%; animation-delay: -9s; }

@keyframes floaty {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.08); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, .78);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 8px 30px -20px rgba(76,29,149,.6); }
[data-theme="dark"] .site-header { background: rgba(20, 10, 36, .82); }
[data-theme="dark"] .section-alt { background: linear-gradient(180deg, rgba(27,16,48,.72), rgba(20,10,36,.4)); }
[data-theme="dark"] .site-footer { background: #0d0618; }
.header-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-family: var(--font-head); font-weight: 800;
  box-shadow: var(--shadow-sm);
}
.brand-text { font-family: var(--font-head); font-size: 1.05rem; }
.brand-text span { color: var(--purple-500); }
.main-nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: nowrap; }
.main-nav a {
  color: var(--ink); font-weight: 600; font-size: .88rem; padding: 8px 11px; border-radius: 999px;
  white-space: nowrap; transition: background .2s ease, color .2s ease;
}
.main-nav a:hover, .main-nav a.active { background: var(--grad-soft); color: var(--purple-600); }
.header-cta { display: flex; gap: 8px; flex-wrap: nowrap; }
.header-cta .btn { padding: 11px 16px; }
.header-tools { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--grad-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}
.lang-opt {
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .03em;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--muted);
  transition: background .2s ease, color .2s ease;
}
.lang-opt.active { background: var(--grad); color: #fff; }
.lang-opt:not(.active):hover { color: var(--purple-600); }
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--purple-600);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.theme-toggle:hover { transform: translateY(-2px); border-color: var(--purple-400); color: var(--purple-500); }
.theme-toggle svg { display: none; }
html[data-theme-pref="auto"] .theme-toggle .ico-auto { display: block; }
html[data-theme-pref="light"] .theme-toggle .ico-sun { display: block; }
html[data-theme-pref="dark"] .theme-toggle .ico-moon { display: block; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; border-radius: 10px; }

/* ---------- Focus (клавіатура) ---------- */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--purple-400); outline-offset: 3px; border-radius: 10px;
}
.btn:focus-visible, .lang-opt:focus-visible { border-radius: 999px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ---------- Sections ---------- */
.section { position: relative; padding: 96px 0; }
.section-alt { background: linear-gradient(180deg, rgba(247,244,255,.7), rgba(255,255,255,.4)); }
.section-head { max-width: 780px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.section-head p { color: var(--muted); font-size: 1.06rem; }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--purple-600); background: var(--grad-soft); padding: 7px 16px; border-radius: 999px; margin-bottom: 18px;
}

/* ---------- Hero ---------- */
.hero { padding-top: 70px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.hero-copy h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); margin-bottom: 22px; }
.hero-sub { font-size: 1.12rem; color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-actions.center { justify-content: center; }
.hero-stats { list-style: none; display: flex; gap: 34px; padding: 26px 0 0; margin: 26px 0 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-head); font-size: 1.7rem; color: var(--purple-600); }
.hero-stats span { font-size: .85rem; color: var(--muted); }

.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  width: min(340px, 100%); background: var(--grad); border-radius: 40px; padding: 20px 16px 26px;
  box-shadow: 0 40px 80px -30px rgba(76,29,149,.75); position: relative;
  animation: rise 1s ease both;
}
.phone-notch { width: 110px; height: 6px; background: rgba(255,255,255,.4); border-radius: 4px; margin: 0 auto 16px; }
.feed-card { color: var(--card-ink); background: rgba(255,255,255,.96); border-radius: 18px; padding: 14px 16px; margin-bottom: 14px; box-shadow: 0 10px 24px -16px rgba(0,0,0,.5); }
.feed-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.feed-head b { font-size: .9rem; }
.feed-head small { display: block; color: var(--card-muted); font-size: .72rem; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; flex: 0 0 auto; }
.avatar.alt { background: linear-gradient(135deg,#ec4899,#8b5cf6); }
.feed-card p { font-size: .86rem; margin: 0 0 10px; }
.feed-bar { display: flex; gap: 14px; font-size: .76rem; color: var(--card-muted); }
.feed-tag { font-size: .74rem; font-weight: 700; color: var(--on-light-btn); background: linear-gradient(135deg, #f5f0ff 0%, #fbe9ff 100%); padding: 5px 10px; border-radius: 8px; display: inline-block; }
.float-slow { animation: rise 1s ease .2s both, floatCard 6s ease-in-out infinite 1.2s; }
.float-pill {
  position: absolute; background: #fff; color: var(--on-light-btn); font-weight: 800; font-size: .82rem;
  padding: 9px 16px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.pill-1 { top: -14px; left: -26px; animation: bob 4s ease-in-out infinite; }
.pill-2 { bottom: -14px; right: -20px; animation: bob 4s ease-in-out infinite .8s; }

@keyframes rise { from { opacity: 0; transform: translateY(40px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes floatCard { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- Cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card, .feature, .mini-card, .step, .price-box, .faq-item, .points-table-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card { padding: 30px 26px; }
.card:hover, .feature:hover, .mini-card:hover, .step:hover, .price-box:hover {
  transform: translateY(-8px); box-shadow: var(--shadow); border-color: rgba(168,85,247,.4);
}
.card-icon, .feature-icon {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem;
  background: var(--grad-soft); margin-bottom: 18px;
}
.card h3 { font-size: 1.15rem; }
.card p, .feature p, .mini-card p, .step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature { padding: 26px 22px; }
.feature h3 { font-size: 1.05rem; }
.feature-icon { font-size: 1.35rem; }

/* ---------- Monetization ---------- */
.money-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 30px; align-items: start; }
.points-table-wrap { padding: 8px; overflow: hidden; }
.points-table { width: 100%; border-collapse: collapse; }
.points-table caption { caption-side: top; text-align: left; padding: 16px 16px 8px; font-weight: 700; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.points-table th, .points-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: .94rem; }
.points-table thead th { color: var(--purple-600); font-weight: 700; }
.points-table tbody tr:last-child td { border-bottom: 0; }
.points-table tbody tr { transition: background .2s ease; }
.points-table tbody tr:hover { background: var(--grad-soft); }
.points-table td b { color: var(--purple-600); font-family: var(--font-head); }
.money-cards { display: grid; gap: 18px; }
.mini-card { padding: 22px 24px; }
.mini-card h3 { font-size: 1.05rem; }
.callout {
  margin-top: 34px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--grad); color: #fff; border-radius: var(--radius); padding: 32px 34px; box-shadow: var(--shadow);
}
.callout h3 { color: #fff; margin-bottom: 8px; }
.callout p { margin: 0; color: rgba(255,255,255,.92); }
.callout .btn-primary { background: #fff; color: var(--on-light-btn); box-shadow: none; }
.callout .btn-primary:hover { box-shadow: 0 18px 36px -14px rgba(0,0,0,.35); }

/* ---------- Steps / Ads ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { padding: 30px 24px; position: relative; overflow: hidden; }
.step-num {
  font-family: var(--font-head); font-size: 2rem; font-weight: 800;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  display: block; margin-bottom: 8px;
}
.step h3 { font-size: 1.05rem; }
.pricing-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 34px; }
.price-box { padding: 24px; text-align: center; }
.price-box span { display: block; color: var(--muted); font-size: .85rem; }
.price-box strong { display: block; font-family: var(--font-head); font-size: 1.9rem; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; margin: 6px 0; }
.price-box small { color: var(--muted); font-size: .78rem; }
.note { margin-top: 26px; text-align: center; color: var(--muted); font-size: .9rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { padding: 6px 24px; }
.faq-item summary {
  cursor: pointer; list-style: none; font-weight: 700; font-size: 1.05rem; padding: 18px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-family: var(--font-head); font-size: 1.4rem; color: var(--purple-500);
  transition: transform .3s ease; flex: 0 0 auto;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted); padding-bottom: 18px; margin: 0; animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- CTA ---------- */
.cta-section { padding-top: 20px; }
.cta-box {
  background: var(--grad); color: #fff; text-align: center; border-radius: 30px; padding: 64px 30px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.cta-box::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.25), transparent 45%);
}
.cta-box h2, .cta-box p, .cta-box .hero-actions { position: relative; }
.cta-box h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); color: #fff; }
.cta-box p { color: rgba(255,255,255,.92); max-width: 620px; margin: 0 auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.8); padding: 60px 0 26px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: #fff; }
.footer-desc { margin-top: 16px; font-size: .92rem; max-width: 360px; }
.site-footer h3 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer nav { display: flex; flex-direction: column; gap: 9px; }
.site-footer nav a { color: rgba(255,255,255,.72); font-size: .9rem; transition: color .2s ease; }
.site-footer nav a:hover { color: var(--purple-400); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); font-size: .84rem;
}
.flag { font-size: 1rem; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 1.2rem;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: .3s; z-index: 90;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0; transform: translateY(34px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22,.61,.36,1), box-shadow .3s ease, border-color .3s ease;
}
.reveal.visible { opacity: 1; transform: none; }
/* hover-підйом має вищу специфічність, ніж .reveal.visible, інакше він не спрацьовує */
.card.reveal.visible:hover, .feature.reveal.visible:hover, .mini-card.reveal.visible:hover,
.step.reveal.visible:hover, .price-box.reveal.visible:hover {
  transform: translateY(-8px);
  transition: opacity .7s ease, transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
/* без JS контент не має лишатися прихованим */
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
/* Навігація згортається в меню раніше, ніж посилання почнуть обрізатися */
@media (max-width: 1140px) {
  .brand { flex: 0 0 auto; }
  .main-nav {
    position: fixed; inset: 74px 0 auto; flex-direction: column; flex-wrap: nowrap; gap: 4px;
    background: #fff; padding: 20px 22px; box-shadow: var(--shadow);
    transform: translateY(-130%); visibility: hidden; margin: 0;
    transition: transform .35s ease, visibility 0s linear .35s;
    max-height: calc(100vh - 74px); overflow-y: auto;
  }
  .main-nav.open { transform: none; visibility: visible; transition-delay: 0s; }
  [data-theme="dark"] .main-nav { background: #1b1030; }
  .main-nav a { padding: 12px 16px; }
  .header-tools { margin-left: auto; }
  .header-cta { margin-left: 0; }
  .nav-toggle { display: block; flex: 0 0 auto; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { margin-top: 30px; }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .pricing-strip { grid-template-columns: repeat(2, 1fr); }
  .money-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .header-cta .btn-ghost { display: none; }
}

@media (max-width: 720px) {
  .section { padding: 68px 0; }
  .brand-text { display: none; }
  .lang-opt { padding: 6px 10px; }
  .cards-3, .feature-grid, .steps, .pricing-strip, .footer-grid { grid-template-columns: 1fr; }
  .callout { flex-direction: column; text-align: center; }
  .phone { width: min(300px, 100%); }
  .pill-1 { left: -10px; }
  .pill-2 { right: -6px; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 480px) {
  .header-inner { gap: 8px; min-height: 66px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 10px; font-size: 1rem; }
  .lang-switch { padding: 2px; }
  .lang-opt { padding: 5px 8px; font-size: .7rem; }
  .theme-toggle { width: 34px; height: 34px; }
  .header-cta .btn { padding: 10px 13px; font-size: .82rem; }
  .main-nav { inset: 66px 0 auto; max-height: calc(100vh - 66px); }
  .section { padding: 56px 0; }
}
