/*!
 * crawlerbase design system v1.0
 * Shared across crawlerbase.de, audit.crawlerbase.de, trace.crawlerbase.de
 * Cinematic Tech Editorial - dark, precise, premium
 * (c) 2026 Dennis Andres
 */

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  /* Surface */
  --bg: #08090a;
  --bg-1: #0c0d10;
  --bg-2: #111317;
  --bg-3: #181a1f;
  --bg-glass: rgba(8, 9, 10, 0.72);

  /* Text */
  --fg: #f5f5f7;
  --fg-soft: #c0c1c7;
  --muted: #76777f;
  --dim: #44464d;
  --faint: #2a2b30;

  /* Lines */
  --line: rgba(255, 255, 255, 0.06);
  --line-soft: rgba(255, 255, 255, 0.03);
  --line-strong: rgba(255, 255, 255, 0.10);

  /* Brand */
  --accent: #ff5e00;
  --accent-h: #ff7a26;
  --accent-soft: rgba(255, 94, 0, 0.10);
  --accent-glow: rgba(255, 94, 0, 0.35);
  --accent-deep: rgba(255, 94, 0, 0.50);

  /* Secondary */
  --teal: #00d4aa;
  --teal-soft: rgba(0, 212, 170, 0.10);

  /* Status */
  --pass: #22c55e;
  --pass-soft: rgba(34, 197, 94, 0.12);
  --warn: #f59e0b;
  --warn-soft: rgba(245, 158, 11, 0.12);
  --fail: #ef4444;
  --fail-soft: rgba(239, 68, 68, 0.12);
  --info: #3b82f6;
  --info-soft: rgba(59, 130, 246, 0.12);

  /* Radius */
  --r-1: 4px;
  --r-2: 6px;
  --r-3: 10px;
  --r-4: 14px;
  --r-5: 20px;
  --r-pill: 9999px;

  /* Shadows */
  --sh-card: 0 0 0 1px var(--line) inset, 0 1px 0 rgba(255,255,255,0.03) inset, 0 12px 24px -12px rgba(0,0,0,0.6);
  --sh-pop: 0 0 0 1px var(--line-strong) inset, 0 24px 48px -16px rgba(0,0,0,0.7);
  --sh-glow: 0 0 0 1px var(--accent-deep), 0 0 32px -4px var(--accent-glow);

  /* Layout */
  --container: 1280px;
  --container-tight: 980px;
  --container-narrow: 720px;
  --nav-h: 64px;

  /* Fonts */
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   RESET + BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  font-family: var(--sans);
  font-size: 16px; font-weight: 400;
  line-height: 1.55; color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "ss02", "cv11", "cv02";
  min-height: 100vh; overflow-x: hidden;
  position: relative;
}
::selection { background: var(--accent); color: #fff; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img, svg { display: block; max-width: 100%; }
.mono { font-family: var(--mono); font-feature-settings: "ss01", "ss02"; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Atmospheric base layer */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255,94,0,0.07), transparent 60%),
    radial-gradient(ellipse 50% 30% at 90% 100%, rgba(0,212,170,0.04), transparent 60%);
}
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='120' height='120' filter='url(%23n)' opacity='0.4'/></svg>");
  opacity: 0.04;
  mix-blend-mode: overlay;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.cb-section { padding: 120px 28px; position: relative; z-index: 1; }
.cb-section--tight { padding: 80px 28px; }
.cb-container { max-width: var(--container); margin: 0 auto; }
.cb-container--tight { max-width: var(--container-tight); margin: 0 auto; }
.cb-container--narrow { max-width: var(--container-narrow); margin: 0 auto; }
.cb-divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong) 30%, var(--line-strong) 70%, transparent); }

@media (max-width: 720px) {
  .cb-section { padding: 80px 20px; }
}

/* ============================================================
   NAV (shared)
   ============================================================ */
