/* ==========================================================================
   LOCALFILENEST V2 — MASTER DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* --- 1. DESIGN TOKENS & CSS VARIABLES --- */
:root {
  /* Brand Palette */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-dark: #1e40af;
  --primary-light: #eff6ff;
  --primary-surface: #f0f7ff;
  --primary-border: #bfdbfe;
  --primary-glow: rgba(37, 99, 235, 0.18);

  /* Neutrals & Surfaces */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-input: #f8fafc;
  
  /* Text Colors */
  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #475569;
  --text-subtle: #64748b;
  --text-inverse: #ffffff;

  /* Borders & Dividers */
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --border-focus: #2563eb;

  /* Category Pastel Themes */
  --cat-images-bg: #eef2ff;
  --cat-images-text: #4338ca;
  --cat-images-border: #c7d2fe;
  --cat-images-icon: #4f46e5;

  --cat-pdf-bg: #fef2f2;
  --cat-pdf-text: #b91c1c;
  --cat-pdf-border: #fecaca;
  --cat-pdf-icon: #dc2626;

  --cat-docs-bg: #f0f9ff;
  --cat-docs-text: #0369a1;
  --cat-docs-border: #bae6fd;
  --cat-docs-icon: #0284c7;

  --cat-conv-bg: #fffbeb;
  --cat-conv-text: #b45309;
  --cat-conv-border: #fde68a;
  --cat-conv-icon: #d97706;

  --cat-comp-bg: #ecfdf5;
  --cat-comp-text: #047857;
  --cat-comp-border: #a7f3d0;
  --cat-comp-icon: #059669;

  --cat-util-bg: #f5f3ff;
  --cat-util-text: #6d28d9;
  --cat-util-border: #ddd6fe;
  --cat-util-icon: #7c3aed;

  /* Status Colors */
  --success-bg: #ecfdf5;
  --success-text: #065f46;
  --success-border: #a7f3d0;
  --success-main: #10b981;

  --error-bg: #fef2f2;
  --error-text: #991b1b;
  --error-border: #fecaca;
  --error-main: #ef4444;

  --warning-bg: #fffbeb;
  --warning-text: #92400e;
  --warning-border: #fde68a;
  --warning-main: #f59e0b;

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Global Layout Tokens */
  --container-max: 1240px;
  --content-max: 1080px;
  --reading-max: 880px;
  --section-gap: 56px;
  --grid-gap: 24px;

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.03);
  --shadow-xl: 0 20px 32px -6px rgba(15, 23, 42, 0.09), 0 8px 16px -4px rgba(15, 23, 42, 0.04);
  --shadow-primary: 0 8px 20px -4px rgba(37, 99, 235, 0.35);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- 2. BASE & RESET --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

button:disabled, [disabled], .btn-action-full:disabled, .btn-primary:disabled, .btn-secondary:disabled {
  cursor: not-allowed !important;
  opacity: 0.55;
  pointer-events: auto;
}

img[hidden], [hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.2;
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* --- 3. LAYOUT & CONTAINERS --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.reading-container {
  width: 100%;
  max-width: var(--reading-max);
  margin-left: auto;
  margin-right: auto;
}

main {
  flex: 1;
}

.section {
  padding: var(--section-gap) 0;
}

.section-container {
  padding: 48px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 44px;
}

.section-header.text-left {
  text-align: left;
  margin: 0 0 32px;
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.section-header-row {
  margin-bottom: 32px;
}

.section-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.2vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 8px;
}

.section-subtitle,
.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* Page Hero Banner */
.page-hero-banner {
  padding: 56px 0 36px;
  text-align: center;
  position: relative;
}

.page-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.page-title {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 4.2vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-main);
  line-height: 1.15;
  margin: 0 0 14px;
}

.page-subtitle {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}


