/* ══ RESET & SOPHISTICATED MINIMAL WHITE DESIGN TOKENS ══ */
*,
*::before,
*::after,
input,
textarea,
button,
select,
a,
label,
.clickable {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: none !important;
}

@media (hover: none),
(pointer: coarse) {
  * {
    cursor: auto !important;
  }

  #shift-cursor,
  #shift-trail {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    cursor: auto !important;
  }

  #shift-cursor,
  #shift-trail {
    display: none !important;
  }
}

:root {
  --bg: #fafafa;
  --bg-surface: #ffffff;
  --bg-subtle: #f4f4f5;
  --bg-subtle-hover: #ebebee;
  --border: #e4e4e7;
  --border-subtle: #f1f1f4;
  --border-hover: #d4d4d8;

  --text-main: #09090b;
  --text-muted: #52525b;
  --text-dim: #71717a;

  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: #eff6ff;
  --accent-border: #bfdbfe;

  --danger: #dc2626;
  --danger-light: #fef2f2;
  --danger-border: #fecaca;

  --success: #059669;
  --success-light: #ecfdf5;
  --success-border: #a7f3d0;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 2px 8px -2px rgba(0, 0, 0, 0.04), 0 12px 30px -8px rgba(0, 0, 0, 0.06);
}

html,
body {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Custom Cursor */
#shift-cursor {
  position: fixed;
  pointer-events: none !important;
  z-index: 99999 !important;
  width: 20px;
  height: 20px;
  transition: width 0.13s, height 0.13s;
  left: -50px;
  top: -50px;
  transform-origin: 4px 4px;
}

#shift-cursor svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 4px rgba(37, 99, 235, 0.45));
  transition: filter 0.13s, transform 0.12s;
}

#shift-cursor.hover {
  width: 24px;
  height: 24px;
}

#shift-cursor.hover svg {
  filter: drop-shadow(0 0 8px rgba(37, 99, 235, 0.75));
}

#shift-cursor.click svg {
  transform: scale(0.85);
}

#shift-cursor.typing {
  width: 3px;
  height: 20px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.8);
  transform: translate(8px, 0);
}

#shift-cursor.typing svg {
  display: none;
}

#shift-trail {
  position: fixed;
  pointer-events: none !important;
  z-index: 99998 !important;
  width: 14px;
  height: 14px;
  opacity: 0.28;
  transition: left 0.18s ease-out, top 0.18s ease-out, opacity 0.15s ease;
  left: -50px;
  top: -50px;
}

#shift-trail.typing,
#shift-cursor.typing ~ #shift-trail {
  opacity: 0 !important;
}

#shift-trail svg {
  width: 100%;
  height: 100%;
}

/* Layout Shell */
.shell {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* Header Nav */
nav.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px; border-bottom: 1px solid var(--border); margin-bottom: 44px;
  gap: 16px; width: 100%;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-main); flex-shrink: 0; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 10px; background: #09090b;
  display: flex; align-items: center; justify-content: center; color: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12); flex-shrink: 0;
}
.logo-name { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.logo-tag { font-size: 0.7rem; color: var(--text-dim); background: var(--bg-subtle); padding: 2px 8px; border-radius: var(--radius-full); border: 1px solid var(--border); font-weight: 700; letter-spacing: 0.05em; white-space: nowrap; flex-shrink: 0; }

.nav-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.nav-link { font-size: 0.875rem; color: var(--text-muted); text-decoration: none; font-weight: 600; transition: color 0.15s; white-space: nowrap; }
.nav-link:hover { color: var(--text-main); }

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}

.logo-mark {
  width: 32px;
  height: 32px;
  background: var(--text-main);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
}

.logo-mark svg {
  stroke: #ffffff !important;
  color: #ffffff !important;
  fill: none !important;
}

.logo-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.logo-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-subtle);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.badge-privacy {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px;
  border-radius: var(--radius-full); background: var(--success-light); border: 1px solid var(--success-border);
  color: var(--success); font-size: 0.75rem; font-weight: 700; white-space: nowrap; flex-shrink: 0;
}
.dot-live { width: 6px; height: 6px; border-radius: 50%; background: var(--success); flex-shrink: 0; }

/* Hero Header */
.hero {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 40px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--text-main);
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 660px;
  margin: 0 auto;
  font-weight: 400;
}

/* Minimal Warning Card */
.alert-card {
  background: var(--danger-light);
  border: 1px solid var(--danger-border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 32px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
}

.alert-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(220, 38, 38, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--danger);
  flex-shrink: 0;
}

