/* ==========================================================================
   ToolNest Design System & Global Stylesheet
   Modern, accessible (WCAG AA), responsive, zero-framework architecture.
   ========================================================================== */

/* --- 1. CSS Custom Properties / Design Tokens --- */
:root {
  /* Color Palette - Light Theme (Default) */
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-elevated: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-active: #e2e8f0;
  
  --border-color: #e2e8f0;
  --border-subtle: #cbd5e1;
  --border-focus: #2563eb;

  --text-primary: #0f172a;       /* 14.5:1 contrast against #f8fafc */
  --text-secondary: #334155;     /* 7.5:1 contrast against #f8fafc */
  --text-muted: #64748b;         /* 4.6:1 contrast - passes WCAG AA */
  --text-inverse: #ffffff;

  --accent-primary: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-subtle: #eff6ff;
  --accent-gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --accent-glow: rgba(37, 99, 235, 0.15);

  --success: #16a34a;
  --success-bg: #f0fdf4;
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --error: #dc2626;
  --error-bg: #fef2f2;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  
  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;    /* 18px */
  --text-xl: 1.25rem;     /* 20px */
  --text-2xl: clamp(1.5rem, 2vw + 1rem, 1.875rem);
  --text-3xl: clamp(1.875rem, 3vw + 1rem, 2.25rem);
  --text-4xl: clamp(2.25rem, 4vw + 1rem, 3rem);

  /* Spacing Scale */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */

  /* Border Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

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

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout Constants */
  --max-width: 1280px;
  --header-height: 72px;
}

/* --- Dark Theme Variables --- */
[data-theme="dark"] {
  --bg-primary: #090d16;
  --bg-surface: #111827;
  --bg-elevated: #1e293b;
  --bg-subtle: #172033;
  --bg-active: #232f48;

  --border-color: #1f293d;
  --border-subtle: #2d3b54;
  --border-focus: #60a5fa;

  --text-primary: #f8fafc;       /* 16:1 contrast against #090d16 */
  --text-secondary: #cbd5e1;     /* 9.5:1 contrast against #090d16 */
  --text-muted: #94a3b8;         /* 5.2:1 contrast - passes WCAG AA */
  --text-inverse: #090d16;

  --accent-primary: #3b82f6;
  --accent-hover: #60a5fa;
  --accent-subtle: rgba(59, 130, 246, 0.15);
  --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --accent-glow: rgba(59, 130, 246, 0.25);

  --success: #22c55e;
  --success-bg: rgba(34, 197, 94, 0.15);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.15);
  --error: #ef4444;
  --error-bg: rgba(239, 68, 68, 0.15);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.7);
}

/* --- 2. Reset & Base Typography --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  position: relative;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  z-index: 9999;
  background: var(--accent-primary);
  color: #ffffff;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--transition-fast);
}
.skip-link:focus {
  top: var(--space-4);
  outline: 3px solid #ffffff;
  box-shadow: var(--shadow-lg);
}

/* Accessible focus styling */
:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 3px;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--accent-hover);
}

img, svg {
  max-width: 100%;
  display: block;
}

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

h1 { font-size: var(--text-4xl); margin-bottom: var(--space-4); }
h2 { font-size: var(--text-3xl); margin-bottom: var(--space-4); }
h3 { font-size: var(--text-2xl); margin-bottom: var(--space-3); }
h4 { font-size: var(--text-xl); margin-bottom: var(--space-2); }
p { margin-bottom: var(--space-4); color: var(--text-secondary); }

/* --- 3. Layout Containers --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

.site-main {
  flex: 1 0 auto;
}

.section {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

.section-title-wrap {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-10);
}

.section-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  background: var(--accent-subtle);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-2);
}

.section-desc {
  font-size: var(--text-lg);
  color: var(--text-muted);
}

/* --- 3b. Professional Luxury SaaS Hero Section & Stable Rotator --- */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 96px 20px 72px;
  text-align: center;
  background-color: #060913;
  background-image:
    radial-gradient(circle at 18% 18%, rgba(37, 99, 235, 0.24) 0%, transparent 45%),
    radial-gradient(circle at 82% 22%, rgba(139, 92, 246, 0.20) 0%, transparent 45%),
    radial-gradient(ellipse 90% 70% at 50% 20%, rgba(6, 9, 19, 0.35) 0%, rgba(6, 9, 19, 0.95) 85%, #060913 100%),
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  background-position: center top, center top, center top, center top, center top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  contain: paint;
}