/* --- 4. GLOBAL HEADER & NAVIGATION --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.site-header .header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

/* Brand Logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-main);
  letter-spacing: -0.03em;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
  color: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.28);
}

.brand-icon svg {
  width: 20px;
  height: 20px;
}

.brand-name {
  display: flex;
  align-items: center;
}

.brand-highlight {
  color: var(--primary);
  font-weight: 600;
}

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.90rem;
  font-weight: 600;
  color: var(--text-body);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background-color: var(--primary-light);
}

/* Nav Dropdown (Tools Mega Menu) */
.nav-item-dropdown {
  position: static;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.90rem;
  font-weight: 600;
  color: var(--text-body);
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.nav-dropdown-trigger:hover,
.nav-item-dropdown:hover .nav-dropdown-trigger,
.nav-item-dropdown.open .nav-dropdown-trigger {
  color: var(--primary);
  background-color: var(--primary-light);
}

.nav-chevron {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  transition: transform var(--transition-fast);
}

.nav-item-dropdown:hover .nav-chevron,
.nav-item-dropdown.open .nav-chevron {
  transform: rotate(180deg);
}

.mega-menu-panel {
  position: absolute;
  top: calc(100% - 2px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 980px;
  max-width: calc(100vw - 32px);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.15), 0 0 1px 1px rgba(0, 0, 0, 0.05);
  padding: 24px 28px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--transition-normal);
  z-index: 110;
  white-space: normal;
}

.mega-menu-panel::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-item-dropdown:hover .mega-menu-panel,
.nav-item-dropdown:focus-within .mega-menu-panel,
.nav-item-dropdown.open .mega-menu-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  white-space: normal;
}

.mega-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mega-col-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
  white-space: normal;
}

.mega-col-header svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
}

.mega-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  margin-bottom: 4px;
  text-decoration: none;
  white-space: normal;
}

.mega-item:hover {
  background-color: var(--bg-subtle);
  transform: translateX(2px);
}

.mega-item-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--primary-light);
  color: var(--primary);
}

.mega-item-icon svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.mega-item-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  white-space: normal;
}

.mega-item-title {
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 2px;
  white-space: normal;
}

.mega-item-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.35;
  white-space: normal;
}

.mega-menu-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-subtle);
  margin: 18px -28px -24px -28px;
  padding: 14px 28px;
  border-bottom-left-radius: var(--radius-xl);
  border-bottom-right-radius: var(--radius-xl);
  white-space: normal;
}

.mega-menu-footer-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-body);
  white-space: normal;
}

.mega-menu-footer-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--success-main);
  fill: none;
  flex-shrink: 0;
}

.mega-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}

.mega-footer-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
}

/* Header Right Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Header Search Bar */
.header-search-bar {
  position: relative;
}

.header-search-bar input {
  width: 155px;
  height: 38px;
  padding: 0 12px 0 34px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
  background-color: var(--bg-input);
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.header-search-bar input:focus {
  width: 195px;
  background-color: #ffffff;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.header-search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  stroke: var(--text-subtle);
  fill: none;
  stroke-width: 2.2;
  pointer-events: none;
}

/* Language Pill (Direct Switch Link) */
.header-lang-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  font-size: 0.88rem;
  font-weight: 750;
  color: var(--text-main);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.header-lang-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.reading-container {
  max-width: var(--reading-max);
  margin: 0 auto;
  width: 100%;
}

.mobile-lang-switch-item {
  background: var(--primary-light) !important;
  color: var(--primary) !important;
  font-weight: 700 !important;
  margin-top: 10px;
  border: 1px solid var(--primary-border);
}

/* Header Primary CTA */
.header-cta-btn {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  min-height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-primary);
  transition: all var(--transition-fast);
}

.header-cta-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  color: #ffffff;
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mobile-nav-toggle:hover {
  background: var(--bg-subtle);
  border-color: var(--border-focus);
}

.mobile-nav-toggle svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* --- 5. HERO SECTION --- */
.hero-section {
  position: relative;
  padding: 56px 0 64px;
  overflow: hidden;
  background: linear-gradient(180deg, #f0f7ff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--border-color);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 32px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1px solid var(--border-color);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-body);
  box-shadow: var(--shadow-xs);
  margin-bottom: 20px;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success-main);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.hero-title {
  font-size: clamp(2.4rem, 5.2vw, 3.75rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--text-main);
  margin-bottom: 18px;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 700;
  box-shadow: var(--shadow-primary);
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -4px rgba(37, 99, 235, 0.45);
  color: #ffffff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.96rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

/* Hero 3D / Isometric Graphic Container */
.hero-art-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.hero-art-card {
  position: relative;
  width: 100%;
  max-width: 800px;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-illustration-img {
  width: 100%;
  max-width: 800px;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 16px 36px rgba(37, 99, 235, 0.14));
  transition: transform var(--transition-normal);
}

.hero-illustration-img:hover {
  transform: translateY(-4px) scale(1.02);
}

/* --- 6. TRUST & BENEFIT STRIP --- */
.trust-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 24px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 12px;
}

.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.trust-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
  fill: none;
}

