@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #4338ca;
  --primary-dark: #3730a3;
  --primary-light: #6366f1;
  --secondary: #7c3aed;
  --secondary-dark: #6d28d9;
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.15);
  --gradient-primary: linear-gradient(135deg, #4338ca 0%, #7c3aed 100%);
  --gradient-hover: linear-gradient(135deg, #3730a3 0%, #6d28d9 100%);
  --gradient-soft: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ───────── NAVBAR ───────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226,232,240,0.8);
  padding: 0 1.5rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.nav-brand-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -1px;
  box-shadow: 0 4px 12px rgba(67,56,202,0.35);
}

.nav-brand-logo {
  height: 32px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

.nav-brand-name span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 0.5rem 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
  background: rgba(67,56,202,0.06);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-nav-cta {
  padding: 0.5rem 1.25rem;
  background: var(--gradient-primary);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(67,56,202,0.3);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(67,56,202,0.4);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ───────── HERO ───────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #f0f4ff 0%, #faf5ff 50%, #f5f7fb 100%);
}

.hero-bg-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
}

.hero-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #4338ca, transparent);
  top: -200px;
  right: -100px;
}

.hero-orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #7c3aed, transparent);
  bottom: -150px;
  left: -100px;
}

.hero-orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #06b6d4, transparent);
  top: 30%;
  left: 60%;
  opacity: 0.15;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(67,56,202,0.08);
  border: 1px solid rgba(67,56,202,0.15);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease both;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--text);
  margin-bottom: 1.25rem;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-title .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
  line-height: 1.7;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-search-wrapper {
  position: relative;
  max-width: 620px;
  margin: 0 auto 2rem;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-search {
  width: 100%;
  padding: 1rem 1.25rem 1rem 3.5rem;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  border: 2px solid var(--border);
  border-radius: 100px;
  background: white;
  color: var(--text);
  box-shadow: 0 8px 30px rgba(67,56,202,0.1);
  outline: none;
  transition: var(--transition);
}

.hero-search:focus {
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(67,56,202,0.2), 0 0 0 4px rgba(67,56,202,0.08);
}

.hero-search::placeholder { color: var(--text-light); }

.hero-search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 1.1rem;
  pointer-events: none;
}

.hero-search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.65rem 1.5rem;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
  box-shadow: 0 4px 12px rgba(67,56,202,0.35);
}

.hero-search-btn:hover {
  transform: translateY(-50%) scale(1.03);
  box-shadow: 0 6px 18px rgba(67,56,202,0.45);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

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

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

/* ───────── SECTIONS ───────── */
.section {
  padding: 5rem 1.5rem;
}

.section-alt {
  background: white;
}

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

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ───────── CARDS ───────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.cards-grid-2 {
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
}

.tool-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-soft);
  opacity: 0;
  transition: var(--transition);
  z-index: 0;
}

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

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(99,102,241,0.2);
}

.tool-card > * { position: relative; z-index: 1; }

.tool-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.tool-card-icon.blue { background: rgba(67,56,202,0.1); color: var(--primary); }
.tool-card-icon.purple { background: rgba(124,58,237,0.1); color: var(--secondary); }
.tool-card-icon.green { background: rgba(16,185,129,0.1); color: var(--success); }
.tool-card-icon.amber { background: rgba(245,158,11,0.1); color: var(--warning); }
.tool-card-icon.rose { background: rgba(239,68,68,0.1); color: var(--danger); }
.tool-card-icon.cyan { background: rgba(6,182,212,0.1); color: #0891b2; }

.tool-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tool-card-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-light);
  background: var(--border-light);
  padding: 3px 10px;
  border-radius: 100px;
}

.tool-card-arrow {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.85rem;
  transition: var(--transition);
}

.tool-card:hover .tool-card-arrow {
  background: var(--primary);
  color: white;
  transform: translateX(2px);
}

.tool-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.25px;
}

.tool-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.tool-card-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-light);
  margin-top: auto;
}