[data-theme="light"] .hero-section {
  background-color: #f8fafc;
  background-image:
    radial-gradient(circle at 20% 15%, rgba(37, 99, 235, 0.10) 0%, transparent 50%),
    radial-gradient(circle at 80% 25%, rgba(147, 51, 234, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 80% 60% at 50% 10%, rgba(248, 250, 252, 0.84) 0%, #f8fafc 100%),
    linear-gradient(to right, rgba(148, 163, 184, 0.15) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.15) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 36px 36px, 36px 36px;
  border-bottom: 1px solid var(--border-color);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin: 0 auto;
}

/* Modern Glassmorphic Pill Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 12px;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(59, 130, 246, 0.32);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), 0 0 12px rgba(59, 130, 246, 0.15);
  font-size: var(--text-xs);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: var(--space-5);
  line-height: 1.2;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

[data-theme="light"] .hero-badge {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--text-primary);
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.1);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.28), 0 0 8px #10b981;
  flex-shrink: 0;
}

.hero-badge-tag,
.hero-badge-pill {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #ffffff !important;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

/* Rock-Solid Hero Title with Fixed-Height Rotator (Zero Layout Shift) */
.hero-title {
  font-size: clamp(2.35rem, 5.5vw, 4.1rem);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.hero-title-lead {
  display: block;
  color: #f8fafc;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  margin-bottom: 6px;
}

[data-theme="light"] .hero-title-lead {
  color: #0f172a;
  text-shadow: none;
}

.hero-rotator-line {
  display: block;
  min-height: 1.25em;
  height: 1.25em;
  line-height: 1.25em;
  overflow: hidden;
  position: relative;
}

.hero-rotator-text {
  display: inline-block;
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 45%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.25em;
  filter: drop-shadow(0 0 28px rgba(139, 92, 246, 0.42));
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  will-change: transform, opacity;
  transform: translateY(0);
  opacity: 1;
}

.hero-rotator-text.slide-out {
  opacity: 0;
  transform: translateY(-24px);
  transition: transform 0.28s cubic-bezier(0.4, 0, 1, 1), opacity 0.25s ease;
}

.hero-rotator-text.slide-in-prep {
  opacity: 0;
  transform: translateY(24px);
  transition: none !important;
}

.hero-rotator-text.slide-in {
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

/* Hero Subheadline */
.hero-subheadline {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.65;
  color: rgba(226, 232, 240, 0.85);
  max-width: 660px;
  margin: 0 auto var(--space-7);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .hero-subheadline {
  color: #475569;
  text-shadow: none;
}

/* Modern Glassmorphic Search Bar with Shortcut Badge */
.hero-search-wrap {
  max-width: 640px;
  margin: 0 auto var(--space-4);
}

.hero-search-box {
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-full);
  padding: 6px 8px 6px 18px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
  gap: 12px;
}

[data-theme="light"] .hero-search-box {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(203, 213, 225, 0.8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.hero-search-box:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.22), 0 16px 40px rgba(0, 0, 0, 0.35);
  background: rgba(15, 23, 42, 0.88);
}

[data-theme="light"] .hero-search-box:focus-within {
  background: #ffffff;
}

.search-lens-icon {
  color: #60a5fa;
  flex-shrink: 0;
}

.hero-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: var(--text-base);
  color: #f8fafc;
  font-family: inherit;
}

[data-theme="light"] .hero-search-input {
  color: #0f172a;
}

.hero-search-input::placeholder {
  color: #94a3b8;
}

.hero-search-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  font-size: 11px;
  font-family: inherit;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  letter-spacing: 0.02em;
  user-select: none;
}

[data-theme="light"] .hero-search-kbd {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #64748b;
}

.hero-search-box button {
  padding: 10px 22px;
  font-weight: 600;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  border: none;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.hero-search-box button:hover {
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.55);
  transform: translateY(-1px);
}

/* Quick Filter Micro-Chips */
.hero-quick-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-7);
  font-size: var(--text-xs);
}

.hero-quick-label {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.72);
}

[data-theme="light"] .hero-quick-label {
  color: #64748b;
}

.quick-tag {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: rgba(241, 245, 249, 0.88);
  text-decoration: none;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  font-weight: 500;
}

