/* ============================================================
   SEO/GEO/AEO Analyzer — landing styles
   Mobile-first, BEM, токены через CSS-переменные.
   ============================================================ */

@layer reset, base, layout, components, utilities;

/* -------- 1. Reset (минимальный) -------- */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; padding: 0; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
  img, video, svg { display: block; max-width: 100%; height: auto; }
  button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
  a { color: inherit; text-decoration: none; }
  ul, ol { list-style: none; }
  summary { cursor: pointer; }
  summary::-webkit-details-marker { display: none; }
  details > summary { list-style: none; }
}

/* -------- 2. Tokens & base -------- */
@layer base {
  :root {
    /* Focus Indigo — основная палитра */
    --bg: #FFFFFF;
    --bg-soft: #F8F9FE;
    --bg-tint: #EEF0FF;
    --surface: #FFFFFF;

    --accent: #6366F1;
    --accent-hover: #4F46E5;
    --accent-soft: #EEF0FF;
    --accent-rgb: 99, 102, 241;

    --ink: #0A0A0F;
    --ink-2: #1F1F2E;
    --text: #4B5563;
    --text-muted: #8B8FA3;

    --border: #E5E7EB;
    --border-soft: #F1F2F8;

    --ok: #10B981;
    --ok-soft: #D1FAE5;
    --warn: #F59E0B;
    --warn-soft: #FEF3C7;
    --fail: #EF4444;
    --fail-soft: #FEE2E2;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.06);
    --shadow-mockup: 0 6px 12px rgba(15, 23, 42, 0.05), 0 24px 60px rgba(40, 24, 120, 0.16);
    --shadow-cta: 0 6px 18px rgba(99, 102, 241, 0.32);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --radius-pill: 999px;

    --container-max: 1200px;

    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;
  }

  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }

  body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--bg);
    font-feature-settings: 'cv11', 'ss01';
  }

  ::selection { background: var(--accent); color: #fff; }

  :focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
  }

  .mono { font-family: var(--font-mono); font-feature-settings: 'tnum'; }

  code.mono {
    background: var(--bg-tint);
    color: var(--accent-hover);
    padding: 0.1em 0.42em;
    border-radius: 4px;
    font-size: 0.9em;
  }
}

/* -------- 3. Layout helpers -------- */
@layer layout {
  .container {
    width: min(100% - 2rem, var(--container-max));
    margin-inline: auto;
  }

  main > section { padding-block: 64px; }
  @media (min-width: 768px) {
    main > section { padding-block: 96px; }
  }
  @media (min-width: 1024px) {
    main > section { padding-block: 120px; }
  }

  .skip-link {
    position: absolute;
    top: -100px;
    left: 12px;
    z-index: 1000;
    background: var(--accent);
    color: #fff;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: top 0.2s ease;
  }
  .skip-link:focus { top: 12px; }
}

/* -------- 4. Section heading -------- */
.section-heading {
  text-align: center;
  margin-inline: auto;
  margin-bottom: 48px;
  max-width: 760px;
}
@media (min-width: 768px) { .section-heading { margin-bottom: 64px; } }

.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-eyebrow--inverse { color: rgba(255, 255, 255, 0.7); }

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 16px;
}
.section-title--inverse { color: #fff; }

.section-subtitle {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.6;
  color: var(--text);
  max-width: 620px;
  margin-inline: auto;
}

/* -------- 5. Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  line-height: 1;
}
.btn--sm { padding: 10px 16px; font-size: 14px; }
.btn--xs { padding: 6px 10px; font-size: 12px; }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-cta);
}
.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(99, 102, 241, 0.42);
}

.btn--secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn--secondary:hover {
  background: var(--bg-soft);
  border-color: #d4d7e1;
}

.btn--white {
  background: #fff;
  color: var(--ink);
}
.btn--white:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,0.18); }

.btn--ghost-inverse {
  color: #fff;
  border: 1px solid rgba(255,255,255,0.22);
}
.btn--ghost-inverse:hover { background: rgba(255,255,255,0.08); }

.btn--ghost {
  background: var(--bg-tint);
  color: var(--accent);
  border: 1px solid transparent;
}
.btn--ghost:hover { background: #e0e3ff; }

/* -------- 6. Header -------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.site-header[data-scrolled] {
  border-bottom-color: var(--border-soft);
  background: rgba(255, 255, 255, 0.92);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-size: 15px;
}
.logo__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #6366F1, #8b5cf6);
  color: #fff;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.32);
}
.logo__text { white-space: nowrap; }

.main-nav__list {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  transition: color 0.18s;
}
.main-nav a:hover { color: var(--ink); }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  color: var(--ink);
}

@media (max-width: 1023px) {
  .main-nav { display: none; }
  .site-header__cta { display: none; }
}
@media (min-width: 1024px) {
  .menu-toggle { display: none; }
}

/* Mobile drawer */
.main-nav[data-open] {
  display: block;
  position: absolute;
  inset: 68px 12px auto 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-card);
}
.main-nav[data-open] .main-nav__list {
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

/* -------- 7. Eyebrow pill -------- */
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-tint);
  border: 1px solid #d8dcff;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-hover);
  margin-bottom: 22px;
}
.eyebrow-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.14);
}

