/* ==========================================================================
   CryTalk Landing — общие стили (светлая тема)
   Палитра и радиусы скругления повторяют стиль основного приложения CryTalk
   (акцентный золотой #ffbe3d, тёмный текст вместо тёмного фона — тема здесь
   светлая), но переработаны в светлую тему специально для лендинга.
   ========================================================================== */

:root {
  /* Акцентные цвета */
  --gold: #ffbe3d;
  --gold-soft: #ffd370;
  --gold-deep: #f5a623;

  /* фон/поверхности/текст */
  --bg: #fbf9f5;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-soft: #fff8ec;
  --border: rgba(20, 20, 20, 0.08);
  --text: #1a1a1a;
  --text-dim: rgba(26, 26, 26, 0.62);
  --text-faint: rgba(26, 26, 26, 0.42);

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 8px 28px rgba(20, 20, 20, 0.06);
  --shadow-card: 0 12px 32px rgba(20, 20, 20, 0.08);
  --shadow-hover: 0 20px 44px rgba(245, 166, 35, 0.22);

  --container: 1160px;
  --transition: 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

/* -------------------- для скролл-анимаций -------------------- */
/* Элемент с этим классом стартует прозрачным и сдвинутым вниз;
   JS (см. main.js) добавляет .is-visible при появлении в вьюпорте. */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------- Хедер -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 245, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Логотип */
.logo-link {
  display: block;
  text-decoration: none;
}

.logo {
  display: block;
  width: 46px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 48px;
}

.site-nav a:not(.btn) {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-dim);
  transition: color var(--transition);
  padding: 0px 16px;
}
.site-nav a:not(.btn):hover {
  color: var(--text);
}

/* -------------------- Кнопки -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius-sm);
  padding: 13px 26px;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
  white-space: nowrap;
}

.btn-gold {
  background: linear-gradient(120deg, var(--gold-deep), var(--gold-soft));
  color: #1a1200;
  box-shadow: var(--shadow-card);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  filter: brightness(1.03);
}
.btn-gold:active {
  transform: translateY(0);
}

.btn-outline {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-soft);
}
.btn-outline:hover {
  border-color: var(--gold-deep);
  transform: translateY(-2px);
}

.btn-small {
  padding: 9px 18px;
  font-size: 13.5px;
}

/* Кнопка «Продолжить в браузере» — крупная, с мягкой пульсацией/свечением */
.btn-cta {
  font-size: 17px;
  padding: 18px 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(120deg, var(--gold-deep), var(--gold), var(--gold-soft));
  background-size: 200% 200%;
  color: #1a1200;
  box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.5), var(--shadow-card);
  animation: ctaGlow 2.6s ease-in-out infinite, ctaGradient 6s ease infinite;
}
.btn-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.45), var(--shadow-card); }
  50%      { box-shadow: 0 0 0 14px rgba(245, 166, 35, 0), var(--shadow-card); }
}
@keyframes ctaGradient {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* -------------------- Hero -------------------- */
.hero {
  position: relative;
  padding: 96px 0 120px;
  overflow: hidden;
  text-align: center;
}

/* Мягкие градиентные "пятна" на фоне — двигаются параллаксом в main.js */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.hero-blob--1 {
  width: 420px; height: 420px;
  top: -140px; left: -100px;
  background: radial-gradient(circle, var(--gold-soft), transparent 70%);
}
.hero-blob--2 {
  width: 380px; height: 380px;
  top: -60px; right: -120px;
  background: radial-gradient(circle, #ffe1a3, transparent 70%);
}
.hero-blob--3 {
  width: 320px; height: 320px;
  bottom: -160px; left: 40%;
  background: radial-gradient(circle, var(--gold), transparent 70%);
  opacity: 0.35;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(36px, 5.5vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 50px;
  font-weight: 800;
}

.hero h1 .accent {
  background: linear-gradient(120deg, var(--gold-deep), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0 auto 36px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* -------------------- Секции -------------------- */
.section {
  padding: 88px 0;
}
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
}
.section-head .tag {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 10px;
  display: block;
}
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 38px);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.section-head p {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

/* -------------------- Карточки фич -------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(245, 166, 35, 0.35);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform var(--transition), background var(--transition);
}
.feature-card:hover .feature-icon {
  transform: scale(1.08) rotate(-4deg);
  background: linear-gradient(135deg, var(--gold-soft), var(--surface-soft));
}
.feature-icon img {
  width: 26px;
  height: 26px;
}

.feature-card h3 {
  font-size: 18px;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.feature-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0;
}

/* -------------------- Блок «Продолжить в браузере» -------------------- */
.browser-cta {
  text-align: center;
}
.browser-cta p {
  color: var(--text-dim);
  font-size: 16px;
  margin: 0 0 24px;
}

/* -------------------- Скачивание приложений -------------------- */
.downloads {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.download-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 26px;
  box-shadow: var(--shadow-card);
  min-width: 240px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.download-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.download-card img {
  width: 34px;
  height: 34px;
}
.download-card .dl-text {
  display: flex;
  flex-direction: column;
}
.download-card .dl-text small {
  color: var(--text-faint);
  font-size: 12px;
}
.download-card .dl-text strong {
  font-size: 15.5px;
}

/* -------------------- FAQ / аккордеон -------------------- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.faq-item.is-open {
  box-shadow: var(--shadow-card);
  border-color: rgba(245, 166, 35, 0.3);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform var(--transition), background var(--transition);
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--gold-deep);
  transition: transform var(--transition);
}
.faq-icon::before { width: 10px; height: 2px; }
.faq-icon::after { width: 2px; height: 10px; }
.faq-item.is-open .faq-icon {
  transform: rotate(180deg);
  background: var(--gold-soft);
}
.faq-item.is-open .faq-icon::after {
  transform: scaleY(0);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
}
.faq-answer-inner {
  padding: 0 24px 22px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.65;
}

/* -------------------- О проекте (FAQ-страница) -------------------- */
.about-text {
  max-width: 720px;
  margin: 0 auto;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.75;
}
.about-text p { margin: 0 0 18px; }
.about-text strong { color: var(--text); }

/* -------------------- Футер -------------------- */
.site-footer {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer .footer-link {
  font-weight: 700;
  color: var(--gold-deep);
  transition: color var(--transition);
}
.site-footer .footer-link:hover {
  color: var(--text);
}
.site-footer small {
  color: var(--text-faint);
  font-size: 13px;
}

/* -------------------- Адаптив -------------------- */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .site-nav {
    gap: 14px;
  }
  .site-nav .nav-links {
    display: none; /* на мобильных оставляем только кнопку CTA в хедере */
  }
  .hero {
    padding: 64px 0 80px;
  }
  .section {
    padding: 64px 0;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .downloads {
    flex-direction: column;
    align-items: stretch;
  }
  .download-card {
    min-width: 0;
  }
  .site-footer .container {
    flex-direction: column;
    text-align: center;
  }
}