.trust-icon.blue { background: #eff6ff; color: #2563eb; }
.trust-icon.green { background: #ecfdf5; color: #10b981; }
.trust-icon.amber { background: #fffbeb; color: #f59e0b; }
.trust-icon.purple { background: #f5f3ff; color: #8b5cf6; }

.trust-content {
  display: flex;
  flex-direction: column;
}

.trust-title {
  font-size: 0.95rem;
  font-weight: 750;
  color: var(--text-main);
  line-height: 1.3;
}

.trust-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- 7. TOOL CATEGORIES SECTION --- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-focus);
}

.category-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  transition: transform var(--transition-fast);
}

.category-card:hover .category-icon-wrapper {
  transform: scale(1.08);
}

.category-icon-wrapper svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.category-title {
  font-size: 0.98rem;
  font-weight: 750;
  color: var(--text-main);
  margin-bottom: 4px;
}

.category-count {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

/* Category specific colors */
.cat-images { background-color: var(--cat-images-bg); color: var(--cat-images-text); }
.cat-images .category-count { background: #e0e7ff; color: var(--cat-images-text); }

.cat-pdf { background-color: var(--cat-pdf-bg); color: var(--cat-pdf-text); }
.cat-pdf .category-count { background: #fee2e2; color: var(--cat-pdf-text); }

.cat-documents { background-color: var(--cat-docs-bg); color: var(--cat-docs-text); }
.cat-documents .category-count { background: #e0f2fe; color: var(--cat-docs-text); }

.cat-conversion { background-color: var(--cat-conv-bg); color: var(--cat-conv-text); }
.cat-conversion .category-count { background: #fef3c7; color: var(--cat-conv-text); }

.cat-compression { background-color: var(--cat-comp-bg); color: var(--cat-comp-text); }
.cat-compression .category-count { background: #d1fae5; color: var(--cat-comp-text); }

.cat-utilities { background-color: var(--cat-util-bg); color: var(--cat-util-text); }
.cat-utilities .category-count { background: #ede9fe; color: var(--cat-util-text); }

/* --- 8. POPULAR TOOLS & TOOL CARDS --- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.tools-grid.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: #cbd5e1;
}

.tool-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.tool-card-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.tool-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.12));
}

.tool-card:hover .tool-card-icon {
  transform: scale(1.08) translateY(-2px);
}

.tool-card-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.tool-card-badge {
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  color: var(--text-muted);
}

.tool-card-title {
  font-size: 1.12rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.3;
}

.tool-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
  flex: 1;
}

.tool-card-formats {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.format-pill {
  font-size: 0.72rem;
  font-weight: 750;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  background: var(--bg-subtle);
  color: var(--text-body);
  border: 1px solid var(--border-color);
}

/* --- 9. PRIVACY REASSURANCE BANNER --- */
.privacy-callout-section {
  padding: 20px 0;
}

.privacy-callout-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 36px;
  background: linear-gradient(135deg, #f0f7ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  gap: 24px;
}

.privacy-callout-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.privacy-callout-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  color: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.privacy-callout-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.privacy-callout-text h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0369a1;
  margin-bottom: 4px;
}

.privacy-callout-text p {
  font-size: 0.94rem;
  color: #0c4a6e;
  max-width: 620px;
}

.privacy-callout-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 750;
  color: var(--primary);
  white-space: nowrap;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.privacy-callout-link:hover {
  background: var(--primary-light);
  transform: translateX(3px);
}

/* --- 10. HOW IT WORKS (STEPS) --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 24px 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  text-align: center;
  align-items: center;
}

.step-number-badge {
  position: absolute;
  top: -14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.step-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-xl);
  background: var(--primary-light);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.step-icon-wrap svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 750;
  color: var(--text-main);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- 11. FAQ ACCORDIONS --- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item[open] {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  width: 18px;
  height: 18px;
  stroke: var(--text-muted);
  stroke-width: 2.2;
  fill: none;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  stroke: var(--primary);
}

.faq-answer {
  padding: 0 22px 20px;
  color: var(--text-body);
  font-size: 0.94rem;
  line-height: 1.65;
}

/* --- 12. TOOL DIRECTORY PAGE (`outils.html`) --- */
.directory-header {
  padding: 48px 0 32px;
  background: linear-gradient(180deg, #f0f7ff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--border-color);
}

.directory-controls {
  max-width: 780px;
  margin: 24px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
}

.search-input-wrapper input {
  width: 100%;
  height: 52px;
  padding: 0 20px 0 48px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
  background: #ffffff;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.search-input-wrapper input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.search-input-wrapper svg {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  stroke: var(--text-subtle);
  fill: none;
}

.category-filter-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
  background: #ffffff;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--text-body);
  transition: all var(--transition-fast);
}

.filter-pill:hover, .filter-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow-primary);
}

/* --- 13. CANONICAL TOOL WORKSPACE UI --- */
.tool-page-wrapper {
  padding: 36px 0 64px;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  min-height: 44px;
}

.breadcrumb-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 4px;
  color: var(--text-muted);
  font-weight: 500;
}

.breadcrumb-nav a:hover {
  color: var(--primary);
}

.breadcrumb-nav span {
  display: inline-flex;
  align-items: center;
  color: var(--text-subtle);
}

.breadcrumb-nav .current {
  color: var(--text-main);
  font-weight: 650;
}

/* Tool Header Block */
.tool-header-block {
  margin-bottom: 32px;
}

.tool-header-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.tool-header-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-xl);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--primary-light);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.tool-header-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.12));
}