.alert-content h4 {
  font-size: 0.925rem;
  font-weight: 700;
  color: #991b1b;
  margin-bottom: 3px;
}

.alert-content p {
  font-size: 0.85rem;
  color: #7f1d1d;
  line-height: 1.5;
}

/* Minimal White Dropzone Card */
.dropzone {
  background: var(--bg-surface);
  border: 2px dashed var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 32px;
  text-align: center;
  transition: all 0.2s ease;
  position: relative;
  box-shadow: var(--shadow-card);
  margin-bottom: 36px;
}

.dropzone:hover,
.dropzone.drag-over {
  border-color: var(--accent);
  background: var(--accent-light);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.dropzone-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin: 0 auto 18px;
  transition: transform 0.2s ease;
}

.dropzone:hover .dropzone-icon {
  transform: scale(1.08);
  background: #ffffff;
}

.dropzone-title {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  color: var(--text-main);
}

.dropzone-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.btn-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border: none;
  padding: 12px 26px;
  border-radius: var(--radius-md);
  font-size: 0.925rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.925rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--border-hover);
}

/* Rules Settings Panel */
.panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-card);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.panel-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.rule-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all 0.15s ease;
  cursor: none !important;
  user-select: none;
}

.rule-card:hover {
  border-color: var(--accent-border);
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.08);
}

.rule-card:has(input[type="checkbox"]:checked) {
  background: #ffffff;
  border-color: var(--accent-border);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.06);
}

.rule-card input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  margin-top: 2px;
  cursor: none !important;
}

.rule-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
  display: block;
  margin-bottom: 2px;
}

.rule-info p {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.4;
}