[data-theme="light"] .quick-tag {
  background: rgba(241, 245, 249, 0.85);
  border-color: #e2e8f0;
  color: #334155;
}

.quick-tag:hover {
  background: rgba(59, 130, 246, 0.16);
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.25);
}

/* Hero Action CTA Buttons */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}

.hero-actions .btn {
  font-size: var(--text-base);
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.hero-actions .btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  border: none;
  color: #ffffff;
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.45);
}

.hero-actions .btn-primary:hover {
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.6);
  transform: translateY(-1px);
}

.hero-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8fafc;
}

[data-theme="light"] .hero-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.88);
  border-color: #cbd5e1;
  color: #0f172a;
}

.hero-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

/* Frosted Glass Telemetry Metrics Grid */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  max-width: 840px;
  margin: 0 auto;
}

.stat-item {
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

[data-theme="light"] .stat-item {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.stat-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.stat-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.stat-icon-blue { color: #60a5fa; background: rgba(59, 130, 246, 0.15); }
.stat-icon-emerald { color: #34d399; background: rgba(16, 185, 129, 0.15); }
.stat-icon-purple { color: #c084fc; background: rgba(168, 85, 247, 0.15); }
.stat-icon-amber { color: #fbbf24; background: rgba(245, 158, 11, 0.15); }

.stat-number {
  font-size: clamp(1.65rem, 2.8vw, 2.15rem);
  font-weight: 850;
  color: #f8fafc;
  line-height: 1.1;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

[data-theme="light"] .stat-number {
  color: #0f172a;
}

.stat-item:nth-child(1) .stat-number { color: #60a5fa; }
.stat-item:nth-child(2) .stat-number { color: #34d399; }
.stat-item:nth-child(3) .stat-number { color: #c084fc; }
.stat-item:nth-child(4) .stat-number { color: #fbbf24; }

.stat-label {
  font-size: var(--text-xs);
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

[data-theme="light"] .stat-label {
  color: #64748b;
}

@media (max-width: 768px) {
  .hero-section {
    padding: 65px 16px 45px;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }
  .hero-rotator-line {
    min-height: 1.35em;
    height: 1.35em;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-search-kbd {
    display: none;
  }
}

/* --- 4. Shared Header & Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

[data-theme="dark"] .site-header {
  background-color: rgba(9, 13, 22, 0.85);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-4);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-primary);
  font-size: var(--text-xl);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 4px 10px var(--accent-glow);
}

.brand-logo:hover {
  color: var(--accent-primary);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-primary);
  background: var(--bg-subtle);
}

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

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: -20px;
  width: 260px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition-fast);
  z-index: 1010;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 500;
}

.dropdown-item:hover {
  background: var(--bg-subtle);
  color: var(--accent-primary);
}

.dropdown-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent-primary);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.search-trigger-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.search-trigger-btn:hover {
  border-color: var(--border-subtle);
  background: var(--bg-active);
  color: var(--text-primary);
}

.kbd-badge {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* Theme Toggle Button */
.btn-theme-toggle, .btn-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-theme-toggle:hover, .btn-icon:hover {
  background: var(--bg-active);
  border-color: var(--border-subtle);
  color: var(--accent-primary);
}

.btn-mobile-menu {
  display: none;
}

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: var(--space-6);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
  z-index: 999;
}

.mobile-nav-drawer.open {
  transform: translateX(0);
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  background: var(--bg-subtle);
  color: var(--accent-primary);
}

/* --- 5. Buttons, Badges & Forms --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff !important;
  box-shadow: 0 4px 14px var(--accent-glow);
}
.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0);
}

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

.btn-outline {
  background: transparent;
  border-color: var(--border-color);
  color: var(--text-secondary);
}
.btn-outline:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: var(--accent-subtle);
}

.btn-danger {
  background: var(--error);
  color: #ffffff;
}
.btn-danger:hover {
  background: #b91c1c;
}

.btn-sm {
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
}

.btn-group {
  display: inline-flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-primary { background: var(--accent-subtle); color: var(--accent-primary); }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-secondary { background: var(--bg-subtle); color: var(--text-secondary); }

/* Form Controls */
.form-group {
  margin-bottom: var(--space-4);
  text-align: left;
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.form-hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-1);
}

.form-control {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

select.form-control {
  appearance: auto;
  cursor: pointer;
}

/* --- 6. Cards & Grids --- */
.grid-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-4);
}

.category-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.category-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md);
  color: var(--accent-primary);
}

.category-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.category-card:hover .category-card-icon {
  background: var(--accent-primary);
  color: #ffffff;
}

.category-card-info h3 {
  font-size: var(--text-base);
  margin-bottom: 2px;
}

.category-card-count {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* Tools Grid */
.grid-tools {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-6);
}

.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-subtle);
}

.tool-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.tool-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-subtle);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.tool-card:hover .tool-card-icon {
  transform: scale(1.08);
}

.tool-card-title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

.tool-card:hover .tool-card-title {
  color: var(--accent-primary);
}

.tool-card-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-4);
  flex: 1;
}

.tool-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  font-size: var(--text-xs);
  color: var(--text-muted);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-color);
}

.tool-card-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--accent-primary);
  font-weight: 600;
}

