/* ══════════════════════════════════════
   AI Product List — Main Stylesheet
   ══════════════════════════════════════ */

/* ── CSS Variables (Light / Dark themes) ── */
:root {
  --purple: #8B5CF6;
  --blue: #3B82F6;
  --text-1: #1E1B4B;
  --text-2: #6B7280;
  --text-3: #9CA3AF;
  --bg: #ffffff;
  --bg-alt: #F9FAFB;
  --bg-nav: rgba(255, 255, 255, 0.92);
  --border: #E5E7EB;
  --card-bg: #ffffff;
}

[data-theme="dark"] {
  --text-1: #F3F4F6;
  --text-2: #D1D5DB;
  --text-3: #6B7280;
  --bg: #0D0F1E;
  --bg-alt: #0A0C18;
  --bg-nav: rgba(13, 15, 30, 0.95);
  --border: #1F2937;
  --card-bg: #161827;
}

/* ── Base Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-1);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}

/* ══════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 21px;
  color: var(--text-1);
}

/* ── Inline navbar search ── */
.nav-search {
  display: flex;
  align-items: stretch;
  flex: 0 0 440px;
  width: 440px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.nav-search:focus-within {
  border-color: var(--purple);
}

.nav-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 11px 18px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--text-1);
}

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

.nav-search-btn {
  width: 52px;
  border: none;
  border-left: 1px solid var(--border);
  background: transparent;
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-search-btn:hover {
  color: var(--purple);
  background: rgba(139, 92, 246, 0.06);
}

/* ── Categories Mega Menu ── */
.cat-menu {
  position: relative;
  margin-left: auto;
  flex-shrink: 0;
}

.cat-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 4px;
  background: transparent;
  border: none;
  font-size: 14.5px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  color: var(--text-1);
  cursor: pointer;
  white-space: nowrap;
}

.cat-menu:hover .cat-menu-trigger {
  color: var(--purple);
}

.cat-menu-trigger svg {
  transition: transform 0.2s;
}

.cat-menu:hover .cat-menu-trigger svg {
  transform: rotate(180deg);
}

.mega-menu {
  position: absolute;
  top: calc(100% + 18px);
  right: 0;
  display: flex;
  min-width: 720px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  z-index: 200;
  overflow: hidden;
}

.cat-menu:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Bridge so hover doesn't drop on the gap */
.mega-menu::before {
  content: '';
  position: absolute;
  top: -18px;
  left: 0;
  right: 0;
  height: 18px;
}

.mega-left {
  width: 270px;
  flex-shrink: 0;
  padding: 12px;
  border-right: 1px solid var(--border);
  background: var(--bg-alt);
}

.mega-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 16px;
  background: transparent;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: var(--text-1);
  text-align: left;
  cursor: pointer;
  transition: all 0.15s;
}

.mega-main svg {
  color: var(--text-3);
  flex-shrink: 0;
}

.mega-main:hover,
.mega-main.active {
  background: rgba(139, 92, 246, 0.10);
  color: var(--purple);
}

.mega-main.active svg {
  color: var(--purple);
}

.mega-right {
  flex: 1;
  padding: 18px 20px;
  max-height: 420px;
  overflow-y: auto;
}

.mega-sub {
  display: none;
}

.mega-sub.active {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px 24px;
}

.mega-sub-link {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-1);
  text-decoration: none;
  transition: all 0.15s;
}

.mega-sub-link:hover {
  background: rgba(139, 92, 246, 0.08);
  color: var(--purple);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.nav-text-link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-1);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-text-link:hover {
  color: var(--purple);
}

/* ── Category Row ── */
.nav-categories {
  border-top: 1px solid var(--border);
}

.nav-categories-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-categories-inner::-webkit-scrollbar {
  display: none;
}

.nav-cat {
  padding: 13px 16px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 8px;
  transition: all 0.2s;
}

.nav-cat:hover {
  color: var(--purple);
}

.nav-cat.active {
  color: var(--purple);
  font-weight: 600;
}

