/* Объект — landing page styles (on top of tokens.css) */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
.num { font-feature-settings: "tnum" 1, "lnum" 1; font-variant-numeric: tabular-nums; }

:root {
  --maxw: 1180px;
  --ink: #0B1220;
  --hero-grad: radial-gradient(1200px 600px at 75% -10%, rgba(45,111,242,0.16), transparent 60%),
               radial-gradient(900px 500px at 5% 10%, rgba(34,197,94,0.08), transparent 55%);
}
[data-theme="dark"] {
  --bg: #0B1220;
  --surface: #131C2E;
  --surface-2: #0F1828;
  --border: #25324A;
  --divider: #1B2638;
  --fg: #F1F5F9;
  --fg-2: #94A3B8;
  --fg-3: #64748B;
  --primary: #4D87F5;
  --primary-50: rgba(77,135,245,0.16);
  --hero-grad: radial-gradient(1200px 600px at 75% -10%, rgba(77,135,245,0.22), transparent 60%),
               radial-gradient(900px 500px at 5% 10%, rgba(34,197,94,0.10), transparent 55%);
}

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

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-in { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 9px; background: var(--primary);
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 18px;
  box-shadow: 0 4px 12px rgba(45,111,242,0.35);
}
.nav-links { display: flex; gap: 28px; margin-left: 12px; }
.nav-links a { font-size: 14px; color: var(--fg-2); font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--fg); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--fg-2); display: grid; place-items: center; cursor: pointer;
  transition: all .15s;
}
.icon-btn:hover { color: var(--fg); border-color: var(--border-strong); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 20px; border-radius: 11px; font-weight: 600; font-size: 14px;
  cursor: pointer; border: 1px solid transparent; transition: transform .12s ease, box-shadow .2s, background .15s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 20px rgba(45,111,242,0.28); }
.btn-primary:hover { box-shadow: 0 10px 28px rgba(45,111,242,0.38); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; border-radius: 13px; }
.btn-white { background: #fff; color: var(--primary); }

/* ============ HERO ============ */
.hero { position: relative; padding: 72px 0 40px; background: var(--hero-grad); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--primary-50); color: var(--primary); font-size: 13px; font-weight: 600;
  margin-bottom: 22px; border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--primary); }
h1.display {
  font-size: clamp(38px, 5vw, 60px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04;
  color: var(--fg);
}
h1.display .accent { color: var(--primary); }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--fg-2); line-height: 1.55; margin: 22px 0 32px; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 18px; display: flex; gap: 18px; flex-wrap: wrap; color: var(--fg-3); font-size: 13px; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }

/* phone mock */
.phone-stage { position: relative; display: grid; place-items: center; }
.phone {
  width: 300px; height: 612px; border-radius: 42px; background: #0A0F1A; padding: 9px;
  box-shadow: 0 40px 90px rgba(11,18,32,0.45), 0 0 0 1px rgba(255,255,255,0.06) inset;
  position: relative; z-index: 2;
}
.phone-screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #ECEFF3; display: flex; flex-direction: column; position: relative; }
[data-theme="dark"] .phone-screen { background: #0F1828; }
.glow {
  position: absolute; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(45,111,242,0.4), transparent 65%); filter: blur(40px);
  z-index: 1; top: 40%; left: 50%; transform: translate(-50%,-50%);
}
.p-bar { height: 46px; background: var(--primary); display: flex; align-items: center; gap: 10px; padding: 0 14px; padding-top: 8px; flex-shrink: 0; }
.p-bar .av { width: 30px; height: 30px; border-radius: 9px; background: rgba(255,255,255,0.2); display: grid; place-items: center; font-size: 15px; }
.p-bar .t { color: #fff; }
.p-bar .t b { font-size: 13px; font-weight: 600; display: block; }
.p-bar .t small { font-size: 10px; opacity: 0.8; }
.p-feed { flex: 1; padding: 12px 10px; display: flex; flex-direction: column; gap: 8px; background: #E7EAEF; overflow: hidden; }
[data-theme="dark"] .p-feed { background: #0B1220; }
.p-day { align-self: center; font-size: 10px; color: #64748B; background: rgba(15,23,42,0.07); padding: 3px 10px; border-radius: 999px; }
[data-theme="dark"] .p-day { background: rgba(255,255,255,0.08); color: #94A3B8; }
.bub {
  background: #fff; border-radius: 13px; border-left: 3px solid var(--bc); padding: 8px 10px;
  box-shadow: 0 1px 2px rgba(15,23,42,0.07); max-width: 86%; align-self: flex-start;
  animation: bubIn .5s var(--ease-out) backwards;
}
[data-theme="dark"] .bub { background: #131C2E; }
.bub .who { font-size: 10px; font-weight: 600; color: var(--primary); margin-bottom: 3px; }
.bub .row { display: flex; align-items: center; gap: 8px; }
.bub .ic { width: 26px; height: 26px; border-radius: 8px; background: var(--bc); display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.bub .amt { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
[data-theme="dark"] .bub .amt { color: #F1F5F9; }
.bub .meta { font-size: 11px; color: #64748B; margin-top: 3px; }
.bub .pill { display: inline-flex; align-items: center; gap: 4px; font-size: 9px; font-weight: 600; padding: 2px 7px; border-radius: 999px; margin-top: 5px; }
@keyframes bubIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.p-fab { position: absolute; right: 16px; bottom: 18px; width: 48px; height: 48px; border-radius: 15px; background: var(--primary); display: grid; place-items: center; box-shadow: 0 8px 22px rgba(45,111,242,0.45); z-index: 3; }
.float-card {
  position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 12px 14px; box-shadow: 0 16px 40px rgba(11,18,32,0.18); z-index: 4; display: flex; align-items: center; gap: 10px;
}
.float-card .fic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.float-card .ft b { font-size: 14px; font-weight: 700; display: block; letter-spacing: -0.01em; }
.float-card .ft small { font-size: 11px; color: var(--fg-2); }
.fc-1 { top: 60px; left: -28px; animation: floaty 5s ease-in-out infinite; }
.fc-2 { bottom: 96px; right: -34px; animation: floaty 6s ease-in-out infinite reverse; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ============ TRUST STRIP ============ */
.trust { padding: 28px 0; border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); margin-top: 36px; }
.trust-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.trust-lbl { font-size: 12px; color: var(--fg-3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.trust-items { display: flex; gap: 32px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 9px; color: var(--fg-2); font-size: 14px; font-weight: 500; }

/* ============ SECTION ============ */
section { padding: 88px 0; }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.sec-tag { display: inline-block; font-size: 13px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: var(--fg); }
.sec-head p { font-size: 18px; color: var(--fg-2); margin-top: 16px; line-height: 1.55; }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 26px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.feat:hover { transform: translateY(-4px); box-shadow: 0 20px 48px rgba(11,18,32,0.10); border-color: color-mix(in srgb, var(--fc) 40%, var(--border)); }
.feat .ic { width: 50px; height: 50px; border-radius: 14px; background: var(--fcl); color: var(--fc); display: grid; place-items: center; margin-bottom: 18px; }
.feat h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 9px; color: var(--fg); }
.feat p { font-size: 14.5px; color: var(--fg-2); line-height: 1.6; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step .n {
  width: 44px; height: 44px; border-radius: 13px; background: var(--primary-50); color: var(--primary);
  display: grid; place-items: center; font-weight: 800; font-size: 18px; margin-bottom: 18px;
}
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; color: var(--fg); }
.step p { font-size: 14px; color: var(--fg-2); line-height: 1.55; }
.step:not(:last-child) .n::after {
  content: ''; position: absolute; top: 22px; left: 56px; right: -8px; height: 2px;
  background: linear-gradient(90deg, var(--border), transparent);
}

/* showcase */
.showcase { background: var(--surface-2); }
.showcase-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.showcase-list { display: flex; flex-direction: column; gap: 22px; margin-top: 28px; }
.sc-item { display: flex; gap: 14px; }
.sc-item .ic { width: 38px; height: 38px; border-radius: 11px; background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; color: var(--primary); flex-shrink: 0; }
.sc-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; color: var(--fg); }
.sc-item p { font-size: 14px; color: var(--fg-2); line-height: 1.5; }
.browser {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--border);
  box-shadow: 0 30px 70px rgba(11,18,32,0.22); background: var(--surface);
}
.browser-bar { height: 38px; background: #1F232A; display: flex; align-items: center; padding: 0 14px; gap: 8px; }
.browser-bar .l { width: 11px; height: 11px; border-radius: 999px; }
.browser-bar .url { margin: 0 auto; background: #34373d; color: #9aa3b2; font-size: 11px; padding: 4px 14px; border-radius: 6px; }
.dash { display: grid; grid-template-columns: 150px 1fr; height: 360px; }
.dash-side { background: var(--surface-2); border-right: 1px solid var(--border); padding: 14px 10px; }
.dash-side .di { height: 28px; border-radius: 7px; display: flex; align-items: center; gap: 8px; padding: 0 9px; font-size: 11px; color: var(--fg-2); margin-bottom: 2px; }
.dash-side .di.on { background: var(--primary-50); color: var(--primary); font-weight: 600; }
.dash-side .di .b { width: 14px; height: 14px; border-radius: 4px; background: currentColor; opacity: 0.55; }
.dash-main { padding: 16px; overflow: hidden; }
.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.kpi { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 11px; }
.kpi small { font-size: 10px; color: var(--fg-2); }
.kpi b { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; display: block; margin-top: 3px; color: var(--fg); }
.kpi .d { font-size: 10px; color: var(--exp-card); font-weight: 600; }
.bars { display: flex; align-items: flex-end; gap: 7px; height: 96px; padding: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; }
.bars .bar { flex: 1; border-radius: 4px 4px 0 0; background: var(--primary); opacity: 0.85; }
.mini-tbl { margin-top: 12px; display: flex; flex-direction: column; gap: 7px; }
.mini-tbl .tr { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.mini-tbl .tr .sw { width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0; }
.mini-tbl .tr .nm { color: var(--fg); }
.mini-tbl .tr .vl { margin-left: auto; font-weight: 700; color: var(--fg); }

/* security */
.sec-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sc {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px;
  text-align: left;
}
.sc .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--exp-card-50); color: var(--exp-card); display: grid; place-items: center; margin-bottom: 16px; }
.sc h4 { font-size: 16px; font-weight: 700; margin-bottom: 7px; color: var(--fg); }
.sc p { font-size: 13.5px; color: var(--fg-2); line-height: 1.55; }

/* pricing CTA */
.cta-band { padding: 0 0 96px; }
.cta-card {
  position: relative; overflow: hidden; border-radius: 28px; padding: 64px 56px;
  background: linear-gradient(135deg, #2D6FF2 0%, #1E52BE 100%); color: #fff; text-align: center;
}
.cta-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0.4;
  background: radial-gradient(600px 300px at 80% -20%, rgba(255,255,255,0.25), transparent 60%);
}
.cta-card > * { position: relative; }
.cta-card h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; }
.cta-card p { font-size: 19px; opacity: 0.9; margin: 18px auto 32px; max-width: 560px; line-height: 1.5; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-mini { margin-top: 22px; font-size: 14px; opacity: 0.8; display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.cta-mini span { display: inline-flex; align-items: center; gap: 7px; }

/* footer */
footer { border-top: 1px solid var(--divider); padding: 56px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand p { font-size: 14px; color: var(--fg-2); line-height: 1.6; margin-top: 14px; max-width: 280px; }
.foot-col h5 { font-size: 13px; font-weight: 700; color: var(--fg); margin-bottom: 14px; }
.foot-col a { display: block; font-size: 14px; color: var(--fg-2); margin-bottom: 10px; transition: color .15s; }
.foot-col a:hover { color: var(--primary); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--divider); font-size: 13px; color: var(--fg-3); }

/* reveal — only elements marked .pre start hidden (JS sets it for below-fold only),
   so above-the-fold content always paints even before/without the observer. */
.reveal { transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.pre { opacity: 0; transform: translateY(24px); }
.reveal.pre.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .phone-stage { order: -1; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid { grid-template-columns: 1fr; }
  .sec-cards { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .nav-links { display: none; }
  .step:not(:last-child) .n::after { display: none; }
}
@media (max-width: 560px) {
  section { padding: 64px 0; }
  .features, .steps, .sec-cards { grid-template-columns: 1fr; }
  .cta-card { padding: 48px 24px; }
  .fc-1, .fc-2 { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