.cb-nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.cb-nav-inner {
  height: 100%; max-width: var(--container); margin: 0 auto;
  padding: 0 28px; gap: 32px;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
}
.cb-brand {
  display: inline-flex; align-items: center; gap: 0;
  font-family: var(--sans); font-weight: 700;
  font-size: 16px; letter-spacing: -0.02em; color: var(--fg);
  white-space: nowrap;
}
.cb-brand-dot {
  width: 8px; height: 8px;
  min-width: 8px; min-height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  margin-right: 8px;
  flex-shrink: 0;
  box-shadow: 0 0 10px var(--accent-glow);
  animation: cb-pulse 2.4s var(--ease) infinite;
}
@keyframes cb-pulse {
  0%, 100% { opacity: 1; transform: translateY(-1px) scale(1); }
  50%      { opacity: 0.6; transform: translateY(-1px) scale(0.7); }
}
.cb-brand-tld { color: var(--muted); font-weight: 600; }
.cb-brand-sep {
  color: var(--dim); font-weight: 300;
  margin: 0 8px; font-family: var(--mono);
}
.cb-brand-tool { color: var(--fg); font-weight: 600; }
.cb-brand-tool.is-active { color: var(--accent); }

.cb-nav-links {
  display: flex; gap: 4px; justify-self: center;
  font-family: var(--sans); font-size: 13.5px; font-weight: 500;
}
.cb-nav-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: var(--r-2);
  color: var(--fg-soft); transition: color var(--dur, 180ms), background var(--dur, 180ms);
}
.cb-nav-link:hover { color: var(--fg); background: var(--bg-2); }
.cb-nav-link.is-active { color: var(--accent); background: var(--accent-soft); }
.cb-pill {
  font-family: var(--mono); font-size: 9px; font-weight: 600;
  padding: 2px 6px; border-radius: var(--r-1);
  background: var(--accent); color: #fff;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.cb-pill--ghost {
  background: var(--bg-3); color: var(--fg-soft);
  border: 1px solid var(--line);
}

.cb-nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: var(--r-2);
  background: var(--fg); color: var(--bg);
  font-size: 13px; font-weight: 600; letter-spacing: -0.005em;
  transition: transform 180ms var(--ease), background 180ms;
  white-space: nowrap;
}
.cb-nav-cta:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }
.cb-nav-cta .arrow { transition: transform 180ms var(--ease); }
.cb-nav-cta:hover .arrow { transform: translateX(2px); }

@media (max-width: 820px) {
  .cb-nav-links { display: none; }
  .cb-nav-inner { grid-template-columns: auto auto; padding: 0 20px; gap: 16px; }
}

/* ============================================================
   HERO
   ============================================================ */
.cb-hero {
  padding: 120px 28px 72px;
  position: relative; overflow: hidden; z-index: 1;
}
.cb-hero-inner {
  max-width: var(--container); margin: 0 auto;
  position: relative; z-index: 2;
}
.cb-hero-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  overflow: hidden;
}
.cb-hero-bg::before {
  content: ""; position: absolute;
  top: -200px; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 600px;
  background:
    radial-gradient(ellipse 600px 360px at center, rgba(255,94,0,0.18), transparent 60%);
  filter: blur(20px);
}
.cb-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
}

.cb-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 28px;
}
.cb-eyebrow::before {
  content: ""; width: 18px; height: 1px; background: var(--accent);
}
.cb-eyebrow.has-dot::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent-glow);
}

.cb-display {
  font-family: var(--sans); font-weight: 600;
  font-size: clamp(48px, 8vw, 112px);
  line-height: 0.96; letter-spacing: -0.045em;
  color: var(--fg); margin-bottom: 28px;
  max-width: 18ch;
}
.cb-display--center { text-align: center; max-width: 16ch; margin-left: auto; margin-right: auto; }
.cb-display .accent { color: var(--accent); }
.cb-display .muted  { color: var(--muted); }
.cb-display .stroke {
  -webkit-text-stroke: 1.5px var(--fg);
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.cb-lede {
  font-family: var(--sans); font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 400; line-height: 1.55;
  color: var(--fg-soft); max-width: 62ch;
  margin-bottom: 40px;
}
.cb-lede--center { text-align: center; margin-left: auto; margin-right: auto; }
.cb-lede strong { color: var(--fg); font-weight: 600; }

.cb-hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
}

