
/* Accessibility: consistent focus rings */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid rgba(99,102,241,0.55);
  outline-offset: 2px;
  border-radius: 10px;
}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  box-shadow: 0 0 0 3px rgba(99,102,241,0.18);
}

/* ============================================================
   Docually — Design System v2.0
   Aesthetic: Precision dark / editorial / zero cognitive noise
   Fonts: System UI (standardized)
   ============================================================ */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --bg:         #080c12;
  --bg-2:       #0d1420;
  --bg-3:       #131c2a;
  --border:     rgba(255,255,255,0.07);
  --border-hi:  rgba(255,255,255,0.14);
  --text:       #f0f4f8;
  --text-2:     #8a9ab5;
  --text-3:     #4d617c;
  --accent:     #3b82f6;
  --accent-dim: rgba(59,130,246,0.12);
  --accent-glow:rgba(59,130,246,0.25);
  --green:      #22c55e;
  --amber:      #f59e0b;
  --radius:     10px;
  --radius-lg:  16px;
  --font-d:     ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --font-b:     ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --ease:       cubic-bezier(0.16,1,0.3,1);
  --ease-in:    cubic-bezier(0.4,0,1,1);
  --shadow:     0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg:  0 16px 64px rgba(0,0,0,0.6);
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  margin: 0;
  padding: 0;
  padding-top: 86px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-d);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.0rem, 4.2vw, 3.25rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p  { color: var(--text-2); line-height: 1.7; }
a  { color: inherit; text-decoration: none; }

.label {
  font-family: var(--font-b);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ── Layout ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 720px; }
.container--wide   { max-width: 1280px; }

section { padding: 96px 0; }
section + section { border-top: 1px solid var(--border); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ── Navigation ──────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 12px; left: 0; right: 0;
  z-index: 100;
  height: 72px;
  background: transparent;
  display: flex;
  align-items: center;
}

.nav__container { display: flex; justify-content: center; }

.nav__shell {
  width: 100%;
  max-width: 1160px;
  height: 56px;
  margin: 0 auto;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;

  background: var(--glass);
  border: 1px solid var(--glass-b);
  border-radius: 18px;
  box-shadow: var(--shadow);

  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.nav__inner { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav__logo {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__logo-icon {
  width: 28px; height: 28px;
  background: var(--accent);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.nav__search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 580px;

  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.nav__search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.nav__search-icon {
  color: var(--text-3);
  font-size: 14px;
  line-height: 1;
}

.nav__search-input {
  appearance: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  width: 100%;
  font-family: var(--font-b);
  font-size: 0.9rem;
}

.nav__search-input::placeholder { color: var(--text-3); }

.nav__kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-3);
  background: rgba(0,0,0,0.16);
  user-select: none;
}

@media (max-width: 980px) {
  .nav__search { display: none; }
  .nav__menu { display: none; }
  .theme-toggle { display: none; }
  .nav__actions { display: flex; gap: 10px; }
  .nav__actions .btn { display: none; }
  .nav__hamburger { display: inline-flex !important; font-size: 1.25rem; }
  .nav { top: 10px; height: 66px; }
  .nav__shell { border-radius: 16px; }
}

  .nav__actions { display: none; }
  .nav__hamburger { display: block !important; font-size: 1.25rem; }
  .nav { top: 10px; height: 66px; }
  .nav__shell { border-radius: 16px; }
}

/* ── Nav Menu (desktop dropdown) ─────────────────────────── */
.nav__menu {
  position: relative;
}
.nav__menu-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-2);
  font-family: var(--font-b);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.nav__menu-btn:hover,
.nav__menu-btn.is-open { background: var(--bg-3); color: var(--text); }
.nav__menu-chevron { font-size: 0.68rem; transition: transform 0.15s; display: inline-block; }
.nav__menu-btn.is-open .nav__menu-chevron { transform: rotate(180deg); }

.nav__menu-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.22);
  z-index: 300;
  flex-direction: column;
  gap: 2px;
}
.nav__menu-dropdown.is-open { display: flex; }
.nav__menu-dropdown a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  transition: background 0.12s, color 0.12s;
}
.nav__menu-dropdown a:hover,
.nav__menu-dropdown a.active { background: var(--bg-3); color: var(--text); }
.nav__menu-divider { height: 1px; background: var(--border); margin: 4px 6px; }

