/* ============================================================
   Santosh Electricals — v2 UI Enhancement Layer
   Applies on top of styles.css. No overrides to base tokens.
   ============================================================ */

/* ── DARK HERO ─────────────────────────────────────────────── */
.hero-dark {
  position: relative;
  background: linear-gradient(140deg, #0A0514 0%, #1A0A2E 45%, #0D1628 100%);
  color: #fff;
  overflow: hidden;
  padding: 80px 0 64px;
  min-height: 560px;
  display: flex;
  align-items: center;
}

.hero-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 65% at 85% 15%, rgba(255, 157, 26, .13), transparent 55%),
    radial-gradient(ellipse 60% 55% at 8% 85%,  rgba(103, 16, 126, .28), transparent 55%);
}

.hero-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000 20%, transparent 75%);
}

.hero-dark-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 2;
}

@media (max-width: 840px) {
  .hero-dark { padding: 56px 0 48px; }
  .hero-dark-grid { grid-template-columns: 1fr; gap: 36px; }
}

.hero-dark-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-amber);
  margin-bottom: 14px;
}

.hero-dark h1 {
  font-size: clamp(30px, 5.2vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0 0 18px;
}

.hero-dark h1 .grad-text {
  background: linear-gradient(120deg, #FFD86C 0%, #FF9D1A 60%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-dark-lead {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255,255,255,.68);
  margin: 0 0 28px;
  max-width: 460px;
}

.hero-dark-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-amber);
  color: #1a0a00;
  padding: 14px 24px;
  border-radius: var(--r-pill);
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  transition: background .2s, transform .1s;
}
.btn-hero-primary:hover { background: var(--brand-amber-600); color: #fff; transform: translateY(-1px); text-decoration: none; }

.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  padding: 14px 24px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
.btn-hero-ghost:hover { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.4); color: #fff; text-decoration: none; }

.hero-dark-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  backdrop-filter: blur(4px);
}

/* ── HERO VISUAL SIDE — brand mosaic ──────────────────────── */
.hero-visual-v2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
}

.hero-brand-tile {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4/3;
  backdrop-filter: blur(4px);
  transition: background .2s, border-color .2s;
}
.hero-brand-tile:hover { background: rgba(255,255,255,.1); border-color: rgba(255,157,26,.35); }

.hero-brand-tile img {
  max-width: 80%;
  max-height: 48px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .75;
  transition: opacity .2s;
}
.hero-brand-tile:hover img { opacity: 1; }

.hero-brand-tile.featured {
  background: linear-gradient(135deg, rgba(255,157,26,.15), rgba(103,16,126,.2));
  border-color: rgba(255,157,26,.3);
  grid-column: 1 / -1;
}

.hero-brand-tile.featured img {
  max-height: 56px;
  opacity: .9;
}

.hero-brand-count {
  font-size: 11px;
  color: rgba(255,255,255,.45);
  text-align: center;
  margin-top: 4px;
  font-weight: 600;
}

/* ── STATS STRIP ─────────────────────────────────────────── */
.stats-strip {
  background: var(--brand-purple);
  padding: 32px 0;
}

.stats-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}

@media (max-width: 600px) {
  .stats-strip-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .stats-strip-grid .stat-item:nth-child(2) { border-right: none; }
}

.stat-item {
  padding: 8px 16px;
  border-right: 1px solid rgba(255,255,255,.15);
}
.stat-item:last-child { border-right: none; }

.stat-num {
  font-size: 34px;
  font-weight: 800;
  color: var(--brand-gold);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 12px;
  color: rgba(255,255,255,.65);
  margin-top: 4px;
  font-weight: 500;
}

/* ── VISUAL CATEGORIES ────────────────────────────────────── */
.v2-cats {
  padding: 60px 0 48px;
  background: var(--bg);
}

.v2-cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

@media (max-width: 1024px) { .v2-cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .v2-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.v2-cat-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 3/4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: transform .28s var(--ease), box-shadow .28s;
}