/* Reveal Stagger Animation */
.cb-hero-inner > * { animation: cb-rise 800ms var(--ease-out) backwards; }
.cb-hero-inner > *:nth-child(1) { animation-delay: 60ms; }
.cb-hero-inner > *:nth-child(2) { animation-delay: 120ms; }
.cb-hero-inner > *:nth-child(3) { animation-delay: 240ms; }
.cb-hero-inner > *:nth-child(4) { animation-delay: 360ms; }
.cb-hero-inner > *:nth-child(5) { animation-delay: 480ms; }
.cb-hero-inner > *:nth-child(6) { animation-delay: 600ms; }
@keyframes cb-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.cb-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: var(--r-2);
  font-family: var(--sans); font-size: 14.5px; font-weight: 600;
  letter-spacing: -0.005em; line-height: 1; cursor: pointer;
  border: 0; transition: all 200ms var(--ease);
  position: relative;
}
.cb-btn--primary {
  background: var(--fg); color: var(--bg);
}
.cb-btn--primary:hover {
  background: var(--accent); color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -8px var(--accent-glow);
}
.cb-btn--ghost {
  background: var(--bg-2); color: var(--fg);
  border: 1px solid var(--line-strong);
}
.cb-btn--ghost:hover {
  border-color: var(--accent); color: var(--accent);
  transform: translateY(-1px);
}
.cb-btn--link {
  padding: 4px 0; background: transparent; color: var(--accent);
  border-bottom: 1px solid var(--accent-deep);
  border-radius: 0;
}
.cb-btn--link:hover { color: var(--accent-h); border-bottom-color: var(--accent); }
.cb-btn .arrow { transition: transform 200ms var(--ease); font-size: 16px; line-height: 1; }
.cb-btn:hover .arrow { transform: translateX(3px); }
.cb-btn--sm { padding: 9px 14px; font-size: 13px; }
.cb-btn--lg { padding: 18px 28px; font-size: 16px; }

/* ============================================================
   STATS / METRICS STRIP
   ============================================================ */
.cb-stats {
  display: grid; gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  overflow: hidden;
  margin-top: 56px;
}
.cb-stats--4 { grid-template-columns: repeat(4, 1fr); }
.cb-stats--3 { grid-template-columns: repeat(3, 1fr); }
.cb-stat {
  background: var(--bg-1);
  padding: 22px 24px;
  display: flex; flex-direction: column; gap: 4px;
}
.cb-stat-num {
  font-family: var(--mono); font-size: 28px; font-weight: 600;
  color: var(--fg); letter-spacing: -0.02em; line-height: 1;
  font-feature-settings: "tnum";
}
.cb-stat-num--accent { color: var(--accent); }
.cb-stat-label {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase;
}
@media (max-width: 720px) {
  .cb-stats--4 { grid-template-columns: repeat(2, 1fr); }
  .cb-stats--3 { grid-template-columns: 1fr; }
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.cb-section-head {
  margin-bottom: 64px;
  display: flex; flex-direction: column; gap: 16px;
  max-width: 760px;
}
.cb-section-head--center { margin-left: auto; margin-right: auto; text-align: center; align-items: center; }
.cb-section-num {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  color: var(--muted); letter-spacing: 0.10em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
}
.cb-section-num::before {
  content: ""; width: 18px; height: 1px; background: var(--accent);
}
.cb-h2 {
  font-family: var(--sans); font-weight: 600;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.0; letter-spacing: -0.035em;
  color: var(--fg); max-width: 18ch;
}
.cb-h2 .accent { color: var(--accent); }
.cb-section-head--center .cb-h2 { margin-left: auto; margin-right: auto; }
.cb-section-sub {
  font-family: var(--sans); font-size: 17px;
  color: var(--fg-soft); line-height: 1.55;
  max-width: 56ch;
}
.cb-section-head--center .cb-section-sub { margin-left: auto; margin-right: auto; }

/* ============================================================
   CARD
   ============================================================ */
.cb-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  padding: 28px;
  transition: border-color 240ms var(--ease), background 240ms var(--ease), transform 240ms var(--ease);
  position: relative; overflow: hidden;
}
.cb-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--accent) 70%, transparent);
  opacity: 0; transition: opacity 240ms var(--ease);
}
.cb-card:hover {
  background: var(--bg-2); border-color: var(--line-strong);
  transform: translateY(-2px);
}
.cb-card:hover::before { opacity: 0.8; }

