/* Home CRO chapter: an editorial performance lab in the brand palette. */
.proof-section {
  width: min(var(--rf-section-max, 1280px), calc(100% - 72px));
  min-height: 820px;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(480px, 1.18fr) !important;
  align-items: center !important;
  gap: clamp(72px, 8vw, 132px) !important;
  padding-top: clamp(110px, 10vw, 158px) !important;
  padding-bottom: clamp(110px, 10vw, 158px) !important;
  color: #F7F7F7;
}

.proof-section::before {
  content: "";
  width: 100vw;
  position: absolute;
  inset: 0 auto 0 50%;
  z-index: -2;
  margin: 0;
  transform: translateX(-50%);
  background:
    linear-gradient(rgba(255, 69, 0, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 69, 0, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 82% 22%, rgba(255, 69, 0, 0.16), transparent 27%),
    radial-gradient(circle at 8% 88%, rgba(255, 69, 0, 0.09), transparent 24%),
    #050505 !important;
  background-size: 44px 44px, 44px 44px, auto, auto, auto !important;
}

.proof-section::after {
  content: "03 / CONVERSION LAB";
  position: absolute;
  right: 0;
  bottom: 44px;
  color: rgba(255, 255, 255, 0.22);
  font: 700 9px/1 "DM Sans", sans-serif;
  letter-spacing: 0.16em;
  pointer-events: none;
}

.proof-copy {
  max-width: 600px;
  position: relative;
  padding-left: 27px;
}

.proof-copy::before {
  content: "";
  width: 3px;
  position: absolute;
  inset: 3px auto 0 0;
  background: linear-gradient(180deg, #FF4500 0 64%, transparent 64%);
  box-shadow: 8px 0 22px rgba(255, 69, 0, 0.16);
}

.proof-copy .section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 9px;
  letter-spacing: 0.14em;
}

.proof-copy .section-label span {
  color: #FF4500 !important;
}

.proof-copy .section-label::after {
  content: "";
  width: 72px;
  height: 1px;
  display: block;
  background: rgba(255, 69, 0, 0.48);
}

.proof-copy h2 {
  max-width: 590px;
  margin: 42px 0 0;
  color: #F7F7F7 !important;
  font-size: clamp(50px, 5vw, 76px) !important;
  font-weight: 700;
  line-height: 0.94 !important;
  letter-spacing: -0.064em !important;
}

.proof-copy h2 em {
  color: #FF4500 !important;
}

.proof-copy > p:not(.section-label) {
  max-width: 540px;
  margin: 30px 0 0;
  color: rgba(247, 247, 247, 0.62) !important;
  font-size: 17px !important;
  line-height: 1.65 !important;
}

.proof-copy .text-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  padding: 0 18px;
  border: 1px solid rgba(255, 69, 0, 0.72);
  background: rgba(255, 69, 0, 0.06);
  color: #F7F7F7;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.proof-copy .text-link svg {
  stroke: #FF4500;
}

.proof-copy .text-link:hover,
.proof-copy .text-link:focus-visible {
  background: #FF4500;
  color: #090909;
  transform: translateY(-2px);
}

.proof-copy .text-link:hover svg,
.proof-copy .text-link:focus-visible svg {
  stroke: #090909;
}

.metric-board {
  min-height: 620px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: clamp(32px, 4vw, 52px) !important;
  border: 1px solid #FF4500 !important;
  border-radius: 2px !important;
  background:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    radial-gradient(circle at 90% 8%, rgba(255, 69, 0, 0.17), transparent 27%),
    #0A0A0A !important;
  background-size: 32px 32px, 32px 32px, auto, auto !important;
  color: #F8F8F8;
  box-shadow:
    10px 10px 0 #FF4500,
    20px 20px 0 rgba(255, 69, 0, 0.16) !important;
}

.metric-board::before {
  content: "";
  width: 170px;
  height: 170px;
  position: absolute;
  top: -86px;
  right: -86px;
  border: 1px solid rgba(255, 69, 0, 0.34);
  border-radius: 50%;
  box-shadow:
    0 0 0 28px rgba(255, 69, 0, 0.035),
    0 0 0 56px rgba(255, 69, 0, 0.025);
  pointer-events: none;
}