.tool-header-icon:has(img) {
  background: transparent !important;
  box-shadow: none !important;
}

.tool-header-icon svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.tool-header-info h1 {
  font-size: clamp(1.8rem, 3.8vw, 2.5rem);
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 6px;
}

.tool-header-info p {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.tool-meta-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--success-bg);
  color: var(--success-text);
  border: 1px solid var(--success-border);
  font-size: 0.82rem;
  font-weight: 700;
}

.privacy-badge svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
}

/* Main Tool Grid (2-column desktop / 1-column mobile) */
.tool-workspace-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 48px;
}

.tool-workspace-grid.single-col {
  grid-template-columns: 1fr;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.tool-card-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

/* Upload Dropzone Component */
.upload-dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  border: 2px dashed #93c5fd;
  border-radius: var(--radius-xl);
  background: #f8fbff;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.upload-dropzone:hover, .upload-dropzone.dragover {
  border-color: var(--primary);
  background: #eff6ff;
  box-shadow: 0 0 0 4px var(--primary-glow);
  transform: scale(1.008);
}

.dropzone-icon-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.15);
  transition: transform var(--transition-fast);
}

.upload-dropzone:hover .dropzone-icon-circle {
  transform: translateY(-3px) scale(1.05);
}

.dropzone-icon-circle svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.dropzone-title {
  font-size: 1.18rem;
  font-weight: 750;
  color: var(--text-main);
  margin-bottom: 6px;
}

.dropzone-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.dropzone-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: var(--shadow-primary);
  transition: all var(--transition-fast);
}

.dropzone-btn:hover {
  background: var(--primary-hover);
}

.dropzone-formats-hint {
  font-size: 0.8rem;
  color: var(--text-subtle);
  margin-top: 14px;
}

/* File Selected State Card */
.file-selected-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.file-selected-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.file-selected-thumb {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
}

.file-selected-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 1.5rem;
}

.file-selected-info {
  display: flex;
  flex-direction: column;
}

.file-selected-name {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-main);
  max-width: 240px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-selected-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.file-selected-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-icon-danger {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  color: var(--error-main);
  background: var(--error-bg);
  transition: all var(--transition-fast);
}

.btn-icon-danger:hover {
  background: #fee2e2;
  transform: scale(1.05);
}

/* Tool Options Panel */
.options-panel-title {
  font-size: 1.15rem;
  font-weight: 750;
  color: var(--text-main);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.option-group {
  margin-bottom: 20px;
}

.option-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.option-label {
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--text-main);
}

