/* Phase 2: MZ-inspired process storytelling, adapted for Shopify work. */
.process-showcase {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 84% 23%, rgba(38, 120, 255, .13), transparent 25%),
    radial-gradient(circle at 12% 72%, rgba(255, 112, 67, .08), transparent 22%),
    #091426;
}

.process-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .46;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 88%);
  mask-image: linear-gradient(180deg, #000, transparent 88%);
}

.process-heading {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto 52px;
  text-align: center;
}

.process-heading h2 {
  margin: 18px 0 0;
  letter-spacing: -.048em;
  font-size: clamp(38px, 5.5vw, 66px);
  line-height: 1.02;
}

.process-heading > p {
  max-width: 640px;
  margin: 22px auto 0;
  color: rgba(255, 255, 255, .58);
  font-size: 16px;
  line-height: 1.75;
}

.process-heading .process-principle {
  display: inline-flex;
  width: auto;
  margin-top: 28px;
  padding: 13px 18px;
  border-color: rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .045);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.process-flow {
  --process-progress: 0%;
  position: relative;
  z-index: 1;
}

.process-track {
  position: absolute;
  z-index: 0;
  top: 180px;
  bottom: 180px;
  left: 23px;
  width: 1px;
  background: rgba(255, 255, 255, .13);
}

.process-track span {
  display: block;
  width: 2px;
  height: var(--process-progress);
  margin-left: -1px;
  background: linear-gradient(180deg, #59a6ff, #2678ff 66%, #ff7043);
  box-shadow: 0 0 18px rgba(89, 166, 255, .56);
  transition: height .65s cubic-bezier(.2, .7, .2, 1);
}

.process-step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(480px, 1.14fr);
  align-items: center;
  gap: clamp(54px, 7vw, 96px);
  min-height: 470px;
  margin-left: 0;
  padding: 45px 0 45px 82px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  transition: opacity .45s ease, transform .45s ease;
}

.process-step:last-child { border-bottom: 1px solid rgba(255, 255, 255, .1); }

.process-node {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 0;
  display: grid;
  place-items: center;
  width: 47px;
  height: 47px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 13px;
  color: rgba(255, 255, 255, .48);
  background: #0b1729;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .26);
  letter-spacing: .1em;
  font-size: 10px;
  font-weight: 900;
  transform: translateY(-50%);
  transition: color .4s ease, border-color .4s ease, background .4s ease, box-shadow .4s ease;
}

.process-step.is-active .process-node {
  border-color: rgba(89, 166, 255, .58);
  color: #fff;
  background: linear-gradient(145deg, #2678ff, #165ecf);
  box-shadow: 0 0 0 7px rgba(38, 120, 255, .09), 0 16px 30px rgba(38, 120, 255, .26);
}

.process-step-copy { max-width: 430px; }

.process-step-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #75b6ff;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 850;
}

.process-step-label::before {
  content: "";
  width: 17px;
  height: 1px;
  background: #ff7043;
}

.process-step h3 {
  margin: 17px 0 0;
  letter-spacing: -.04em;
  font-size: clamp(28px, 3.4vw, 43px);
  line-height: 1.05;
}

.process-step-copy > p {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, .58);
  font-size: 15px;
  line-height: 1.75;
}

.process-step-copy ul {
  display: grid;
  gap: 9px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  font-weight: 650;
}

.process-step-copy li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.process-step-copy li::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ff7043;
  box-shadow: 0 0 9px rgba(255, 112, 67, .6);
}

html.process-enhanced .process-step { opacity: .5; transform: translateY(12px); }
html.process-enhanced .process-step.is-active { opacity: 1; transform: translateY(0); }

.process-visual {
  --process-rx: 0deg;
  --process-ry: 0deg;
  position: relative;
  isolation: isolate;
  height: 380px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 28px;
  background:
    radial-gradient(circle at 68% 45%, rgba(38, 120, 255, .18), transparent 33%),
    linear-gradient(145deg, rgba(17, 36, 64, .84), rgba(5, 13, 27, .92));
  box-shadow: 0 30px 70px rgba(0, 0, 0, .35), inset 0 1px rgba(255, 255, 255, .05);
  transform: perspective(1100px) rotateX(var(--process-rx)) rotateY(var(--process-ry));
  transform-style: preserve-3d;
  transition: border-color .45s ease, box-shadow .45s ease, transform .2s ease;
  will-change: transform;
}