.cb-card-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: var(--bg-3); color: var(--accent);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: -0.02em;
  transition: background 240ms var(--ease), color 240ms var(--ease);
}
.cb-card:hover .cb-card-num { background: var(--accent); color: var(--bg); }

.cb-card-h {
  font-family: var(--sans); font-weight: 600; font-size: 19px;
  letter-spacing: -0.02em; color: var(--fg); margin: 18px 0 10px;
}
.cb-card-p {
  font-family: var(--sans); font-size: 14.5px; line-height: 1.65;
  color: var(--fg-soft);
}
.cb-card-p strong { color: var(--fg); font-weight: 600; }
.cb-card-p .mono { color: var(--fg); font-weight: 500; font-size: 13.5px; }

/* Project card variant */
.cb-project {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  padding: 32px;
  display: flex; flex-direction: column; gap: 20px;
  position: relative; overflow: hidden;
  transition: all 240ms var(--ease);
}
.cb-project::before {
  content: ""; position: absolute; top: 0; left: 0; bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0); transform-origin: top;
  transition: transform 280ms var(--ease);
}
.cb-project:hover { background: var(--bg-2); border-color: var(--line-strong); transform: translateY(-3px); }
.cb-project:hover::before { transform: scaleY(1); }
.cb-project-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.cb-project-num {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  color: var(--muted); letter-spacing: 0.06em;
}
.cb-status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--r-pill);
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.cb-status::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
}
.cb-status--live { background: var(--pass-soft); color: var(--pass); }
.cb-status--live::before { background: var(--pass); animation: cb-pulse 2s var(--ease) infinite; }
.cb-status--dev { background: var(--warn-soft); color: var(--warn); }
.cb-status--dev::before { background: var(--warn); }
.cb-status--internal { background: var(--bg-3); color: var(--muted); border: 1px dashed var(--line-strong); }
.cb-status--internal::before { background: var(--muted); }

.cb-project-name {
  font-family: var(--sans); font-weight: 600;
  font-size: 24px; letter-spacing: -0.02em; color: var(--fg);
}
.cb-project-domain {
  font-family: var(--mono); font-size: 12.5px;
  color: var(--accent); margin-top: 4px;
  display: inline-flex; align-items: center; gap: 6px;
}
.cb-project-desc {
  font-family: var(--sans); font-size: 15px; line-height: 1.65;
  color: var(--fg-soft);
}
.cb-project-desc strong { color: var(--fg); font-weight: 600; }
.cb-project-features {
  list-style: none; padding: 16px 0 0; margin-top: auto;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
}
.cb-project-features li {
  display: flex; align-items: flex-start; gap: 12px;
  font-family: var(--sans); font-size: 13.5px; line-height: 1.55;
  color: var(--fg-soft);
}
.cb-project-features li::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: var(--muted); margin-top: 9px; flex-shrink: 0;
  transition: background 200ms var(--ease);
}
.cb-project:hover .cb-project-features li::before { background: var(--accent); }

.cb-project-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--r-2);
  background: var(--bg-3); color: var(--fg); align-self: flex-start;
  border: 1px solid var(--line-strong);
  font-family: var(--sans); font-size: 13.5px; font-weight: 600;
  transition: all 200ms var(--ease);
}
.cb-project-cta:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.cb-project-cta .arrow { transition: transform 200ms var(--ease); }
.cb-project-cta:hover .arrow { transform: translateX(3px); }