.tool-card-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--success);
  background: rgba(16,185,129,0.08);
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid rgba(16,185,129,0.15);
}

.tool-card-users {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: auto;
}

/* ───────── FEATURED TOOL (larger card) ───────── */
.featured-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(99,102,241,0.2);
}

.featured-card-body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

.featured-card-visual {
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  min-height: 220px;
  position: relative;
  overflow: hidden;
}

.featured-card-visual::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  top: -50px;
  right: -50px;
}

.featured-card-visual::after {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  bottom: -40px;
  left: -20px;
}

/* ───────── CATEGORIES ───────── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.category-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(99,102,241,0.2);
}

.category-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1.25rem;
}

.category-card:nth-child(1) .category-icon { background: linear-gradient(135deg, #ede9fe, #ddd6fe); }
.category-card:nth-child(2) .category-icon { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }
.category-card:nth-child(3) .category-icon { background: linear-gradient(135deg, #fef3c7, #fde68a); }

.category-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.category-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.category-count {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(67,56,202,0.08);
  padding: 4px 12px;
  border-radius: 100px;
}

/* ───────── BUTTONS ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-size: 0.925rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 14px rgba(67,56,202,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(67,56,202,0.4);
}

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: rgba(67,56,202,0.04);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover {
  background: white;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  box-shadow: 0 4px 14px rgba(239,68,68,0.25);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(239,68,68,0.35);
}

.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: 0 4px 14px rgba(16,185,129,0.25);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16,185,129,0.35);
}

.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; }
.btn-icon { padding: 0.625rem; border-radius: var(--radius-sm); }

/* ───────── GLASS CARD ───────── */
.glass-card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ───────── FOOTER ───────── */
.footer {
  background: #0f0f23;
  color: rgba(255,255,255,0.7);
  padding: 5rem 1.5rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
  text-decoration: none;
}

.footer-brand-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: 800;
}

.footer-brand-logo {
  height: 28px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,0.5);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social-link {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.06);
}

.footer-social-link:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.footer-col-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.25rem;
}

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

.footer-links a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition);
}

.footer-links a:hover { color: white; }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copyright {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: var(--transition);
}

.footer-legal a:hover { color: rgba(255,255,255,0.7); }

/* ───────── SEARCH RESULTS ───────── */
.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  z-index: 100;
  overflow: hidden;
  display: none;
}

.search-results.show { display: block; }

.search-result-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
  border-bottom: 1px solid var(--border-light);
}

.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--bg); }

.search-result-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.search-result-info h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 2px;
}

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

/* ───────── MOBILE NAV ───────── */
.nav-mobile {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  z-index: 999;
  box-shadow: var(--shadow-lg);
}

.nav-mobile.open { display: block; }

.nav-mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-mobile-links a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-mobile-links a:hover {
  color: var(--primary);
  background: rgba(67,56,202,0.06);
}

/* ───────── SCROLL REVEAL ───────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ───────── RESPONSIVE ───────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-card { grid-template-columns: 1fr; }
  .featured-card-visual { min-height: 160px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }
  .hero-stats { gap: 1.25rem; flex-wrap: wrap; }
  .hero-stat-divider { display: none; }
  .cards-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .hero-search-btn span { display: none; }
  .hero-search-btn { padding: 0.65rem 1rem; }
}

@media (max-width: 480px) {
  .section { padding: 3.5rem 1rem; }
  .footer { padding: 3rem 1rem 1.5rem; }
}

/* ───────── INLINE BRAND SVG ───────── */
.brand-icon { flex-shrink: 0; display: block; }
.nav-brand-name { font-size: 1.15rem; font-weight: 800; color: var(--text); letter-spacing: -0.5px; }
.nav-brand-name span { color: var(--primary); }

/* ───────── CATEGORIES DROPDOWN ───────── */
.nav-has-dropdown { position: relative; }