.v2-cat-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 20px 48px rgba(103,16,126,.18); text-decoration: none; }

.v2-cat-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .4s var(--ease);
}
.v2-cat-card:hover .v2-cat-bg { transform: scale(1.08); }

.v2-cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,5,20,.88) 0%, rgba(10,5,20,.35) 55%, transparent 100%);
}

.v2-cat-body {
  position: relative;
  z-index: 2;
  padding: 16px;
}

.v2-cat-icon { font-size: 20px; margin-bottom: 4px; }
.v2-cat-name { font-size: 13px; font-weight: 800; color: #fff; line-height: 1.2; }
.v2-cat-sub  { font-size: 10px; color: rgba(255,255,255,.55); margin-top: 2px; }

/* Gradient fallbacks when no image */
.v2-cat-card.cat-wires     .v2-cat-bg { background-color: #1A2B1A; }
.v2-cat-card.cat-mcb       .v2-cat-bg { background-color: #1A1A2B; }
.v2-cat-card.cat-switches  .v2-cat-bg { background-color: #2B1A1A; }
.v2-cat-card.cat-led       .v2-cat-bg { background-color: #2B2B1A; }
.v2-cat-card.cat-fans      .v2-cat-bg { background-color: #1A2B2B; }
.v2-cat-card.cat-meters    .v2-cat-bg { background-color: #2B1A2B; }

/* ── B2B CALLOUT ─────────────────────────────────────────── */
.v2-b2b {
  background: linear-gradient(140deg, #0A0514 0%, #1E0A35 50%, #0D1628 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.v2-b2b::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 45% 55% at 92% 45%, rgba(255,157,26,.09), transparent),
    radial-gradient(ellipse 55% 45% at 8%  30%, rgba(103,16,126,.25), transparent);
}

.v2-b2b-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 840px) { .v2-b2b-layout { grid-template-columns: 1fr; gap: 36px; } }

.v2-b2b-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-amber);
  display: block;
  margin-bottom: 12px;
}

.v2-b2b-headline {
  font-size: clamp(24px, 3.8vw, 40px);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin: 0 0 14px;
}

.v2-b2b-lead {
  font-size: 16px;
  color: rgba(255,255,255,.62);
  line-height: 1.65;
  margin: 0 0 28px;
}

.v2-b2b-benefits {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.v2-b2b-benefit {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px;
}

.v2-b2b-benefit-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  background: rgba(255,157,26,.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.v2-b2b-benefit-title { font-size: 14px; font-weight: 700; color: #fff; }
.v2-b2b-benefit-desc  { font-size: 12px; color: rgba(255,255,255,.5); line-height: 1.45; margin-top: 2px; }

/* Persona routing cards */
.v2-persona-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 480px) { .v2-persona-grid { grid-template-columns: 1fr; } }

.v2-persona-card {
  position: relative;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 16px;
  padding: 22px 20px;
  text-decoration: none;
  color: #fff;
  transition: background .22s, border-color .22s, transform .22s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}

.v2-persona-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,157,26,.12), rgba(103,16,126,.15));
  opacity: 0;
  transition: opacity .22s;
}

.v2-persona-card:hover {
  border-color: rgba(255,157,26,.45);
  transform: translateY(-4px);
  text-decoration: none;
  color: #fff;
}

.v2-persona-card:hover::before { opacity: 1; }

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

.v2-persona-emoji { font-size: 26px; line-height: 1; }
.v2-persona-name  { font-size: 15px; font-weight: 800; }
.v2-persona-desc  { font-size: 12px; color: rgba(255,255,255,.5); line-height: 1.4; }
.v2-persona-arrow { font-size: 13px; color: rgba(255,255,255,.3); margin-top: 2px; transition: color .2s, transform .2s; }
.v2-persona-card:hover .v2-persona-arrow { color: var(--brand-amber); transform: translateX(3px); }

/* ── TOOLS PREVIEW ───────────────────────────────────────── */
.v2-tools {
  padding: 64px 0;
  background: #fff;
}

.v2-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

@media (max-width: 900px)  { .v2-tools-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px)  { .v2-tools-grid { grid-template-columns: 1fr; } }

.v2-tool-card {
  position: relative;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
  background: #fff;
  text-decoration: none;
  color: var(--fg-1);
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  transition: border-color .22s, box-shadow .22s, transform .22s var(--ease);
}

.v2-tool-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-purple), var(--brand-purple-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ease);
}

.v2-tool-card:hover {
  border-color: var(--brand-purple);
  box-shadow: 0 14px 40px rgba(103,16,126,.10);
  transform: translateY(-5px);
  text-decoration: none;
  color: var(--fg-1);
}

.v2-tool-card:hover::after { transform: scaleX(1); }

.v2-tool-icon {
  width: 52px;
  height: 52px;
  background: var(--brand-purple-100);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-purple);
  flex-shrink: 0;
}

.v2-tool-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand-purple);
}