/* ── Mobile menu (hidden on desktop) ── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-burger span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--text-1);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}

.nav-burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-burger.open span:nth-child(2) {
  opacity: 0;
}

.nav-burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 16px 20px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-nav);
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}

.mobile-menu.open {
  display: flex;
}

.mobile-search {
  display: flex;
  align-items: stretch;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 6px;
}

.mobile-search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  padding: 12px 16px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: var(--text-1);
}

.mobile-search button {
  width: 50px;
  border: none;
  border-left: 1px solid var(--border);
  background: transparent;
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-cta {
  display: block;
  text-align: center;
  padding: 13px;
  border-radius: 12px;
  background: linear-gradient(135deg, #8B5CF6, #6D28D9);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 4px;
}

.mobile-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

.mobile-links a {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-1);
  text-decoration: none;
}

.mobile-links a:active,
.mobile-links a:hover {
  background: rgba(139, 92, 246, 0.08);
  color: var(--purple);
}

.mobile-heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 14px 4px 6px;
}

.mobile-cats {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
}

.mobile-cats::-webkit-scrollbar {
  display: none;
}

.mobile-cat {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 14px;
  color: var(--text-2);
  text-decoration: none;
}

.mobile-cat.active,
.mobile-cat:hover {
  border-color: var(--purple);
  color: var(--purple);
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 90;
}

.mobile-menu-overlay.open {
  display: block;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.2s;
}

.icon-btn:hover {
  background: rgba(139, 92, 246, 0.08);
  color: var(--purple);
  border-color: rgba(139, 92, 246, 0.3);
}

/* Theme toggle icons */
#theme-toggle .icon-sun {
  display: none;
}

#theme-toggle .icon-moon {
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] #theme-toggle .icon-sun {
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] #theme-toggle .icon-moon {
  display: none;
}

/* Primary button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #8B5CF6, #6D28D9);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #7C3AED, #5B21B6);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

/* ══════════════════════════════════════
   SEARCH OVERLAY
   ══════════════════════════════════════ */
#search-overlay {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
}

.search-input {
  width: 100%;
  padding: 16px 130px 16px 48px;
  border-radius: 12px;
  border: 2px solid var(--border);
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text-1);
  outline: none;
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: var(--purple);
}

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

/* ══════════════════════════════════════
   HERO
   ══════════════════════════════════════ */
.hero-section {
  background-color: #ffffff;
  /* Faint grid lines on top + soft color-wash mesh below */
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.06) 1px, transparent 1px),
    radial-gradient(60% 55% at 6% 38%, rgba(167, 139, 250, 0.22) 0%, transparent 60%),
    radial-gradient(55% 60% at 97% 30%, rgba(96, 165, 250, 0.26) 0%, transparent 62%),
    radial-gradient(45% 50% at 88% 88%, rgba(244, 114, 182, 0.14) 0%, transparent 60%),
    radial-gradient(50% 45% at 50% 4%, rgba(196, 181, 253, 0.16) 0%, transparent 65%),
    radial-gradient(40% 45% at 18% 95%, rgba(125, 211, 252, 0.14) 0%, transparent 60%);
  background-size: 90px 90px, 90px 90px, cover, cover, cover, cover, cover;
  padding: 96px 24px 110px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Hero content sits above the wash */
.hero-section>* {
  position: relative;
  z-index: 1;
}

[data-theme="dark"] .hero-section {
  background-color: #0D0F1E;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.10) 1px, transparent 1px),
    radial-gradient(60% 55% at 6% 38%, rgba(139, 92, 246, 0.28) 0%, transparent 60%),
    radial-gradient(55% 60% at 97% 30%, rgba(59, 130, 246, 0.26) 0%, transparent 62%),
    radial-gradient(45% 50% at 88% 88%, rgba(236, 72, 153, 0.14) 0%, transparent 60%),
    radial-gradient(50% 45% at 50% 4%, rgba(109, 40, 217, 0.20) 0%, transparent 65%);
  background-size: 90px 90px, 90px 90px, cover, cover, cover, cover, cover;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.80);
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 100px;
  margin-bottom: 32px;
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(139, 92, 246, 0.08);
}

[data-theme="dark"] .hero-badge {
  background: rgba(30, 27, 74, 0.65);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: #22C55E;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}

.hero-badge-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}