.option-value-badge {
  font-size: 0.85rem;
  font-weight: 750;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

/* Custom Range Slider */
.custom-range-slider {
  width: 100%;
  height: 6px;
  border-radius: var(--radius-pill);
  background: #e2e8f0;
  outline: none;
  accent-color: var(--primary);
  cursor: pointer;
}

/* Inputs & Form Fields */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-input, .form-select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: #ffffff;
  font-size: 0.92rem;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.input-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn-action-full {
  width: 100%;
  height: 50px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-primary);
  transition: all var(--transition-fast);
  margin-top: 10px;
}

.btn-action-full:hover:not(:disabled) {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-action-full:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Processing State Component */
.processing-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}

.progress-radial-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  margin-bottom: 20px;
}

.progress-linear-wrap {
  width: 100%;
  max-width: 420px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: #e2e8f0;
  overflow: hidden;
  margin: 16px 0 8px;
}

.progress-linear-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, #38bdf8 100%);
  border-radius: var(--radius-pill);
  transition: width 0.2s ease;
}

.processing-title {
  font-size: 1.25rem;
  font-weight: 750;
  color: var(--text-main);
  margin-bottom: 6px;
}

.processing-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Success Result State */
.result-card-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeIn 0.35s ease-out;
}

.result-header-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success-text);
  font-weight: 700;
  font-size: 1rem;
}

.result-header-banner svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.comparison-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  flex-direction: column;
}

.comparison-box-title {
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.comparison-preview-img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 10px;
}

.comparison-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.savings-pill {
  font-size: 0.76rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--success-bg);
  color: var(--success-text);
}

.result-actions-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-download-main {
  width: 100%;
  height: 52px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-primary);
  transition: all var(--transition-fast);
}

.btn-download-main:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-secondary-action {
  width: 100%;
  height: 44px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-body);
  font-size: 0.92rem;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.btn-secondary-action:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
}

/* Error State Card */
.error-alert-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius-xl);
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  color: var(--error-text);
  margin-bottom: 20px;
}

.error-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fee2e2;
  color: var(--error-main);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.error-content h4 {
  font-size: 1rem;
  font-weight: 750;
  color: var(--error-text);
  margin-bottom: 4px;
}

.error-content p {
  font-size: 0.88rem;
  color: #7f1d1d;
}

/* --- 14. SEO & ARTICLE CONTENT CARDS (Below Tool) --- */
.tool-content-section {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.article-card-v2 {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.article-card-v2 h2 {
  font-size: 1.65rem;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.article-card-v2 h3 {
  font-size: 1.25rem;
  margin: 24px 0 10px;
}

.article-card-v2 p {
  font-size: 0.98rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 16px;
}

.article-card-v2 ol, .article-card-v2 ul {
  padding-left: 24px;
  margin-bottom: 20px;
}

.article-card-v2 li {
  font-size: 0.98rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 8px;
}

/* --- 15. GLOBAL FOOTER --- */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 64px 0 32px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-tagline {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 14px 0 20px;
  max-width: 300px;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
  margin-bottom: 18px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-list a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 4px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-links-list a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--border-light);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: var(--primary);
}

/* --- 16. MOBILE MENU & RESPONSIVENESS --- */
.mobile-nav-drawer {
  position: fixed;
  top: 74px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-surface);
  z-index: 1000;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.mobile-nav-drawer[hidden] {
  display: none !important;
}

.mobile-nav-drawer.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  display: flex !important;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--text-main);
  background: var(--bg-subtle);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mobile-nav-item:hover, .mobile-nav-item:focus-visible {
  background: var(--primary-light);
  color: var(--primary);
}

.mobile-nav-item svg {
  width: 22px;
  height: 22px;
  stroke: var(--primary);
  fill: none;
  flex-shrink: 0;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- 16. WORKFLOW, GUIDES & ABOUT COMPONENTS --- */

/* 4 Steps Workflow Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 26px 20px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.step-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
}

.step-header {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 14px;
}

.step-number {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-pill);
  background: var(--primary-light);
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: 1px solid var(--primary-border);
}

.step-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: var(--bg-subtle);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin: 2px auto 0 auto;
  flex-shrink: 0;
}

.step-icon-wrap svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step-card h3 {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 750;
  color: var(--text-main);
  margin: 0 0 8px;
  line-height: 1.3;
  text-align: center;
}

.step-card p {
  font-size: 0.90rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  text-align: center;
}

/* Local Processing Visual Banner */
.local-flow-banner {
  background: linear-gradient(135deg, #f0f7ff 0%, #e0edff 50%, #eff6ff 100%);
  border: 1.5px solid var(--primary-border);
  border-radius: var(--radius-2xl);
  padding: 36px 32px;
  margin: 44px 0;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.local-flow-header {
  text-align: center;
  margin-bottom: 28px;
}

.local-flow-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  border: 1px solid var(--primary-border);
}

.local-flow-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 6px;
}

.local-flow-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.local-flow-diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
}

.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 8px;
}

