/**
 * Deferred CSS for Build a Product Page
 * Below-fold section styles
 * Loaded asynchronously after first paint
 */

/* =====================
   WHY PRODUCTS FAIL SECTION
   ===================== */
.bp-why {
  padding: 60px 0;
  background: #fff;
}

.bp-why__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 45px;
  align-items: stretch;
}

.bp-why__header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* padding-right: 20px; */
  align-items: flex-start;
}

.bp-why__label {
  font-size: 24px;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 16px;
  display: inline-block;
  position: relative;
  padding-bottom: 8px;
}

.bp-why__label::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--color-primary);
}

.bp-why__title {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.bp-why__desc {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 32px;
  max-width: 350px;
  letter-spacing: 0.02em;
}

.bp-why__card {
  background: #fff;
  box-shadow: 0px 0px 4px 0px #00000040;
  border-radius: 16px;
  padding: 40px 30px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bp-why__card:hover {
  box-shadow: 0 8px 30px rgba(32, 109, 209, 0.1);
}

.bp-why__card-value {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 500;
  color: var(--color-primary);
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: 0.02rem;
}

.bp-why__card-desc {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--color-text);
  margin: 0;
  flex: 1;
  letter-spacing: 0.02rem;
}

.bp-why__card-icon {
  position: absolute;
  bottom: 0px;
  right: 0px;
  opacity: 0.8;
}

/* =====================
   CORE VALUES SECTION
   ===================== */
.bp-values {
  padding: 80px 0;
  background: #fff;
}

.bp-values__grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 100px;
  align-items: start;
}

.bp-values__header {
  position: sticky;
  top: 100px;
  max-width: 400px;
}

.bp-values__label {
  font-size: 24px;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 16px;
  display: block;
}

.bp-values__title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: 20px;
}

.bp-values__desc {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text);
}

.bp-values__cards {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 120px;
}

.bp-values__cards:before {
  position: absolute;
  content: "";
  height: 100%;
  width: 2px;
  background-image: radial-gradient(var(--color-primary), transparent 60%);
  left: 50%;
  transform: translateX(-50%);
}

.bp-values__cards:after {
  position: absolute;
  content: "";
  height: 2px;
  width: 100%;
  background-image: radial-gradient(var(--color-primary), transparent 60%);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.bp-values__card {
  padding: 0;
}

.bp-values__card-icon {
  width: 65px;
  height: 65px;
  background: #ddeafb;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.bp-values__card-icon svg,
.bp-values__card-icon img {
  width: 45px;
  height: 45px;
}

.bp-values__card-title {
  font-size: 24px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.bp-values__card-desc {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text);
  margin: 0;
}

/* =====================
   CREATION PROCESS SECTION — GSAP Horizontal Scroll
   ===================== */
.bp-process {
  background: #0a0a0a;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px
  );
  background-size: 24px 24px;
  overflow: hidden;
}

.bp-process__pin {
  padding: 80px 0 60px;
}

.bp-process__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 32px;
}

.bp-process__header {
  max-width: 700px;
}

.bp-process__title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 16px;
}

.bp-process__desc {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: #999;
}

/* Counter */
.bp-process__counter {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-shrink: 0;
  padding-top: 8px;
}