.v2-tool-title { font-size: 18px; font-weight: 800; line-height: 1.2; }
.v2-tool-desc  { font-size: 13px; color: var(--fg-2); line-height: 1.55; flex: 1; }
.v2-tool-cta   { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--brand-purple); }

/* ── BLOG PREVIEW ────────────────────────────────────────── */
.v2-blog {
  padding: 64px 0;
  background: var(--bg);
}

.v2-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

@media (max-width: 900px)  { .v2-blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px)  { .v2-blog-grid { grid-template-columns: 1fr; } }

.v2-blog-card {
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--fg-1);
  display: flex;
  flex-direction: column;
  transition: box-shadow .22s, transform .22s var(--ease);
}

.v2-blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
  text-decoration: none;
  color: var(--fg-1);
}

.v2-blog-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}

.v2-blog-thumb-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  transition: transform .4s var(--ease);
}

.v2-blog-card:hover .v2-blog-thumb-inner { transform: scale(1.06); }

.v2-blog-body { padding: 22px; flex: 1; display: flex; flex-direction: column; gap: 8px; }

.v2-blog-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.v2-blog-tag {
  background: var(--brand-purple-100);
  color: var(--brand-purple);
  padding: 2px 9px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.v2-blog-read-time { font-size: 11px; color: var(--fg-3); font-weight: 500; }

.v2-blog-title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--fg-1);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.v2-blog-excerpt {
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.v2-blog-link { font-size: 13px; font-weight: 700; color: var(--brand-purple); }

/* ── SECTION LAYOUT HELPERS ─────────────────────────────── */
.v2-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.v2-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--brand-purple);
  margin-bottom: 6px;
}

.v2-eyebrow-amber { color: var(--brand-amber-600); }

.v2-section-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--fg-1);
  margin: 0 0 6px;
}

.v2-section-title-white { color: #fff; }

.v2-section-lead {
  font-size: 15px;
  color: var(--fg-2);
  line-height: 1.6;
  max-width: 520px;
}

.v2-section-lead-white { color: rgba(255,255,255,.62); }

.v2-head-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-purple);
  text-decoration: none;
  white-space: nowrap;
}
.v2-head-link:hover { text-decoration: underline; }
.v2-head-link-white { color: rgba(255,255,255,.7); }
.v2-head-link-white:hover { color: #fff; text-decoration: underline; }

/* ── TRUST BAND ──────────────────────────────────────────── */
.v2-trust-band {
  padding: 48px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.v2-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

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

.v2-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
}

.v2-trust-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--brand-purple-100);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-purple);
}

.v2-trust-title { font-size: 14px; font-weight: 700; color: var(--fg-1); }
.v2-trust-desc  { font-size: 12px; color: var(--fg-2); line-height: 1.45; margin-top: 2px; }

/* ── MOBILE STICKY CTA ────────────────────────────────────── */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 98;
  background: var(--brand-purple-700);
  padding: 10px 16px;
  gap: 10px;
  align-items: center;
  box-shadow: 0 -4px 20px rgba(0,0,0,.25);
}

