:root {
  --blue:     #1B56C8;
  --blue-d:   #1340A0;
  --blue-l:   #EBF1FB;
  --blue-m:   #378ADD;
  --green:    #0E7A47;
  --green-l:  #D1FAE5;
  --red:      #B91C1C;
  --red-l:    #FEE2E2;
  --amber:    #92400E;
  --amber-l:  #FEF3C7;
  --ink:      #0F172A;
  --ink-2:    #334155;
  --ink-3:    #64748B;
  --ink-4:    #94A3B8;
  --surface:  #FFFFFF;
  --surf-2:   #F8FAFC;
  --surf-3:   #F1F5F9;
  --border:   #E2E8F0;
  --border-2: #CBD5E1;
  --radius:   10px;
  --radius-l: 16px;
  --mono: 'JetBrains Mono', monospace;
  --font: 'Manrope', sans-serif;
  --nav-h: 60px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--surf-2);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: var(--mono);
  font-size: 12.5px;
  background: var(--surf-3);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--blue-d);
}
strong { font-weight: 700; }

/* ═══ SCROLLBAR ═══════════════════════════════ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }

/* ═══ ANIMATIONS ═════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll-triggered animation base */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grid children */
.animate-on-scroll.visible .card:nth-child(1),
.animate-on-scroll.visible .robot-card:nth-child(1) { animation: fadeInUp 0.5s ease-out 0.05s both; }
.animate-on-scroll.visible .card:nth-child(2),
.animate-on-scroll.visible .robot-card:nth-child(2) { animation: fadeInUp 0.5s ease-out 0.12s both; }
.animate-on-scroll.visible .card:nth-child(3),
.animate-on-scroll.visible .robot-card:nth-child(3) { animation: fadeInUp 0.5s ease-out 0.19s both; }
.animate-on-scroll.visible .card:nth-child(4),
.animate-on-scroll.visible .robot-card:nth-child(4) { animation: fadeInUp 0.5s ease-out 0.26s both; }
.animate-on-scroll.visible .card:nth-child(5),
.animate-on-scroll.visible .robot-card:nth-child(5) { animation: fadeInUp 0.5s ease-out 0.33s both; }
.animate-on-scroll.visible .card:nth-child(6),
.animate-on-scroll.visible .robot-card:nth-child(6) { animation: fadeInUp 0.5s ease-out 0.40s both; }

/* ═══ NAV ═════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 8px;
  animation: fadeInDown 0.5s ease-out;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 16px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -.3px;
  color: var(--ink);
  flex-shrink: 0;
}
.nav-logo-icon {
  width: 32px; height: 32px;
  background: var(--blue);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.nav-logo-icon:hover {
  transform: rotate(12deg) scale(1.1);
  box-shadow: 0 4px 12px rgba(27,86,200,.3);
}
.nav-logo-icon svg { width: 17px; height: 17px; }
.nav-links { display: flex; gap: 2px; flex: 1; }
.nav-btn {
  padding: 6px 13px;
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-3);
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s, color .15s, transform .1s;
  position: relative;
}
.nav-btn:hover { background: var(--surf-3); color: var(--ink); transform: translateY(-1px); }
.nav-btn.active { background: var(--blue-l); color: var(--blue-d); }
.nav-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--blue);
  border-radius: 1px;
}
.nav-cta {
  padding: 8px 18px;
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  background: var(--blue);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s, transform .15s, box-shadow .15s;
  margin-left: 8px;
  flex-shrink: 0;
}
.nav-cta:hover {
  background: var(--blue-d);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(27,86,200,.3);
}

/* ═══ VIEWS ═══════════════════════════════════ */
.view { display: none; }
.view.active { display: block; animation: fadeIn 0.35s ease-out; }

/* ═══ HERO ════════════════════════════════════ */
.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 80px 32px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 20%, rgba(27,86,200,.05) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 80%, rgba(55,138,221,.04) 0%, transparent 60%);
  pointer-events: none;
}
/* Animated background orbs */
.hero::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27,86,200,.06) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
}
.hero-inner { max-width: 680px; margin: 0 auto; position: relative; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  background: var(--blue-l);
  color: var(--blue-d);
  margin-bottom: 24px;
  letter-spacing: .02em;
  text-transform: uppercase;
  animation: scaleIn 0.5s ease-out 0.1s both;
}
.hero-badge svg { width: 12px; height: 12px; }
.hero h1 {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.04em;
  color: var(--ink);
  margin-bottom: 18px;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}
