/* Hero */
.home-hero {
  padding: 48px 0 28px;
  max-width: 720px;
}
.home-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--text);
}
.home-hero h1 .accent {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.home-hero {
  position: relative;
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: -48px -48px auto -48px;
  height: 320px;
  z-index: -1;
  background: var(--bg-mesh);
  opacity: 0.7;
  pointer-events: none;
  filter: blur(30px);
}
.home-hero .hero-sub {
  font-size: var(--fs-md);
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 540px;
  margin: 0;
}

/* Hero trust badges */
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 20px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 5px 12px;
  white-space: nowrap;
}
.hero-badge svg { color: var(--brand); flex-shrink: 0; }
.hero-badge--india svg { color: #f59e0b; }

/* Toolbar: search + tabs */
.toolbar {
  position: sticky;
  top: 64px;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: var(--space-4) 0;
  margin-bottom: var(--space-5);
  border-bottom: 1px solid var(--border);
}
.toolbar-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
}
.search-wrap {
  flex: 1;
  min-width: 180px;
  position: relative;
  display: flex;
  align-items: center;
}
.search-wrap > svg {
  position: absolute;
  left: 14px;
  color: var(--text-subtle);
  pointer-events: none;
}
.search-home {
  width: 100%;
  padding: 10px 18px 10px 42px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: 0;
}
.search-home::placeholder { color: var(--text-subtle); }
.search-home:focus {
  border-color: var(--brand);
  box-shadow: var(--shadow-focus);
}
.search-kbd {
  position: absolute;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-subtle);
  padding: 3px 7px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--bg-muted);
  font-weight: 500;
}

/* Tabs row */
.toolbar .tabs {
  flex-shrink: 0;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.toolbar .tabs::-webkit-scrollbar { display: none; }

/* Card grid */
.calc-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

/* Card */
.calc-card {
  position: relative;
  padding: 18px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  transition: all .15s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 150px;
  text-decoration: none;
  color: var(--text);
}
.calc-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(135deg, transparent 30%, color-mix(in srgb, var(--brand) 40%, transparent) 70%, color-mix(in srgb, var(--warning) 40%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.calc-card:hover {
  border-color: transparent;
  background: var(--bg-card);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -12px rgba(79, 70, 229, 0.25), 0 4px 10px -4px rgba(0,0,0,0.06);
  text-decoration: none;
}
.calc-card:hover::after { opacity: 1; }
.calc-card:hover .calc-card__icon {
  background: var(--brand-grad);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-brand-sm);
}
.calc-card:hover .calc-card__cta { color: var(--brand); }
.calc-card:hover .calc-card__cta-arrow { transform: translateX(3px); }

.calc-card__icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--bg-muted);
  color: var(--ink-700, var(--text));
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: all .15s;
  margin-bottom: 2px;
}
.calc-card__icon svg { width: 18px; height: 18px; }

.calc-card__name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.25;
}
.calc-card__name mark {
  background: color-mix(in srgb, var(--brand) 18%, transparent);
  color: inherit;
  padding: 0 2px;
  border-radius: 2px;
}
.calc-card__blurb {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-muted);
  margin: 0;
  flex-grow: 1;
}
.calc-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 4px;
  transition: color .15s;
}
.calc-card__cta-arrow { transition: transform .15s; }

/* Empty state */
.empty-state {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.empty-state__icon {
  width: 80px; height: 80px;
  color: var(--text-subtle);
  opacity: 0.5;
  margin-bottom: 4px;
}
.empty-state strong {
  color: var(--text); display: block; font-size: 16px;
  margin-bottom: 2px; font-weight: 600;
}
.empty-state p { margin: 0; max-width: 320px; line-height: 1.5; }
.empty-state__actions {
  display: flex; gap: 8px; margin-top: 4px;
}

/* Footer */
.site-footer__inner-simple {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-8) var(--space-5);
  gap: var(--space-4); flex-wrap: wrap;
  font-size: var(--fs-sm);
  color: var(--text-subtle);
  border-top: 1px solid var(--border);
}
.site-footer__inner-simple .logo { font-size: var(--fs-md); }
.footer-note { flex: 1; text-align: center; min-width: 200px; }
@media (max-width: 560px) {
  .site-footer__inner-simple { justify-content: center; text-align: center; }
}

/* Tablet: stack toolbar, show 3-col grid */
@media (max-width: 1024px) {
  .toolbar { top: 60px; }
  .toolbar-inner { gap: 10px; flex-wrap: wrap; }
  .search-wrap { min-width: 0; flex: 0 0 100%; }
  .search-kbd { display: none; }
  .toolbar .tabs { flex: 0 0 100%; max-width: 100%; }
  .calc-card-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .calc-card { padding: 16px; }
}

/* Small mobile: compact 2-col cards */
@media (max-width: 600px) {
  .home-hero { padding: 32px 0 20px; }
  .home-hero h1 { font-size: clamp(26px, 5vw, 36px); }
  .calc-card-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .calc-card { padding: 14px; min-height: 120px; gap: 8px; }
  .calc-card__icon { width: 32px; height: 32px; }
  .calc-card__icon svg { width: 16px; height: 16px; }
  .calc-card__name { font-size: 14px; }
  .calc-card__blurb { display: none; }
  .calc-card__cta { display: none; }
}
