/* ==========================================================================
   CommerceNerve v6 — integration-platform design (loaded after site.css)
   ========================================================================== */
:root {
  --ink: #11142b;
  --slate: #141936;
  --slate-2: #1d2350;
  --cream: #f7f5f0;
  --peach: #ff9a6b;
  --mint-p: #e3f7ef;
  --lilac-p: #efeaff;
  --peach-p: #fff0e6;
  --sky-p: #e7f0ff;
  --rose-p: #ffe9f0;
  --sun-p: #fff6d9;
}
body { background: var(--cream); }
.cn-sec.tint { background: linear-gradient(180deg, #f1edff, var(--cream)); }

/* ---------- Hero v6 ---------- */
.h6 { position: relative; overflow: hidden; color: #fff; padding: 76px 0 0;
  background: radial-gradient(800px 500px at 85% 0%, rgba(139,108,255,.45), transparent 60%),
              radial-gradient(700px 500px at 0% 100%, rgba(255,154,107,.22), transparent 60%),
              linear-gradient(180deg, #11142b, #1a1c4a); }
.h6::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 52px 52px; mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%); }
.h6 > .container { position: relative; }
.h6-grid { display: grid; grid-template-columns: 1fr 1.02fr; gap: 52px; align-items: center; }
.h6 .kick { display: inline-flex; gap: 10px; align-items: center; font-size: 13px; font-weight: 800; letter-spacing: .12em; color: var(--peach); text-transform: uppercase; }
.h6 h1 { margin-top: 18px; font-size: clamp(40px, 5.2vw, 66px); line-height: 1.02; letter-spacing: -.04em; font-weight: 800; }
.h6 h1 em { font-style: normal; background: linear-gradient(110deg, #ffb48f, #c9bfff 55%, #7ef0c3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h6 .lead { margin-top: 22px; font-size: 18.5px; color: #c4c2e6; max-width: 560px; }
.h6 .cn-actions .btn-primary { background: var(--peach); color: #2a1408; box-shadow: 0 14px 30px rgba(255,154,107,.35); }
.h6 .cn-actions .btn-primary:hover { background: #ffb08a; }
.h6 .cn-actions .btn-outline { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.22); color: #fff; }
.h6 .cn-actions .btn-outline:hover { background: rgba(255,255,255,.14); color: #fff; }
.h6-live { margin-top: 28px; display: inline-flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); font-size: 14px; color: #e6e4ff; }
.h6-live .pair { display: flex; }
.h6-live .pair .cn-logo { width: 34px; height: 34px; border-radius: 10px; border: 2px solid #1a1c4a; }
.h6-live .pair .cn-logo + .cn-logo { margin-left: -10px; }
.h6-live b { color: #fff; }
.h6-live a { color: var(--peach); font-weight: 700; margin-left: 4px; }
.h6-copy > * { animation: cn-up .8s cubic-bezier(.2,.8,.2,1) both; }
.h6-copy > *:nth-child(2) { animation-delay: .08s; } .h6-copy > *:nth-child(3) { animation-delay: .16s; } .h6-copy > *:nth-child(4) { animation-delay: .24s; } .h6-copy > *:nth-child(5) { animation-delay: .32s; }

/* flow canvas */
.fc { position: relative; animation: cn-zoom 1s .15s cubic-bezier(.2,.8,.2,1) both; }
.fc-card { position: relative; z-index: 2; border-radius: 26px; background: rgba(255,255,255,.97); color: var(--ink); box-shadow: 0 40px 90px rgba(0,0,0,.45); overflow: hidden; }
.fc-top { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #eceaf5; background: #faf9ff; }
.fc-top .pair { display: flex; align-items: center; gap: 6px; }
.fc-top .pair .cn-logo { width: 32px; height: 32px; border-radius: 9px; box-shadow: none; }
.fc-top b { font-size: 14.5px; }
.fc-top small { display: block; font-size: 12px; color: var(--muted); }
.fc-top .run { margin-left: auto; }
.fc-body { padding: 14px 18px 18px; position: relative; }
.fc-rail { position: absolute; left: 41px; top: 30px; bottom: 76px; width: 2px; background: #ebe8f7; }
.fc-rail i { position: absolute; left: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 5px rgba(91,69,224,.18); top: 0; transition: top .6s cubic-bezier(.2,.8,.2,1); }
.fc-step { position: relative; display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; padding: 10px 8px; border-radius: 14px; transition: background .3s; }
.fc-step .ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: #f3f2fa; color: var(--muted); position: relative; z-index: 1; transition: background .3s, color .3s, transform .3s; }
.fc-step .ico .cn-logo { width: 30px; height: 30px; border: 0; box-shadow: none; background: transparent; }
.fc-step b { display: block; font-size: 14.5px; }
.fc-step small { display: block; font-size: 12.5px; color: var(--muted); }
.fc-step .state { font-size: 11.5px; font-weight: 800; color: #b0b3c8; display: inline-flex; align-items: center; gap: 5px; }
.fc-step.on { background: #f4f1ff; }
.fc-step.on .ico { background: var(--brand); color: #fff; transform: scale(1.06); }
.fc-step.on .state { color: var(--brand); }
.fc-step.done .ico { background: var(--live-50); color: var(--live); }
.fc-step.done .state { color: var(--live); }
.fc-result { margin: 8px 8px 0; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(120deg, #e3f7ef, #f1edff); font-size: 13.5px; font-weight: 700; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; }
.fc-result.show { opacity: 1; transform: none; }
.fc-result .cn-logo { width: 30px; height: 30px; box-shadow: none; border: 0; }
.fc-result em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--live); font-weight: 800; }
.fc-chip { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 18px 40px rgba(0,0,0,.3); font-size: 12.5px; font-weight: 700; animation: cn-bob 6s ease-in-out infinite; }
.fc-chip .cn-logo { width: 28px; height: 28px; box-shadow: none; }
.fc-chip.c1 { left: -38px; top: 70px; }
.fc-chip.c2 { right: -30px; top: 210px; animation-delay: -2s; }
.fc-chip.c3 { left: -24px; bottom: 40px; animation-delay: -4s; }
.fc-glow { position: absolute; inset: 10% -6% -6% 10%; z-index: 1; border-radius: 40px; background: linear-gradient(135deg, #8a6cff, #ff9a6b); filter: blur(60px); opacity: .45; }

/* connector rows marquee (Celigo-style chips) */
.mrows { margin-top: 70px; padding: 30px 0 40px; border-top: 1px solid rgba(255,255,255,.08); }
.mrows p { text-align: center; font-size: 12.5px; letter-spacing: .14em; font-weight: 800; color: #9d9ad0; margin-bottom: 18px; }
.mrow { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.mrow + .mrow { margin-top: 12px; }
.mrow-track { display: flex; gap: 12px; width: max-content; animation: cn-scroll 60s linear infinite; }
.mrow.rev .mrow-track { animation-direction: reverse; animation-duration: 70s; }
.mrow:hover .mrow-track { animation-play-state: paused; }
.mchip { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 9px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: #ecebff; font-size: 14px; font-weight: 700; white-space: nowrap; }
.mchip .cn-logo { width: 30px; height: 30px; border-radius: 9px; border: 0; box-shadow: none; }
.mchip .cn-st { padding: 2px 7px; font-size: 9.5px; }
.mchip .pair { display: flex; }
.mchip .pair .cn-logo + .cn-logo { margin-left: -8px; box-shadow: 0 0 0 2px #1a1c4a; }

/* ---------- Pillars ---------- */
.pl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pl-card { border-radius: 24px; padding: 30px; position: relative; overflow: hidden; }
.pl-card:nth-child(1) { background: var(--lilac-p); }
.pl-card:nth-child(2) { background: var(--mint-p); }
.pl-card:nth-child(3) { background: var(--peach-p); }
.pl-card .tag { font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--muted); }
.pl-card h3 { margin-top: 10px; font-size: 21px; letter-spacing: -.02em; }
.pl-card h3 span { display: block; color: #9a98b8; font-weight: 700; }
.pl-card p { margin-top: 12px; color: var(--ink-soft); font-size: 15px; }
.pl-art { margin-top: 22px; height: 120px; border-radius: 16px; background: rgba(255,255,255,.7); display: grid; place-items: center; position: relative; overflow: hidden; }
.pl-art .row { display: flex; align-items: center; gap: 8px; }
.pl-art .cn-logo { width: 38px; height: 38px; }
.pl-art .ln { width: 30px; height: 2px; background: repeating-linear-gradient(90deg, var(--brand) 0 5px, transparent 5px 10px); animation: cn-dashx 1s linear infinite; }
@keyframes cn-dashx { to { background-position: 10px 0; } }
.pl-art .bars { display: grid; gap: 7px; width: 72%; }
.pl-art .bars div { height: 10px; border-radius: 6px; background: #e3e0f5; position: relative; overflow: hidden; }
.pl-art .bars div::after { content: ''; position: absolute; inset: 0; width: var(--w); background: linear-gradient(90deg, #10a874, #34d399); border-radius: 6px; animation: cn-grow 2.4s ease-in-out infinite alternate; transform-origin: left; }
@keyframes cn-grow { from { transform: scaleX(.3); } to { transform: scaleX(1); } }
.pl-art .alerts { display: grid; gap: 7px; width: 78%; font-size: 12px; font-weight: 700; }
.pl-art .alerts div { display: flex; align-items: center; gap: 8px; background: #fff; padding: 6px 10px; border-radius: 9px; box-shadow: var(--shadow-sm); }
.pl-art .alerts i { width: 8px; height: 8px; border-radius: 50%; background: var(--live); }
.pl-art .alerts div:nth-child(2) i { background: var(--next); animation: cn-blink 1.2s infinite; }
@keyframes cn-blink { 50% { opacity: .2; } }

/* ---------- Story stage (scroll-driven explainer) ---------- */
.sx-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.sx-chapters { display: grid; gap: 0; }
.sx-ch { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding: 30px 0; opacity: .35; transition: opacity .4s; }
.sx-ch.is-active { opacity: 1; }
.sx-ch .num { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; color: var(--brand); }
.sx-ch .num i { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--brand); color: #fff; font-style: normal; font-size: 12px; }
.sx-ch h3 { margin-top: 12px; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.025em; line-height: 1.15; }
.sx-ch p { margin-top: 10px; color: var(--muted); font-size: 16.5px; max-width: 480px; }
.sx-ch ul { margin-top: 16px; display: grid; gap: 8px; }
.sx-ch li { display: flex; gap: 9px; font-size: 15px; color: var(--ink-soft); }
.sx-ch li .ic { color: var(--live); flex: none; margin-top: 3px; }
.sx-ch .dir { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 12.5px; font-weight: 800; }
.sx-ch .dir .cn-logo { width: 22px; height: 22px; box-shadow: none; border: 0; }
.sx-sticky { position: sticky; top: 100px; }

.sx-stage { position: relative; border-radius: 28px; padding: 18px; background: linear-gradient(155deg, #11142b, #232766 60%, #3b2aa8); box-shadow: 0 40px 90px rgba(17,20,43,.35); color: var(--ink); overflow: hidden; }
.sx-stage::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 20px 20px; }
.sx-stage > * { position: relative; }
.sx-heads { display: grid; grid-template-columns: 1fr 96px 1fr; align-items: center; margin-bottom: 14px; color: #fff; }
.sx-heads .h { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 14.5px; }
.sx-heads .h.r { justify-content: flex-end; }
.sx-heads .h .cn-logo { width: 34px; height: 34px; border: 0; }
.sx-heads .core { justify-self: center; width: 46px; height: 46px; border-radius: 14px; background: var(--grad); display: grid; place-items: center; color: #fff; box-shadow: 0 0 0 6px rgba(139,108,255,.2), 0 0 30px rgba(139,108,255,.6); }
.sx-heads .core .brand-mark { width: 24px; height: 24px; }
.sx-body { display: grid; grid-template-columns: 1fr 96px 1fr; align-items: stretch; min-height: 330px; }
.sx-screen { background: #fff; border-radius: 18px; padding: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.3); overflow: hidden; }
.sx-screen .ttl { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--muted); padding-bottom: 10px; border-bottom: 1px solid #f0f0f6; margin-bottom: 10px; text-transform: uppercase; }
.sx-rail { position: relative; display: grid; place-items: center; }
.sx-rail::before { content: ''; position: absolute; left: 6px; right: 6px; top: 50%; height: 2px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 6px, transparent 6px 12px); }
.sx-packet { position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border-radius: 10px; background: var(--peach); color: #2a1408; font-size: 11px; font-weight: 800; white-space: nowrap; box-shadow: 0 10px 24px rgba(255,154,107,.5); opacity: 0; }
.sx-stage.dir-r .sx-packet { animation: sx-r 2.2s cubic-bezier(.5,0,.3,1) infinite; }
.sx-stage.dir-l .sx-packet { animation: sx-l 2.2s cubic-bezier(.5,0,.3,1) infinite; background: #7ef0c3; color: #063b29; box-shadow: 0 10px 24px rgba(126,240,195,.45); }
.sx-stage.dir-n .sx-packet { display: none; }
@keyframes sx-r { 0% { left: 0%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes sx-l { 0% { left: 100%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: 0%; opacity: 0; } }
.sx-cap { margin-top: 14px; display: flex; align-items: center; gap: 10px; color: #e6e4ff; font-size: 13.5px; font-weight: 700; }
.sx-cap .dots { margin-left: auto; display: flex; gap: 5px; }
.sx-cap .dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.25); transition: background .3s, width .3s; }
.sx-cap .dots i.on { background: var(--peach); width: 20px; border-radius: 4px; }
.sx-cap .lbl { display: inline-flex; align-items: center; gap: 8px; }
.sx-cap .lbl b { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: rgba(255,255,255,.12); font-size: 11.5px; }

/* scene visibility */
.sx-c { display: none; }
.sx-stage[data-scene="1"] [data-s~="1"], .sx-stage[data-scene="2"] [data-s~="2"], .sx-stage[data-scene="3"] [data-s~="3"],
.sx-stage[data-scene="4"] [data-s~="4"], .sx-stage[data-scene="5"] [data-s~="5"], .sx-stage[data-scene="6"] [data-s~="6"],
.sx-stage[data-scene="7"] [data-s~="7"], .sx-stage[data-scene="8"] [data-s~="8"] { display: block; animation: sx-in .5s cubic-bezier(.2,.8,.2,1) both; }
@keyframes sx-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.sx-stage .late { animation: sx-in .5s 1.2s cubic-bezier(.2,.8,.2,1) both !important; }
.sx-stage .later { animation: sx-in .5s 2s cubic-bezier(.2,.8,.2,1) both !important; }

/* scene atoms */
.sx-prod { display: grid; grid-template-columns: 54px 1fr; gap: 10px; align-items: center; }
.sx-prod .img { width: 54px; height: 54px; border-radius: 12px; background: linear-gradient(135deg, #e9e5ff, #c9bfff); display: grid; place-items: center; color: var(--brand); }
.sx-prod b { display: block; font-size: 13.5px; }
.sx-prod small { display: block; font-size: 12px; color: var(--muted); }
.sx-price { font-weight: 800; font-size: 15px; }
.sx-price s { color: #b0b3c8; font-weight: 600; font-size: 12.5px; margin-right: 6px; }
.sx-btn { margin-top: 12px; display: block; text-align: center; padding: 9px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 800; animation: sx-press 2.2s infinite; }
@keyframes sx-press { 0%, 40% { transform: none; } 48% { transform: scale(.95); background: var(--brand); } 60%, 100% { transform: none; } }
.sx-ok { margin-top: 10px; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--live-50); color: #0b8a5f; font-size: 12.5px; font-weight: 800; }
.sx-ok .ic { flex: none; }
.sx-wait { display: grid; place-items: center; gap: 8px; height: 220px; color: #b0b3c8; font-size: 12.5px; font-weight: 700; text-align: center; }
.sx-wait .dots3 { display: flex; gap: 6px; }
.sx-wait .dots3 i { width: 8px; height: 8px; border-radius: 50%; background: #d5d3e8; animation: cn-blink 1.2s infinite; }
.sx-wait .dots3 i:nth-child(2) { animation-delay: .2s; } .sx-wait .dots3 i:nth-child(3) { animation-delay: .4s; }
.sx-kv { display: grid; gap: 6px; }
.sx-kv div { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; padding: 7px 9px; border-radius: 9px; background: #f6f7fb; }
.sx-kv div span { color: var(--muted); }
.sx-kv div b { font-weight: 800; text-align: right; }
.sx-kv.map div { animation: sx-hl 4.8s infinite; }
.sx-kv.map div:nth-child(2) { animation-delay: .8s; } .sx-kv.map div:nth-child(3) { animation-delay: 1.6s; } .sx-kv.map div:nth-child(4) { animation-delay: 2.4s; } .sx-kv.map div:nth-child(5) { animation-delay: 3.2s; }
@keyframes sx-hl { 0%, 100% { background: #f6f7fb; box-shadow: none; } 8%, 16% { background: #efeaff; box-shadow: inset 3px 0 0 var(--brand); } 24% { background: #f6f7fb; box-shadow: none; } }
.sx-rules { display: grid; gap: 7px; }
.sx-rules div { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; padding: 7px 9px; border-radius: 9px; background: #f6f7fb; opacity: 0; animation: sx-in .4s both; }
.sx-rules div:nth-child(1) { animation-delay: .2s; } .sx-rules div:nth-child(2) { animation-delay: .6s; } .sx-rules div:nth-child(3) { animation-delay: 1s; } .sx-rules div:nth-child(4) { animation-delay: 1.4s; }
.sx-rules .ok { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--live-50); color: var(--live); flex: none; }
.sx-rules .ok.w { background: var(--next-50); color: var(--next); }
.sx-rules .ok .ic { width: 12px; height: 12px; }
.sx-big { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.sx-big small { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.sx-loc { display: grid; gap: 8px; margin-top: 12px; }
.sx-loc div { font-size: 12px; font-weight: 700; display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; }
.sx-loc div i { grid-column: 1 / -1; height: 7px; border-radius: 5px; background: #eeeef6; overflow: hidden; position: relative; }
.sx-loc div i::after { content: ''; position: absolute; inset: 0; width: var(--w); border-radius: 5px; background: var(--grad); animation: cn-grow 1.4s cubic-bezier(.2,.8,.2,1) both; transform-origin: left; }
.sx-tag { display: inline-block; margin-top: 10px; font-size: 11.5px; font-weight: 800; padding: 4px 9px; border-radius: 8px; background: var(--brand-50); color: var(--brand-600); box-shadow: 0 0 0 2px rgba(91,69,224,.25); }
.sx-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 12px; }
.sx-track div { font-size: 10.5px; font-weight: 800; color: var(--muted); text-align: center; }
.sx-track div::before { content: ''; display: block; height: 6px; border-radius: 6px; background: #eeeef6; margin-bottom: 6px; }
.sx-track div.on::before { background: var(--live); animation: cn-grow .6s both; transform-origin: left; }
.sx-track div.on:nth-child(2)::before { animation-delay: .4s; } .sx-track div.on:nth-child(3)::before { animation-delay: .8s; }
.sx-truck { margin-top: 14px; position: relative; height: 34px; border-bottom: 2px dashed #e2e0f0; }
.sx-truck span { position: absolute; bottom: 2px; left: 0; color: var(--brand); animation: sx-drive 3s linear infinite; }
@keyframes sx-drive { from { left: 0; } to { left: calc(100% - 24px); } }
.sx-money { display: flex; align-items: baseline; gap: 6px; }
.sx-money b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.sx-money span { font-size: 12px; font-weight: 700; color: var(--muted); }

/* ---------- Marketplace ---------- */
.mp-tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 26px; }
.mp-tab { padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 14px; color: var(--ink-soft); cursor: pointer; transition: .2s; }
.mp-tab:hover { border-color: var(--brand-400); }
.mp-tab[aria-selected='true'] { background: var(--ink); border-color: var(--ink); color: #fff; }
.mp-tab .c { opacity: .55; margin-left: 5px; font-weight: 600; }
.mp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.mp-app { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: #fff; box-shadow: 0 6px 18px rgba(17,20,43,.05); transition: transform .2s, box-shadow .2s; color: inherit; animation: sx-in .4s both; }
.mp-app:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(17,20,43,.1); }
.mp-app .cn-logo { width: 42px; height: 42px; box-shadow: none; }
.mp-app b { display: block; font-size: 14.5px; line-height: 1.25; }
.mp-app small { display: block; font-size: 12px; color: var(--muted); }
.mp-app .cn-st { margin-top: 5px; padding: 2px 7px; font-size: 9.5px; }
.mp-app.s-live { box-shadow: 0 0 0 1.5px #34d399, 0 10px 26px rgba(16,168,116,.15); }
.mp-app.s-next { box-shadow: 0 0 0 1.5px #ffb547, 0 10px 26px rgba(255,153,0,.13); }
.mp-search { display: flex; gap: 10px; max-width: 560px; margin: 30px auto 0; }
.mp-search input { flex: 1; height: 52px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--line); background: #fff; font-size: 15px; }
.mp-search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); }

/* ---------- Flow templates ---------- */
.tp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tp { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 20px; background: #fff; box-shadow: 0 8px 24px rgba(17,20,43,.06); transition: transform .2s, box-shadow .2s; color: inherit; position: relative; overflow: hidden; }
.tp:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(17,20,43,.12); }
.tp[hidden] { display: none; }
.tp .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tp .pair { display: flex; align-items: center; gap: 8px; }
.tp .pair .ar { width: 34px; height: 2px; position: relative; background: #e6e3f5; overflow: hidden; border-radius: 2px; }
.tp .pair .ar::after { content: ''; position: absolute; inset: 0; width: 45%; background: linear-gradient(90deg, transparent, var(--brand), transparent); animation: cn-wire 1.6s linear infinite; }
.tp.s-soon .pair .ar::after, .tp.s-planned .pair .ar::after { animation-duration: 3s; opacity: .5; }
.tp h3 { font-size: 16.5px; }
.tp p { font-size: 14px; color: var(--muted); line-height: 1.5; }
.tp .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 800; color: #9a98b8; text-transform: uppercase; letter-spacing: .05em; }
.tp .foot span:last-child { color: var(--brand); text-transform: none; letter-spacing: 0; font-size: 13.5px; display: inline-flex; gap: 4px; align-items: center; }
.tp.s-live { box-shadow: 0 0 0 1.5px #34d399, 0 14px 34px rgba(16,168,116,.16); }
.tp.s-next { box-shadow: 0 0 0 1.5px #ffb547, 0 14px 34px rgba(255,153,0,.14); }
.tp.s-planned { box-shadow: 0 0 0 1.5px #8fb0f2, 0 14px 34px rgba(59,111,224,.12); }
.cn-st.s-planned { color: #2f5bc4; background: var(--plan-50); }

/* ---------- Use cases ---------- */
.uc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.uc { border-radius: 22px; padding: 24px; position: relative; overflow: hidden; transition: transform .25s; }
.uc:hover { transform: translateY(-4px); }
.uc:nth-child(8n+1) { background: var(--lilac-p); } .uc:nth-child(8n+2) { background: var(--mint-p); } .uc:nth-child(8n+3) { background: var(--peach-p); } .uc:nth-child(8n+4) { background: var(--sky-p); }
.uc:nth-child(8n+5) { background: var(--rose-p); } .uc:nth-child(8n+6) { background: var(--sun-p); } .uc:nth-child(8n+7) { background: var(--mint-p); } .uc:nth-child(8n+8) { background: var(--lilac-p); }
.uc .icon-tile { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.uc h3 { margin-top: 16px; font-size: 17.5px; }
.uc p { margin-top: 6px; font-size: 14px; color: var(--ink-soft); }
.uc .logos { margin-top: 16px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.uc .logos .cn-logo { width: 28px; height: 28px; border-radius: 8px; box-shadow: none; border: 0; }
.uc .logos .cn-st { margin-left: auto; padding: 2px 7px; font-size: 9.5px; }

/* ---------- Monitoring mock ---------- */
.mon-wrap { display: grid; grid-template-columns: .95fr 1.05fr; gap: 48px; align-items: center; }
.mon-list { display: grid; gap: 14px; margin-top: 24px; }
.mon-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.mon-list .icon-tile { width: 44px; height: 44px; border-radius: 12px; color: #fff; border: 0; }
.mon-list li:nth-child(1) .icon-tile { background: linear-gradient(135deg, #5b45e0, #8a6cff); }
.mon-list li:nth-child(2) .icon-tile { background: linear-gradient(135deg, #0f9a6c, #34d399); }
.mon-list li:nth-child(3) .icon-tile { background: linear-gradient(135deg, #ff8a00, #ffb547); }
.mon-list li:nth-child(4) .icon-tile { background: linear-gradient(135deg, #2f5bc4, #60a5fa); }
.mon-list b { display: block; font-size: 16px; color: #fff; }
.mon-list span { display: block; font-size: 14.5px; color: var(--night-text); }
.mon { border-radius: 24px; background: #fff; color: var(--ink); box-shadow: 0 40px 90px rgba(0,0,0,.4); overflow: hidden; }
.mon-top { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid #efeff6; font-weight: 800; font-size: 14px; }
.mon-top .cn-st { margin-left: auto; }
.mon-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px 18px 6px; }
.mon-kpis div { background: #f6f7fb; border-radius: 14px; padding: 12px; }
.mon-kpis small { display: block; font-size: 11px; font-weight: 800; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.mon-kpis b { font-size: 22px; letter-spacing: -.02em; }
.mon-kpis b.g { color: var(--live); } .mon-kpis b.y { color: var(--next); }
.mon-rows { padding: 8px 18px 18px; }
.mon-row { display: grid; grid-template-columns: 26px 1fr auto auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid #f2f2f8; font-size: 13px; }
.mon-row:last-child { border-bottom: 0; }
.mon-row .cn-logo { width: 26px; height: 26px; box-shadow: none; border: 0; }
.mon-row b { font-weight: 700; }
.mon-row small { display: block; font-size: 11.5px; color: var(--muted); }
.mon-row .t { font-size: 11.5px; color: var(--muted); }
.mon-row.new { animation: mon-new 1s both; }
@keyframes mon-new { from { background: #f1edff; } to { background: transparent; } }
.mon-row .act { font-size: 11.5px; font-weight: 800; color: var(--brand); border: 1px solid var(--brand-50); background: var(--brand-25); padding: 3px 8px; border-radius: 8px; }

/* ---------- misc ---------- */
.cn-head .eyebrow { background: #fff; box-shadow: var(--shadow-sm); }
.sec-cream { background: var(--cream); }

@media (max-width: 1100px) {
  .h6-grid, .sx-wrap, .mon-wrap { grid-template-columns: 1fr; }
  .h6-copy { text-align: center; max-width: 720px; margin: 0 auto; }
  .h6 .lead { margin-left: auto; margin-right: auto; }
  .h6 .cn-actions { justify-content: center; }
  .fc { max-width: 560px; margin: 0 auto; width: 100%; }
  .fc-chip.c1, .fc-chip.c3 { left: -8px; } .fc-chip.c2 { right: -8px; }
  .pl, .tp-grid { grid-template-columns: 1fr 1fr; }
  .uc-grid { grid-template-columns: 1fr 1fr; }
  .sx-sticky { top: 76px; z-index: 5; }
  .sx-ch { min-height: 48vh; }
}
@media (max-width: 700px) {
  .pl, .tp-grid, .uc-grid { grid-template-columns: 1fr; }
  .sx-body, .sx-heads { grid-template-columns: 1fr 54px 1fr; }
  .sx-screen { padding: 10px; }
  .sx-body { min-height: 260px; }
  .sx-packet { font-size: 0; padding: 6px; }
  .sx-packet .ic { width: 12px; height: 12px; }
  .sx-heads .h span { display: none; }
  .fc-chip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mrow-track, .fc-chip, .sx-packet, .sx-btn, .sx-truck span, .h6-copy > *, .fc { animation: none !important; }
}

/* ---------- v6 joins ---------- */
:root {
  --night: #11142b;
  --hero-grad: radial-gradient(800px 500px at 85% 0%, rgba(139,108,255,.45), transparent 60%),
               radial-gradient(700px 500px at 0% 100%, rgba(255,154,107,.22), transparent 60%),
               linear-gradient(180deg, #11142b, #1a1c4a);
}
.dark-hero .cn-header:not(.scrolled) { background: #11142b; }
.mp-app[hidden], .tp[hidden] { display: none; }
.cn-mega6 { grid-template-columns: 270px minmax(0,1fr) 240px; width: min(980px, calc(100vw - 40px)); }
.cn-cat2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.cn-mega6 .cn-mi { white-space: normal; }
.cn-mega6 .cn-mi .ic { color: var(--brand); flex: none; }
.cat-h { font-size: 22px; letter-spacing: -.02em; margin: 34px 0 16px; }
.cat-h span { font-size: 14px; color: var(--muted); font-weight: 700; margin-left: 6px; }
.cn-dir-tools + .cat-h { margin-top: 10px; }
.cn-footer li a { flex-wrap: wrap; }

/* standalone stage on the homepage */
.sx-solo { max-width: 860px; margin: 0 auto; }
.sx-tabs .mp-tab { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); color: #d9d7f5; font-size: 13px; padding: 8px 13px; }
.sx-tabs .mp-tab:hover { border-color: rgba(255,255,255,.4); }
.sx-tabs .mp-tab[aria-selected='true'] { background: var(--peach); border-color: var(--peach); color: #2a1408; }
.sx-cap .dots i { cursor: pointer; }
.sx-screen { position: relative; }
.sx-sticky .sx-body { min-height: 360px; }
.sx-solo .sx-body { min-height: 340px; }

/* small screens: stack the two systems, plain text chapters */
@media (max-width: 1100px) {
  .sx-sticky { position: static; order: -1; }
  .sx-ch { min-height: 0; opacity: 1; padding: 22px 0; border-bottom: 1px solid var(--line); }
  .sx-ch.is-active h3 { color: var(--brand); }
}
@media (max-width: 700px) {
  .sx-body { grid-template-columns: 1fr !important; }
  .sx-heads { display: none; }
  .sx-rail { height: 46px; }
  .sx-packet { font-size: 11px; padding: 6px 9px; }
  .sx-screen { min-height: 215px; padding: 12px; }
  .cn-cat2 { grid-template-columns: 1fr; }
  .sx-tabs { display: none; }
}

/* ---------- Shopify to any ERP hub ---------- */
.eh-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.eh { position: relative; width: min(100%, 540px); aspect-ratio: 1; margin: 0 auto; }
.eh-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.eh-lines line { stroke-width: 1.5; }
.eh-lines line.soon { stroke: #cfc8f0; stroke-dasharray: 4 6; animation: cn-dash 1.6s linear infinite; }
.eh-lines line.live { stroke: #10a874; stroke-width: 3; }
.eh-ring { position: absolute; inset: 10%; border-radius: 50%; border: 1.5px dashed #d9d3f5; animation: cn-rot 80s linear infinite; }
.eh-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 2; }
.eh-core .cn-logo { width: 96px; height: 96px; border-radius: 28px; border: 0; box-shadow: 0 0 0 10px rgba(94,142,62,.12), 0 24px 50px rgba(17,20,43,.18); }
.eh-core::before { content: ''; position: absolute; left: 50%; top: 48px; width: 96px; height: 96px; transform: translate(-50%, -50%); border-radius: 28px; border: 2px solid rgba(94,142,62,.45); animation: cn-ripple 2.6s ease-out infinite; }
.eh-core b { font-size: 15px; }
.eh-node { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 5px; z-index: 2; animation: sx-in .5s both; animation-delay: var(--d); }
.eh-node .cn-logo { width: 52px; height: 52px; border-radius: 15px; border: 0; box-shadow: 0 12px 28px rgba(17,20,43,.12); }
.eh-node small { font-size: 11.5px; font-weight: 700; color: var(--ink-soft); background: #fff; padding: 2px 8px; border-radius: 999px; box-shadow: var(--shadow-sm); white-space: nowrap; }
.eh-node.s-soon .cn-logo { opacity: .8; }
.eh-node.s-soon .cn-logo::after { content: ''; position: absolute; right: -3px; top: -3px; width: 12px; height: 12px; border-radius: 50%; background: #c3c8dc; border: 2px solid #fff; }
.eh-node .cn-logo { position: relative; }
.eh-node.s-live .cn-logo { box-shadow: 0 0 0 4px rgba(16,168,116,.25), 0 14px 30px rgba(16,168,116,.3); }
.eh-node.s-live small { background: var(--live); color: #fff; }
.eh-copy .eyebrow { color: var(--brand); display: inline-flex; padding: 6px 12px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm); }
.eh-copy h2 { margin-top: 14px; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -.03em; }
.eh-copy h2 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eh-copy > p { margin-top: 14px; color: var(--muted); font-size: 17px; }
.eh-list { margin-top: 22px; display: grid; gap: 10px; }
.eh-list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #fff; box-shadow: 0 6px 18px rgba(17,20,43,.05); }
.eh-list .cn-logo { width: 38px; height: 38px; box-shadow: none; }
.eh-list b { display: block; font-size: 14.5px; }
.eh-list small { display: block; font-size: 12.5px; color: var(--muted); }
.eh-list .cn-st { margin-left: auto; }
.eh-list li:first-child { box-shadow: 0 0 0 1.5px #34d399, 0 10px 26px rgba(16,168,116,.14); }
@media (max-width: 1100px) { .eh-wrap { grid-template-columns: 1fr; } .eh-copy { text-align: center; } .eh-copy .cn-actions { justify-content: center; } .eh-list { text-align: left; } }
@media (max-width: 600px) {
  .eh-node .cn-logo { width: 38px; height: 38px; border-radius: 11px; }
  .eh-node small { display: none; }
  .eh-node.s-live small { display: block; }
  .eh-core .cn-logo { width: 70px; height: 70px; border-radius: 20px; }
  .eh-core::before { width: 70px; height: 70px; top: 35px; border-radius: 20px; }
}
/* phone: stacked systems, so the packet travels down instead of across */
@media (max-width: 700px) {
  .sx-rail::before { left: 50%; right: auto; top: 4px; bottom: 4px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, rgba(255,255,255,.35) 0 6px, transparent 6px 12px); }
  .sx-packet { left: 50% !important; }
  .sx-stage.dir-r .sx-packet { animation-name: sx-d; }
  .sx-stage.dir-l .sx-packet { animation-name: sx-u; }
  .sx-rail { height: 64px; }
}
@keyframes sx-d { 0% { top: 0%; opacity: 0; } 15%, 85% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@keyframes sx-u { 0% { top: 100%; opacity: 0; } 15%, 85% { opacity: 1; } 100% { top: 0%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .eh-ring, .eh-lines line.soon, .eh-core::before { animation: none; } }
.cn-nav > a, .cn-nav > .cn-dd > button { white-space: nowrap; }
@media (max-width: 1280px) { .cn-header-inner { gap: 16px; } .cn-nav > a, .cn-nav > .cn-dd > button { padding: 9px 10px; font-size: 14px; } }
@media (max-width: 1200px) { .cn-nav, .cn-header-cta { display: none; } .cn-burger { display: grid; } .cn-mobile:not([hidden]) { display: block !important; } }