@media (max-width: 768px) { .mobile-cta-bar { display: flex; } }

.mobile-cta-bar a {
  flex: 1;
  text-align: center;
  padding: 11px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
}

.mobile-cta-wa    { background: #25D366; color: #fff; }
.mobile-cta-quote { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.22); }

/* ── B2B HUB PAGE ENHANCEMENTS ───────────────────────────── */
.b2b-hero-dark {
  background: linear-gradient(140deg, #0A0514 0%, #1E0A35 50%, #0D1628 100%);
  padding: 72px 0 60px;
  position: relative;
  overflow: hidden;
}

.b2b-hero-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 88% 20%, rgba(255,157,26,.12), transparent),
    radial-gradient(ellipse 55% 50% at 5%  80%, rgba(103,16,126,.25), transparent);
}

.b2b-hero-inner { position: relative; z-index: 1; }

.b2b-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(255,157,26,.15);
  border: 1px solid rgba(255,157,26,.35);
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-amber);
  margin-bottom: 18px;
}

.b2b-hero-headline {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  max-width: 640px;
}

.b2b-hero-lead {
  font-size: 18px;
  color: rgba(255,255,255,.65);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 0 32px;
}

.b2b-slab-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.b2b-slab-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-pill);
  font-size: 13px;
  color: rgba(255,255,255,.82);
  font-weight: 600;
}

.b2b-slab-pill strong { color: var(--brand-gold); }

/* Process steps */
.v2-process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  margin-top: 32px;
}

@media (max-width: 700px) { .v2-process-steps { grid-template-columns: 1fr; gap: 16px; } }

.v2-process-steps::before {
  content: "";
  position: absolute;
  top: 28px;
  left: calc(16.67% + 18px);
  right: calc(16.67% + 18px);
  height: 2px;
  background: linear-gradient(90deg, var(--brand-purple-100), var(--brand-purple), var(--brand-purple-100));
}

@media (max-width: 700px) { .v2-process-steps::before { display: none; } }

.v2-step {
  text-align: center;
  padding: 24px 16px;
  position: relative;
}

.v2-step-num {
  width: 40px;
  height: 40px;
  background: var(--brand-purple);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
  margin: 0 auto 14px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 6px var(--bg);
}

.v2-step-title { font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.v2-step-desc  { font-size: 13px; color: var(--fg-2); line-height: 1.5; }

/* ── BLOG INDEX PAGE ─────────────────────────────────────── */
.blog-hero-v2 {
  background: linear-gradient(140deg, #0A0514 0%, #1A0D2E 60%, #0D1628 100%);
  padding: 60px 0 48px;
  position: relative;
}

.blog-hero-v2::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 60% at 80% 20%, rgba(255,157,26,.1), transparent);
}

.blog-hero-v2-inner { position: relative; z-index: 1; }

.blog-hero-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin: 0 0 12px;
}

.blog-hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,.62);
  max-width: 480px;
}

.blog-category-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.blog-cat-pill {
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s, color .15s;
}

.blog-cat-pill.active {
  background: var(--brand-amber);
  color: #1a0a00;
}

.blog-cat-pill:not(.active) {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.12);
}

.blog-cat-pill:not(.active):hover {
  background: rgba(255,255,255,.14);
  color: #fff;
  text-decoration: none;
}

.blog-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

@media (max-width: 900px)  { .blog-grid-v2 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px)  { .blog-grid-v2 { grid-template-columns: 1fr; } }

/* ── TOOLS INDEX ─────────────────────────────────────────── */
.tools-hero-v2 {
  background: linear-gradient(140deg, #0A0514 0%, #1A0D2E 60%, #0D1628 100%);
  padding: 60px 0 48px;
}

.tools-hero-v2 .hero-dark-eyebrow,
.tools-hero-v2 .blog-hero-title,
.tools-hero-v2 .blog-hero-sub { position: relative; z-index: 1; }

.tools-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

@media (max-width: 900px) { .tools-grid-v2 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tools-grid-v2 { grid-template-columns: 1fr; } }

.tool-card-v2 {
  position: relative;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  text-decoration: none;
  color: var(--fg-1);
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  transition: border-color .22s, box-shadow .22s, transform .22s var(--ease);
}

.tool-card-v2::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--brand-purple-050), #fff);
  opacity: 0;
  transition: opacity .22s;
}

