/* ---------- Base ---------- */
:root {
  --bg: #070b11;
  --bg-2: #0a0f17;
  --surface: #0e1520;
  --surface-2: #111a26;
  --border: #1c2836;
  --border-strong: #26364a;
  --text: #e7eef7;
  --muted: #93a3b8;
  --accent: #38bdf8;
  --accent-2: #22d3ee;
  --ok: #34d399;
  --warn: #fbbf24;
  --radius: 16px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #7dd3fc; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); font-weight: 750; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 650; }

p { margin: 0 0 1em; }
.muted { color: var(--muted); }

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

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 11, 17, .78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.nav__brand {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .18em;
  color: var(--text);
  white-space: nowrap;
}
.nav__brand::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  vertical-align: 1px;
}

.nav__links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: .93rem;
}
.nav__links a { color: var(--muted); }
.nav__links a:hover { color: var(--text); }

.lang {
  margin-left: 8px;
  padding: 7px 14px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .08em;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.lang:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 12vw, 150px) 0 clamp(56px, 8vw, 100px);
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% 0 auto 0;
  height: 640px;
  background:
    radial-gradient(520px 320px at 22% 18%, rgba(56, 189, 248, .18), transparent 68%),
    radial-gradient(480px 300px at 78% 34%, rgba(34, 211, 238, .12), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 60% at 50% 0%, #000 45%, transparent 100%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

.lead {
  max-width: 680px;
  font-size: clamp(1.05rem, 1.9vw, 1.28rem);
  color: var(--muted);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: .96rem;
  font-weight: 550;
  cursor: pointer;
  transition: transform .15s, border-color .2s, background .2s, box-shadow .2s;
}
.btn:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-1px);
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  color: #04121b;
  font-weight: 650;
}
.btn--primary:hover {
  box-shadow: 0 10px 30px rgba(56, 189, 248, .28);
  color: #04121b;
}

.hero__note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 42px;
  font-family: var(--mono);
  font-size: .82rem;
  color: var(--muted);
}
.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 108px) 0; border-bottom: 1px solid var(--border); }
.section--alt { background: var(--bg-2); }
.section--cta { border-bottom: none; }

.two-col {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

/* ---------- Intent card mockup ---------- */
.intent-card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}

.intent-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 6px;
  border-bottom: 1px dashed var(--border-strong);
}
.intent-card__tag {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.intent-card__id {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--muted);
}

.intent-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: .96rem;
}
.intent-card__row:last-of-type { border-bottom: none; }

.badge {
  flex-shrink: 0;
  padding: 4px 11px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .04em;
}
.badge--ok { background: rgba(52, 211, 153, .12); color: var(--ok); border: 1px solid rgba(52, 211, 153, .35); }
.badge--warn { background: rgba(251, 191, 36, .12); color: var(--warn); border: 1px solid rgba(251, 191, 36, .35); }

.intent-card__reason {
  margin: 16px 0 0;
  padding: 14px 16px;
  border-left: 3px solid var(--warn);
  border-radius: 0 10px 10px 0;
  background: rgba(251, 191, 36, .06);
  color: #d6c9a4;
  font-size: .9rem;
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
  counter-reset: step;
}
.steps li {
  display: flex;
  gap: 20px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .2s, transform .2s;
}
.steps li:hover { border-color: var(--border-strong); transform: translateX(3px); }
.steps b { display: block; margin-bottom: 4px; font-size: 1.02rem; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }

.steps__n {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(56, 189, 248, .1);
  border: 1px solid rgba(56, 189, 248, .3);
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 700;
}

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 20px; margin-top: 36px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .2s, transform .2s, background .2s;
}
.card:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
  transform: translateY(-3px);
}
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; color: var(--muted); font-size: .93rem; }

.card--article { display: flex; flex-direction: column; }
.card__meta {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.card--article h3 { font-size: 1.04rem; }
.card__link { margin-top: auto; padding-top: 18px; font-size: .9rem; font-weight: 550; }

/* ---------- Checklist ---------- */
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.checklist li {
  position: relative;
  padding: 13px 18px 13px 46px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: .95rem;
  color: var(--text);
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(52, 211, 153, .12);
  color: var(--ok);
  font-size: .72rem;
  font-weight: 700;
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 20px;
  margin-top: 36px;
}
.stat {
  padding: 26px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}
.stat b {
  display: block;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 750;
  background: linear-gradient(135deg, var(--accent), #7dd3fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}
.stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: .87rem;
  line-height: 1.45;
}

/* ---------- CTA section ---------- */
.section--cta {
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(56, 189, 248, .1), transparent 70%),
    var(--bg);
  text-align: center;
}
.section--cta .muted { max-width: 640px; margin-left: auto; margin-right: auto; }
.section--cta .cta { justify-content: center; }

/* ---------- Footer ---------- */
.footer {
  padding: 34px 0;
  border-top: 1px solid var(--border);
  font-size: .86rem;
  color: var(--muted);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer p { margin: 0; }
.footer__brand {
  font-family: var(--mono);
  letter-spacing: .18em;
  color: var(--accent);
}

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

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .nav__links { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .btn { width: 100%; }
  .cta { flex-direction: column; }
  .hero__note { font-size: .74rem; }
}

/* Скриншоты реального приложения */
.grid--2 {
  display: grid;
  gap: 20px;
  margin-top: 24px;
  grid-template-columns: repeat(2, 1fr);
}
.shot {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.shot img {
  display: block;
  max-width: 100%;
  max-height: 260px;
  width: auto;
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .32);
  cursor: zoom-in;
  transition: box-shadow .2s ease, transform .2s ease;
}
.shot img:hover {
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  transform: translateY(-2px);
}
.shot figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.45;
  text-align: center;
}
.shot__title {
  margin: 56px 0 0;
  font-size: 1.2rem;
  letter-spacing: -.01em;
}
@media (max-width: 920px) {
  .grid--2 { grid-template-columns: 1fr; }
}
/* Лайтбокс */
.lightbox {
  max-width: 96vw;
  max-height: 94vh;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}
.lightbox::backdrop {
  background: rgba(3, 6, 10, .85);
  backdrop-filter: blur(4px);
}
.lightbox img {
  display: block;
  max-width: 96vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  cursor: zoom-out;
}
.lightbox__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}