/* ==========================================================================
   OmniTools Enterprise Design System - Crisp White Theme
   Inspired by Stripe, Linear, Vercel & Cloudflare design aesthetics
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Color Palette - Enterprise Pristine White & Slate */
  --bg-body: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-card-subtle: #F8FAFC;
  --bg-hover: #F1F5F9;
  --bg-input: #FFFFFF;

  /* Borders & Dividers */
  --border-color: #E2E8F0;
  --border-subtle: #F1F5F9;
  --border-focus: #2563EB;
  --border-hover: #CBD5E1;

  /* Typography Colors */
  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-inverse: #FFFFFF;

  /* Brand & Accents */
  --brand-blue: #2563EB;
  --brand-blue-hover: #1D4ED8;
  --brand-blue-light: #EFF6FF;
  --brand-indigo: #4F46E5;
  --brand-indigo-light: #EEF2FF;
  --brand-emerald: #059669;
  --brand-emerald-light: #ECFDF5;
  --brand-amber: #D97706;
  --brand-amber-light: #FFFBEB;
  --brand-rose: #E11D48;
  --brand-rose-light: #FFF1F2;

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.06), 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, Monaco, Consolas, monospace;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

img, svg {
  vertical-align: middle;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  line-height: 1.25;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

@media (min-width: 768px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2rem; }
}

p {
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: box-shadow var(--transition-fast);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.brand-icon-box {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

/* Clean Desktop Navigation Bar */
.nav-links {
  display: none;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
}

.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.885rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-item:hover {
  color: var(--brand-blue);
  background-color: var(--bg-hover);
}

.nav-item.active {
  color: var(--brand-blue);
  background-color: var(--brand-blue-light);
}

/* Navigation Dropdown */
.nav-dropdown-wrapper {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  width: 300px;
  background-color: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 0.5rem;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 60;
}

.nav-dropdown-wrapper:hover .nav-dropdown-menu,
.nav-dropdown-wrapper:focus-within .nav-dropdown-menu {
  display: flex;
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.dropdown-link:hover {
  background-color: var(--bg-hover);
}

.dropdown-icon {
  width: 32px;
  height: 32px;
  background-color: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
  flex-shrink: 0;
}

.dropdown-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.dropdown-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.search-trigger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
  flex-shrink: 0;
}

.search-trigger-btn:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
  color: var(--text-secondary);
}

.search-btn-text {
  display: none;
}

.kbd-shortcut {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  background-color: var(--bg-hover);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  margin-left: auto;
}

@media (min-width: 640px) {
  .search-trigger-btn {
    width: auto;
    height: auto;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-full);
    gap: 0.65rem;
  }
  .search-btn-text {
    display: inline;
  }
  .kbd-shortcut {
    display: inline-flex;
  }
}

.privacy-badge.header-privacy-badge {
  display: none !important;
}