.nav-cat-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 0.5rem 0.875rem;
  color: var(--text-muted);
  font-size: 0.9rem; font-weight: 500;
  font-family: 'Inter', sans-serif;
  background: none; border: none; cursor: pointer;
  border-radius: var(--radius-sm); transition: var(--transition);
}
.nav-cat-btn:hover { color: var(--primary); background: rgba(67,56,202,0.06); }
.nav-chevron { transition: transform 0.2s ease; }
.nav-has-dropdown:hover .nav-chevron,
.nav-has-dropdown.open .nav-chevron { transform: rotate(180deg); }

.nav-dropdown-panel {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%);
  background: white; border: 1px solid var(--border);
  border-radius: 16px; padding: 1.25rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  transform: translateX(-50%) translateY(-6px);
  z-index: 9999; white-space: nowrap;
  min-width: 680px;
}
.nav-has-dropdown:hover .nav-dropdown-panel,
.nav-has-dropdown.open .nav-dropdown-panel {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem;
}
.nav-dropdown-col { display: flex; flex-direction: column; gap: 2px; }
.nav-dropdown-heading {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.6px; color: var(--text-muted);
  margin-bottom: 6px; padding-bottom: 6px;
  border-bottom: 1px solid var(--border-light);
}
.nav-dropdown-panel a {
  font-size: 0.83rem; color: var(--text-muted); text-decoration: none;
  padding: 4px 6px; border-radius: 6px; transition: var(--transition);
  display: block;
}
.nav-dropdown-panel a:first-of-type { font-weight: 600; color: var(--primary); }
.nav-dropdown-panel a:hover { color: var(--primary); background: rgba(67,56,202,0.06); }

/* ───────── MOBILE CATEGORIES ───────── */
.nav-mobile-cat-wrap { border-top: 1px solid var(--border-light); margin-top: 4px; padding-top: 4px; }
.nav-mobile-cat-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1rem; color: var(--text-muted); font-size: 0.95rem; font-weight: 500;
  font-family: 'Inter', sans-serif; background: none; border: none; cursor: pointer;
  border-radius: var(--radius-sm); transition: var(--transition);
}
.nav-mobile-cat-btn:hover { color: var(--primary); background: rgba(67,56,202,0.06); }
.mob-arrow { transition: transform 0.2s; font-size: 0.7rem; }
.nav-mobile-cat-wrap.open .mob-arrow { transform: rotate(180deg); }
.nav-mobile-cat-panel { display: none; padding: 4px 0 4px 1rem; flex-direction: column; gap: 2px; }
.nav-mobile-cat-wrap.open .nav-mobile-cat-panel { display: flex; }
.nav-mobile-cat-panel a {
  display: block; padding: 0.6rem 0.75rem; color: var(--text-muted);
  font-size: 0.88rem; font-weight: 500; text-decoration: none;
  border-radius: var(--radius-sm); transition: var(--transition);
}
.nav-mobile-cat-panel a:hover { color: var(--primary); background: rgba(67,56,202,0.06); }

/* ───────── CATEGORY PAGE ───────── */
.cat-hero {
  padding: 7rem 1.5rem 3.5rem;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
  text-align: center; color: white;
}
.cat-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px; padding: 6px 16px; font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 1.5rem;
}
.cat-hero-icon { font-size: 3.5rem; margin-bottom: 1rem; display: block; }
.cat-hero h1 { font-size: clamp(2rem,5vw,3rem); font-weight: 900; letter-spacing: -1px; margin-bottom: 1rem; }
.cat-hero p { font-size: 1.1rem; opacity: 0.8; max-width: 560px; margin: 0 auto 2rem; line-height: 1.7; }

.cat-search-bar {
  max-width: 480px; margin: 0 auto;
  display: flex; gap: 0; border-radius: 100px;
  overflow: hidden; background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
}
.cat-search-input {
  flex: 1; background: none; border: none; outline: none;
  padding: 0.875rem 1.25rem; font-size: 0.95rem; color: white; font-family: 'Inter', sans-serif;
}
.cat-search-input::placeholder { color: rgba(255,255,255,0.5); }
.cat-search-btn {
  background: white; border: none; padding: 0.875rem 1.5rem;
  color: var(--primary); font-weight: 700; font-size: 0.9rem;
  font-family: 'Inter', sans-serif; cursor: pointer; transition: var(--transition);
}
.cat-search-btn:hover { background: var(--bg); }