.nav__links {
  display: none; /* replaced by .nav__menu dropdown */
}
.nav__links a {
  padding: 6px 14px;
  border-radius: 7px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.15s, background 0.15s;
}
.nav__links a:hover, .nav__links a.active {
  color: var(--text);
  background: var(--bg-3);
}
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 6px;
}
.nav__mobile {
  display: none;
  position: fixed;
  top: 78px; left: 0; right: 0;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  z-index: 99;
  flex-direction: column;
  gap: 8px;
}
.nav__mobile-shell {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav__mobile-search {
  padding: 8px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
}

.nav__mobile-search .nav__search-input { width: 100%; }

.nav__mobile.open { display: flex; }
.nav__mobile a {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-2);
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.nav__mobile a:hover { background: var(--bg-3); color: var(--text); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-family: var(--font-b);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.18s var(--ease);
  white-space: nowrap;
  text-decoration: none;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--accent-glow);
}
.btn--ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border-hi);
}
.btn--ghost:hover {
  background: var(--bg-3);
  color: var(--text);
  border-color: var(--border-hi);
}
.btn--lg {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: 12px;
}
.btn--sm {
  padding: 6px 13px;
  font-size: 0.8rem;
  border-radius: 7px;
}
.btn:disabled { opacity: 0.45; pointer-events: none; }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}
.card:hover {
  border-color: var(--border-hi);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

/* ── Badges ──────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
}
.badge--blue   { background: var(--accent-dim); color: var(--accent); }
.badge--green  { background: rgba(34,197,94,0.12); color: var(--green); }
.badge--amber  { background: rgba(245,158,11,0.12); color: var(--amber); }
.badge--gray   { background: var(--bg-3); color: var(--text-2); }

/* ── Forms ───────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-2);
}
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--text);
  font-family: var(--font-b);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  padding: 160px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero__radial {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(59,130,246,0.12) 0%, transparent 65%);
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.4) 20%, rgba(0,0,0,0.4) 60%, transparent 100%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 10px;
  background: var(--bg-2);
  border: 1px solid var(--border-hi);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--text-2);
}
.hero__eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  flex-shrink: 0;
}
.hero__title { max-width: 800px; }
.hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, #3b82f6, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__sub {
  max-width: 540px;
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.7;
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero__proof {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.8rem;
  color: var(--text-3);
  flex-wrap: wrap;
  justify-content: center;
}
.hero__proof-item { display: flex; align-items: center; gap: 6px; }
.hero__preview {
  margin-top: 24px;
  width: 100%;
  max-width: 960px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,0.7);
}
.hero__preview-bar {
  height: 40px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
}
.hero__preview-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border-hi);
}
.hero__preview-content {
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.hero__tool-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero__tool-icon {
  width: 36px; height: 36px;
  background: var(--accent-dim);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 16px;
}
.hero__tool-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}
.hero__tool-desc {
  font-size: 0.75rem;
  color: var(--text-3);
  line-height: 1.4;
}

/* ── Section headers ─────────────────────────────────────── */
.section-header {
  margin-bottom: 56px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.section-header--center {
  align-items: center;
  text-align: center;
}
.section-header p {
  max-width: 520px;
  font-size: 1rem;
}

/* ── Tool cards ──────────────────────────────────────────── */
.tool-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}
.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-dim) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.2s;
}
.tool-card:hover {
  border-color: rgba(59,130,246,0.3);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(59,130,246,0.15);
}
.tool-card:hover::before { opacity: 1; }
.tool-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.tool-card__icon {
  width: 44px; height: 44px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.tool-card__name {
  font-family: var(--font-d);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  position: relative;
  z-index: 1;
}
.tool-card__desc {
  font-size: 0.82rem;
  color: var(--text-3);
  line-height: 1.5;
  position: relative;
  z-index: 1;
}
.tool-card__action {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}
.tool-card__arrow {
  width: 28px; height: 28px;
  background: var(--bg-3);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 13px;
  transition: all 0.18s var(--ease);
}
.tool-card:hover .tool-card__arrow {
  background: var(--accent);
  color: #fff;
}

/* ── Feature list ────────────────────────────────────────── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.feature-row--rev { direction: rtl; }
.feature-row--rev > * { direction: ltr; }
.feature-visual {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.feature-visual::after {
  content: '';
  position: absolute;
  bottom: -40px; right: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
}
.feature-content { display: flex; flex-direction: column; gap: 20px; }
.feature-content h2 { max-width: 400px; }
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-2);
}
.feature-list__check {
  width: 18px; height: 18px;
  background: var(--accent-dim);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 11px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Pricing ─────────────────────────────────────────────── */
.pricing-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: all 0.2s var(--ease);
}
.pricing-card--featured {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(59,130,246,0.05) 0%, var(--bg-2) 60%);
  box-shadow: 0 0 40px var(--accent-glow);
}
.pricing-price { display: flex; align-items: baseline; gap: 4px; }
.pricing-price__amount {
  font-family: var(--font-d);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text);
}
.pricing-price__period {
  font-size: 0.85rem;
  color: var(--text-3);
}
.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-2);
}
.pricing-features li .chk {
  color: var(--green);
  font-size: 12px;
  flex-shrink: 0;
}