.hero-h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 28px;
  letter-spacing: -1.5px;
}

/* "Find the Best" — heavy black, like reference */
.hero-h1 .line1 {
  display: block;
  font-size: clamp(48px, 6.5vw, 86px);
  color: #0A0A0A;
  font-weight: 800;
  letter-spacing: -2px;
}

[data-theme="dark"] .hero-h1 .line1 {
  color: #F8FAFC;
}

/* "AI Tools" — purple-to-cyan gradient, large */
.hero-h1 .grad {
  display: block;
  font-size: clamp(50px, 7vw, 92px);
  background-image: linear-gradient(90deg, #7C6FFF 0%, #42C8E8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 800;
  padding: 4px 0;
  letter-spacing: -2.5px;
  /* Fallback if clip fails */
  background-color: #7C6FFF;
}

/* "for Every Workflow" — heavy black */
.hero-h1 .line3 {
  display: block;
  font-size: clamp(44px, 6vw, 80px);
  color: #0A0A0A;
  letter-spacing: -2px;
  font-weight: 800;
}

[data-theme="dark"] .hero-h1 .line3 {
  color: #F8FAFC;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--text-2);
  max-width: 540px;
  margin: 0 auto 44px;
  line-height: 1.75;
}

.hero-search-wrap {
  max-width: 720px;
  margin: 0 auto 20px;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 100px;
  padding: 8px 8px 8px 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .hero-search-wrap {
  background: #161827;
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.hero-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  background: transparent;
  color: var(--text-1);
  padding: 12px 0;
}

.hero-search-input::placeholder {
  color: #9CA3AF;
}

/* Circular icon search button */
.hero-search-btn {
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-popular {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-popular-label {
  font-size: 13px;
  color: #9CA3AF;
  font-weight: 500;
  margin-right: 2px;
}

.pop-tag {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #4B5563;
  text-decoration: none;
  transition: all 0.15s;
  letter-spacing: 0.01em;
}

.pop-tag:hover {
  background: white;
  color: var(--purple);
  border-color: rgba(124, 111, 255, 0.4);
  box-shadow: 0 2px 8px rgba(124, 111, 255, 0.12);
}

[data-theme="dark"] .pop-tag {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #9CA3AF;
}

/* ══════════════════════════════════════
   STATS
   ══════════════════════════════════════ */
.stats-section {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 48px 24px;
}

.stats-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  background: var(--card-bg);
  transition: all 0.2s;
}

.stat-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.08);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 28px;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-2);
}

/* ══════════════════════════════════════
   CATEGORIES
   ══════════════════════════════════════ */
.cats-section {
  padding: 52px 24px 24px;
  background: var(--bg);
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--purple);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 20px;
  margin-top: 0;
}

.cats-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
}

.cat-pill {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-2);
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
}

.cat-pill:hover {
  border-color: var(--purple);
  color: var(--purple);
}

.cat-pill.active {
  background: var(--purple);
  color: white;
  border-color: var(--purple);
}

/* ══════════════════════════════════════
   TOOLS SECTION
   ══════════════════════════════════════ */
.tools-section {
  padding: 44px 24px 64px;
  background: var(--bg);
}

.tools-section.alt {
  background: var(--bg-alt);
}

.tools-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 26px;
  color: var(--text-1);
  margin: 0;
}

.view-all-btn {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.view-all-btn:hover {
  border-color: var(--purple);
  color: var(--purple);
}

.tools-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ── Tool Card ── */
.tool-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  position: relative;
  transition: all 0.2s;
  cursor: pointer;
}

.tool-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.12);
  transform: translateY(-2px);
}

.tool-badges {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  max-width: 84px;
}

.badge {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 100px;
  display: inline-block;
  white-space: nowrap;
}

.badge-free {
  background: #D1FAE5;
  color: #059669;
}

.badge-featured {
  background: #FEF3C7;
  color: #B45309;
}

.badge-editors {
  background: #FCE7F3;
  color: #BE185D;
}

.badge-new {
  background: #EDE9FE;
  color: #7C3AED;
}