.cat-main { max-width: 1200px; margin: 0 auto; padding: 3rem 1.5rem; }
.cat-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: var(--text-muted); margin-bottom: 2rem;
}
.cat-breadcrumb a { color: var(--primary); text-decoration: none; }
.cat-breadcrumb a:hover { text-decoration: underline; }
.cat-breadcrumb-sep { opacity: 0.4; }

.cat-tools-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem;
  margin-bottom: 3rem;
}
.cat-tool-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.5rem; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 0.75rem;
  transition: var(--transition); box-shadow: var(--shadow-sm);
}
.cat-tool-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-md);
  border-color: rgba(67,56,202,0.3);
}
.cat-card-top { display: flex; align-items: flex-start; justify-content: space-between; }
.cat-card-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.cat-card-arrow { color: var(--text-light); font-size: 1.1rem; transition: var(--transition); }
.cat-tool-card:hover .cat-card-arrow { color: var(--primary); transform: translateX(3px); }
.cat-card-name { font-size: 1rem; font-weight: 700; color: var(--text); }
.cat-card-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; flex: 1; }
.cat-card-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 600; padding: 3px 10px;
  border-radius: 100px; background: rgba(67,56,202,0.08); color: var(--primary);
  text-transform: uppercase; letter-spacing: 0.4px;
}

.related-cats { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.related-cats-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }
.related-cats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.75rem; }
.related-cat-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.1rem 1.25rem; text-decoration: none; color: inherit;
  display: flex; align-items: center; gap: 0.75rem;
  transition: var(--transition); box-shadow: var(--shadow-sm);
}
.related-cat-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.related-cat-icon { font-size: 1.4rem; }
.related-cat-name { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.related-cat-count { font-size: 0.75rem; color: var(--text-muted); }

/* ───────── ABOUT PAGE ───────── */
.about-hero {
  padding: 7rem 1.5rem 4rem; text-align: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
  color: white;
}
.about-hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px; padding: 6px 18px; font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.9);
  margin-bottom: 1.5rem;
}
.about-hero h1 { font-size: clamp(2.5rem,5vw,4rem); font-weight: 900; letter-spacing: -1.5px; margin-bottom: 1.25rem; }
.about-hero p { font-size: 1.15rem; opacity: 0.75; max-width: 620px; margin: 0 auto; line-height: 1.8; }
.about-main { max-width: 960px; margin: 0 auto; padding: 4rem 1.5rem; }
.about-section { margin-bottom: 4rem; }
.about-section-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--primary); margin-bottom: 0.5rem; }
.about-section-title { font-size: 2rem; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 1rem; color: var(--text); }
.about-section-desc { font-size: 1rem; color: var(--text-muted); line-height: 1.8; max-width: 680px; }
.about-features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-top: 2rem; }
.about-feature-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
}
.about-feature-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.about-feature-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.35rem; color: var(--text); }
.about-feature-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; }
.about-faq { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }
.faq-item { background: white; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 1.25rem; font-size: 0.95rem; font-weight: 600; color: var(--text);
  font-family: 'Inter', sans-serif; background: none; border: none; cursor: pointer; text-align: left;
}
.faq-q:hover { color: var(--primary); }
.faq-icon { font-size: 0.8rem; transition: transform 0.2s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 1.25rem 1rem; font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }
.faq-item.open .faq-a { display: block; }
.about-cta {
  background: linear-gradient(135deg, #4338ca, #7c3aed); border-radius: 24px;
  padding: 3.5rem 2rem; text-align: center; color: white; margin-top: 3rem;
}
.about-cta h2 { font-size: 2rem; font-weight: 900; letter-spacing: -0.5px; margin-bottom: 0.75rem; }
.about-cta p { opacity: 0.8; margin-bottom: 2rem; font-size: 1rem; }
.about-cta-btn {
  display: inline-block; background: white; color: var(--primary);
  padding: 0.875rem 2.5rem; border-radius: 100px; font-weight: 700; font-size: 1rem;
  text-decoration: none; transition: var(--transition);
}
.about-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.25); }

