/* =========================================================
   Corp Messenger — landing styles
   Минимум CSS, без фреймворков, всё в одном файле.
   Меняй переменные в :root чтобы перебрендить лендинг.
   ========================================================= */

:root {
  --brand: #1F6FEB;
  --brand-dark: #1858C0;
  --brand-soft: #E6F0FF;
  --bg: #FFFFFF;
  --bg-soft: #F7F9FC;
  --bg-dark: #0E1726;
  --text: #1A2236;
  --text-muted: #5B6B85;
  --border: #E5EAF2;
  --success: #1FAE7A;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .14);
  --max: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "SF Pro", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }

img, svg { max-width: 100%; display: block; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p  { margin: 0 0 1em; color: var(--text-muted); }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--text-muted);
  text-decoration: none;
}
.btn-lg { padding: 18px 28px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
  font-size: 1.1rem;
}
.logo-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand) 0%, #6E9FFF 100%);
}
nav.primary {
  display: flex; align-items: center; gap: 28px;
}
nav.primary a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: .95rem;
}
nav.primary a:hover { color: var(--text); text-decoration: none; }

@media (max-width: 800px) {
  nav.primary { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 60px;
  background:
    radial-gradient(ellipse at top right, var(--brand-soft) 0%, transparent 55%),
    radial-gradient(ellipse at bottom left, #EDE7FF 0%, transparent 50%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.hero-eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(31, 174, 122, .25);
}
.hero h1 strong { color: var(--brand); }
.hero p.lead {
  font-size: 1.18rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 28px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust {
  margin-top: 28px;
  display: flex; flex-wrap: wrap; gap: 16px 28px;
  font-size: .9rem; color: var(--text-muted);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust span::before { content: "✓"; color: var(--success); font-weight: 700; }

.hero-visual {
  position: relative;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #1A2236 0%, #2D3654 100%);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}
.hero-visual::before {
  content: "";
  position: absolute;
  top: 14px; left: 14px;
  display: flex; gap: 6px;
}
.hero-visual .browser-bar {
  display: flex; gap: 6px;
  padding-bottom: 14px;
}
.hero-visual .browser-bar i {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #4A5677;
}
.hero-visual .browser-bar i:nth-child(1) { background: #FF5F57; }
.hero-visual .browser-bar i:nth-child(2) { background: #FEBC2E; }
.hero-visual .browser-bar i:nth-child(3) { background: #28C840; }
.hero-visual .screen {
  position: absolute;
  inset: 50px 16px 16px;
  background: #fff;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 200px 1fr;
  overflow: hidden;
}
.hero-visual .sidebar {
  background: var(--bg-dark);
  padding: 16px 12px;
  font-size: .8rem;
  color: #B6C0D6;
}
.hero-visual .sidebar .channel {
  padding: 6px 8px;
  border-radius: 6px;
  margin-bottom: 2px;
}
.hero-visual .sidebar .channel.active { background: var(--brand); color: #fff; }
.hero-visual .sidebar .channel::before { content: "# "; opacity: .6; }
.hero-visual .chat {
  padding: 18px;
  display: flex; flex-direction: column;
  gap: 12px;
  overflow: hidden;
}
.hero-visual .msg {
  background: var(--bg-soft);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: .85rem;
  color: var(--text);
  max-width: 80%;
}
.hero-visual .msg.me {
  align-self: flex-end;
  background: var(--brand);
  color: #fff;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding: 50px 0 40px; }
}

/* ---------- Sections ---------- */
section.block { padding: 80px 0; }
section.block.alt { background: var(--bg-soft); }

.section-eyebrow {
  text-align: center;
  text-transform: uppercase;
  font-size: .82rem;
  letter-spacing: .14em;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 12px;
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.section-head p { font-size: 1.1rem; }

/* ---------- Features grid ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: all .2s ease;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-size: 1.4rem;
  font-weight: 700;
}
.feature h3 { margin-bottom: .35em; }
.feature p { font-size: .95rem; margin: 0; }

@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 24px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -18px; left: 24px;
  width: 36px; height: 36px;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(31, 111, 235, .35);
}
.step h3 { margin-top: 6px; }

@media (max-width: 800px) { .steps { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Pricing ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.plan {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex; flex-direction: column;
}
.plan.featured {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 111, 235, .12), var(--shadow-md);
  position: relative;
}
.plan.featured::before {
  content: "Популярный";
  position: absolute;
  top: -12px; left: 24px;
  background: var(--brand);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
}
.plan h3 { margin-bottom: 6px; font-size: 1.25rem; }
.plan .plan-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin: 14px 0 6px;
}
.plan .plan-price small { font-size: .9rem; color: var(--text-muted); font-weight: 500; }
.plan .plan-desc { font-size: .9rem; min-height: 50px; }
.plan ul {
  list-style: none;
  padding: 0; margin: 18px 0 24px;
  display: flex; flex-direction: column; gap: 10px;
  font-size: .94rem;
  flex: 1;
}
.plan li::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
  margin-right: 8px;
}
.plan .btn { justify-content: center; }

@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* ---------- Demo CTA ---------- */
.demo-cta {
  background: linear-gradient(135deg, #0F1B33 0%, #1F2D54 100%);
  color: #fff;
  border-radius: 24px;
  padding: 64px 56px;
  text-align: center;
}
.demo-cta h2 { color: #fff; }
.demo-cta p { color: #C8D2EA; font-size: 1.1rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.demo-cta .btn-primary { background: #fff; color: var(--brand-dark); }
.demo-cta .btn-primary:hover { background: #F1F5FB; color: var(--brand-dark); }
.demo-cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.demo-cta .btn-ghost:hover { border-color: #fff; }
.demo-cta .actions { margin-top: 26px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- FAQ ---------- */
.faq {
  max-width: 820px;
  margin: 0 auto;
}
.faq details {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--bg);
}
.faq summary {
  padding: 18px 22px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform .2s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq summary::-webkit-details-marker { display: none; }
.faq .faq-body { padding: 0 22px 18px; color: var(--text-muted); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-dark);
  color: #B6C0D6;
  padding: 56px 0 28px;
}
.site-footer a { color: #DEE5F2; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: .95rem; }
.footer-bottom {
  border-top: 1px solid #243049;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: .88rem;
  color: #6F7E9C;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Demo page ---------- */
.demo-hero {
  padding: 80px 0 40px;
  text-align: center;
  background: linear-gradient(180deg, var(--brand-soft) 0%, transparent 100%);
}
.creds {
  display: inline-block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 24px;
  font-family: "SF Mono", "Cascadia Code", Consolas, monospace;
  font-size: .98rem;
  text-align: left;
  box-shadow: var(--shadow-sm);
  margin: 20px 0;
}
.creds .row { display: flex; gap: 14px; padding: 4px 0; }
.creds .k { color: var(--text-muted); min-width: 90px; }
.creds .v { color: var(--text); font-weight: 600; user-select: all; }

.demo-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 40px 0;
}
.demo-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex; flex-direction: column;
  transition: all .15s ease;
}
.demo-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.demo-card h3 { margin-bottom: 6px; }
.demo-card p { font-size: .94rem; flex: 1; }
.demo-card .btn { align-self: flex-start; margin-top: 10px; }

@media (max-width: 900px) { .demo-cards { grid-template-columns: 1fr; } }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