.tool-cat-label {
  color: var(--text-3);
  font-size: 12.5px;
  font-weight: 500;
}

.tool-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.tool-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #EDE9FE;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #7C3AED;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

/* Logo tile: letter fallback under fetched image */
.logo-letter {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 9px;
  background: inherit;
}

.tool-name-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  padding-right: 56px;
}

.tool-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-1);
  line-height: 1.25;
}

.verified-badge {
  width: 15px;
  height: 15px;
  background: #3B82F6;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tool-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tool-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.tool-tag {
  font-size: 11px;
  color: var(--text-3);
  background: rgba(0, 0, 0, 0.04);
  padding: 3px 8px;
  border-radius: 6px;
}

[data-theme="dark"] .tool-tag {
  background: rgba(255, 255, 255, 0.05);
}

.tool-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.stars {
  color: #F59E0B;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.star-num {
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
}

.view-details {
  font-size: 13px;
  font-weight: 600;
  color: var(--purple);
  text-decoration: none;
  transition: color 0.15s;
}

.view-details:hover {
  color: #6D28D9;
}

/* ══════════════════════════════════════
   CTA SECTION
   ══════════════════════════════════════ */
.cta-section {
  padding: 24px 24px 64px;
  background: var(--bg);
}

.cta-box {
  max-width: 1200px;
  margin: 0 auto;
  background: linear-gradient(135deg, #EEF0FF 0%, #E8E5FF 100%);
  border-radius: 24px;
  padding: 64px 40px;
  text-align: center;
}

[data-theme="dark"] .cta-box {
  background: linear-gradient(135deg, #1A1A3E 0%, #141430 100%);
}

.cta-h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 32px;
  color: var(--text-1);
  margin: 0 0 12px;
}

.cta-text {
  font-size: 16px;
  color: var(--text-2);
  margin: 0 auto 32px;
  max-width: 480px;
  line-height: 1.65;
}

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
.site-footer {
  background: #0D0F2E;
  color: #9CA3AF;
  padding: 60px 24px 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 280px 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo-row {
  display: flex;
  align-items: center;
}

.footer-logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: white;
  margin-left: 10px;
}

.footer-tagline {
  font-size: 14px;
  line-height: 1.65;
  color: #9CA3AF;
  margin: 16px 0 20px;
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9CA3AF;
  text-decoration: none;
  transition: all 0.2s;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
}

.social-btn:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.4);
  color: white;
}

.footer-sub {
  display: flex;
  gap: 8px;
}

.footer-sub-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  outline: none;
}

.footer-sub-input::placeholder {
  color: #6B7280;
}

.footer-sub-input:focus {
  border-color: rgba(139, 92, 246, 0.5);
}

.footer-sub-btn {
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--purple);
  color: white;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s;
}

.footer-sub-btn:hover {
  background: #7C3AED;
}

.footer-no-spam {
  font-size: 11px;
  color: #4B5563;
  margin-top: 8px;
}

.footer-col-title {
  font-size: 13px;
  font-weight: 600;
  color: white;
  margin: 0 0 16px;
}

.footer-link {
  display: block;
  font-size: 14px;
  color: #9CA3AF;
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.15s;
}

.footer-link:hover {
  color: white;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-copyright {
  font-size: 13px;
  color: #4B5563;
}

.footer-bottom-socials {
  display: flex;
  gap: 10px;
}

/* ══════════════════════════════════════
   CATEGORY PAGE
   ══════════════════════════════════════ */
.cat-page {
  background: #F4F3FB;
  padding: 40px 24px 90px;
  min-height: calc(100vh - 117px);
}

[data-theme="dark"] .cat-page {
  background: #0A0C18;
}

.cat-page-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.cat-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--purple);
  text-transform: uppercase;
  margin: 0 0 10px;
}

.cat-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 46px;
  color: var(--text-1);
  margin: 0 0 6px;
  letter-spacing: -1px;
}

.cat-count-sub {
  font-size: 15px;
  color: var(--text-2);
  margin: 0 0 28px;
}

.cat-layout {
  display: grid;
  grid-template-columns: 262px 1fr;
  gap: 26px;
  align-items: start;
}

