/* ============================================================
   Reactive CRM — Marketing Landing Page
   Pure CSS design system (no frameworks, no CDN JS)
   ============================================================ */

/* ---------- 1. Reset & tokens ---------- */
:root {
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Sora", var(--font-body);

  --ink: #0c0f24;
  --ink-2: #141937;
  --surface: #ffffff;
  --surface-soft: #f5f7fd;

  --primary: #5b5ef4;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --green: #10b981;
  --amber: #f59e0b;

  --grad: linear-gradient(120deg, #5b5ef4 0%, #8b5cf6 48%, #22d3ee 100%);
  --grad-soft: linear-gradient(120deg, rgba(91, 94, 244, .12), rgba(34, 211, 238, .12));

  --text: #0f172a;
  --muted: #5c6479;
  --faint: #98a0b5;

  --line: #e7eaf3;
  --line-dark: rgba(255, 255, 255, .12);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow-md: 0 12px 30px rgba(16, 24, 40, .10);
  --shadow-lg: 0 30px 70px rgba(16, 24, 40, .16);
  --shadow-glow: 0 0 0 1px rgba(91, 94, 244, .18), 0 20px 60px rgba(91, 94, 244, .28);

  --maxw: 1200px;
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
}

::selection { background: rgba(91, 94, 244, .25); }

/* ---------- 2. Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0; position: relative; }
.section--soft { background: var(--surface-soft); }
.section--dark { background: var(--ink); color: #e6e9f5; }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark .section-kicker { color: var(--cyan); }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- 3. Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
  background: var(--grad-soft); color: var(--primary);
  border: 1px solid rgba(91, 94, 244, .22);
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--grad); box-shadow: 0 0 0 4px rgba(91, 94, 244, .16);
}

.section-kicker {
  display: inline-block; margin-bottom: 14px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--primary);
}

.section-head { max-width: 660px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 44px); margin: 0 0 16px; }
.section-head p { font-size: 18px; color: var(--muted); }
.lead { font-size: 18px; color: var(--muted); }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  will-change: transform;
}
.btn svg { width: 17px; height: 17px; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-glow); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 24px 70px rgba(91, 94, 244, .4); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn--ghost-light { background: rgba(255,255,255,.06); color: #fff; border: 1px solid var(--line-dark); backdrop-filter: blur(8px); }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.btn--lg { padding: 17px 32px; font-size: 16px; }
.btn--sm { padding: 11px 20px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- 5. Navbar ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 100;
  display: flex; align-items: center; color: #fff;
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(12, 15, 36, .82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-dark);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.container.nav__inner { max-width: 1440px; }

.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand__logo { width: 38px; height: auto; display: block; flex: 0 0 auto; }

.nav__links { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 4px; width: max-content; }
.nav__links a { padding: 9px 14px; border-radius: 9px; font-size: 14.5px; font-weight: 500; color: rgba(255,255,255,.82); white-space: nowrap; transition: color .18s ease, background .18s ease; }
.nav__links a:hover { color: #fff; background: rgba(255,255,255,.08); }

.nav__actions { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; }
.language-select {
  position: relative; display: flex; align-items: center; width: 132px; height: 38px;
  color: rgba(255, 255, 255, .9); border: 1px solid var(--line-dark); border-radius: 10px;
  background: rgba(255, 255, 255, .06); transition: background .18s ease, border-color .18s ease;
}
.language-select:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .24); }
.language-select > svg { position: absolute; left: 10px; width: 16px; height: 16px; pointer-events: none; }
.language-select::after {
  content: ""; position: absolute; right: 10px; width: 6px; height: 6px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg); pointer-events: none;
}
.language-select select {
  width: 100%; height: 100%; padding: 0 28px 0 32px; border: 0; outline: 0;
  appearance: none; color: inherit; background: transparent; font: 500 13px/1 var(--font-body); cursor: pointer;
}
.language-select option,
.language-select optgroup { color: var(--text); background: #fff; }
.language-select optgroup { font-style: normal; font-weight: 700; }
/* Chrome derives the native dropdown's row indentation from the control's own
   padding, which pushes the option/optgroup rows to the right and leaves no room
   at the right edge. The open state therefore uses a small inline padding, while
   text-indent keeps the control's own text in place. Firefox/Safari ignore this. */
.language-select select:open { padding: 0 18px 0 12px; text-indent: 20px; }
.nav__toggle { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-dark); color: #fff; place-items: center; }
.nav__toggle svg { width: 20px; height: 20px; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + 84px) 0 120px;
  background: var(--ink); color: #fff;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.orb--a { width: 520px; height: 520px; top: -160px; left: -120px; background: radial-gradient(circle, #5b5ef4, transparent 70%); }
.orb--b { width: 460px; height: 460px; bottom: -180px; right: -80px; background: radial-gradient(circle, #22d3ee, transparent 70%); }
.orb--c { width: 360px; height: 360px; top: 30%; right: 30%; background: radial-gradient(circle, #8b5cf6, transparent 70%); opacity: .35; }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 70%);
}

.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.2vw, 62px); color: #fff; margin: 22px 0 20px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { font-size: 18px; color: rgba(255,255,255,.72); max-width: 520px; }
.hero__cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero__meta { display: grid; grid-template-columns: repeat(2, max-content); column-gap: 44px; row-gap: 22px; margin-top: 46px; }
.hero__meta li { display: flex; flex-direction: column; font-size: 14px; color: rgba(255,255,255,.58); }
.hero__meta strong { font-family: var(--font-display); font-size: 22px; color: #fff; letter-spacing: -0.01em; }
.hero__meta .grad-text { width: fit-content; background: linear-gradient(120deg, var(--violet) 0%, var(--cyan) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- 7. Hero mockup (CRM preview) ---------- */
.hero__mock { position: relative; }
.hero__mock::before {
  content: ""; position: absolute; inset: -40px;
  background: radial-gradient(circle at 50% 50%, rgba(91, 94, 244, .4), transparent 70%);
  filter: blur(40px); z-index: 0;
}
.mock {
  position: relative; z-index: 1; background: #fff; color: var(--text);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .14);
}

/* Make the hero mockup 15% larger on the desktop two-column layout */
@media (min-width: 1025px) {
  .mock { transform: scale(1.15); }
}
.mock__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #f4f5fa; border-bottom: 1px solid var(--line); }
.t { width: 12px; height: 12px; border-radius: 50%; }
.t--r { background: #ff5f57; } .t--y { background: #febc2e; } .t--g { background: #28c840; }
.mock__url { margin-left: 10px; font-size: 12px; color: var(--faint); background: #fff; border: 1px solid var(--line); padding: 3px 12px; border-radius: 6px; }
.mock__body { display: grid; grid-template-columns: 60px 1fr; min-height: 460px; }
.mock__body--shot { display: block; min-height: 0; }
.mock__shot { display: block; width: 100%; height: auto; }
.mock__side { background: #141937; padding: 16px 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mock__logo { margin-bottom: 12px; }
.mock__logo-img { width: 34px; height: auto; display: block; }
.mock__item { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: rgba(255,255,255,.55); }
.mock__item svg { width: 18px; height: 18px; }
.mock__item.is-active { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(91, 94, 244, .5); }
.mock__main { padding: 18px; background: #fff; }
.mock__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.mock__title { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.mock__pill { font-size: 11px; font-weight: 700; color: #059669; background: rgba(16,185,129,.12); padding: 3px 9px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; }
.mock__pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #10b981; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.kpi { background: var(--surface-soft); border: 1px solid var(--line); border-radius: 12px; padding: 11px; }
.kpi__label { display: block; font-size: 10.5px; color: var(--muted); }
.kpi__val { display: block; font-family: var(--font-display); font-weight: 700; font-size: 17px; margin: 3px 0 2px; }
.kpi__trend { font-size: 10px; font-weight: 600; color: #059669; }

.mock__panels { display: grid; grid-template-columns: 1.5fr 1fr; gap: 10px; margin-bottom: 14px; }
.chart, .funnel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.chart__head { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.legend { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: var(--faint); }
.legend i { width: 8px; height: 8px; border-radius: 2px; background: var(--primary); }
.chart__svg { width: 100%; height: 110px; }
.chart__area { fill: url(#area); }
.chart__line { fill: none; stroke: #5b5ef4; stroke-width: 2.5; stroke-linecap: round; }
.chart__dot { fill: #5b5ef4; stroke: #fff; stroke-width: 2; }

.funnel__bar { display: flex; justify-content: space-between; align-items: center; background: var(--grad-soft); color: var(--primary); border-radius: 6px; padding: 5px 8px; font-size: 10.5px; font-weight: 600; margin-bottom: 6px; width: var(--w); }
.funnel__bar b { color: var(--text); }

.deals { display: flex; flex-direction: column; gap: 8px; }
.deal { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; }
.deal__avatar { width: 30px; height: 30px; border-radius: 8px; background: var(--a); color: #fff; display: grid; place-items: center; font-size: 10px; font-weight: 700; flex: 0 0 auto; }
.deal__who { flex: 1; font-size: 12px; font-weight: 600; }
.deal__who em { font-style: normal; color: var(--faint); font-weight: 500; }
.deal__amt { font-size: 12.5px; font-weight: 700; }
.deal__st { font-size: 10px; font-weight: 700; color: #059669; background: rgba(16,185,129,.12); padding: 2px 8px; border-radius: 999px; }
.deal__st.pending { color: #b45309; background: rgba(245,158,11,.14); }

/* ---------- 8. Stats strip ---------- */
.stats { background: #fff; border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 46px 20px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__num { font-family: var(--font-display); font-size: clamp(34px, 4vw, 48px); font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -0.02em; }
.stat__label { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* ---------- 9. Features ---------- */
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; height: 100%;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(91, 94, 244, .3); }
.feature__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-soft); color: var(--primary); margin-bottom: 18px; }
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 19px; margin-bottom: 10px; }
.feature p { font-size: 15px; color: var(--muted); }
.feature__shot { margin: 0 0 22px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #141937; }
.feature__shot img { display: block; width: 100%; height: auto; }

/* ---------- 10. Showcase (split sections) ---------- */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.showcase--rev { direction: rtl; }
.showcase--rev > * { direction: ltr; }
.showcase__copy h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 18px; }
.showcase__copy > p { font-size: 17px; color: var(--muted); }
.section--dark .showcase__copy > p { color: rgba(255, 255, 255, .7); }
.showcase__list { margin-top: 28px; display: grid; gap: 16px; }
.showcase__list li { display: flex; gap: 13px; align-items: flex-start; }
.check { width: 24px; height: 24px; border-radius: 50%; background: var(--grad-soft); color: var(--primary); display: grid; place-items: center; flex: 0 0 auto; margin-top: 2px; }
.check svg { width: 13px; height: 13px; }
.showcase__list b { display: block; font-size: 15.5px; }
.showcase__list span { font-size: 14px; color: var(--muted); }
.section--dark .showcase__list span { color: rgba(255, 255, 255, .6); }
.section--dark .showcase__list b { color: #fff; }

/* Analytics visual */
.vis { background: rgba(255, 255, 255, .04); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-lg); }
.vis__tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.vis__tab { padding: 7px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .62); border: 1px solid var(--line-dark); background: transparent; cursor: pointer; font-family: inherit; transition: color .18s ease, background .18s ease, border-color .18s ease; }
.vis__tab:hover { color: #fff; border-color: rgba(255, 255, 255, .4); }
.vis__tab:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.vis__tab.is-active { background: var(--grad); color: #fff; border-color: transparent; }
.vis__slides { position: relative; }
.vis__slide { display: none; margin: 0; }
.vis__slide.is-active { display: block; }
.vis__slide img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line-dark); background: #141937; }
/* Single screenshot frame (no tabs) */
.vis--plain { padding: 26px; }
.vis--plain img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line-dark); background: #141937; }

/* Messenger visual */
.chat { background: #141937; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.chat img { display: block; width: 100%; height: auto; }

/* ---------- 11. How it works ---------- */
.step { text-align: center; padding: 34px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); height: 100%; }
.step__num { width: 56px; height: 56px; border-radius: 16px; background: var(--grad-soft); color: var(--primary); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 22px; margin: 0 auto 18px; }
.step h3 { font-size: 19px; margin-bottom: 10px; }
.step p { font-size: 15px; color: var(--muted); }

/* ---------- 12. Testimonials ---------- */
.testimonial { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; height: 100%; display: flex; flex-direction: column; gap: 16px; }
.testimonial__stars { color: #f59e0b; letter-spacing: 2px; font-size: 14px; }
.testimonial__quote { font-size: 16px; line-height: 1.65; color: #1e293b; flex: 1; }
.testimonial__who { display: flex; align-items: center; gap: 12px; }
.testimonial__avatar { width: 44px; height: 44px; border-radius: 12px; background: var(--grad-soft); color: var(--primary); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.testimonial__name { font-weight: 700; font-size: 14.5px; }
.testimonial__role { font-size: 13px; color: var(--muted); }

/* ---------- 13. Pricing ---------- */
.price { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; height: 100%; display: flex; flex-direction: column; position: relative; }
.price--featured { background: var(--ink); color: #fff; border-color: transparent; box-shadow: var(--shadow-lg); transform: translateY(-8px); }
.price--featured h3, .price--featured .price__amount { color: #fff; }
.price--featured .price__feat li { color: rgba(255, 255, 255, .78); }
.price--featured .price__period, .price--featured .price__desc { color: rgba(255, 255, 255, .6); }
.price__tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.price h3 { font-size: 20px; margin-bottom: 6px; }
.price__desc { font-size: 14px; color: var(--muted); }
.price__amount { font-family: var(--font-display); font-size: 48px; font-weight: 800; letter-spacing: -0.02em; margin: 22px 0 2px; }
.price__amount small { font-size: 18px; font-weight: 600; color: var(--muted); }
.price__period { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.price__feat { display: grid; gap: 12px; margin-bottom: 28px; flex: 1; }
.price__feat li { display: flex; gap: 10px; font-size: 14.5px; color: #334155; align-items: flex-start; }
.price__feat .check { width: 20px; height: 20px; margin-top: 1px; }
.price__feat .check svg { width: 11px; height: 11px; }

/* ---------- 14. FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.faq__item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; cursor: pointer; font-weight: 600; font-size: 16.5px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .plus { width: 26px; height: 26px; border-radius: 8px; background: var(--grad-soft); color: var(--primary); display: grid; place-items: center; font-size: 18px; line-height: 1; flex: 0 0 auto; transition: transform .2s ease; }
.faq__item[open] summary .plus { transform: rotate(45deg); }
.faq__item p { padding: 0 24px 22px; color: var(--muted); font-size: 15px; }

/* ---------- 15. CTA ---------- */
.cta { position: relative; overflow: hidden; border-radius: var(--radius-xl); background: var(--ink); padding: 84px 40px; text-align: center; color: #fff; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 0%, rgba(91, 94, 244, .45), transparent 55%), radial-gradient(circle at 80% 100%, rgba(34, 211, 238, .35), transparent 55%); }
.cta > * { position: relative; }
.cta h2 { color: #fff; font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 16px; }
.cta p { color: rgba(255, 255, 255, .75); font-size: 18px; max-width: 560px; margin: 0 auto 34px; }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- 16. Footer ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, .6); padding: 72px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.footer__brand p { font-size: 14.5px; margin-top: 16px; max-width: 300px; }
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 18px; letter-spacing: .02em; }
.footer ul { display: grid; gap: 12px; }
.footer ul a { font-size: 14.5px; transition: color .18s ease; }
.footer ul a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 28px; font-size: 13.5px; flex-wrap: wrap; }
/* Support e-mail — the address itself is never translated. */
.footer__mail { display: flex; align-items: center; gap: 7px; margin-top: 10px; }
.footer__mail svg { width: 16px; height: 16px; flex: none; color: #29a9eb; }
.footer__mail a { color: rgba(255, 255, 255, .85); font-weight: 600; transition: color .18s ease; }
.footer__mail a:hover { color: #fff; }
.footer__bottom a { color: rgba(255, 255, 255, .78); transition: color .18s ease; }
.footer__bottom a:hover { color: #fff; }

/* ---------- 17. Reveal animations ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 18. Responsive ---------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; gap: 56px; }
  .hero__mock { max-width: 640px; }
  .showcase { grid-template-columns: 1fr; gap: 44px; }
  .showcase--rev { direction: ltr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat { border-bottom: 1px solid var(--line); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1100px) {
  .nav__actions .btn { display: none; }
}

@media (max-width: 720px) {
  .nav__links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; flex: none; width: auto;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px 24px 24px;
    background: rgba(12, 15, 36, .97); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line-dark);
    transform: translateY(-120%); transition: transform .3s ease; z-index: -1;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { padding: 13px 14px; font-size: 16px; }
  .nav__toggle { display: grid; }
  .nav__inner { gap: 12px; }
  .nav__actions { gap: 8px; }
  .language-select { width: 112px; }
  .section { padding: 72px 0; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .hero { padding-top: calc(var(--nav-h) + 48px); padding-bottom: 72px; }
  .hero h1 { font-size: 38px; }
  .hero__meta { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .mock { transform: none; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .mock__panels { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; }
  .price--featured { transform: none; }
  .footer__grid { grid-template-columns: 1fr; }
  .cta { padding: 60px 24px; }
}

/* ===================== LIFECYCLE ===================== */
.lifecycle {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 8px;
}
.lc {
  position: relative;
  text-align: center;
  padding: 12px 16px;
}
.lc__badge {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  display: grid; place-items: center;
  border-radius: 20px;
  background: var(--grad-soft);
  color: var(--primary);
  position: relative; z-index: 1;
}
.lc__badge svg { width: 28px; height: 28px; }
.lc h3 { font-size: 18px; margin-bottom: 8px; }
.lc p { font-size: 14px; color: var(--muted); }
.lc__example {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px; font-weight: 600;
  color: var(--primary);
  background: var(--grad-soft);
  padding: 5px 12px; border-radius: 999px;
}
.lc__arrow {
  position: absolute; top: 30px; right: -12px;
  color: var(--faint); z-index: 0;
}
.lc__arrow svg { width: 22px; height: 22px; }

/* ===================== COMPLEX DEALS ===================== */
.complex { position: relative; overflow: hidden; }
.cases {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center;
  margin: 8px 0 24px;
}
.case {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 20px; border-radius: 999px;
  border: 1px solid var(--line-dark);
  color: rgba(255,255,255,.86);
  background: rgba(255,255,255,.04);
  font-weight: 600; font-size: 15px;
}
.case svg { width: 18px; height: 18px; color: var(--cyan); }
.complex__note {
  max-width: 760px; margin: 0 auto;
  color: rgba(255,255,255,.62);
  font-size: 15px;
}

/* ===================== WORKFLOW SMARTS ===================== */
.tiers { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tier {
  font-size: 12px; font-weight: 700;
  padding: 4px 11px; border-radius: 999px;
}
.tier--hot  { background: #fee2e2; color: #b91c1c; }
.tier--warm { background: #fef3c7; color: #b45309; }
.tier--cool { background: #dbeafe; color: #1d4ed8; }
.tier--cold { background: #e5e7eb; color: #4b5563; }
.badge-dots { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.badge-dots i { width: 13px; height: 13px; border-radius: 50%; }
.badge-dots i.g { background: #10b981; }
.badge-dots i.o { background: #f59e0b; }
.badge-dots i.r { background: #ef4444; }
.badge-dots span { font-size: 12px; color: var(--muted); }

@media (max-width: 720px) {
  .lifecycle { grid-template-columns: 1fr; gap: 28px; }
  .lc__arrow { display: none; }
  .cases { gap: 8px; }
  .case { padding: 10px 16px; font-size: 14px; }
}

/* ===================== LIGHTBOX ===================== */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(6, 8, 20, .88);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img {
  max-width: 92vw; max-height: 88vh;
  width: auto; height: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
}
.lightbox__close {
  position: absolute; top: 20px; right: 20px;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .2);
  cursor: pointer;
  transition: background .18s ease;
}
.lightbox__close:hover { background: rgba(255, 255, 255, .22); }
.lightbox__close svg { width: 22px; height: 22px; }

.mock__shot, .feature__shot img, .vis__slide img, .vis--plain img, .chat img { cursor: zoom-in; }

/* ===================== MODULES ===================== */
.modules {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.module {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.module:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: rgba(91, 94, 244, .3); }
.module__icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--grad-soft); color: var(--primary);
  margin-bottom: 14px;
}
.module__icon svg { width: 21px; height: 21px; }
.module h3 { font-size: 16px; margin-bottom: 6px; }
.module p { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

/* ===================== SEARCH & VOICE ===================== */
.search-demo {
  background: #141937;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-lg);
}
.search-demo__bar {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 8px 8px 8px 18px;
}
.search-demo__glass { width: 20px; height: 20px; color: var(--faint); flex: 0 0 auto; }
.search-demo__query {
  flex: 1; font-size: 15px; color: #fff;
  min-height: 22px;
}
.search-demo__mic {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; flex: 0 0 auto;
  background: var(--grad); color: #fff;
  transition: transform .18s ease, box-shadow .18s ease;
}
.search-demo__mic svg { width: 19px; height: 19px; }
.search-demo__mic.is-listening { box-shadow: 0 0 0 6px rgba(91, 94, 244, .25); }
.search-demo__eq {
  display: flex; align-items: flex-end; justify-content: center; gap: 5px;
  height: 34px; margin: 14px 0 4px;
}
.search-demo__eq i {
  width: 5px; height: 8px; border-radius: 4px;
  background: var(--cyan); opacity: .6;
  animation: eq 1s ease-in-out infinite;
}
.search-demo__eq i:nth-child(2) { animation-delay: .1s; }
.search-demo__eq i:nth-child(3) { animation-delay: .2s; }
.search-demo__eq i:nth-child(4) { animation-delay: .3s; }
.search-demo__eq i:nth-child(5) { animation-delay: .4s; }
@keyframes eq {
  0%, 100% { height: 8px; }
  50% { height: 30px; }
}
.search-demo__results {
  margin-top: 14px;
  display: grid; gap: 10px;
}
.sr-item {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  padding: 12px 14px;
}
.sr-item__badge {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 4px 9px; border-radius: 999px; flex: 0 0 auto;
  background: var(--grad-soft); color: var(--primary);
}
.sr-item b { display: block; font-size: 14px; color: #fff; }
.sr-item span { font-size: 12.5px; color: rgba(255, 255, 255, .55); }

/* ===================== PLUGINS ===================== */
.plugins { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.plugin {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; display: flex; flex-direction: column; gap: 14px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.plugin:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(91, 94, 244, .3); }
.plugin__head { display: flex; align-items: center; gap: 14px; }
.plugin__logo {
  width: 52px; height: 52px; border-radius: 14px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: var(--grad-soft); color: var(--primary);
}
.plugin__logo svg { width: 24px; height: 24px; }
.plugin__meta h3 { font-size: 18px; margin-bottom: 4px; }
.plugin__badge {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .03em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 999px;
  color: #047857; background: #d1fae5;
}
.plugin > p { font-size: 15px; color: var(--muted); flex: 1; }
.plugin__foot { display: flex; align-items: center; justify-content: space-between; }
.plugin__status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.plugin__status i { width: 8px; height: 8px; border-radius: 50%; background: #10b981; }
.plugin__toggle {
  width: 44px; height: 24px; border-radius: 999px; flex: 0 0 auto;
  background: #e5e7eb; position: relative; transition: background .2s ease;
}
.plugin__toggle::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s ease;
}
.plugin__toggle.is-on { background: var(--primary); }
.plugin__toggle.is-on::after { transform: translateX(20px); }

/* ===================== COMMUNICATIONS ===================== */
.comms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.comm {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; height: 100%;
  transition: transform .22s ease, box-shadow .22s ease;
}
.comm:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.comm__mock {
  background: #141937; border: 1px solid var(--line-dark);
  border-radius: var(--radius); padding: 16px; margin-bottom: 18px;
  display: grid; gap: 10px;
}
.comm h3 { font-size: 18px; margin-bottom: 8px; }
.comm p { font-size: 14.5px; color: var(--muted); }
.email-row { display: flex; align-items: center; gap: 11px; }
.email-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); flex: 0 0 auto; }
.email-row:nth-child(2) .email-dot { background: var(--violet); }
.email-row:nth-child(3) .email-dot { background: var(--green); }
.email-row b { display: block; font-size: 13.5px; color: #fff; }
.email-row span { font-size: 12px; color: rgba(255, 255, 255, .5); }
.phone-row { display: flex; align-items: center; gap: 11px; }
.phone-ico {
  width: 34px; height: 34px; border-radius: 10px; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
  background: var(--grad-soft); color: var(--primary);
}
.phone-row b { display: block; font-size: 13.5px; color: #fff; }
.phone-row span { font-size: 12px; color: rgba(255, 255, 255, .5); }
.comm__mock--cal { gap: 0; }
.cal-head {
  text-align: center; font-size: 14px; font-weight: 700; color: #fff;
  margin-bottom: 10px;
}
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-grid span {
  font-size: 11.5px; color: rgba(255, 255, 255, .65);
  padding: 4px 0; border-radius: 7px;
}
.cal-grid .cal-dow { color: rgba(255, 255, 255, .4); font-weight: 600; }
.cal-grid span.is-busy { background: var(--grad); color: #fff; font-weight: 700; }

/* ===================== API & INTEGRATIONS ===================== */
.api { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.api__copy h3 { font-size: 24px; margin-bottom: 14px; }
.api__copy > p { font-size: 16px; color: rgba(255, 255, 255, .7); }
.api__copy .api__cta { margin-top: 26px; }
.code {
  background: #0a0d1f; border: 1px solid var(--line-dark); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.code__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px; border-bottom: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, .03);
}
.code__dot { width: 11px; height: 11px; border-radius: 50%; }
.code__dot:nth-child(1) { background: #f87171; }
.code__dot:nth-child(2) { background: #fbbf24; }
.code__dot:nth-child(3) { background: #34d399; }
.code__lang { margin-left: 10px; font-size: 12px; color: rgba(255, 255, 255, .5); }
.code pre { padding: 22px 24px; overflow-x: auto; }
.code code {
  font-family: "SFMono-Regular", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px; line-height: 1.8; color: #c7d2fe;
  white-space: pre;
}
.integrations { margin-top: 56px; text-align: center; }
.integrations__label {
  display: block; font-size: 13px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255, 255, 255, .5); margin-bottom: 20px;
}
.integrations__strip { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.integration {
  padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, .05);
  color: rgba(255, 255, 255, .85);
  font-size: 14px; font-weight: 600;
  transition: border-color .18s ease, background .18s ease;
}
.integration:hover { border-color: rgba(34, 211, 238, .5); background: rgba(255, 255, 255, .1); }

/* ===================== SECURITY ===================== */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.trust__item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; height: 100%; text-align: left;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.trust__item:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: rgba(91, 94, 244, .3); }
.trust__icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--grad-soft); color: var(--primary);
}
.trust__icon svg { width: 24px; height: 24px; }
.trust__item h3 { font-size: 18px; margin-bottom: 8px; }
.trust__item p { font-size: 14.5px; color: var(--muted); }

/* ===================== ROI CALCULATOR ===================== */
.roi { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: stretch; }
.roi__inputs {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; display: grid; gap: 18px;
}
.roi__field { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center; }
.roi__field > span { font-size: 14px; font-weight: 600; color: var(--text); }
.roi__field output {
  font-size: 13.5px; font-weight: 700; color: var(--primary);
  background: var(--grad-soft); padding: 2px 10px; border-radius: 999px; white-space: nowrap;
}
.roi__field input[type="range"] {
  grid-column: 1 / -1;
  -webkit-appearance: none; appearance: none;
  height: 6px; border-radius: 999px; outline: none;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  cursor: pointer;
}
.roi__field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 3px solid var(--primary);
  box-shadow: 0 2px 6px rgba(0,0,0,.2); cursor: grab;
}
.roi__field input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 3px solid var(--primary);
  box-shadow: 0 2px 6px rgba(0,0,0,.2); cursor: grab;
}
.roi__result { display: flex; flex-direction: column; gap: 18px; }
.roi__card {
  background: var(--ink); color: #fff; border-radius: var(--radius-lg);
  padding: 30px; flex: 1; display: flex; flex-direction: column; justify-content: center;
}
.roi__card--alt {
  background: linear-gradient(120deg, rgba(91, 94, 244, .14), rgba(34, 211, 238, .14));
  color: var(--text); border: 1px solid var(--line);
}
.roi__label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .7; margin-bottom: 10px; }
.roi__num {
  font-family: var(--font-display); font-size: clamp(34px, 4.5vw, 48px);
  font-weight: 800; letter-spacing: -0.02em;
}
.roi__card--alt .roi__num { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.roi__note { font-size: 13px; color: var(--muted); }

/* ===================== DEMO MODAL ===================== */
.demo {
  position: fixed; inset: 0; z-index: 1001;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
.demo.is-open { opacity: 1; visibility: visible; }
.demo__backdrop {
  position: absolute; inset: 0;
  background: rgba(6, 8, 20, .9);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.demo__player {
  position: relative; width: min(880px, 100%);
  background: #0c0f24; border: 1px solid var(--line-dark); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: 0 40px 90px rgba(0, 0, 0, .6);
}
.demo__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--line-dark);
}
.demo__title { display: inline-flex; align-items: center; gap: 9px; color: #fff; font-weight: 600; font-size: 15px; }
.dot-live { width: 9px; height: 9px; border-radius: 50%; background: #ef4444; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.demo__close {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; color: #fff;
  border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .06);
  transition: background .18s ease;
}
.demo__close:hover { background: rgba(255, 255, 255, .16); }
.demo__close svg { width: 18px; height: 18px; }
.demo__stage {
  position: relative; background: #000;
  aspect-ratio: 16 / 9; max-height: calc(100vh - 210px);
  overflow: hidden;
}
.demo__slide { display: none; margin: 0; height: 100%; }
.demo__slide.is-active { display: block; }
.demo__slide img { display: block; width: 100%; height: 100%; object-fit: contain; }
.demo__slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 22px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .78));
  color: #fff; font-size: 14.5px;
}
.demo__controls {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-top: 1px solid var(--line-dark);
}
.demo__btn {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center; color: #fff;
  border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .06);
  transition: background .18s ease;
}
.demo__btn:hover { background: rgba(255, 255, 255, .16); }
.demo__btn svg { width: 18px; height: 18px; }
.demo__btn--play { background: var(--grad); border-color: transparent; }
.demo__btn--play.is-playing { background: rgba(255, 255, 255, .16); }
.demo__dots {
  display: flex; flex-wrap: wrap; justify-content: flex-end;
  align-items: center; gap: 6px 7px; margin-left: auto;
}
.demo__dots button {
  width: 8px; height: 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .28); padding: 0;
  transition: background .2s ease, width .2s ease;
}
.demo__dots button.is-active { background: #fff; width: 22px; }
@media (max-width: 480px) {
  .demo { padding: 12px; }
  .demo__stage { max-height: calc(100vh - 190px); }
  .demo__dots button { width: 7px; height: 7px; }
  .demo__dots button.is-active { width: 16px; }
}

/* ===================== TELEGRAM QR MODAL ===================== */
.tgqr {
  position: fixed; inset: 0; z-index: 1001;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; visibility: hidden;
  /* visibility flips instantly on open (focus must work right away) and
     only after the fade-out on close. */
  transition: opacity .2s ease, visibility 0s linear .2s;
}
.tgqr.is-open { opacity: 1; visibility: visible; transition: opacity .2s ease, visibility 0s; }
.tgqr__backdrop {
  position: absolute; inset: 0;
  background: rgba(6, 8, 20, .9);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.tgqr__card {
  position: relative; width: min(380px, 100%);
  max-height: calc(100vh - 48px); overflow-y: auto;
  background: #0c0f24; border: 1px solid var(--line-dark); border-radius: var(--radius-lg);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .6);
}
.tgqr__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-dark);
}
.tgqr__title { display: inline-flex; align-items: center; gap: 9px; color: #fff; font-weight: 600; font-size: 15px; }
.tgqr__title svg { width: 18px; height: 18px; flex: none; color: #29a9eb; }
.tgqr__close {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  display: grid; place-items: center; color: #fff;
  border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .06);
  transition: background .18s ease;
}
.tgqr__close:hover { background: rgba(255, 255, 255, .16); }
.tgqr__close svg { width: 18px; height: 18px; }
.tgqr__body {
  display: grid; gap: 16px; justify-items: center;
  padding: 22px 20px 20px;
}
.tgqr__code {
  display: block; width: min(260px, 100%);
  padding: 12px; background: #fff; border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .35);
  transition: transform .18s ease;
}
.tgqr__code:hover { transform: translateY(-2px); }
.tgqr__code canvas { display: block; width: 100%; height: auto; }
.tgqr__caption { margin: 0; text-align: center; color: rgba(255, 255, 255, .68); font-size: 14px; line-height: 1.5; }
@media (max-width: 480px) {
  .tgqr { padding: 12px; }
  .tgqr__body { padding: 18px 16px 16px; }
  .tgqr__code { width: min(230px, 100%); }
}

/* ===================== RESPONSIVE (new sections) ===================== */
@media (max-width: 1024px) {
  .modules { grid-template-columns: repeat(3, 1fr); }
  .api { grid-template-columns: 1fr; gap: 40px; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .roi { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .modules { grid-template-columns: repeat(2, 1fr); }
  .plugins, .comms { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .modules { grid-template-columns: 1fr; }
}

/* ===================== DOCUMENTATION PAGE ===================== */
.doc-page { background: var(--surface-soft); }
.doc-topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.doc-topbar__inner {
  display: flex; align-items: center; gap: 18px;
  height: var(--nav-h);
}
.doc-topbar__title {
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  color: var(--muted); padding-left: 18px; border-left: 1px solid var(--line);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.doc-topbar__back {
  margin-left: auto; font-size: 14px; font-weight: 600; color: var(--primary);
  white-space: nowrap;
}
.doc-topbar__back:hover { text-decoration: underline; }

.doc { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; padding: 48px 24px 80px; }
.doc__toc { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; }
.doc__toc-title {
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 14px;
}
.doc__toc nav { display: grid; gap: 4px; }
.doc__toc a {
  font-size: 14px; color: var(--muted); padding: 7px 12px;
  border-radius: 8px; border-left: 2px solid transparent;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.doc__toc a:hover { color: var(--primary); background: var(--grad-soft); }
.doc__toc a.is-active { color: var(--primary); border-left-color: var(--primary); background: var(--grad-soft); font-weight: 600; }

.doc__body { min-width: 0; max-width: 860px; }
.doc__body h1 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 18px; }
.doc__body h2 {
  font-size: 24px; margin: 48px 0 16px; padding-top: 20px;
  border-top: 1px solid var(--line);
}
.doc__body h2:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.doc__body h3 { font-size: 19px; margin: 32px 0 12px; }
.doc__body p { font-size: 15.5px; color: var(--muted); margin-bottom: 14px; }
.doc__body strong { color: var(--text); }
.doc__body ul, .doc__body ol { margin: 0 0 16px 22px; display: grid; gap: 8px; }
.doc__body li { font-size: 15px; color: var(--muted); }
.doc__body li::marker { color: var(--primary); font-weight: 700; }
.doc__body a { color: var(--primary); font-weight: 600; }
.doc__body a:hover { text-decoration: underline; }

.doc__body code {
  font-family: "SFMono-Regular", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px; color: #4338ca; background: #eef0ff;
  padding: 2px 6px; border-radius: 6px;
}
.doc__body .code code {
  color: #c7d2fe; background: transparent; padding: 0; border-radius: 0;
}

.doc__body blockquote {
  margin: 20px 0; padding: 16px 20px;
  border-left: 4px solid var(--primary);
  background: var(--grad-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 15px;
}
.doc__body blockquote p { margin: 0; color: var(--text); }

.doc__body table {
  width: 100%; margin: 18px 0 24px; border-collapse: collapse;
  font-size: 14px; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.doc__body th, .doc__body td {
  padding: 11px 14px; text-align: left; border: 1px solid var(--line);
  vertical-align: top;
}
.doc__body th {
  background: var(--surface-soft); font-size: 12.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; color: var(--muted);
}
.doc__body td code { white-space: nowrap; }

.doc__body .code { margin: 20px 0 24px; }
.doc__body hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

.doc-footer { border-top: 1px solid var(--line); padding: 28px 0; background: #fff; }
.doc-footer p { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.doc-footer a { color: var(--primary); font-weight: 600; }

@media (max-width: 900px) {
  .doc { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; }
  .doc__toc { position: static; }
}








