/* CamBrain typography and color tokens; the existing alternating circuit layout. */
#how-it-works.cb-steps { position: relative; z-index: 1; isolation: isolate; overflow: hidden; background: #000; color: var(--cb-text-primary, #e2e8f0); scroll-margin-top: 64px; }
.cb-steps__inner { max-width: 1440px; margin: auto; padding: 80px 50px 112px; }
#how-it-works :is(h2, h3, p) { font-family: var(--cb-font-body, Pretendard, sans-serif) !important; }
.cb-steps__heading { max-width: 780px; }
#how-it-works .cb-steps__eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 24px; font: 400 13px/1.4 var(--cb-font-system, 'Space Mono', monospace) !important; color: var(--cb-text-secondary, #94a3b8); letter-spacing: .08em; }
.cb-steps__eyebrow span { color: var(--cb-accent, #00e5a0); font-size: 21px; }
#how-it-works h2 { margin: 0; font-size: 42px; font-weight: 500; line-height: 1.22; letter-spacing: -.025em; word-break: keep-all; }
#how-it-works h2 > span { display: block; font: inherit !important; color: #b4b9c0; }
#how-it-works h2 > strong { display: block; margin-top: 5px; font: 600 42px/1.22 var(--cb-font-body, Pretendard, sans-serif); color: var(--cb-accent, #00e5a0); }
#how-it-works .cb-steps__intro { margin: 24px 0 0; font-size: 17px; line-height: 1.65; color: #9fa6ae; word-break: keep-all; }
.cb-steps__timeline { position: relative; max-width: 858px; margin: 26px auto 0; }
.cb-steps__timeline::before { content: ''; position: absolute; width: 1px; background: #26302c; top: 14px; bottom: 0; left: 50%; }
.cb-steps__timeline.is-measured::before { display: none; }
.cb-steps__trace { position: absolute; pointer-events: none; top: 0; left: calc(50% - 40px); height: 100%; overflow: visible; }
.cb-steps__trace path { fill: none; stroke-linejoin: round; }
.cb-steps__trace-base { stroke: #26302c; }
.cb-steps__trace-active { stroke: var(--cb-accent, #00e5a0); stroke-dasharray: 1; stroke-dashoffset: 1; }
.cb-steps__list { position: relative; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 20px; }
.cb-steps__step { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); column-gap: 52px; align-items: start; }
#how-it-works .cb-steps__number { position: relative; z-index: 2; grid-column: 2; grid-row: 1; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; font: 400 16px/1 var(--cb-font-system, 'Space Mono', monospace) !important; border: 1px solid var(--cb-accent, #00e5a0); border-radius: 3px; background: var(--cb-accent, #00e5a0); color: #060606; transition: background-color .2s, color .2s; }
#how-it-works .is-reached .cb-steps__number { background: #07120d; color: var(--cb-accent, #00e5a0); border-color: #007a52; }
.cb-steps__branch { position: absolute; height: 14px; top: 13px; left: calc(50% + 14px); right: calc(50% - 80px); border-top: 1px solid #26302c; border-right: 1px solid #26302c; border-top-right-radius: 14px; }
.cb-steps__step:nth-child(even) .cb-steps__branch { left: calc(50% - 80px); right: calc(50% + 14px); border-right: 0; border-left: 1px solid #26302c; border-radius: 14px 0 0 0; }
.is-reached .cb-steps__branch { border-color: var(--cb-accent, #00e5a0); }
.cb-steps__card { position: relative; grid-column: 3; grid-row: 1; min-width: 0; margin-top: 22.75px; border: 1px solid #242a28; border-radius: 12px; background: #101312; overflow: hidden; }
.cb-steps__step:nth-child(even) .cb-steps__card { grid-column: 1; }
.cb-steps__image { aspect-ratio: 1.5936; overflow: hidden; background: #080a09; border-bottom: 1px solid #252b28; }
.cb-steps__image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cb-steps__image--lut img { width: 170%; max-width: none; height: 170%; transform: translate(-41%, -8%); }
.cb-steps__image--handoff img { width: 165%; max-width: none; height: 165%; transform: translate(-39%, -39%); }
.cb-steps__copy { padding: 24px; }
#how-it-works .cb-steps__task { margin: 0 0 10px; font-size: 13px; line-height: 1.4; font-weight: 500; color: var(--cb-accent, #00e5a0); }
#how-it-works h3 { margin: 0; font-size: 21px; line-height: 1.35; letter-spacing: -.025em; font-weight: 600; word-break: keep-all; overflow-wrap: anywhere; color: #e2e8f0; }
#how-it-works .cb-steps__body { margin: 14px 0 0; font-size: 15px; line-height: 1.65; color: #a7afb2; word-break: keep-all; overflow-wrap: anywhere; }
#how-it-works .cb-steps__features { margin: 22px 0 0; padding-top: 14px; border-top: 1px solid #29302d; font: 400 11px/1.6 var(--cb-font-system, 'Space Mono', monospace) !important; color: #8c9d94; overflow-wrap: anywhere; }
.cb-steps__features span { color: #465a4f; margin: 0 3px; }
@media (max-width: 1023px) {
  .cb-steps__inner { padding: 64px 32px 80px; }
  .cb-steps__timeline { max-width: 720px; margin-top: 32px; }
  .cb-steps__timeline::before { left: 14px; }
  .cb-steps__trace { left: -26px; }
  .cb-steps__list { gap: 36px; }
  .cb-steps__step { grid-template-columns: 28px minmax(0, 1fr); gap: 24px; }
  #how-it-works .cb-steps__number { grid-column: 1; }
  .cb-steps__card, .cb-steps__step:nth-child(even) .cb-steps__card { grid-column: 2; margin-top: 0; }
  .cb-steps__branch { display: none; }
}
@media (max-width: 639px) {
  .cb-steps__inner { padding: 48px 16px 64px; }
  #how-it-works h2, #how-it-works h2 > strong { font-size: 28px; }
  #how-it-works .cb-steps__intro { font-size: 15px; }
  .cb-steps__step { gap: 16px; }
  .cb-steps__copy { padding: 18px 16px; }
  #how-it-works h3 { font-size: 19px; }
  #how-it-works .cb-steps__body { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  #how-it-works .cb-steps__number { transition: none; }
  .cb-steps__trace-active { display: none; }
}

/* A quiet emerald wash; only the background fades, never the content. */
#how-it-works.cb-steps::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgb(0 229 160 / .018) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgb(0 229 160 / .018) 1px, transparent 1px) 0 0 / 24px 24px,
    radial-gradient(ellipse 85% 62% at -12% 30%, rgb(9 51 37 / .65), transparent 78%),
    linear-gradient(100deg, #061710 0%, #030b07 38%, #000 74%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 220px, #000 calc(100% - 300px), transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 220px, #000 calc(100% - 300px), transparent);
}
@media (max-width: 639px) {
  #how-it-works.cb-steps::before {
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 140px, #000 calc(100% - 180px), transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 140px, #000 calc(100% - 180px), transparent);
  }
}
