/* ==========================================================================
   IngenID — Homepage Redesign
   A bolder visual system for the homepage, layered on theme-serif.min.css.
   Brand colors stay real (--bs-primary #7360f2, --bs-info #00c2ff).
   Dark sections use a lighter, indigo-tinted navy (not near-black) so the
   logo stays legible and the palette reads as "a deep shade of the brand"
   rather than a disconnected dark-mode slab.
   Display type: Space Grotesk — a more modern geometric companion to the
   theme's Open Sans body copy, used only within this redesign layer.
   Signature: a voice-waveform motif (bars of varying height) — literal,
   not decorative, since IngenID's product is voice.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=JetBrains+Mono:wght@500;600;700&display=swap');

:root{
  --ink: #322a5c;                  /* deep indigo-navy, tinted from brand primary #7360f2 */
  --ink-2: #453a78;                /* lighter still, for gradients */
  --signal: var(--bs-info);        /* #00c2ff */
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: 'Space Grotesk', var(--bs-font-serif), sans-serif;
}

/* ---------- Hero ---------- */
.hero-redesign{
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(1000px 560px at 10% -15%, rgba(115,96,242,.4), transparent 60%),
    radial-gradient(760px 460px at 95% 15%, rgba(0,194,255,.16), transparent 55%),
    linear-gradient(165deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff;
  padding-top: 7rem;
}
.hero-redesign .hero-eyebrow{
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--signal);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.5rem;
}
.hero-redesign .hero-eyebrow .dot{
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 rgba(0,194,255,.6);
  animation: pulse-dot 2.2s ease-out infinite;
}
@keyframes pulse-dot{
  0%   { box-shadow: 0 0 0 0 rgba(0,194,255,.55); }
  70%  { box-shadow: 0 0 0 10px rgba(0,194,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,194,255,0); }
}
.hero-redesign h1{
  font-family: var(--display);
  font-weight: 700;
  color: #fff;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
  margin: 0 0 .3em;
}
.hero-redesign h1 .dim{
  color: rgba(255,255,255,.42);
  font-weight: 400;
}
.hero-redesign .lead{
  font-family: var(--bs-font-sans-serif);
  color: rgba(255,255,255,.68);
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  max-width: 620px;
  margin: 0 0 2.25rem;
}
.hero-redesign .hero-actions{
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}
.hero-redesign .btn-primary{
  background: var(--bs-primary);
  border-color: var(--bs-primary);
  box-shadow: 0 .6rem 1.6rem rgba(115,96,242,.4);
}
.hero-redesign .btn-primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 .9rem 2rem rgba(115,96,242,.5);
}
.hero-redesign .btn-ghost{
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.28);
  color: #fff;
  border-radius: 50rem;
  padding: .8rem 1.7rem;
  font-weight: 700;
  font-size: .92rem;
  transition: all .2s ease;
}
.hero-redesign .btn-ghost:hover{
  border-color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.06);
  color: #fff;
}

/* Proof strip — mono numerals, grid-based so it never wraps unevenly */
.hero-proof{
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 1.25rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,.14);
  padding-top: 1.75rem;
  max-width: 820px;
}
.hero-proof .item{
  padding-right: 1.5rem;
  border-right: 1px solid rgba(255,255,255,.12);
}
.hero-proof .item:last-child{ border-right: none; padding-right: 0; }
@media (max-width: 767px){
  .hero-proof{ grid-template-columns: repeat(2, 1fr); max-width: 480px; }
  .hero-proof .item:nth-child(2n){ border-right: none; padding-right: 0; }
}
.hero-proof .item b{
  display: block;
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}
.hero-proof .item span{
  font-size: .74rem;
  color: rgba(255,255,255,.5);
  font-weight: 500;
}