.flow-node-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  transition: transform var(--transition-normal);
}

.flow-node-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flow-node-icon.node-blue { background: var(--primary-light); color: var(--primary); }
.flow-node-icon.node-indigo { background: #e0e7ff; color: #4338ca; }
.flow-node-icon.node-green { background: #d1fae5; color: #047857; }
.flow-node-icon.node-amber { background: #fef3c7; color: #b45309; }

.flow-node-title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 750;
  color: var(--text-main);
  margin: 0;
}

.flow-node-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  opacity: 0.7;
}

.flow-arrow svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Privacy Highlight Card */
.privacy-highlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 36px 0;
}

.privacy-card-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.privacy-shield-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: var(--primary-light);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid var(--primary-border);
}

.privacy-shield-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.privacy-card-text h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 750;
  color: var(--text-main);
  margin: 0 0 4px;
}

.privacy-card-text p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  max-width: 680px;
}

.privacy-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--primary-light);
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.privacy-card-link:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateX(2px);
}

/* Guides Section Cards */
.tools-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tool-card-v2 {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.tool-card-v2:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
}

.tool-card-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.tool-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.tool-card-icon:has(img) {
  background: transparent !important;
}

.tool-card-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tool-card-icon.cat-compression { background: var(--cat-comp-bg); color: var(--cat-comp-icon); }
.tool-card-icon.cat-conversion { background: var(--cat-conv-bg); color: var(--cat-conv-icon); }
.tool-card-icon.cat-pdf { background: var(--cat-pdf-bg); color: var(--cat-pdf-icon); }

.tool-card-title {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 750;
  color: var(--text-main);
  margin: 0 0 8px;
  line-height: 1.3;
}

.tool-card-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 20px;
  flex-grow: 1;
}

.tool-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.format-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.tool-card-arrow {
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 700;
  transition: transform var(--transition-fast);
}

.tool-card-v2:hover .tool-card-arrow {
  transform: translateX(4px);
}

/* FAQ Component */
.faq-container-box {
  max-width: var(--reading-max);
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faq-item[open] {
  border-color: var(--primary-border);
  box-shadow: var(--shadow-sm);
  background: #ffffff;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.6;
}

.faq-answer p {
  margin: 0;
}

/* 4 Value Blocks (Trust Grid) */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trust-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 26px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.trust-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.trust-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-text h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 750;
  color: var(--text-main);
  margin: 0 0 6px;
}

.trust-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Mission & About Article Card */
.article-card-v2 {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  padding: 44px 40px;
  box-shadow: var(--shadow-md);
}

.article-card-v2 h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.025em;
  margin: 0 0 16px;
}

.article-card-v2 p {
  font-size: 1.02rem;
  color: var(--text-body);
  line-height: 1.7;
  margin: 0 0 16px;
}

.article-card-v2 p:last-child {
  margin-bottom: 0;
}

.section-divider {
  border: 0;
  height: 1px;
  background: var(--border-color);
  margin: 36px 0;
}

/* Technology Chips */
.tech-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}

.tech-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.tech-chip:hover {
  background: var(--primary-light);
  border-color: var(--primary-border);
  color: var(--primary-dark);
}

.tech-chip svg {
  width: 18px;
  height: 18px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Structured Engagements */
.engagements-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.engagement-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.engagement-item:hover {
  background: var(--primary-surface);
  border-color: var(--primary-border);
}

.engagement-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.engagement-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.engagement-content h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--text-main);
  margin: 0 0 4px;
}

.engagement-content p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Footer Description */
.footer-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 12px;
  max-width: 320px;
}

