/* ===== AiMogetVse — Дизайн-система (Apple-style минимализм) ===== */

/* Цветовая палитра:
   - Blue (primary): #0071e3 — Apple blue, технологичный акцент
   - Sage (organic): #7ea495 — мягкий органичный оттенок для дорогого минимализма
   - Coral (warm): #e8846b — тёплый контрастный акцент
   - Greys: f5f5f7 / 86868b / 1d1d1f — Apple grey scale
*/

:root {
  --bg: #fbfbfd;
  --bg-soft: #f5f5f7;
  --bg-card: #ffffff;
  --text: #1d1d1f;
  --text-soft: #3a3a3d;      /* темнее чем было — для лучшей читаемости */
  --muted: #6e6e73;          /* темнее — контрастнее */
  --muted2: #86868b;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);

  --blue: #0891b2;        /* мягкий бирюзовый (cyan-700) — основной акцент */
  --blue-light: #06b6d4;  /* cyan-500 — яркий акцент */
  --blue-soft: #ecfeff;   /* cyan-50 */
  --blue-dark: #164e63;   /* cyan-900 */

  --sage: #7ea495;
  --sage-soft: #ebf2ee;
  --sage-dark: #5a7a6c;

  --terra: #c17454;       /* тёплая терракота — для горячих блоков */
  --terra-soft: #f5ddd2;
  --terra-dark: #9c5a3d;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.08);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text);
  background: var(--bg);
  line-height: 1.47;
  min-height: 100vh;
  letter-spacing: -0.003em;
}

/* ===== Layout ===== */
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.page--narrow { max-width: 860px; }

.section {
  padding: 96px 24px;
}
.section--tight { padding: 64px 24px; }
.section--alt { background: var(--bg-soft); }

@media (max-width: 768px) {
  .section { padding: 64px 20px; }
  .section--tight { padding: 48px 20px; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 120px 24px 80px;
  overflow: hidden;
  text-align: center;
}
.hero__inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Мягкая подсветка вместо блобов */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1000px 500px at 50% -10%, rgba(0, 113, 227, 0.08), transparent 60%),
    radial-gradient(600px 400px at 20% 110%, rgba(126, 164, 149, 0.08), transparent 65%);
  z-index: 0;
  pointer-events: none;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  animation: fadeUp 0.6s ease both;
}
.hero__badge__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 3px rgba(126, 164, 149, 0.2);
  animation: pulse 2.2s ease-in-out infinite;
}

.hero__h1 {
  font-size: clamp(40px, 7.5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 22px;
  animation: fadeUp 0.7s ease 0.1s both;
}
.hero__h1 .accent { color: var(--blue); }
.hero__h1 .muted {
  color: var(--muted);
  font-weight: 500;
}
.hero__h1 .sage { color: var(--sage); }

.hero__sub {
  font-size: clamp(17px, 2.1vw, 21px);
  color: var(--text-soft);
  line-height: 1.5;
  max-width: 680px;
  margin: 0 auto 36px;
  font-weight: 400;
  animation: fadeUp 0.7s ease 0.2s both;
}
.hero__cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.7s ease 0.3s both;
}

/* ===== Buttons (Apple-style) ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 980px;
  border: none;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  line-height: 1;
  transition: all 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
  letter-spacing: -0.01em;
}
.btn--primary {
  background: var(--text);
  color: #fff;
}
.btn--primary:hover {
  background: var(--blue);
  transform: translateY(-1px);
}
.btn--blue {
  background: var(--blue);
  color: #fff;
}
.btn--blue:hover {
  background: #0062c4;
  transform: translateY(-1px);
}
.btn--ghost {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--text);
}
.btn--link {
  background: transparent;
  color: var(--blue);
  padding: 8px 0;
  border-radius: 0;
}
.btn--link:hover { text-decoration: underline; }

.btn__arrow {
  display: inline-block;
  transition: transform 0.2s;
}
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ===== Section headers ===== */
.section__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--blue);
  margin-bottom: 14px;
  text-align: center;
  width: 100%;
}
.section__title {
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-align: center;
  margin-bottom: 16px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text);
}
.section__title .muted { color: var(--muted); font-weight: 500; }
.section__sub {
  font-size: clamp(16px, 1.9vw, 18px);
  color: var(--text-soft);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
  line-height: 1.5;
}

