/* ============================================================
   Промо-лендинг «Notion для Windows»
   Оглавление:
   1. Переменные и база
   2. Анимации (@keyframes) и появление при скролле
   3. Кнопки
   4. Шапка (nav)
   5. Hero
   6. Бегущая строка
   7. Секции: общее
   8. Возможности
   9. Цифры (stats)
   10. Скриншоты
   11. Отзывы
   12. Системные требования
   13. FAQ
   14. Финальный CTA
   15. Подвал
   16. Адаптив
   ============================================================ */

/* ---------- 1. Переменные и база ---------- */
:root {
  --bg: #FAFAF7;
  --ink: #161613;          /* основной текст */
  --muted: #6F6E66;        /* вторичный текст */
  --faint: #9C9A8F;        /* подписи */
  --line: #E3E1D8;         /* границы */
  --line-soft: #EEECE4;
  --card: #FFFFFF;
  --dark: #161613;         /* тёмные блоки */
  --dark-muted: #B8B6AB;
  --accent: #2383E2;       /* акцентный цвет */
  --font-main: 'Golos Text', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--ink); color: var(--bg); }

img { display: block; max-width: 100%; }

a { color: var(--ink); }
a:hover { color: var(--muted); }

/* ---------- 2. Анимации ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(42px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
@keyframes marquee-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%      { opacity: .25; }
}

/* Элементы с классом .reveal появляются при попадании в вьюпорт
   (класс .in добавляет main.js) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .85s cubic-bezier(.2, .65, .2, 1),
              transform .85s cubic-bezier(.2, .65, .2, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* Полоса прогресса скролла */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px; width: 0%;
  background: var(--accent);
  z-index: 90;
}

/* ---------- 3. Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-weight: 700;
  border-radius: 12px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover {
  color: var(--bg);
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -14px rgba(22, 22, 19, .55);
}
.btn-small { padding: 9px 18px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.btn-large { padding: 17px 32px; font-size: 17px; }
.btn-inverse { background: var(--bg); color: var(--ink); font-weight: 800; }
.btn-inverse:hover { color: var(--ink); }

/* ---------- 4. Шапка ---------- */
.nav {
  position: fixed;
  top: 3px; left: 0; right: 0;
  z-index: 80;
  background: rgba(250, 250, 247, .85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav-logo:hover { color: var(--ink); }
.nav-logo img { object-fit: contain; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}
.nav-links > a { color: var(--muted); text-decoration: none; }
.nav-links > a:hover { color: var(--ink); }

/* ---------- 5. Hero ---------- */
.hero {
  padding: 170px 32px 0;
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 7px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
  animation: rise .8s cubic-bezier(.2, .65, .2, 1) both;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}
.hero-title {
  font-size: clamp(52px, 7.2vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 900;
  margin-top: 28px;
}
.hero-title span { display: block; }
/* Строки заголовка появляются по очереди */
.hero-title span:nth-child(1) { animation: rise .9s cubic-bezier(.2,.65,.2,1) .08s both; }
.hero-title span:nth-child(2) { animation: rise .9s cubic-bezier(.2,.65,.2,1) .18s both; }
.hero-title span:nth-child(3) { animation: rise .9s cubic-bezier(.2,.65,.2,1) .28s both; }
.hero-title-muted { color: #B8B6AB; }
.hero-subtitle {
  max-width: 620px;
  margin: 28px auto 0;
  font-size: 20px;
  line-height: 1.55;
  color: var(--muted);
  animation: rise .9s cubic-bezier(.2,.65,.2,1) .38s both;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 36px;
  flex-wrap: wrap;
  animation: rise .9s cubic-bezier(.2,.65,.2,1) .48s both;
}
.hero-meta {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--faint);
  animation: fadein 1s .7s both;
}

/* Скриншот в «окне» */
.hero-shot {
  position: relative;
  margin: 76px auto 0;
  max-width: 1040px;
  perspective: 1400px; /* для эффекта наклона за курсором */
  animation: rise 1.1s cubic-bezier(.2,.65,.2,1) .55s both;
}
.window {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 60px 120px -40px rgba(22, 22, 19, .35);
  overflow: hidden;
  transition: transform .25s ease;
  transform-style: preserve-3d;
}
.window-bar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line-soft);
  background: #FCFCFA;
}
.window-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.window-title {
  margin: 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--faint);
}
.window img { width: 100%; background: #F4F3EE; min-height: 200px; }

/* Плавающие подсказки вокруг скриншота */
.chip {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  box-shadow: 0 20px 40px -20px rgba(22, 22, 19, .3);
  animation: floaty 5s ease-in-out infinite;
}
.chip-dark {
  background: var(--dark);
  color: var(--bg);
  border: none;
  box-shadow: 0 20px 40px -20px rgba(22, 22, 19, .4);
}
.chip-1 { top: -24px; left: -52px; }
.chip-2 { top: 110px; right: -60px; animation-duration: 6s; animation-delay: .8s; }
.chip-3 { bottom: 60px; left: -44px; animation-duration: 5.5s; animation-delay: 1.4s; }

/* ---------- 6. Бегущая строка ---------- */
.marquee-strip {
  margin-top: -2px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--card);
  overflow: hidden;
  padding: 18px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 56px;
  animation: marquee-left 34s linear infinite;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--muted);
  white-space: nowrap;
}
.marquee-track:hover { animation-play-state: paused; }

