/* ============================================================
   ToolsBase v9 — Premium Indigo Style
   Primary: #6366f1 | Secondary: #22d3ee | Accent: #f43f5e
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
/* Soft violet-tinted background */
html { background: #f5f3ff; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1c1917;
  background: #f5f3ff;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }
::selection { background: #6366f1; color: #fff; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: #cbd5e1; }

/* === LAYOUT === */
.container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
.container--narrow { max-width: 720px; margin: 0 auto; padding: 0 1.5rem; }

/* === HEADER === */
.header {
  position: sticky; top: 0; z-index: 100;
  height: 58px;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid #e2e8f0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header-content { height: 58px; display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: 0.625rem; text-decoration: none; flex-shrink: 0; }
.logo-icon { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, #6366f1, #8b5cf6); display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 2px 8px rgba(99,102,241,0.3); }
.logo img { height: 26px; width: auto; }
.logo-name { font-size: 0.9rem; font-weight: 800; color: #1e293b; letter-spacing: -0.025em; }

.nav { display: none; align-items: center; gap: 0.2rem; }
@media (min-width: 768px) { .nav { display: flex; } }
.nav-btn {
  padding: 0.375rem 0.875rem; border-radius: 8px;
  font-size: 0.8125rem; font-weight: 500; color: #64748b;
  transition: all 120ms ease;
}
.nav-btn:hover { color: #1e293b; background: #f1f5f9; }
.nav-btn.active { color: #6366f1; font-weight: 700; }

.mobile-menu-btn { display: flex; background: none; border: none; padding: 0.4rem; cursor: pointer; }
@media (min-width: 768px) { .mobile-menu-btn { display: none; } }
.hamburger { display: flex; flex-direction: column; gap: 5px; width: 20px; }
.hamburger span { display: block; height: 1.5px; background: #1e293b; border-radius: 2px; }

/* === CATEGORY TABS BAR === */
.cat-tabs {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky; top: 58px; z-index: 90;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tabs-inner { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; display: flex; white-space: nowrap; }
.cat-tab {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.7rem 1rem; font-size: 0.8rem; font-weight: 500;
  color: #94a3b8; border-bottom: 2px solid transparent;
  transition: all 120ms ease; cursor: pointer; flex-shrink: 0;
}
.cat-tab:hover { color: #475569; }
.cat-tab.active { color: #6366f1; border-bottom-color: #6366f1; font-weight: 700; }

/* === HERO === */
.hero {
  max-width: 1120px; margin: 0 auto; padding: 4rem 1.5rem 3.5rem;
  background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 50%, #ecfdf5 100%);
  border-radius: 0 0 24px 24px; margin-top: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; padding: 3.5rem 1.5rem 3rem; gap: 2.5rem; }
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.03em;
  color: #4f46e5; background: linear-gradient(135deg, #eef2ff, #ede9fe);
  padding: 0.35rem 0.875rem; border-radius: 9999px;
  border: 1px solid #a5b4fc; margin-bottom: 1.25rem;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(99,102,241,0.15);
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 800; line-height: 1.08;
  letter-spacing: -0.04em; color: #0f172a; margin-bottom: 1.25rem;
}
.hero-title span {
  display: inline;
  background: linear-gradient(100deg, #6366f1 0%, #8b5cf6 40%, #22d3ee 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub { font-size: 1rem; color: #64748b; line-height: 1.75; margin-bottom: 2rem; max-width: 400px; }

.hero-search { position: relative; margin-bottom: 0; }
.hero-search-input {
  width: 100%; padding: 0.8rem 1rem 0.8rem 2.75rem;
  font-size: 0.9rem; background: #fff; border: 1.5px solid #e2e8f0;
  border-radius: 12px; color: #1e293b; outline: none;
  transition: all 150ms ease; box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.hero-search-input:focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }
.hero-search-input::placeholder { color: #94a3b8; }
.hero-search-icon { position: absolute; left: 0.875rem; top: 50%; transform: translateY(-50%); font-size: 1rem; color: #94a3b8; pointer-events: none; }

/* === HERO RIGHT === */
.hero-right { animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.625rem; }
.hc {
  background: #fff; border-radius: 12px; padding: 0.875rem 1rem;
  display: flex; flex-direction: column; text-decoration: none;
  border: 1px solid #f1f5f9;
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.hc:hover { border-color: #c7d2fe; box-shadow: 0 4px 16px rgba(99,102,241,0.12); transform: translateY(-2px); text-decoration: none; }
.hc-icon { font-size: 1.375rem; margin-bottom: 0.5rem; line-height: 1; }
.hc-title { font-size: 0.8125rem; font-weight: 700; color: #1e293b; margin-bottom: 0.1rem; }
.hc-sub { font-size: 0.7rem; color: #94a3b8; }

/* CTA */
.hero-cta { display: flex; gap: 0.625rem; flex-wrap: wrap; margin-top: 1.5rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.7rem 1.375rem; border-radius: 10px;
  font-size: 0.875rem; font-weight: 700; cursor: pointer;
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit; white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, #6366f1, #7c3aed);
  color: #fff; border: none;
  box-shadow: 0 4px 14px rgba(99,102,241,0.35);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99,102,241,0.45);
}
.btn--outline { background: #fff; border: 1.5px solid #e2e8f0; color: #475569; }
.btn--outline:hover { border-color: #6366f1; color: #6366f1; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

/* === PRIVACY STRIP === */
.privacy-strip { background: linear-gradient(90deg, #eef2ff, #f5f3ff, #ecfdf5, #fff7ed); border-top: 1px solid #c7d2fe; border-bottom: 1px solid #c7d2fe; padding: 0.875rem 0; }
.privacy-inner { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; display: flex; justify-content: center; flex-wrap: wrap; gap: 0.3rem 1.5rem; font-size: 0.775rem; color: #64748b; font-weight: 600; letter-spacing: 0.01em; }
.privacy-item { display: flex; align-items: center; gap: 0.375rem; }

/* === TOOLS HOME === */
.tools-home { padding: 3rem 0 5rem; }
.tools-home .container { display: flex; flex-direction: column; gap: 0; }

/* === CATEGORY SECTION === */
.category-section { padding: 2.5rem 0 2rem; border-bottom: 1px solid #f1f5f9; animation: fadeInUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) both; }

.category-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; position: relative; padding-left: 0.875rem; }
.category-header::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 70%; border-radius: 4px;
  background: linear-gradient(180deg, var(--cat-color, #6366f1), transparent);
}
.category-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; background: var(--cat-color, #6366f1); box-shadow: 0 0 0 3px rgba(255,255,255,0.8); }
.category-info { flex: 1; padding-left: 0.25rem; }
.category-label { font-size: 0; display: none; }
.category-title { font-size: 1.0625rem; font-weight: 800; color: #0f172a; letter-spacing: -0.02em; }
.category-count { font-size: 0.72rem; font-weight: 700; color: #94a3b8; background: #f5f3ff; border: 1px solid #e2e8f0; padding: 0.2rem 0.6rem; border-radius: 9999px; white-space: nowrap; }

/* === TOOL GRID === */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.75rem; }
.tool-card {
  background: #fff; border: 1px solid #f1f5f9; border-top: 3px solid var(--card-color, #6366f1);
  border-radius: 12px; padding: 1.125rem 1.25rem;
  display: flex; flex-direction: column;
  text-decoration: none; transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
  position: relative; overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.tool-card::before { display: none; }
.tool-card:hover {
  border-color: var(--card-color, #6366f1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.09);
  transform: translateY(-3px);
  text-decoration: none;
}
.tool-card:hover::before { opacity: 1; }

.tool-card-icon { font-size: 1.5rem; margin-bottom: 0.625rem; }
.tool-card-title { font-size: 0.875rem; font-weight: 700; color: #1e293b; margin-bottom: 0.375rem; }
.tool-card-desc { font-size: 0.8125rem; color: #64748b; line-height: 1.6; flex: 1; margin-bottom: 1rem; }
.tool-card-meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.tool-card-tags { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.tag { font-size: 0; display: none; }
.tool-card-link { font-size: 0.8125rem; font-weight: 700; color: #94a3b8; transition: color 150ms ease; }
.tool-card-link::after { content: ' \2192'; transition: transform 150ms ease; display: inline-block; }
.tool-card:hover .tool-card-link::after { transform: translateX(3px); }
.tool-card:hover .tool-card-link { color: var(--card-color, #6366f1); }

/* Card accent colors */
.tc-blue { --card-color: #6366f1; border-top-color: #6366f1; }
.tc-green { --card-color: #16a34a; border-top-color: #16a34a; }
.tc-yellow { --card-color: #ca8a04; border-top-color: #ca8a04; }
.tc-purple { --card-color: #8b5cf6; border-top-color: #8b5cf6; }
.tc-pink { --card-color: #ec4899; border-top-color: #ec4899; }
.tc-orange { --card-color: #ea580c; border-top-color: #ea580c; }
.tc-red { --card-color: #f43f5e; border-top-color: #f43f5e; }
.tc-cyan { --card-color: #22d3ee; border-top-color: #22d3ee; }
.tc-gray { --card-color: #64748b; border-top-color: #64748b; }

/* Category color vars for section headers */
:root {
  --tc-blue: #6366f1;
  --tc-green: #16a34a;
  --tc-yellow: #ca8a04;
  --tc-purple: #8b5cf6;
  --tc-pink: #ec4899;
  --tc-orange: #ea580c;
  --tc-red: #f43f5e;
  --tc-cyan: #22d3ee;
  --tc-gray: #64748b;
}

/* === TOOL PAGE === */
.tool-page { padding: 3rem 0 4rem; }
.tool-page-header { margin-bottom: 1.75rem; }
.tool-page-title { font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 800; color: #0f172a; letter-spacing: -0.04em; margin-bottom: 0.5rem; }
.lead-text { font-size: 0.9375rem; color: #64748b; line-height: 1.7; }
.tool-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 768px) { .tool-layout { grid-template-columns: 1fr; } }
.tool-panel { display: flex; flex-direction: column; gap: 0.5rem; }
.tool-panel-label { font-size: 0.72rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.07em; }
.tool-input {
  width: 100%; min-height: 220px; padding: 0.875rem 1rem;
  font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: 0.8125rem; line-height: 1.7;
  background: #fff; border: 1.5px solid #e2e8f0;
  border-radius: 12px; color: #1e293b; resize: vertical; outline: none;
  transition: border-color 150ms ease;
}
.tool-input:focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,0.08); }
.tool-output {
  min-height: 220px; padding: 0.875rem 1rem;
  font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: 0.8125rem; line-height: 1.7;
  background: #f5f3ff; border: 1.5px solid #e2e8f0;
  border-radius: 12px; overflow: auto; white-space: pre-wrap; word-break: break-all;
}
.tool-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1.125rem 0; }
.tool-stats { display: flex; gap: 1.5rem; font-size: 0.775rem; color: #94a3b8; padding: 1rem 0; border-top: 1px solid #f1f5f9; }

/* === BUTTONS === */
.btn--secondary { background: #fff; border: 1.5px solid #e2e8f0; color: #475569; border-radius: 10px; }
.btn--secondary:hover { border-color: #6366f1; color: #6366f1; }
.btn--ghost { background: transparent; color: #64748b; border-radius: 10px; }
.btn--ghost:hover { background: #f5f3ff; color: #1e293b; }
.btn--sm { padding: 0.45rem 0.875rem; font-size: 0.775rem; border-radius: 8px; }
.btn-group { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.copy-btn {
  background: none; border: 1px solid #e2e8f0; border-radius: 8px;
  padding: 0.3rem 0.75rem; font-size: 0.725rem; color: #64748b; cursor: pointer;
  transition: all 120ms ease; font-family: inherit;
}
.copy-btn:hover { border-color: #6366f1; color: #6366f1; }

/* === TOGGLE === */
.toggle { display: flex; align-items: center; gap: 0.625rem; cursor: pointer; font-size: 0.8125rem; color: #475569; }
.toggle input { display: none; }
.toggle-track { width: 38px; height: 22px; background: #e2e8f0; border-radius: 9999px; position: relative; transition: background 150ms ease; }
.toggle input:checked + .toggle-track { background: #6366f1; }
.toggle-thumb { width: 16px; height: 16px; background: #fff; border-radius: 50%; position: absolute; top: 3px; left: 3px; transition: transform 150ms ease; box-shadow: 0 1px 3px rgba(0,0,0,0.15); }
.toggle input:checked + .toggle-track .toggle-thumb { transform: translateX(16px); }

/* === TOAST === */
.toast {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(110px);
  background: linear-gradient(135deg, #6366f1, #7c3aed); color: #fff;
  padding: 0.7rem 1.5rem; border-radius: 10px;
  font-size: 0.875rem; font-weight: 700;
  box-shadow: 0 8px 24px rgba(99,102,241,0.35); transition: transform 250ms cubic-bezier(0.4,0,0.2,1);
  z-index: 200; pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* === FAQ === */
.faq-section { margin-top: 3rem; }
.faq-title { font-size: 1.0625rem; font-weight: 800; margin-bottom: 1rem; color: #0f172a; letter-spacing: -0.02em; }
.faq-item { background: #fff; border: 1px solid #f1f5f9; border-radius: 12px; margin-bottom: 0.5rem; overflow: hidden; transition: border-color 150ms ease, box-shadow 150ms ease; }
.faq-item:hover { border-color: #c7d2fe; box-shadow: 0 2px 8px rgba(99,102,241,0.08); }
.faq-item.open { border-color: #c7d2fe; }
.faq-question { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; font-size: 0.875rem; font-weight: 600; color: #1e293b; background: #fff; cursor: pointer; border: none; width: 100%; text-align: left; font-family: inherit; }
.faq-question:hover { background: #f5f3ff; }
.faq-answer { padding: 0 1.25rem 1rem; font-size: 0.8375rem; color: #64748b; line-height: 1.75; border-top: 1px solid #f8fafc; background: #fafbfe; }
.faq-icon { transition: transform 200ms ease; font-size: 1.1rem; color: #6366f1; flex-shrink: 0; font-weight: 700; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* === BLOG === */
.blog-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 0.875rem; }
.blog-card { background: #fff; border: 1px solid #f1f5f9; border-top: 3px solid #6366f1; border-radius: 12px; padding: 1.25rem; transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column; position: relative; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.blog-card:hover { border-color: #c7d2fe; box-shadow: 0 8px 24px rgba(99,102,241,0.1); transform: translateY(-3px); }
.blog-card-date { font-size: 0.72rem; color: #94a3b8; margin-bottom: 0.625rem; font-weight: 600; }
.blog-card-title { font-size: 0.9375rem; font-weight: 700; color: #1e293b; margin-bottom: 0.5rem; line-height: 1.35; }
.blog-card-excerpt { font-size: 0.8rem; color: #64748b; line-height: 1.65; flex: 1; margin-bottom: 1.125rem; }
.blog-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 1rem; border-top: 1px solid #f8fafc; }
.blog-read-time { font-size: 0.72rem; color: #94a3b8; }
.blog-card-link { font-size: 0.8rem; font-weight: 700; color: #94a3b8; }
.blog-card-link::after { content: ' \2192'; transition: transform 120ms ease; display: inline-block; }
.blog-card-link:hover::after { transform: translateX(3px); }
.blog-card-link:hover { color: #6366f1; }

/* === BLOG ARTICLE === */
.blog-article { max-width: 700px; }
.blog-article-header { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid #e2e8f0; }
.blog-article h1 { font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 800; color: #0f172a; letter-spacing: -0.04em; margin-bottom: 1rem; line-height: 1.15; }
.blog-article .lead { font-size: 1rem; color: #475569; line-height: 1.75; margin-bottom: 1.25rem; padding: 1rem 1.25rem; background: #fafbfe; border-radius: 10px; border-left: 3px solid #6366f1; }
.blog-article-meta { display: flex; gap: 1.25rem; font-size: 0.775rem; color: #94a3b8; }
.blog-article h2 { font-size: 1.0625rem; font-weight: 800; color: #0f172a; margin: 2.5rem 0 0.875rem; padding-bottom: 0.625rem; border-bottom: 1px solid #f1f5f9; letter-spacing: -0.015em; }
.blog-article h3 { font-size: 0.9375rem; font-weight: 700; color: #1e293b; margin: 1.75rem 0 0.625rem; }
.blog-article p { font-size: 0.9375rem; color: #475569; line-height: 1.8; margin-bottom: 1.125rem; }
.blog-article ul, .blog-article ol { margin: 0.875rem 0 1.375rem 1.375rem; }
.blog-article li { margin-bottom: 0.4rem; line-height: 1.7; }
.blog-article code { font-family: 'JetBrains Mono', monospace; font-size: 0.875em; background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 5px; padding: 2px 5px; color: #6366f1; }
.blog-article pre { background: #1e293b; color: #f8fafc; border-radius: 12px; padding: 1.25rem; overflow-x: auto; margin: 1.375rem 0; font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; line-height: 1.75; }
.blog-article pre code { background: none; border: none; padding: 0; color: inherit; }
.blog-article blockquote { margin: 1.375rem 0; padding: 1rem 1.25rem; background: #fafbfe; border-left: 3px solid #6366f1; border-radius: 0 10px 10px 0; font-style: italic; color: #64748b; }
.blog-toc { background: #fafbfe; border: 1px solid #e2e8f0; border-radius: 12px; padding: 1.125rem; margin: 1.5rem 0; }
.blog-toc-title { font-size: 0.8rem; font-weight: 800; margin-bottom: 0.75rem; color: #0f172a; }
.blog-toc ul { list-style: none; margin: 0; }
.blog-toc li { margin-bottom: 0.4rem; }
.blog-toc a { font-size: 0.8rem; color: #6366f1; }
.blog-toc a:hover { color: #4338ca; }

/* === BREADCRUMBS === */
.breadcrumbs { display: flex; align-items: center; gap: 0.4rem; font-size: 0.775rem; color: #6366f1; margin-bottom: 1.5rem; flex-wrap: wrap; }
.breadcrumbs a { color: #6366f1; font-weight: 600; }
.breadcrumbs a:hover { color: #6366f1; }
.breadcrumbs span { color: #cbd5e1; }

/* === FOOTER === */
.footer { background: linear-gradient(180deg, #fff 0%, #f5f3ff 100%); border-top: 1px solid #c7d2fe; padding: 3rem 0 2rem; margin-top: 4rem; }
.footer-top { display: flex; gap: 3rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.footer-brand { flex: 1; min-width: 180px; }
.footer-brand p { font-size: 0.8125rem; color: #94a3b8; margin-top: 0.75rem; line-height: 1.7; }
.footer-links { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-col-title { font-size: 0; display: none; }
.footer-col ul { list-style: none; margin: 0; }
.footer-col li { margin-bottom: 0.625rem; }
.footer-col a { font-size: 0.8125rem; color: #64748b; transition: color 120ms ease; }
.footer-col a:hover { color: #6366f1; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; border-top: 1px solid #f1f5f9; flex-wrap: wrap; gap: 0.875rem; }
.footer-copy { font-size: 0.775rem; color: #94a3b8; }
.footer-legal { display: flex; gap: 1.25rem; }
.footer-legal a { font-size: 0.775rem; color: #94a3b8; transition: color 120ms ease; }
.footer-legal a:hover { color: #6366f1; }

/* === VIEW ALL ROW === */
.view-all-row { display: flex; justify-content: flex-end; padding: 0.875rem 0 0; }
.view-all-link { font-size: 0.8rem; font-weight: 700; color: #6366f1; transition: all 150ms ease; display: inline-flex; align-items: center; gap: 0.3rem; }
.view-all-link::after { content: ' \2192'; transition: transform 150ms ease; display: inline-block; }
.view-all-link:hover { color: #4338ca; }
.view-all-link:hover::after { transform: translateX(3px); }
.hidden-card { display: none; }

/* === EXTERNAL CARD === */
.ext-card { cursor: pointer; }
.ext-card:hover .tool-card-link { color: #f43f5e; }

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

main { flex: 1; animation: fadeIn 0.3s ease-out 0.1s both; }

/* Hero grid stagger */
.hc:nth-child(1) { animation: scaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both; }
.hc:nth-child(2) { animation: scaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both; }
.hc:nth-child(3) { animation: scaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both; }
.hc:nth-child(4) { animation: scaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both; }
.hc:nth-child(5) { animation: scaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both; }
.hc:nth-child(6) { animation: scaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero { padding: 3.5rem 1.5rem 3rem; }
  .tool-grid { grid-template-columns: 1fr; }
  .blog-list { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-cta { flex-direction: column; }
  .hero-right { display: none; }
}
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .container--narrow { padding: 0 1rem; }
}