/* Waveform signature — ambient in hero */
.hero-waveform{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 130px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  opacity: .55;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.hero-waveform i{
  width: 4px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--signal), var(--bs-primary));
  animation: wave-pulse 2.6s ease-in-out infinite;
}
@keyframes wave-pulse{
  0%, 100% { transform: scaleY(.35); opacity: .5; }
  50%      { transform: scaleY(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce){
  .hero-waveform i{ animation: none; transform: scaleY(.7); }
  .hero-eyebrow .dot{ animation: none; }
}

/* Small waveform divider used between sections */
.wave-divider{
  display: flex; align-items: center; justify-content: center; gap: 4px;
  height: 28px; margin: 0 auto 2rem;
}
.wave-divider i{
  width: 3px; border-radius: 2px; background: var(--bs-primary); opacity: .55;
}

/* ---------- Sticky header state tuning (uses theme's own is-sticky machinery) ---------- */
header.header-transparent .navbar-brand img{ transition: filter .25s ease; }

/* ---------- Stat band (Performance section) ---------- */
.stat-band{
  background: var(--ink);
  color: #fff;
  padding: 5.5rem 0;
  position: relative;
  overflow: hidden;
}
.stat-band::before{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(600px 300px at 85% 0%, rgba(115,96,242,.25), transparent 60%);
  pointer-events:none;
}
.stat-band .eyebrow{
  font-family: var(--mono);
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--signal); font-weight: 600; margin-bottom: .75rem;
}
.stat-band h2{ font-family: var(--display); color:#fff; }
.stat-band p.sub{ color: rgba(255,255,255,.6); }
.stat-band .num{
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(2.1rem, 3.4vw, 3rem);
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-band .label{
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  margin-top: .5rem;
  font-weight: 500;
}
.stat-band .stat-col{
  border-left: 1px solid rgba(255,255,255,.12);
  padding-left: 1.5rem;
}
.stat-band .stat-col:first-child{ border-left: none; padding-left: 0; }

/* ---------- Testimonial card (redesign variant) ---------- */
.testimonial-card{
  background: #fff;
  border: 1px solid var(--bs-gray-200);
  border-radius: var(--bs-border-radius-xl);
  padding: 2.25rem;
  height: 100%;
  box-shadow: 0 1.5rem 3rem rgba(17,15,26,.05);
}
.testimonial-card .quote-mark{ width: 30px; height: auto; margin-bottom: 1.1rem; }
.testimonial-card blockquote{
  font-family: var(--display);
  font-size: 1.08rem; line-height: 1.5; font-weight: 500;
  color: var(--ink-2); margin: 0 0 1.4rem;
}
.testimonial-card .testimonial-who{ font-weight: 700; color: var(--ink-2); font-size: .9rem; }
.testimonial-card .testimonial-role{ display:block; color: var(--bs-gray-600); font-weight: 400; font-size: .82rem; margin-top: 2px; }
.testimonial-card .stat-pill{
  display: inline-flex; align-items: baseline; gap: .4rem;
  background: rgba(115,96,242,.08); border: 1px solid rgba(115,96,242,.16);
  border-radius: 50rem; padding: .4rem .9rem; margin-top: 1.4rem;
  font-size: .78rem; font-weight: 600; color: var(--ink-2);
}
.testimonial-card .stat-pill b{ font-family: var(--mono); color: var(--bs-primary); }
.testimonial-card.testimonial-cta{
  background: var(--bs-gray-100);
  border: 1.5px dashed var(--bs-gray-400);
  box-shadow: none;
  display:flex; flex-direction:column; justify-content:center;
}

/* ---------- Case-study link card in "Our Work with Clients" ---------- */
.case-pull{
  background: var(--ink);
  border-radius: var(--bs-border-radius-xl);
  padding: 2.25rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.case-pull::after{
  content:"";
  position:absolute; right:-40px; bottom:-40px; width:180px; height:180px;
  background: radial-gradient(circle, rgba(0,194,255,.25), transparent 70%);
}
.case-pull .tag{
  font-family: var(--mono); font-size: .7rem; letter-spacing:.1em; text-transform: uppercase;
  color: var(--signal); margin-bottom: .75rem; display:block;
}
.case-pull blockquote{
  font-family: var(--display); font-size: 1.15rem; font-weight:600;
  color:#fff; margin: 0 0 1.25rem; position: relative; z-index:1;
}
.case-pull .num{ font-family: var(--mono); font-weight:700; font-size:1.6rem; color:#fff; }

/* ---------- Refined eyebrow badge used throughout ---------- */
.badge.bg-primary.bg-opacity-10.text-primary{
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .68rem;
  font-weight: 700;
  padding: .5rem .95rem;
}

/* ---------- CTA banner bookend ---------- */
.cta-redesign{
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  position: relative;
  overflow: hidden;
}
.cta-redesign::before{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(700px 320px at 15% 0%, rgba(115,96,242,.3), transparent 60%);
}
.cta-redesign h5{ font-family: var(--display); position:relative; z-index:1; }
.cta-redesign .btn-outline-white{ position:relative; z-index:1; }

/* ---------- Footer bookend (dark, matches hero) ---------- */
footer.footer-redesign{
  background: var(--ink) !important;
  color: rgba(255,255,255,.62);
  border-top: none !important;
}
footer.footer-redesign h6{ color: #fff; }
footer.footer-redesign a{ color: rgba(255,255,255,.62); }
footer.footer-redesign a:hover{ color: #fff; }
footer.footer-redesign hr{ border-color: rgba(255,255,255,.12); opacity:1; }
footer.footer-redesign .text-muted{ color: rgba(255,255,255,.45) !important; }
footer.footer-redesign .btn-outline-primary{
  color: var(--signal); border-color: rgba(0,194,255,.45);
}
footer.footer-redesign .btn-outline-primary .btn-rise-bg{ background: var(--signal) !important; }
footer.footer-redesign .fw-semibold{ color: #fff; }

/* ---------- Accessibility / quality floor ---------- */
a:focus-visible, button:focus-visible, .btn:focus-visible{
  outline: 3px solid var(--bs-primary);
  outline-offset: 2px;
}

/* ==========================================================================
   Site-wide adoption (added when rolling this system out past the homepage)
   ========================================================================== */

/* Modern display type on every heading, everywhere this stylesheet loads */
h1, h2, h3,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6{
  font-family: var(--display);
}

/* ---------- Stat tiles (used on interior pages, e.g. Case Studies) ---------- */
.stat-tile{
  padding: 1.25rem 1rem;
  border-radius: var(--bs-border-radius-lg);
  background: var(--bs-gray-100);
  border: 1px solid var(--bs-gray-200);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.stat-tile:hover{
  transform: translateY(-3px);
  box-shadow: 0 0.75rem 1.75rem rgba(17, 15, 26, 0.08);
  border-color: rgba(var(--bs-primary-rgb), 0.25);
}
.stat-tile .display-5{
  font-family: var(--mono);
  color: var(--bs-primary);
}
.stat-tile.stat-tile-dark{
  background: var(--ink);
  border-color: var(--ink);
}
.stat-tile.stat-tile-dark .display-5{ color: #fff; }
.stat-tile.stat-tile-dark .small{ color: rgba(255, 255, 255, 0.72); }
.stat-tile .small{ color: var(--bs-gray-600); font-weight: 600; }

/* ---------- Tag pills / fit cards / ghost cards (Case Studies, etc.) ---------- */
.tag-pill{
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--bs-primary);
  background: rgba(var(--bs-primary-rgb), 0.08);
  border: 1px solid rgba(var(--bs-primary-rgb), 0.18);
  padding: 0.4rem 0.85rem;
  border-radius: var(--bs-border-radius-pill);
  white-space: nowrap;
  display: inline-block;
}
.fit-card{
  height: 100%;
  padding: 1.75rem;
  border-radius: var(--bs-border-radius-lg);
  background: var(--bs-gray-100);
  border: 1px solid var(--bs-gray-200);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.fit-card:hover{
  border-color: rgba(var(--bs-primary-rgb), 0.3);
  transform: translateY(-2px);
}
.ghost-card{
  height: 100%;
  min-height: 180px;
  padding: 1.75rem;
  border-radius: var(--bs-border-radius-lg);
  border: 1.5px dashed var(--bs-gray-400);
  background: var(--bs-gray-100);
  color: var(--bs-gray-600);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.ghost-card .tag-pill{
  color: var(--bs-gray-600);
  background: transparent;
  border-color: var(--bs-gray-400);
}

/* ---------- Page-title band on interior pages ---------- */
.page-title-band .badge.bg-primary.bg-opacity-10.text-primary{
  font-family: var(--mono);
}