/* ───────── TOOL HERO SHARED ───────── */
.breadcrumb-nav {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.8rem; color: var(--text-muted); padding: 0 0 0.5rem;
}
.breadcrumb-nav a { color: rgba(255,255,255,0.7); text-decoration: none; }
.breadcrumb-nav a:hover { color: white; }
.breadcrumb-nav .bc-sep { opacity: 0.5; font-size: 0.7rem; }
.breadcrumb-nav .bc-current { color: rgba(255,255,255,0.9); font-weight: 600; }

/* ───────── BMI CALCULATOR ───────── */
.bmi-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 900px; margin: 0 auto; }
@media(max-width:720px){ .bmi-layout{grid-template-columns:1fr;} }
.bmi-toggle-group { display: flex; background: var(--border-light); border-radius: 10px; padding: 4px; margin-bottom: 1.25rem; }
.bmi-toggle-btn {
  flex: 1; padding: 0.5rem; border: none; border-radius: 8px; font-size: 0.88rem;
  font-weight: 600; cursor: pointer; font-family: 'Inter',sans-serif;
  background: none; color: var(--text-muted); transition: var(--transition);
}
.bmi-toggle-btn.active { background: white; color: var(--primary); box-shadow: var(--shadow-sm); }
.bmi-result-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.75rem; box-shadow: var(--shadow-sm);
}
.bmi-big { text-align: center; padding: 1.5rem 0; }
.bmi-big-value { font-size: 4rem; font-weight: 900; letter-spacing: -2px; line-height: 1; }
.bmi-big-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.25rem; }
.bmi-category-badge {
  display: inline-block; padding: 6px 18px; border-radius: 100px;
  font-size: 0.85rem; font-weight: 700; margin: 0.5rem auto;
}
.bmi-gauge { margin: 1.25rem 0; }
.bmi-gauge-track {
  height: 10px; border-radius: 5px; width: 100%; overflow: hidden;
  background: linear-gradient(to right, #3b82f6 0%, #22c55e 30%, #f59e0b 60%, #ef4444 100%);
  position: relative;
}
.bmi-gauge-needle {
  position: absolute; top: -4px; width: 18px; height: 18px; border-radius: 50%;
  background: white; border: 3px solid var(--text); transform: translateX(-50%);
  transition: left 0.6s cubic-bezier(0.34,1.56,0.64,1);
}
.bmi-range-labels { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; }
.bmi-info-table { margin-top: 1rem; width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.bmi-info-table th { background: var(--bg); text-align: left; padding: 8px 12px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-muted); }
.bmi-info-table td { padding: 8px 12px; border-top: 1px solid var(--border-light); }
.bmi-info-table tr.active-row td { background: rgba(67,56,202,0.05); font-weight: 700; color: var(--primary); }

/* ───────── SIP CALCULATOR ───────── */
.sip-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.5rem; max-width: 900px; margin: 0 auto; }
@media(max-width:720px){ .sip-layout{grid-template-columns:1fr;} }
.sip-result-big { text-align: center; padding: 1.25rem 0; background: linear-gradient(135deg,rgba(67,56,202,0.08),rgba(124,58,237,0.08)); border-radius: 14px; margin-bottom: 1rem; }
.sip-amount-val { font-size: 2.5rem; font-weight: 900; letter-spacing: -1px; color: var(--primary); }
.sip-amount-lbl { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.sip-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 1rem; }
.sip-metric { background: var(--bg); border-radius: 10px; padding: 0.875rem 1rem; }
.sip-metric-val { font-size: 1.25rem; font-weight: 800; color: var(--text); }
.sip-metric-lbl { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }
.sip-bar-chart { margin-top: 1.25rem; }
.sip-bar-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.sip-bar-label { font-size: 0.78rem; color: var(--text-muted); min-width: 100px; }
.sip-bar-track { flex: 1; height: 10px; background: var(--border-light); border-radius: 5px; overflow: hidden; }
.sip-bar-fill { height: 100%; border-radius: 5px; transition: width 0.5s ease; }
.sip-bar-val { font-size: 0.8rem; font-weight: 700; min-width: 80px; text-align: right; }