.custom-pattern-box {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.input-field {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.15s;
}

.input-field:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

/* Results Dashboard */
.dashboard {
  display: none;
}

.dashboard.active {
  display: block;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.stat-val {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.stat-val.redacted {
  color: var(--danger);
}

.stat-val.success {
  color: var(--success);
}

.stat-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Minimal White Inspector Code Diff */
.inspector {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 36px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}

.inspector-top {
  background: var(--bg-subtle);
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.inspector-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.inspector-badge {
  font-size: 0.725rem;
  font-weight: 700;
  color: var(--danger);
  background: var(--danger-light);
  border: 1px solid var(--danger-border);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.code-box {
  padding: 14px 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: #334155;
  max-height: 480px;
  overflow-y: auto;
  overflow-x: auto;
  background: #fafafa;
  position: relative;
  line-height: 1.65;
}

.code-line {
  display: flex;
  align-items: flex-start;
  min-height: 24px;
  padding: 2px 18px 2px 0;
  transition: background 0.12s ease;
}

.code-line:hover {
  background: #f1f5f9;
}

.code-line.line-redacted {
  background: #fef2f2;
  border-left: 3px solid var(--danger);
}

.line-num {
  width: 50px;
  min-width: 50px;
  flex-shrink: 0;
  text-align: right;
  padding-right: 14px;
  color: #94a3b8;
  font-size: 0.75rem;
  user-select: none;
  font-weight: 500;
}

.line-content {
  flex: 1;
  white-space: pre-wrap;
  word-break: break-all;
  color: inherit;
}

/* Modern Syntax Highlighting Tokens */
.json-key { color: #0f172a; font-weight: 600; }
.json-string { color: #2563eb; }
.json-literal { color: #7c3aed; font-weight: 600; }
.redact-tag {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.775rem;
  letter-spacing: 0.02em;
}

/* Status Toast & Progress Indicator */
.status-toast {
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  color: var(--accent-hover);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin-bottom: 28px;
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.status-toast.success {
  background: var(--success-light);
  border-color: var(--success-border);
  color: var(--success);
}

.status-toast-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid var(--accent);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.code-summary-footer {
  padding: 14px 18px;
  margin-top: 10px;
  background: #f1f5f9;
  border-top: 1px solid #e2e8f0;
  border-bottom-left-radius: var(--radius-xl);
  border-bottom-right-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  flex-wrap: wrap;
}

.btn-load-all-lines {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--accent);
  transition: all 0.15s ease;
  cursor: none !important;
}

.btn-load-all-lines:hover {
  background: var(--accent-light);
  border-color: var(--accent-border);
  color: var(--accent-hover);
}

/* SEO Content Section */
.seo-section {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.seo-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 38px 34px;
  margin-bottom: 44px;
  box-shadow: var(--shadow-card);
}

.seo-heading {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-main);
  margin-bottom: 16px;
}

.seo-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 18px;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.seo-feature-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.seo-feature-box:hover {
  border-color: var(--accent-border);
  background: #ffffff;
}

.seo-feature-title {
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.seo-feature-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* FAQ Accordion Section */
.faq-section {
  margin-top: 48px;
  margin-bottom: 64px;
}

.faq-title {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 10px;
}

.faq-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 620px;
  margin: 0 auto 36px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.faq-item[open] {
  border-color: var(--accent-border);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
}

.faq-question {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  padding: 18px 22px;
  cursor: none !important;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-dim);
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
  color: var(--accent);
  font-weight: 600;
}

.faq-answer {
  padding: 0 22px 20px;
  font-size: 0.885rem;
  color: var(--text-muted);
  line-height: 1.65;
  border-top: 1px solid transparent;
  animation: faqExpand 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.faq-answer code {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.825rem;
  color: var(--text-main);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 16px;
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 16px;
  font-weight: 600;
}

footer a:hover {
  color: var(--text-main);
}

/* ══ MOBILE RESPONSIVE STYLES ══ */
@media (max-width: 900px) {
  .logo-tag {
    display: none; /* Hide 'SECURITY LABS' badge under 900px to prevent crowding header links */
  }
}

@media (max-width: 768px) {
  .shell {
    padding: 0 16px 60px;
  }

  nav.nav {
    height: auto;
    padding: 16px 0;
    margin-bottom: 28px;
    gap: 12px;
  }

  .nav-right {
    gap: 12px;
  }

  .nav-link {
    font-size: 0.825rem;
  }

  .badge-privacy {
    font-size: 0.725rem;
    padding: 4px 10px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .hero {
    margin-bottom: 28px;
  }

  .hero-eyebrow {
    font-size: 0.7rem;
    padding: 4px 12px;
    margin-bottom: 14px;
  }

  .hero-title {
    font-size: clamp(1.65rem, 6vw, 2.5rem);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
  }

  .hero-subtitle {
    font-size: 0.925rem;
    line-height: 1.6;
  }

  .alert-card {
    padding: 14px 16px;
    margin-bottom: 24px;
    gap: 12px;
  }

  .alert-icon {
    width: 24px;
    height: 24px;
  }

  .alert-content h4 {
    font-size: 0.875rem;
  }

  .alert-content p {
    font-size: 0.8rem;
  }

  .dropzone {
    padding: 28px 16px;
    margin-bottom: 24px;
    border-radius: var(--radius-lg);
  }

  .dropzone-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
  }

  .dropzone-title {
    font-size: 1.1rem;
  }

  .dropzone-desc {
    font-size: 0.825rem;
    margin-bottom: 18px;
  }

  .btn-group {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    font-size: 0.875rem;
  }

  .panel {
    padding: 20px 16px;
    margin-bottom: 24px;
  }

  .rules-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stat-card {
    padding: 14px;
  }

  .stat-val {
    font-size: 1.4rem;
  }

  .inspector {
    border-radius: var(--radius-lg);
  }

  .code-box {
    padding: 14px 16px;
    font-size: 0.78rem;
    max-height: 320px;
  }

  .seo-card {
    padding: 24px 18px;
    border-radius: var(--radius-lg);
  }

  .seo-heading {
    font-size: 1.25rem;
  }

  .seo-text {
    font-size: 0.885rem;
  }

  .seo-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .faq-title {
    font-size: 1.35rem;
  }

  .faq-subtitle {
    font-size: 0.875rem;
    margin-bottom: 24px;
  }

  .faq-question {
    padding: 14px 16px;
    font-size: 0.885rem;
  }

  .faq-answer {
    padding: 0 16px 16px;
    font-size: 0.825rem;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  footer div {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  footer a {
    margin-left: 0;
  }
}

@media (max-width: 600px) {
  .nav-link {
    display: none; /* Hide Tools/Blog navigation links on narrow mobile viewports to prevent topbar overflow */
  }

  .badge-privacy span:last-child {
    font-size: 0;
  }
  .badge-privacy span:last-child::before {
    content: "In-Browser";
    font-size: 0.725rem;
  }
}

@media (max-width: 480px) {
  .logo-name {
    font-size: 1rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .seo-card {
    padding: 20px 14px;
  }

  .faq-question {
    padding: 12px 14px;
    font-size: 0.85rem;
  }

  .faq-answer {
    padding: 0 14px 14px;
    font-size: 0.8rem;
  }
}