/* Feature & Benefit Cards */
.grid-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: left;
}

.feature-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-subtle);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.feature-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.feature-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0;
}

/* 3-Step Process Grid */
.grid-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-8);
  position: relative;
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  position: relative;
}

.step-number {
  position: absolute;
  top: -16px;
  left: var(--space-6);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-sm);
  box-shadow: 0 4px 10px var(--accent-glow);
}

/* Blog Cards */
.grid-blogs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-6);
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-decoration: none;
  transition: all var(--transition-normal);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-subtle);
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.blog-card h3 {
  font-size: var(--text-xl);
  line-height: 1.35;
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

.blog-card:hover h3 {
  color: var(--accent-primary);
}

.blog-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  flex: 1;
}

/* --- 8. Tool Execution Containers & File Dropzones --- */
.tool-workspace {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
  margin-bottom: var(--space-10);
}

.dropzone {
  border: 2px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-12) var(--space-6);
  text-align: center;
  background: var(--bg-subtle);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--accent-primary);
  background: var(--accent-subtle);
}

.dropzone-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-4);
  color: var(--accent-primary);
}

.dropzone-title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.dropzone-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.dropzone-file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* Tool Result & Control Panels */
.tool-controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
  margin: var(--space-6) 0;
}

.tool-preview-wrap {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.tool-preview-wrap img, .tool-preview-wrap canvas {
  max-height: 480px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  width: 100%;
}

.preview-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  text-align: center;
}

.preview-box h4 {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.preview-box .stat-badge {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--accent-primary);
}

/* Range Sliders */
.slider-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.slider-header {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
  font-weight: 600;
}

.slider-input {
  width: 100%;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--border-color);
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-primary);
  cursor: pointer;
  box-shadow: 0 2px 6px var(--accent-glow);
}

/* Tool Action Bar */
.tool-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-color);
}

/* --- 9. FAQ Accordion --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.active {
  border-color: var(--border-subtle);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: var(--space-4) var(--space-6);
  background: transparent;
  border: none;
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-chevron {
  transition: transform var(--transition-fast);
  color: var(--accent-primary);
  flex-shrink: 0;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
  padding: 0 var(--space-6);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: var(--space-4);
}

.faq-answer p {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* --- 10. Search Modal --- */
.search-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 80px var(--space-4) var(--space-4);
}

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

.search-modal-container {
  width: 100%;
  max-width: 600px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: modalEnter 0.2s ease-out;
}

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

.search-modal-header {
  display: flex;
  align-items: center;
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--border-color);
  gap: var(--space-3);
}

.search-modal-header input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: var(--text-lg);
  color: var(--text-primary);
  outline: none;
}

.search-results-list {
  max-height: 380px;
  overflow-y: auto;
  padding: var(--space-2);
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-decoration: none;
  transition: background var(--transition-fast);
}

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

.search-result-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--accent-subtle);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* --- 11. AdSense Compliant Containers --- */
.ad-slot-wrapper {
  margin: var(--space-8) auto;
  text-align: center;
  clear: both;
}

.ad-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-1);
  display: block;
}

.ad-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-subtle);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.ad-leaderboard {
  width: 100%;
  max-width: 728px;
  min-height: 90px;
}

.ad-rectangle {
  width: 100%;
  max-width: 336px;
  min-height: 280px;
}

.ad-billboard {
  width: 100%;
  max-width: 970px;
  min-height: 250px;
}

.ad-placeholder-text {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* --- 12. Toast Notifications --- */
#toast-container {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: var(--text-sm);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  animation: toastIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 360px;
}