/* ===== Cards ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  overflow: hidden;
}
.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Bento grid */
.bento {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(180px, auto);
  max-width: 1200px;
  margin: 0 auto;
}
.bento__cell {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}
.bento__cell:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.bento__cell--wide { grid-column: span 4; }
.bento__cell--tall { grid-row: span 2; }
.bento__cell--full { grid-column: span 6; }
.bento__cell--half { grid-column: span 3; }
.bento__cell--third { grid-column: span 2; }
.bento__cell--dark {
  background: linear-gradient(160deg, #1d1d1f 0%, #2d2d2f 100%);
  color: #fff;
  border-color: transparent;
}
.bento__cell--blue {
  background: linear-gradient(160deg, #0071e3 0%, #0062c4 100%);
  color: #fff;
  border-color: transparent;
}
.bento__cell--sage {
  background: linear-gradient(160deg, #7ea495 0%, #6b9283 100%);
  color: #fff;
  border-color: transparent;
}

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__cell--wide, .bento__cell--full, .bento__cell--half { grid-column: span 2; }
  .bento__cell--third { grid-column: span 1; }
  .bento__cell--tall { grid-row: auto; }
}

.bento__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--blue);
  margin-bottom: 8px;
}
.bento__cell--dark .bento__eyebrow,
.bento__cell--blue .bento__eyebrow,
.bento__cell--sage .bento__eyebrow { color: rgba(255,255,255,0.7); }

.bento__title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 10px;
}
.bento__desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.bento__cell--dark .bento__desc,
.bento__cell--blue .bento__desc,
.bento__cell--sage .bento__desc { color: rgba(255,255,255,0.75); }

/* ===== Stats strip ===== */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
  padding: 40px 0;
  max-width: 900px;
  margin: 0 auto;
}
.stat-item { text-align: center; }
.stat-item__num {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-item__label {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}

/* ===== Marquee (чипы технологий / вопросы) ===== */
.marquee-wrap { overflow: hidden; padding: 10px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee-track--rev { animation: marquee-rev 44s linear infinite; }
.marquee-item {
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 980px;
  font-size: 14px;
  color: var(--text-soft);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.marquee-item--blue {
  background: var(--blue-soft);
  color: var(--blue);
  border-color: transparent;
  font-weight: 500;
}
.marquee-item--sage {
  background: var(--sage-soft);
  color: var(--sage);
  border-color: transparent;
  font-weight: 500;
}
.marquee-item--dark {
  background: var(--text);
  color: #fff;
  border-color: transparent;
}

/* ===== Split section (текст + визуал) ===== */
.split {
  display: grid;
  gap: 56px;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  margin: 72px 0;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}
.split--reverse .split__text { order: 2; }
.split__text h3 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.split__text p {
  font-size: 16px;
  color: var(--text-soft);
  line-height: 1.55;
  margin-bottom: 14px;
}
.split__text ul {
  list-style: none;
  margin-top: 20px;
}
.split__text li {
  padding: 10px 0;
  font-size: 15px;
  color: var(--text-soft);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}
.split__text li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
  margin-top: 8px;
  flex-shrink: 0;
}
.split__visual {
  position: relative;
  min-height: 320px;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, var(--bg-soft) 0%, var(--bg-card) 100%);
  padding: 32px;
  border: 1px solid var(--border);
  overflow: hidden;
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 32px; margin: 48px 0; }
  .split--reverse .split__text { order: 0; }
}