/* ── Sidebar ── */
.cat-sidebar {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px 16px;
  position: sticky;
  top: 133px;
  max-height: calc(100vh - 160px);
  overflow-y: auto;
}

.cat-sidebar::-webkit-scrollbar {
  width: 7px;
}

.cat-sidebar::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}

.cat-side-group {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-3);
  text-transform: uppercase;
  margin: 16px 8px 6px;
}

.cat-side-group:first-of-type {
  margin-top: 6px;
}

.cat-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.cat-sidebar-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-1);
}

.cat-sidebar-all {
  font-size: 12.5px;
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.15s;
}

.cat-sidebar-all:hover {
  color: var(--purple);
}

.cat-side-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-1);
  text-decoration: none;
  transition: all 0.15s;
}

.cat-side-item .cat-side-ico {
  width: 22px;
  text-align: center;
  font-size: 16px;
  flex-shrink: 0;
}

.cat-side-item .cat-side-name {
  flex: 1;
}

.cat-side-item .cat-side-count {
  font-size: 13px;
  color: var(--text-3);
  font-weight: 500;
}

.cat-side-item:hover {
  background: rgba(139, 92, 246, 0.06);
}

.cat-side-item.active {
  background: rgba(139, 92, 246, 0.10);
  color: var(--purple);
  font-weight: 600;
}

.cat-side-item.active .cat-side-count {
  color: var(--purple);
}

/* ── Sidebar filter groups (Use Cases / Pricing) ── */
.cat-filter {
  padding: 6px 8px 16px;
}

.cat-filter+.cat-filter {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.cat-filter-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-1);
  margin: 0 0 12px;
}

.cat-price-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 0;
  font-size: 14.5px;
  color: var(--text-1);
  cursor: pointer;
}

.cat-price-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--purple);
  cursor: pointer;
  flex-shrink: 0;
}

.cat-filter-name {
  flex: 1;
}

.cat-filter-count {
  font-size: 13.5px;
  color: var(--text-3);
  font-weight: 500;
}

/* ── Main column ── */
.cat-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 18px;
  margin-bottom: 24px;
}

.cat-search-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
}

.cat-search-box svg {
  color: var(--text-3);
  flex-shrink: 0;
}

.cat-search-box input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--text-1);
}

.cat-search-box input::placeholder {
  color: var(--text-3);
}

.cat-sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}

.cat-tools-count {
  font-size: 13.5px;
  color: var(--text-3);
  font-weight: 500;
  white-space: nowrap;
  margin-left: auto;
}

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

.cat-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  background: var(--card-bg);
  border: 1px dashed var(--border);
  border-radius: 18px;
  color: var(--text-2);
}

.cat-empty-emoji {
  font-size: 44px;
  display: block;
  margin-bottom: 14px;
}

.cat-empty-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-1);
  margin: 0 0 6px;
}

.cat-empty-text {
  font-size: 14px;
  margin: 0;
}

/* ══════════════════════════════════════
   PRODUCT (TOOL) PAGE
   ══════════════════════════════════════ */
.prod-page {
  background: #F4F3FB;
  padding: 32px 24px 90px;
  min-height: calc(100vh - 117px);
}

[data-theme="dark"] .prod-page {
  background: #0A0C18;
}

.prod-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero */
.prod-hero {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 24px;
}

.prod-hero-banner {
  height: 168px;
}

.prod-hero-body {
  display: flex;
  gap: 26px;
  padding: 0 32px 30px;
}

.prod-logo {
  width: 116px;
  height: 116px;
  border-radius: 26px;
  margin-top: -58px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 44px;
  border: 4px solid var(--card-bg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
}

.prod-logo .logo-img {
  padding: 22px;
}

.prod-hero-main {
  flex: 1;
  padding-top: 20px;
  min-width: 0;
}

.prod-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 34px;
  color: var(--text-1);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.5px;
}

.prod-title .verified-badge {
  width: 22px;
  height: 22px;
}

.prod-title .verified-badge svg {
  width: 13px;
  height: 13px;
}

