/* ============================================================
   AI Tools Hub — style.css
   Design: Dark Premium Glassmorphism
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ─── CSS Variables ─────────────────────────────────────── */
:root {
  --bg-deep:      #050b18;
  --bg-mid:       #080f22;
  --bg-card:      rgba(255, 255, 255, 0.03);
  --bg-card-h:    rgba(255, 255, 255, 0.07);
  --border:       rgba(255, 255, 255, 0.08);
  --border-h:     rgba(0, 229, 255, 0.35);
  --cyan:         #00e5ff;
  --violet:       #8e2de2;
  --violet-light: #b44ef0;
  --emerald:      #00e676;
  --red:          #ff4c6a;
  --text-h:       #f0f6ff;
  --text-b:       #8a9bc0;
  --text-m:       #c5d3e8;
  --glass-blur:   blur(16px);
  --glow-cyan:    0 0 20px rgba(0, 229, 255, 0.25);
  --glow-violet:  0 0 20px rgba(142, 45, 226, 0.4);
  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    20px;
  --transition:   0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-m);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Subtle grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Ambient glow orbs */
body::after {
  content: '';
  position: fixed;
  top: -30%;
  right: -20%;
  width: 70vw;
  height: 70vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(142,45,226,0.12) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.ambient-left {
  position: fixed;
  bottom: -20%;
  left: -15%;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,229,255,0.07) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ─── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-mid); }
::-webkit-scrollbar-thumb { background: rgba(0,229,255,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,229,255,0.6); }

/* ─── Utility ───────────────────────────────────────────── */
.container { max-width: 1380px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ─── Header / Nav ──────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  background: rgba(5, 11, 24, 0.8);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text-h);
  white-space: nowrap;
}

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: var(--glow-cyan);
}

.nav-logo span.logo-accent { color: var(--cyan); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.nav-links a {
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-b);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cyan);
  background: rgba(0,229,255,0.08);
}

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

.btn-nav {
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  background: rgba(0,229,255,0.06);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-nav:hover {
  background: var(--cyan);
  color: var(--bg-deep);
  box-shadow: var(--glow-cyan);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color var(--transition);
}

.hamburger:hover { border-color: var(--cyan); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-m);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: rgba(5, 11, 24, 0.98);
  gap: 4px;
}

.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-b);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.mobile-nav a:hover { color: var(--cyan); background: rgba(0,229,255,0.08); }

/* ─── Hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 1;
  padding: 80px 0 60px;
  text-align: center;
  overflow: hidden;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--emerald);
  border: 1px solid rgba(0,230,118,0.25);
  background: rgba(0,230,118,0.08);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(0,230,118,0.5); }
  50% { transform: scale(1.2); opacity: 0.9; box-shadow: 0 0 0 8px rgba(0,230,118,0); }
}

.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 800;
  color: var(--text-h);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero h1 .gradient-text {
  background: linear-gradient(90deg, var(--cyan), var(--violet-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-b);
  max-width: 560px;
  margin: 0 auto 40px;
  font-weight: 400;
}

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

.stat {
  text-align: center;
}

.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-h);
  line-height: 1;
}

.stat-num span { color: var(--cyan); }

.stat-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-b);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ─── Controls (Search + Filter) ───────────────────────── */
.controls-section {
  position: relative;
  z-index: 1;
  padding: 0 0 32px;
}

.search-wrap {
  position: relative;
  max-width: 640px;
  margin: 0 auto 24px;
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  opacity: 0.5;
  pointer-events: none;
}

#search-input {
  width: 100%;
  padding: 16px 18px 16px 50px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-h);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  backdrop-filter: blur(8px);
}

#search-input::placeholder { color: var(--text-b); opacity: 0.7; }
#search-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,229,255,0.1), var(--glow-cyan);
}

.clear-search {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-b);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 4px 6px;
  border-radius: 50%;
  transition: color var(--transition), background var(--transition);
  display: none;
}

.clear-search:hover { color: var(--text-h); background: rgba(255,255,255,0.08); }
.clear-search.visible { display: block; }

.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-bar::-webkit-scrollbar { display: none; }

.filter-btn {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-b);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  backdrop-filter: blur(6px);
  letter-spacing: 0.02em;
}

.filter-btn:hover {
  border-color: rgba(0,229,255,0.4);
  color: var(--cyan);
  background: rgba(0,229,255,0.07);
}

.filter-btn.active {
  background: linear-gradient(135deg, rgba(0,229,255,0.2), rgba(142,45,226,0.2));
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 12px rgba(0,229,255,0.15);
}

.results-info {
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  color: var(--text-b);
  margin-top: 16px;
  min-height: 22px;
}

.results-info span { color: var(--cyan); font-weight: 600; }

/* ─── Tools Grid ────────────────────────────────────────── */
.tools-section {
  position: relative;
  z-index: 1;
  padding-bottom: 80px;
}

#tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ─── Tool Card ─────────────────────────────────────────── */
.tool-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  animation: card-in 0.4s ease both;
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(0,229,255,0.04), rgba(142,45,226,0.04));
  opacity: 0;
  transition: opacity var(--transition);
}

.tool-card:hover::before { opacity: 1; }

.tool-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-h);
  box-shadow: 0 8px 40px rgba(0,229,255,0.12), 0 0 0 1px rgba(0,229,255,0.1);
  background: var(--bg-card-h);
}

.tool-card:hover .tool-icon-wrap {
  box-shadow: var(--glow-cyan);
}