.cb-project-locked {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--r-2);
  background: transparent; color: var(--muted);
  border: 1px dashed var(--line-strong);
  font-family: var(--mono); font-size: 12px; align-self: flex-start;
}

/* ============================================================
   GRID HELPERS
   ============================================================ */
.cb-grid { display: grid; gap: 16px; }
.cb-grid--2 { grid-template-columns: repeat(2, 1fr); }
.cb-grid--3 { grid-template-columns: repeat(3, 1fr); }
.cb-grid--4 { grid-template-columns: repeat(4, 1fr); }
.cb-grid--auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.cb-grid--auto-lg { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
@media (max-width: 980px) {
  .cb-grid--3, .cb-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cb-grid--2, .cb-grid--3, .cb-grid--4 { grid-template-columns: 1fr; }
}

/* ============================================================
   TERMINAL CODE BLOCK
   ============================================================ */
.cb-terminal {
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: var(--r-3); overflow: hidden;
  font-family: var(--mono);
}
.cb-terminal-bar {
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  display: flex; align-items: center; gap: 12px;
}
.cb-terminal-dots {
  display: inline-flex; gap: 6px;
}
.cb-terminal-dots span {
  width: 11px; height: 11px; border-radius: 50%; display: inline-block;
}
.cb-terminal-dots span:nth-child(1) { background: #ff5f57; }
.cb-terminal-dots span:nth-child(2) { background: #febc2e; }
.cb-terminal-dots span:nth-child(3) { background: #28c840; }
.cb-terminal-title {
  font-size: 11.5px; color: var(--muted); flex: 1; text-align: center;
  letter-spacing: 0.04em;
}
.cb-terminal-body {
  padding: 18px 22px; font-size: 13px; line-height: 1.7;
  color: var(--fg-soft); overflow-x: auto;
}
.cb-tk-c  { color: var(--muted); font-style: italic; }
.cb-tk-k  { color: var(--accent); font-weight: 600; }
.cb-tk-v  { color: var(--fg); }
.cb-tk-d  { color: #ff8b6b; font-weight: 600; }
.cb-tk-a  { color: #6ab7ff; font-weight: 600; }
.cb-tk-cd { color: #c4a8ff; font-weight: 600; }
.cb-tk-sm { color: var(--teal); font-weight: 600; }

/* ============================================================
   FAQ
   ============================================================ */
.cb-faq { display: flex; flex-direction: column; gap: 8px; }
.cb-faq-item {
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: var(--r-3);
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
}
.cb-faq-item[open] { border-color: var(--line-strong); background: var(--bg-2); }
.cb-faq-item > summary {
  cursor: pointer; padding: 20px 24px;
  font-size: 15.5px; font-weight: 500; color: var(--fg);
  list-style: none; user-select: none;
  display: flex; align-items: center; gap: 16px;
}
.cb-faq-item > summary::-webkit-details-marker { display: none; }
.cb-faq-item > summary::after {
  content: ""; margin-left: auto; flex-shrink: 0;
  width: 14px; height: 14px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'><path d='M3 7h8M7 3v8' stroke='%23ff5e00' stroke-width='1.5' stroke-linecap='round'/></svg>");
  transition: transform 240ms var(--ease);
}
.cb-faq-item[open] > summary::after {
  transform: rotate(45deg);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'><path d='M3 7h8M7 3v8' stroke='%23ff5e00' stroke-width='1.5' stroke-linecap='round'/></svg>");
}
.cb-faq-item > div {
  padding: 0 24px 22px; color: var(--fg-soft);
  font-size: 14.5px; line-height: 1.7;
}
.cb-faq-item code {
  font-family: var(--mono); font-size: 12.5px;
  background: var(--bg-3); padding: 2px 6px; border-radius: 4px;
  border: 1px solid var(--line);
}

/* ============================================================
   FOOTER
   ============================================================ */
.cb-foot {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 80px 28px 40px;
  position: relative; z-index: 1;
}
.cb-foot-inner {
  max-width: var(--container); margin: 0 auto;
  display: grid; gap: 56px;
}
.cb-foot-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
}
.cb-foot-brand-block { display: flex; flex-direction: column; gap: 16px; max-width: 320px; }
.cb-foot-brand {
  display: inline-flex; align-items: baseline;
  font-weight: 700; font-size: 19px; letter-spacing: -0.02em; color: var(--fg);
}
.cb-foot-tag { font-size: 13.5px; color: var(--fg-soft); line-height: 1.55; }
.cb-foot-col h4 {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 16px;
}
.cb-foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.cb-foot-col a {
  font-size: 13.5px; color: var(--fg-soft);
  display: inline-flex; align-items: center; gap: 6px;
  transition: color 160ms var(--ease);
}
.cb-foot-col a:hover { color: var(--accent); }
.cb-foot-bot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11.5px; color: var(--muted);
  letter-spacing: 0.04em;
  flex-wrap: wrap; gap: 16px;
}
.cb-foot-status { display: inline-flex; align-items: center; gap: 8px; }
.cb-foot-status::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--pass); box-shadow: 0 0 8px rgba(34,197,94,0.6);
  animation: cb-pulse 2s var(--ease) infinite;
}
@media (max-width: 820px) {
  .cb-foot-top { grid-template-columns: 1fr 1fr; }
  .cb-foot-brand-block { grid-column: 1 / -1; }
}

/* ============================================================
   REVEAL
   ============================================================ */
.cb-reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
}
.cb-reveal.is-in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .cb-reveal { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   RESULT SYSTEM (used by trace + audit)
   ============================================================ */

.cb-resbar {
  position: sticky; top: var(--nav-h); z-index: 30;
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.cb-resbar-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
}
.cb-resbar-l { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.cb-resbar-host { font-family: var(--mono); font-weight: 600; font-size: 15px; color: var(--fg); letter-spacing: -0.01em; }
.cb-resbar-meta { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.cb-resbar-meta .sep { color: var(--dim); margin: 0 8px; }
.cb-resbar-actions { display: flex; gap: 8px; }
.cb-resbar-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--r-2);
  background: var(--bg-2); color: var(--fg-soft);
  border: 1px solid var(--line);
  font-family: var(--sans); font-size: 12.5px; font-weight: 500;
  transition: all 160ms var(--ease);
}
.cb-resbar-btn:hover { color: var(--fg); border-color: var(--accent); background: var(--bg-3); }
.cb-resbar-btn--primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.cb-resbar-btn--primary:hover { background: var(--accent-h); color: #fff; }

.cb-result-wrap { max-width: var(--container); margin: 0 auto; padding: 32px 28px 96px; }
.cb-result-grid {
  display: grid; gap: 32px;
  grid-template-columns: 240px 1fr;
}
@media (max-width: 1024px) { .cb-result-grid { grid-template-columns: 1fr; } }

/* TOC */
.cb-toc {
  position: sticky; top: calc(var(--nav-h) + 80px); align-self: start;
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: var(--r-3); padding: 16px;
  max-height: calc(100vh - var(--nav-h) - 100px); overflow-y: auto;
}
@media (max-width: 1024px) { .cb-toc { position: static; max-height: none; } }
.cb-toc-title {
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.cb-toc-title::before { content: ""; width: 14px; height: 1px; background: var(--accent); }
.cb-toc-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.cb-toc-link {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 8px 12px; border-radius: var(--r-2);
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  color: var(--fg-soft); transition: all 160ms var(--ease);
}
.cb-toc-link:hover { background: var(--bg-2); color: var(--fg); }
.cb-toc-link.is-active { background: var(--accent-soft); color: var(--accent); }
.cb-toc-pill {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  padding: 2px 7px; border-radius: var(--r-pill);
  background: var(--bg-3); color: var(--muted);
}
.cb-toc-link.is-active .cb-toc-pill { background: var(--accent); color: #fff; }

.cb-result-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.cb-rcard {
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: var(--r-4);
  padding: 28px 32px;
  scroll-margin-top: calc(var(--nav-h) + 84px);
}
.cb-rcard-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  padding-bottom: 20px; margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.cb-rcard-h {
  font-family: var(--sans); font-weight: 600; font-size: 22px;
  letter-spacing: -0.02em; color: var(--fg);
}
.cb-rcard-h .mono { color: var(--accent); font-size: 18px; }
.cb-rcard-meta {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap;
  letter-spacing: 0.02em;
}

/* Severity Badge */
.cb-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: var(--r-pill);
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.cb-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.cb-badge--pass { background: var(--pass-soft); color: var(--pass); }
.cb-badge--warn { background: var(--warn-soft); color: var(--warn); }
.cb-badge--fail { background: var(--fail-soft); color: var(--fail); }
.cb-badge--info { background: var(--info-soft); color: var(--info); }
.cb-badge--ghost { background: var(--bg-3); color: var(--muted); border: 1px solid var(--line); }
.cb-badge--ghost::before { background: var(--muted); }

/* Summary */
.cb-summary {
  background: linear-gradient(140deg, rgba(255,94,0,0.06), transparent 60%) , var(--bg-1);
}
.cb-summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 720px) { .cb-summary-grid { grid-template-columns: repeat(2, 1fr); } }
.cb-rstat { display: flex; flex-direction: column; gap: 6px; }
.cb-rstat-num {
  font-family: var(--mono); font-size: 32px; font-weight: 600;
  color: var(--fg); letter-spacing: -0.02em; line-height: 1;
}
.cb-rstat-num--accent { color: var(--accent); }
.cb-rstat-num--pass   { color: var(--pass); }
.cb-rstat-num--fail   { color: var(--fail); }
.cb-rstat-label {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase;
}

/* Hops Timeline */
.cb-hops { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.cb-hop { display: grid; grid-template-columns: 48px 1fr; gap: 16px; }
.cb-hop-stem { display: flex; flex-direction: column; align-items: center; padding-top: 4px; position: relative; }
.cb-hop-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--r-2);
  background: var(--bg-2); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  color: var(--muted); letter-spacing: -0.02em; flex-shrink: 0;
}
.cb-hop-line {
  flex: 1; width: 1px; min-height: 24px; margin-top: 8px;
  background: linear-gradient(to bottom, var(--accent-deep), transparent);
}
.cb-hop-body {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r-3); padding: 16px 20px;
  transition: border-color 180ms var(--ease);
}
.cb-hop:hover .cb-hop-body { border-color: var(--line-strong); }
.cb-hop-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.cb-hop-status {
  font-family: var(--mono); font-weight: 600; font-size: 13px;
  padding: 4px 10px; border-radius: var(--r-2);
  min-width: 56px; text-align: center; letter-spacing: -0.01em;
}
.cb-hop-status--ok    { background: var(--pass-soft); color: var(--pass); }
.cb-hop-status--redir { background: var(--info-soft); color: var(--info); }
.cb-hop-status--warn  { background: var(--warn-soft); color: var(--warn); }
.cb-hop-status--fail  { background: var(--fail-soft); color: var(--fail); }
.cb-hop-http {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  padding: 3px 8px; background: var(--bg-3); border-radius: var(--r-1);
  border: 1px solid var(--line);
}
.cb-hop-url {
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  color: var(--fg); word-break: break-all; flex: 1; min-width: 240px;
}
.cb-hop-meta {
  display: flex; flex-wrap: wrap; gap: 16px;
  color: var(--fg-soft); font-size: 12px;
  padding: 10px 0; margin-top: 6px;
  border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line);
}
.cb-hop-meta strong {
  color: var(--muted); font-weight: 500; margin-right: 4px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.cb-hop-loc, .cb-hop-tls {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--bg-1); border: 1px solid var(--line);
  padding: 10px 14px; border-radius: var(--r-2); margin-top: 12px;
  font-size: 12.5px; color: var(--fg-soft);
}
.cb-hop-loc strong, .cb-hop-tls strong { color: var(--muted); font-weight: 500; font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; margin-right: 4px; }
.cb-loc-arrow { color: var(--accent); font-weight: 700; font-size: 14px; }

.cb-hop-headers { margin-top: 14px; }
.cb-hop-headers > summary {
  cursor: pointer; font-size: 12px; color: var(--muted);
  padding: 8px 12px; border-radius: var(--r-2);
  background: var(--bg-1); border: 1px solid var(--line);
  font-family: var(--mono); font-weight: 500;
  list-style: none; user-select: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.cb-hop-headers > summary::-webkit-details-marker { display: none; }
.cb-hop-headers > summary::before { content: "+"; color: var(--accent); font-weight: 700; }
.cb-hop-headers[open] > summary::before { content: "-"; }
.cb-hop-headers > summary:hover { color: var(--fg); border-color: var(--accent); }
.cb-hdr-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 12.5px; }
.cb-hdr-table tr { border-top: 1px solid var(--line); }
.cb-hdr-table tr:first-child { border-top: 0; }
.cb-hdr-k { padding: 8px 12px 8px 0; color: var(--muted); white-space: nowrap; vertical-align: top; width: 1%; font-family: var(--mono); }
.cb-hdr-v { padding: 8px 0; color: var(--fg-soft); word-break: break-word; font-family: var(--mono); }
.cb-hdr-sec   .cb-hdr-k { color: var(--accent); font-weight: 600; }
.cb-hdr-cache .cb-hdr-k { color: var(--info); font-weight: 600; }
.cb-hdr-cookie .cb-hdr-k { color: #c4a8ff; font-weight: 600; }

.cb-hop--error .cb-hop-body { border-color: rgba(239,68,68,0.3); background: rgba(239,68,68,0.04); }
.cb-hop-err { color: var(--fail); font-size: 13.5px; font-weight: 500; }

/* Robots cards content */
.cb-rob-sitemaps { font-size: 13.5px; color: var(--fg-soft); margin-bottom: 14px; }
.cb-rob-sitemaps strong { color: var(--fg); }
.cb-rob-sitemaps ul { list-style: none; padding: 0; margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.cb-rob-sitemaps a { color: var(--accent); border-bottom: 1px dashed var(--accent-deep); word-break: break-all; font-family: var(--mono); font-size: 12.5px; }
.cb-rob-sitemaps a:hover { border-bottom-color: var(--accent); }

/* Tables */
.cb-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  font-size: 13px; border: 1px solid var(--line);
  border-radius: var(--r-3); overflow: hidden;
  background: var(--bg-2);
}
.cb-table thead th {
  text-align: left; padding: 12px 14px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); background: var(--bg-1);
  border-bottom: 1px solid var(--line);
}
.cb-table tbody td {
  padding: 14px; border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.cb-table tbody tr:last-child td { border-bottom: 0; }
.cb-table tbody tr:hover td { background: var(--bg-3); }
.cb-table .mono { font-family: var(--mono); font-size: 12.5px; }
.cb-table .small { font-size: 11.5px; }

/* Empty / Loading / Error States */
.cb-empty {
  padding: 64px 24px; text-align: center;
  border: 1px dashed var(--line-strong); border-radius: var(--r-3);
  background: var(--bg-1); color: var(--muted);
}
.cb-empty-ico { font-size: 28px; color: var(--dim); margin-bottom: 12px; }
.cb-empty-title { font-size: 16px; color: var(--fg-soft); font-weight: 600; margin-bottom: 4px; }
.cb-empty-hint { font-size: 13.5px; color: var(--muted); }

.cb-loading { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-family: var(--mono); font-size: 12px; }
.cb-loading::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--line-strong); border-top-color: var(--accent);
  animation: cb-spin 800ms linear infinite;
}
@keyframes cb-spin { to { transform: rotate(360deg); } }

.cb-error {
  padding: 24px; border-radius: var(--r-3);
  background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.25);
  color: var(--fail); font-size: 14px; line-height: 1.6;
}
