/* SonarBot.org — landing styles
   Design tokens */
:root {
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --bg-strong: #0b1220;
  --surface: #ffffff;
  --border: #e5e9f2;
  --border-strong: #cfd6e4;
  --text: #0b1220;
  --text-muted: #4a5568;
  --text-dim: #6b7280;
  --accent: #ff7a1a;
  --accent-600: #e56510;
  --accent-soft: #fff1e6;
  --brand: #1f4bff;
  --brand-600: #143bd1;
  --brand-soft: #eaf0ff;
  --success: #059669;
  --success-soft: #e6f7f0;
  --warning: #b45309;
  --warning-soft: #fef3c7;
  --danger: #b91c1c;
  --danger-soft: #fde8e8;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.04), 0 1px 3px rgba(11, 18, 32, 0.06);
  --shadow: 0 4px 14px rgba(11, 18, 32, 0.06), 0 2px 6px rgba(11, 18, 32, 0.04);
  --shadow-lg: 0 20px 40px rgba(11, 18, 32, 0.10);
  --container: 1160px;
  --h-header: 68px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--brand-600); }
h1,h2,h3,h4 { font-family: 'Manrope', 'Inter', system-ui, sans-serif; letter-spacing: -0.01em; color: var(--text); margin: 0 0 .5em; }
h1 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.15; font-weight: 800; }
h3 { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.3; font-weight: 700; }
h4 { font-size: 16px; line-height: 1.3; font-weight: 700; }
p { margin: 0 0 1em; color: var(--text-muted); }
ul { padding-left: 1.2em; margin: 0 0 1em; color: var(--text-muted); }
li { margin-bottom: .35em; }
code { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg-soft); padding: 2px 6px; border-radius: 6px; font-size: 0.92em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.muted { color: var(--text-muted); }
.center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--brand); background: var(--brand-soft);
  padding: 6px 10px; border-radius: 999px; margin-bottom: 14px;
}
.lead { font-size: clamp(16px, 1.4vw, 19px); color: var(--text-muted); max-width: 680px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: var(--h-header);
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; letter-spacing: -0.01em; }
.brand:hover { color: var(--text); }
.brand-mark { width: 30px; height: 30px; }
.brand-name { font-size: 17px; }
.brand-tag { font-size: 11px; color: var(--text-dim); margin-left: 4px; padding: 2px 6px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 6px; font-weight: 600; }

.nav { display: flex; align-items: center; gap: 24px; }
.nav a { color: var(--text-muted); font-weight: 500; font-size: 14.5px; }
.nav a:hover { color: var(--text); }
.nav .btn { padding: 10px 16px; }

.burger { display: none; background: transparent; border: 1px solid var(--border); width: 40px; height: 40px; border-radius: 10px; align-items: center; justify-content: center; cursor: pointer; }
.burger svg { width: 20px; height: 20px; color: var(--text); }
@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: var(--h-header); left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 16px 20px; flex-direction: column; align-items: stretch; gap: 12px; box-shadow: var(--shadow); }
  .nav a { padding: 8px 4px; }
  .nav.open { display: flex; }
  .burger { display: inline-flex; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 20px; border-radius: 12px; font-weight: 600; font-size: 15px;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .12s var(--ease), background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease), box-shadow .15s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(255,122,26,0.32); }
.btn-primary:hover { background: var(--accent-600); color: #fff; }
.btn-secondary { background: #fff; color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--text); color: var(--text); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--text); }
.btn-lg { padding: 15px 24px; font-size: 16px; border-radius: 14px; }
.btn-sm { padding: 9px 14px; font-size: 14px; border-radius: 10px; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(2px); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 7vw, 80px); }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 520px;
  background:
    radial-gradient(800px 400px at 20% -10%, rgba(31,75,255,0.10), transparent 60%),
    radial-gradient(600px 400px at 90% 10%, rgba(255,122,26,0.10), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 960px) { .hero-inner { grid-template-columns: 1fr; gap: 32px; } }
.hero p.lead { margin-top: 6px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-trust { margin-top: 22px; display: flex; align-items: center; gap: 10px; color: var(--text-dim); font-size: 14px; }
.hero-trust svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--success); }
.hero-note { font-size: 13.5px; color: var(--text-dim); margin-top: 14px; max-width: 540px; }

/* Hero mock (Telegram card) */
.mock {
  position: relative;
  background: linear-gradient(180deg, #fff, #f5f7fc);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 22px;
  max-width: 460px;
  margin-left: auto;
}
.mock-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.mock-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #1f4bff, #0ea5e9); display: grid; place-items: center; color: #fff; }
.mock-title { font-weight: 700; font-size: 15px; }
.mock-sub { font-size: 12.5px; color: var(--text-dim); }
.mock-thread { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.msg { padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.45; max-width: 85%; }
.msg-in { background: var(--bg-soft); color: var(--text); border-top-left-radius: 4px; }
.msg-out { background: var(--brand-soft); color: var(--text); align-self: flex-end; border-top-right-radius: 4px; }
.msg-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px; font-size: 13px; }
.msg-card-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.msg-card-row:last-child { border-bottom: 0; }
.msg-card-row b { font-weight: 600; color: var(--text); }
.msg-card-row span { color: var(--text-muted); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-ok { background: var(--success-soft); color: var(--success); }
.badge-warn { background: var(--warning-soft); color: var(--warning); }
.badge-err { background: var(--danger-soft); color: var(--danger); }

/* Cards / features */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.card h3 { margin-top: 12px; }
.card p { margin-bottom: 0; font-size: 14.5px; }
.card-icon {
  width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
}
.card-icon.accent { background: var(--accent-soft); color: var(--accent); }
.card-icon.success { background: var(--success-soft); color: var(--success); }

/* Section headers */
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(32px, 4vw, 56px); }
.section-head p { margin: 0 auto; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 58px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-strong); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
}
.step h3 { margin: 4px 0 6px; }
.step p { font-size: 14.5px; margin: 0; }

