:root {
  --bg: #f7f7f9;
  --bg-lighter: #fcfcfd;
  --bg-card: #ffffff;
  --ink: #121428;
  --ink-soft: #34374f;
  --muted: #666b85;
  --faint: #9296ad;
  --a2: rgba(18, 20, 40, 0.02);
  --a3: rgba(18, 20, 40, 0.03);
  --a4: rgba(18, 20, 40, 0.04);
  --a6: rgba(18, 20, 40, 0.06);
  --a8: rgba(18, 20, 40, 0.08);
  --a10: rgba(18, 20, 40, 0.10);
  --a12: rgba(18, 20, 40, 0.12);
  --a16: rgba(18, 20, 40, 0.16);
  --a24: rgba(18, 20, 40, 0.24);
  --heat: #ff642f;
  --heat-strong: #f26104;
  --heat-4: rgba(255, 100, 47, 0.04);
  --heat-8: rgba(255, 100, 47, 0.08);
  --heat-12: rgba(255, 100, 47, 0.12);
  --heat-20: rgba(255, 100, 47, 0.20);
  --heat-40: rgba(255, 100, 47, 0.40);
  --geo: #2563eb;
  --geo-soft: rgba(37, 99, 235, 0.10);
  --sys: #f26104;
  --sys-soft: rgba(242, 97, 4, 0.10);
  --studio: #7c3aed;
  --studio-soft: rgba(124, 58, 237, 0.10);
  --violet-900: #1a176c;
  --violet-800: #29259a;
  --violet-700: #3a41db;
  --violet-600: #655cff;
  --lavender: #cfc8f5;
  --sans: "Inter", -apple-system, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Geist Mono", "Roboto Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --frame-w: 1120px;
  --pad-x: clamp(20px, 4vw, 40px);
}