.prod-tagline {
  font-size: 16.5px;
  color: var(--text-2);
  margin: 0 0 16px;
  line-height: 1.5;
}

.prod-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.prod-stars {
  color: #F59E0B;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.prod-stars i {
  color: var(--text-3);
  font-style: normal;
  font-size: 13.5px;
}

.prod-meta-cat {
  font-size: 13.5px;
  color: var(--text-2);
}

.prod-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.prod-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 20px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: var(--text-1);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.prod-btn-ghost:hover {
  border-color: var(--purple);
  color: var(--purple);
}

/* Body grid */
.prod-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

.prod-side {
  position: sticky;
  top: 133px;
}

.prod-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 20px;
}

.prod-card-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 19px;
  color: var(--text-1);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.prod-text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-2);
  margin: 0;
}

.prod-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text-2);
}

.prod-meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Features */
.prod-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.prod-feature {
  display: flex;
  gap: 12px;
}

.prod-feature-ico {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.prod-feature-title {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text-1);
  margin: 0 0 3px;
}

.prod-feature-text {
  font-size: 13px;
  color: var(--text-2);
  margin: 0;
  line-height: 1.5;
}

/* Pros & Cons */
.prod-proscons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.prod-pc-head {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.prod-pros-head {
  color: #059669;
}

.prod-cons-head {
  color: #DC2626;
}

.prod-pc-item {
  display: flex;
  gap: 9px;
  font-size: 14px;
  color: var(--text-1);
  margin-bottom: 10px;
  line-height: 1.45;
}

.prod-pc-item .pc-pro {
  color: #059669;
  font-weight: 700;
  flex-shrink: 0;
}

.prod-pc-item .pc-con {
  color: #DC2626;
  font-weight: 700;
  flex-shrink: 0;
}

/* Pricing tiers */
.prod-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
}

.prod-pricing-grid[data-plans="1"] {
  grid-template-columns: minmax(220px, 360px);
}

.prod-pricing-grid[data-plans="2"] {
  grid-template-columns: repeat(2, 1fr);
}

.price-plan {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 18px;
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
}

.price-plan-best {
  border-color: #10B981;
  border-width: 1.5px;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.07), transparent 60%);
}

.price-badge {
  position: absolute;
  top: -1px;
  right: -1px;
  background: #047857;
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 0 13px 0 11px;
}

.price-plan-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-1);
  margin: 0 0 6px;
}

.price-plan-amount {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 26px;
  color: var(--text-1);
  margin: 0 0 14px;
  line-height: 1;
}

.price-plan-per {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  margin-left: 3px;
}

.price-plan-feats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.price-plan-feats li {
  display: flex;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.4;
  align-items: flex-start;
}

.price-plan-feats .price-tick {
  color: #10B981;
  flex-shrink: 0;
  margin-top: 1px;
}

.price-plan-feats .price-tick svg {
  width: 13px;
  height: 13px;
}

@media (max-width: 640px) {

  .prod-pricing-grid,
  .prod-pricing-grid[data-plans="2"] {
    grid-template-columns: 1fr;
  }
}

/* Category tags */
.prod-cat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.prod-cat-tag {
  padding: 7px 14px;
  border-radius: 100px;
  background: rgba(139, 92, 246, 0.10);
  color: var(--purple);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s;
}

.prod-cat-tag:hover {
  background: var(--purple);
  color: #fff;
}

/* Sidebar */
.prod-visit {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 15px;
  margin-bottom: 6px;
}

.prod-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.prod-info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.prod-info-label {
  color: var(--text-2);
}

.prod-info-val {
  color: var(--text-1);
  font-weight: 600;
  text-align: right;
}

.prod-info-val.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.prod-more {
  text-align: center;
}

.prod-more p {
  font-size: 13.5px;
  color: var(--text-2);
  margin: 0 0 12px;
}

.prod-share-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-3);
  text-transform: uppercase;
  margin: 0 0 12px;
}

.prod-share {
  display: flex;
  gap: 10px;
}

.prod-share a {
  flex: 1;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  text-decoration: none;
  transition: all 0.2s;
}

.prod-share a:hover {
  border-color: var(--purple);
  color: var(--purple);
}