.process-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .7;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 27px 27px;
  -webkit-mask-image: radial-gradient(circle, #000 16%, transparent 79%);
  mask-image: radial-gradient(circle, #000 16%, transparent 79%);
}

.process-step.is-active .process-visual {
  border-color: rgba(89, 166, 255, .28);
  box-shadow: 0 34px 82px rgba(0, 0, 0, .43), 0 0 54px rgba(38, 120, 255, .08), inset 0 1px rgba(255, 255, 255, .07);
}

.process-visual-glow {
  position: absolute;
  z-index: 0;
  width: 220px;
  height: 220px;
  right: 5%;
  bottom: -28%;
  border-radius: 50%;
  background: rgba(38, 120, 255, .3);
  filter: blur(62px);
  animation: process-glow 7s ease-in-out infinite;
  animation-play-state: paused;
}

.process-step.is-active .process-visual-glow { animation-play-state: running; }

/* Audit visual */
.audit-browser {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 73%;
  height: 69%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 17px;
  background: #f7f9fc;
  box-shadow: 0 26px 52px rgba(0, 0, 0, .4);
  transform: translate(-50%, -50%) translateZ(20px) rotateY(-4deg);
}

.audit-toolbar {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 10px;
  border-bottom: 1px solid #dde3eb;
  background: #fff;
}

.audit-toolbar i { width: 5px; height: 5px; border-radius: 50%; background: #c9d1dc; }
.audit-toolbar i:first-child { background: #ff7043; }
.audit-toolbar i:nth-child(2) { background: #f1b44c; }
.audit-toolbar i:nth-child(3) { background: #39bd81; }
.audit-toolbar span { margin-left: auto; margin-right: auto; padding: 4px 28px; border-radius: 99px; color: #7d8999; background: #f2f4f7; font-size: 7px; }

.audit-screen { position: relative; display: grid; grid-template-columns: 42px 1fr; height: calc(100% - 32px); }
.audit-screen aside { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 12px; border-right: 1px solid #e3e8ef; background: #fff; }
.audit-screen aside b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; color: #fff; background: #091426; font-size: 9px; }
.audit-screen aside i { width: 14px; height: 3px; border-radius: 99px; background: #bdc6d2; }
.audit-screen aside i:first-of-type { background: #2678ff; box-shadow: 0 0 0 4px rgba(38, 120, 255, .1); }
.audit-screen main { padding: 14px; }
.audit-hero-block { height: 102px; padding: 17px; border-radius: 10px; background: linear-gradient(135deg, #132b4f, #2678ff); }
.audit-hero-block span, .audit-hero-block strong, .audit-hero-block i { display: block; border-radius: 99px; }
.audit-hero-block span { width: 45px; height: 4px; background: #78b7ff; }
.audit-hero-block strong { width: 90px; height: 13px; margin-top: 10px; background: rgba(255, 255, 255, .86); }
.audit-hero-block i { width: 42px; height: 15px; margin-top: 14px; background: #ff7043; }
.audit-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 10px; }
.audit-products span { height: 55px; border: 1px solid #e2e7ee; border-radius: 8px; background: linear-gradient(145deg, #fff, #edf2f8); }

.audit-scan-line {
  position: absolute;
  z-index: 4;
  left: 42px;
  right: 0;
  top: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #59a6ff 20%, #fff 50%, #59a6ff 80%, transparent);
  box-shadow: 0 0 14px #59a6ff, 0 10px 30px rgba(89, 166, 255, .2);
  animation: audit-scan 4.5s ease-in-out infinite;
  animation-play-state: paused;
}

.process-step.is-active .audit-scan-line { animation-play-state: running; }

.audit-chip {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 9px;
  color: rgba(255, 255, 255, .82);
  background: rgba(4, 13, 28, .86);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .3);
  font-size: 8px;
  font-weight: 800;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.audit-chip i { width: 5px; height: 5px; border-radius: 50%; background: #59a6ff; box-shadow: 0 0 8px #59a6ff; }
.chip-ux { top: 16%; left: 4%; }
.chip-trust { top: 46%; right: 3%; }
.chip-speed { left: 13%; bottom: 9%; }
.chip-speed i { background: #ff7043; box-shadow: 0 0 8px #ff7043; }

/* Strategy visual */
.strategy-map { position: absolute; z-index: 2; inset: 0; transform-style: preserve-3d; }
.strategy-core { position: absolute; z-index: 3; top: 50%; left: 50%; display: grid; place-items: center; width: 132px; height: 132px; border: 1px solid rgba(117, 182, 255, .42); border-radius: 50%; color: #fff; background: radial-gradient(circle at 36% 28%, #2678ff, #102b56 68%, #091426); box-shadow: 0 0 0 12px rgba(38, 120, 255, .07), 0 24px 48px rgba(0, 0, 0, .38), inset 0 1px rgba(255, 255, 255, .28); transform: translate(-50%, -50%) translateZ(36px); }
.strategy-core::before { content: ""; position: absolute; inset: -26px; border: 1px dashed rgba(89, 166, 255, .2); border-radius: 50%; animation: strategy-spin 18s linear infinite; animation-play-state: paused; }
.process-step.is-active .strategy-core::before { animation-play-state: running; }
.strategy-core small, .strategy-core strong, .strategy-core span { position: absolute; }
.strategy-core small { top: 34px; color: #9dccff; letter-spacing: .14em; font-size: 6px; }
.strategy-core strong { top: 52px; font-size: 15px; }
.strategy-core span { top: 78px; padding: 4px 8px; border-radius: 99px; color: rgba(255, 255, 255, .65); background: rgba(255, 255, 255, .08); font-size: 7px; }

.strategy-card { position: absolute; z-index: 4; display: flex; align-items: center; gap: 9px; width: 132px; padding: 11px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; background: rgba(7, 18, 38, .9); box-shadow: 0 15px 30px rgba(0, 0, 0, .3); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.strategy-card > i { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: #fff; background: linear-gradient(145deg, #2678ff, #174e9f); font-size: 10px; font-style: normal; font-weight: 900; }
.strategy-card span small, .strategy-card span strong { display: block; }
.strategy-card span small { color: rgba(255, 255, 255, .44); letter-spacing: .1em; font-size: 6px; }
.strategy-card span strong { margin-top: 3px; font-size: 10px; }
.strategy-offer { top: 12%; left: 8%; transform: translateZ(20px) rotate(-2deg); }
.strategy-ux { top: 12%; right: 7%; transform: translateZ(25px) rotate(2deg); }
.strategy-cro { bottom: 12%; left: 9%; transform: translateZ(28px) rotate(2deg); }
.strategy-track { right: 6%; bottom: 12%; transform: translateZ(18px) rotate(-2deg); }
.strategy-cro > i { background: linear-gradient(145deg, #ff8f68, #ce4b22); }
.strategy-track > i { background: linear-gradient(145deg, #3fc58c, #177c56); }

.strategy-line { position: absolute; z-index: 1; top: 50%; left: 50%; width: 142px; height: 1px; background: linear-gradient(90deg, rgba(89, 166, 255, .64), transparent); transform-origin: left; }
.line-one { transform: rotate(-145deg); }
.line-two { transform: rotate(-35deg); }
.line-three { transform: rotate(145deg); }
.line-four { transform: rotate(35deg); }

/* Build visual */
.build-canvas { position: absolute; z-index: 2; inset: 0; transform-style: preserve-3d; }
.build-window { position: absolute; overflow: hidden; border: 1px solid rgba(255, 255, 255, .16); border-radius: 15px; background: #f5f7fa; box-shadow: 0 22px 48px rgba(0, 0, 0, .35); }
.window-back { top: 16%; left: 10%; width: 68%; height: 58%; opacity: .42; transform: translateZ(0) rotate(-4deg); }
.window-back > span { display: block; width: 62%; height: 12px; margin: 17px; border-radius: 4px; background: #cbd5e2; }
.window-back > span:nth-child(3) { width: 42%; }
.window-front { top: 21%; left: 17%; width: 70%; height: 63%; transform: translateZ(30px) rotateY(-3deg); }
.build-bar { display: flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border-bottom: 1px solid #dde3eb; background: #fff; }
.build-bar i { width: 5px; height: 5px; border-radius: 50%; background: #c9d1dc; }
.build-bar i:first-child { background: #ff7043; }
.build-bar i:nth-child(2) { background: #f1b44c; }
.build-bar i:nth-child(3) { background: #3fc58c; }
.build-bar b { margin-left: auto; margin-right: auto; color: #8290a2; font-size: 7px; }
.build-layout { display: grid; grid-template-columns: 38px 1fr; height: calc(100% - 30px); }
.build-layout aside { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-top: 13px; border-right: 1px solid #e0e5ec; background: #fff; }
.build-layout aside span { width: 14px; height: 3px; border-radius: 99px; background: #bdc7d3; }
.build-layout aside span:first-child { background: #2678ff; }
.build-layout main { padding: 12px; }
.build-banner { height: 83px; border-radius: 9px; background: radial-gradient(circle at 78% 34%, rgba(89, 166, 255, .8), transparent 27%), linear-gradient(135deg, #0f2442, #1c4f94); }
.build-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 9px; }
.build-grid i { height: 50px; border: 1px solid #e0e6ed; border-radius: 7px; background: linear-gradient(145deg, #fff, #edf2f8); }

.liquid-card { position: absolute; z-index: 5; right: 3%; bottom: 4%; width: 190px; padding: 13px; border: 1px solid rgba(255, 255, 255, .17); border-radius: 13px; color: #dfeaff; background: rgba(5, 15, 32, .93); box-shadow: 0 18px 36px rgba(0, 0, 0, .42); transform: translateZ(70px) rotateY(-2deg); }
.liquid-card > span { display: inline-block; padding: 3px 6px; border-radius: 99px; color: #8ec5ff; background: rgba(38, 120, 255, .13); letter-spacing: .12em; font-size: 6px; font-weight: 900; }
.liquid-card code { display: block; margin-top: 9px; color: #9cb0ca; font-family: SFMono-Regular, Consolas, monospace; font-size: 7px; line-height: 1.7; }
.liquid-card code b { color: #ff9b78; font-weight: 500; }
.liquid-card code i { color: #75b6ff; font-style: normal; }
.build-status { position: absolute; z-index: 6; left: 7%; bottom: 7%; display: flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 9px; color: rgba(255, 255, 255, .8); background: rgba(5, 15, 31, .88); box-shadow: 0 14px 28px rgba(0, 0, 0, .32); font-size: 8px; font-weight: 800; }
.build-status i { width: 6px; height: 6px; border-radius: 50%; background: #3fc58c; box-shadow: 0 0 8px #3fc58c; }

/* Growth visual */
.growth-system { position: absolute; z-index: 2; inset: 0; padding: 47px 44px; }
.growth-route { display: flex; align-items: center; justify-content: space-between; gap: 11px; }
.growth-route > div { display: flex; align-items: center; gap: 9px; min-width: 122px; padding: 11px; border: 1px solid rgba(255, 255, 255, .13); border-radius: 12px; background: rgba(8, 21, 43, .82); box-shadow: 0 14px 28px rgba(0, 0, 0, .24); }
.growth-route > div > i { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: #fff; background: linear-gradient(145deg, #2678ff, #174f9f); font-size: 9px; font-style: normal; font-weight: 900; }
.growth-route > div:nth-of-type(2) > i { background: linear-gradient(145deg, #ff8c64, #c84a24); }
.growth-route > div:nth-of-type(3) > i { background: linear-gradient(145deg, #3fc58c, #167650); }
.growth-route small, .growth-route strong { display: block; }
.growth-route small { color: rgba(255, 255, 255, .4); letter-spacing: .1em; font-size: 5px; }
.growth-route strong { margin-top: 3px; font-size: 9px; }
.growth-route > b { color: #75b6ff; font-size: 15px; font-weight: 500; }

.growth-chart-card { margin-top: 30px; padding: 17px 19px 3px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 17px; background: rgba(5, 15, 31, .84); box-shadow: 0 22px 44px rgba(0, 0, 0, .34); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.growth-chart-card > div { display: flex; justify-content: space-between; align-items: flex-start; }
.growth-chart-card small, .growth-chart-card strong { display: block; }
.growth-chart-card small { color: #75b6ff; letter-spacing: .12em; font-size: 6px; }
.growth-chart-card strong { margin-top: 5px; font-size: 12px; }
.growth-chart-card > div > i { padding: 4px 7px; border-radius: 99px; color: #7ee2b8; background: rgba(63, 197, 140, .12); font-size: 6px; font-style: normal; font-weight: 900; }
.growth-chart-card svg { display: block; width: 100%; height: 115px; overflow: visible; }
.growth-chart-line { stroke-dasharray: 520; stroke-dashoffset: 520; animation: process-chart-draw 2.4s .2s ease forwards; animation-play-state: paused; }
.process-step.is-active .growth-chart-line { animation-play-state: running; }

@keyframes process-glow { 0%, 100% { opacity: .56; scale: .92; } 50% { opacity: 1; scale: 1.08; } }
@keyframes audit-scan { 0%, 100% { top: 8%; opacity: .35; } 50% { top: 90%; opacity: 1; } }
@keyframes strategy-spin { to { transform: rotate(360deg); } }
@keyframes process-chart-draw { to { stroke-dashoffset: 0; } }

@media (width <= 1000px) {
  .process-step { grid-template-columns: 1fr; gap: 32px; min-height: auto; padding-top: 68px; padding-bottom: 68px; }
  .process-step-copy { max-width: 650px; }
  .process-visual { height: 410px; }
  .process-track { top: 190px; bottom: 190px; }
}

@media (width <= 700px) {
  .process-heading { margin-bottom: 35px; text-align: left; }
  .process-heading h2 { font-size: clamp(38px, 11vw, 52px); }
  .process-heading > p { margin-left: 0; font-size: 15px; }
  .process-heading .process-principle { border-radius: 15px; }
  .process-track { left: 18px; top: 150px; bottom: 150px; }
  .process-step { gap: 28px; padding: 56px 0 56px 58px; }
  .process-node { left: -3px; width: 42px; height: 42px; border-radius: 12px; }
  .process-step h3 { font-size: clamp(29px, 9vw, 39px); }
  .process-step-copy > p { font-size: 14px; }
  .process-visual { height: 330px; border-radius: 21px; transform: none; }
  .audit-browser { width: 82%; height: 70%; }
  .audit-chip { padding: 7px 8px; }
  .strategy-core { width: 108px; height: 108px; }
  .strategy-core small { top: 27px; }
  .strategy-core strong { top: 44px; font-size: 13px; }
  .strategy-core span { top: 67px; }
  .strategy-card { width: 112px; padding: 8px; }
  .strategy-card > i { width: 24px; height: 24px; }
  .strategy-offer { left: 3%; }
  .strategy-ux { right: 2%; }
  .strategy-cro { left: 3%; }
  .strategy-track { right: 2%; }
  .window-front { left: 9%; width: 81%; }
  .window-back { left: 5%; width: 78%; }
  .liquid-card { right: 2%; width: 160px; }
  .growth-system { padding: 35px 20px; }
  .growth-route { gap: 5px; }
  .growth-route > div { min-width: 0; flex: 1; justify-content: center; padding: 9px 5px; }
  .growth-route > div > i { width: 25px; height: 25px; }
  .growth-route > div span { display: none; }
  .growth-route > b { font-size: 11px; }
  .growth-chart-card { margin-top: 26px; }
}

@media (width <= 430px) {
  .process-step { padding-left: 52px; }
  .process-visual { height: 300px; }
  .audit-browser { width: 86%; }
  .chip-trust { right: 1%; }
  .strategy-card { width: 102px; }
  .strategy-card span small { display: none; }
  .liquid-card { width: 145px; }
  .liquid-card code { font-size: 6px; }
  .build-status { left: 3%; }
  .growth-chart-card svg { height: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  html.process-enhanced .process-step { opacity: 1; transform: none; }
  .process-track span { transition: none; }
  .process-visual { transform: none; transition: none; }
  .process-showcase *, .process-showcase *::before, .process-showcase *::after { animation: none !important; }
  .growth-chart-line { stroke-dashoffset: 0; }
}