/* ── Stat counters ───────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-item {
  background: var(--bg-2);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-item__value {
  font-family: var(--font-d);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
}
.stat-item__label {
  font-size: 0.82rem;
  color: var(--text-3);
}

/* ── Contact ─────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 32px; }
.contact-channel {
  display: flex;
  align-items: center;
  gap: 14px;
}
.contact-channel__icon {
  width: 40px; height: 40px;
  background: var(--bg-3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.contact-channel__label {
  font-size: 0.78rem;
  color: var(--text-3);
}
.contact-channel__value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}
.contact-form-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.cf-turnstile-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.form-notice {
  font-size: 0.78rem;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Alert ───────────────────────────────────────────────── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert--success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.25); color: var(--green); }
.alert--error   { background: rgba(239,68,68,0.1);  border: 1px solid rgba(239,68,68,0.25);  color: #ef4444; }
.alert--info    { background: rgba(59,130,246,0.10); border: 1px solid rgba(59,130,246,0.25); color: var(--text-1); }
.alert--warning { background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.30); color: var(--text-1); }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer__brand { display: flex; flex-direction: column; gap: 14px; }
.footer__brand p { font-size: 0.85rem; color: var(--text-3); max-width: 260px; }
.footer__col h5 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer__links a {
  font-size: 0.875rem;
  color: var(--text-3);
  transition: color 0.15s;
}
.footer__links a:hover { color: var(--text); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-3);
}

/* ── Page hero (inner pages) ─────────────────────────────── */
.page-hero {
  padding: 120px 0 64px;
  border-bottom: 1px solid var(--border);
}

/* ── Prose (docs/legal) ──────────────────────────────────── */
.prose {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.prose h2 {
  font-size: 1.4rem;
  margin-top: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.prose h3 { font-size: 1.05rem; margin-top: 8px; }
.prose p { font-size: 0.9rem; color: var(--text-2); }
.prose ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.prose ul li { font-size: 0.9rem; color: var(--text-2); }

/* ── Divider ─────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ── Inline code ─────────────────────────────────────────── */
code {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 0.85em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: var(--text);
}

/* ── Light mode ──────────────────────────────────────────── */
body.light {
  --bg:         #f8fafc;
  --bg-2:       #ffffff;
  --bg-3:       #f1f5f9;
  --border:     rgba(0,0,0,0.08);
  --border-hi:  rgba(0,0,0,0.14);
  --text:       #0f172a;
  --text-2:     #475569;
  --text-3:     #94a3b8;
  --shadow:     0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg:  0 16px 64px rgba(0,0,0,0.12);
  --glass:      rgba(255,255,255,0.72);
  --glass-hi:   rgba(255,255,255,0.82);
  --glass-b:    rgba(15,23,42,0.10);
}
body.light .nav {
  background: rgba(248,250,252,0.9);
}
body.light .hero__grid {
  background-image:
    linear-gradient(rgba(0,0,0,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.05) 1px, transparent 1px);
}

/* ── Animations ──────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}
.animate-fade-up { animation: fadeUp 0.6s var(--ease) both; }
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }

/* ── Theme toggle ────────────────────────────────────────── */
.theme-toggle {
  width: 34px; height: 34px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-2);
  transition: background 0.15s, color 0.15s;
  font-size: 15px;
}
.theme-toggle:hover { background: var(--bg-2); color: var(--text); }

/* ── Tooltips ────────────────────────────────────────────── */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 200;
}
[data-tooltip]:hover::after { opacity: 1; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 40px; }
  .feature-row--rev { direction: ltr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  section { padding: 64px 0; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.6rem; }
  .nav__links { display: none; }
  .nav__actions .btn { display: none; }
  .nav__hamburger { display: block; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 120px 0 64px; }
  .hero__preview-content { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
  .contact-form-card { padding: 24px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .hero__preview-content { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}


/* ── Navbar search dropdown ─────────────────────────────── */
.nav__search { position: relative; }
.nav__mobile-search { position: relative; }
.nav__search-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: rgba(13, 20, 32, 0.98);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 55px rgba(0,0,0,0.55);
  padding: 10px;
  display: none;
  max-height: 320px;
  overflow: auto;
  z-index: 999;
}
.nav__search-dropdown.is-open { display: block; }
.nav__search-empty {
  color: var(--text-3);
  font-size: 0.88rem;
  padding: 10px 12px;
}
.nav__search-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text);
  cursor: pointer;
}
.nav__search-item:hover,
.nav__search-item.is-active {
  background: rgba(59,130,246,0.12);
  border-color: rgba(59,130,246,0.22);
}
.nav__search-item__top {
  display: flex;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
}
.nav__search-item__name { font-weight: 650; font-size: 0.95rem; }
.nav__search-item__meta { color: var(--text-3); font-size: 0.78rem; white-space: nowrap; }
.nav__search-item__desc { color: var(--text-2); font-size: 0.82rem; margin-top: 4px; }

@media (max-width: 820px) {
  .nav__search-dropdown { top: calc(100% + 8px); max-height: 260px; }
}


/* ============================================================
   NAV responsiveness + search dropdown positioning
   ============================================================ */