/* Favorite button */
.fav-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text-b);
  transition: all var(--transition);
  z-index: 2;
  line-height: 1;
}

.fav-btn:hover { border-color: var(--red); color: var(--red); background: rgba(255,76,106,0.1); }
.fav-btn.active { color: var(--red); border-color: rgba(255,76,106,0.4); background: rgba(255,76,106,0.12); }

/* Card header */
.tool-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 30px;
}

.tool-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0,229,255,0.12), rgba(142,45,226,0.12));
  border: 1px solid rgba(0,229,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.tool-icon-wrap img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 4px;
}

.tool-icon-wrap .emoji-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.tool-title {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-h);
  line-height: 1.2;
}

.tool-cat-chip {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
  background: rgba(0,229,255,0.1);
  border: 1px solid rgba(0,229,255,0.15);
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 3px;
}

.tool-tagline {
  font-size: 0.88rem;
  color: var(--text-b);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tool-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.pricing-chip {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pricing-chip.free     { background: rgba(0,230,118,0.12); color: var(--emerald); border: 1px solid rgba(0,230,118,0.2); }
.pricing-chip.freemium { background: rgba(0,229,255,0.1); color: var(--cyan); border: 1px solid rgba(0,229,255,0.15); }
.pricing-chip.paid     { background: rgba(142,45,226,0.12); color: var(--violet-light); border: 1px solid rgba(142,45,226,0.2); }

.card-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-b);
  transition: all var(--transition);
}

.tool-card:hover .card-arrow {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0,229,255,0.08);
}

/* ─── AdSense slot placeholder ──────────────────────────── */
.adsense-slot {
  grid-column: 1 / -1;
  background: rgba(255,255,255,0.02);
  border: 1px dashed rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  overflow: hidden;
  position: relative;
}

.adsense-slot ins {
  display: block;
  width: 100%;
}

/* ─── Empty State ───────────────────────────────────────── */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
}

.empty-state .empty-icon { font-size: 3.5rem; margin-bottom: 16px; opacity: 0.5; }

.empty-state h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem;
  color: var(--text-h);
  margin-bottom: 8px;
}

.empty-state p { color: var(--text-b); font-size: 0.9rem; }

/* ─── Modal ─────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  position: relative;
  background: rgba(8, 15, 34, 0.95);
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  padding: 36px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), var(--glow-cyan);
  transform: scale(0.94) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text-b);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.modal-close:hover { color: var(--text-h); border-color: var(--red); background: rgba(255,76,106,0.1); }

.modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.modal-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0,229,255,0.15), rgba(142,45,226,0.15));
  border: 1px solid rgba(0,229,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.modal-icon img { width: 38px; height: 38px; object-fit: contain; border-radius: 6px; }
.modal-icon .emoji-icon { font-size: 1.8rem; }

.modal-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-h);
}

.modal-category {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

.modal-tagline {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-h);
  margin-bottom: 12px;
  font-style: italic;
  opacity: 0.9;
}

.modal-desc {
  font-size: 0.92rem;
  color: var(--text-b);
  line-height: 1.7;
  margin-bottom: 20px;
}

.modal-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.modal-features h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-b);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.modal-features ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 28px;
}

.modal-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-m);
  background: rgba(255,255,255,0.03);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.modal-features li::before {
  content: '✓';
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--emerald);
  background: rgba(0,230,118,0.12);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(0,229,255,0.2);
  letter-spacing: 0.02em;
}

.modal-cta:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,229,255,0.3);
}

/* ─── Favorites Toggle (top bar) ────────────────────────── */
.fav-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.fav-toggle-btn {
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-b);
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.fav-toggle-btn:hover { border-color: rgba(255,76,106,0.4); color: var(--red); }
.fav-toggle-btn.active { background: rgba(255,76,106,0.1); border-color: rgba(255,76,106,0.4); color: var(--red); }

/* ─── Footer ────────────────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  background: rgba(5,11,24,0.9);
  backdrop-filter: blur(12px);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand .nav-logo { margin-bottom: 14px; }
.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-b);
  line-height: 1.7;
  max-width: 300px;
  margin-bottom: 20px;
}

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

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.social-btn:hover {
  border-color: var(--cyan);
  background: rgba(0,229,255,0.08);
  transform: translateY(-2px);
  box-shadow: var(--glow-cyan);
}

.footer-col h4 {
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-h);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-col ul li a {
  font-size: 0.87rem;
  color: var(--text-b);
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--cyan); }

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

.footer-bottom p {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  color: var(--text-b);
}

.footer-bottom a { color: var(--cyan); transition: opacity var(--transition); }
.footer-bottom a:hover { opacity: 0.8; }

.footer-legal-links {
  display: flex;
  gap: 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  color: var(--text-b);
}

.footer-legal-links a { transition: color var(--transition); }
.footer-legal-links a:hover { color: var(--cyan); }

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 1100px) {
  #tools-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-grid .footer-col:last-child { grid-column: 2 / span 2; }
}

@media (max-width: 768px) {
  #tools-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 50px 0 40px; }
  .hero-stats { gap: 20px; }
  .stat-divider { display: none; }
  .modal-features ul { grid-template-columns: 1fr; }
  .modal { padding: 24px; }
}

@media (max-width: 480px) {
  #tools-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { text-align: center; justify-content: center; }
  .footer-legal-links { flex-wrap: wrap; justify-content: center; gap: 12px; }
  .filter-bar { justify-content: flex-start; }
}

/* ─── Loading shimmer ───────────────────────────────────── */
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
