@font-face {
  font-family: 'Nunito';
  src: url('/assets/fonts/nunito-cyrillic-wght-normal.woff2') format('woff2');
  font-weight: 200 1000;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Nunito';
  src: url('/assets/fonts/nunito-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 1000;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Noto Sans Armenian';
  src: url('/assets/fonts/noto-sans-armenian-armenian-800-normal.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
  unicode-range: U+0530-058F, U+FB13-FB17;
}

:root {
  --bg: #0A1330;
  --bg-2: #0F1D47;
  --glass: rgb(255 255 255 / 0.045);
  --glass-hi: rgb(255 255 255 / 0.08);
  --stroke: rgb(255 255 255 / 0.09);
  --stroke-hi: rgb(255 255 255 / 0.18);
  --text: #F3F7FF;
  --muted: #9DB0D6;
  --blue: #3B82F6;
  --brand: #2563EB;
  --brand-dark: #1E3A8A;
  --sky: #93C5FD;
  --light: #60A5FA;
  --cyan: #38BDF8;
  --ok: #4ADE80;
  --bad: #F87171;
  --radius: 24px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.02em; margin: 0; font-weight: 900; }
main, .top, .foot { position: relative; width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Свечение и сетка на фоне */
.glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(640px 440px at 88% 6%, rgb(37 99 235 / 0.3), transparent 70%),
    radial-gradient(560px 420px at 2% 95%, rgb(56 189 248 / 0.14), transparent 70%),
    radial-gradient(520px 380px at 0% 40%, rgb(30 58 138 / 0.3), transparent 70%),
    var(--bg);
}
.glow::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 60% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 0%, #000 0%, transparent 70%);
}
/* Зерно поверх бликов */
.glow::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* Блики: большие размытые пятна медленно плывут */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}
.o1 { width: 520px; height: 520px; top: -160px; right: -120px; background: #2563EB; animation: drift1 22s ease-in-out infinite alternate; }
.o2 { width: 420px; height: 420px; top: 38%; left: -180px; background: #1E40AF; animation: drift2 28s ease-in-out infinite alternate; }
.o3 { width: 360px; height: 360px; bottom: -120px; right: 18%; background: #0EA5E9; opacity: 0.28; animation: drift3 26s ease-in-out infinite alternate; }
.o4 { width: 260px; height: 260px; top: 20%; left: 46%; background: #60A5FA; opacity: 0.18; animation: drift2 32s ease-in-out infinite alternate-reverse; }

@keyframes drift1 { to { transform: translate(-160px, 120px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(220px, -100px) scale(0.9); } }
@keyframes drift3 { to { transform: translate(-200px, -140px) scale(1.2); } }

/* Мерцающие искры */
.spark {
  position: absolute;
  z-index: 1;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #BFDBFE;
  box-shadow: 0 0 8px 2px rgb(147 197 253 / 0.8);
  animation: twinkle 4s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.1; transform: scale(0.6); }
  50% { opacity: 1; transform: scale(1.2); }
}

.grad {
  background: linear-gradient(90deg, #3B82F6 0%, #60A5FA 50%, #BFDBFE 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgb(59 130 246 / 0.14);
  border: 1px solid rgb(96 165 250 / 0.28);
  color: var(--sky);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ─── Шапка ─────────────────────────────────────────── */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 22px;
  text-decoration: none;
}
.top-links { display: flex; gap: 8px; }
.top-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 14px;
  border: 2px solid var(--stroke-hi);
  border-bottom-width: 4px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.2s;
}
.top-btn:active { transform: translateY(2px); border-bottom-width: 2px; }
.top-btn svg { width: 16px; height: 16px; fill: none; stroke: var(--sky); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.top-btn:hover { background: var(--glass-hi); }
.top-cta { background: var(--brand); border-color: var(--brand-dark); }
.top-cta:hover { background: var(--blue); }

/* ─── Первый экран ──────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  padding: 40px 0 72px;
}
h1 { font-size: clamp(38px, 6vw, 68px); }
.lead {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--muted);
  margin: 20px 0 32px;
  max-width: 32em;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }

.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 64px;
  padding: 0 34px;
  border-radius: 20px;
  background: linear-gradient(180deg, #3B82F6 0%, #2563EB 100%);
  color: #fff;
  font-weight: 900;
  font-size: 20px;
  text-decoration: none;
  box-shadow: 0 6px 0 var(--brand-dark), 0 18px 44px rgb(37 99 235 / 0.5);
  transition: transform 0.1s, box-shadow 0.1s, filter 0.2s;
}
.cta svg { width: 24px; height: 24px; fill: currentColor; }
.cta:hover { filter: brightness(1.08); }
.cta:active { transform: translateY(6px); box-shadow: 0 0 0 var(--brand-dark), 0 8px 24px rgb(37 99 235 / 0.4); }
.note { margin: 0; color: var(--muted); font-size: 14px; }


.hero-art { position: relative; }
.ring {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(59 130 246 / 0.5) 0%, rgb(30 58 138 / 0.3) 45%, transparent 70%);
  filter: blur(10px);
}
.ring::after {
  content: '';
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  border: 1px dashed rgb(255 255 255 / 0.14);
  animation: spin 40s linear infinite;
}
.hero-art img {
  position: relative;
  width: min(480px, 100%);
  margin-inline: auto;
  filter: drop-shadow(0 30px 40px rgb(0 0 0 / 0.45));
}
.bubble {
  position: absolute;
  z-index: 1;
  padding: 10px 16px;
  border-radius: 16px;
  background: rgb(10 19 48 / 0.72);
  border: 1px solid var(--stroke-hi);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.35);
  font-weight: 800;
  white-space: nowrap;
  line-height: 1.15;
  text-align: center;
  animation: float 6s ease-in-out infinite;
}
.bubble small {
  display: block;
  margin-top: 4px;
  font-family: 'Noto Sans Armenian', 'Nunito', sans-serif;
  font-size: 0.72em;
  font-weight: 800;
  color: var(--sky);
}
.b1 { top: 6%; left: 0; border-bottom-left-radius: 4px; }
.b2 { top: 30%; right: 0; border-bottom-right-radius: 4px; animation-delay: -2s; }
.b2 small { color: var(--cyan); }
.b3 { bottom: 14%; left: 4%; border-bottom-left-radius: 4px; animation-delay: -4s; }
.b3 small { color: var(--light); }

@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Заголовки секций ──────────────────────────────── */

section h2 { font-size: clamp(30px, 4vw, 44px); }
.sub { color: var(--muted); margin: 10px 0 32px; font-size: 17px; }

/* ─── Иконки ────────────────────────────────────────── */

.ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--glass);
}
.ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic-blue { color: var(--light); }
.ic-sky { color: var(--sky); }
.ic-cyan { color: var(--cyan); }

/* ─── Демо-карточки ─────────────────────────────────── */

.demo { padding: 24px 0 72px; }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
.card, .feature {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.06) 0%, rgb(255 255 255 / 0.02) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.card { padding: 22px; min-height: 100%; }
.card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.kind { margin: 0; font-size: 19px; font-weight: 900; }
.task { margin: 0 0 14px; font-size: 20px; font-weight: 800; color: var(--muted); }

.card button {
  display: block;
  width: 100%;
  padding: 11px 12px;
  border: 2px solid var(--stroke-hi);
  border-bottom-width: 4px;
  border-radius: 14px;
  background: rgb(255 255 255 / 0.05);
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, opacity 0.25s, transform 0.08s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.card button:hover { background: rgb(255 255 255 / 0.08); border-color: var(--stroke-hi); }
.card button:active { transform: translateY(2px); border-bottom-width: 2px; margin-top: 2px; }
.card button:disabled { cursor: default; }
.card button.picked { border-color: #60A5FA; background: rgb(59 130 246 / 0.18); box-shadow: 0 0 0 3px rgb(59 130 246 / 0.18); }
.card button.right { border-color: rgb(74 222 128 / 0.6); background: rgb(74 222 128 / 0.14); color: var(--ok); }
.card button.wrong { border-color: rgb(248 113 113 / 0.6); background: rgb(248 113 113 / 0.14); color: var(--bad); animation: shake 0.3s; }
.card button.gone { opacity: 0.3; }

@keyframes shake {
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.col { display: grid; gap: 10px; }

.answer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 60px;
  padding: 9px;
  margin-bottom: 14px;
  border-radius: 14px;
  border: 1px dashed var(--stroke-hi);
  background: rgb(0 0 0 / 0.15);
}
.bank { display: flex; flex-wrap: wrap; gap: 8px; }
.answer button, .bank button { width: auto; padding: 9px 14px; }

.chat { display: grid; gap: 10px; margin-bottom: 14px; }
.msg {
  margin: 0;
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  animation: pop 0.25s ease-out;
}
.msg b { display: block; font-weight: 800; }
.msg span { font-size: 13px; opacity: 0.7; }
.them { background: rgb(255 255 255 / 0.07); border: 1px solid var(--stroke); border-bottom-left-radius: 4px; }
.me { justify-self: end; background: linear-gradient(180deg, #3B82F6, #2563EB); border-bottom-right-radius: 4px; }
.options { display: grid; gap: 8px; }

@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(0.97); } }

.done {
  margin: 14px 0 0;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgb(74 222 128 / 0.3);
  background: rgb(74 222 128 / 0.1);
  color: var(--ok);
  font-weight: 800;
  animation: pop 0.25s ease-out;
}

/* ─── Канал ─────────────────────────────────────────── */

.channel {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 auto 72px;
  max-width: 820px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid rgb(96 165 250 / 0.3);
  background: linear-gradient(90deg, rgb(37 99 235 / 0.22) 0%, rgb(30 58 138 / 0.2) 100%);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.15s;
}
.channel:hover { border-color: rgb(96 165 250 / 0.6); transform: translateY(-2px); }
.channel-text { flex: 1; display: grid; gap: 2px; }
.channel-text b { font-size: 19px; font-weight: 900; }
.channel-text span { color: var(--muted); font-size: 15px; }
.channel-go {
  flex: none;
  padding: 10px 18px;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  box-shadow: 0 4px 0 var(--brand-dark);
}

/* ─── Что внутри ────────────────────────────────────── */

.features { padding: 24px 0 72px; }
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.feature { padding: 26px; }
.feature .ic { margin-bottom: 16px; }
.feature h3 { font-size: 22px; }
.feature p { margin: 8px 0 0; color: var(--muted); }
.feature i { font-style: normal; font-weight: 800; color: var(--light); }
.statement {
  margin: 56px 0 0;
  max-width: 22em;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  line-height: 1.2;
}

/* ─── Финальный призыв ──────────────────────────────── */

.final {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 8px;
  margin-bottom: 56px;
  padding: 48px 24px;
  border-radius: 32px;
  border: 1px solid var(--stroke-hi);
  background:
    radial-gradient(500px 260px at 50% 0%, rgb(59 130 246 / 0.4), transparent 70%),
    radial-gradient(400px 240px at 50% 110%, rgb(30 58 138 / 0.6), transparent 70%),
    var(--bg-2);
  overflow: hidden;
}
.final img { border-radius: 22px; margin-bottom: 10px; box-shadow: 0 0 60px rgb(59 130 246 / 0.5); }
.final p { margin: 0 0 22px; color: var(--muted); font-size: 18px; }

/* ─── Футер ─────────────────────────────────────────── */

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--stroke);
  color: var(--muted);
  font-size: 14px;
}
.foot p { margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { text-decoration: none; font-weight: 600; }
.foot a:hover { color: var(--text); }

.sticky-cta { display: none; }

/* ─── Планшет и телефон ─────────────────────────────── */

@media (max-width: 900px) {
  .cards, .grid { grid-template-columns: 1fr; max-width: 560px; }
}

@media (max-width: 760px) {
  .orb { filter: blur(70px); opacity: 0.32; }
  .o3, .o4 { opacity: 0.16; }
  .o1 { width: 340px; height: 340px; }
  .o2 { width: 300px; height: 300px; }
  .o3, .o4 { width: 240px; height: 240px; }
  .top { padding: 14px 0; }
  .logo span { font-size: 18px; }
  .top-btn { padding: 8px 12px; font-size: 13px; }
  .hero { grid-template-columns: 1fr; gap: 4px; padding: 4px 0 64px; }
  .hero-art { order: -1; max-width: 290px; margin-inline: auto; }
  .bubble { font-size: 14px; padding: 7px 12px; }
  .b2 { top: 50%; right: -8px; }
  .b3 { bottom: 4%; left: -8px; }
  .eyebrow { font-size: 11px; padding: 7px 14px; margin-bottom: 18px; }
  .lead { margin: 18px 0 28px; }
  .hero-actions { flex-direction: column; align-items: stretch; text-align: center; }
  .cta { width: 100%; }
  .demo { padding-bottom: 48px; }
  .channel { flex-wrap: wrap; margin-bottom: 64px; }
  .channel-text { flex-basis: calc(100% - 64px); }
  .channel-go { flex: 1 1 100%; text-align: center; padding: 12px; }
  .features { padding-bottom: 64px; }
  .feature { padding: 24px; }
  .statement { margin-top: 48px; }
  .final { padding: 48px 20px; border-radius: 28px; }
  .foot { flex-direction: column; padding-bottom: calc(110px + env(safe-area-inset-bottom)); }

  .sticky-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 10;
    left: 16px;
    right: 16px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    min-height: 58px;
    border-radius: 18px;
    background: linear-gradient(180deg, #3B82F6 0%, #2563EB 100%);
    color: #fff;
    font-weight: 900;
    font-size: 18px;
    text-decoration: none;
    box-shadow: 0 5px 0 var(--brand-dark), 0 14px 40px rgb(0 0 0 / 0.5);
    transform: translateY(160%);
    transition: transform 0.3s ease;
  }
  .sticky-cta.show { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