/* FAQ section */
.prod-faqs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prod-faq {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.prod-faq[open] {
  border-color: rgba(139, 92, 246, 0.3);
}

.prod-faq-q {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1);
  cursor: pointer;
  list-style: none;
  background: var(--bg-alt);
  transition: background 0.15s;
}

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

.prod-faq-q::before {
  content: '▸';
  font-size: 14px;
  color: var(--purple);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.prod-faq[open]>.prod-faq-q::before {
  transform: rotate(90deg);
}

.prod-faq-q:hover {
  background: rgba(139, 92, 246, 0.04);
}

.prod-faq-a {
  padding: 0 18px 16px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-2);
  margin: 0;
}

/* Category page content section */
.cat-content {
  margin-top: 48px;
  padding: 32px 0 0;
  border-top: 1px solid var(--border);
}

.cat-content-h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--text-1);
  margin: 0 0 16px;
}

.cat-content h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--text-1);
  margin: 28px 0 10px;
}

.cat-content p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-2);
  margin: 0 0 14px;
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 1280px) {
  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1100px) {
  .nav-text-link {
    display: none;
  }
}

@media (max-width: 1024px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .cat-layout {
    grid-template-columns: 1fr;
  }

  .cat-sidebar {
    position: static;
  }

  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .prod-side {
    position: static;
  }
}

/* Switch the header to its mobile (hamburger) layout */
@media (max-width: 900px) {
  .nav-search {
    display: none;
  }

  .cat-menu {
    display: none;
  }

  .btn-primary-nav {
    display: none;
  }

  .nav-actions {
    margin-left: auto;
    gap: 10px;
  }

  .nav-burger {
    display: flex;
  }

  .nav-categories-inner {
    padding: 0 16px;
  }

  .nav-inner {
    padding: 12px 16px;
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .nav-search {
    display: none;
  }

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

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

  .tools-section {
    padding: 36px 16px 48px;
  }

  .tools-header {
    flex-wrap: wrap;
    gap: 12px;
  }

  .tool-badges {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    max-width: none;
  }

  .cats-section {
    padding: 40px 16px 20px;
  }

  .hero-section {
    padding: 48px 16px 64px;
  }

  .hero-subtitle {
    font-size: 15px;
    margin-bottom: 32px;
  }

  .content-page {
    padding: 40px 18px 64px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cat-page-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .cat-toolbar {
    flex-wrap: wrap;
  }

  .cat-title {
    font-size: 36px;
  }

  .prod-features {
    grid-template-columns: 1fr;
  }

  .prod-proscons {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .prod-hero-body {
    flex-direction: column;
    gap: 0;
  }

  .prod-title {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .nav-logo-text {
    font-size: 18px;
  }

  .hero-h1 .line1 {
    font-size: clamp(38px, 11vw, 52px);
    letter-spacing: -1px;
  }

  .hero-h1 .grad {
    font-size: clamp(40px, 12vw, 56px);
    letter-spacing: -1.5px;
  }

  .hero-h1 .line3 {
    font-size: clamp(34px, 10vw, 50px);
    letter-spacing: -1px;
  }

  .hero-search-wrap {
    padding: 6px 6px 6px 18px;
  }

  .hero-search-input {
    font-size: 15px;
  }

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

  .section-title {
    font-size: 22px;
  }

  .content-title {
    font-size: 30px;
  }

  .mobile-links {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════
   CONTENT / LEGAL PAGES
   ══════════════════════════════════════ */
.content-page {
  background: var(--bg);
  padding: 56px 24px 80px;
}

.content-inner {
  max-width: 820px;
  margin: 0 auto;
}

.content-eyebrow {
  text-align: center;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--purple);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.content-title {
  font-family: 'Outfit', sans-serif;
  font-size: 44px;
  font-weight: 800;
  text-align: center;
  color: var(--text-1);
  margin: 0 0 8px;
}

.content-sub {
  text-align: center;
  color: var(--text-2);
  font-size: 15px;
  margin-bottom: 40px;
}

.content-body h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-1);
  margin: 34px 0 12px;
}

.content-body p,
.content-body li {
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.75;
}

.content-body ul {
  padding-left: 22px;
  margin: 10px 0;
}

.content-body li {
  margin-bottom: 6px;
}

.content-body a {
  color: var(--purple);
  text-decoration: none;
}

.content-body a:hover {
  text-decoration: underline;
}

/* Blog listing */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 36px;
}

.blog-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  background: var(--bg-alt);
  text-decoration: none;
  transition: all 0.2s;
}

.blog-card:hover {
  border-color: var(--purple);
  transform: translateY(-3px);
}

.blog-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--purple);
  background: rgba(139, 92, 246, 0.1);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.blog-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-1);
  margin: 0 0 8px;
}