.toast-success { border-left: 4px solid var(--success); }
.toast-error { border-left: 4px solid var(--error); }
.toast-info { border-left: 4px solid var(--accent-primary); }

@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* --- 13. Cookie Consent Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  box-shadow: var(--shadow-xl);
  padding: var(--space-4) var(--space-6);
  z-index: 2500;
  display: none;
}

.cookie-banner.visible {
  display: block;
}

.cookie-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1;
  min-width: 280px;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0;
}

/* --- 14. Shared Footer --- */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: var(--space-16) 0 var(--space-8);
  margin-top: auto;
  font-size: var(--text-sm);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.footer-brand-col p {
  color: var(--text-secondary);
  margin-top: var(--space-3);
  max-width: 320px;
}

.footer-heading {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-links a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  color: var(--text-muted);
  font-size: var(--text-xs);
}

/* --- Social Media Follow & Brand Color Icons (Footer) --- */
.footer-social-wrap {
  margin-top: var(--space-6);
}

.footer-social-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.social-links-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #ffffff !important;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  user-select: none;
}

.social-btn svg {
  display: block;
  transition: transform var(--transition-fast);
  pointer-events: none;
}

.social-btn:hover {
  transform: translateY(-3px) scale(1.08);
}

.social-btn:active {
  transform: translateY(-1px) scale(1.02);
}

/* 1. Facebook: Official Brand Royal Blue #1877F2 */
.social-btn-facebook {
  background-color: #1877f2;
}
.social-btn-facebook:hover {
  background-color: #166fe5;
  box-shadow: 0 6px 18px rgba(24, 119, 242, 0.5);
}

/* 2. Instagram: Official Multi-Color Sunset Radial Gradient */
.social-btn-instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}
.social-btn-instagram:hover {
  filter: brightness(1.12);
  box-shadow: 0 6px 18px rgba(214, 36, 159, 0.5);
}

/* 3. Twitter / X: Official Twitter Sky Blue #1DA1F2 */
.social-btn-twitter {
  background-color: #1da1f2;
}
.social-btn-twitter:hover {
  background-color: #0c85d0;
  box-shadow: 0 6px 18px rgba(29, 161, 242, 0.5);
}

/* 4. TikTok: Official Midnight Black with Cyan & Magenta Chromatic Aberration */
.social-btn-tiktok {
  background-color: #000000;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.social-btn-tiktok svg {
  filter: drop-shadow(-1.5px -1.5px 0 #25f4ee) drop-shadow(1.5px 1.5px 0 #fe2c55);
}
.social-btn-tiktok:hover {
  background-color: #000000;
  border-color: rgba(37, 244, 238, 0.5);
  box-shadow: 0 6px 20px rgba(254, 44, 85, 0.4), 0 0 14px rgba(37, 244, 238, 0.35);
}

/* 5. YouTube: Official Pure Red #FF0000 with White TV Pill & Red Play Triangle */
.social-btn-youtube {
  background-color: #ff0000;
}
.social-btn-youtube:hover {
  background-color: #cc0000;
  box-shadow: 0 6px 18px rgba(255, 0, 0, 0.5);
}

/* --- 15. Breadcrumbs --- */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-6);
}

.breadcrumbs a {
  color: var(--text-muted);
}
.breadcrumbs a:hover {
  color: var(--accent-primary);
}

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

/* --- 15b. Multi-Currency Selector & Financial Chips --- */
.currency-selector-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-5);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.currency-selector-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.currency-toggle-group {
  display: inline-flex;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 3px;
}

.currency-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.currency-pill-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.currency-pill-btn.active {
  background: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.amount-presets-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  margin-bottom: 12px;
}

.amount-presets-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.amount-preset-chip {
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.amount-preset-chip:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: var(--accent-subtle);
}

.amount-preset-chip.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
}

.verbal-amount-text {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-primary);
  margin-top: 4px;
  min-height: 16px;
}

.tax-split-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 4px;
}

/* --- 16. Accessibility & Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-rotator-text {
    transition: none !important;
    transform: none !important;
  }
}

/* --- 17. Responsive Breakpoints --- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

@media (max-width: 768px) {
  .nav-desktop, .header-actions .search-trigger-btn {
    display: none;
  }
  .btn-mobile-menu {
    display: flex;
  }
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .section {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
}
