/* Homepage hero: copy on the left, a layered set of live product cards on the right.
   Everything inside .stage is sized in container units (cqw), so the whole
   composition scales as one picture at any screen width. */

.hero2 { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 7vw, 104px); isolation: isolate; }
.hero2-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42% 52% at 78% 34%, rgba(108, 99, 255, .20), transparent 70%),
    radial-gradient(30% 40% at 96% 8%, rgba(92, 170, 255, .20), transparent 70%),
    radial-gradient(36% 40% at 4% 0%, rgba(139, 133, 255, .12), transparent 70%),
    linear-gradient(#FBFBFF, #FFFFFF 70%); }
.hero2-bg::after { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(55, 48, 200, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(55, 48, 200, .07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask: radial-gradient(60% 70% at 70% 40%, #000 0%, transparent 75%); mask: radial-gradient(60% 70% at 70% 40%, #000 0%, transparent 75%); }

.hero2-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
@media (max-width: 1000px) { .hero2-grid { grid-template-columns: 1fr; } }

/* Copy */
.hero-pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 8px 7px 14px; border-radius: 99px; background: rgba(255,255,255,.8); border: 1px solid rgba(55,48,200,.16); box-shadow: 0 6px 18px -10px rgba(55,48,200,.35); font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; margin-bottom: 28px; transition: border-color .25s, box-shadow .25s; }
.hero-pill:hover { border-color: rgba(55,48,200,.4); box-shadow: 0 10px 24px -12px rgba(55,48,200,.5); }
.hero-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #1FA463; box-shadow: 0 0 0 0 rgba(31,164,99,.5); animation: pdot 2s infinite; }
.hero-pill .go { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; transition: transform .3s var(--ease); }
.hero-pill:hover .go { transform: translateX(2px); }
.hero-pill .go svg { width: 12px; height: 12px; }
@keyframes pdot { 70% { box-shadow: 0 0 0 8px rgba(31,164,99,0); } 100% { box-shadow: 0 0 0 0 rgba(31,164,99,0); } }

.hero2 h1 { font-size: clamp(44px, 5.7vw, 84px); line-height: .98; letter-spacing: -.05em; color: var(--ink); }
.hero2 h1 .ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.04em; }
.hero2 h1 .ln > span { display: inline-block; }
.hero2 h1 .grad { background: linear-gradient(92deg, #3730C8 0%, #5B4FF0 45%, #3B82F6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.js .hero2 h1 .ln > span { transform: translateY(108%); transition: transform 1.1s var(--ease); }
.js .hero2 h1 .ln:nth-child(2) > span { transition-delay: .08s; }
.js .hero2 h1 .ln:nth-child(3) > span { transition-delay: .16s; }
.js .hero2 h1 .ln:nth-child(4) > span { transition-delay: .24s; }
.js.loaded .hero2 h1 .ln > span { transform: none; }
.hero2 .lead { margin: 28px 0 36px; max-width: 46ch; }
.hero2 .btn { border-radius: 10px; }
.hero2 .btn:not(.btn--ghost) { box-shadow: 0 12px 24px -12px rgba(55,48,200,.7); }
.hero2 .btn--ghost { background: rgba(255,255,255,.7); border-color: rgba(55,48,200,.3); }
.hero-checks { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 36px; font-size: 14px; font-weight: 600; color: var(--ink); }
.hero-checks li { display: flex; align-items: center; gap: 8px; }
.hero-checks svg { width: 18px; height: 18px; color: var(--brand); flex: none; }

/* Stage */
.stage-wrap { container-type: inline-size; position: relative; }
.stage { position: relative; width: 100%; aspect-ratio: 1 / 1.02; font-size: 2.15cqw; line-height: 1.35; color: var(--ink); }
.layer { position: absolute; will-change: transform; transform: translate3d(var(--px, 0px), var(--py, 0px), 0); }
.js .layer > * { opacity: 0; transform: translateY(4cqw) scale(.96); }
.js.loaded .layer > * { animation: cardIn 1s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes cardIn { to { opacity: 1; transform: none; } }

.panel { inset: 8% 0 2% 9%; }
.panel > div { position: absolute; inset: 0; border-radius: 4.5cqw; overflow: hidden;
  background:
    radial-gradient(60% 55% at 22% 18%, rgba(255,255,255,.9), transparent 70%),
    radial-gradient(70% 70% at 100% 100%, #2A22A8, transparent 70%),
    linear-gradient(140deg, #F2F3FF 0%, #C8C4FF 34%, #7D74FF 66%, #3730C8 100%);
  box-shadow: 0 4cqw 9cqw -4cqw rgba(38, 32, 147, .45), inset 0 0 0 1px rgba(255,255,255,.35); }
.panel > div::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px); background-size: 6cqw 6cqw; -webkit-mask: linear-gradient(160deg, transparent 20%, #000 80%); mask: linear-gradient(160deg, transparent 20%, #000 80%); }
.spark { position: absolute; width: 2.4cqw; height: 2.4cqw; background: #fff; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); opacity: .7; animation: twinkle 3.6s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .15; transform: scale(.6); } 50% { opacity: .9; transform: scale(1); } }

.hcard { position: relative; background: rgba(255,255,255,.96); border-radius: 2.6cqw; border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 .3cqw .8cqw rgba(30, 27, 110, .06), 0 3cqw 6cqw -2.4cqw rgba(30, 27, 110, .35), inset 0 1px 0 #fff;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hcard small { display: block; color: #6B6B78; font-size: .82em; }
.hcard b { font-weight: 600; }

/* Dashboard window */
.l-dash { left: 15%; top: 19%; width: 77%; }
.win { overflow: hidden; }
.win-bar { display: flex; align-items: center; gap: 2cqw; padding: 1.5cqw 2cqw; border-bottom: 1px solid #EEEEF3; background: linear-gradient(#FCFCFF, #F6F6FB); }
.win-bar .dots { display: flex; gap: .9cqw; }
.win-bar .dots i { width: 1.3cqw; height: 1.3cqw; border-radius: 50%; background: #DCDCE5; }
.win-bar .url { flex: 1; text-align: center; font-size: .78em; color: #8A8A96; background: #fff; border: 1px solid #ECECF2; border-radius: 99px; padding: .4cqw 0; margin: 0 4cqw; }
.live { display: inline-flex; align-items: center; gap: .9cqw; font-size: .78em; font-weight: 600; color: #1F8F57; }
.live i { width: 1.2cqw; height: 1.2cqw; border-radius: 50%; background: #1FA463; animation: pdot 1.8s infinite; }
.win-body { padding: 2.4cqw 2.6cqw 2.6cqw; }
.win-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2.2cqw; }
.win-head b { font-size: 1.15em; letter-spacing: -.01em; }
.seg { display: flex; background: #F2F2F7; border-radius: 1.4cqw; padding: .5cqw; font-size: .78em; font-weight: 600; color: #7A7A88; }
.seg span { padding: .5cqw 1.6cqw; border-radius: 1cqw; }
.seg .on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6cqw; margin-bottom: 2.2cqw; }
.kpis > div { border: 1px solid #EEEEF3; border-radius: 1.8cqw; padding: 1.6cqw 1.8cqw; }
.kpis strong { display: block; font-size: 1.75em; font-weight: 500; letter-spacing: -.04em; margin: .4cqw 0 .2cqw; font-variant-numeric: tabular-nums; transition: color .4s; }
.kpis strong.flash { color: var(--brand); }
.kpis em { font-style: normal; font-size: .76em; font-weight: 600; padding: .2cqw 1cqw; border-radius: 99px; }
.kpis em.up { color: #1F8F57; background: #E7F6EE; }
.kpis em.dn { color: #3730C8; background: #EEEDFB; }
.chart-box { border: 1px solid #EEEEF3; border-radius: 1.8cqw; padding: 1.6cqw 1.8cqw 1cqw; }
.chart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1cqw; }
.legend { display: inline-flex; align-items: center; gap: .8cqw; font-size: .76em; color: #6B6B78; }
.legend i { width: 2cqw; height: .5cqw; border-radius: 1cqw; background: var(--brand); }
.chart { position: relative; height: 16cqw; }
.chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }
.chart-dot { position: absolute; width: 1.8cqw; height: 1.8cqw; margin: -.9cqw 0 0 -.9cqw; border-radius: 50%; background: var(--brand); border: .45cqw solid #fff; box-shadow: 0 0 0 .5cqw rgba(55,48,200,.18), 0 .6cqw 1.4cqw rgba(55,48,200,.45); }
.chart-tip { position: absolute; transform: translate(-100%, -150%); margin-left: -1.4cqw; background: var(--ink); color: #fff; font-size: .72em; font-weight: 600; padding: .5cqw 1.2cqw; border-radius: 1cqw; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Notification toast */
.l-toast { left: 0; top: 4%; width: 52%; }
.toast { display: flex; align-items: center; gap: 1.8cqw; padding: 1.7cqw 2cqw; overflow: hidden; }
.t-ico { flex: none; width: 5cqw; height: 5cqw; border-radius: 1.6cqw; display: grid; place-items: center; color: #fff; background: var(--c, #1FA463); transition: background-color .4s; }
.t-ico svg { width: 2.6cqw; height: 2.6cqw; }
.t-text { flex: 1; min-width: 0; }
.t-text b, .t-text small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast time { align-self: flex-start; font-size: .72em; color: #8A8A96; }
.toast.swap .t-text, .toast.swap .t-ico { animation: tswap .7s var(--ease); }
@keyframes tswap { 0% { opacity: 0; transform: translateY(70%); } 100% { opacity: 1; transform: none; } }

/* Integration hub */
.l-hub { right: 0; top: 3%; width: 37%; }
.hub-card { padding: 1.8cqw 2cqw 1.4cqw; }
.hub-card .hc-head { display: flex; flex-wrap: wrap; gap: 0 1.4cqw; justify-content: space-between; align-items: center; font-size: .86em; }
.hub-card .sync { color: #1F8F57; font-weight: 600; font-size: .9em; }
.hub-card svg { width: 100%; height: auto; display: block; margin-top: .6cqw; }
.flow { stroke-dasharray: 3 6; animation: flow 1.2s linear infinite; }
.flow.rev { animation-direction: reverse; }
@keyframes flow { to { stroke-dashoffset: -18; } }
.hub-core { transform-box: fill-box; transform-origin: center; animation: core 2.4s ease-in-out infinite; }
@keyframes core { 50% { transform: scale(1.06); } }

/* Approval flow */
.l-appr { left: -1%; top: 68%; width: 43%; }
.appr { padding: 2.2cqw 2.4cqw; }
.appr-head { display: flex; align-items: center; gap: 1.6cqw; padding-bottom: 1.8cqw; border-bottom: 1px solid #EEEEF3; }
.appr-head .ico { flex: none; width: 4.6cqw; height: 4.6cqw; border-radius: 1.4cqw; background: #EEEDFB; color: var(--brand); display: grid; place-items: center; }
.appr-head .ico svg { width: 2.4cqw; height: 2.4cqw; }
.appr-head > div { flex: 1; min-width: 0; }
.appr-head strong { font-size: 1.1em; font-weight: 600; letter-spacing: -.02em; }
.appr-steps { margin: 1.4cqw 0; padding: 0; list-style: none; position: relative; }
.appr-steps::before { content: ""; position: absolute; left: 1.1cqw; top: 2cqw; bottom: 2cqw; width: 1.5px; background: #E6E6EE; }
.appr-steps li { position: relative; display: flex; align-items: center; gap: 1.6cqw; padding: .8cqw 0; font-size: .9em; color: #9A9AA6; transition: color .4s; }
.appr-steps li i { position: relative; z-index: 1; flex: none; width: 2.4cqw; height: 2.4cqw; border-radius: 50%; border: 1.5px solid #CFCFDA; background: #fff; display: grid; place-items: center; transition: background-color .35s, border-color .35s, transform .35s var(--ease); }
.appr-steps li i::after { content: ""; width: .7cqw; height: 1.2cqw; border: solid #fff; border-width: 0 .35cqw .35cqw 0; transform: rotate(45deg) translate(-.1cqw, -.15cqw) scale(0); transition: transform .35s var(--ease) .1s; }
.appr-steps li span { flex: 1; }
.appr-steps li time { font-size: .82em; opacity: 0; transition: opacity .4s; }
.appr-steps li.done { color: var(--ink); }
.appr-steps li.done i { background: #1FA463; border-color: #1FA463; transform: scale(1.08); }
.appr-steps li.done i::after { transform: rotate(45deg) translate(-.1cqw, -.15cqw) scale(1); }
.appr-steps li.done time { opacity: 1; }
.appr-steps li.now i { border-color: var(--brand); box-shadow: 0 0 0 .6cqw rgba(55,48,200,.15); }
.appr-foot { display: flex; justify-content: space-between; align-items: center; gap: 1cqw; padding-top: 1.6cqw; border-top: 1px solid #EEEEF3; }
.status { font-size: .8em; font-weight: 600; padding: .4cqw 1.4cqw; border-radius: 99px; color: #9A6200; background: #FDF3E1; transition: background-color .4s, color .4s; }
.status.ok { color: #1F8F57; background: #E7F6EE; }
.appr-foot small { font-size: .76em; }

/* Hours saved */
.l-saved { right: 2%; top: 80%; width: 36%; }
.saved { padding: 2cqw 2.2cqw; display: flex; align-items: flex-end; justify-content: space-between; gap: 1.6cqw; }
.saved strong { display: block; font-size: 2.2em; font-weight: 500; letter-spacing: -.05em; line-height: 1; margin-top: .6cqw; font-variant-numeric: tabular-nums; }
.saved strong em { font-style: normal; font-size: .45em; letter-spacing: 0; color: #6B6B78; margin-left: .4cqw; }
.bars { display: flex; align-items: flex-end; gap: .7cqw; height: 6.4cqw; }
.bars i { width: 1.3cqw; border-radius: .6cqw .6cqw .2cqw .2cqw; background: #DAD8FF; height: var(--h); transform-origin: bottom; transition: height .6s var(--ease); }
.bars i:last-child { background: linear-gradient(#5B4FF0, #3730C8); }
.js .bars i { transform: scaleY(0); }
.js.loaded .bars i { animation: barIn .8s var(--ease) forwards; animation-delay: calc(1.6s + var(--n) * 60ms); }
@keyframes barIn { to { transform: scaleY(1); } }

/* Cursor that "clicks" the approval */
.cursor { position: absolute; z-index: 5; width: 3.6cqw; height: 3.6cqw; pointer-events: none; transition: left .9s var(--ease), top .9s var(--ease), opacity .3s; filter: drop-shadow(0 .4cqw .6cqw rgba(0,0,0,.25)); opacity: 0; }
.cursor.show { opacity: 1; }
.cursor.tap svg { animation: tap .3s ease; }
@keyframes tap { 50% { transform: scale(.82); } }

@media (max-width: 1000px) { .stage-wrap { max-width: 640px; margin: 0 auto; width: 100%; } }
@media (max-width: 560px) { .stage { font-size: 2.6cqw; } .l-toast { width: 52%; top: 0; } .l-hub { top: 1%; } .l-hub { width: 46%; } .l-appr { width: 56%; top: 66%; } .l-saved { width: 42%; } .seg { display: none; } .win-bar .url { margin: 0 1cqw; } }

@media (prefers-reduced-motion: reduce) {
  .js .layer > *, .js .bars i { opacity: 1; transform: none; animation: none; }
  .flow, .hub-core, .spark, .live i, .hero-pill .dot { animation: none; }
}

/* ---------- Dark theme for the hero and the client strip below it ---------- */
.hero2 { background: #0B0B10; color: #fff; }
.hero2-bg { background:
    radial-gradient(42% 55% at 76% 38%, rgba(91,79,240,.42), transparent 70%),
    radial-gradient(28% 40% at 98% 4%, rgba(59,130,246,.30), transparent 70%),
    radial-gradient(34% 45% at 0% 0%, rgba(108,99,255,.20), transparent 70%),
    linear-gradient(180deg, #0B0B10, #0E0D18); }
.hero2-bg::after { background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); }
.hero2 h1 { color: #fff; }
.hero2 h1 .grad { background: linear-gradient(92deg, #A9A4FF 0%, #8B85FF 40%, #6FB7FF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero2 .lead { color: #B9B9CC; }
.hero-pill { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #fff; box-shadow: none; }
.hero-pill:hover { border-color: rgba(139,133,255,.6); box-shadow: 0 0 0 4px rgba(139,133,255,.12); }
.hero-pill .go { background: #fff; color: var(--brand); }
.hero2 .btn:not(.btn--ghost) { box-shadow: 0 14px 34px -12px rgba(91,79,240,.9); }
.hero2 .btn--ghost { background: rgba(255,255,255,.04); color: #fff; border-color: rgba(255,255,255,.28); }
.hero2 .btn--ghost::before { background: rgba(255,255,255,.1); }
.hero-checks { color: #D6D6E2; }
.hero-checks svg { color: #8B85FF; }
.panel > div { box-shadow: 0 4cqw 12cqw -4cqw rgba(91,79,240,.6), inset 0 0 0 1px rgba(255,255,255,.18);
  background:
    radial-gradient(60% 55% at 22% 18%, rgba(255,255,255,.35), transparent 70%),
    radial-gradient(70% 70% at 100% 100%, #241D96, transparent 70%),
    linear-gradient(140deg, #8E87FF 0%, #5B4FF0 45%, #3730C8 75%, #241D96 100%); }
.hcard { box-shadow: 0 .3cqw .8cqw rgba(0,0,0,.2), 0 3cqw 7cqw -2.4cqw rgba(0,0,0,.6), inset 0 1px 0 #fff; }

.clients { background: #0E0D18; border-top: 1px solid rgba(255,255,255,.07); border-bottom: 1px solid rgba(255,255,255,.04); }
.clients-head p { color: #fff; }
.clients-head small { color: #7E7E92; }
.logo-ph { color: #5E5E72; transition: color .3s; }
.logo-ph:hover { color: #B9B9CC; }