.nav__search { position: relative; }
.nav__mobile-search { position: relative; }

/* Show hamburger + mobile nav on small screens */

  .nav__actions { display: none; }
  .nav__hamburger { display: block; font-size: 1.25rem; }
}

/* Mobile menu enhancements */
.nav__mobile-details {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--bg-3);
}
.nav__mobile-details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}
.nav__mobile-details summary::-webkit-details-marker { display:none; }
.nav__mobile-details__links {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}
.nav__mobile-details__links a {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text-2);
}
.nav__mobile-actions {
  display: grid;
  gap: 10px;
  margin: 10px 0 6px;
}

/* ============================================================
   Auth modal
   ============================================================ */

/* ================================================================
   TOOL UI v7 — Shared tool workspace styles
   ================================================================ */

/* ── Tool Page Hero ─────────────────────────────────────────── */
.tool-hero {
  padding: 32px 0 0;
}
.tool-hero__inner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 32px 0 24px;
}
.tool-hero__icon {
  font-size: 2.5rem;
  line-height: 1;
  flex-shrink: 0;
  width: 60px; height: 60px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tool-hero__meta { display: flex; flex-direction: column; gap: 6px; }
.tool-hero__breadcrumb { font-size: 0.78rem; color: var(--text-3); }
.tool-hero__breadcrumb a { color: var(--accent); }
.tool-hero__title { font-size: 1.6rem; font-weight: 720; letter-spacing: -0.02em; margin: 0; }
.tool-hero__desc { font-size: 0.9rem; color: var(--text-2); margin: 4px 0 0; }
.tool-hero__badges { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* ── Tool Workspace ─────────────────────────────────────────── */
.tool-workspace {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  padding-bottom: 80px;
}
@media (max-width: 860px) {
  .tool-workspace { grid-template-columns: 1fr; }
}
.tool-panel {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.tool-panel__head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.tool-panel__title {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
}
.tool-panel__body { padding: 18px; }

/* ── Dropzone ───────────────────────────────────────────────── */
.dropzone {
  border: 2px dashed var(--border);
  border-radius: 14px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
  position: relative;
}
.dropzone:hover, .dropzone.drag-over {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.dropzone__icon { font-size: 2.2rem; margin-bottom: 10px; display: block; }
.dropzone__label { font-size: 0.95rem; font-weight: 600; color: var(--text); }
.dropzone__sub { font-size: 0.8rem; color: var(--text-3); margin-top: 4px; }
.dropzone__btn {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 18px;
  border-radius: 8px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
  pointer-events: none;
}

/* ── File Queue ─────────────────────────────────────────────── */
.file-queue { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.85rem;
}
.file-item__icon { font-size: 1.2rem; flex-shrink: 0; }
.file-item__info { flex: 1; min-width: 0; }
.file-item__name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-item__size { font-size: 0.75rem; color: var(--text-3); }
.file-item__remove {
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.file-item__remove:hover { background: rgba(239,68,68,0.12); color: #f87171; }
.file-item__handle {
  cursor: grab;
  color: var(--text-3);
  font-size: 0.9rem;
  flex-shrink: 0;
  user-select: none;
}
.file-item.dragging { opacity: 0.5; }
.file-item.is-dragging { opacity: 0.6; }
.file-item.drag-over { outline: 2px solid var(--accent); outline-offset: 2px; }

.file-item__move { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.file-item__btn {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.4;
}
.file-item__btn:hover { border-color: rgba(255,255,255,0.18); }
.file-item__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }


/* ── Settings Panel ─────────────────────────────────────────── */
.settings-group { display: flex; flex-direction: column; gap: 14px; }
.settings-row { display: flex; flex-direction: column; gap: 5px; }
.settings-row label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.settings-row select,
.settings-row input[type="text"],
.settings-row input[type="number"] {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--text);
  font-family: var(--font-b);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
}
.settings-row select:focus,
.settings-row input:focus { border-color: var(--accent); }
.settings-row input[type="range"] { width: 100%; accent-color: var(--accent); }
.settings-hint { font-size: 0.75rem; color: var(--text-3); }

/* ── Run Button ─────────────────────────────────────────────── */
.tool-run-btn {
  width: 100%;
  padding: 13px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 16px;
  letter-spacing: -0.01em;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.tool-run-btn:hover { background: #2563eb; transform: translateY(-1px); }
.tool-run-btn:disabled { background: var(--bg-3); color: var(--text-3); cursor: not-allowed; transform: none; }
.tool-run-btn.locked { background: var(--bg-3); border: 1px solid var(--border); color: var(--text-2); }
.tool-run-btn.locked:hover { background: var(--bg-3); border-color: var(--accent); color: var(--accent); transform: none; }

/* ── Progress ───────────────────────────────────────────────── */
.tool-progress { display: none; margin-top: 14px; }
.tool-progress.visible { display: block; }
.tool-progress__bar {
  height: 4px;
  background: var(--bg-3);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}
.tool-progress__fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 0%;
}
.tool-progress__label { font-size: 0.78rem; color: var(--text-3); text-align: center; }

/* ── Output / Result ────────────────────────────────────────── */
.tool-output {
  display: none;
  margin-top: 14px;
  padding: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.tool-output.visible { display: block; }
.tool-output__head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.tool-output__icon { font-size: 1.3rem; }
.tool-output__title { font-weight: 600; font-size: 0.9rem; }
.tool-output__meta { font-size: 0.78rem; color: var(--text-3); }
.tool-output__text {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
  color: var(--text-2);
  max-height: 280px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 10px;
  line-height: 1.6;
}
.tool-output__download {
  width: 100%;
  padding: 10px;
  border-radius: 9px;
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.25);
  color: #4ade80;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
}
.tool-output__download:hover { background: rgba(34,197,94,0.2); }

/* ── Canvas preview (PDF viewer) ───────────────────────────── */
.pdf-preview-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
}
.pdf-preview-canvas { display: block; width: 100%; }
.pdf-page-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px;
  font-size: 0.82rem;
  color: var(--text-2);
}
.pdf-page-nav button {
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  padding: 4px 12px;
  border-radius: 7px;
  font-size: 0.8rem;
}
.pdf-page-nav button:disabled { opacity: 0.3; cursor: not-allowed; }

/* ── Usage meter ────────────────────────────────────────────── */
.usage-meter {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--text-3);
}
.usage-meter__bar {
  flex: 1;
  height: 3px;
  background: var(--bg-3);
  border-radius: 2px;
  overflow: hidden;
}
.usage-meter__fill { height: 100%; background: var(--accent); border-radius: 2px; }
.usage-meter__label { white-space: nowrap; }

/* ── Upgrade modal ──────────────────────────────────────────── */
.upgrade-modal {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-2);
  padding: 0;
  max-width: 420px;
  width: 90%;
}
.upgrade-modal::backdrop { background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); }
.upgrade-modal__card { padding: 28px; }
.upgrade-modal__icon { font-size: 2rem; margin-bottom: 10px; }
.upgrade-modal__title { font-size: 1.1rem; font-weight: 700; }
.upgrade-modal__sub { font-size: 0.85rem; color: var(--text-2); margin-top: 6px; line-height: 1.5; }
.upgrade-modal__plans {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 18px 0;
}
.upgrade-plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
}
.upgrade-plan--highlight {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.upgrade-plan__name { font-weight: 600; font-size: 0.88rem; }
.upgrade-plan__price { font-size: 0.82rem; color: var(--text-3); }
.upgrade-modal__actions { display: flex; flex-direction: column; gap: 8px; }

/* ── Redaction canvas ───────────────────────────────────────── */
.redact-canvas-wrap {
  position: relative;
  display: inline-block;
  cursor: crosshair;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
}
.redact-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.redact-box {
  position: absolute;
  background: #000;
  border: 2px solid #f59e0b;
  cursor: pointer;
}

/* ── OCR output highlights ──────────────────────────────────── */
.ocr-word { cursor: pointer; }
.ocr-word:hover { background: rgba(59,130,246,0.3); }

/* ── Responsive tool workspace ──────────────────────────────── */
@media (max-width: 640px) {
  .tool-hero__inner { flex-direction: column; }
  .tool-hero__icon { width: 48px; height: 48px; font-size: 1.8rem; }
  .tool-hero__title { font-size: 1.3rem; }
  .dropzone { padding: 28px 14px; }
}


/* ── Auth modal — centered + responsive ────────────────────── */
.auth-modal {
  width: min(400px, calc(100vw - 32px));
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-2);
  color: var(--text);
  padding: 0;
  box-shadow: 0 32px 96px rgba(0,0,0,0.55);
  /* Force centering in all browsers */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}