.blog-card p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 14px;
}

.blog-meta {
  font-size: 12.5px;
  color: var(--text-3, var(--text-2));
}

@media (max-width: 720px) {
  .content-title {
    font-size: 34px;
  }

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

/* Contact page */
.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  margin-top: 36px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-info-card {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  background: var(--bg-alt);
}

.contact-info-icon {
  font-size: 22px;
  line-height: 1;
}

.contact-info-label {
  font-size: 12.5px;
  color: var(--text-2);
  margin: 0 0 2px;
}

.contact-info-value {
  font-weight: 600;
  color: var(--text-1);
  text-decoration: none;
  font-size: 14.5px;
}

.contact-info-value:hover {
  color: var(--purple);
}

.contact-note {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 4px;
}

.contact-form {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  background: var(--bg-alt);
}

.contact-field {
  margin-bottom: 16px;
}

.contact-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 6px;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text-1);
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  transition: border-color 0.2s;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--purple);
}

.contact-field textarea {
  resize: vertical;
}

.contact-submit {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 10px;
  background: var(--purple);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: opacity 0.2s;
}

.contact-submit:hover {
  opacity: 0.9;
}

.contact-form-note {
  font-size: 12.5px;
  color: var(--text-2);
  text-align: center;
  margin: 14px 0 0;
}

.contact-form-note a {
  color: var(--purple);
  text-decoration: none;
}

.contact-form-note a:hover {
  text-decoration: underline;
}

@media (max-width: 720px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════
   SEARCH DROPDOWN (header / hero / mobile)
   ══════════════════════════════════════ */
.search-dropdown {
  position: fixed;
  z-index: 2000;
  min-width: 240px;
  max-height: 360px;
  overflow-y: auto;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  padding: 6px;
}

.search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-1);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
}

.search-item:hover,
.search-item.active {
  background: rgba(139, 92, 246, 0.10);
  color: var(--purple);
}

.search-item-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-badge {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 8px;
}

.search-arrow {
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--text-3);
  opacity: 0;
}

.search-item.active .search-arrow {
  opacity: 1;
}

.search-empty {
  padding: 14px 12px;
  font-size: 14px;
  color: var(--text-2);
  text-align: center;
  font-family: 'Inter', sans-serif;
}

/* ── Back to Top button ── */
#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #8B5CF6, #3B82F6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
  z-index: 60;
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  filter: brightness(1.08);
  box-shadow: 0 8px 26px rgba(99, 102, 241, 0.45);
}

/* Social icon buttons (no destination yet) share the .social-btn look */
button.social-btn {
  padding: 0;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
}

/* Allow <button> inside the product share row to match the anchor styling */
.prod-share button {
  flex: 1;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 15px;
}

.prod-share button:hover {
  border-color: var(--purple);
  color: var(--purple);
}

/* ─── Related Tools ─── */
.related-tools {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px 48px;
}

.related-inner {
  text-align: center;
}

.related-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-1);
  margin: 0 0 20px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.related-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-alt);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.related-card:hover {
  border-color: var(--purple);
  box-shadow: 0 2px 12px rgba(124, 58, 237, .1);
}

.related-info {
  text-align: left;
  min-width: 0;
}

.related-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-price {
  font-size: 12px;
  color: var(--text-2);
}

.related-browse {
  display: inline-block;
  margin-top: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--purple);
  text-decoration: none;
}

.related-browse:hover {
  text-decoration: underline;
}

@media (max-width: 680px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}