/* =========================================================
   Ventra — Landing page
   Night warehouse: a scanned aisle, a live activity feed, a pinned
   phone story and a working dashboard preview.
   ========================================================= */

:root {
  --night: #040A18;
  --night-2: #071330;
  --panel: #0A1630;
  --line: rgba(130, 170, 255, .14);
  --blue: #0A57E0;
  --cyan: #08B8F8;
  --amber: #F5A524;
  --red: #F0506E;
  --green: #1FC48D;
  --paper: #F2F5FB;
  --ink: #0B1B3A;
  --text: #33425E;
  --muted: #5A6A88;
  --on-dark: rgba(226, 236, 255, .7);
  --grad: linear-gradient(135deg, #0A57E0, #08B8F8);
  --display: "Space Grotesk", "Geist", system-ui, sans-serif;
  --body: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.65, 0, .25, 1);
  --out: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Base ---------- */
html { scroll-padding-top: 90px; }
body {
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--night);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--blue); }
::selection { background: rgba(8, 184, 248, .35); color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.section { position: relative; padding: 110px 0; }
.night { background: var(--night); color: #E8EEFA; }
.paper { background: var(--paper); color: var(--text); }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.text-center { margin-left: auto; margin-right: auto; }
.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.75rem, 2.8vw, 2.45rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 1rem;
}
.night .section-title { color: #fff; }
.section-sub { font-size: 1.05rem; color: var(--muted); max-width: 620px; margin-bottom: 0; }
.section-sub.on-dark { color: var(--on-dark); }
.section-sub a { font-weight: 600; }

.grad, .stmt-answer .sr-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Signature motion: headings are "scanned" into view ---------- */
.scan-reveal { position: relative; }
.js .scan-reveal .sr-text { display: block; clip-path: inset(-12% 100% -12% 0); transition: clip-path 1s var(--ease); }
.js .scan-reveal.in .sr-text { clip-path: inset(-12% 0 -12% 0); }
.sr-line {
  position: absolute; top: -10%; bottom: -10%; left: 0; width: 2px;
  background: var(--cyan);
  box-shadow: 0 0 12px 2px rgba(8, 184, 248, .7), 0 0 40px 8px rgba(8, 184, 248, .25);
  opacity: 0; pointer-events: none;
}
.scan-reveal.in .sr-line { animation: srLine 1s var(--ease) forwards; }
@keyframes srLine {
  0% { left: 0; opacity: 1; }
  85% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: .95rem; border-radius: 999px; padding: .6rem 1.2rem;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, filter .2s ease, box-shadow .2s ease;
}
.btn-lg { font-size: 1rem; padding: .8rem 1.5rem; }
.btn-v {
  color: #fff; border: 0; background: var(--grad);
  box-shadow: 0 12px 30px -12px rgba(10, 87, 224, .9), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-v:hover, .btn-v:focus-visible { color: #fff; filter: brightness(1.08); transform: translateY(-1px); }
.btn-v:active, .btn-v.active { color: #fff; transform: none; }
.btn-ghost { color: #fff; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .18); }
.btn-ghost:hover, .btn-ghost:focus-visible { color: #fff; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .32); }
.btn-outline-v { color: var(--blue); background: #fff; border: 1px solid rgba(10, 87, 224, .3); }
.btn-outline-v:hover, .btn-outline-v:focus-visible { color: #fff; background: var(--blue); border-color: var(--blue); }

.store-row { display: flex; flex-wrap: wrap; gap: 10px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px; border-radius: 12px;
  color: #fff; text-decoration: none;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  transition: background-color .2s ease, border-color .2s ease;
}
.store-btn i { font-size: 1.35rem; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.15; font-size: .92rem; font-weight: 600; text-align: left; }
.store-btn small { font-size: .62rem; font-weight: 400; opacity: .7; }
.store-btn:hover { color: #fff; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .28); }

.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(31, 196, 141, .6); animation: pulse 2s infinite; flex-shrink: 0; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(31, 196, 141, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 196, 141, 0); } }

/* ---------- Scroll progress + back to top ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 1040; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 1030;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: var(--blue); text-decoration: none;
  box-shadow: 0 12px 30px -10px rgba(10, 87, 224, .9);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { color: #fff; }

/* ---------- Navbar (floating pill) ---------- */
#mainNav { padding: 14px 0; }
#mainNav .nav-pill {
  padding: 8px 8px 8px 16px;
  border-radius: 999px;
  background: rgba(6, 14, 34, .55);
  border: 1px solid rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  transition: background-color .3s ease, border-radius .3s ease;
}
#mainNav.scrolled .nav-pill { background: rgba(6, 14, 34, .86); }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em;
  color: #fff; text-decoration: none;
}
.brand:hover { color: #fff; }
#mainNav .navbar-brand { padding: 0; margin: 0; }
#mainNav .nav-link { color: rgba(255, 255, 255, .7); font-size: .92rem; font-weight: 500; padding: .5rem .85rem; position: relative; }
#mainNav .nav-link:hover, #mainNav .nav-link:focus-visible { color: #fff; }
#mainNav .nav-link.active { color: #fff; }
#mainNav .nav-link.active::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
}
.nav-actions { display: flex; gap: 8px; align-items: center; }
.navbar-toggler { border: 0; color: #fff; font-size: 1.6rem; padding: 2px 10px; }
.navbar-toggler:focus { box-shadow: none; }

@media (max-width: 991.98px) {
  #mainNav .nav-pill { border-radius: 22px; padding: 8px 8px 8px 14px; }
  #mainNav .navbar-collapse { padding: 10px 6px 8px; }
  #mainNav .nav-link { padding: .6rem .4rem; }
  #mainNav .nav-link.active::after { left: auto; right: 6px; bottom: 50%; margin: 0 0 -2px; }
  .nav-actions { padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 6px; }
  .nav-actions .btn { flex: 1; }
}
@media (max-width: 575.98px) {
  #mainNav .nav-pill { max-width: calc(100% - 24px); }
}

/* =========================================================
   HERO — the scanned aisle
   ========================================================= */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--night); padding-top: 150px; }
.aisle, .aisle-fade, .scan-tags { position: absolute; top: 0; left: 0; width: 100%; height: 100vh; max-height: 1100px; }
.aisle { display: block; }
.aisle-fade {
  pointer-events: none;
  background:
    radial-gradient(ellipse 46% 40% at 50% 38%, rgba(4, 10, 24, .82), rgba(4, 10, 24, 0) 72%),
    linear-gradient(to bottom, rgba(4, 10, 24, .35), rgba(4, 10, 24, 0) 25%, rgba(4, 10, 24, 0) 62%, var(--night));
}
.scan-tags { pointer-events: none; z-index: 1; }
.scan-tag {
  position: absolute; left: 0; top: 0;
  display: flex; align-items: center; gap: 9px;
  padding: 7px 12px 7px 9px; border-radius: 10px; white-space: nowrap;
  font-size: .74rem; line-height: 1.25; color: #fff;
  background: rgba(6, 18, 42, .78);
  border: 1px solid rgba(8, 184, 248, .45);
  box-shadow: 0 0 24px -6px rgba(8, 184, 248, .6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .35s ease;
}
.scan-tag.show { opacity: 1; }
.scan-tag i { color: var(--cyan); font-size: 1rem; }
.scan-tag b { display: block; font-weight: 600; }
.scan-tag span { color: rgba(226, 236, 255, .7); }

.hero-inner { position: relative; z-index: 2; max-width: 820px; text-align: center; }
.live-chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px 6px 12px; border-radius: 999px;
  font-size: .82rem; font-weight: 500; color: rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.hero-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.1rem, 3.8vw, 3.3rem); line-height: 1.06; letter-spacing: -0.035em;
  color: #fff; margin: 22px auto 20px;
}
.hero-lead { font-size: 1.06rem; color: var(--on-dark); max-width: 620px; margin: 0 auto; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.hero .store-row { justify-content: center; margin-top: 20px; }

.hero-hud {
  position: absolute; z-index: 2; left: 28px; top: calc(min(100vh, 1100px) - 92px);
  display: flex; gap: 8px;
  font-family: var(--mono);
}
.hero-hud span {
  display: flex; flex-direction: column; min-width: 92px;
  padding: 7px 11px; border-radius: 9px;
  background: rgba(6, 18, 42, .55); border: 1px solid var(--line);
}
.hero-hud small { font-family: var(--body); font-size: .64rem; color: rgba(226, 236, 255, .5); }
.hero-hud b { font-size: .95rem; font-weight: 500; color: #fff; }

.hero-devices {
  --p: 0;
  position: relative; z-index: 2; height: 500px; margin-top: 64px;
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent);
  mask-image: linear-gradient(to bottom, #000 62%, transparent);
}
.hero-devices .phone { position: absolute; top: 0; left: 50%; }
.ph-center { width: 250px; z-index: 3; transform: translate(-50%, calc(var(--p) * -40px)); }
.hero-devices .ph-left, .hero-devices .ph-right { width: 214px; top: 64px; z-index: 2; filter: brightness(.82); }
.ph-left { transform: translateX(calc(-50% - 215px - var(--p) * 60px)) rotate(calc(-7deg - var(--p) * 6deg)); }
.ph-right { transform: translateX(calc(-50% + 215px + var(--p) * 60px)) rotate(calc(7deg + var(--p) * 6deg)); }

/* Phone frame (shared) */
.phone {
  border-radius: 36px; padding: 8px;
  background: linear-gradient(150deg, #24345a, #0b1428 60%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 80px -30px rgba(0, 0, 0, .85), 0 0 0 1px rgba(0, 0, 0, .45);
}
.phone > img { display: block; width: 100%; height: auto; border-radius: 28px; }

@media (max-width: 991.98px) {
  .hero-hud { display: none; }
}
@media (max-width: 767.98px) {
  .hero { padding-top: 120px; }
  .aisle { opacity: .55; }
  .aisle-fade {
    background:
      radial-gradient(ellipse 85% 42% at 50% 42%, rgba(4, 10, 24, .85), rgba(4, 10, 24, 0) 75%),
      linear-gradient(to bottom, rgba(4, 10, 24, .35), rgba(4, 10, 24, 0) 25%, rgba(4, 10, 24, 0) 62%, var(--night));
  }
  .hero-title br { display: none; }
  .hero-devices { height: 380px; margin-top: 48px; }
  .ph-center { width: 190px; }
  .hero-devices .ph-left, .hero-devices .ph-right { width: 150px; top: 46px; }
  .ph-left { transform: translateX(calc(-50% - 120px - var(--p) * 20px)) rotate(calc(-7deg - var(--p) * 4deg)); }
  .ph-right { transform: translateX(calc(-50% + 120px + var(--p) * 20px)) rotate(calc(7deg + var(--p) * 4deg)); }
  .hero-ctas .btn { flex: 1 1 auto; }
}

/* =========================================================
   ACTIVITY — from the floor to the dashboard
   ========================================================= */
.activity-sec { padding-top: 40px; overflow: hidden; }
.k-added { --k: #5EE0B0; --k-bg: rgba(31, 196, 141, .14); --k-ink: #04301F; }
.k-removed { --k: #FF8FA3; --k-bg: rgba(240, 80, 110, .14); --k-ink: #3A0712; }
.k-damaged { --k: #FFC266; --k-bg: rgba(245, 165, 36, .16); --k-ink: #3A2300; }

.relay { display: grid; grid-template-columns: auto minmax(90px, 230px) minmax(0, 720px); justify-content: center; align-items: center; }
.relay-cap { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: .86rem; font-weight: 600; color: rgba(226, 236, 255, .8); }
.relay-cap b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: .75rem; color: #fff; background: var(--grad); }
.relay-phone { display: flex; flex-direction: column; align-items: center; }
.relay-dash { min-width: 0; }

/* The phone: an inventory action being confirmed */
.phone-mini { width: 250px; }
.mini-ui {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  aspect-ratio: 640 / 1390; border-radius: 28px; font-size: .78rem; color: var(--ink); background: #F4F7FC;
}
.mu-status { display: flex; justify-content: space-between; padding: 10px 18px 4px; font-size: .68rem; font-weight: 600; background: #fff; }
.mu-head { display: flex; align-items: center; gap: 8px; padding: 6px 14px 10px; font-size: .9rem; font-weight: 700; background: #fff; border-bottom: 1px solid #E8EDF5; }
.mu-head i { color: var(--blue); }
.mu-body { display: flex; flex-direction: column; gap: 9px; flex: 1; padding: 12px; transition: opacity .3s ease, transform .3s ease; }
.swap .mu-body { opacity: 0; transform: translateY(8px); }
.mu-card { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; background: #fff; border: 1px solid #E8EDF5; }
.mu-card > div { min-width: 0; }
.mu-card b { display: block; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mu-card small { font-size: .68rem; color: var(--muted); }
.mu-user .avatar { width: 32px; height: 32px; font-size: .68rem; }
.mu-thumb { flex-shrink: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: var(--blue); background: #E3ECFF; }
.mu-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; padding: 3px; border-radius: 10px; background: #E6EBF3; }
.mu-seg span { padding: 6px 2px; border-radius: 8px; text-align: center; font-size: .66rem; font-weight: 600; color: var(--muted); transition: background-color .3s ease, color .3s ease, box-shadow .3s ease; }
.mu-seg span.on { background: #fff; box-shadow: 0 1px 3px rgba(11, 27, 58, .12); }
.mu-seg span.on[data-k="added"] { color: #0F8A5F; }
.mu-seg span.on[data-k="removed"] { color: #C7304E; }
.mu-seg span.on[data-k="damaged"] { color: #A86400; }
.mu-qty { justify-content: space-between; padding: 6px 8px; }
.mu-qty span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; font-weight: 700; background: #F1F4F9; }
.mu-qty b { font-family: var(--display); font-size: 1.45rem; }
.mu-reason { justify-content: space-between; color: var(--muted); }
.mu-reason b { color: var(--ink); }
.mu-reason.off { visibility: hidden; }
.mu-confirm {
  position: relative; overflow: hidden; display: block; margin-top: auto; padding: 11px;
  border-radius: 12px; text-align: center; font-weight: 700; font-size: .85rem; color: #fff; background: var(--blue);
  box-shadow: 0 10px 20px -10px rgba(10, 87, 224, .8);
}
.mu-confirm.press { animation: press .5s ease; }
@keyframes press { 30% { transform: scale(.94); filter: brightness(1.2); } }
.tap { position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px; border-radius: 50%; background: rgba(255, 255, 255, .6); opacity: 0; }
.press .tap { animation: tap .6s ease-out; }
@keyframes tap { from { transform: scale(0); opacity: 1; } to { transform: scale(10); opacity: 0; } }
.mu-saved {
  position: absolute; left: 12px; right: 12px; bottom: 64px;
  display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px;
  font-size: .74rem; font-weight: 600; color: #fff; background: #0B1B3A;
  opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease;
}
.mu-saved.show { opacity: 1; transform: none; }
.mu-saved i { color: #5EE0B0; }

/* The wire, and the change travelling along it */
.relay-wire { position: relative; align-self: stretch; margin: 0 4px; }
.wire {
  position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px;
  background: repeating-linear-gradient(90deg, rgba(130, 170, 255, .4) 0 6px, transparent 6px 12px);
  animation: wireX 1s linear infinite;
}
.wire::before, .wire::after {
  content: ""; position: absolute; top: 50%; width: 10px; height: 10px; margin-top: -5px;
  border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan);
}
.wire::before { left: -5px; }
.wire::after { right: -5px; }
@keyframes wireX { to { background-position: 12px 0; } }
@keyframes wireY { to { background-position: 0 12px; } }
.packet {
  position: absolute; left: 0; top: 50%; z-index: 2; transform: translate(-50%, -50%);
  padding: 5px 12px; border-radius: 999px; white-space: nowrap;
  font-family: var(--display); font-size: .88rem; font-weight: 700;
  color: var(--k-ink, #04263A); background: var(--k, var(--cyan));
  box-shadow: 0 0 0 4px var(--k-bg, rgba(8, 184, 248, .18)), 0 0 30px 6px var(--k-bg, rgba(8, 184, 248, .4));
  opacity: 0;
}
.packet::before {
  content: ""; position: absolute; right: 100%; top: 50%; width: 70px; height: 2px; margin-top: -1px;
  background: linear-gradient(to left, var(--k, var(--cyan)), transparent);
}
.packet.go { animation: packetX .9s cubic-bezier(.5, 0, .3, 1) forwards; }
@keyframes packetX {
  0% { left: 0; opacity: 0; }
  12%, 85% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
@keyframes packetY {
  0% { top: 0; opacity: 0; }
  12%, 85% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* The dashboard log */
.log-card {
  padding: 20px 22px 16px; border-radius: 22px;
  background: linear-gradient(#0B1836, #07102A);
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.log-card.ping { animation: cardPing .9s ease; }
@keyframes cardPing { 0% { border-color: rgba(8, 184, 248, .7); box-shadow: 0 0 0 4px rgba(8, 184, 248, .15), 0 40px 80px -40px rgba(0, 0, 0, .9); } }
.log-head { display: flex; justify-content: space-between; align-items: center; padding: 0 6px 14px; }
.log-head b { display: block; font-weight: 600; color: #fff; }
.log-head small { font-size: .78rem; color: rgba(226, 236, 255, .5); }
.log-card .live-pill { color: #5EE0B0; }
.log-cols, .lg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; align-items: center; }
.log-cols { padding: 10px 6px; font-size: .76rem; font-weight: 600; color: var(--cyan); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.log-cols i { margin-right: 4px; }
.ping .log-cols span { animation: colFlash .8s ease; }
.ping .log-cols span:nth-child(2) { animation-delay: .12s; }
.ping .log-cols span:nth-child(3) { animation-delay: .24s; }
@keyframes colFlash { 40% { color: #fff; text-shadow: 0 0 12px rgba(8, 184, 248, .9); } }
.log { list-style: none; min-height: 252px; padding: 0; margin: 0; }
.lg { position: relative; overflow: hidden; padding: 12px 6px; border-bottom: 1px solid rgba(130, 170, 255, .08); }
.lg:last-child { border-bottom: 0; }
.lg > div { min-width: 0; }
.lg-who, .lg-what { display: flex; align-items: center; gap: 10px; }
.lg .avatar { width: 30px; height: 30px; font-size: .66rem; }
.lg-who b { font-size: .9rem; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-qty { flex-shrink: 0; min-width: 50px; padding: 3px 8px; border-radius: 999px; text-align: center; font-family: var(--display); font-size: .82rem; font-weight: 700; color: var(--k); background: var(--k-bg); }
.lg-item { min-width: 0; }
.lg-item span { display: block; font-size: .9rem; color: var(--on-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-item small { font-size: .74rem; color: rgba(226, 236, 255, .45); }
.lg-where span { display: block; font-size: .88rem; color: #fff; }
.lg-where small { font-size: .74rem; color: rgba(226, 236, 255, .45); }
.lg.arrive { animation: arrive .7s var(--out), arriveBg 2.4s ease; }
.lg.arrive::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(8, 184, 248, .28), transparent);
  animation: rowScan 1.1s ease-out forwards;
}
@keyframes arrive { from { opacity: 0; transform: translateY(-12px); } }
@keyframes arriveBg { from { background: rgba(8, 184, 248, .12); } to { background: transparent; } }
@keyframes rowScan { to { left: 110%; } }
.feed-note { margin: 10px 6px 0; font-size: .76rem; color: rgba(226, 236, 255, .4); }

@media (max-width: 991.98px) {
  .relay { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .relay-dash { width: 100%; max-width: 720px; text-align: center; }
  .log-card { text-align: left; }
  .relay-wire { align-self: auto; width: 140px; height: 96px; margin: 6px 0 2px; }
  .wire {
    left: 50%; right: auto; top: 0; bottom: 0; width: 2px; height: auto; margin: 0 0 0 -1px;
    background: repeating-linear-gradient(180deg, rgba(130, 170, 255, .4) 0 6px, transparent 6px 12px);
    animation-name: wireY;
  }
  .wire::before, .wire::after { left: 50%; right: auto; margin: 0 0 0 -5px; }
  .wire::before { top: -5px; }
  .wire::after { top: auto; bottom: -5px; }
  .packet { left: 50%; top: 0; }
  .packet::before { right: auto; left: 50%; top: auto; bottom: 100%; width: 2px; height: 46px; margin: 0 0 0 -1px; background: linear-gradient(to top, var(--k, var(--cyan)), transparent); }
  .packet.go { animation-name: packetY; }
}
@media (max-width: 575.98px) {
  .phone-mini { width: 228px; }
  .mu-seg span { white-space: nowrap; }
  .mu-seg i { display: none; }
  .log-card { padding: 16px 12px 12px; }
  .log-cols, .lg { gap: 8px; grid-template-columns: minmax(0, .9fr) minmax(0, 1.5fr) minmax(0, .9fr); }
  .log-cols { font-size: .7rem; }
  .log-cols i, .lg .avatar { display: none; }
  .lg-who b, .lg-item span, .lg-where span { font-size: .8rem; }
  .lg-qty { min-width: 0; padding: 2px 6px; font-size: .74rem; }
  .lg-what { gap: 6px; }
}

/* =========================================================
   STATEMENT — loose words settle into order
   ========================================================= */
.stmt-sec { padding: 80px 0 130px; }
.stmt-text, .stmt-answer {
  max-width: 980px; margin: 0 auto; text-align: center;
  font-family: var(--display); font-size: clamp(1.4rem, 2.7vw, 2.15rem);
  line-height: 1.45; letter-spacing: -0.02em;
}
.stmt-text { font-weight: 600; color: #fff; }
.stmt-text .w {
  --e: 1;
  display: inline-block; padding: 0 .06em; border-radius: .22em;
  border: 1px dashed rgba(120, 170, 255, calc(.55 * (1 - var(--e))));
  background: rgba(16, 40, 92, calc(.7 * (1 - var(--e))));
  will-change: transform;
}
.stmt-answer { font-weight: 700; margin-top: 26px; }

/* =========================================================
   APP — pinned phone story
   ========================================================= */
.story {
  position: relative; height: 520vh; color: #fff;
  background:
    radial-gradient(ellipse 50% 40% at 70% 50%, rgba(10, 87, 224, .22), transparent 70%),
    var(--night);
}
.story-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.story-grid { display: grid; grid-template-columns: minmax(0, 470px) auto; justify-content: space-evenly; gap: 56px; align-items: center; padding-top: 50px; }
.story-intro .section-title { font-size: clamp(1.6rem, 2.4vw, 2.15rem); color: #fff; }

.story-steps { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.story-steps li { border-bottom: 1px solid var(--line); }
.story-steps button {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 11px 0; border: 0; background: none; text-align: left;
  font-size: 1rem; font-weight: 600; color: rgba(255, 255, 255, .45);
  transition: color .3s ease;
}
.story-steps button:hover { color: rgba(255, 255, 255, .8); }
.story-steps .on button { color: #fff; }
.ss-num { font-family: var(--mono); font-size: .74rem; font-weight: 500; color: rgba(226, 236, 255, .35); transition: color .3s ease; }
.story-steps .on .ss-num { color: var(--cyan); }
.ss-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.ss-body > div { overflow: hidden; padding-left: 34px; }
.story-steps .on .ss-body { grid-template-rows: 1fr; }
.ss-body p { font-size: .94rem; color: var(--on-dark); margin: 0 0 10px; }
.chips { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li {
  font-size: .74rem; font-weight: 500; color: #CFEFFF;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(8, 184, 248, .1); border: 1px solid rgba(8, 184, 248, .25);
}

.story-device { position: relative; display: grid; place-items: center; width: min(560px, 76vh, 48vw); aspect-ratio: 1; }
.dial { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.dial circle { fill: none; }
.dial-ticks { stroke: rgba(130, 170, 255, .28); stroke-width: 7; stroke-dasharray: 1.2 8.75; }
.dial-track { stroke: rgba(130, 170, 255, .12); stroke-width: 2; }
.dial-fill {
  stroke: var(--cyan); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 100;
  filter: drop-shadow(0 0 6px rgba(8, 184, 248, .8));
}
.sd-count { position: absolute; top: 4%; left: 0; z-index: 3; font-family: var(--display); line-height: 1; }
.sd-count b { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.04em; color: #fff; }
.sd-count span { font-size: .95rem; color: rgba(226, 236, 255, .45); margin-left: 4px; }

.phone-story { position: relative; z-index: 2; width: min(236px, 30vh); }
.screens { position: relative; overflow: hidden; border-radius: 28px; aspect-ratio: 640 / 1390; background: #0b1428; }
.screen { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(0 0 100% 0); }
.screen.on { clip-path: inset(0 0 0 0); transition: clip-path .7s var(--ease); }
.wipe {
  position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 50;
  background: var(--cyan); box-shadow: 0 0 16px 3px rgba(8, 184, 248, .8);
  opacity: 0; pointer-events: none;
}
.wipe.go { animation: wipe .7s var(--ease) forwards; }
@keyframes wipe { 0% { top: 0; opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

@media (max-width: 991.98px) {
  .story { height: 460vh; }
  .story-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-top: 64px; justify-items: center; text-align: center; }
  .story-intro { max-width: 520px; order: 2; }
  .story-intro .section-title { font-size: 1.35rem; margin-bottom: .4rem; }
  .story-intro .section-sub { display: none; }
  .story-steps { margin-top: 10px; border: 0; }
  .story-steps li { border: 0; display: none; }
  .story-steps li.on { display: block; }
  .story-steps button { justify-content: center; padding: 4px 0; }
  .ss-body > div { padding-left: 0; }
  .story-steps .ss-body { grid-template-rows: 1fr; transition: none; }
  .chips { justify-content: center; }
  .story-device { order: 1; width: min(92vw, 50svh); }
  .phone-story { width: min(190px, 18svh); padding: 6px; border-radius: 26px; }
  .phone-story .screens { border-radius: 20px; }
  .sd-count b { font-size: 1.8rem; }
}

/* =========================================================
   FEATURES — the app and the dashboard, side by side
   ========================================================= */
.duo { display: flex; flex-direction: column; height: 100%; overflow: hidden; padding: 32px 32px 0; border-radius: 24px; }
.duo-app { background: #fff; border: 1px solid rgba(11, 27, 58, .08); box-shadow: 0 30px 60px -40px rgba(11, 27, 58, .35); }
.duo-dash { color: var(--on-dark); background: radial-gradient(ellipse 70% 50% at 100% 0%, rgba(10, 87, 224, .35), transparent 70%), #071428; }
.duo-head { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.duo-icon {
  flex-shrink: 0; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px;
  font-size: 1.3rem; color: #fff; background: var(--grad); box-shadow: 0 12px 26px -10px rgba(10, 87, 224, .7);
}
.duo-head h3 { margin: 0; font-family: var(--display); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.duo-head p { margin: 0; font-size: .9rem; color: var(--muted); }
.duo-dash .duo-head h3 { color: #fff; }
.duo-dash .duo-head p { color: rgba(226, 236, 255, .6); }

.feat-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; padding: 0; margin: 0; }
.feat-list li { display: flex; align-items: flex-start; gap: 12px; }
.feat-list i { flex-shrink: 0; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; font-size: 1rem; color: var(--blue); background: rgba(10, 87, 224, .08); }
.feat-list b { display: block; margin-bottom: 2px; font-weight: 600; color: var(--ink); }
.feat-list span { font-size: .88rem; line-height: 1.5; color: var(--muted); }
.duo-dash .feat-list i { color: #8FC2FF; background: rgba(91, 155, 255, .12); }
.duo-dash .feat-list b { color: #fff; }
.duo-dash .feat-list span { color: rgba(226, 236, 255, .62); }

.duo-peek { order: 3; display: flex; justify-content: center; align-items: flex-start; height: 230px; margin-top: auto; padding-top: 32px; overflow: hidden; }
.duo-peek img { display: block; transition: transform .5s var(--out); }
.duo-app .duo-peek img { width: 240px; border: 8px solid #0B1428; border-bottom: 0; border-radius: 34px 34px 0 0; box-shadow: 0 -10px 40px -14px rgba(11, 27, 58, .35); }
.duo-dash .duo-peek img { width: 92%; border: 6px solid rgba(255, 255, 255, .1); border-bottom: 0; border-radius: 14px 14px 0 0; }
.duo:hover .duo-peek img { transform: translateY(-8px); }

@media (max-width: 575.98px) {
  .duo { padding: 24px 20px 0; }
  .feat-list { grid-template-columns: 1fr; gap: 18px; }
  .duo-peek { height: 190px; }
}

/* =========================================================
   DASHBOARD — working preview
   ========================================================= */
.dash-sec { overflow: hidden; }
.dash-glow {
  position: absolute; left: 0; right: 0; bottom: 0; height: 75%; pointer-events: none;
  background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(10, 87, 224, .38), transparent 70%);
}
.dash-stage { max-width: 1080px; margin: 0 auto; perspective: 1800px; }
.browser {
  --rx: 0deg; --ry: 0deg;
  position: relative; border-radius: 16px; overflow: hidden;
  color: var(--ink); background: #fff;
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .08);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--out);
}
.browser-bar { display: flex; align-items: center; gap: 14px; height: 38px; padding: 0 14px; background: #EEF2F8; border-bottom: 1px solid #E1E7F0; }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #CED6E2; }
.url { flex: 1; max-width: 340px; margin: 0 auto; padding: 4px 10px; border-radius: 7px; text-align: center; font-size: .74rem; color: var(--muted); background: #fff; }
.url i { font-size: .66rem; margin-right: 3px; }

.dash { display: grid; grid-template-columns: 200px minmax(0, 1fr); min-height: 500px; }
.dash-side { padding: 16px 12px; color: rgba(255, 255, 255, .75); background: #071428; }
.dash-org { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; margin-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.dash-org strong { display: block; font-size: .84rem; color: #fff; line-height: 1.2; }
.dash-org small { font-size: .68rem; color: rgba(255, 255, 255, .5); }
.dash-nav { display: flex; flex-direction: column; gap: 2px; }
.dash-nav button, .dn-static {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 10px; border: 0; border-radius: 9px; background: none; text-align: left;
  font-size: .82rem; color: rgba(255, 255, 255, .85);
}
.dash-nav button { cursor: pointer; transition: background-color .2s ease; }
.dash-nav button:hover { background: rgba(255, 255, 255, .07); }
.dash-nav button[aria-selected="true"] { color: #fff; background: var(--blue); }
.dn-static { color: rgba(255, 255, 255, .4); }
.dash-nav em { margin-left: auto; padding: 0 7px; border-radius: 999px; font-style: normal; font-size: .68rem; font-weight: 700; color: #2A1A00; background: var(--amber); }
.dash-nav em:empty { display: none; }

.dash-main { position: relative; padding: 0 22px 22px; background: #F5F7FB; min-width: 0; }
.dash-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; margin-bottom: 18px; border-bottom: 1px solid #E4E9F2; }
.branch-select {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px; border-radius: 10px; font-size: .8rem; color: var(--ink);
  background: #fff; border: 1px solid #DCE3EE; transition: border-color .2s ease;
}
.branch-select:hover { border-color: var(--blue); }
.branch-select > span { display: flex; flex-direction: column; text-align: left; line-height: 1.2; }
.branch-select small { font-size: .62rem; color: var(--muted); }
.branch-select b { font-weight: 600; min-width: 82px; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; font-size: .74rem; font-weight: 600; color: #0F8A5F; }

.dash-view.on { animation: viewIn .4s var(--out); }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } }
.dash-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.dash-title h4 { font-family: var(--display); font-size: 1.15rem; font-weight: 700; margin: 0; color: var(--ink); }
.dash-title p { font-size: .78rem; color: var(--muted); margin: 0; }
.dash-btn {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 7px 12px; border: 0; border-radius: 9px;
  font-size: .78rem; font-weight: 600; color: #fff; background: var(--blue);
  transition: filter .2s ease;
}
.dash-btn:hover { filter: brightness(1.1); }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.kpi { position: relative; overflow: hidden; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid #E4E9F2; }
.kpi::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--blue); }
.kpi.k-warn::before { background: var(--amber); }
.kpi.k-bad::before { background: var(--red); }
.kpi small { display: block; font-size: .7rem; color: var(--muted); }
.kpi strong { font-family: var(--display); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }

.dash-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 14px; }
.dash-card { padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid #E4E9F2; min-width: 0; }
.dc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.dc-head h5 { font-size: .85rem; font-weight: 600; margin: 0; color: var(--ink); }
.dc-meta { font-size: .72rem; color: var(--muted); }
.dc-meta b { color: var(--ink); }

.bar-chart { display: flex; align-items: flex-end; gap: 10px; height: 170px; }
.bc-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.bc-col i { width: 100%; height: var(--h); border-radius: 6px 6px 3px 3px; background: linear-gradient(to top, var(--blue), var(--cyan)); transform-origin: bottom; transition: transform .9s var(--out); }
.js .bar-chart:not(.in) i { transform: scaleY(0); }
.bc-col:nth-child(2) i { transition-delay: .06s; }
.bc-col:nth-child(3) i { transition-delay: .12s; }
.bc-col:nth-child(4) i { transition-delay: .18s; }
.bc-col:nth-child(5) i { transition-delay: .24s; }
.bc-col:nth-child(6) i { transition-delay: .3s; }
.bc-col:nth-child(7) i { transition-delay: .36s; }
.bc-col span { font-size: .66rem; color: var(--muted); }

.dash-table { overflow: hidden; }
.dash-table table { width: 100%; border-collapse: collapse; font-size: .76rem; table-layout: fixed; }
.dash-table th { padding: 6px 4px; font-size: .68rem; font-weight: 500; color: var(--muted); border-bottom: 1px solid #E9EDF4; text-align: left; }
.dash-table td { padding: 8px 4px; border-bottom: 1px solid #F0F3F8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.dash-table tr:last-child td { border-bottom: 0; }
#dvOverview th:nth-child(1) { width: 15%; }
#dvOverview th:nth-child(2) { width: 22%; }
#dvOverview th:nth-child(4) { width: 14%; }
#dvAudit th:nth-child(1) { width: 12%; }
#dvAudit th:nth-child(2) { width: 16%; }
#dvAudit th:nth-child(3) { width: 24%; }
.dash-table td.q-pos { color: #0F8A5F; font-weight: 600; }
.dash-table td.q-neg { color: #C7304E; font-weight: 600; }
.dash-table td.q-dmg { color: #A86400; font-weight: 600; }
tr.fresh td { animation: fresh 1.8s ease; }
@keyframes fresh { from { background: rgba(8, 184, 248, .2); } to { background: transparent; } }

.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .68rem; font-weight: 600; }
.t-green { color: #0F7A54; background: #DDF7EC; }
.t-red { color: #B8304B; background: #FDE3E8; }
.t-amber { color: #8F5400; background: #FFF1D6; }
.t-blue { color: #0A47B8; background: #E3ECFF; }

.seg { display: inline-flex; padding: 3px; margin-bottom: 14px; border-radius: 10px; font-size: .76rem; background: #E9EEF6; }
.seg span { padding: 5px 12px; border-radius: 8px; color: var(--muted); }
.seg .on { color: var(--ink); font-weight: 600; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.cat-bars { display: flex; flex-direction: column; gap: 16px; padding: 6px 0; }
.cat { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: .8rem; color: var(--ink); }
.cat em { font-style: normal; font-weight: 600; }
.cat b { grid-column: 1 / -1; position: relative; height: 8px; border-radius: 99px; overflow: hidden; background: #EDF1F7; }
.cat b::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); border-radius: inherit; background: var(--grad); animation: grow 1s var(--out); transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } }

.req-list { display: flex; flex-direction: column; gap: 10px; }
.req {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px;
  background: #fff; border: 1px solid #E4E9F2;
  transition: opacity .35s ease, transform .35s ease;
}
.req.leaving { opacity: 0; transform: translateX(40px); }
.avatar { width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; font-size: .72rem; font-weight: 700; color: var(--blue); background: #E3ECFF; }
.avatar.a2 { color: #9A5B00; background: #FFF1D6; }
.avatar.a3 { color: #0F8A5F; background: #DDF7EC; }
.req-copy { flex: 1; min-width: 0; }
.req-copy b { display: block; font-size: .86rem; color: var(--ink); }
.req-copy small { font-size: .72rem; color: var(--muted); }
.req-actions { display: flex; gap: 8px; }
.req-actions button { padding: 6px 12px; border-radius: 8px; font-size: .76rem; font-weight: 600; color: var(--ink); background: #fff; border: 1px solid #DCE3EE; transition: filter .2s ease, background-color .2s ease; }
.req-actions button:hover { background: #F3F6FB; }
.req-actions .ok { color: #fff; background: #0F9D6B; border-color: #0F9D6B; }
.req-actions .ok:hover { background: #0F9D6B; filter: brightness(1.1); }
.req-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 50px 10px; text-align: center; }
.req-empty i { font-size: 2rem; color: #0F9D6B; }
.req-empty b { color: var(--ink); }
.req-empty span { font-size: .8rem; color: var(--muted); margin-bottom: 12px; }

.dash-toast {
  position: absolute; right: 18px; bottom: 18px; z-index: 5;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 10px; font-size: .78rem; color: #fff; background: #071428;
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .6);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.dash-toast.show { opacity: 1; transform: none; }
.dash-toast i { color: var(--cyan); }

@media (max-width: 767.98px) {
  .dash { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .dash-side { padding: 8px; min-width: 0; }
  .dash-org, .dn-static { display: none; }
  .dash-nav { flex-direction: row; gap: 4px; overflow-x: auto; scrollbar-width: none; }
  .dash-nav::-webkit-scrollbar { display: none; }
  .dash-nav button { width: auto; flex-shrink: 0; white-space: nowrap; }
  .dash-main { padding: 0 12px 14px; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .dash-row { grid-template-columns: 1fr; }
  .bar-chart { height: 130px; }
  #dvOverview th:nth-child(2), #dvOverview td:nth-child(2),
  #dvAudit th:nth-child(2), #dvAudit td:nth-child(2) { display: none; }
  #dvOverview th:nth-child(1) { width: 20%; }
  #dvOverview th:nth-child(4) { width: 18%; }
  #dvAudit th:nth-child(1) { width: 18%; }
  #dvAudit th:nth-child(3) { width: 36%; }
  .req { flex-wrap: wrap; }
  .req-actions { width: 100%; }
  .req-actions button { flex: 1; }
  .dash-title { flex-wrap: wrap; }
}

/* =========================================================
   PACKAGES — special feature, working preview
   ========================================================= */
.pk-sec { overflow: hidden; background: linear-gradient(160deg, #0A2766 0%, #071A45 45%, #050D24 100%); }
.pk-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 40% 50% at 12% 18%, rgba(8, 184, 248, .22), transparent 70%),
    radial-gradient(ellipse 45% 55% at 92% 85%, rgba(10, 87, 224, .4), transparent 70%);
}
.special-pill {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 6px 14px; border-radius: 999px;
  font-size: .82rem; font-weight: 700; color: #03263A; background: linear-gradient(135deg, #8BE7FF, #08B8F8);
  box-shadow: 0 10px 30px -10px rgba(8, 184, 248, .85);
}
.pk { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 36px; align-items: start; max-width: 1120px; margin: 0 auto; }

/* Steps */
.pk-steps { position: relative; list-style: none; display: flex; flex-direction: column; gap: 8px; padding: 0; margin: 0; }
.pk-steps::before { content: ""; position: absolute; left: 33px; top: 32px; bottom: 32px; width: 2px; background: rgba(130, 170, 255, .2); }
.pk-steps button {
  position: relative; display: flex; align-items: flex-start; gap: 14px; width: 100%;
  padding: 14px 16px; border-radius: 16px; border: 1px solid transparent; background: none; text-align: left;
  color: rgba(226, 236, 255, .6); transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}
.pk-steps button:hover { color: rgba(226, 236, 255, .9); background: rgba(255, 255, 255, .04); }
.pk-steps button[aria-selected="true"] { color: #fff; background: rgba(255, 255, 255, .07); border-color: rgba(8, 184, 248, .4); }
.pk-num {
  position: relative; z-index: 1; flex-shrink: 0; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  font-family: var(--display); font-weight: 700; color: rgba(226, 236, 255, .75);
  background: #0B1D47; border: 1px solid rgba(130, 170, 255, .3);
  transition: background-color .3s ease, box-shadow .3s ease, color .3s ease;
}
.pk-steps button[aria-selected="true"] .pk-num { color: #fff; background: var(--blue); border-color: transparent; box-shadow: 0 0 0 5px rgba(8, 184, 248, .16); }
.pk-steps b { display: block; margin-top: 6px; font-size: 1rem; font-weight: 600; }
.pk-steps small { display: block; margin-top: 2px; font-size: .86rem; line-height: 1.5; color: rgba(226, 236, 255, .6); }
.pk-caption { display: none; }

/* The app window */
.pk-window {
  position: relative; overflow: hidden; min-height: 480px; border-radius: 18px; color: var(--ink); background: #F5F7FB;
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .1);
}
.pk-bar { display: flex; align-items: center; gap: 10px; padding: 12px 18px; font-size: .84rem; color: rgba(255, 255, 255, .82); background: #071428; }
.pk-crumbs { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-crumbs i { font-size: .62rem; opacity: .6; }
.pk-view { padding: 20px 22px 22px; }
.pk-view.on { animation: viewIn .4s var(--out); }

.pk-product, .pk-order-top, .pk-order-head {
  display: flex; align-items: center; gap: 18px; margin-bottom: 18px; padding: 14px;
  border-radius: 14px; background: #fff; border: 1px solid #E4E9F2;
}
.pk-shelf {
  flex-shrink: 0; display: flex; flex-direction: column; justify-content: space-between;
  width: 74px; height: 84px; padding: 4px 0; border-left: 4px solid #2B2F38; border-right: 4px solid #2B2F38;
}
.pk-shelf i { display: block; height: 6px; margin: 0 -2px; border-radius: 1px; background: linear-gradient(#D9A066, #B57A43); }
.pk-shelf.sm { width: 40px; height: 46px; padding: 2px 0; border-width: 3px; }
.pk-shelf.sm i { height: 4px; }
.pk-fields { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pk-field { padding: 8px 10px; border-radius: 10px; background: #FAFBFD; border: 1px solid #E4E9F2; }
.pk-field.wide { grid-column: 1 / -1; }
.pk-field small { display: block; font-size: .66rem; color: var(--muted); }
.pk-field b { font-size: .84rem; font-weight: 600; }
.pk-table-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.pk-table-head h4 { margin: 0; font-size: .92rem; font-weight: 700; }
.pk-table-head small { font-size: .76rem; color: var(--muted); text-align: right; }
.pk-add { padding: 5px 10px; border-radius: 8px; font-size: .74rem; font-weight: 600; color: #fff; background: var(--blue); }
.pk-table { width: 100%; overflow: hidden; border-collapse: separate; border-spacing: 0; border-radius: 12px; font-size: .84rem; background: #fff; border: 1px solid #E4E9F2; }
.pk-table th { padding: 9px 12px; font-size: .7rem; font-weight: 600; color: var(--muted); background: #F1F4F9; text-align: left; }
.pk-table td { padding: 9px 12px; border-top: 1px solid #EEF1F6; vertical-align: middle; }
.pk-table .text-end { text-align: right; }
.part { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 500; }
.part-ico { flex-shrink: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: #4A5568; background: #EEF2F8; }
.part-ico.wood { background: linear-gradient(135deg, #E0B07A, #B9824A); }
.pk-total { font-family: var(--display); font-weight: 700; color: var(--blue); }
.num-bump { display: inline-block; animation: bump .35s var(--out); }
.pk-actions { display: flex; justify-content: flex-end; margin-top: 16px; }
.pk-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 0; border-radius: 10px;
  font-size: .88rem; font-weight: 600; color: #fff; background: var(--blue);
  box-shadow: 0 10px 20px -10px rgba(10, 87, 224, .8); transition: filter .2s ease, opacity .2s ease;
}
.pk-btn:hover { filter: brightness(1.08); }
.pk-btn:disabled { opacity: .45; box-shadow: none; cursor: not-allowed; filter: none; }

/* Order */
.pk-order-top { justify-content: space-between; flex-wrap: wrap; }
.pk-prod-mini { display: flex; align-items: center; gap: 12px; }
.pk-prod-mini b { display: block; font-family: var(--display); font-size: 1.05rem; }
.pk-badge { display: inline-block; margin-top: 3px; padding: 2px 8px; border-radius: 999px; font-size: .68rem; font-weight: 600; color: var(--blue); background: #E3ECFF; }
.pk-qty small { display: block; margin-bottom: 4px; font-size: .7rem; color: var(--muted); text-align: center; }
.pk-stepper { display: flex; align-items: center; gap: 6px; padding: 4px; border-radius: 12px; border: 1px solid #D5DDEA; background: #fff; }
.pk-stepper button { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 9px; color: var(--ink); background: #F1F4F9; transition: background-color .2s ease, color .2s ease; }
.pk-stepper button:hover { color: var(--blue); background: #E3ECFF; }
.pk-stepper button[aria-disabled="true"] { opacity: .35; cursor: default; }
.pk-stepper output { min-width: 44px; text-align: center; font-family: var(--display); font-size: 1.3rem; font-weight: 700; }

/* Orders list */
.pk-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.pk-filter button { padding: 6px 12px; border-radius: 999px; font-size: .76rem; font-weight: 600; color: var(--text); background: #fff; border: 1px solid #D5DDEA; }
.pk-filter button[aria-pressed="true"] { color: #fff; background: var(--blue); border-color: var(--blue); }
.pk-orders { list-style: none; display: flex; flex-direction: column; gap: 10px; padding: 0; margin: 0; }
.pk-order {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px; border-radius: 14px; text-align: left;
  color: var(--ink); background: #fff; border: 1px solid #E4E9F2; transition: border-color .2s ease, box-shadow .2s ease;
}
button.pk-order:hover { border-color: var(--blue); box-shadow: 0 12px 24px -16px rgba(10, 87, 224, .6); }
.pk-order.fresh { animation: freshRow 2s ease; }
@keyframes freshRow { from { background: #DDF2FF; border-color: var(--cyan); } }
.pk-thumb { flex-shrink: 0; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; font-size: 1.4rem; color: #8A5A2B; background: #F3EDE4; }
.pk-order-copy { flex: 1; min-width: 0; }
.pk-order-copy b { display: block; font-family: var(--display); font-size: .95rem; }
.pk-order-copy span { display: block; font-size: .82rem; color: var(--text); }
.pk-order-copy small { display: block; font-size: .72rem; color: var(--muted); }
.pk-order > .bi-chevron-right { color: var(--muted); }
.pk-status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .7rem; font-weight: 700; white-space: nowrap; }
.st-new { color: #8A6200; background: #FFF4CC; }
.st-progress { color: #0A47B8; background: #E3ECFF; }
.st-done { color: #0F7A54; background: #DDF7EC; }
.pk-empty { padding: 30px; text-align: center; font-size: .85rem; color: var(--muted); }

/* Prepare */
.pk-order-head { gap: 14px; }
.pk-order-head b { margin-right: 8px; font-family: var(--display); font-size: 1.1rem; }
.pk-order-head small { display: block; margin-top: 3px; font-size: .76rem; color: var(--muted); }
.pk-order-head small i { margin-right: 3px; }
.pk-check td:first-child, .pk-check th:first-child { width: 40px; }
.pk-check .form-check-input { width: 1.15em; height: 1.15em; margin: 0; cursor: pointer; }
.pk-check .form-check-input:checked { background-color: var(--blue); border-color: var(--blue); }
.pk-check label { cursor: pointer; }
.pk-check tr.picked td { background: #F4FAF7; }
.ok-stock { font-weight: 600; color: #0F8A5F; }
.short { font-weight: 600; color: #C7304E; }
.short small { display: block; font-size: .68rem; font-weight: 500; }

.pk-toast {
  position: absolute; right: 18px; bottom: 18px; z-index: 5; display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 10px; font-size: .8rem; color: #fff; background: #071428;
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .6);
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .3s ease, transform .3s ease;
}
.pk-toast.show { opacity: 1; transform: none; }
.pk-toast i { color: #5EE0B0; }

/* Connect an online store or sales system */
.connect {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 28px;
  max-width: 1120px; margin: 44px auto 0; padding: 24px 28px; border-radius: 22px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(130, 170, 255, .22);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.cn-visual { display: flex; align-items: center; }
.cn-node { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 78px; }
.cn-node i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; font-size: 1.2rem; color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(130, 170, 255, .3); }
.cn-node small { font-size: .7rem; color: rgba(226, 236, 255, .65); white-space: nowrap; }
.cn-line {
  width: 46px; height: 2px; margin-bottom: 20px;
  background: repeating-linear-gradient(90deg, var(--cyan) 0 5px, transparent 5px 10px);
  animation: wireX .8s linear infinite;
}
.cn-line.rev { animation-direction: reverse; }
.cn-hub { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 20px; border-radius: 16px; background: #0B1A3C; border: 1px solid rgba(8, 184, 248, .5); box-shadow: 0 0 0 6px rgba(8, 184, 248, .08), 0 0 30px -4px rgba(8, 184, 248, .6); }
.cn-copy h3 { margin-bottom: 4px; font-family: var(--display); font-size: 1.2rem; font-weight: 700; color: #fff; }
.cn-copy p { margin: 0; font-size: .94rem; color: var(--on-dark); }

@media (max-width: 991.98px) {
  .pk { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .pk-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pk-steps::before { display: none; }
  .pk-steps button { height: 100%; align-items: center; gap: 10px; padding: 10px 12px; background: rgba(255, 255, 255, .03); border-color: rgba(130, 170, 255, .22); }
  .pk-steps b { margin: 0; font-size: .88rem; line-height: 1.3; }
  .pk-steps small { display: none; }
  .pk-num { width: 30px; height: 30px; font-size: .85rem; }
  .pk-caption { display: flex; align-items: flex-start; gap: 8px; margin: -6px 2px 0; font-size: .9rem; line-height: 1.5; color: var(--on-dark); }
  .pk-caption::before { content: "\F431"; font-family: "bootstrap-icons"; color: var(--cyan); }
  .connect { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
}
@media (max-width: 575.98px) {
  .pk-view { padding: 16px 12px; }
  .pk-product .pk-shelf { display: none; }
  .pk-fields { grid-template-columns: minmax(0, 1fr); }
  .pk-table { font-size: .78rem; }
  .pk-table th, .pk-table td { padding: 8px; }
  .part { gap: 8px; }
  .part-ico { width: 26px; height: 26px; font-size: .85rem; }
  .pk-actions .pk-btn { width: 100%; justify-content: center; }
  .pk-order { gap: 10px; padding: 10px; }
  .pk-thumb { width: 40px; height: 40px; font-size: 1.2rem; }
  .connect { padding: 22px 18px; }
  .cn-node { width: 64px; }
  .cn-line { width: 26px; }
}

/* =========================================================
   BRANDING — build your own
   ========================================================= */
.builder { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; max-width: 440px; margin-top: 28px; }
.builder > * { width: 100%; }
.builder > .btn { width: auto; }
.b-label { display: block; float: none; width: auto; margin-bottom: 8px; padding: 0; font-size: .8rem; font-weight: 600; color: var(--muted); }
.b-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.b-input { padding: .7rem .9rem; border-radius: 12px; border: 1px solid #D5DDEA; font-weight: 500; color: var(--ink); }
.b-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(10, 87, 224, .15); }
.builder input[type="radio"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.swatches { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.swatches label {
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  background: var(--c); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35);
  transition: transform .2s var(--out), box-shadow .2s ease;
}
.swatches label:hover { transform: scale(1.1); }
.swatches input:checked + label { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--c); }
.swatches input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 5px; }
.swatches .sw-custom {
  position: relative; display: grid; place-items: center; color: #fff; font-size: .85rem;
  background: conic-gradient(#f43f5e, #f59e0b, #84cc16, #06b6d4, #3b82f6, #a855f7, #f43f5e);
}
.sw-custom input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.sw-custom.active { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); }
.sw-custom:focus-within { outline: 2px solid var(--ink); outline-offset: 5px; }
.sw-custom i { text-shadow: 0 1px 2px rgba(0, 0, 0, .4); pointer-events: none; }

/* Upload your own logo */
.logo-drop {
  position: relative; display: flex; align-items: center; gap: 14px; margin: 0; padding: 14px 16px; cursor: pointer;
  border-radius: 14px; background: #fff; border: 1.5px dashed #B9C6DB;
  transition: border-color .2s ease, background-color .2s ease;
}
.logo-drop:hover, .logo-drop.over { border-color: var(--blue); background: #F3F7FF; }
.logo-drop:focus-within { outline: 2px solid var(--blue); outline-offset: 3px; }
.logo-drop.done { border-style: solid; border-color: rgba(15, 138, 95, .45); background: #F4FBF8; }
.logo-drop.bad { border-color: #E05A75; background: #FFF5F7; }
.logo-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ld-icon {
  flex-shrink: 0; display: grid; place-items: center; width: 48px; height: 48px; overflow: hidden;
  border-radius: 12px; font-size: 1.35rem; color: var(--blue); background: #E3ECFF;
}
.ld-icon img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.ld-copy b { display: block; font-size: .95rem; color: var(--ink); }
.ld-copy small { display: block; font-size: .8rem; line-height: 1.45; color: var(--muted); word-break: break-word; }
.ld-remove { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 0; border: 0; background: none; font-size: .82rem; font-weight: 600; color: var(--muted); }
.ld-remove:hover { color: #C7304E; }
.ld-remove[hidden] { display: none; }

.brand-stage {
  --brand: #0A57E0; --on-brand: #fff;
  --brand-dark: color-mix(in srgb, var(--brand) 32%, #050B18);
  --brand-soft: color-mix(in srgb, var(--brand) 13%, #fff);
  position: relative; min-height: 560px;
}
.brand-stage *, .brand-stage *::before { transition: background-color .5s ease, color .5s ease, border-color .5s ease, box-shadow .5s ease; }
.mini-dash {
  position: absolute; left: 0; top: 40px; width: 80%; min-height: 400px;
  display: grid; grid-template-columns: 168px minmax(0, 1fr);
  overflow: hidden; border-radius: 16px; background: #fff;
  border: 1px solid rgba(11, 27, 58, .08);
  box-shadow: 0 40px 80px -40px rgba(11, 27, 58, .5);
}
.md-side { display: flex; flex-direction: column; gap: 4px; padding: 16px 12px; color: rgba(255, 255, 255, .75); background: var(--brand-dark); }
.md-logo { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; font-size: .85rem; color: #fff; min-width: 0; }
.md-logo b, .ui-logo b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-mark {
  flex-shrink: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  font-family: var(--display); font-size: .82rem; font-weight: 700; color: var(--on-brand); background: var(--brand);
}
.brand-mark.has-logo { width: 34px; height: 34px; padding: 3px; background: #fff; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.md-link { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 8px; font-size: .76rem; }
.md-link.active { color: var(--on-brand); background: var(--brand); }
.md-main { padding: 18px; background: #F6F8FC; min-width: 0; }
.md-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; color: var(--ink); }
.md-btn { padding: 6px 10px; border-radius: 8px; font-size: .7rem; font-weight: 600; color: var(--on-brand); background: var(--brand); }
.md-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.md-kpis div { padding: 10px; border-radius: 10px; background: #fff; border: 1px solid #E6EBF3; }
.md-kpis small { display: block; font-size: .66rem; color: var(--muted); }
.md-kpis b { font-family: var(--display); font-size: 1.1rem; color: var(--ink); }
.md-chart { display: flex; align-items: flex-end; gap: 8px; height: 170px; padding: 12px; border-radius: 10px; background: #fff; border: 1px solid #E6EBF3; }
.md-chart i { flex: 1; height: var(--h); border-radius: 5px 5px 2px 2px; background: var(--brand); }
.md-chart i:nth-child(4) { background: var(--brand-dark); }

.phone-ui { position: absolute; right: 0; top: 0; z-index: 2; width: 250px; }
.ui { display: flex; flex-direction: column; overflow: hidden; aspect-ratio: 640 / 1390; border-radius: 28px; font-size: .72rem; color: var(--ink); background: #fff; }
.ui-status { display: flex; justify-content: space-between; padding: 10px 18px 6px; font-size: .68rem; font-weight: 600; color: #fff; background: var(--brand-dark); }
.ui-logo { display: flex; align-items: center; gap: 8px; padding: 8px 16px 12px; font-size: .85rem; color: #fff; background: var(--brand-dark); min-width: 0; }
.ui-banner { display: flex; align-items: center; gap: 8px; margin: 12px 14px 8px; padding: 14px; border-radius: 14px; font-size: .95rem; font-weight: 700; color: var(--on-brand); background: var(--brand); }
.ui-search { margin: 0 14px 8px; padding: 8px 10px; border-radius: 10px; color: var(--muted); background: #F1F4F9; }
.ui-chips { display: flex; gap: 6px; margin: 0 14px 10px; }
.ui-chips span { padding: 4px 10px; border-radius: 99px; font-size: .66rem; background: #F1F4F9; }
.ui-chips .on { color: var(--on-brand); background: var(--brand); }
.ui-item { display: flex; align-items: center; gap: 10px; margin: 0 14px 8px; padding: 9px; border-radius: 12px; border: 1px solid #EDF0F5; }
.ui-item > div { flex: 1; min-width: 0; }
.ui-item b { display: block; font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-item small { font-size: .62rem; color: var(--muted); }
.ui-thumb { flex-shrink: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: var(--brand); background: var(--brand-soft); }
.ui-pill { flex-shrink: 0; padding: 2px 7px; border-radius: 99px; font-size: .6rem; font-weight: 600; }
.ui-pill.warn { color: #8F5400; background: #FFF1D6; }
.ui-pill.ok { color: #0F7A54; background: #DDF7EC; }
.ui-nav { display: flex; justify-content: space-around; align-items: center; margin-top: auto; padding: 10px 8px 16px; font-size: 1rem; color: var(--muted); border-top: 1px solid #EDF0F5; }
.ui-nav .active { color: var(--brand); }
.ui-scan { display: grid; place-items: center; width: 40px; height: 40px; margin-top: -22px; border-radius: 50%; color: var(--on-brand); background: var(--brand); box-shadow: 0 8px 18px -6px var(--brand); }

@media (max-width: 767.98px) {
  .brand-stage { min-height: 0; padding-bottom: 150px; }
  .mini-dash { position: relative; top: 0; width: 100%; min-height: 300px; grid-template-columns: 112px minmax(0, 1fr); }
  .md-side { padding: 12px 8px; }
  .md-link { font-size: .68rem; padding: 6px; }
  .md-main { padding: 12px; }
  .md-kpis { gap: 6px; }
  .md-chart { height: 110px; }
  .phone-ui { top: auto; bottom: 0; right: -6px; transform: scale(.66); transform-origin: right bottom; }
}

/* =========================================================
   HOW IT WORKS — the conveyor
   ========================================================= */
.conveyor { --p: 0; position: relative; }
.stations { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 0; margin: 0 0 34px; }
.station {
  position: relative; padding: 22px; border-radius: 18px;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line);
  transition: border-color .4s ease, background-color .4s ease;
}
.station::after { content: ""; position: absolute; left: 50%; bottom: -35px; width: 1px; height: 34px; background: linear-gradient(var(--line), transparent); transition: background .4s ease; }
.station.lit { border-color: rgba(8, 184, 248, .5); background: rgba(8, 184, 248, .07); }
.station.lit::after { background: linear-gradient(var(--cyan), transparent); }
.st-num { font-family: var(--mono); font-size: .75rem; color: rgba(226, 236, 255, .45); transition: color .4s ease; }
.station.lit .st-num { color: var(--cyan); }
.st-icon {
  display: grid; place-items: center; width: 44px; height: 44px; margin: 14px 0 16px;
  border-radius: 12px; font-size: 1.2rem; color: #fff; background: rgba(255, 255, 255, .06);
  transition: background-color .4s ease, box-shadow .4s ease;
}
.station.lit .st-icon { background: var(--blue); box-shadow: 0 10px 30px -8px rgba(8, 184, 248, .8); }
.station h3 { font-size: 1.05rem; font-weight: 600; color: #fff; margin-bottom: 6px; }
.station p { font-size: .9rem; color: var(--on-dark); margin: 0; }

.belt { position: relative; height: 84px; }
.belt-surface {
  position: absolute; left: 0; right: 0; top: 42px; height: 16px; border-radius: 8px;
  background: repeating-linear-gradient(90deg, #14244b 0 14px, #0d1a38 14px 28px);
  background-position: calc(var(--p) * 1120px) 0;
  border: 1px solid rgba(130, 170, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 14px 30px -12px rgba(0, 0, 0, .8);
}
.rollers { position: absolute; left: 10px; right: 10px; top: 64px; display: flex; justify-content: space-between; }
.rollers i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(130, 170, 255, .28); border-top-color: var(--cyan); transform: rotate(calc(var(--p) * 2160deg)); }
.parcel { position: absolute; top: -2px; left: calc(12.5% - 30px + var(--p) * 75%); width: 60px; height: 44px; }
.p-top { position: absolute; left: 3px; right: 3px; top: 0; height: 10px; border-radius: 4px 4px 0 0; background: #E2BC8A; transform: perspective(60px) rotateX(38deg); transform-origin: bottom; }
.p-front { position: absolute; inset: 8px 0 0 0; overflow: hidden; border-radius: 4px; background: linear-gradient(#D4A872, #B4854F); box-shadow: inset 0 -6px 10px rgba(0, 0, 0, .15); transition: box-shadow .3s ease; }
.p-tape { position: absolute; left: 0; right: 0; top: 0; height: 7px; background: rgba(255, 240, 210, .45); }
.p-label { position: absolute; right: 6px; bottom: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 26px; height: 18px; padding: 2px; border-radius: 2px; background: #fff; }
.p-label img { width: 7px; height: 7px; }
.p-bars { width: 20px; height: 6px; background: repeating-linear-gradient(90deg, #111 0 1px, transparent 1px 2px, #111 2px 4px, transparent 4px 5px); }
.parcel.ping .p-front { box-shadow: inset 0 -6px 10px rgba(0, 0, 0, .15), 0 0 0 2px var(--cyan), 0 0 24px 4px rgba(8, 184, 248, .6); }

@media (max-width: 767.98px) {
  .conveyor { display: grid; grid-template-columns: 52px minmax(0, 1fr); }
  .stations { grid-column: 2; grid-row: 1; grid-template-columns: 1fr; gap: 16px; margin: 0; }
  .station::after { left: -24px; top: 50%; bottom: auto; width: 22px; height: 1px; background: linear-gradient(to left, var(--line), transparent); }
  .station.lit::after { background: linear-gradient(to left, var(--cyan), transparent); }
  .belt { grid-column: 1; grid-row: 1; height: auto; }
  .belt-surface { left: 10px; right: auto; top: 0; bottom: 0; width: 16px; height: auto; background: repeating-linear-gradient(180deg, #14244b 0 14px, #0d1a38 14px 28px); background-position: 0 calc(var(--p) * 1120px); }
  .rollers { display: none; }
  .parcel { left: -4px; top: calc(12.5% - 22px + var(--p) * 75%); width: 44px; height: 34px; }
  .p-label { width: 20px; height: 14px; right: 4px; bottom: 4px; }
  .p-bars { width: 14px; height: 4px; }
}

/* =========================================================
   PLANS — watch your setup take shape
   ========================================================= */
.planner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: stretch; }

/* Controls */
.pl-controls { display: flex; flex-direction: column; gap: 14px; }
.pl-row {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding: 18px 20px 16px; border-radius: 18px; background: #fff; border: 1px solid rgba(11, 27, 58, .08);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.pl-row:focus-within { border-color: rgba(10, 87, 224, .35); box-shadow: 0 20px 40px -30px rgba(10, 87, 224, .55); }
.pl-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.pl-top label { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.pl-top label i { color: var(--blue); }
.pl-step { display: flex; align-items: center; gap: 10px; }
.pl-step output { min-width: 92px; text-align: center; font-family: var(--display); font-size: 1.7rem; font-weight: 700; line-height: 1; letter-spacing: -0.02em; color: var(--ink); }
.pl-step output.bump { animation: bump .35s var(--out); }
@keyframes bump { 50% { color: var(--blue); transform: scale(1.12); } }
.pl-btn {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  color: var(--ink); background: #fff; border: 1px solid #D5DDEA;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.pl-btn:hover { color: var(--blue); border-color: var(--blue); }
.pl-btn:active { background: #EEF3FC; }
.pl-btn[aria-disabled="true"] { opacity: .35; cursor: default; }
.pl-btn[aria-disabled="true"]:hover { color: var(--ink); border-color: #D5DDEA; }
.pl-hint { margin: 6px 0 0; font-size: .82rem; color: var(--muted); }
.planner .form-range::-webkit-slider-thumb { background: var(--blue); }
.planner .form-range::-moz-range-thumb { background: var(--blue); }
.planner .form-range::-webkit-slider-runnable-track { background: #E3E9F3; }
.planner .form-range::-moz-range-track { background: #E3E9F3; }
.planner .form-range:focus::-webkit-slider-thumb { box-shadow: 0 0 0 1px #fff, 0 0 0 .25rem rgba(10, 87, 224, .25); }

/* The live map */
.pl-stage {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; color: #E8EEFA;
  background: radial-gradient(ellipse 60% 45% at 50% 0%, rgba(10, 87, 224, .38), transparent 70%), #071330;
  box-shadow: 0 40px 80px -40px rgba(11, 27, 58, .65);
}
.ps-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px; font-size: .92rem; font-weight: 600; color: #fff; border-bottom: 1px solid var(--line); }
.ps-live { display: inline-flex; align-items: center; gap: 8px; font-size: .76rem; font-weight: 500; color: rgba(226, 236, 255, .6); }
.ps-body {
  position: relative; flex: 1; display: flex; flex-direction: column; min-height: 430px; padding: 26px 24px 24px;
  background-image: radial-gradient(rgba(130, 170, 255, .14) 1px, transparent 1px);
  background-size: 22px 22px;
}
.ps-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ps-wires path { fill: none; stroke: rgba(8, 184, 248, .55); stroke-width: 1.5; stroke-dasharray: 4 6; animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -20; } }

.ps-hub {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 12px;
  width: max-content; max-width: 100%; margin: 0 auto 64px; padding: 12px 16px; border-radius: 16px;
  background: #0B1A3C; border: 1px solid rgba(8, 184, 248, .45);
  box-shadow: 0 0 0 6px rgba(8, 184, 248, .06), 0 20px 40px -20px rgba(8, 184, 248, .55);
}
.ps-hub b { display: block; font-size: .92rem; color: #fff; }
.ps-hub small { font-size: .76rem; color: rgba(226, 236, 255, .65); }
#hubProducts { font-weight: 600; color: #fff; }
.ps-stack { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, 14px); gap: 3px; margin-left: 4px; font-size: 14px; line-height: 1; color: #D4A872; }
.ps-stack i { animation: pop .3s var(--out); }
.ps-stack .more { font-weight: 700; color: #fff; }
@keyframes pop { from { transform: scale(0); } }

.ps-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fit, 118px); justify-content: center; gap: 14px; margin: auto 0; }
.br-card {
  display: flex; flex-direction: column; gap: 8px; min-height: 108px; padding: 10px;
  border-radius: 14px; background: #0C1B3E; border: 1px solid rgba(130, 170, 255, .2);
}
.br-card.pop { animation: brPop .45s var(--out) backwards; }
@keyframes brPop { from { opacity: 0; transform: translateY(10px) scale(.85); } }
.br-name { display: flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.br-name i { color: var(--cyan); }
.br-staff { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 4px; flex: 1; }
.br-staff i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: .66rem; color: #fff; background: #1D4FB8; animation: pop .3s var(--out); }
.br-staff i:nth-child(3n + 2) { background: #0D8FC4; }
.br-staff i:nth-child(3n) { background: #3B5A9A; }
.br-staff .more { align-self: center; font-size: .7rem; font-weight: 600; color: rgba(226, 236, 255, .75); }
.br-card small { font-size: .7rem; color: rgba(226, 236, 255, .55); }
.br-more { align-items: center; justify-content: center; text-align: center; font-size: .78rem; color: rgba(226, 236, 255, .7); border-style: dashed; }
.br-more i { font-size: 1.2rem; color: var(--cyan); }

.ps-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 22px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.ps-summary { margin: 0; font-weight: 600; color: #fff; }
.ps-summary small { display: block; font-size: .72rem; font-weight: 500; color: rgba(226, 236, 255, .55); }

/* Included in every plan */
.pl-includes { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 18px; margin-top: 36px; }
.pl-inc-label { font-size: .9rem; font-weight: 600; color: var(--ink); }
.pl-includes ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; margin: 0; }
.pl-includes li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; font-size: .84rem; color: var(--text); background: #fff; border: 1px solid rgba(11, 27, 58, .08); }
.pl-includes li i { color: var(--blue); }

@media (max-width: 991.98px) {
  .planner { grid-template-columns: minmax(0, 1fr); }
  .ps-body { min-height: 0; }
}
@media (max-width: 575.98px) {
  .pl-row { padding: 16px; }
  .pl-step { gap: 6px; }
  .pl-step output { min-width: 74px; font-size: 1.4rem; }
  .ps-head, .ps-foot { padding: 14px 16px; }
  .ps-live { display: none; }
  .ps-body { padding: 20px 14px; }
  .ps-hub { margin-bottom: 52px; padding: 10px 12px; gap: 10px; }
  .ps-stack { display: none; }
  .ps-grid { grid-template-columns: repeat(auto-fit, 98px); gap: 10px; }
  .br-name i { display: none; }
  .ps-foot .btn { width: 100%; }
}

/* =========================================================
   FAQ
   ========================================================= */
.faq-sec { padding-top: 40px; }
.faq {
  --bs-accordion-bg: #fff;
  --bs-accordion-border-color: rgba(11, 27, 58, .08);
  --bs-accordion-active-bg: #fff;
  --bs-accordion-active-color: var(--blue);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 3px rgba(8, 184, 248, .25);
}
.faq .accordion-item { margin-bottom: .75rem; overflow: hidden; border-radius: 16px !important; border: 1px solid rgba(11, 27, 58, .08); transition: border-color .3s ease, box-shadow .3s ease; }
.faq .accordion-item:has(.accordion-button:not(.collapsed)) { border-color: rgba(10, 87, 224, .3); box-shadow: 0 20px 40px -28px rgba(11, 27, 58, .4); }
.faq .accordion-button { padding: 1.1rem 1.3rem; font-size: 1rem; font-weight: 600; color: var(--ink); }
.faq .accordion-button:not(.collapsed) { color: var(--blue); box-shadow: none; }
.faq .accordion-body { padding: 0 1.3rem 1.2rem; color: var(--text); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-sec { background: radial-gradient(ellipse 55% 70% at 85% 50%, rgba(10, 87, 224, .28), transparent 70%), var(--night); }
.contact-lead { font-size: 1.02rem; color: var(--on-dark); }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 12px; padding: 0; margin: 26px 0 0; }
.contact-list li { display: flex; align-items: center; gap: 12px; color: rgba(226, 236, 255, .85); }
.contact-list i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--cyan); background: rgba(255, 255, 255, .06); }
.contact-list a { color: #fff; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.form-frame {
  position: relative; padding: 1px; border-radius: 24px;
  background: conic-gradient(from var(--angle), rgba(8, 184, 248, 0), rgba(8, 184, 248, .85), rgba(10, 87, 224, 0) 28%, rgba(10, 87, 224, 0) 62%, rgba(8, 184, 248, .55), rgba(8, 184, 248, 0));
  animation: angle 7s linear infinite;
}
@keyframes angle { to { --angle: 360deg; } }
.demo-form {
  --bs-form-invalid-color: #FF8FA3;
  --bs-form-invalid-border-color: #FF8FA3;
  padding: 30px; border-radius: 23px; background: #0A1630;
}
.demo-form .form-label { font-size: .85rem; font-weight: 500; color: rgba(226, 236, 255, .8); }
.demo-form .form-control, .demo-form .form-select {
  padding: .7rem .9rem; border-radius: 12px; color: #fff;
  background-color: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12);
}
.demo-form .form-select {
  padding-right: 2.4rem;
  --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23cfe0ff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}
.demo-form .form-select option { color: var(--ink); }
.demo-form .form-control::placeholder { color: rgba(226, 236, 255, .35); }
.demo-form .form-control:focus, .demo-form .form-select:focus { color: #fff; background-color: rgba(255, 255, 255, .06); border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(8, 184, 248, .2); }
.form-status { min-height: 1.4em; margin-top: 12px; font-size: .9rem; }
.form-status.ok { color: #5EE0B0; }
.form-status.err { color: #FF9BB0; }
.demo-form.flash { animation: flash 1.2s ease; }
.demo-form .form-control.filled { animation: filled 1.8s ease; }
@keyframes filled { 0%, 45% { border-color: var(--cyan); background-color: rgba(8, 184, 248, .12); box-shadow: 0 0 0 4px rgba(8, 184, 248, .22); } }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(8, 184, 248, .6); } 100% { box-shadow: 0 0 0 18px rgba(8, 184, 248, 0); } }

@media (max-width: 575.98px) {
  .demo-form { padding: 22px 18px; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer { overflow: hidden; padding: 80px 0 28px; color: rgba(226, 236, 255, .7); background: var(--night); border-top: 1px solid var(--line); }
.brand-footer { margin-bottom: 14px; }
.footer-text { max-width: 360px; font-size: .92rem; }
.footer h4 { margin-bottom: 14px; font-size: .85rem; font-weight: 600; color: #fff; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; padding: 0; margin: 0; font-size: .9rem; }
.footer ul a { color: rgba(226, 236, 255, .7); text-decoration: none; }
.footer ul a:hover { color: #fff; }
.footer-mark { margin: 56px 0 14px; text-align: center; user-select: none; }
.footer-mark span {
  position: relative; display: inline-block; padding: 0 .04em;
  font-family: var(--display); font-weight: 700; font-size: clamp(4rem, 15vw, 12rem); line-height: .95; letter-spacing: -0.05em;
  color: transparent;
  background: repeating-linear-gradient(90deg, rgba(130, 170, 255, .55) 0 3px, transparent 3px 6px, rgba(130, 170, 255, .55) 6px 7px, transparent 7px 11px, rgba(130, 170, 255, .55) 11px 15px, transparent 15px 17px);
  -webkit-background-clip: text;
  background-clip: text;
  animation: bars 40s linear infinite;
}
.footer-mark span::after {
  content: ""; position: absolute; top: 4%; bottom: 4%; left: 0; width: 2px;
  background: var(--cyan); box-shadow: 0 0 14px 3px rgba(8, 184, 248, .7);
  animation: footScan 5s ease-in-out infinite alternate;
}
@keyframes bars { to { background-position: 340px 0; } }
@keyframes footScan { to { left: 100%; } }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 22px; font-size: .82rem; border-top: 1px solid var(--line); }
.footer-bottom strong { font-weight: 600; color: #fff; }
.footer-bottom a { color: rgba(226, 236, 255, .85); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(226, 236, 255, .35); }
.footer-bottom a:hover { color: #fff; text-decoration-color: #fff; }

/* ---------- Shared responsive spacing ---------- */
@media (max-width: 767.98px) {
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
  .activity-sec { padding-top: 24px; }
  .faq-sec { padding-top: 20px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .scan-reveal .sr-text { clip-path: none; }
  .sr-line, .wipe, .footer-mark span::after { display: none; }
}