.auth-modal::backdrop {
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.auth-modal__card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.auth-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.auth-modal__title {
  font-family: var(--font-b);
  font-weight: 700;
  font-size: 1.15rem;
}
.auth-modal__sub {
  color: var(--text-3);
  font-size: 0.85rem;
  margin-top: 5px;
  line-height: 1.5;
}
.auth-modal__close {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-2);
  border-radius: 9px;
  padding: 5px 10px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}
.auth-modal__close:hover { background: var(--bg-3); }
.auth-modal__grid {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.auth-modal__github-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 600;
}
.auth-modal__divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-3);
  font-size: 0.78rem;
  margin: 2px 0;
}
.auth-modal__divider::before,
.auth-modal__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-modal__foot {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 18px;
  font-size: 0.78rem;
  color: var(--text-3);
}


/* v8.0 — footer links in bottom bar */
.footer__bottom .footer__links{
  display:flex;
  flex-direction:row;
  gap:16px;
  flex-wrap:wrap;
}
.footer__bottom .footer__links a{
  color: var(--text-3);
  font-size:0.82rem;
}

/* ================================================================
   DA v9 — Layout & Nav Fixes
   ================================================================ */

/* Body top padding for fixed nav */
body { padding-top: 84px; }

/* Nav heading label in dropdown */
.nav__menu-heading {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 6px 11px 2px;
}