.metric-top {
  position: relative;
  z-index: 1;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 69, 0, 0.24);
  color: rgba(247, 247, 247, 0.52);
}

.metric-top i {
  background: #FF4500;
  box-shadow: 0 0 0 5px rgba(255, 69, 0, 0.1), 0 0 18px rgba(255, 69, 0, 0.54);
  animation: rf-cro-signal 1.8s ease-in-out infinite;
}

.metric-main {
  position: relative;
  z-index: 1;
  margin-top: 54px;
}

.metric-main p,
.metric-main span {
  color: rgba(247, 247, 247, 0.48);
}

.metric-main strong {
  margin: 10px 0 12px;
  color: #FF4500 !important;
  font-size: clamp(78px, 8.2vw, 126px) !important;
  text-shadow: 0 0 42px rgba(255, 69, 0, 0.16);
}

.pixel-chart-large {
  height: 190px;
  position: relative;
  z-index: 1;
  margin-top: auto;
  gap: 7px;
  border-bottom: 1px solid rgba(255, 69, 0, 0.72);
}

.pixel-chart-large::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to top,
    transparent 0 46px,
    rgba(255, 255, 255, 0.055) 46px 47px
  );
  pointer-events: none;
}

.pixel-chart-large span {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, #FF7A45, #FF4500) !important;
  transform: scaleY(1);
  transform-origin: bottom;
  animation: rf-cro-bar-rise 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pixel-chart-large span:nth-child(2) { animation-delay: 70ms; }
.pixel-chart-large span:nth-child(3) { animation-delay: 120ms; }
.pixel-chart-large span:nth-child(4) { animation-delay: 170ms; }
.pixel-chart-large span:nth-child(5) { animation-delay: 220ms; }
.pixel-chart-large span:nth-child(6) { animation-delay: 270ms; }
.pixel-chart-large span:nth-child(7) { animation-delay: 320ms; }
.pixel-chart-large span:nth-child(8) { animation-delay: 370ms; }

.metric-foot {
  position: relative;
  z-index: 1;
  gap: 8px;
  margin-top: 18px;
}

.metric-foot p {
  flex: 1;
  padding: 11px 12px;
  border: 1px solid rgba(255, 69, 0, 0.2);
  background: rgba(255, 69, 0, 0.045);
  color: rgba(247, 247, 247, 0.56);
}

.metric-foot span {
  color: #FF4500;
}

@keyframes rf-cro-bar-rise {
  from { transform: scaleY(0.08); opacity: 0.24; }
  to { transform: scaleY(1); opacity: 1; }
}

@keyframes rf-cro-signal {
  50% { box-shadow: 0 0 0 8px rgba(255, 69, 0, 0), 0 0 24px rgba(255, 69, 0, 0.74); }
}

@media (max-width: 980px) {
  .proof-section {
    min-height: 0;
    grid-template-columns: 1fr !important;
    gap: 72px !important;
  }

  .proof-copy {
    max-width: 720px;
  }

  .metric-board {
    width: calc(100% - 20px);
    max-width: 760px;
  }
}

@media (max-width: 620px) {
  .proof-section {
    width: calc(100% - 32px);
    padding-top: 88px !important;
    padding-bottom: 96px !important;
  }

  .proof-section::after {
    display: none;
  }

  .proof-copy {
    padding-left: 18px;
  }

  .proof-copy h2 {
    font-size: clamp(43px, 13vw, 58px) !important;
  }

  .metric-board {
    min-height: 540px;
    padding: 25px 20px !important;
    box-shadow:
      6px 6px 0 #FF4500,
      11px 11px 0 rgba(255, 69, 0, 0.14) !important;
  }

  .metric-main strong {
    font-size: clamp(72px, 23vw, 104px) !important;
  }

  .metric-foot {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .metric-top i,
  .pixel-chart-large span {
    animation: none;
  }
}