/* Report mock (sample-report page) */
.report {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden;
}
.report-head { padding: 22px 24px; background: var(--bg-strong); color: #fff; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.report-head .left { display: flex; align-items: center; gap: 14px; }
.report-head .right { font-size: 13px; color: #c7cedd; }
.report-head h3 { color: #fff; margin: 0; }
.report-body { padding: 24px; display: grid; gap: 22px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 640px) { .kv { grid-template-columns: 1fr; } }
.kv div { padding: 10px 12px; background: var(--bg-soft); border-radius: 10px; border: 1px solid var(--border); }
.kv small { display: block; font-size: 12px; color: var(--text-dim); margin-bottom: 2px; }
.kv strong { font-size: 15px; color: var(--text); font-weight: 600; }
.checks { display: grid; gap: 10px; }
.check { display: flex; gap: 12px; padding: 12px 14px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; }
.check-icon { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; }
.check-ok .check-icon { background: var(--success-soft); color: var(--success); }
.check-warn .check-icon { background: var(--warning-soft); color: var(--warning); }
.check-err .check-icon { background: var(--danger-soft); color: var(--danger); }
.check-body { flex: 1; }
.check h4 { margin: 0 0 4px; }
.check p { margin: 0; font-size: 14px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.plan {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px 24px; display: flex; flex-direction: column; gap: 16px;
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.plan:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow); }
.plan.featured { border: 2px solid var(--accent); box-shadow: 0 20px 40px rgba(255,122,26,0.15); position: relative; }
.plan.featured::before {
  content: "Популярно"; position: absolute; top: -12px; left: 24px;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; letter-spacing: 0.02em;
}
.plan h3 { margin: 0; }
.plan .price { font-family: 'Manrope', 'Inter', sans-serif; font-size: 36px; font-weight: 800; color: var(--text); line-height: 1; letter-spacing: -0.02em; }
.plan .price small { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.plan ul li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--text); margin: 0; }
.plan ul li svg { width: 18px; height: 18px; color: var(--success); flex-shrink: 0; margin-top: 2px; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; margin: 0 auto; }
details.q {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 18px; transition: border-color .15s var(--ease);
}
details.q[open] { border-color: var(--border-strong); }
details.q summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 600; color: var(--text); font-size: 15.5px; }
details.q summary::-webkit-details-marker { display: none; }
details.q summary::after {
  content: ""; flex-shrink: 0; width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .2s var(--ease);
}
details.q[open] summary::after { transform: rotate(180deg); }
details.q p { margin-top: 10px; margin-bottom: 0; }

/* Compliance / notes */
.notice {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: 12px; padding: 16px 18px; font-size: 14.5px; color: var(--text-muted);
}
.notice.warn { border-left-color: var(--warning); }
.notice strong { color: var(--text); }

/* CTA strip */
.cta-strip {
  background: linear-gradient(135deg, #0b1220 0%, #101a33 100%);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
  color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-strip::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px 200px at 90% 0%, rgba(255,122,26,0.25), transparent 60%);
  pointer-events: none;
}
.cta-strip h2 { color: #fff; margin: 0 0 6px; }
.cta-strip p { color: #b7bfd1; margin: 0; max-width: 520px; }
.cta-strip .btn-primary { box-shadow: 0 10px 20px rgba(0,0,0,0.25); }

/* Footer */
.footer { background: var(--bg-strong); color: #c7cedd; padding: 56px 0 28px; margin-top: 48px; }
.footer a { color: #c7cedd; }
.footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.08); }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .brand { color: #fff; }
.footer-brand p { color: #9aa3b8; font-size: 14px; margin: 12px 0 0; }
.footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: inherit; }
.footer ul li { margin: 0; }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 13px; color: #8892a6; }
.footer-bottom a { color: #8892a6; }

/* Breadcrumb + page header */
.page-head { padding: clamp(64px, 8vw, 96px) 0 clamp(24px, 3vw, 36px); background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.page-head h1 { font-size: clamp(28px, 3.5vw, 44px); }
.breadcrumb { font-size: 13px; color: var(--text-dim); margin-bottom: 12px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb span { margin: 0 6px; color: var(--border-strong); }

/* Long-form legal / content */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { margin-top: 1.6em; font-size: clamp(22px, 2.4vw, 28px); }
.prose h3 { margin-top: 1.4em; font-size: 18px; }
.prose p, .prose li { color: var(--text); font-size: 15.5px; line-height: 1.75; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose .toc { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; font-size: 14.5px; }
.prose .toc ul { margin: 0; padding-left: 1.1em; }
.prose .updated { font-size: 13px; color: var(--text-dim); margin-top: -8px; margin-bottom: 28px; }

/* Small utilities */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.hidden { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