/* Mobile close button */
.nav__mobile-close {
  margin-top: 10px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-2);
  border-radius: 8px;
  padding: 7px 14px;
  width: 100%;
  cursor: pointer;
  font-family: var(--font-b);
  font-size: 0.82rem;
  transition: background 0.12s;
}
.nav__mobile-close:hover { background: var(--bg-3); }

/* Mobile links section */
.nav__mobile-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav__mobile-links a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text-2);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.12s;
}
.nav__mobile-links a:hover, .nav__mobile-links a.active {
  background: var(--bg-3);
  color: var(--text);
}

/* ── Footer v2 ────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  margin-top: 64px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 720px) {
  .footer__inner { grid-template-columns: 1fr; }
}
.footer__brand { max-width: 280px; }
.footer__tagline {
  color: var(--text-3);
  font-size: 0.82rem;
  line-height: 1.6;
  margin-top: 10px;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 580px) {
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer__col-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 4px;
}
.footer__col a {
  font-size: 0.84rem;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.12s;
}
.footer__col a:hover { color: var(--text); }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--text-3);
}
.footer__bottom-links {
  display: flex;
  gap: 16px;
}
.footer__bottom-links a {
  color: var(--text-3);
  text-decoration: none;
}
.footer__bottom-links a:hover { color: var(--text-2); }

/* ── Auth modal — centered ────────────────────────────────── */
.auth-modal {
  width: min(400px, calc(100vw - 32px));
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-2);
  color: var(--text);
  padding: 0;
  box-shadow: 0 32px 96px rgba(0,0,0,0.55);
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}
.auth-modal::backdrop {
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.auth-modal__card {
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.auth-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.auth-modal__title { font-weight: 700; font-size: 1.1rem; }
.auth-modal__sub {
  color: var(--text-3);
  font-size: 0.84rem;
  margin-top: 5px;
  line-height: 1.5;
}
.auth-modal__close {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-2);
  border-radius: 8px;
  padding: 5px 10px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}
.auth-modal__close:hover { background: var(--bg-3); }
.auth-modal__grid {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.auth-modal__github-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 600;
}
.auth-modal__divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-3);
  font-size: 0.78rem;
  margin: 2px 0;
}
.auth-modal__divider::before,
.auth-modal__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-modal__foot {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--text-3);
}

/* ── Pricing v2 ───────────────────────────────────────────── */
.pricing-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pricing-card--featured {
  border-color: var(--accent);
  background: linear-gradient(160deg, rgba(59,130,246,0.06), var(--bg-2));
}
.pricing-price { display: flex; align-items: baseline; gap: 4px; }
.pricing-price__amount { font-size: 2rem; font-weight: 800; }
.pricing-price__period { font-size: 0.82rem; color: var(--text-3); }
.pricing-features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.pricing-features li { display: flex; gap: 8px; font-size: 0.84rem; color: var(--text-2); }
.chk { color: var(--green); font-weight: 700; flex-shrink: 0; }
.pricing-plan-label {
  display: inline-block;
  margin-bottom: 8px;
}
.pricing-pending {
  font-size: 0.72rem;
  color: var(--text-3);
  text-align: center;
  margin-top: 4px;
}

/* ── Contact form ─────────────────────────────────────────── */
.form-group select {
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-3);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 0.88rem;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.15s;
}
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.contact-info h3 { font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-3); }



/* ── Tool inline error banner ───────────────────────────── */
.tool-inline-error{
  display:none;
  margin-top:12px;
  padding:12px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(239,68,68,0.25);
  background: rgba(239,68,68,0.08);
  color: var(--text-1);
  font-size: 0.88rem;
}

/* ── Sortable queue affordances ─────────────────────────── */
.file-queue--sortable .file-item--draggable{ cursor: grab; }
.file-queue--sortable .file-item--draggable.is-dragging{ opacity: .7; cursor: grabbing; }
.file-queue--sortable .file-item--draggable.is-drop-target{ outline: 2px dashed var(--accent); outline-offset: 2px; }


/* ── Landing v3 additions ───────────────────────────────── */
.section { padding: 88px 0; }
@media (max-width: 860px) { .section { padding: 64px 0; } }

.how-grid { margin-top: 10px; }
.how-card { padding: 22px; }
.how-card__icon{
  width: 38px; height: 38px; border-radius: 12px;
  display:flex; align-items:center; justify-content:center;
  background: var(--bg-3); border: 1px solid var(--border);
  color: var(--text); font-family: var(--font-b); font-weight: 700;
  margin-bottom: 14px;
}
.how-card__title{ font-family: var(--font-b); font-weight: 700; margin-bottom: 6px; }
.how-card__desc{ color: var(--text-2); line-height: 1.6; }

