/* NeuraChat — лендинг (продукт-минимализм) */

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.wrap-narrow { max-width: 900px; }

/* ------- шапка ------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 26px; height: 66px; }
.nav-links { display: flex; gap: 2px; margin-left: 10px; }
.nav-links a {
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 14.5px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover { background: rgba(13, 15, 14, 0.05); color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-burger {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ------- герой: продукт в центре ------- */

.hero {
  position: relative;
  padding: clamp(56px, 11vh, 116px) 0 clamp(48px, 8vh, 88px);
  text-align: center;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  width: min(1000px, 120vw);
  height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 40%, rgba(43, 212, 168, 0.22), rgba(18, 161, 122, 0.08) 45%, transparent 70%);
  filter: blur(14px);
  pointer-events: none;
  z-index: 0;
}
.hero > .wrap { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 26px;
}
.hero-badge b {
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.02em;
  padding: 3px 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--grad);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.4vw, 76px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 auto 22px;
  max-width: 15ch;
  text-wrap: balance;
}
.hero .lede {
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 40ch;
  margin: 0 auto 34px;
}

/* поле ввода — как в реальном приложении */
.hero-prompt {
  max-width: 660px;
  margin: 0 auto;
}
.prompt-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 8px 8px 22px;
  box-shadow: var(--shadow-hero);
  text-align: left;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.prompt-box:hover { border-color: var(--muted); }