@media (min-width: 860px) {
  .privacy-badge.header-privacy-badge {
    display: inline-flex !important;
  }
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  cursor: pointer;
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* SVG icon dimensions utility */
.w-3 { width: 0.75rem; height: 0.75rem; }
.h-3 { height: 0.75rem; }
.w-4 { width: 1rem; height: 1rem; }
.h-4 { height: 1rem; }
.w-5 { width: 1.25rem; height: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-6 { width: 1.5rem; height: 1.5rem; }
.h-6 { height: 1.5rem; }
svg.w-4, svg.w-5, svg.w-6 {
  flex-shrink: 0;
}

/* Mobile Drawer Enterprise Design */
.mobile-drawer {
  display: none;
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  max-height: 82vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-drawer.open {
  display: block !important;
  animation: drawerSlide 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

.mobile-drawer-inner {
  padding: 1.15rem 1rem 1.5rem;
}

.mobile-drawer-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
  padding: 0 0.25rem;
}

.mobile-cat-grid {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.mobile-cat-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background-color: #FAFAFA;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.mobile-cat-card:active,
.mobile-cat-card:hover {
  background-color: #EFF6FF;
  border-color: #BFDBFE;
  transform: translateX(2px);
}

.mobile-cat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.mobile-cat-icon svg {
  width: 18px !important;
  height: 18px !important;
  color: var(--brand-blue);
}

.mobile-cat-meta {
  flex: 1;
  min-width: 0;
}

.mobile-cat-title {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-primary);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-cat-badge {
  font-size: 0.725rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.mobile-cat-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
  opacity: 0.5;
  display: flex;
  align-items: center;
}

.mobile-drawer-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 1rem 0 0.85rem;
}

.mobile-secondary-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.mobile-sub-link {
  display: block;
  padding: 0.45rem 0.25rem;
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  background-color: #FAFAFA;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  text-align: center;
  transition: all var(--transition-fast);
}

.mobile-sub-link:hover,
.mobile-sub-link:active {
  background-color: var(--bg-hover);
  color: var(--brand-blue);
  border-color: #BFDBFE;
}

.mobile-drawer-footer-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 0.75rem;
  background-color: var(--brand-emerald-light);
  border: 1px solid rgba(5, 150, 105, 0.2);
  border-radius: var(--radius-md);
  font-size: 0.725rem;
  font-weight: 600;
  color: #065F46;
  text-align: center;
}

/* Privacy Guarantee Pill */
.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.775rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  background-color: var(--brand-emerald-light);
  color: var(--brand-emerald);
  border: 1px solid rgba(5, 150, 105, 0.15);
  white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.925rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  white-space: nowrap;
  user-select: none;
}

.btn-primary {
  background-color: var(--brand-blue);
  color: #FFFFFF;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background-color: var(--brand-blue-hover);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-secondary);
  border-color: var(--border-color);
  box-shadow: var(--shadow-xs);
}

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

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.825rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

/* Badges & Tags */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.badge-blue {
  background-color: var(--brand-blue-light);
  color: var(--brand-blue);
}

.badge-indigo {
  background-color: var(--brand-indigo-light);
  color: var(--brand-indigo);
}

.badge-emerald {
  background-color: var(--brand-emerald-light);
  color: var(--brand-emerald);
}

.badge-amber {
  background-color: var(--brand-amber-light);
  color: var(--brand-amber);
}

/* Cards */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

/* Responsive Grid Utilities */
.responsive-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .responsive-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.unit-converter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 768px) {
  .unit-converter-grid {
    grid-template-columns: 1fr auto 1fr;
    gap: 1.25rem;
  }
}

/* Tool Grid */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .tool-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .tool-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Tool Card Component */
.tool-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.tool-card:hover {
  transform: translateY(-3px);
  border-color: #93C5FD;
  box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.1);
}

.tool-card-icon {
  width: 42px;
  height: 42px;
  background-color: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
  margin-bottom: 1rem;
}

.tool-icon-svg {
  width: 22px;
  height: 22px;
}

.tool-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tool-card-desc {
  font-size: 0.865rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.tool-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.825rem;
  color: var(--brand-blue);
  font-weight: 600;
}

/* Form Controls */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.95rem;
  font-size: 0.925rem;
  color: var(--text-primary);
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
}

.form-control:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

textarea.form-control {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.5;
  resize: vertical;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb-item a:hover {
  color: var(--brand-blue);
}

.breadcrumb-separator {
  color: var(--border-hover);
}

.breadcrumb-item.active {
  color: var(--text-primary);
  font-weight: 600;
}

/* Hero Section */
.hero-section {
  padding: 2.25rem 0 1.75rem 0;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.04) 0%, transparent 70%);
}

@media (min-width: 768px) {
  .hero-section {
    padding: 4.5rem 0 3rem 0;
  }
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background-color: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: var(--shadow-xs);
  margin-bottom: 1.25rem;
  max-width: 100%;
  line-height: 1.35;
  text-align: center;
}

@media (min-width: 640px) {
  .hero-pill {
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    margin-bottom: 1.5rem;
  }
}

.hero-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
  line-height: 1.2;
  word-break: break-word;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.25rem;
  }
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  padding: 0 0.5rem;
}

@media (min-width: 640px) {
  .hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    padding: 0;
  }
}

/* Hero Search Box */
.hero-search-wrapper {
  width: 100%;
  max-width: 580px;
  margin: 0 auto 1.5rem auto;
  position: relative;
  box-sizing: border-box;
}