.hero h1 span {
  color: var(--blue);
  background: linear-gradient(135deg, var(--blue), var(--blue-m));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
}
.hero-sub {
  font-size: 17px;
  color: var(--ink-3);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.65;
  font-weight: 500;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}
.hero-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
  animation: fadeInUp 0.6s ease-out 0.4s both;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  font-family: var(--font); font-size: 14.5px; font-weight: 700;
  background: var(--blue); color: #fff;
  border: none; border-radius: var(--radius);
  cursor: pointer;
  transition: background .15s, transform .15s, box-shadow .15s;
  box-shadow: 0 2px 8px rgba(27,86,200,.3);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}
.btn-primary:hover { background: var(--blue-d); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(27,86,200,.35); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  font-family: var(--font); font-size: 14.5px; font-weight: 700;
  background: var(--surface); color: var(--ink);
  border: 1.5px solid var(--border-2); border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s;
}
.btn-secondary:hover { border-color: var(--blue-m); background: var(--blue-l); transform: translateY(-2px); }
.hero-stats {
  display: flex;
  gap: 0;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  background: var(--surface);
  overflow: hidden;
  max-width: 580px;
  margin: 0 auto;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  animation: fadeInUp 0.6s ease-out 0.55s both;
}
.hero-stat {
  flex: 1;
  padding: 20px 12px;
  text-align: center;
  border-right: 1px solid var(--border);
  transition: background 0.2s;
}
.hero-stat:last-child { border-right: none; }
.hero-stat:hover { background: var(--surf-2); }
.hero-stat-n {
  font-size: 30px; font-weight: 800; color: var(--blue); line-height: 1; letter-spacing: -.03em;
  animation: countUp 0.5s ease-out 0.7s both;
}
.hero-stat-l { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; font-weight: 600; }

/* ═══ PAGE WRAPPER ════════════════════════════ */
.page { max-width: 980px; margin: 0 auto; padding: 0 32px 100px; }

/* ═══ SECTION ═════════════════════════════════ */
.section { padding-top: 64px; }
.section-eyebrow {
  font-size: 11px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--blue);
  margin-bottom: 8px;
}
.section-title {
  font-size: 28px; font-weight: 800;
  letter-spacing: -.03em; color: var(--ink);
  margin-bottom: 10px; line-height: 1.2;
}
.section-sub {
  font-size: 15.5px; color: var(--ink-3); font-weight: 500;
  max-width: 560px; line-height: 1.65; margin-bottom: 36px;
}

/* ═══ GRID ════════════════════════════════════ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media(max-width:700px){
  .grid-2,.grid-3,.grid-4,.hero-stats { grid-template-columns:1fr; }
  .hero-stats { flex-direction:column; }
  .nav-links { display:none; }
  .hero h1 { font-size:32px; }
}

/* ═══ CARD ════════════════════════════════════ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 22px 24px;
  transition: border-color .2s, box-shadow .2s, transform .25s;
}
.card:hover {
  border-color: #BDD0F0;
  box-shadow: 0 8px 30px rgba(27,86,200,.1);
  transform: translateY(-4px);
}
.feat-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--blue-l);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.3s ease;
}
.card:hover .feat-icon {
  transform: scale(1.1) rotate(-5deg);
  background: var(--blue);
}
.card:hover .feat-icon svg { color: #fff; }
.feat-icon svg { width: 20px; height: 20px; color: var(--blue); transition: color 0.3s ease; }
.feat-title { font-size: 14.5px; font-weight: 800; color: var(--ink); margin-bottom: 6px; letter-spacing: -.01em; }
.feat-text { font-size: 13.5px; color: var(--ink-3); line-height: 1.6; font-weight: 500; }

/* ═══ TESTS GRID ══════════════════════════════ */
.test-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media(max-width:640px){ .test-grid { grid-template-columns: repeat(2, 1fr); } }
.test-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s, box-shadow .15s;
}
.test-card:hover { border-color: var(--blue-m); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(27,86,200,.08); }
.test-card.sel { border-color: var(--blue); background: var(--blue-l); }
.test-card-name { font-size: 13px; font-weight: 800; color: var(--ink); margin-bottom: 3px; }
.test-card-desc { font-size: 11.5px; color: var(--ink-3); line-height: 1.45; font-weight: 500; }

