/* ============== 
   Buttons
   ============== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background 0.12s ease;
}

.btn-pill {
  box-shadow: 0 18px 40px rgba(46, 92, 255, 0.35);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-strong));
  color: #ffffff;
}

.btn-primary:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 20px 46px rgba(46, 92, 255, 0.48);
}

.btn-ghost {
  border-color: var(--color-border);
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text);
}

.btn-ghost:hover {
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(30, 35, 77, 0.12);
  text-decoration: none;
}

.btn-link {
  font-size: 0.9rem;
  color: var(--color-accent);
  text-decoration: none;
}

.btn-link.inverted {
  color: #ffffff;
}

.btn-link:hover {
  text-decoration: underline;
}

/* ============== 
   Generic cards
   ============== */

.card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
  border: 1px solid rgba(213, 220, 244, 0.9);
}

.card-top {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.card-top h3 {
  font-size: 1rem;
  margin: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
  font-size: 0.8rem;
  font-weight: 600;
}

.card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

/* ==============
   BTBT section (Been there, built that)
   ============== */

.btbt-item {
  position: relative;
  display: flex;
  gap: 2.5rem;
  padding: 3rem 2rem;
  border-bottom: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.btbt-item:first-child {
  padding-top: 2rem;
}
.btbt-item:last-child {
  border-bottom: none;
}

/* Sidebar illustration */
.btbt-illustration {
  flex-shrink: 0;
  width: 280px;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btbt-illustration img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  background: transparent;
  mix-blend-mode: multiply;
  filter: contrast(1.05);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.btbt-item:hover .btbt-illustration img {
  transform: scale(1.04);
  filter: contrast(1.1);
}


/* Main content area (header + cards) */
.btbt-content {
  flex: 1;
  min-width: 0;
}

/* Header styling */
.btbt-item-header {
  margin-bottom: 2rem;
}

.btbt-heading {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.btbt-heading .badge {
  flex-shrink: 0;
  font-weight: 700;
}

.btbt-heading h3 {
  font-size: 1.4rem;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* Flow container for cascading cards */
.btbt-flow {
  position: relative;
  z-index: 1;
}

.btbt-row {
  display: block;
}

.btbt-row-indented {
  display: block;
}

/* Hide old connectors - we'll use new positioning */
.btbt-row-connector {
  display: none;
}

.btbt-col-connector {
  display: none;
}

/* Cascading card blocks */
.btbt-block {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  background: #ffffff;
  padding: 1.4rem 1.6rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 20px rgba(30, 35, 77, 0.08);
  transition:
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

.btbt-block:hover {
  transform: translateY(-4px) translateX(2px);
  box-shadow: 0 12px 32px rgba(30, 35, 77, 0.14);
}

/* McKinsey-style bold card typography */
.btbt-block .card-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
}

.btbt-block .step-body p:not(.card-label) {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-text);
}

/* Card 1: Challenge - full width, base layer */
.btbt-block-challenge {
  z-index: 1;
  margin-left: 0;
  width: 100%;
}

/* Card 2: Help - indented, overlaps challenge */
.btbt-block-help {
  z-index: 2;
  margin-left: 6%;
  margin-top: -1.5rem;
  width: 100%;
}

/* Card 3: Why - most indented, overlaps help */
.btbt-block-why {
  z-index: 3;
  margin-left: 12%;
  margin-top: -1.5rem;
  width: 100%;
}

.step-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.step-icon-challenge {
  background: rgba(248, 132, 104, 0.14);
  color: #d05b31;
}

.step-icon-help {
  background: rgba(95, 134, 255, 0.14);
  color: #2951f0;
}

.step-icon-why {
  background: rgba(60, 189, 140, 0.14);
  color: #27946d;
}


/* ... other styles ... */

@media (max-width: 800px) {
  .btbt-item {
    flex-direction: column;
    padding: 2rem 1rem;
    gap: 1.5rem;
  }

  .btbt-illustration {
    width: 180px;
    order: -1;
  }

  /* Reduce cascading on mobile */
  .btbt-block-challenge,
  .btbt-block-help,
  .btbt-block-why {
    width: 100%;
    margin-left: 0;
  }

  .btbt-block-help {
    margin-top: -1rem;
    margin-left: 5%;
    width: 95%;
  }

  .btbt-block-why {
    margin-top: -1rem;
    margin-left: 10%;
    width: 90%;
  }
}

/* ==============
   Services Showcase (What We Do)
   ============== */

.services-showcase {
  padding: 4rem 0;
}

.services-showcase .section-header.centered {
  text-align: center;
  margin-bottom: 3rem;
}

.services-showcase .section-header.centered .section-intro {
  max-width: 500px;
  margin: 0 auto;
}

/* Option A grid (preserved for reference) */
.showcase-grid {
  display: grid;
  grid-template-columns: 120px 2fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* Option B: Card-First with Banner CTA */
.showcase-grid-b {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.showcase-services-b {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 700px;
  width: 100%;
}

.showcase-grid-b .btn-link {
  margin-top: 0.5rem;
}

/* Case Study Banner */
.case-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 700px;
  padding: 1.25rem 1.75rem;
  background: linear-gradient(145deg, #1f2352, #151933);
  border-radius: 14px;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(21, 25, 51, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: 1rem;
}

.case-banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(21, 25, 51, 0.45);
  text-decoration: none;
}

.case-banner-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.case-banner-play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.case-banner-play svg {
  margin-left: 2px; /* optical centering for play icon */
}

.case-banner:hover .case-banner-play {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.case-banner-text {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.4;
}

.case-banner-text strong {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  margin-right: 0.25rem;
}

.case-banner-arrow {
  font-size: 1.1rem;
  opacity: 0.7;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.case-banner:hover .case-banner-arrow {
  transform: translateX(4px);
  opacity: 1;
}

/* Option C: Asymmetric Split (60/40) */
.showcase-grid-c {
  display: grid;
  grid-template-columns: 1fr auto 340px;
  gap: 2rem;
  align-items: center;
}

.showcase-left-c {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: #ffffff;
  border: 1px solid rgba(207, 214, 244, 0.8);
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-row:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(30, 35, 77, 0.08);
}

.service-row-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--color-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
}

.service-row-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.service-row-items {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
}

.showcase-left-c .btn-link {
  margin-top: 0.5rem;
  align-self: flex-start;
}

/* Arrow accent */
.showcase-arrow-c {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
}

/* Case Study Card (Option C) */
.showcase-case-c {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: linear-gradient(145deg, #1f2352, #151933);
  border-radius: 16px;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 16px 40px rgba(21, 25, 51, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.showcase-case-c:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(21, 25, 51, 0.45);
  text-decoration: none;
}

.case-label-c {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.75rem;
}

.showcase-case-c h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.showcase-case-c p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  margin: 0 0 1.25rem 0;
}

.case-explore-c {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease;
}

.showcase-case-c:hover .case-explore-c {
  color: #ffffff;
}

/* Option C Responsive */
@media (max-width: 900px) {
  .showcase-grid-c {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .showcase-arrow-c {
    display: none;
  }

  .showcase-case-c {
    max-width: 400px;
    margin: 0 auto;
  }

  .showcase-left-c .btn-link {
    align-self: center;
  }
}

/* Option D: Icon Grid + Proof Bar */
.showcase-grid-d {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.service-icon-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 700px;
}

.service-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.25rem 1.5rem;
  background: #ffffff;
  border: 1px solid rgba(207, 214, 244, 0.8);
  border-radius: 12px;
  min-width: 100px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(30, 35, 77, 0.1);
  border-color: var(--color-accent);
}

.service-tile-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.service-tile-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
}

.showcase-grid-d .btn-link {
  margin-top: 0.5rem;
}

/* Proof Bar */
.proof-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 700px;
  padding: 1rem 1.5rem;
  background: linear-gradient(145deg, #1f2352, #151933);
  border-radius: 12px;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(21, 25, 51, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: 1rem;
}

.proof-bar:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(21, 25, 51, 0.4);
  text-decoration: none;
}

.proof-bar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.proof-bar-text {
  flex: 1;
  font-size: 0.9rem;
}

.proof-bar-text strong {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.proof-bar-cta {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.proof-bar:hover .proof-bar-cta {
  color: #ffffff;
}

/* Option D Responsive */
@media (max-width: 600px) {
  .service-icon-grid {
    gap: 0.75rem;
  }

  .service-tile {
    padding: 1rem;
    min-width: 85px;
  }

  .service-tile-icon {
    width: 40px;
    height: 40px;
  }

  .service-tile-label {
    font-size: 0.8rem;
  }

  .proof-bar {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .proof-bar-cta {
    margin-top: 0.25rem;
  }
}

/* Left: Summary Stats */
.showcase-summary {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: 0.5rem;
  border-right: 1px solid var(--color-border);
  padding-right: 1.5rem;
}

.showcase-summary-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.summary-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.15rem;
}

/* Middle: Service Cards */
.showcase-services {
  display: grid;
  grid-template-columns: 1fr 1fr 28px;
  grid-template-rows: 1fr auto;
  gap: 1.5rem;
  align-items: stretch;
}

.showcase-services .service-card {
  grid-row: 1;
  min-width: 180px;
}

.showcase-services .case-arrow-triangle {
  grid-row: 1;
  grid-column: 3;
  align-self: stretch;
  margin-left: 0.5rem;
}

.showcase-services .btn-link {
  grid-column: 1 / 3;
  grid-row: 2;
  justify-self: center;
  margin-top: 0.5rem;
}

.service-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(207, 214, 244, 0.8);
  border-radius: 16px;
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(30, 35, 77, 0.1);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--color-accent);
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-card li {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  padding-left: 1rem;
  position: relative;
  margin-bottom: 0.4rem;
}

.service-card li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

/* Case Study Section */
.showcase-case {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0;
}

/* Large triangular arrow pointing at case study */
.case-arrow-triangle {
  position: relative;
  width: 28px;
  min-height: 100%;
  background: linear-gradient(180deg, #1f2352, #151933);
  clip-path: polygon(0 0, 0 100%, 100% 50%);
}

/* Shadow layer for the arrow (behind it) */
.case-arrow-triangle::before {
  content: '';
  position: absolute;
  top: 8px;
  left: -6px;
  width: 100%;
  height: 100%;
  background: rgba(21, 25, 51, 0.35);
  clip-path: polygon(0 0, 0 100%, 100% 50%);
  filter: blur(8px);
  z-index: -1;
}

/* Case card styling */
.case-card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: linear-gradient(145deg, #1f2352, #151933);
  border-radius: 20px;
  padding: 2rem;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 20px 50px rgba(21, 25, 51, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(21, 25, 51, 0.5);
  text-decoration: none;
}

.case-card-play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  margin: 0 auto 1.25rem auto;
  transition: background 0.2s ease, transform 0.2s ease;
}

.case-card-play svg {
  margin-left: 3px; /* optical centering for play icon */
}

.case-card:hover .case-card-play {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.08);
}

.case-card-cta {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  margin-top: auto;
  transition: color 0.2s ease;
}

.case-card:hover .case-card-cta {
  color: #ffffff;
}

.case-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.6);
  display: block;
  margin-bottom: 0.75rem;
}

.case-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 1rem;
}

.case-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.case-link-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.case-link-text a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
}

.case-link-text a:hover {
  color: #ffffff;
}

.case-cta {
  margin-top: 1rem;
  width: 100%;
  justify-content: center;
}

/* Responsive */
@media (max-width: 900px) {
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .showcase-summary {
    flex-direction: row;
    justify-content: center;
    gap: 3rem;
    padding-top: 0;
    order: -1;
    border-right: none;
    padding-right: 0;
  }

  .showcase-summary-label {
    display: none;
  }

  .summary-stats {
    align-items: center;
  }

  .showcase-services {
    grid-template-columns: 1fr 1fr;
    max-width: 600px;
    margin: 0 auto;
  }

  .showcase-services .case-arrow-triangle {
    display: none;
  }

  .showcase-services .btn-link {
    grid-column: 1 / -1;
  }

  .showcase-case {
    max-width: 400px;
    margin: 0 auto;
    flex-direction: column;
  }
}

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

  .service-card {
    max-width: 400px;
    margin: 0 auto;
  }

  .showcase-summary {
    gap: 2rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  /* Option B responsive */
  .showcase-services-b {
    grid-template-columns: 1fr;
  }

  .case-banner {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }

  .case-banner-arrow {
    display: none;
  }
}