.bp-process__counter-current {
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 600;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.bp-process__counter-sep {
  font-size: 24px;
  font-weight: 400;
  color: #ffffff;
  margin: 0 2px;
}

.bp-process__counter-total {
  font-size: 24px;
  font-weight: 400;
  color: #ffffff;
  line-height: 1;
}

/* Pipeline Timeline */
.bp-process__pipeline {
  position: relative;
  height: 28px;
  margin-bottom: 36px;
  padding: 0 0px;
}

.bp-process__pipeline-line {
  position: absolute;
  top: 50%;
  left: 30px;
  right: 30px;
  height: 2px;
  background: #444444;
  transform: translateY(-50%);
}

.bp-process__pipeline-fill {
  height: 100%;
  width: 0%;
  background: var(--color-primary);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.bp-process__pipeline-nodes {
  position: relative;
  display: flex;
  justify-content: space-between;
  height: 100%;
  align-items: center;
}

.bp-process__pipeline-node {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #111;
  border: 2px solid #777777;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777777;
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}

.bp-process__pipeline-node.is-active {
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 0 12px rgba(32, 109, 209, 0.3);
}

.bp-process__pipeline-node.is-done {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

.bp-process__pipeline-node.is-done svg circle {
  display: none;
}

.bp-process__pipeline-node.is-done::after {
  content: "";
  position: absolute;
  display: block;
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}

/* Card Track */
.bp-process__track {
  overflow: visible;
  padding-left: 0px;
}

.bp-process__cards {
  display: flex;
  align-items: stretch;
  will-change: transform;
}

/* Arrow Connectors */
.bp-process__card-connector {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  color: #2a2a2a;
  transition: color 0.4s ease;
}

.bp-process__card-connector.is-done {
  color: var(--color-primary);
}

/* Individual Cards */
.bp-process__card {
  flex: 0 0 370px;
  /* min-height: 440px; */
  background: #111;
  border: 1px solid #1e1e1e;
  border-radius: 16px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.4s ease,
    background 0.4s ease;
}

.bp-process__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0%;
  background: var(--color-primary);
  border-radius: 0 0 4px 0;
  transition: height 0.5s ease;
}

/* Card States */
.bp-process__card.is-active {
  border-color: rgba(32, 109, 209, 0.3);
  background: #151518;
}

.bp-process__card.is-active::before {
  height: 100%;
}

.bp-process__card.is-done {
  border-color: rgba(32, 109, 209, 0.15);
}

.bp-process__card.is-done::before {
  height: 100%;
  opacity: 0.4;
}

/* Card Head — Phase badge + Status */
.bp-process__card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.bp-process__card-phase {
  font-size: 11px;
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: #1a1a1a;
  border: 1px solid #262626;
  padding: 5px 14px;
  border-radius: 50px;
  transition: all 0.4s ease;
}

.bp-process__card.is-active .bp-process__card-phase {
  color: var(--color-primary);
  border-color: rgba(32, 109, 209, 0.3);
  background: rgba(32, 109, 209, 0.08);
}

.bp-process__card.is-done .bp-process__card-phase {
  color: var(--color-primary);
  border-color: rgba(32, 109, 209, 0.2);
}

/* Status check icon */
.bp-process__card-status {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #222;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}

.bp-process__card-check {
  color: transparent;
  transition: color 0.3s ease;
}

.bp-process__card.is-active .bp-process__card-status {
  border-color: rgba(32, 109, 209, 0.4);
}

.bp-process__card.is-done .bp-process__card-status {
  border-color: var(--color-primary);
  background: var(--color-primary);
}

.bp-process__card.is-done .bp-process__card-check {
  color: #fff;
}

/* Card Content */
.bp-process__card-title {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 14px;
  transition: color 0.3s ease;
}

.bp-process__card.is-done .bp-process__card-title {
  color: #bbb;
}

.bp-process__card-desc {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: #666;
  margin-bottom: auto;
  padding-bottom: 24px;
  transition: color 0.3s ease;
}

.bp-process__card.is-active .bp-process__card-desc {
  color: #ffffff;
}

/* Deliverables */
.bp-process__card-deliverables {
  border-top: 1px solid #1e1e1e;
  padding-top: 20px;
}

.bp-process__card-dlabel {
  display: block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #444;
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.bp-process__card.is-active .bp-process__card-dlabel {
  color: #666;
}

.bp-process__card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bp-process__card-tags span {
  font-size: 12px;
  font-weight: 500;
  color: #555;
  background: #161616;
  border: 1px solid #222;
  padding: 5px 14px;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.bp-process__card.is-active .bp-process__card-tags span {
  color: #bbb;
  border-color: #333;
  background: #1a1a1a;
}

.bp-process__card.is-done .bp-process__card-tags span {
  color: #777;
  border-color: rgba(32, 109, 209, 0.15);
}

/* =====================
   EMPOWERING SECTION (Dark)
   ===================== */
.bp-empower {
  padding: 80px 0;
  background: var(--color-bg-dark, #000000);
  border-radius: 24px;
}

.bp-empower__label {
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 20px;
  display: block;
}

.bp-empower__title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 500;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 20px;
}

.bp-empower__accent {
  background: linear-gradient(to right, var(--color-primary), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bp-empower__desc {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: #ffffff; /* intentional: muted text on dark bg */
  margin-bottom: 48px;
}

.bp-empower__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.bp-empower__stat-line {
  width: 95px;
  height: 2px;
  background: var(--color-primary);
  margin-bottom: 20px;
}

.bp-empower__stat-value {
  display: block;
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 500;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: 0.02rem;
}

.bp-empower__stat-label {
  font-size: 24px;
  font-weight: 400;
  color: #ffffff; /* intentional: muted text on dark bg */
  line-height: 1.4;
}

/* =====================
   BUILD YOUR OWN TEAM SECTION
   ===================== */
.bp-build {
  padding: 80px 0;
  background: #fff;
  text-align: center;
}

.bp-build__content {
  max-width: 750px;
  margin: 0 auto;
}

.bp-build__title {
  font-size: clamp(40px, 5vw, 75px);
  font-weight: 600;
  line-height: 1.17;
  color: var(--color-text);
  margin-bottom: 24px;
  position: relative;
}

.bp-build__accent {
  background: linear-gradient(to right, var(--color-primary), #000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bp-build__desc {
  font-size: 20px;
  font-weight: 400;
  line-height: 32px;
  letter-spacing: 0.02em;
  color: var(--color-text);
  margin: 0 auto 32px;
}

.bp-build__divider {
  width: 100%;
  height: 1px;
  background: #e5e5e5;
  margin-bottom: 32px;
}

.bp-build__stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 36px;
}

.bp-build__stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.bp-build__stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
}

.bp-build__stat-label {
  font-size: 22px;
  font-weight: 500;
  color: var(--color-text);
}

.bp-build__ctas {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* =====================
   RESPONSIVE — Tablet (≤ 1023px)
   ===================== */
@media (max-width: 1023px) {
  /* Why */
  .bp-why {
    padding: 60px 0;
  }

  .bp-why__grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .bp-why__header {
    grid-column: 1 / -1;
    padding-right: 0;
    margin-bottom: 16px;
  }

  .bp-why__desc {
    max-width: 500px;
  }

  /* Core Values */
  .bp-values {
    padding: 60px 0;
  }

  .bp-values__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .bp-values__header {
    position: static;
  }

  .bp-values__cards {
    gap: 60px 40px;
  }

  /* Process */
  .bp-process__pipeline {
    padding: 0 16px;
  }

  .bp-process__pipeline-line {
    left: 16px;
    right: 16px;
  }

  .bp-process__track {
    padding-left: 16px;
  }

  .bp-process__card {
    flex: 0 0 310px;
    min-height: 400px;
    padding: 28px 24px;
  }

  .bp-process__card-connector {
    width: 36px;
  }

  /* Empower */
  .bp-empower {
    padding: 60px 0;
  }

  .bp-empower__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .bp-empower__stat-label {
    font-size: 18px;
  }

  /* Build */
  .bp-build {
    padding: 60px 0;
  }

  .bp-build__title {
    line-height: 1.15;
  }
}

/* =====================
   RESPONSIVE — Mobile (≤ 768px)
   ===================== */
@media (max-width: 768px) {
  /* Why */
  .bp-why {
    padding: 40px 0;
  }

  .bp-why__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .bp-why__header {
    margin-bottom: 12px;
  }

  .bp-why__title {
    font-size: 28px;
  }

  .bp-why__desc {
    font-size: 15px;
    max-width: 100%;
  }

  .bp-why__card {
    padding: 28px 24px;
  }

  .bp-why__card-value {
    font-size: 20px;
  }

  .bp-why__card-desc {
    font-size: 14px;
  }

  /* Core Values */
  .bp-values {
    padding: 50px 0;
  }

  .bp-values__title {
    font-size: 26px;
  }

  .bp-values__desc {
    font-size: 16px;
  }

  .bp-values__cards {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .bp-values__cards:before,
  .bp-values__cards:after {
    display: none;
  }

  .bp-values__card-icon {
    width: 55px;
    height: 55px;
  }

  .bp-values__card-icon svg,
  .bp-values__card-icon img {
    width: 36px;
    height: 36px;
  }

  .bp-values__card-title {
    font-size: 20px;
  }

  .bp-values__card-desc {
    font-size: 14px;
  }

  /* Process */
  .bp-process__pin {
    padding: 50px 0 40px;
  }

  .bp-process__top {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
  }

  .bp-process__counter-current {
    font-size: 40px;
  }

  .bp-process__pipeline {
    padding: 0 8px;
    margin-bottom: 24px;
  }

  .bp-process__pipeline-line {
    left: 8px;
    right: 8px;
  }

  .bp-process__pipeline-node {
    width: 22px;
    height: 22px;
  }

  .bp-process__pipeline-node svg {
    width: 10px;
    height: 10px;
  }

  .bp-process__track {
    padding-left: 16px;
  }

  .bp-process__card {
    flex: 0 0 270px;
    min-height: 380px;
    padding: 24px 20px;
  }

  .bp-process__card-title {
    font-size: 20px;
  }

  .bp-process__card-desc {
    font-size: 13px;
  }

  .bp-process__card-connector {
    width: 32px;
  }

  .bp-process__card-connector svg {
    width: 24px;
  }

  .bp-process__card-tags span {
    font-size: 11px;
    padding: 5px 12px;
  }

  /* Empower */
  .bp-empower {
    padding: 50px 24px;
    border-radius: 20px;
  }

  .bp-empower__title {
    font-size: 24px;
  }

  .bp-empower__stats {
    gap: 24px;
  }

  .bp-empower__stat-value {
    font-size: 32px;
  }

  .bp-empower__stat-label {
    font-size: 14px;
  }

  /* Build */
  .bp-build {
    padding: 50px 0;
  }

  .bp-build__title {
    font-size: 36px;
    line-height: 1.2;
  }

  .bp-build__desc {
    font-size: 16px;
    line-height: 1.6;
  }

  .bp-build__stats {
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .bp-build__ctas {
    flex-direction: column;
    align-items: center;
  }
}

/* =====================
   RESPONSIVE — Small Mobile (≤ 480px)
   ===================== */
@media (max-width: 480px) {
  .bp-why__grid {
    gap: 16px;
  }

  .bp-why__card {
    padding: 24px 20px;
  }

  .bp-why__card-value {
    font-size: 18px;
  }

  /* Core Values */
  .bp-values__cards {
    gap: 28px;
  }

  /* Empower */
  .bp-empower {
    padding: 40px 20px;
    border-radius: 16px;
  }

  .bp-empower__title {
    font-size: 22px;
  }

  .bp-empower__stats {
    gap: 20px;
  }

  .bp-empower__stat-value {
    font-size: 28px;
  }

  /* Build */
  .bp-build__title {
    font-size: 35px;
  }

  .bp-build__stats {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
}