/* ═══ WIDGET PREVIEW ══════════════════════════ */
.widget-stage {
  background: var(--surf-3);
  border-radius: var(--radius-l);
  border: 1px solid var(--border);
  padding: 32px;
  display: flex; align-items: center; justify-content: center;
  margin-top: 20px; min-height: 180px;
  transition: all .2s;
}
.lc-widget {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-l);
  padding: 22px 28px;
  min-width: 280px; max-width: 360px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: all .3s ease;
  animation: scaleIn 0.4s ease-out;
}
.lc-widget-head { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 10px; }
.lc-widget-task {
  font-size: 13.5px; color: var(--ink-2); font-weight: 600; margin-bottom: 16px; min-height: 22px;
  transition: opacity 0.2s;
}
.lc-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 20px;
  background: var(--blue); color: #fff;
  border: none; border-radius: 9px;
  font-family: var(--font); font-size: 14px; font-weight: 700;
  cursor: pointer;
  transition: background .15s, transform .1s, box-shadow .15s;
  position: relative;
  overflow: hidden;
}
.lc-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
  background-size: 200% 100%;
  animation: shimmer 2.5s ease-in-out infinite;
}
.lc-btn:hover { background: var(--blue-d); transform: scale(1.02); box-shadow: 0 4px 16px rgba(27,86,200,.25); }
.lc-caption { font-size: 11px; color: var(--ink-4); margin-top: 10px; line-height: 1.5; font-weight: 500; }

/* ═══ ROBOTS ══════════════════════════════════ */
.robot-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.robot-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 20px 16px;
  text-align: center;
  flex: 1; min-width: 130px;
  transition: border-color .2s, transform .25s, box-shadow .2s;
}
.robot-card:hover {
  border-color: var(--blue-m);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(27,86,200,.1);
}
.robot-emoji {
  font-size: 30px; margin-bottom: 10px; display: block;
  transition: transform 0.3s ease;
}
.robot-card:hover .robot-emoji {
  transform: scale(1.25);
  animation: float 2s ease-in-out infinite;
}
.robot-name { font-size: 13px; font-weight: 800; color: var(--ink); }
.robot-niche { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; font-weight: 500; }