.prompt-box .ptext {
  flex: 1;
  min-width: 0;
  color: var(--faint);
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.prompt-box .ptext .type { color: var(--ink); }
.prompt-box .pcaret {
  display: inline-block;
  width: 2px;
  height: 18px;
  background: var(--accent);
  vertical-align: -3px;
  animation: blink 1s steps(2) infinite;
}
.prompt-box .psend {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 20px; }
.hero-chips button {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 13.5px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.hero-chips button:hover { border-color: var(--accent); background: var(--accent-tint-2); transform: translateY(-1px); }

.hero-note { margin-top: 26px; font-size: 13.5px; color: var(--muted); }
.hero-note b { color: var(--ink-soft); font-weight: 500; }

/* появление */
.rise { opacity: 0; transform: translateY(16px); animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.rise-1 { animation-delay: 0.04s; }
.rise-2 { animation-delay: 0.12s; }
.rise-3 { animation-delay: 0.2s; }
.rise-4 { animation-delay: 0.28s; }
.rise-5 { animation-delay: 0.36s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.on { opacity: 1; transform: none; }

/* ------- полоса логотипов ------- */

.logos { padding: 8px 0 4px; }
.logos p { text-align: center; font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.logos-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 46px; color: #a2aaa5; }
.logos-row span { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; opacity: 0.9; }
.logos-row .lm-mono { font-family: var(--font-mono); font-weight: 500; font-size: 14px; letter-spacing: 0.02em; }
.logos-row .lm-caps { text-transform: uppercase; font-size: 13px; letter-spacing: 0.16em; font-weight: 600; }

/* ------- секции ------- */

.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(40px, 5vw, 60px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 14px 0 14px;
  text-wrap: balance;
}
.section-head p { color: var(--ink-soft); font-size: 17px; }

/* ------- BENTO вместо карточек ------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.tile {
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
  padding: 26px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.tile:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-pop); }
.tile h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.tile p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }

.tile.col-3 { grid-column: span 3; }
.tile.col-2 { grid-column: span 2; }
.tile.col-4 { grid-column: span 4; }
.tile.tall { min-height: 260px; display: flex; flex-direction: column; }

.tile.dark { background: var(--dark); border-color: var(--dark-2); color: var(--dark-ink); }
.tile.dark p { color: var(--dark-muted); }

/* большая плитка: живой чат */
.mini-chat { margin-top: 20px; display: flex; flex-direction: column; gap: 11px; flex: 1; justify-content: flex-end; }
.mini-chat .u {
  align-self: flex-end;
  background: var(--accent-tint);
  color: var(--ink);
  border-radius: 14px 14px 5px 14px;
  padding: 9px 14px;
  font-size: 13.5px;
  max-width: 78%;
}
.mini-chat .a { display: flex; gap: 9px; max-width: 92%; }
.mini-chat .a .m {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--grad);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mini-chat .a .t { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }
.mini-chat .a .t .cr { display: inline-block; width: 6px; height: 13px; background: var(--accent); vertical-align: -2px; border-radius: 1px; animation: blink 1s steps(2) infinite; }

/* плитка код */
.mini-code {
  margin-top: 18px;
  background: var(--dark-2);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--dark-ink);
  overflow: hidden;
}
.mini-code .kw { color: #6ee7b7; }
.mini-code .fn { color: #7dd3fc; }
.mini-code .mut { color: #7c8a83; }

/* плитка память: список чатов */
.mini-list { margin-top: 18px; display: grid; gap: 7px; }
.mini-list i {
  font-style: normal;
  font-size: 13px;
  color: var(--ink-soft);
  padding: 8px 11px;
  border-radius: 9px;
  background: var(--paper-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-list i:first-child { background: var(--accent-tint); color: var(--ink); font-weight: 500; }

/* плитка модель */
.mini-model { margin-top: 18px; display: grid; gap: 8px; }
.mini-model label {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 10px 12px;
  font-size: 13.5px;
}
.mini-model label.on { border-color: var(--accent); background: var(--accent-tint-2); }
.mini-model .dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; }
.mini-model label.on .dot { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 2px #fff; }
.mini-model b { font-weight: 600; }

/* иконка-акцент для маленьких плиток */
.tile .glyph {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--accent-tint);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.tile.dark .glyph { background: rgba(43, 212, 168, 0.16); color: #4be0b3; }

/* ------- цифры ------- */

.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 48px 0; }
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(34px, 3.8vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.stat span { font-size: 14.5px; color: var(--muted); }

/* ------- как работает ------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { padding: 28px 26px; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
}
.step h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--muted); }

/* ------- безопасность ------- */

.security { background: var(--dark); color: var(--dark-ink); }
.security-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.security h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 14px 0;
}
.security .lede { color: var(--dark-muted); font-size: 16.5px; }
.security-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.security-list li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 17px 19px;
  border: 1px solid var(--dark-2);
  border-radius: var(--radius-m);
  background: var(--dark-2);
  font-size: 15px;
}
.security-list svg { flex: none; margin-top: 2px; color: #4be0b3; }
.security-list b { font-weight: 600; }
.security-list p { font-size: 13.5px; color: var(--dark-muted); margin-top: 3px; }

/* ------- тарифы ------- */

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan.featured { border: 1.5px solid var(--ink); box-shadow: var(--shadow-pop); }
.plan .badge {
  position: absolute;
  top: -12px;
  left: 28px;
  background: var(--grad);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 12px;
  border-radius: 999px;
}
.plan h3 { font-size: 16px; font-weight: 600; color: var(--ink-soft); }
.plan .price { font-family: var(--font-display); font-size: 42px; font-weight: 800; letter-spacing: -0.03em; margin: 14px 0 2px; }
.plan .price small { font-family: var(--font-ui); font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.plan .per { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.plan ul { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 11px; }
.plan li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-soft); }
.plan li svg { flex: none; margin-top: 4px; color: var(--accent); }
.plan .btn { margin-top: auto; }
.pricing-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 24px; }

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

.faq { max-width: 740px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 4px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { transition: transform 0.2s ease; color: var(--muted); flex: none; }
.faq details[open] summary .chev { transform: rotate(45deg); }
.faq .answer { padding: 0 4px 24px; color: var(--ink-soft); font-size: 15px; max-width: 62ch; line-height: 1.65; }

/* ------- финальный призыв ------- */

.cta-band {
  position: relative;
  background: var(--dark);
  color: var(--dark-ink);
  border-radius: var(--radius-xl);
  padding: clamp(52px, 8vw, 92px) clamp(28px, 6vw, 80px);
  text-align: center;
  margin-bottom: clamp(72px, 10vw, 120px);
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: auto -20% -60% -20%;
  height: 340px;
  background: radial-gradient(50% 100% at 50% 100%, rgba(43, 212, 168, 0.28), transparent 70%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.2vw, 50px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 16ch;
  margin: 0 auto 16px;
  text-wrap: balance;
}
.cta-band p { color: var(--dark-muted); margin-bottom: 30px; font-size: 16.5px; }
.cta-band .btn-accent { background: #fff; color: var(--ink); }
.cta-band .btn-accent:hover { background: #e9ece9; box-shadow: none; }

/* ------- подвал ------- */

.footer { border-top: 1px solid var(--line); padding: 52px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer .about p { font-size: 13.5px; color: var(--muted); margin-top: 12px; max-width: 26em; }
.footer h4 { font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { font-size: 14px; color: var(--ink-soft); text-decoration: none; }
.footer ul a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

/* ------- адаптив ------- */

@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .tile.col-3 { grid-column: span 4; }
  .tile.col-2 { grid-column: span 2; }
  .tile.col-4 { grid-column: span 4; }
  .steps, .pricing-grid { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links, .nav-cta .btn-quiet { display: none; }
  .nav-burger { display: flex; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 18px;
    margin: 0;
  }
  .bento { grid-template-columns: 1fr; }
  .tile.col-3, .tile.col-2, .tile.col-4 { grid-column: span 1; }
  .stats-row { grid-template-columns: 1fr; gap: 22px; padding: 36px 0; text-align: center; }
  .prompt-box { padding-left: 18px; }
  .prompt-box .ptext { font-size: 15px; }
}