.tool-card-v2:hover {
  border-color: var(--brand-purple);
  box-shadow: 0 16px 44px rgba(103,16,126,.12);
  transform: translateY(-5px);
  text-decoration: none;
  color: var(--fg-1);
}

.tool-card-v2:hover::before { opacity: 1; }
.tool-card-v2 > * { position: relative; z-index: 1; }

.tool-card-icon-v2 {
  width: 60px;
  height: 60px;
  background: var(--brand-purple);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.tool-card-title-v2  { font-size: 20px; font-weight: 800; }
.tool-card-desc-v2   { font-size: 14px; color: var(--fg-2); line-height: 1.55; flex: 1; }

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

.tool-cta-v2 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-purple);
}

/* ── BRAND CARD GRID ─────────────────────────────────────── */
.v2-brands {
  padding: 64px 0 56px;
  background: linear-gradient(180deg, var(--bg) 0%, #F5F0FA 100%);
}

.v2-brand-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-top: 32px;
}

@media (max-width: 1100px) { .v2-brand-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; } }
@media (max-width: 600px)  { .v2-brand-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; } }

.v2-brand-card {
  background: #fff;
  border: 1.5px solid rgba(103, 16, 126, .07);
  border-radius: 18px;
  padding: 20px 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: var(--fg-1);
  position: relative;
  overflow: hidden;
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s;
  cursor: pointer;
}

.v2-brand-card:hover {
  border-color: var(--brand-purple);
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(103, 16, 126, .14);
  text-decoration: none;
  color: var(--fg-1);
}

/* logo container */
.v2-bc-logo {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

.v2-bc-logo img {
  max-width: 88px;
  max-height: 40px;
  object-fit: contain;
  filter: grayscale(30%) opacity(.85);
  transition: filter .25s, transform .25s;
}

.v2-brand-card:hover .v2-bc-logo img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.06);
}

/* name */
.v2-bc-name {
  font-size: 11px;
  font-weight: 800;
  color: var(--fg-1);
  text-align: center;
  letter-spacing: .01em;
  line-height: 1.2;
  padding: 0 4px;
}

/* category chip */
.v2-bc-cat {
  font-size: 9.5px;
  color: var(--fg-2);
  text-align: center;
  line-height: 1.35;
  padding: 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* slide-up CTA bar */
.v2-bc-cta {
  width: 100%;
  background: linear-gradient(135deg, var(--brand-purple) 0%, #9B2DC4 100%);
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  text-align: center;
  padding: 8px 4px;
  margin-top: 10px;
  letter-spacing: .07em;
  text-transform: uppercase;
  transform: translateY(100%);
  transition: transform .22s var(--ease);
}

.v2-brand-card:hover .v2-bc-cta {
  transform: translateY(0);
}

/* featured card accent — first (Anchor) gets amber top border */
.v2-brand-card.bc-featured {
  border-color: rgba(255, 157, 26, .35);
  background: linear-gradient(160deg, #FFFBF2 0%, #fff 60%);
}

.v2-brand-card.bc-featured::before {
  content: "★ TOP BRAND";
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--brand-amber-600);
  background: rgba(255, 157, 26, .12);
  padding: 2px 6px;
  border-radius: 4px;
}

.v2-brand-card.bc-featured:hover {
  border-color: var(--brand-amber);
  box-shadow: 0 14px 36px rgba(255, 157, 26, .18);
}

.v2-brand-card.bc-featured:hover .v2-bc-cta {
  background: linear-gradient(135deg, #D17800 0%, var(--brand-amber) 100%);
}

.tool-free-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 3px 8px;
  background: var(--success-100);
  color: var(--success);
  border-radius: 4px;
}