/* --- 17. RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tool-workspace-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1080px) {
  .main-nav, .header-search-bar, .header-cta-btn {
    display: none;
  }
  .mobile-nav-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .hero-copy {
    align-items: center;
  }
  .hero-actions {
    justify-content: center;
    width: 100%;
  }
  .hero-actions a {
    width: 100%;
  }
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .privacy-callout-card {
    flex-direction: column;
    text-align: center;
  }
  .privacy-callout-left {
    flex-direction: column;
  }
  .local-flow-diagram {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 16px;
  }
  .flow-arrow {
    transform: rotate(90deg);
  }
  .privacy-highlight-card {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 24px 20px;
  }
  .privacy-card-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .privacy-btn {
    width: 100%;
    justify-content: center;
  }
  .tools-grid-v2 {
    grid-template-columns: 1fr !important;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
  .tool-header-top {
    flex-direction: column;
    text-align: center;
  }
  .tool-meta-strip {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .categories-grid {
    grid-template-columns: 1fr;
  }
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  .tool-card-panel {
    padding: 20px 16px;
  }
}

/* --- CONTACT FORM & PAGE STYLES --- */
.contact-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.95fr);
  gap: 32px;
  align-items: start;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
}

.contact-card-header {
  margin-bottom: 28px;
}

.contact-card-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.contact-card-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-field-full {
  grid-column: 1 / -1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
}

.form-required {
  color: var(--error-main);
  margin-left: 4px;
}

.form-input,
.form-textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-main);
  background: var(--bg-input);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-subtle);
  opacity: 0.7;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.form-input.is-invalid,
.form-textarea.is-invalid {
  border-color: var(--error-main) !important;
  background-color: #fffdfd;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.55;
}

.form-error-msg {
  color: var(--error-main);
  font-size: 0.82rem;
  font-weight: 600;
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.form-error-msg.visible {
  display: flex;
}

.contact-privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 22px;
}

.contact-privacy-note svg {
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 2px;
}

.contact-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

.contact-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--primary);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-primary);
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
}

.contact-submit-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -4px rgba(37, 99, 235, 0.45);
}

.contact-submit-btn:active {
  transform: translateY(0);
}

.contact-status-alert {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-top: 20px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
}

.contact-status-alert.info {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border: 1px solid var(--primary-border);
}

.contact-sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-visual-banner {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.contact-visual-svg {
  width: 120px;
  height: auto;
  filter: drop-shadow(0 6px 12px rgba(37, 99, 235, 0.15));
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 20px;
  height: 20px;
}

.contact-info-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 2px;
}

.contact-info-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.contact-info-desc a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-info-desc a:hover {
  color: var(--primary-dark);
}

@media (max-width: 900px) {
  .contact-layout-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .contact-card {
    padding: 24px 18px;
  }
  .contact-form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .contact-form-actions {
    width: 100%;
  }
}

/* ==========================================================================
   QA AUDIT FIXES — ACCESSIBILITY, RESPONSIVE, UI & CONTRAST
   ========================================================================== */

/* 1. Prevent Horizontal Scroll Overflow on Tablets / Laptops */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

.header-actions {
  max-width: 100%;
}

.header-cta-btn {
  white-space: nowrap;
  max-width: 100%;
}

/* 2. Standardize Interactive Button Cursors */
button,
input[type="submit"],
input[type="button"],
input[type="reset"],
.btn,
.action-btn,
.header-cta-btn,
.custom-file-label {
  cursor: pointer !important;
}

button:disabled,
input:disabled,
.btn:disabled {
  cursor: not-allowed !important;
}

/* 3. Standardize Card Border Radius Tokens */
.card,
.tool-card,
.mega-item,
.guide-card,
.faq-card,
.info-card {
  border-radius: var(--radius-md) !important;
}