/* ═══ COMPARE TABLE ═══════════════════════════ */
.compare-wrap { overflow-x: auto; margin-top: 16px; border-radius: var(--radius-l); border: 1px solid var(--border); }
.compare-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 580px; }
.compare-table th {
  background: var(--surf-2);
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em;
  color: var(--ink-3); padding: 12px 16px; text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.compare-table th.hl { background: var(--blue-l); color: var(--blue-d); }
.compare-table td { padding: 10px 16px; border-bottom: 1px solid #F1F5F9; color: var(--ink-3); vertical-align: middle; transition: background 0.15s; }
.compare-table tr:hover td { background: var(--surf-2); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td:first-child { font-weight: 600; color: var(--ink-2); }
.compare-table td.hl { background: rgba(235,241,251,.5); font-weight: 700; }
.compare-table tr:hover td.hl { background: rgba(235,241,251,.8); }
.ok { color: var(--green); font-weight: 700; }
.no { color: var(--red); }
.warn { color: #D97706; }

/* ═══ CTA BLOCK ═══════════════════════════════ */
.cta-block {
  background: linear-gradient(135deg, #1340A0 0%, #1B56C8 50%, #378ADD 100%);
  background-size: 200% 200%;
  border-radius: var(--radius-l);
  padding: 48px 40px;
  text-align: center;
  margin-top: 64px;
  position: relative;
  overflow: hidden;
  animation: gradientShift 6s ease infinite;
}
.cta-block::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 70% 50%, rgba(255,255,255,.07) 0%, transparent 60%);
}
/* Decorative floating circles */
.cta-block::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.1);
  bottom: -60px;
  left: -40px;
  animation: float 5s ease-in-out infinite;
  pointer-events: none;
}
.cta-block h2 { font-size: 26px; font-weight: 800; color: #fff; margin-bottom: 10px; letter-spacing: -.02em; position: relative; }
.cta-block p { font-size: 15px; color: rgba(255,255,255,.75); margin-bottom: 28px; font-weight: 500; position: relative; }
.cta-block .hero-btns { margin-bottom: 0; position: relative; animation: none; }
.cta-block .btn-secondary { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.3); }
.cta-block .btn-secondary:hover { background: rgba(255,255,255,.2); }

/* ═══ STEPS ═══════════════════════════════════ */
.steps { display: flex; flex-direction: column; gap: 0; }
.step { display: flex; gap: 18px; padding-bottom: 28px; }
.step:last-child { padding-bottom: 0; }
.step-left { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.step-num {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--blue); color: #fff;
  font-size: 14px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.step:hover .step-num {
  transform: scale(1.15);
  box-shadow: 0 4px 14px rgba(27,86,200,.3);
}
.step-line { width: 1px; flex: 1; background: var(--border-2); margin-top: 8px; }
.step:last-child .step-line { display: none; }
.step-body { flex: 1; padding-top: 4px; }
.step-body h4 { font-size: 14.5px; font-weight: 800; color: var(--ink); margin-bottom: 5px; }
.step-body p { font-size: 13.5px; color: var(--ink-3); line-height: 1.6; font-weight: 500; }

/* ═══ CODE ════════════════════════════════════ */
.code-block {
  background: #0F172A;
  color: #E2E8F0;
  border-radius: var(--radius);
  padding: 18px 22px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  overflow-x: auto;
  margin: 12px 0 20px;
  border: 1px solid #1E293B;
  transition: border-color 0.2s;
}
.code-block:hover { border-color: #334155; }
.hl-kw  { color: #93C5FD; }
.hl-str { color: #86EFAC; }
.hl-fn  { color: #C4B5FD; }
.hl-cm  { color: #475569; font-style: italic; }
.hl-ret { color: #6EE7B7; }
.hl-num { color: #FCD34D; }

/* ═══ CALLOUT ═════════════════════════════════ */
.callout {
  display: flex; gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius);
  margin: 14px 0;
  align-items: flex-start;
  transition: transform 0.2s;
}
.callout:hover { transform: translateX(4px); }
.callout-icon { flex-shrink: 0; margin-top: 1px; }
.callout-icon svg { width: 16px; height: 16px; }
.callout p { font-size: 13.5px; line-height: 1.6; font-weight: 500; margin: 0; }
.callout.info  { background: var(--blue-l); color: var(--blue-d); }
.callout.ok    { background: var(--green-l); color: var(--green); }
.callout.warn  { background: var(--amber-l); color: var(--amber); }

/* ═══ DOCS LAYOUT ═════════════════════════════ */
.docs-layout {
  display: flex; gap: 28px; align-items: flex-start; padding-top: 36px;
}
.docs-sidebar {
  width: 210px; flex-shrink: 0;
  position: sticky; top: calc(var(--nav-h) + 16px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 10px 0 14px;
}
.docs-nav-group {
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em;
  color: var(--ink-4); padding: 10px 16px 4px;
}
.docs-nav-link {
  display: block; padding: 6px 16px;
  font-size: 13px; font-weight: 600; color: var(--ink-3);
  cursor: pointer; border-left: 2px solid transparent;
  transition: all .15s;
}
.docs-nav-link:hover { background: var(--surf-2); color: var(--ink); padding-left: 20px; }
.docs-nav-link.active { background: var(--blue-l); color: var(--blue-d); border-left-color: var(--blue); }
.docs-content { flex: 1; min-width: 0; }
.docs-section { display: none; }
.docs-section.active { display: block; animation: fadeIn 0.3s ease-out; }
.docs-section h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; color: var(--ink); }
.docs-section h3 { font-size: 15px; font-weight: 800; margin: 28px 0 10px; color: var(--blue-d); letter-spacing: -.01em; }
.docs-section p { font-size: 14px; color: var(--ink-3); line-height: 1.7; margin-bottom: 10px; font-weight: 500; }
.docs-section ul, .docs-section ol { padding-left: 20px; margin-bottom: 12px; }
.docs-section li { font-size: 13.5px; color: var(--ink-3); line-height: 1.6; margin-bottom: 5px; font-weight: 500; }

/* ═══ SETTING CARD ════════════════════════════ */
.setting-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 8px 0;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.setting-card:hover {
  border-color: var(--border-2);
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.setting-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.setting-name {
  font-family: var(--mono); font-size: 12px;
  background: var(--blue-l); color: var(--blue-d);
  padding: 2px 8px; border-radius: 5px; font-weight: 500;
}
.tag {
  font-size: 10.5px; font-weight: 700; background: var(--surf-3);
  color: var(--ink-3); padding: 2px 8px; border-radius: 20px;
  border: 1px solid var(--border);
}
.setting-label { font-size: 13.5px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.setting-desc { font-size: 12.5px; color: var(--ink-3); line-height: 1.6; font-weight: 500; }

/* ═══ METHOD ══════════════════════════════════ */
.method { border-bottom: 1px solid var(--border); padding: 14px 0; }
.method:last-child { border-bottom: none; }
.method-sig {
  font-family: var(--mono); font-size: 12.5px;
  background: var(--surf-3); padding: 10px 14px;
  border-radius: var(--radius); margin-bottom: 8px;
  border: 1px solid var(--border);
  overflow-x: auto;
  transition: border-color 0.2s, background 0.2s;
}
.method-sig:hover { border-color: var(--blue-m); background: var(--blue-l); }
.method p { font-size: 13px; color: var(--ink-3); margin: 0; font-weight: 500; }

/* ═══ FAQ ═════════════════════════════════════ */
.faq-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 22px; cursor: pointer; font-size: 14.5px; font-weight: 700; color: var(--ink);
  background: none; border: none; width: 100%; text-align: left; font-family: var(--font);
  transition: background .15s, padding-left .15s;
}
.faq-q:hover { background: var(--surf-2); padding-left: 28px; }
.faq-icon { font-size: 18px; color: var(--ink-4); transition: transform .25s, color .25s; flex-shrink: 0; line-height: 1; }
.faq-icon.open { transform: rotate(45deg); color: var(--blue); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  padding: 0 22px;
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.7;
  font-weight: 500;
  transition: max-height 0.35s ease, padding 0.35s ease, opacity 0.25s ease;
  opacity: 0;
}
.faq-a.open {
  max-height: 300px;
  padding: 0 22px 18px;
  opacity: 1;
}

/* ═══ PAGE HEADER ═════════════════════════════ */
.page-header {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 40px 32px 32px;
}
.page-header-inner { max-width: 980px; margin: 0 auto; }
.page-header .section-eyebrow { margin-bottom: 6px; }
.page-header h1 {
  font-size: 28px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 8px;
  animation: fadeInUp 0.4s ease-out;
}
.page-header p { font-size: 15px; color: var(--ink-3); font-weight: 500; animation: fadeInUp 0.4s ease-out 0.1s both; }

/* ═══ BADGE ═══════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; padding: 3px 10px;
  border-radius: 20px;
}
.badge-info { background: var(--blue-l); color: var(--blue-d); }
.badge-ok   { background: var(--green-l); color: var(--green); }
.badge-warn { background: var(--amber-l); color: var(--amber); }

/* ═══ INLINE LAYOUT ═══════════════════════════ */
.inline-flex { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }

/* ═══ FOOTER ══════════════════════════════════ */
.footer {
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 28px 32px; text-align: center;
  font-size: 13px; color: var(--ink-4); font-weight: 500;
}
.footer a { color: var(--blue); transition: color 0.2s; }
.footer a:hover { color: var(--blue-d); }

/* ═══ PAGE MODIFIERS ═════════════════════════ */
.page--pt40 { padding-top: 40px; }
.page--faq  { padding-top: 40px; max-width: 760px; }

/* ═══ INSTALL-SPECIFIC ═══════════════════════ */
.install-methods { margin-bottom: 40px; }
.install-methods .inline-flex { margin-bottom: 10px; }

.card--highlight {
  border-color: var(--blue-m);
  border-width: 1.5px;
}

.feat-title--lg { font-size: 16px; }
.feat-text--mt  { margin-top: 6px; }
.feat-text--mt-sm { margin-top: 5px; }

.callout--mt { margin-top: 24px; }

.page-subtitle {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 24px;
}
.page-subtitle--gap {
  margin: 40px 0 24px;
}
.page-subtitle--gap-sm {
  margin: 40px 0 16px;
}

/* ═══ ADMIN / DOCS UTILITY ═══════════════════ */
.setting-path {
  margin: 4px 0;
}
.setting-priority {
  margin: 4px 0 6px;
}

/* ═══ ERROR TABLE ═════════════════════════════ */
.error-table {
  width: 100%;
  font-size: 13px;
  border-collapse: collapse;
  margin-top: 8px;
}
.error-table thead tr { background: var(--surf-3); }
.error-table th {
  padding: 8px 12px;
  text-align: left;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-3);
  border-bottom: 1px solid var(--border);
}
.error-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--ink-3);
}
.error-table tr:last-child td { border-bottom: none; }
.error-table td:first-child {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--blue-d);
}

/* ═══ COMPARE TABLE WIDTHS ═══════════════════ */
.compare-table .col-feature { width: 36%; }
.compare-table .col-smart   { width: 21%; }
.compare-table .col-google  { width: 21%; }
.compare-table .col-yandex  { width: 22%; }
