/* ============================================================
   BEYOND THE SERP — home.css
   Styles exclusive to the Home (index) page:
   hero section, citation strip, services grid, results band,
   framework cards, about teaser, case study preview cards,
   testimonials
   ============================================================ */

/* ─────────────────────────────────────────────────────────────
   HERO SECTION
───────────────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 8rem;
  padding-bottom: 5rem;
}

/* Background image layer */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  mix-blend-mode: multiply;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      hsl(243, 100%, 98%, 0.6) 0%,
      hsl(243, 100%, 98%, 0.3) 50%,
      var(--background) 100%);
}

/* Announcement badge */
.announce-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 9999px;
  border: 1px solid var(--border-strong);
  background: hsl(255, 100%, 100%, 0.6);
  backdrop-filter: blur(12px);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: hsl(263, 50%, 12%, 0.8);
  margin-bottom: 28px;
}

/* Ping dot inside badge */
.ping-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  position: relative;
  flex-shrink: 0;
}

.ping-dot::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.5;
  animation: ping 1.5s ease-in-out infinite;
}

/* H1 */
.hero-h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin-bottom: 28px;
}

/* Tag list below CTAs */
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 36px;
  margin-top: 56px;
}

.hero-tag {
  font-size: 0.875rem;
  color: hsl(263, 50%, 12%, 0.55);
}

.hero-tag span {
  font-family: 'JetBrains Mono', monospace;
  color: var(--primary);
}

@media (max-width: 767px) {
  .hero-h1 {
    font-size: clamp(2.4rem, 9vw, 3.5rem);
  }

  /* Shrink orbs so they don't bleed off-screen */
  .hero-orb-1 {
    width: 260px;
    height: 260px;
    top: -40px;
    left: -80px;
  }

  .hero-orb-2 {
    width: 200px;
    height: 200px;
    top: 100px;
    right: -50px;
  }

  /* Stack hero tags vertically with tighter gap */
  .hero-tags {
    gap: 16px 0;
    flex-direction: column;
  }

  /* Tighter result band stat layout */
  .results-band-header {
    margin-bottom: 40px;
  }

  /* Testimonials header less bottom space */
  .testimonials-header {
    margin-bottom: 40px;
  }
}


/* ─────────────────────────────────────────────────────────────
   CITATION STRIP
───────────────────────────────────────────────────────────── */
.citation-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: hsl(255, 100%, 100%, 0.4);
  backdrop-filter: blur(8px);
  padding: 40px 0;
  overflow: hidden;
}

.citation-strip .eyebrow {
  text-align: center;
  margin-bottom: 24px;
  color: hsl(263, 50%, 12%, 0.6);
}

.marquee-item {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: hsl(263, 50%, 12%, 0.42);
  white-space: nowrap;
}

.marquee-item .slash {
  color: hsl(263, 73%, 52%, 0.4);
  margin-left: 40px;
}


/* ─────────────────────────────────────────────────────────────
   SERVICES GRID
───────────────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--border);
  /* gap colour */
  gap: 1px;
}

@media (max-width: 1199px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

@media (max-width: 479px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: var(--background);
  padding: 28px;
  text-decoration: none;
  color: var(--foreground);
  transition: background-color 0.4s;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 220px;
}

.service-card.highlighted {
  background: #fff;
}

.service-card:hover {
  background: var(--surface-elevated);
}

.service-card .card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.service-card .icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: hsl(263, 73%, 52%, 0.1);
  color: var(--primary);
  display: grid;
  place-items: center;
  transition: background 0.2s, color 0.2s;
}

.service-card:hover .icon-wrap {
  background: var(--primary);
  color: #fff;
}

.service-card .card-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: hsl(263, 50%, 12%, 0.4);
}

.service-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.25;
  transition: color 0.2s;
}

.service-card:hover h3 {
  color: var(--primary);
}