.category-tile{
  display:block;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-decoration:none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}
.category-tile:hover{
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
  transform: translateY(-2px);
}
.category-tile__top{ display:flex; align-items:center; justify-content:space-between; margin-bottom: 14px; }
.category-tile__icon{ font-size: 1.4rem; }
.category-tile__name{ font-family: var(--font-b); font-weight: 800; margin-bottom: 6px; }
.category-tile__desc{ color: var(--text-2); line-height: 1.6; margin-bottom: 14px; }
.category-tile__cta{ color: var(--accent); font-family: var(--font-b); font-weight: 600; }

.badge--mode-local{ background: rgba(34,197,94,0.12); color: var(--green); }
.badge--mode-edge{ background: rgba(245,158,11,0.12); color: var(--amber); }

.matrix{
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
}
.matrix__table{
  width:100%;
  border-collapse: collapse;
}
.matrix__table th, .matrix__table td{
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.matrix__table th{
  text-align:left;
  color: var(--text);
  font-family: var(--font-b);
  font-weight: 700;
  background: rgba(255,255,255,0.02);
}
.matrix__table td{ color: var(--text-2); line-height: 1.55; }
.matrix__foot{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 6px 2px;
}
@media (max-width: 720px){
  .matrix__foot{ flex-direction: column; align-items:flex-start; }
  .matrix__table thead{ display:none; }
  .matrix__table, .matrix__table tbody, .matrix__table tr, .matrix__table td{ display:block; width:100%; }
  .matrix__table tr{ border-bottom: 1px solid var(--border); padding: 10px 0; }
  .matrix__table td{ border: none; padding: 6px 10px; }
  .matrix__table td:first-child{ font-family: var(--font-b); font-weight: 700; color: var(--text); }
}

.card__kicker{ color: var(--text-2); font-size: 0.82rem; font-family: var(--font-b); letter-spacing: 0.02em; margin-bottom: 10px; }
.card__title{ margin: 0 0 10px; font-family: var(--font-b); font-weight: 800; }
.card__text{ color: var(--text-2); line-height: 1.65; margin: 0; }


/* ── Tool directory controls ─────────────────────────────── */
.tool-directory-controls{
  display:flex;
  flex-direction: column;
  gap: 14px;
  margin: 18px 0 40px;
}
.tool-directory-search input{
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  outline: none;
}
.tool-directory-search input:focus{
  border-color: rgba(59,130,246,0.6);
  box-shadow: 0 0 0 4px rgba(59,130,246,0.12);
}
.filter-bar{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-bar button{
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-2);
  font-family: var(--font-b);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s var(--ease);
}
.filter-bar button:hover{ background: var(--bg-3); color: var(--text); }
.filter-bar button.active{
  background: rgba(59,130,246,0.14);
  border-color: rgba(59,130,246,0.45);
  color: var(--text);
}


/* Trust panel */
.trust-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 14px;
  background: var(--panel);
  margin-top: 14px;
}
.trust-panel__row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 0.95rem;
}
.trust-panel__k {
  color: var(--text-3);
  font-weight: 600;
}
.trust-panel__v {
  color: var(--text-2);
}
.trust-panel__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  color: var(--text-1);
}
.trust-panel__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(99,102,241,0.08);
  color: var(--text-2);
  font-size: 0.85rem;
}


@media (max-width: 768px) {
  .docs-toc { display:none !important; }
}
@media (max-width: 430px) {
  .container { padding-left: 14px; padding-right: 14px; }
  .tool-hero__inner { gap: 14px; }
  .nav__search { display:none; }
}
@media (max-width: 375px) {
  .btn { padding-left: 12px; padding-right: 12px; }
  .tool-panel__head { gap: 8px; }
}

.file-queue__empty{padding:10px 12px;border:1px dashed var(--border);border-radius:12px;color:var(--text-3);font-size:0.95rem;background:rgba(255,255,255,0.02);}

/* ============================================================
   Nav v10 — Floating Glass Morphism (No search bar)
   ============================================================ */

/* Remove old nav shell / search styles that conflict */
.nav__search, .nav__menu, .nav__menu-btn, .nav__menu-dropdown,
.nav__menu-heading, .nav__menu-chevron, .nav__menu-divider,
.nav__mobile, .nav__mobile-shell, .nav__mobile-search,
.nav__mobile-links, .nav__mobile-actions, .nav__mobile-close,
.nav__search-icon, .nav__search-input, .nav__kbd {
  display: none !important;
}