/* 4. Touch & Tap Target Accessibility Size (Min 44x44px for interactive elements) */
.lang-selector-btn,
.lang-btn,
.nav-link,
.header-actions a,
.footer-links a,
.mega-item {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

input[type="range"] {
  min-height: 28px;
  cursor: pointer;
  padding: 8px 0;
}

/* 5. Improved Keyboard Focus Accessibility */
.nav-dropdown-trigger:focus-visible,
.mega-item:focus-visible,
.mega-footer-link:focus-visible,
.header-lang-pill:focus-visible,
.header-cta-btn:focus-visible,
.mobile-nav-toggle:focus-visible {
  outline: 2px solid var(--primary) !important;
  outline-offset: 3px !important;
}

/* 6. Improved Contrast for Error & Secondary Buttons */
button.btn-danger,
.btn-red,
.delete-btn {
  color: #7f1d1d !important;
  background-color: #fee2e2 !important;
  border: 1px solid #fca5a5 !important;
}

button.btn-danger:hover,
.btn-red:hover {
  background-color: #fecaca !important;
}



/* UX Improvements */
.dropzone.dragover, .tool-upload-box.dragover {
    border-color: var(--primary, #2563eb);
    background-color: rgba(37, 99, 235, 0.05);
}
.btn-success {
    background-color: #10B981 !important;
    color: white !important;
}
.btn-success:hover {
    background-color: #059669 !important;
}
.resize-inputs {
    display: flex; gap: 10px; justify-content: center; margin-bottom: 15px;
}
.resize-inputs input {
    padding: 8px; border: 1px solid #ccc; border-radius: 4px; width: 120px; text-align: center;
}

/* ==========================================================================
   AUDIT FIXES & DESIGN SYSTEM STANDARDIZATION
   ========================================================================== */

/* 1. Global Overflow Prevention */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

/* 2. Responsive Header Actions Fix (RESP-001 - RESP-050) */
@media (max-width: 768px) {
  .header-search-bar {
    display: none !important;
  }
  .header-actions {
    gap: 8px !important;
  }
  .site-header .header-inner {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* 3. Non-Overlapping Header Search Form & 44px Touch Target */
.header-search-bar {
  display: flex !important;
  align-items: center !important;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 9999px !important;
  background-color: var(--bg-input, #f8fafc);
  padding: 0 4px 0 10px !important;
  height: 44px !important;
  min-width: 180px;
  transition: border-color var(--transition-fast, 0.15s ease), box-shadow var(--transition-fast, 0.15s ease);
}

.header-search-bar:focus-within {
  border-color: var(--primary, #2563eb) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18) !important;
  background-color: #ffffff !important;
}

.header-search-bar .header-search-icon {
  position: static !important;
  transform: none !important;
  flex-shrink: 0;
  width: 16px !important;
  height: 16px !important;
  margin-right: 6px !important;
  stroke: var(--text-subtle, #64748b) !important;
}

.header-search-bar input#header-search-input {
  border: none !important;
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: 100% !important;
  font-size: 0.85rem !important;
  padding: 0 4px !important;
  width: auto !important;
}

.header-search-bar button[type="submit"] {
  position: static !important;
  transform: none !important;
  border: none !important;
  background: transparent !important;
  cursor: pointer !important;
  color: var(--primary, #2563eb) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
}

.header-search-bar button[type="submit"]:hover {
  background-color: var(--primary-light, #eff6ff) !important;
}

/* 4. Card Border Radius Standardization (UI-001, UI-002, VIS-001) */
:root {
  --radius-card: 16px;
}

.tool-card,
.category-card,
.feature-card,
.guide-card,
.faq-item,
.hero-card,
.info-card,
.step-card,
.stat-card,
.about-card,
.contact-card,
.directory-card {
  border-radius: var(--radius-card, 16px) !important;
}

/* 5. Minimum Interactive Target Size >= 24px (A11Y-002, A11Y-006, A11Y-048) */
.mega-footer-link,
a.mega-footer-link {
  min-height: 28px !important;
  padding: 4px 8px !important;
  display: inline-flex !important;
  align-items: center !important;
}

/* 6. Contrast Enhancements for Text & Buttons (A11Y-025, A11Y-027) */
.dropzone-formats-hint {
  color: #1e293b !important;
  font-weight: 500 !important;
}

.cat-docs .btn-primary,
button.btn-primary.cat-docs-btn {
  background-color: #0369a1 !important;
  color: #ffffff !important;
}

/* 7. Cursor Rules: pointer for active buttons, not-allowed ONLY when disabled (UI-003 - UI-017) */
button, .btn, .btn-primary, .btn-secondary, .btn-action-full {
  cursor: pointer;
}

button:disabled, button[disabled], [aria-disabled="true"] {
  cursor: not-allowed !important;
  opacity: 0.6;
}