.service-card p {
  font-size: 0.875rem;
  color: hsl(263, 50%, 12%, 0.6);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.service-card .learn-more {
  margin-top: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: hsl(263, 50%, 12%, 0.5);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.service-card:hover .learn-more {
  color: var(--primary);
}

/* Flagship badge */
.flagship-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  padding: 3px 9px;
  border-radius: 9999px;
  border: 1px solid hsl(263, 73%, 52%, 0.4);
  background: hsl(263, 73%, 52%, 0.1);
}

/* Bottom footer row of grid */
.services-footer {
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--background);
}

.services-footer p {
  color: hsl(263, 50%, 12%, 0.65);
  margin: 0;
  font-size: 0.95rem;
}


/* ─────────────────────────────────────────────────────────────
   RESULTS BAND
───────────────────────────────────────────────────────────── */
.results-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: hsl(255, 100%, 100%, 0.3);
  position: relative;
}

.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  /* background: linear-gradient(135deg, hsl(263,73%,52%) 0%, hsl(263,90%,68%) 100%); */
  /* -webkit-background-clip: text; */
  /* background-clip: text; */
  color: #454545;
}

.stat-value span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(135deg, hsl(263, 73%, 52%) 0%, hsl(263, 90%, 68%) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: hsl(263, 50%, 12%, 0.5);
  margin-top: 12px;
  display: block;
}

.stat-sub {
  font-size: 0.875rem;
  color: hsl(263, 50%, 12%, 0.65);
  margin-top: 8px;
  max-width: 200px;
  line-height: 1.55;
}


/* ─────────────────────────────────────────────────────────────
   FRAMEWORK CARDS
───────────────────────────────────────────────────────────── */
.framework-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--border);
  gap: 1px;
}

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

@media (max-width: 479px) {
  .framework-grid {
    grid-template-columns: 1fr;
  }
}

.framework-card {
  background: var(--background);
  padding: 32px;
  position: relative;
  overflow: hidden;
}

/* Top edge hover glow line */
.framework-card::before {
  content: '';
  position: absolute;
  inset-x: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.5s;
}

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

.framework-card .step-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: hsl(263, 73%, 52%, 0.7);
  display: block;
  margin-bottom: 20px;
}

.framework-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--gradient-brand-soft);
  border: 1px solid hsl(263, 73%, 52%, 0.2);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 24px;
}

.framework-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.framework-card p {
  font-size: 0.875rem;
  color: hsl(263, 50%, 12%, 0.6);
  line-height: 1.65;
  margin: 0;
}


/* ─────────────────────────────────────────────────────────────
   CASE STUDY PREVIEW CARDS
───────────────────────────────────────────────────────────── */
.case-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: hsl(243, 100%, 97%, 0.4);
  overflow: hidden;
  text-decoration: none;
  color: var(--foreground);
  display: flex;
  flex-direction: column;
  transition: border-color 0.4s, transform 0.4s var(--ease-quart);
}

.case-card:hover {
  border-color: hsl(263, 73%, 52%, 0.4);
  transform: translateY(-4px);
  color: var(--foreground);
}

.case-card .case-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}

.case-card .case-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-quart);
  display: block;
}

.case-card:hover .case-img img {
  transform: scale(1.05);
}

.case-card .case-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      var(--background) 0%,
      hsl(243, 100%, 98%, 0.3) 0%,
      transparent 100%);
}

.case-card .case-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.case-card .case-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.case-card .case-industry {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: hsl(263, 73%, 52%, 0.8);
}

.case-card .case-arrow {
  color: hsl(263, 50%, 12%, 0.4);
  font-size: 1.1rem;
  transition: color 0.2s, transform 0.2s;
}

.case-card:hover .case-arrow {
  color: var(--primary);
  transform: rotate(45deg);
}

.case-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 16px;
  transition: color 0.2s;
}

.case-card:hover h3 {
  color: var(--primary);
}