/* New nav pill */
.nav {
  position: fixed;
  top: 16px;
  left: 0; right: 0;
  z-index: 200;
  padding: 0 20px;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.nav__pill {
  pointer-events: all;
  width: 100%;
  max-width: 1100px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 10px 0 16px;

  /* Glass morphism */
  background: rgba(8,12,18, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  box-shadow:
    0 4px 24px rgba(0,0,0,0.45),
    0 1px 0 rgba(255,255,255,0.06) inset;
  transition: border-color 0.2s, background 0.2s;
}
body.light .nav__pill {
  background: rgba(255,255,255,0.78);
  border-color: rgba(15,23,42,0.10);
  box-shadow: 0 4px 24px rgba(0,0,0,0.12), 0 1px 0 rgba(255,255,255,0.9) inset;
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}
.nav__logo-icon {
  width: 28px; height: 28px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.nav__logo-text {
  font-family: var(--font-d);
}

/* Desktop links (center) */
.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 auto;
  padding: 0 16px;
}
.nav__link {
  padding: 7px 13px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.nav__link:hover, .nav__link.active {
  background: rgba(255,255,255,0.06);
  color: var(--text);
}
body.light .nav__link:hover, body.light .nav__link.active {
  background: rgba(0,0,0,0.06);
}

/* Actions (right) */
.nav__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Theme toggle */
.nav__theme-btn {
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.nav__theme-btn:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-color: var(--border-hi);
}
body.light .nav__theme-btn:hover { background: rgba(0,0,0,0.05); }
.nav__theme-icon { line-height: 1; font-size: 1rem; }

/* Auth group */
.nav__auth-group {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
}
.nav__signin {
  padding: 7px 13px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.nav__signin:hover { background: rgba(255,255,255,0.06); color: var(--text); }
body.light .nav__signin:hover { background: rgba(0,0,0,0.05); }

.nav__cta {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s;
}
.nav__cta:hover { opacity: 0.88; transform: translateY(-1px); }
.nav__cta svg { opacity: 0.85; }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4.5px;
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  padding: 9px 8px;
  transition: background 0.12s;
}
.nav__hamburger:hover { background: rgba(255,255,255,0.06); }
body.light .nav__hamburger:hover { background: rgba(0,0,0,0.05); }
.nav__ham-bar {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text-2);
  border-radius: 2px;
  transition: transform 0.22s var(--ease), opacity 0.15s;
}
.nav__hamburger.is-open .nav__ham-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__hamburger.is-open .nav__ham-bar:nth-child(2) { opacity: 0; }
.nav__hamburger.is-open .nav__ham-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Drawer (mobile) ─────────────────────────────────────── */
.nav__drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
}
.nav__drawer.is-open { display: block; }
.nav__drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.nav__drawer-panel {
  position: absolute;
  top: 0; right: 0;
  width: min(340px, 92vw);
  height: 100%;
  background: var(--bg-2);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s var(--ease);
  overflow-y: auto;
}
body.light .nav__drawer-panel { background: #fff; }
.nav__drawer.is-open .nav__drawer-panel { transform: translateX(0); }

.nav__drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.nav__drawer-close {
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s, color 0.12s;
}
.nav__drawer-close:hover { background: rgba(255,255,255,0.06); color: var(--text); }
body.light .nav__drawer-close:hover { background: rgba(0,0,0,0.05); }

.nav__drawer-links {
  flex: 1;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav__drawer-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.nav__drawer-links a:hover, .nav__drawer-links a.active {
  background: rgba(255,255,255,0.05);
  color: var(--text);
}
body.light .nav__drawer-links a:hover,
body.light .nav__drawer-links a.active {
  background: rgba(0,0,0,0.05);
}
.nav__drawer-div {
  height: 1px;
  background: var(--border);
  margin: 8px 10px;
}

.nav__drawer-foot {
  padding: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}
.nav__drawer-github {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px;
  border-radius: 11px;
  border: 1px solid var(--border-hi);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.12s;
}
.nav__drawer-github:hover { background: rgba(255,255,255,0.08); }
body.light .nav__drawer-github { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.12); }
body.light .nav__drawer-github:hover { background: rgba(0,0,0,0.06); }

.nav__drawer-signup {
  display: block;
  text-align: center;
  padding: 11px;
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s;
}
.nav__drawer-signup:hover { opacity: 0.88; }
.nav__drawer-signin {
  display: block;
  text-align: center;
  padding: 9px;
  border-radius: 10px;
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.12s;
}
.nav__drawer-signin:hover { color: var(--text); }
.nav__drawer-theme {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-2);
  font-size: 0.875rem;
  font-family: var(--font-b);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.nav__drawer-theme:hover { background: rgba(255,255,255,0.05); color: var(--text); }
body.light .nav__drawer-theme:hover { background: rgba(0,0,0,0.05); }
.nav__drawer-theme-label { font-weight: 500; }

/* ── Responsive breakpoints ─────────────────────────────── */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__auth-group { display: none; }
  .nav__theme-btn { display: none; }
  .nav__hamburger { display: flex; }
  .nav { top: 12px; }
}
@media (max-width: 480px) {
  .nav { padding: 0 12px; }
  .nav__pill { padding: 0 8px 0 12px; height: 52px; border-radius: 16px; }
}