/* ---------- 7. Секции: общее ---------- */
.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 100px 32px 40px;
  scroll-margin-top: 80px;
}
.section-narrow { max-width: 840px; }
/* Секция на всю ширину (для лент отзывов), внутренняя колонка — отдельно */
.section-full { max-width: none; padding-left: 0; padding-right: 0; }
.section-inner { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

.section-label {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .16em;
  color: var(--accent);
}
.section-title {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 14px;
  max-width: 720px;
  text-wrap: balance;
}
.section-note { margin-top: 18px; font-size: 13px; color: var(--faint); }

/* ---------- 8. Возможности ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 48px -26px rgba(22, 22, 19, .3);
  border-color: var(--ink);
}
/* Небольшая задержка появления для 2-й и 3-й колонок */
.feature-card:nth-child(3n-1) { transition-delay: .06s; }
.feature-card:nth-child(3n)   { transition-delay: .12s; }
.feature-num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.feature-card h3 { font-size: 21px; font-weight: 700; margin-top: 14px; letter-spacing: -0.01em; }
.feature-card p:last-child { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ---------- 9. Цифры ---------- */
.stats {
  background: var(--dark);
  color: var(--bg);
  border-radius: 24px;
  padding: 72px 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}
.stat-bordered { border-left: 1px solid #33322C; border-right: 1px solid #33322C; }
.stat-value {
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 900;
  letter-spacing: -0.03em;
}
.stat-label {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: #8F8D82;
}

/* ---------- 10. Скриншоты ---------- */
.shot {
  border-radius: 16px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--card);
  transition: transform .3s ease;
}
.shot img { width: 100%; background: #F4F3EE; min-height: 160px; }
.shot figcaption {
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
}
.shot-wide {
  margin-top: 56px;
  box-shadow: 0 40px 80px -40px rgba(22, 22, 19, .3);
}
.shot-wide:hover { transform: scale(1.012); }
.shots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}
.shots-grid .shot:hover { transform: translateY(-6px); }

/* ---------- 11. Отзывы ---------- */
.reviews {
  margin-top: 56px;
  overflow: hidden;
  display: grid;
  gap: 20px;
  /* Затемнение краёв лент */
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}
.reviews-row { display: flex; gap: 20px; width: max-content; }
.reviews-row:hover { animation-play-state: paused; }
.reviews-row-left  { animation: marquee-left 34s linear infinite; }
.reviews-row-right { animation: marquee-right 44s linear infinite; }
.reviews-set { display: flex; gap: 20px; }

.review-card {
  width: 390px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.review-stars { color: var(--accent); font-size: 15px; letter-spacing: 2px; }
.review-text { font-size: 15px; line-height: 1.6; color: #3A3A33; }
.review-author {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
}
.review-author span + p b { font-weight: 700; }
.review-author p { color: var(--faint); }
.review-author b { color: var(--ink); }
.review-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

/* ---------- 12. Системные требования ---------- */
.sysreq-grid {
  margin-top: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}
.sysreq-cell { padding: 32px 28px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.sysreq-cell:nth-child(3n) { border-right: none; }
.sysreq-cell:nth-child(n+4) { border-bottom: none; }
.sysreq-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--faint);
}
.sysreq-value { font-size: 20px; font-weight: 700; margin-top: 10px; }

/* ---------- 13. FAQ ---------- */
.faq { margin-top: 44px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 24px 4px;
  text-align: left;
  font-family: inherit;
  color: var(--ink);
}
.faq-question:hover { color: var(--muted); }
.faq-question span:first-child { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.faq-icon { font-family: var(--font-mono); font-size: 22px; color: var(--faint); flex-shrink: 0; }
.faq-answer {
  display: none;
  padding: 0 4px 26px;
  max-width: 680px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--muted);
}
.faq-item.open .faq-answer { display: block; }

/* ---------- 14. Финальный CTA ---------- */
.cta {
  position: relative;
  background: var(--dark);
  color: var(--bg);
  border-radius: 28px;
  padding: 100px 48px;
  text-align: center;
  overflow: hidden;
}
/* Огромная полупрозрачная надпись на фоне */
.cta-watermark {
  position: absolute;
  inset: auto -5% -34% -5%;
  font-size: clamp(120px, 18vw, 240px);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: #232320;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}
.cta-content { position: relative; }
.cta h2 {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.cta-subtitle {
  margin: 20px auto 0;
  max-width: 520px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--dark-muted);
}
.cta .btn { margin-top: 36px; }
.cta-meta {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: #8F8D82;
}

/* ---------- 15. Подвал ---------- */
.footer {
  border-top: 1px solid var(--line-soft);
  padding: 36px 32px;
  background: var(--card);
  margin-top: 60px;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-inner img { object-fit: contain; }
.footer-inner p { font-size: 13px; color: var(--muted); }

/* ---------- 16. Адаптив ---------- */
@media (max-width: 960px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr; padding: 48px 32px; }
  .stat-bordered { border: none; border-top: 1px solid #33322C; border-bottom: 1px solid #33322C; padding: 40px 0; }
  .sysreq-grid { grid-template-columns: 1fr 1fr; }
  .sysreq-cell:nth-child(3n) { border-right: 1px solid var(--line-soft); }
  .sysreq-cell:nth-child(2n) { border-right: none; }
  .sysreq-cell:nth-child(n+4) { border-bottom: 1px solid var(--line-soft); }
  .sysreq-cell:nth-child(n+5) { border-bottom: none; }
  .chip-1 { left: -8px; }
  .chip-2 { right: -8px; }
  .chip-3 { left: -8px; }
}
@media (max-width: 640px) {
  .nav-links > a:not(.btn) { display: none; }
  .hero { padding-top: 130px; }
  .features-grid, .shots-grid, .sysreq-grid { grid-template-columns: 1fr; }
  .sysreq-cell { border-right: none !important; border-bottom: 1px solid var(--line-soft) !important; }
  .sysreq-cell:last-child { border-bottom: none !important; }
  .section { padding: 72px 20px 32px; }
  .section-inner { padding: 0 20px; }
  .hero { padding-left: 20px; padding-right: 20px; }
  .cta { padding: 64px 24px; }
}
