/* ============================================================
   Поток — SaaS-лендинг
   Дизайн-система, компоненты, адаптив
   ============================================================ */

:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --ink: #0f1222;
  --ink-soft: #333849;
  --muted: #5c6274;
  --muted-2: #6b7086;
  --line: #e6e8f1;
  --line-strong: #d7daea;

  --brand: #5b5bd6;
  --brand-ink: #4a4ac4;
  --violet: #8b5cf6;
  --pink: #d946ef;
  --cyan: #22d3ee;
  --green: #059669;

  --grad: linear-gradient(120deg, #5b5bd6 0%, #8b5cf6 55%, #d946ef 100%);
  --shadow-sm: 0 1px 2px rgba(15, 18, 34, .04), 0 10px 30px -22px rgba(15, 18, 34, .35);
  --shadow-md: 0 24px 48px -28px rgba(31, 34, 73, .35);
  --shadow-lg: 0 40px 80px -40px rgba(31, 34, 73, .45);

  --radius: 18px;
  --container: 1160px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
svg { display: block; max-width: 100%; }

[hidden] { display: none !important; }

::selection {
  background: rgba(139, 92, 246, .22);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid rgba(91, 91, 214, .55);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.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;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--surface);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  font-size: .9rem;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

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

.section-head a {
  color: var(--brand-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.section-head a:hover { color: var(--ink); }

@media (forced-colors: active) {
  .text-gradient {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: inherit;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .005em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease),
              background-color .2s, border-color .2s, color .2s, filter .2s;
}

.btn--sm { height: 40px; padding: 0 16px; font-size: .875rem; border-radius: 10px; }
.btn--lg { height: 52px; padding: 0 26px; font-size: 1rem; }

.btn--primary {
  color: #fff;
  background: var(--grad);
  box-shadow: 0 12px 24px -12px rgba(99, 102, 241, .65);
}
.btn--primary:hover {
  transform: translateY(-1px);
  filter: saturate(1.08);
  box-shadow: 0 16px 30px -12px rgba(99, 102, 241, .75);
}
.btn--primary:active { transform: translateY(0); }

.btn--secondary {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn--secondary:hover {
  transform: translateY(-1px);
  border-color: #c8cbf0;
}

.btn--ghost {
  color: var(--muted);
  background: transparent;
}
.btn--ghost:hover {
  color: var(--ink);
  background: rgba(15, 18, 34, .05);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(246, 247, 251, .72);
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: background-color .25s, border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .88);
  border-color: var(--line);
  box-shadow: 0 10px 30px -24px rgba(15, 18, 34, .4);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo__mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--grad);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px -8px rgba(99, 102, 241, .65);
}
.logo__mark svg { width: 20px; height: 20px; }
.logo__text {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav__list {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--muted);
}
.nav__list a { transition: color .2s; }
.nav__list a:hover { color: var(--ink); }
.nav__cta { display: flex; align-items: center; gap: 10px; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-left: auto;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color .2s;
}
.burger:hover { border-color: var(--line-strong); }
.burger span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .25s var(--ease), opacity .2s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Eyebrow / section head ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--brand-ink);
  box-shadow: var(--shadow-sm);
}
.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, .14);
}

.section { padding: 96px 0; }
.section--alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 660px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2 {
  margin-top: 18px;
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  text-wrap: balance;
}
.section-head > p:last-child {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.65;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 88px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 400px at 85% 10%, rgba(139, 92, 246, .13), transparent 70%),
    radial-gradient(520px 420px at 0% 35%, rgba(34, 211, 238, .10), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 18, 34, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 18, 34, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(620px 380px at 28% 22%, #000 0%, transparent 75%);
  mask-image: radial-gradient(620px 380px at 28% 22%, #000 0%, transparent 75%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 56px;
  align-items: center;
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero__accent { white-space: nowrap; }
.hero .lead {
  margin-top: 22px;
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.65;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px;
  font-size: .875rem;
  color: var(--muted);
}
.hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero__trust li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad);
  flex-shrink: 0;
}

.hero__visual {
  position: relative;
  min-width: 0;
}
.hero__glow {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
}
.hero__glow--1 {
  width: 280px; height: 280px;
  top: -60px; right: -40px;
  background: #a78bfa;
  opacity: .5;
}
.hero__glow--2 {
  width: 240px; height: 240px;
  bottom: -60px; left: -40px;
  background: #67e8f9;
  opacity: .38;
}

/* --- Dashboard mockup --- */

.dash {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 30px 70px -30px rgba(31, 34, 73, .4), 0 0 0 8px rgba(255, 255, 255, .35);
  font-size: 12px;
}

.dash__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 14px;
  background: #fbfbfe;
  border-bottom: 1px solid var(--line);
}
.dash__dots { display: inline-flex; gap: 5px; }
.dash__dots i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #dde0ee;
}
.dash__bar-title {
  margin-inline: auto;
  font-size: 10.5px;
  font-weight: 600;
  color: #6b7086;
}
.dash__live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #ecfdf5;
  color: var(--green);
  font-size: 9.5px;
  font-weight: 600;
}
.dash__live i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #10b981;
}