/* ───────── DISCOUNT CALCULATOR ───────── */
.disc-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 800px; margin: 0 auto; }
@media(max-width:680px){ .disc-layout{grid-template-columns:1fr;} }
.disc-result-highlight {
  background: linear-gradient(135deg, #4338ca, #7c3aed); border-radius: 16px;
  padding: 1.75rem; color: white; text-align: center; margin-bottom: 1rem;
}
.disc-save-label { font-size: 0.82rem; opacity: 0.8; margin-bottom: 4px; }
.disc-save-val { font-size: 3rem; font-weight: 900; letter-spacing: -1.5px; }
.disc-save-pct { font-size: 1rem; opacity: 0.85; margin-top: 2px; }
.disc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.disc-metric { background: var(--bg); border-radius: 10px; padding: 0.875rem 1rem; }
.disc-metric-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; }
.disc-metric-val { font-size: 1.35rem; font-weight: 800; color: var(--text); margin-top: 3px; }
.disc-metric-val.highlight { color: var(--primary); }

/* ───────── GST CALCULATOR ───────── */
.gst-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 800px; margin: 0 auto; }
@media(max-width:680px){ .gst-layout{grid-template-columns:1fr;} }
.gst-mode-tabs { display: flex; gap: 0; background: var(--border-light); border-radius: 10px; padding: 4px; margin-bottom: 1.25rem; }
.gst-mode-tab {
  flex: 1; padding: 0.6rem; border: none; border-radius: 8px; font-size: 0.88rem;
  font-weight: 600; cursor: pointer; font-family: 'Inter',sans-serif;
  background: none; color: var(--text-muted); transition: var(--transition);
}
.gst-mode-tab.active { background: white; color: var(--primary); box-shadow: var(--shadow-sm); }
.gst-rate-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; margin: 1rem 0; }
.gst-rate-btn {
  padding: 0.75rem; border: 2px solid var(--border); border-radius: 10px; background: white;
  font-size: 0.9rem; font-weight: 700; cursor: pointer; font-family: 'Inter',sans-serif;
  color: var(--text); transition: var(--transition);
}
.gst-rate-btn:hover, .gst-rate-btn.active { border-color: var(--primary); background: rgba(67,56,202,0.06); color: var(--primary); }
.gst-result-highlight {
  background: linear-gradient(135deg, #059669, #047857); border-radius: 16px;
  padding: 1.5rem; color: white; text-align: center; margin-bottom: 1rem;
}
.gst-total-label { font-size: 0.82rem; opacity: 0.85; }
.gst-total-val { font-size: 2.75rem; font-weight: 900; letter-spacing: -1px; margin: 4px 0; }
.gst-breakdown { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; }
.gst-row { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 1rem; background: var(--bg); border-radius: 8px; font-size: 0.9rem; }
.gst-row-label { color: var(--text-muted); font-weight: 500; }
.gst-row-val { font-weight: 700; color: var(--text); }
.gst-row.gst-amount .gst-row-val { color: #059669; }

/* ───────── FAQ SECTION (tools) ───────── */
.tool-faq { max-width: 720px; margin: 3rem auto 0; padding-top: 2rem; border-top: 1px solid var(--border); }
.tool-faq-title { font-size: 1.25rem; font-weight: 800; margin-bottom: 1rem; }