.hero-search-input {
  width: 100%;
  padding: 0.8rem 5.25rem 0.8rem 2.65rem;
  font-size: 0.925rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background-color: #FFFFFF;
  box-shadow: var(--shadow-md);
  outline: none;
  transition: all var(--transition-fast);
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .hero-search-input {
    padding: 1rem 6rem 1rem 3rem;
    font-size: 1.05rem;
  }
}

.hero-search-input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15), var(--shadow-lg);
}

.hero-search-icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 18px;
  height: 18px;
}

@media (min-width: 640px) {
  .hero-search-icon {
    left: 1.25rem;
    width: 20px;
    height: 20px;
  }
}

.hero-search-btn {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.45rem 0.9rem;
  font-size: 0.825rem;
}

@media (min-width: 640px) {
  .hero-search-btn {
    right: 0.45rem;
    padding: 0.65rem 1.25rem;
    font-size: 0.925rem;
  }
}

/* Quick Keyword Chips */
.quick-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  max-width: 700px;
  margin: 0 auto;
  font-size: 0.825rem;
}

@media (min-width: 640px) {
  .quick-chips {
    gap: 0.5rem;
  }
}

.chip {
  padding: 0.35rem 0.85rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.chip:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  background-color: var(--brand-blue-light);
}

/* Category Hub Navigation Tabs */
.category-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.cat-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-md);
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.cat-tab:hover {
  background-color: var(--bg-hover);
  color: var(--text-primary);
}

.cat-tab.active {
  background-color: var(--text-primary);
  color: #FFFFFF;
}

/* Trust Metric Highlights Grid */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 3.5rem 0;
}

@media (min-width: 768px) {
  .trust-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.trust-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-xs);
}

.trust-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1.25rem auto;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.trust-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* FAQ Section & Accordion */
.faq-section {
  margin: 4rem 0;
}

.faq-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.35rem;
  font-weight: 600;
  font-size: 1rem;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  gap: 1rem;
}

.faq-question:hover {
  background-color: var(--bg-hover);
}

.faq-icon {
  transition: transform var(--transition-fast);
  color: var(--text-muted);
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 1.35rem 1.25rem 1.35rem;
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  display: block;
}

/* How-To Step Guide */
.how-to-section {
  margin: 3.5rem 0;
}

.how-to-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.75rem;
}

@media (min-width: 768px) {
  .how-to-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .how-to-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.how-to-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
}

.how-to-step-num {
  width: 32px;
  height: 32px;
  background-color: var(--brand-blue-light);
  color: var(--brand-blue);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.how-to-card h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.how-to-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Horizontal Footer Grid Styling
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background-color: #FFFFFF;
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr 0.9fr;
    gap: 2rem;
  }
}

.footer-brand-col {
  padding-right: 1rem;
}

.footer-brand-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin-bottom: 1.15rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  font-size: 0.865rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--brand-blue);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-bottom-links a:hover {
  color: var(--brand-blue);
}

/* Search Modal Overlay */
.search-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 1.25rem 2rem 1.25rem;
}

.search-modal-backdrop.open {
  display: flex;
}

.search-modal {
  width: 100%;
  max-width: 620px;
  background-color: #FFFFFF;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  overflow: hidden;
  animation: modalIn 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

.search-modal-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.search-modal-input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 1.1rem;
  color: var(--text-primary);
  background: transparent;
}

.search-modal-results {
  max-height: 380px;
  overflow-y: auto;
  padding: 0.5rem;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.search-result-item:hover, .search-result-item.selected {
  background-color: var(--bg-hover);
}

.search-result-item .result-icon {
  width: 32px;
  height: 32px;
  background-color: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
  flex-shrink: 0;
}

.search-result-item .result-info {
  flex-grow: 1;
}

.search-result-item .result-title {
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--text-primary);
}

.search-result-item .result-cat {
  font-size: 0.775rem;
  color: var(--text-muted);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1.15rem;
  background-color: var(--text-primary);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: toastIn 200ms ease;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.animate-spin {
  animation: spin 1s linear infinite;
}