.dash__layout {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  min-height: 400px;
}
.dash__side {
  padding: 14px 10px;
  background: #fafbff;
  border-right: 1px solid var(--line);
}
.dash__workspace {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 6px;
}
.dash__avatar {
  width: 22px; height: 22px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--grad);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}
.dash__workspace-name {
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: -.01em;
}
.dash__nav {
  display: grid;
  gap: 2px;
  margin-top: 16px;
}
.dash__nav-item {
  padding: 6px 8px;
  border-radius: 6px;
  color: #6b7086;
  font-size: 10.5px;
  font-weight: 500;
}
.dash__nav-item.is-active {
  background: #eef2ff;
  color: #4f46e5;
  font-weight: 650;
}

.dash__main {
  min-width: 0;
  padding: 14px 16px 16px;
}
.dash__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.dash__hello { font-size: 12.5px; font-weight: 650; letter-spacing: -.01em; }
.dash__sub { margin-top: 2px; font-size: 9.5px; color: var(--muted-2); }
.dash__range {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}

.dash__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.dash__stat {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.dash__stat-label {
  display: block;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.dash__stat-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 3px;
}
.dash__stat-line strong {
  font-size: 16px;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.dash__delta {
  font-size: 9px;
  font-weight: 700;
  color: var(--green);
}
.dash__progress {
  display: block;
  height: 4px;
  margin-top: 8px;
  border-radius: 999px;
  background: #eef0fa;
  overflow: hidden;
}
.dash__progress span {
  display: block;
  height: 100%;
  width: 86%;
  border-radius: inherit;
  background: var(--grad);
}

.dash__chart {
  margin-top: 10px;
  padding: 9px 10px 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.dash__chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
  font-size: 9.5px;
  font-weight: 600;
  color: #4c5165;
}
.dash__legend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 8.5px;
  font-weight: 500;
  color: var(--muted-2);
}
.dash__legend i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #6366f1;
}
.dash__chart svg { width: 100%; height: auto; }