/* -------- 8. Hero -------- */
.hero {
  position: relative;
  padding-top: 56px !important;
  padding-bottom: 48px !important;
  text-align: center;
  overflow: hidden;
}
@media (min-width: 768px) {
  .hero { padding-top: 80px !important; padding-bottom: 80px !important; }
}

.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1100px 600px at 50% -10%, rgba(99, 102, 241, 0.12), transparent 60%),
    linear-gradient(to right, rgba(15,23,42,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15,23,42,0.04) 1px, transparent 1px);
  background-size: auto, 64px 64px, 64px 64px;
  mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.hero__content { position: relative; z-index: 1; }

.hero__title {
  font-size: clamp(34px, 5.6vw, 68px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--ink);
  max-width: 1040px;
  margin: 0 auto 22px;
}
.hero__title .accent {
  background: linear-gradient(120deg, #6366F1 20%, #A78BFA 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--text);
  max-width: 660px;
  margin: 0 auto 30px;
}

.hero__cta-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.hero__rating {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 56px;
  font-size: 14px;
  color: var(--text);
}
.hero__rating-text { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.hero__stars { color: #f59e0b; letter-spacing: 1px; }

.avatar-stack {
  display: flex;
  align-items: center;
}
.avatar-stack__item {
  width: 30px; height: 30px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: var(--avatar-bg, #ddd);
  color: var(--avatar-fg, #333);
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: -10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.avatar-stack__item:first-child { margin-left: 0; }

/* Hero mockup wrapper */
.hero__mockup {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 0 40px;
}

/* Floating cards */
.floating-card {
  position: absolute;
  z-index: 3;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  box-shadow: 0 6px 14px rgba(15,23,42,0.05), 0 18px 40px rgba(40,24,120,0.12);
  min-width: 200px;
  border: 1px solid rgba(15, 23, 42, 0.04);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.floating-card--1 { top: 36px; left: -8px; transform: rotate(-3deg); }
.floating-card--2 { top: 8%; right: -16px; transform: rotate(2.4deg); }
.floating-card--3 { bottom: 22%; left: -28px; transform: rotate(2.8deg); }
.floating-card--4 { bottom: 14%; right: -8px; transform: rotate(-2.2deg); }

.floating-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}
.floating-card__eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.floating-card__title { font-size: 13px; }
.floating-card__body {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.floating-card__body--score { align-items: flex-end; }
.floating-card__big {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.floating-card__big--sm { font-size: 24px; }
.floating-card__delta {
  font-size: 11px;
  color: var(--ok);
  font-weight: 600;
}
.floating-card__hint {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

.bars {
  display: flex;
  gap: 5px;
  align-items: flex-end;
  height: 32px;
  margin-top: 4px;
}
.bars__bar {
  width: 8px;
  height: var(--h, 50%);
  background: #E5E7EB;
  border-radius: 2px;
}
.bars__bar--accent { background: var(--accent); }

.dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block;
}
.dot--ok { background: var(--ok); box-shadow: 0 0 0 3px rgba(16,185,129,0.18); }
.dot--warn { background: var(--warn); box-shadow: 0 0 0 3px rgba(245,158,11,0.18); }
.dot--fail { background: var(--fail); box-shadow: 0 0 0 3px rgba(239,68,68,0.18); }

/* On small screens, hide the floating cards (mockup remains) */
@media (max-width: 767px) {
  .floating-card { display: none; }
}

/* -------- Mock panel (DevTools side panel) -------- */
.mock-panel {
  position: relative;
  z-index: 2;
  background: #FBFBFE;
  border: 1px solid #E5E7F0;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-mockup);
  overflow: hidden;
  text-align: left;
  max-width: 760px;
  margin: 0 auto;
}

.mock-panel__chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #f3f3f8;
  border-bottom: 1px solid var(--border-soft);
}
.mock-panel__dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--c, #ddd);
}
.mock-panel__addr {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 8px;
  background: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid #e9ebf2;
}

.mock-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-soft);
  background: #fff;
}
.mock-panel__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.mock-panel__brand-mark {
  width: 24px; height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: linear-gradient(135deg, #6366F1, #8b5cf6);
  color: #fff;
}
.mock-panel__head-actions { display: flex; align-items: center; gap: 8px; }
.mock-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ok-soft);
  color: #047857;
  letter-spacing: 0.02em;
}
.mock-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 13px;
}

.mock-panel__tabs {
  display: flex;
  gap: 2px;
  padding: 0 12px;
  background: #fff;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--border-soft);
  -webkit-mask-image: linear-gradient(to right, #000 92%, transparent 100%);
  mask-image: linear-gradient(to right, #000 92%, transparent 100%);
}
.mock-panel__tabs::-webkit-scrollbar { display: none; }
.mock-tab {
  font-size: 11px;
  font-weight: 500;
  padding: 10px 12px;
  color: var(--text-muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.mock-tab--active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.mock-panel__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg-soft);
}

.mock-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.mock-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}
.mock-card__eyebrow {
  font-size: 10px;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}
.mock-card__hint {
  font-size: 11px;
  color: var(--text-muted);
}

.mock-score {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}
.mock-score__num {
  font-family: var(--font-mono);
  font-size: 44px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
}
.mock-score__meta { display: flex; flex-direction: column; gap: 4px; }
.mock-grade {
  display: inline-block;
  width: max-content;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
}
.mock-delta {
  font-size: 11px;
  color: var(--ok);
  font-weight: 600;
}
.mock-score__ring { display: flex; }

.mock-rows {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.mock-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px 14px;
  font-size: 12px;
  border-bottom: 1px solid var(--border-soft);
}
.mock-row:last-child { border-bottom: 0; }
.mock-row__key {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.mock-row__val {
  color: var(--ink);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Status pills */
.status {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.status--pass { background: var(--ok-soft); color: #047857; }
.status--warn { background: var(--warn-soft); color: #92400e; }
.status--fail { background: var(--fail-soft); color: #b91c1c; }
.status--info { background: var(--bg-tint); color: var(--accent-hover); }

/* -------- 9. Trust bar -------- */
.trust { padding-block: 56px !important; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); background: #fff; }
.trust__label {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.trust__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 28px;
}
.trust__list li {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
}

/* -------- 10. Stats -------- */
.stats__box {
  background: linear-gradient(135deg, #0a0a0f 0%, #1f1f2e 100%);
  border-radius: var(--radius-xl);
  padding: 36px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  position: relative;
  overflow: hidden;
}
.stats__box::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 200px at 80% 0%, rgba(99,102,241,0.28), transparent 60%);
  pointer-events: none;
}
@media (min-width: 768px) {
  .stats__box {
    grid-template-columns: repeat(4, 1fr);
    padding: 56px 32px;
    gap: 24px;
  }
}
.stats__item {
  position: relative;
  z-index: 1;
  text-align: left;
  border-left: 1px solid rgba(255,255,255,0.08);
  padding-left: 16px;
}
.stats__item:first-child { border-left: 0; padding-left: 0; }
@media (max-width: 767px) {
  .stats__item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stats__item:nth-child(3) { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; border-left: 0; padding-left: 0; }
  .stats__item:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; }
}
.stats__num {
  font-family: var(--font-mono);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 6px;
}
.stats__num span {
  font-size: 0.5em;
  color: var(--accent);
  font-weight: 600;
}
.stats__label {
  font-size: 13px;
  color: rgba(255,255,255,0.72);
  line-height: 1.45;
}

/* -------- 11. Pillars -------- */
.pillars { background: var(--bg); }
.pillars__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) { .pillars__grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.pillar {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.pillar:hover {
  transform: translateY(-2px);
  border-color: #d4d7e1;
  box-shadow: var(--shadow-card);
}
.pillar--featured {
  border-color: var(--accent);
  background: linear-gradient(160deg, #fff 0%, #f5f5ff 100%);
  box-shadow: 0 12px 40px rgba(99,102,241,0.12);
}
.pillar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pillar__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-tint);
  color: var(--accent-hover);
  letter-spacing: 0.04em;
}
.pillar__tag--accent { background: var(--accent); color: #fff; }
.pillar__count {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}
.pillar__title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.2;
}
.pillar__text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}
.pillar__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  font-size: 13px;
  color: var(--text);
}
.pillar__list li {
  position: relative;
  padding-left: 18px;
}
.pillar__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* -------- 12. Feature blocks -------- */
.feat-block { background: var(--bg-soft); }
.feat-block:nth-of-type(even) { background: var(--bg); }

.feat-block__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 1024px) {
  .feat-block__inner {
    grid-template-columns: 1fr 1.05fr;
    gap: 80px;
  }
  .feat-block--reverse .feat-block__visual { order: -1; }
}

.feat-block__text .section-title { text-align: left; max-width: 540px; }
.feat-block__text .section-eyebrow { display: inline-block; }
.feat-block__lead {
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 22px;
  max-width: 540px;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.5;
}
.check-list svg {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}

/* Crawler card visual */
.crawler-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.crawler-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.crawler-card__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}
.crawler-card__row {
  display: grid;
  grid-template-columns: 110px 1fr 76px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.crawler-card__row--inline {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
}
.crawler-card__row--inline strong { color: var(--ink); font-weight: 600; }
.crawler-card__key {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.crawler-card__bar {
  height: 8px;
  background: var(--bg-soft);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.bar {
  display: block;
  height: 100%;
  width: var(--w, 50%);
  background: var(--accent);
  border-radius: 999px;
}
.bar--ok { background: var(--ok); }
.bar--warn { background: var(--warn); }
.crawler-card__val {
  text-align: right;
  font-size: 12px;
  color: var(--ink);
}
.crawler-card__divider {
  height: 1px;
  background: var(--border-soft);
  margin: 6px 0;
}

/* Diff card */
.diff-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.diff-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 6px;
}
.diff-card__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}
.diff-card__url {
  font-size: 12px;
  color: var(--ink);
}
.diff-row {
  display: grid;
  grid-template-columns: 16px 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 6px 0;
  font-size: 13px;
}
.diff-arrow { color: var(--ok); font-size: 11px; }
.diff-arrow--down { color: var(--warn); }
.diff-key { color: var(--ink); font-weight: 500; }
.diff-from { opacity: 0.7; }
.diff-card__footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-soft);
  padding-top: 12px;
  margin-top: 4px;
  font-size: 13px;
  color: var(--text);
}
.diff-card__footer .mono { color: var(--ok); font-weight: 600; }

/* -------- 13. Tiers grid -------- */
.tiers { background: var(--bg-soft); }
.tiers__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
  grid-auto-rows: 1fr;
}
@media (min-width: 640px) { .tiers__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tiers__grid { grid-template-columns: repeat(3, 1fr); } }

.tier {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tier__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
}
.tier__badge {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
}
.tier--s .tier__badge { background: linear-gradient(135deg, #ef4444, #f97316); }
.tier--a .tier__badge { background: linear-gradient(135deg, #6366F1, #8b5cf6); }
.tier--b .tier__badge { background: linear-gradient(135deg, #0ea5e9, #6366F1); }
.tier--c .tier__badge { background: linear-gradient(135deg, #10b981, #059669); }
.tier--d .tier__badge { background: linear-gradient(135deg, #64748b, #334155); }
.tier__head-text { display: flex; flex-direction: column; }
.tier__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.tier__weight {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}
.tier__count {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-muted);
}
.tier__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-2);
}
.tier > .tier__list { flex: 1 1 auto; }
.tier__more {
  margin-top: auto;
  border-top: 1px dashed var(--border-soft);
  padding-top: 12px;
}
.tier__more[open] { padding-bottom: 2px; }
.tier__more-summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  user-select: none;
  outline: none;
  border-radius: 6px;
  padding: 2px 4px;
  margin-left: -4px;
  transition: color .2s ease;
}
.tier__more-summary:hover { color: var(--accent-hover); }
.tier__more-summary:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.tier__more-summary::-webkit-details-marker { display: none; }
.tier__more-summary::after {
  content: '';
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s ease;
  margin-top: -3px;
}
.tier__more[open] .tier__more-summary::after {
  transform: rotate(-135deg);
  margin-top: 2px;
}
.tier__list--more {
  margin-top: 12px;
  animation: tierMoreFade .25s ease;
}
@keyframes tierMoreFade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.tier__list li {
  display: flex;
  gap: 10px;
  align-items: center;
  line-height: 1.4;
}
.tier__weight-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  background: var(--bg-tint);
  color: var(--accent-hover);
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0;
  min-width: 26px;
  text-align: center;
}
.tier--s .tier__list li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--fail);
  flex-shrink: 0;
}
.tier--a .tier__list li::before, .tier--b .tier__list li::before, .tier--c .tier__list li::before, .tier--d .tier__list li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  opacity: 0.55;
}

.tier--cta {
  background: linear-gradient(160deg, #1f1f2e 0%, #0a0a0f 100%);
  color: #fff;
  border: 0;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.tier--cta::after {
  content: '';
  position: absolute;
  inset: -50% -50% auto auto;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(99,102,241,0.4), transparent 70%);
  filter: blur(20px);
}
.tier-cta__lead {
  position: relative;
  z-index: 1;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: #fff;
}
.tier-cta__text {
  position: relative;
  z-index: 1;
  font-size: 14px;
  color: rgba(255,255,255,0.72);
  line-height: 1.55;
}
.tier-cta__lead + .tier-cta__text { margin-top: -4px; }

/* -------- 14. Steps -------- */
.how { background: var(--bg); }
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  counter-reset: step;
}
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
.step {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.step:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.step__num {
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366F1, #8b5cf6);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(99,102,241,0.32);
}
.step__title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.step__text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}
.step__visual {
  margin-top: auto;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  padding: 14px;
}
.step-mock {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--ink);
}
.step-mock__icon {
  width: 26px; height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
}
.step-mock__line { font-size: 12px; color: var(--text); }
.step-mock__line--mono { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
.step-mock__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.step-mock__row .status + .status { margin-left: 6px; }
.step-mock__row .status:first-child { margin-left: 0; }
.step-mock__key { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.step-mock--code { background: #0a0a0f; color: #d4d4e1; border-color: #1f1f2e; }
.step-mock--code .step-mock__line { color: #c8c8d8; }

/* -------- 15. Privacy -------- */
.privacy {
  background: linear-gradient(160deg, #0a0a0f 0%, #1f1f2e 70%, #2d2a4d 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.privacy::before {
  content: '';
  position: absolute;
  inset: -10% -10% auto auto;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(99,102,241,0.4), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.privacy__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}
@media (min-width: 1024px) {
  .privacy__inner { grid-template-columns: 1fr 1.15fr; gap: 80px; }
}

.privacy__text .section-title { text-align: left; }
.privacy__lead {
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.65;
  color: rgba(255,255,255,0.78);
  margin-bottom: 26px;
  max-width: 480px;
}
.privacy__lead .mono {
  background: rgba(255,255,255,0.08);
  color: #c4c8ff;
  padding: 0.1em 0.4em;
  border-radius: 4px;
}

.privacy__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.privacy__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  transition: background 0.2s, border-color 0.2s;
}
.privacy__item:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255,255,255,0.14); }
.privacy__icon {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.18);
  color: #c4c8ff;
}
.privacy__h {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #fff;
}
.privacy__item p {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255,255,255,0.72);
}
.privacy__item p .mono {
  background: rgba(255,255,255,0.08);
  color: #c4c8ff;
  padding: 0.05em 0.35em;
  border-radius: 4px;
  font-size: 0.92em;
}

/* -------- 16. Use cases -------- */
.usecases { background: var(--bg-soft); }
.usecases__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 768px) { .usecases__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .usecases__grid { grid-template-columns: repeat(3, 1fr); } }

.usecase {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.usecase:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.usecase__role {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.usecase__title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
}
.usecase p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}
.usecase p .mono {
  background: var(--bg-tint);
  color: var(--accent-hover);
  padding: 0.05em 0.35em;
  border-radius: 4px;
  font-size: 0.9em;
}

/* -------- 17. FAQ -------- */
.faq { background: var(--bg); }
.faq__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
@media (min-width: 1024px) {
  .faq__inner { grid-template-columns: 0.85fr 1.4fr; gap: 64px; }
}
.faq__lead .section-title { text-align: left; max-width: 320px; margin-bottom: 14px; }
.faq__subtitle { text-align: left; margin-left: 0; max-width: 320px; margin-bottom: 22px; }

.faq__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}
.faq-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-tint);
  color: var(--accent);
  font-size: 18px;
  font-weight: 600;
  flex-shrink: 0;
  transition: transform 0.2s, background 0.2s;
}
.faq-item[open] .faq-item__icon {
  transform: rotate(45deg);
  background: var(--accent);
  color: #fff;
}
.faq-item__a {
  padding: 0 4px 22px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  max-width: 720px;
}
.faq-item__a .mono {
  background: var(--bg-tint);
  color: var(--accent-hover);
  padding: 0.1em 0.42em;
  border-radius: 4px;
  font-size: 0.92em;
}