.case-card .case-results {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.case-card .result-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, hsl(263, 73%, 52%) 0%, hsl(263, 90%, 68%) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.case-card .result-label {
  font-size: 0.72rem;
  color: hsl(263, 50%, 12%, 0.5);
  margin-top: 4px;
  max-width: 140px;
  line-height: 1.4;
}


/* ─────────────────────────────────────────────────────────────
   HERO — layout helpers (moved from inline styles)
───────────────────────────────────────────────────────────── */
.hero-parallax-layer {
  position: absolute;
  inset: 0;
  top: -10%;
  bottom: -10%;
}

.hero-orb-1 {
  width: 420px;
  height: 420px;
  background: hsl(263, 73%, 52%, 0.18);
  top: -80px;
  left: -120px;
}

.hero-orb-2 {
  width: 320px;
  height: 320px;
  background: hsl(263, 73%, 52%, 0.12);
  top: 160px;
  right: -80px;
}

.hero-section .container-site {
  position: relative;
  z-index: 2;
}

.hero-inner {
  max-width: 860px;
}

.hero-lead {
  max-width: 600px;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: hsl(263, 50%, 12%, 0.7);
  line-height: 1.7;
  margin-bottom: 36px;
}


/* ─────────────────────────────────────────────────────────────
   SHARED SECTION HELPERS (home page)
───────────────────────────────────────────────────────────── */
.section-eyebrow {
  margin-bottom: 12px;
}

.section-h2 {
  font-size: clamp(2rem, 5vw, 3.75rem);
}

.services-col-intro {
  color: hsl(263, 50%, 12%, 0.65);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 400px;
}

.framework-col-intro {
  color: hsl(263, 50%, 12%, 0.65);
  font-size: 1.05rem;
  line-height: 1.7;
}


/* ─────────────────────────────────────────────────────────────
   RESULTS BAND — layout helpers
───────────────────────────────────────────────────────────── */
.results-band-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.3;
}

.results-band .container-site {
  position: relative;
}

.results-band-header {
  max-width: 680px;
  margin-bottom: 60px;
}

.results-band-heading-faded {
  color: hsl(263, 50%, 12%, 0.5);
}


/* ─────────────────────────────────────────────────────────────
   FRAMEWORK SECTION — layout helpers
───────────────────────────────────────────────────────────── */
.framework-section {
  position: relative;
  overflow: hidden;
}

.framework-bg-glow {
  position: absolute;
  inset: 0;
  background: var(--gradient-radial-glow);
  opacity: 0.4;
  pointer-events: none;
}

.framework-section .container-site {
  position: relative;
}


/* ─────────────────────────────────────────────────────────────
   ABOUT TEASER — founder image block + text
───────────────────────────────────────────────────────────── */
.founder-img-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-elevated);
  aspect-ratio: 3 / 4;
}

.founder-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.founder-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--background) 0%, transparent 50%);
}

.founder-caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
}

.founder-caption .eyebrow {
  margin-bottom: 4px;
}

.founder-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
}

.founder-agency {
  font-size: 0.875rem;
  color: hsl(263, 50%, 12%, 0.7);
}

.about-h2 {
  font-size: clamp(1.9rem, 4.5vw, 3.5rem);
  margin-bottom: 24px;
}

.about-text-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: hsl(263, 50%, 12%, 0.7);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 36px;
}

.about-link {
  text-decoration: none;
}

.about-link-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--foreground);
  transition: color 0.2s;
}

.about-link:hover .about-link-label {
  color: var(--primary);
}

.about-link-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  transition: all 0.2s;
  flex-shrink: 0;
  color: inherit;
}

.about-link:hover .about-link-circle {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}


/* ─────────────────────────────────────────────────────────────
   TESTIMONIALS
───────────────────────────────────────────────────────────── */
.testimonials-header {
  max-width: 560px;
  margin-bottom: 60px;
}


/* ─────────────────────────────────────────────────────────────
   CTA BLOCK — inner wrapper
───────────────────────────────────────────────────────────── */
.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}