/* Self-contained V6 navigation (generated from home.css) */
/* ============ nav ============ */
.v5-nav {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(247, 247, 249, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.v5-nav.is-scrolled {
  border-bottom-color: var(--a8);
  background: rgba(247, 247, 249, 0.92);
}
.v5-nav-inner {
  max-width: var(--frame-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 64px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.v5-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
  color: var(--ink);
}
.v5-brand img { width: 26px; height: 26px; }
.v5-brand .sub {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--heat-strong);
  letter-spacing: 0.08em;
  margin-top: 3px;
}
.v5-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
}
.v5-nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 8px;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.v5-nav-links a:hover { background: var(--a4); color: var(--ink); }

/* ===== mega dropdown (Firecrawl products menu) ===== */
.v5-dd { position: relative; }
.v5-dd-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: none;
  border: 0;
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.v5-dd-btn:hover, .v5-dd.is-open .v5-dd-btn { background: var(--a4); color: var(--ink); }
.v5-dd-btn .chev { transition: transform 0.18s ease; }
.v5-dd.is-open .v5-dd-btn .chev { transform: rotate(180deg); }
.v5-dd-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: -12px;
  display: grid;
  grid-template-columns: 250px 220px 224px;
  gap: 6px;
  padding: 10px;
  background: var(--bg-card);
  border: 1px solid var(--a10);
  border-radius: var(--r-lg);
  box-shadow: 0 1px 2px rgba(18, 20, 40, 0.05), 0 24px 64px -24px rgba(18, 20, 40, 0.28);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 95;
}
.v5-dd.is-open .v5-dd-panel {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.v5-dd-col { display: flex; flex-direction: column; gap: 2px; padding: 6px; }
.v5-dd-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 6px 10px 8px;
  display: block;
}
.v5-dd-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  text-decoration: none;
  padding: 9px 10px;
  border-radius: 10px;
  transition: background-color 0.14s ease;
}
.v5-dd-item:hover { background: var(--a4); }
.v5-dd-ico {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--a8);
  background: var(--bg-lighter);
}
.v5-dd-ico svg { width: 17px; height: 17px; }
.v5-dd-ico.is-geo { color: var(--geo); border-color: rgba(37, 99, 235, 0.2); background: var(--geo-soft); }
.v5-dd-ico.is-sys { color: var(--sys); border-color: rgba(242, 97, 4, 0.2); background: var(--sys-soft); }
.v5-dd-ico.is-studio { color: var(--studio); border-color: rgba(124, 58, 237, 0.2); background: var(--studio-soft); }
.v5-dd-copy { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.v5-dd-copy strong {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.v5-dd-copy > span {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.45;
}
.v5-dd-item.is-slim { padding: 8px 10px; }
/* featured card — blue gradient (original Arrow violet + Criteo) */
.v5-dd-featured {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  min-height: 190px;
  text-decoration: none;
  border-radius: 12px;
  padding: 16px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 70% at 85% -10%, rgba(101, 92, 255, 0.55), transparent 65%),
    radial-gradient(ellipse 70% 60% at 0% 110%, rgba(37, 99, 235, 0.5), transparent 70%),
    var(--violet-900);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.v5-dd-featured::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: radial-gradient(ellipse 80% 70% at 80% 0%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 80% 0%, #000 20%, transparent 70%);
  pointer-events: none;
}
.v5-dd-featured:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -16px rgba(26, 23, 108, 0.5); }
.v5-dd-featured > * { position: relative; z-index: 1; }
.v5-dd-featured-tag {
  position: absolute;
  top: 14px;
  left: 16px;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--heat);
  border-radius: 100px;
  padding: 3px 9px;
}
.v5-dd-featured strong {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: #fff;
}
.v5-dd-featured .go {
  font-size: 0.8rem;
  font-weight: 550;
  color: var(--lavender);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.v5-dd-featured .arr { transition: transform 0.16s ease; }
.v5-dd-featured:hover .arr { transform: translateX(3px); }
.v5-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.v5-lang {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  display: inline-flex;
  gap: 2px;
}
.v5-lang a {
  text-decoration: none;
  color: var(--muted);
  padding: 4px 6px;
  border-radius: 5px;
}
.v5-lang a:hover { background: var(--a6); color: var(--ink); }
.v5-lang a.is-active { color: var(--ink); font-weight: 600; }

/* mobile nav */
.v5-nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--a12);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--ink);
}
.v5-nav-toggle svg { display: block; }
.v5-mobile-panel {
  display: none;
  border-top: 1px solid var(--a8);
  background: var(--bg-lighter);
  padding: 18px var(--pad-x) 24px;
}
.v5-mobile-panel {
  max-height: calc(100dvh - 64px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.v5-mob-group { margin-bottom: 14px; }
.v5-mob-group .v5-dd-item { padding: 10px 8px; }
.v5-mob-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.v5-mob-links a {
  display: block;
  padding: 11px 10px;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 550;
  color: var(--ink);
  border-radius: 10px;
}
.v5-mob-links a:active { background: var(--a6); }
.v5-mobile-panel .v5-dd-featured { min-height: 150px; margin: 6px 0 16px; }
.v5-mobile-panel .row {
  display: flex;
  gap: 10px;
}
.v5-mobile-panel .row .btn { flex: 1; }
@media (max-width: 900px) {
  .v5-nav-links, .v5-nav-actions { display: none; }
  .v5-nav-toggle { display: block; }
  .v5-nav.is-open .v5-mobile-panel { display: block; }
}


/* buttons */
.v5-nav .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.16s ease, box-shadow 0.16s ease,
    background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.v5-nav .btn:active { transform: translateY(1px) scale(0.99); }

.v5-nav .btn-heat {
  background: var(--heat);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 1px 2px rgba(18, 20, 40, 0.12);
}
.v5-nav .btn-heat:hover {
  background: var(--heat-strong);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 6px 16px var(--heat-20);
}

.v5-nav .btn-ghost {
  background: var(--bg-card);
  color: var(--ink);
  border-color: var(--a12);
  box-shadow: 0 1px 2px rgba(18, 20, 40, 0.04);
}
.v5-nav .btn-ghost:hover {
  border-color: var(--a24);
  background: var(--bg-lighter);
  transform: translateY(-1px);
}

.v5-nav .btn-dark {
  background: var(--ink);
  color: #fff;
}
.v5-nav .btn-dark:hover { background: #24263f; transform: translateY(-1px); }

/* GEO blue gradient-border button */
.v5-nav .btn-blue {
  border: 1px solid transparent;
  color: var(--ink);
  background:
    linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
    linear-gradient(120deg, var(--geo), var(--violet-600)) border-box;
  box-shadow: 0 1px 2px rgba(18, 20, 40, 0.04);
}
.v5-nav .btn-blue:hover {
  transform: translateY(-1px);
  background:
    linear-gradient(var(--bg-lighter), var(--bg-lighter)) padding-box,
    linear-gradient(120deg, var(--geo), var(--violet-600) 60%, var(--heat)) border-box;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.16);
}

.v5-nav .btn-sm { padding: 8px 16px; font-size: 0.85rem; border-radius: 8px; }

/* language switcher inside the mobile panel */
.v5-mobile-panel .v5-lang {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--a8, rgba(18, 20, 40, 0.08));
  font-size: 0.95rem;
}