/* ===== Pricing ===== */
.pricing {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: 1120px;
  margin: 0 auto;
}
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s;
}
.price-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.price-card--featured {
  background: linear-gradient(165deg, #1d1d1f 0%, #2d2d2f 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 24px 60px rgba(29, 29, 31, 0.2);
}

.price-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 980px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.price-card__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 10px;
}
.price-card--featured .price-card__name { color: var(--blue-light); }
.price-card__title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 10px;
}
.price-card__desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 22px;
}
.price-card--featured .price-card__desc { color: rgba(255,255,255,0.7); }
.price-card__price {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
}
.price-card__price-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}
.price-card--featured .price-card__price-sub { color: rgba(255,255,255,0.6); }
.price-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.price-card__feat {
  font-size: 14px;
  color: var(--text-soft);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
}
.price-card__feat::before {
  content: '';
  width: 16px; height: 16px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230071e3'%3E%3Cpath d='M6 11.5L2.5 8l1-1 2.5 2.5 6-6 1 1z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  margin-top: 3px;
}
.price-card--featured .price-card__feat { color: rgba(255,255,255,0.85); }
.price-card--featured .price-card__feat::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232997ff'%3E%3Cpath d='M6 11.5L2.5 8l1-1 2.5 2.5 6-6 1 1z'/%3E%3C/svg%3E");
}

.price-card__cta {
  display: block;
  text-align: center;
  padding: 14px 24px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.price-card .price-card__cta {
  background: var(--text);
  color: #fff;
}
.price-card .price-card__cta:hover { background: var(--blue); }
.price-card--featured .price-card__cta {
  background: #fff;
  color: var(--text);
}
.price-card--featured .price-card__cta:hover { background: var(--blue); color: #fff; }

/* ===== FAQ ===== */
.faq {
  max-width: 780px;
  margin: 0 auto;
}
.faq__item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.faq__q {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  list-style: none;
  color: var(--text);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1;
  transition: transform 0.2s;
}
.faq__item[open] .faq__q::after { content: '×'; transform: rotate(0deg); }
.faq__a {
  margin-top: 14px;
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ===== Terminal/Code mockup ===== */
.terminal {
  background: #1d1d1f;
  border-radius: var(--radius);
  padding: 16px 18px;
  font-family: 'SF Mono', 'Menlo', 'Courier New', monospace;
  font-size: 13px;
  color: #f5f5f7;
  line-height: 1.6;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.terminal__bar {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.terminal__dot {
  width: 12px; height: 12px; border-radius: 50%;
}
.terminal__dot--red { background: #ff5f56; }
.terminal__dot--yellow { background: #ffbd2e; }
.terminal__dot--green { background: #27c93f; }
.terminal__line { margin: 2px 0; }
.terminal__prompt { color: #7ea495; }
.terminal__input { color: #f5f5f7; }
.terminal__output { color: #a1a1a6; }
.terminal__cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: #f5f5f7;
  vertical-align: text-bottom;
  animation: blink 1.1s steps(1) infinite;
}

/* ===== Lead form modal ===== */
.lead-overlay {
  position: fixed; inset: 0;
  background: rgba(29, 29, 31, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lead-overlay.open { display: flex; }
.lead-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  max-width: 460px;
  width: 100%;
  position: relative;
  animation: fadeUp 0.3s ease;
  box-shadow: var(--shadow-lg);
}
.lead-card__close {
  position: absolute;
  top: 18px; right: 18px;
  width: 30px; height: 30px;
  border: none;
  background: var(--bg-soft);
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  color: var(--muted);
}
.lead-card__close:hover { background: var(--border); color: var(--text); }
.lead-card__title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}
.lead-card__sub {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.5;
}
.lead-card__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lead-input {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  background: var(--bg);
}
.lead-input:focus { border-color: var(--blue); }
.lead-card__note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.45;
}
.lead-card__note a { color: var(--blue); text-decoration: none; }
.lead-card__success {
  display: none;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--sage-soft);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
}
.lead-card.success .lead-card__form,
.lead-card.success .lead-card__title,
.lead-card.success .lead-card__sub { display: none; }
.lead-card.success .lead-card__success { display: block; }

/* ===== Animations ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(126, 164, 149, 0.2); }
  50% { box-shadow: 0 0 0 6px rgba(126, 164, 149, 0); }
}
@keyframes blink { 50% { opacity: 0; } }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes marquee-rev {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