/* -------- 18. Final CTA -------- */
.final-cta { background: var(--bg); }
.final-cta__box {
  background: linear-gradient(135deg, #1f1f2e 0%, #312e81 60%, #4338ca 100%);
  border-radius: var(--radius-xl);
  padding: 56px 28px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.final-cta__box::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(800px 300px at 20% 0%, rgba(167,139,250,0.4), transparent 60%),
    radial-gradient(600px 300px at 80% 100%, rgba(99,102,241,0.5), transparent 60%);
  pointer-events: none;
}
@media (min-width: 768px) { .final-cta__box { padding: 80px 48px; } }

.final-cta__title {
  position: relative;
  z-index: 1;
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 14px auto 16px;
  max-width: 760px;
}
.final-cta__title .accent-soft {
  background: linear-gradient(120deg, #c4c8ff 0%, #f9d6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.final-cta__sub {
  position: relative;
  z-index: 1;
  font-size: clamp(14px, 1.3vw, 16px);
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.6;
}
.final-cta__row {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.final-cta__perks {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
}
.final-cta__perks li::before {
  content: '·';
  margin-right: 12px;
  color: rgba(255,255,255,0.35);
}
.final-cta__perks li:first-child::before { display: none; }
.final-cta__perks strong { color: #fff; font-weight: 600; }

/* -------- 19. Footer -------- */
.site-footer {
  background: #0a0a0f;
  color: rgba(255,255,255,0.72);
  padding-block: 48px;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 36px;
}
@media (min-width: 768px) {
  .site-footer__inner {
    grid-template-columns: 1.4fr 2fr;
  }
}

.logo--footer { color: #fff; }
.site-footer__tagline {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
  max-width: 360px;
}

.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
@media (min-width: 640px) { .site-footer__nav { grid-template-columns: repeat(3, 1fr); } }

.site-footer__h {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
}
.site-footer__nav ul { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.site-footer__nav a:hover { color: #fff; }

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer__bottom a:hover { color: #fff; }
.site-footer__bottom address { font-style: normal; }
.site-footer__bottom span { color: rgba(255,255,255,0.4); }

/* -------- Reveal on scroll (subtle, non-blocking) -------- */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal .pillar, .js-reveal .tier, .js-reveal .step, .js-reveal .usecase,
  .js-reveal .privacy__item, .js-reveal .crawler-card, .js-reveal .diff-card {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .js-reveal .pillar.is-visible, .js-reveal .tier.is-visible, .js-reveal .step.is-visible,
  .js-reveal .usecase.is-visible, .js-reveal .privacy__item.is-visible,
  .js-reveal .crawler-card.is-visible, .js-reveal .diff-card.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* -------- 20. Utilities -------- */
@layer utilities {
  .visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
  }
}