.dash__tasks { margin-top: 10px; }
.dash__tasks li {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 2px;
  border-top: 1px solid #f0f1f8;
  font-size: 10px;
  color: #3b4054;
}
.dash__tasks li:first-child { border-top: 0; }
.dash__check {
  width: 12px; height: 12px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1.5px solid #cfd3e5;
  border-radius: 4px;
  font-size: 8px;
  line-height: 1;
  color: #fff;
}
.dash__check--done {
  background: #6366f1;
  border-color: #6366f1;
}
.dash__tag {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 8.5px;
  font-weight: 600;
  white-space: nowrap;
}
.dash__tag--green { background: #ecfdf5; color: var(--green); }
.dash__tag--blue { background: #eef2ff; color: #4f46e5; }
.dash__tag--amber { background: #fffbeb; color: #d97706; }

/* --- Floating cards --- */

.float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(230, 232, 241, .9);
  border-radius: 14px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 24px 50px -22px rgba(31, 34, 73, .4);
  animation: floaty 7s ease-in-out infinite;
}
.float-card--speed { top: 56px; right: -24px; }
.float-card--team { bottom: -24px; left: -24px; animation-delay: -3.5s; }

.float-card__icon {
  width: 34px; height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #eef2ff;
  color: #4f46e5;
}
.float-card__icon svg { width: 18px; height: 18px; }
.float-card__body { display: grid; line-height: 1.25; }
.float-card__label { font-size: 9.5px; color: var(--muted); }
.float-card__value { font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.float-card__spark { width: 44px; height: 18px; }

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

/* --- Avatars --- */

.avatar {
  width: 42px; height: 42px;
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}
.avatar--a { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.avatar--b { background: linear-gradient(135deg, #0ea5e9, #22d3ee); }
.avatar--c { background: linear-gradient(135deg, #f43f5e, #fb923c); }

.avatars { display: flex; flex-shrink: 0; }
.avatars .avatar {
  width: 26px;
  height: 26px;
  margin-left: -8px;
  border: 2px solid #fff;
  font-size: 8.5px;
}
.avatars .avatar:first-child { margin-left: 0; }

/* ---------- Logos ---------- */

.logos { padding: 8px 0 48px; }
.logos__title {
  margin-bottom: 22px;
  text-align: center;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.logos__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px 48px;
}
.logos__list li {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #a7abc0;
  transition: color .2s;
}
.logos__list li:hover { color: var(--muted); }

/* ---------- Features ---------- */

.features { padding: 56px 0 96px; }

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

.feature {
  position: relative;
  overflow: hidden;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(15, 18, 34, .02);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: #d9dcf5;
  box-shadow: var(--shadow-md);
}
.feature__icon {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 13px;
}
.feature__icon svg { width: 22px; height: 22px; }

.feature:nth-child(6n + 1) .feature__icon { background: #eef2ff; color: #4f46e5; }
.feature:nth-child(6n + 2) .feature__icon { background: #ecfeff; color: #0891b2; }
.feature:nth-child(6n + 3) .feature__icon { background: #ecfdf5; color: #059669; }
.feature:nth-child(6n + 4) .feature__icon { background: #fef3c7; color: #b45309; }
.feature:nth-child(6n + 5) .feature__icon { background: #fdf2f8; color: #be185d; }
.feature:nth-child(6n + 6) .feature__icon { background: #f5f3ff; color: #7c3aed; }

.feature h3 { margin-bottom: 8px; font-size: 1.075rem; }
.feature p {
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.65;
}

/* ---------- Steps ---------- */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}
.steps::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 17%;
  right: 17%;
  z-index: 0;
  border-top: 1px dashed #cfd3e8;
}
.step {
  position: relative;
  z-index: 1;
  text-align: center;
}
.step__num {
  display: inline-grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 10px 24px -10px rgba(99, 102, 241, .7), 0 0 0 8px var(--surface);
}
.step h3 {
  margin-top: 22px;
  font-size: 1.08rem;
}
.step p {
  max-width: 30ch;
  margin: 8px auto 0;
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.65;
}

/* ---------- Pricing ---------- */

.billing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 44px;
  font-size: .95rem;
}
.billing__opt {
  color: var(--muted);
  font-weight: 500;
  transition: color .2s;
}
.billing__opt.is-active { color: var(--ink); font-weight: 600; }
.billing__save {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: .75rem;
  font-weight: 700;
}

.switch {
  position: relative;
  width: 52px;
  height: 30px;
  padding: 0;
  flex-shrink: 0;
  border: none;
  border-radius: 999px;
  background: #d7daeb;
  cursor: pointer;
  transition: background-color .25s;
}
.switch[aria-checked="true"] { background: var(--brand); }
.switch__thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 18, 34, .25);
  transition: transform .25s var(--ease);
}
.switch[aria-checked="true"] .switch__thumb { transform: translateX(22px); }

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.plan:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.plan--popular {
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--grad) border-box;
  box-shadow: 0 30px 60px -30px rgba(99, 102, 241, .45);
}
.plan__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 8px 18px -8px rgba(99, 102, 241, .6);
}
.plan h3 { font-size: 1.15rem; }
.plan__desc {
  margin-top: 6px;
  min-height: 2.9em;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.5;
}
.plan__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.price__value {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
}
.price__period { color: var(--muted); font-size: .875rem; }
.price__note {
  min-height: 1.4em;
  margin-top: 8px;
  color: var(--muted-2);
  font-size: .8rem;
}
.plan__features {
  flex: 1;
  display: grid;
  align-content: start;
  gap: 11px;
  margin: 22px 0 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.plan__features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #3d4254;
  font-size: .9rem;
  line-height: 1.5;
}
.plan__features svg {
  width: 16px; height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  color: var(--brand);
}
.plan__cta { width: 100%; }

/* ---------- Testimonials ---------- */

.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.quote {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}
.stars {
  color: #f59e0b;
  font-size: 1rem;
  letter-spacing: 3px;
  line-height: 1;
}
.quote blockquote {
  flex: 1;
  margin: 16px 0 24px;
}
.quote blockquote p {
  color: var(--ink-soft);
  font-size: .95rem;
  line-height: 1.7;
}
.quote figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.quote__meta { display: grid; line-height: 1.35; }
.quote__meta strong { font-size: .9rem; font-weight: 650; }
.quote__meta span { color: var(--muted); font-size: .8rem; }

/* ---------- FAQ ---------- */

.faq__list {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 0; }
.faq__heading { font-size: inherit; }

.faq__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: 0;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.faq__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background-color .2s, border-color .2s;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .25s var(--ease), background-color .2s;
}
.faq__icon::before { width: 10px; height: 1.5px; transform: translate(-50%, -50%); }
.faq__icon::after { width: 1.5px; height: 10px; transform: translate(-50%, -50%); }
.faq__item.is-open .faq__icon {
  background: var(--brand);
  border-color: var(--brand);
}
.faq__item.is-open .faq__icon::before,
.faq__item.is-open .faq__icon::after { background: #fff; }
.faq__item.is-open .faq__icon::after { transform: translate(-50%, -50%) scaleY(0); }

.faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s var(--ease);
}
.faq__item.is-open .faq__panel { grid-template-rows: 1fr; }
.faq__panel > div { overflow: hidden; }
.faq__panel p {
  padding: 0 48px 22px 0;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.65;
}

/* ---------- CTA ---------- */

.cta { padding: 16px 0 96px; }

.cta__panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding: clamp(32px, 5vw, 64px);
  border-radius: 28px;
  background: #0e1024;
  color: #fff;
  box-shadow: 0 40px 80px -40px rgba(14, 16, 36, .7);
}
.cta__panel::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, .45), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.cta__panel::after {
  content: "";
  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: 48px 48px;
  -webkit-mask-image: radial-gradient(480px 320px at 80% 0%, #000, transparent 80%);
  mask-image: radial-gradient(480px 320px at 80% 0%, #000, transparent 80%);
  pointer-events: none;
}

.cta__content,
.cta__form-wrap { position: relative; z-index: 1; min-width: 0; }

.cta .eyebrow {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .14);
  color: #c7c9ff;
  box-shadow: none;
}
.cta h2 {
  margin-top: 18px;
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  letter-spacing: -.03em;
  line-height: 1.1;
  text-wrap: balance;
}
.cta__lead {
  max-width: 44ch;
  margin-top: 14px;
  color: #b6bad2;
  font-size: 1.02rem;
  line-height: 1.65;
}
.cta__points {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  color: #d9dbea;
  font-size: .94rem;
}
.cta__points li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cta__points svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: #67e8f9;
}
.cta a:focus-visible { outline-color: #c7c9ff; }

.cta__form {
  display: grid;
  gap: 16px;
  padding: 26px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.field { display: grid; gap: 6px; }
.field label {
  color: #dfe1ef;
  font-size: .85rem;
  font-weight: 600;
}
.field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font: inherit;
  font-size: .95rem;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field input::placeholder { color: #8b90ab; }
.field input:hover { border-color: rgba(255, 255, 255, .28); }
.field input:focus {
  outline: none;
  border-color: #8b8cf0;
  background: rgba(255, 255, 255, .09);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, .25);
}
.field input:-webkit-autofill {
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
  transition: background-color 9999s ease-in-out 0s;
  box-shadow: 0 0 0 1000px rgba(30, 32, 56, .92) inset;
}
.field--invalid input {
  border-color: #fb7185;
  box-shadow: 0 0 0 3px rgba(251, 113, 133, .15);
}
.field__error {
  margin: 0;
  color: #fda4af;
  font-size: .8rem;
}

.cta__form .btn { width: 100%; margin-top: 4px; }
.form__note {
  margin: 0;
  color: #8b90ab;
  font-size: .75rem;
  line-height: 1.55;
}
.form__note a {
  color: #c7c9ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-success {
  padding: 36px 28px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  text-align: center;
  outline: none;
}
.form-success:focus-visible {
  outline: 3px solid #c7c9ff;
  outline-offset: 4px;
}
.form-success__icon {
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(16, 185, 129, .15);
  color: #34d399;
}
.form-success__icon svg { width: 26px; height: 26px; }
.form-success h3 { font-size: 1.25rem; }
.form-success p {
  margin-top: 8px;
  color: #b6bad2;
  font-size: .92rem;
  line-height: 1.6;
}
.form-success strong {
  color: #fff;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 64px 0 28px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer__brand p {
  max-width: 32ch;
  margin-top: 16px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.65;
}
.footer__title {
  margin-bottom: 16px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.footer__col ul {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: .9rem;
}
.footer__col a { transition: color .2s; }
.footer__col a:hover { color: var(--ink); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: .85rem;
}
.socials { display: flex; gap: 8px; }
.socials a {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  transition: color .2s, border-color .2s, transform .2s var(--ease);
}
.socials a:hover {
  color: var(--brand);
  border-color: #c8cbf0;
  transform: translateY(-1px);
}
.socials svg { width: 17px; height: 17px; }

/* ---------- Reveal on scroll ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  :root { --header-h: 68px; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 49;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin: 0;
    padding: 14px 20px 24px;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    font-size: 1rem;
  }
  .nav__list a {
    display: block;
    padding: 12px 10px;
    border-radius: 10px;
  }
  .nav__list a:hover { background: #f4f5fb; }
  .nav__cta {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }
  .nav__cta .btn { width: 100%; height: 44px; }
  .burger { display: inline-flex; }
  body.nav-open { overflow: hidden; }

  .hero__grid { gap: 40px; }
  .float-card--speed { right: -8px; }
  .float-card--team { left: -8px; }
}

@media (max-width: 960px) {
  .hero { padding: 56px 0 76px; }
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .hero__content { text-align: center; }
  .hero__content .lead { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__trust { justify-content: center; }
  .hero__visual { width: 100%; max-width: 560px; margin: 0 auto; }
  .float-card--speed { right: -10px; }
  .float-card--team { left: -10px; }

  .features__grid { grid-template-columns: repeat(2, 1fr); }

  .steps {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 520px;
  }
  .steps::before { display: none; }
  .step {
    display: grid;
    grid-template-columns: 52px 1fr;
    column-gap: 18px;
    padding: 22px 0;
    text-align: left;
    border-bottom: 1px dashed var(--line-strong);
  }
  .step:first-child { padding-top: 0; }
  .step:last-child { padding-bottom: 0; border-bottom: 0; }
  .step__num {
    grid-row: 1 / 3;
    box-shadow: 0 10px 24px -10px rgba(99, 102, 241, .7);
  }
  .step h3 { margin: 0; align-self: end; }
  .step p { max-width: none; margin: 6px 0 0; }

  .plans {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 480px;
    margin-inline: auto;
  }
  .plan__desc,
  .price__note { min-height: 0; }

  .quotes {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-inline: auto;
  }

  .cta__panel { grid-template-columns: 1fr; gap: 36px; }

  .footer__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .container { width: calc(100% - 32px); }

  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .features { padding: 40px 0 72px; }
  .features__grid { grid-template-columns: 1fr; }

  .hero { padding: 44px 0 64px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }

  .dash__layout { grid-template-columns: 1fr; }
  .dash__side { display: none; }
  .dash__main { padding: 12px; }
  .float-card { display: none; }

  .logos { padding-bottom: 32px; }
  .logos__title { margin-bottom: 18px; }
  .logos__list { gap: 14px 28px; }
  .logos__list li { font-size: .9rem; }

  .faq__list { padding: 4px 18px; }
  .faq__btn { gap: 16px; padding: 18px 0; font-size: .95rem; }
  .faq__panel p { padding-right: 0; }

  .cta { padding-bottom: 72px; }
  .cta__panel { padding: 28px 20px; border-radius: 22px; }
  .cta__form { padding: 20px; }

  .site-footer { padding-top: 48px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__bottom { margin-top: 36px; }
}

@media (max-width: 440px) {
  .plan { padding: 24px; }
  .billing { gap: 10px; font-size: .9rem; }
  .quote { padding: 24px; }
  .form-success { padding: 28px 20px; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 359px) {
  .hero h1 { font-size: 2.15rem; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
