/* =========================================================
   Mimz — homepage
   ========================================================= */

/* ---------- Brand hero: immersive, follows the light / dark theme ---------- */
.hero {
  --h-bg: #f2f6fd; --h-ink: var(--ink); --h-ink-2: var(--ink-2);
  --h-grid: color-mix(in srgb, var(--mz-primary-600) 18%, transparent);
  --h-glass: rgba(255, 255, 255, .7); --h-glass-line: rgba(11, 18, 32, .09);
  --h-aur1: color-mix(in srgb, var(--mz-primary-400) 42%, transparent);
  --h-aur2: color-mix(in srgb, var(--mz-accent-300) 45%, transparent);
  --h-aur3: color-mix(in srgb, var(--mz-sky-400) 35%, transparent);
  --h-glow: color-mix(in srgb, var(--mz-primary-500) 35%, transparent);
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  margin-top: calc(-1 * var(--sub));
  padding: calc(var(--sub) + clamp(48px, 7vw, 96px)) 0 clamp(110px, 12vw, 160px);
  background: var(--h-bg); color: var(--h-ink);
  border-radius: 0 0 clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px);
}
[data-theme="dark"] .hero {
  --h-bg: #040815; --h-ink: #fff; --h-ink-2: #aab6cc;
  --h-grid: color-mix(in srgb, var(--mz-primary-400) 30%, transparent);
  --h-glass: rgba(13, 21, 38, .6); --h-glass-line: rgba(255, 255, 255, .11);
  --h-aur1: color-mix(in srgb, var(--mz-primary-600) 62%, transparent);
  --h-aur2: color-mix(in srgb, var(--mz-accent-500) 42%, transparent);
  --h-aur3: color-mix(in srgb, var(--mz-sky-400) 22%, transparent);
  --h-glow: color-mix(in srgb, var(--mz-primary-400) 55%, transparent);
}
.hero-bg { position: absolute; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.aur { position: absolute; border-radius: 50%; will-change: transform; animation: aurora 18s ease-in-out infinite alternate; }
.aur.a1 { width: 62vw; height: 62vw; max-width: 860px; max-height: 860px; left: -16%; top: -34%; background: radial-gradient(closest-side, var(--h-aur1), transparent); }
.aur.a2 { width: 52vw; height: 52vw; max-width: 720px; max-height: 720px; right: -14%; top: -14%; background: radial-gradient(closest-side, var(--h-aur2), transparent); animation-delay: -6s; }
.aur.a3 { width: 46vw; height: 46vw; max-width: 640px; max-height: 640px; left: 30%; bottom: -38%; background: radial-gradient(closest-side, var(--h-aur3), transparent); animation-delay: -11s; }
@keyframes aurora { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(6%, 8%) scale(1.15); } 100% { transform: translate(-5%, 4%) scale(.94); } }
.hero-floor {
  position: absolute; left: -50%; right: -50%; bottom: -12%; height: 62%;
  transform: perspective(620px) rotateX(64deg); transform-origin: 50% 100%;
  background-image: linear-gradient(var(--h-grid) 1px, transparent 1px), linear-gradient(90deg, var(--h-grid) 1px, transparent 1px);
  background-size: 64px 64px; animation: floor 5s linear infinite;
  mask-image: linear-gradient(to top, #000 0%, transparent 82%); -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 82%);
}
@keyframes floor { to { background-position: 0 64px, 0 0; } }
.hero-spot { position: absolute; inset: 0; background: radial-gradient(560px circle at var(--sx, 50%) var(--sy, 35%), var(--h-glow), transparent 62%); opacity: .55; transition: opacity .4s; }
.hero:hover .hero-spot { opacity: 1; }
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-in { position: relative; z-index: 2; }

.announce {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 8px 6px 6px; border-radius: 999px; text-decoration: none;
  background: var(--h-glass); color: var(--h-ink); border: 1px solid var(--h-glass-line); font-size: 14px; font-weight: 550;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 8px 24px -14px rgba(11, 18, 32, .5);
  transition: border-color .2s, transform .2s;
}
.announce:hover { border-color: color-mix(in srgb, var(--mz-primary-500) 60%, transparent); transform: translateY(-1px); }
.announce .new { padding: 3px 10px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 13px; font-weight: 700; }
.announce svg { width: 15px; height: 15px; opacity: .6; }
@keyframes sheen { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero h1 { color: var(--h-ink); }
.hero .lede { color: var(--h-ink-2); max-width: 54ch; }
.hero-glass { color: var(--h-ink) !important; --_bg: var(--h-glass); --_bd: var(--h-glass-line); }

/* Floating product cards (desktop) */
.hcards { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hcard {
  position: absolute; width: 206px; text-align: left; font-size: 13px; color: var(--h-ink);
  transform: translate3d(calc(var(--px, 0) * var(--d) * -26px), calc(var(--py, 0) * var(--d) * -22px), 0);
  transition: transform .3s ease-out;
}
.hc-in {
  padding: 14px 15px; border-radius: 18px; background: var(--h-glass); border: 1px solid var(--h-glass-line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 24px 50px -24px rgba(11, 18, 32, .55), inset 0 1px 0 rgba(255, 255, 255, .25);
  animation: bob 7s ease-in-out infinite;
}
.hc2 .hc-in { animation-delay: -2s; } .hc3 .hc-in { animation-delay: -4s; } .hc4 .hc-in { animation-delay: -1s; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.hc1 { left: 1.6%; top: 27%; } .hc2 { left: 3%; top: 62%; } .hc3 { right: 1.6%; top: 25%; } .hc4 { right: 3%; top: 60%; }
.hc-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.hc-top b { font-family: var(--mz-font-display); font-size: 14px; }
.hc-ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--c); color: #fff; font-style: normal; }
.hc-ic svg { width: 14px; height: 14px; }
.hc-live { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--c); }
.hc-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.4s steps(1) infinite; }
.hcard p { margin: 0 0 10px; color: var(--h-ink-2); line-height: 1.4; }
.hc-mono { font-family: var(--mono); font-size: 13px; color: var(--h-ink) !important; }
.hc-flow { display: flex; gap: 5px; }
.hc-flow span { flex: 1; text-align: center; padding: 5px 0; border-radius: 8px; font-size: 13px; font-weight: 650; background: color-mix(in srgb, var(--h-ink) 7%, transparent); }
.hc-flow span.on { background: var(--c); color: #fff; }
.hc-ok { display: inline-flex; padding: 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #047857; background: rgba(16, 185, 129, .16); }
[data-theme="dark"] .hc-ok { color: #6ee7b7; }
.hc-bars { display: grid; gap: 6px; }
.hc-bars span { position: relative; font-size: 13px; font-weight: 650; padding: 4px 8px; border-radius: 6px; overflow: hidden; z-index: 0; }
.hc-bars span::before { content: ""; position: absolute; inset: 0; width: var(--w); z-index: -1; background: color-mix(in srgb, var(--c) 30%, transparent); border-radius: inherit; }
.hc-spark { width: 100%; height: 36px; color: var(--c); }
@media (max-width: 1320px) { .hcards { display: none; } }

/* Scroll cue */
.scroll-cue { position: absolute; left: 50%; bottom: 26px; z-index: 2; width: 26px; height: 42px; margin-left: -13px; border-radius: 14px; border: 2px solid color-mix(in srgb, var(--h-ink) 35%, transparent); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--h-ink); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

.hero h1 { margin: 18px auto 0; max-width: 18ch; font-size: clamp(32px, 4.6vw, 60px); font-weight: 720; letter-spacing: -0.045em; line-height: 1.05; }
/* Rotating line: each phrase carries its own gradient so text stays crisp while it moves */
.rotator {
  display: grid; justify-items: center; line-height: 1.2; margin-top: 12px;
  /* break out of the h1's narrow max-width so every phrase fits on one line */
  width: calc(100vw - 32px); position: relative; left: 50%; transform: translateX(-50%);
  font-size: min(1em, 6.2vw);
}
.rotator span {
  grid-area: 1 / 1; padding: 0 .04em .08em; white-space: nowrap;
  font-family: var(--mz-font-serif); font-style: italic; font-weight: 400; color: var(--brand-ink); letter-spacing: -0.01em;
  opacity: 0; transform: translateY(.3em);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.rotator span.on { opacity: 1; transform: none; transition-delay: .3s; }
.rotator span.off { opacity: 0; transform: translateY(-.3em); transition-delay: 0s; }
.hero .lede { max-width: 60ch; margin: 22px auto 0; }
.hero-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hero-products { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 52px auto 0; max-width: 900px; }
.hp {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; text-decoration: none;
  background: var(--h-glass); color: var(--h-ink); border: 1px solid var(--h-glass-line); font-weight: 650; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 14px;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
  animation: fadeUp .7s var(--ease) both;
}
.hp:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 60%, transparent); box-shadow: 0 12px 24px -12px var(--c); }
.hp .mi-icon { width: 30px; height: 30px; border-radius: 50%; font-size: 16px; background: var(--c); color: #fff; }

/* Card demos */
.demo { margin-top: auto; padding: 18px; border-radius: 18px; background: rgba(4, 10, 24, .36); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 14px; }
.demo-label { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: rgba(255, 255, 255, .62); margin: 0 0 10px; }
.demo-label span:last-child { font-weight: 500; }
.row { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; border-radius: 11px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); }
.row + .row { margin-top: 7px; }
.row .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta { font-size: 13px; color: rgba(255, 255, 255, .62); font-variant-numeric: tabular-nums; }
.flow { display: grid; grid-template-columns: 1fr 48px 1fr; align-items: center; }
.flow .row.fire { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .24); }
.wire { position: relative; height: 2px; margin: 26px 6px 0; background: rgba(255, 255, 255, .25); border-radius: 2px; }
.wire::after { content: ""; position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #fff; animation: travel 1.6s var(--ease) infinite; }
@keyframes travel { from { left: 0; opacity: 0; } 20% { opacity: 1; } to { left: calc(100% - 8px); opacity: 0; } }
@keyframes travelY { from { top: 0; opacity: 0; } 20% { opacity: 1; } to { top: calc(100% - 8px); opacity: 0; } }
.query { background: rgba(255, 255, 255, .12) !important; border-color: rgba(255, 255, 255, .22) !important; padding: 12px 14px !important; }
.caret { display: inline-block; width: 1.5px; height: 1.05em; background: #fff; vertical-align: -2px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
.intent { margin: 12px 0; font-size: 13px; letter-spacing: .06em; color: rgba(255, 255, 255, .66); font-weight: 700; }
.bar { width: 72px; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .15); overflow: hidden; flex: none; }
.bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease); }
.you { gap: 12px; }
.you b { font-weight: 500; font-size: 13px; color: rgba(255, 255, 255, .6); }
.agent { margin-top: 10px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); }
.agent-head { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 10px; }
.agent-head .chip { width: 28px; height: 28px; border-radius: 8px; font-size: 16px; margin: 0; box-shadow: none; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; align-items: center; gap: 10px; padding: 5px 0; color: rgba(255, 255, 255, .55); transition: color .3s; }
.tick { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .4); font-size: 13px; color: transparent; flex: none; transition: background-color .3s, border-color .3s, color .3s; }
.steps li.done { color: #fff; }
.steps li.done .tick { background: #fff; border-color: #fff; color: var(--deep); }
.steps li.wait .tick { border-style: dashed; animation: spin 3s linear infinite; }
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #ffd27a; box-shadow: 0 0 0 0 rgba(255, 210, 122, .7); animation: ping 1.8s infinite; flex: none; }
.fired { padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); }
.fired-label { display: flex; align-items: center; gap: 6px; font-size: 13px; letter-spacing: .06em; font-weight: 700; color: #ffd27a; }
.spark { width: 100%; height: 54px; margin: 10px 0 6px; }
.fired p { margin: 0; font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, .72); }
.up { color: #86efac; font-weight: 700; font-size: 13px; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 650; padding: 3px 9px; border-radius: 999px; flex: none; }
.ok { background: #d1fae5; color: #065f46; }
.risk { background: #fef3c7; color: #92400e; }
.bad { background: #fee2e2; color: #991b1b; }
.score { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); }
.score strong { font-size: 28px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; background: rgba(255, 255, 255, .9); color: var(--deep); }
.soon-row {
  margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 18px 22px; border-radius: 20px; border: 1px dashed var(--line-2); background: color-mix(in srgb, var(--surface) 55%, transparent);
}
.soon-row .l { display: flex; align-items: center; gap: 14px; }
.soon-row .mi-icon { --c: #64748b; }
.soon-row b { font-size: 16px; }
.soon-row p { color: var(--ink-3); font-size: 14px; }

/* ---------- Stats band ---------- */
.stats { background: var(--dark); color: #fff; position: relative; overflow: hidden; }
.stats::before { content: ""; position: absolute; inset: 0; background: radial-gradient(40% 60% at 15% 0%, color-mix(in srgb, var(--mz-primary-600) 35%, transparent), transparent 70%), radial-gradient(40% 60% at 85% 100%, color-mix(in srgb, var(--mz-accent-500) 25%, transparent), transparent 70%); }
.stats .wrap { position: relative; }
.stats .section-head .lede { color: #b6b7c7; }
.stats .eyebrow { color: var(--mz-primary-300); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--dark-line); border: 1px solid var(--dark-line); border-radius: 22px; overflow: hidden; }
.stat { background: var(--dark); padding: 34px 28px; }
.stat strong { display: block; font-size: clamp(40px, 5vw, 64px); font-weight: 750; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 12px; color: #a3a4b5; font-size: 16px; }

/* ---------- Testimonials (image 7 style) ---------- */
.tabs-pills { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.tabs-pills button { padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-weight: 600; font-size: 14px; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.tabs-pills button:hover { border-color: var(--ink); }
.tabs-pills button[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tgrid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.tquote {
  position: relative; overflow: hidden; border-radius: 26px; padding: clamp(28px, 4vw, 46px); color: #fff; min-height: 380px; display: flex; flex-direction: column;
  background: linear-gradient(130deg, #1e3a8a 0%, var(--mz-primary-600) 45%, var(--mz-accent-500) 110%);
}
.tquote::after { content: ""; position: absolute; width: 380px; aspect-ratio: 1; border-radius: 50%; right: -120px; bottom: -160px; border: 1px solid rgba(255, 255, 255, .2); }
.tquote > svg { width: 38px; height: 38px; opacity: .6; }
.tquote blockquote { margin: 22px 0 0; font-size: clamp(21px, 2.3vw, 30px); line-height: 1.32; letter-spacing: -0.02em; font-weight: 550; }
.tquote .who { margin-top: auto; padding-top: 26px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.tquote .who b { display: block; font-size: 16px; }
.tquote .who span { font-size: 14px; opacity: .78; }
.tquote .who a { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .18); flex: none; transition: background .2s; }
.tquote .who a:hover { background: rgba(255, 255, 255, .32); }
.tside { display: grid; gap: 20px; grid-template-rows: 1fr 1fr; }
.tstat { border-radius: 26px; background: #fff; border: 1px solid var(--line); padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.tstat strong { font-size: clamp(48px, 5vw, 68px); font-weight: 750; letter-spacing: -0.05em; line-height: 1; }
.tstat span { margin-top: 10px; color: var(--ink-2); }
.tind { border-radius: 26px; background: var(--dark); color: #fff; padding: 32px; display: flex; flex-direction: column; justify-content: flex-end; }
.tind small { color: #a3a4b5; font-size: 14px; }
.tind b { margin-top: 6px; font-size: 28px; letter-spacing: -0.03em; }
.tind .prods { margin-top: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.tind .prods a { font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .1); text-decoration: none; }
.tind .prods a:hover { background: rgba(255, 255, 255, .2); }
.t-anim { animation: fadeUp .5s var(--ease); }
.tprogress { height: 3px; border-radius: 3px; background: var(--line); margin-top: 22px; overflow: hidden; }
.tprogress i { display: block; height: 100%; width: 0; background: var(--ink); }
.tprogress i.run { animation: grow 7s linear forwards; }
@keyframes grow { to { width: 100%; } }

/* ---------- Integrations marquee ---------- */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee + .marquee .marquee-track { animation-direction: reverse; animation-duration: 46s; }
.marquee + .marquee { margin-top: 14px; }
.logo-tile { display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-radius: 18px; background: #fff; border: 1px solid var(--line); font-weight: 650; white-space: nowrap; }
.logo-tile i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-weight: 800; color: #fff; font-size: 14px; }

/* ---------- Security ---------- */
.secure { background: var(--surface); border-radius: 32px; border: 1px solid var(--line); padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 52px); }
.sec-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.sec { border-radius: 20px; background: var(--bg); border: 1px solid var(--line); padding: 26px 16px; text-align: center; transition: transform .3s var(--ease), box-shadow .3s; }
.sec:hover { box-shadow: 0 18px 30px -18px rgba(29, 78, 216, .45); }
.sec .mi-icon { margin: 0 auto 14px; width: 46px; height: 46px; border-radius: 50%; background: var(--surface); font-size: 20px; }
.sec b { display: block; font-size: 16px; }
.sec span { display: block; margin-top: 6px; font-size: 14px; color: var(--ink-3); line-height: 1.4; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .split { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 32px 1fr; }
  .sec-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .demo { margin-top: 22px; padding: 14px; }
  .flow { grid-template-columns: 1fr; }
  .wire { width: 2px; height: 22px; margin: 8px auto; }
  .wire::after { left: -3px; animation-name: travelY; }
  .tgrid { grid-template-columns: 1fr; }
  .tside { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
}
@media (max-width: 600px) {
  .sec-grid { grid-template-columns: 1fr 1fr; }
  .tside { grid-template-columns: 1fr; }
  .stat { padding: 26px 20px; }
  .hero-products .hp { font-size: 14px; }
}

/* Security cards: kit 3D tilt + cursor glow */
.sec { position: relative; overflow: hidden; isolation: isolate; }
.sec::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
  background: radial-gradient(180px circle at var(--mz-x, 50%) var(--mz-y, 50%), color-mix(in srgb, var(--mz-primary-400) 22%, transparent), transparent 70%); }
.sec:hover::before { opacity: 1; }

/* ---------- Stats band follows the theme (light band in light mode) ---------- */
[data-theme="light"] .stats { background: linear-gradient(180deg, var(--surface-2), var(--bg)); color: var(--ink); }
[data-theme="light"] .stats::before { opacity: .35; }
[data-theme="light"] .stats .section-head .lede { color: var(--ink-2); }
[data-theme="light"] .stats .eyebrow { color: var(--brand-ink); }
[data-theme="light"] .stat-grid { background: var(--line); border-color: var(--line); }
[data-theme="light"] .stat { background: var(--surface); }
[data-theme="light"] .stat span { color: var(--ink-3); }

@media (prefers-reduced-motion: reduce) { .aur, .hero-floor, .hc-in, .hero-word span { animation: none; } }
@media (max-width: 720px) { .hero { padding-bottom: 96px; } .scroll-cue { display: none; } .hero-floor { height: 45%; } }

/* ---------- Products: vertical stacking cards (whole card is a link) ---------- */
.prods { padding: clamp(72px, 9vw, 120px) 0 clamp(40px, 6vw, 80px); }
.pstack { display: grid; gap: 28px; padding-bottom: 20px; }
.pc {
  --s: 1; --b: 1;
  position: sticky; top: calc(var(--hdr) + 24px + var(--i) * 14px);
  display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  min-height: 470px; padding: clamp(28px, 3.6vw, 52px); border-radius: 32px;
  text-decoration: none; color: var(--ink); overflow: hidden; isolation: isolate;
  background: linear-gradient(140deg, color-mix(in srgb, var(--c) 10%, var(--surface)) 0%, var(--surface) 62%);
  border: 1px solid color-mix(in srgb, var(--c) 24%, var(--line));
  box-shadow: 0 34px 70px -42px color-mix(in srgb, var(--c) 70%, transparent), inset 0 1px 0 rgba(255, 255, 255, .35);
  transform: scale(var(--s)); transform-origin: 50% 0;
  transition: border-color .4s, box-shadow .4s;
}
[data-theme="dark"] .pc {
  background: linear-gradient(140deg, color-mix(in srgb, var(--c) 18%, #0b1324) 0%, #0a1120 66%);
  box-shadow: 0 34px 70px -40px color-mix(in srgb, var(--c) 60%, transparent), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.pc:hover { border-color: color-mix(in srgb, var(--c) 60%, transparent); }
.pc:focus-visible { outline: 3px solid var(--c); outline-offset: 4px; }
/* cursor spotlight + faint tech grid */
.pc-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55; transition: opacity .4s;
  background: radial-gradient(620px circle at var(--mz-x, 75%) var(--mz-y, 30%), color-mix(in srgb, var(--c) 24%, transparent), transparent 62%); }
.pc:hover .pc-glow { opacity: 1; }
.pc::after { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: linear-gradient(color-mix(in srgb, var(--c) 9%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--c) 9%, transparent) 1px, transparent 1px);
  background-size: 40px 40px; mask-image: linear-gradient(110deg, transparent 35%, #000 100%); -webkit-mask-image: linear-gradient(110deg, transparent 35%, #000 100%); }

.pc-meta { display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.pc-num { font-size: 16px; font-weight: 600; color: var(--c); }
.pc-line { flex: 1; max-width: 120px; height: 1px; background: linear-gradient(90deg, var(--c), transparent); }
.pc-cat { color: var(--ink-3); }
.pc-name { display: flex; align-items: center; gap: 16px; margin-top: 22px; }
.pc-ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; flex: none; color: #fff; font-size: 28px;
  background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 60%, #000)); box-shadow: 0 12px 30px -10px var(--c); }
.pc-word { font-family: var(--mz-font-display); font-size: clamp(38px, 4.6vw, 64px); font-weight: 700; letter-spacing: -0.045em; line-height: 1;
  color: var(--ink); }
.pc-word::after { content: "."; color: var(--c); }
.pc-tag { margin-top: 18px; font-size: clamp(20px, 2vw, 26px); font-weight: 650; letter-spacing: -0.025em; color: var(--ink); }
.pc-desc { margin-top: 10px; max-width: 48ch; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.pc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pc-chips span { padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink);
  background: color-mix(in srgb, var(--c) 9%, transparent); border: 1px solid color-mix(in srgb, var(--c) 28%, transparent); }

/* the "live screen" mini demo (a dark product screen in both themes) */
.pc-visual { perspective: 1200px; }
.pc-screen { position: relative; border-radius: 22px; overflow: hidden; color: #fff; padding-bottom: 16px;
  background: radial-gradient(120% 80% at 80% 0%, color-mix(in srgb, var(--c) 45%, transparent), transparent 60%), linear-gradient(160deg, var(--deep), #070c18);
  border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 40px 80px -36px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .04) inset;
  transform: rotateY(-9deg) rotateX(5deg) translateZ(0); transition: transform .7s var(--ease); }
.pc:hover .pc-screen { transform: rotateY(0) rotateX(0) translateY(-6px); }
.pc-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.pc-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.pc-bar i:first-child { background: #ff5f57; } .pc-bar i:nth-child(2) { background: #febc2e; } .pc-bar i:nth-child(3) { background: #28c840; }
.pc-bar span { margin-left: 10px; font-family: var(--mono); font-size: 13px; color: rgba(255, 255, 255, .55); }
.pc-screen .demo { margin: 16px 16px 0; }
.pc.in-view .bar i, .hx-card.is-active.in-view .bar i { transform: scaleX(1); transition-delay: .5s; }

/* arrow badge (decorative; the whole card is the link) */
.pc-go { margin-top: 26px; display: inline-flex; width: fit-content; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  font-family: var(--mz-font-display); font-size: 14px; font-weight: 600; white-space: nowrap;
  color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); background: color-mix(in srgb, var(--surface) 60%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .3s, color .3s, box-shadow .3s, gap .3s var(--mz-ease-spring); }
.pc-go svg { width: 16px; height: 16px; transition: transform .35s var(--mz-ease-spring); }
.pc:hover .pc-go { background: var(--c); color: #fff; gap: 12px; box-shadow: 0 10px 26px -10px var(--c); }
.pc:hover .pc-go svg { transform: translateX(3px); }

/* agent chip used inside the Agentic demo */
.chip { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #fff; color: var(--c, #2563eb); font-size: 24px; }

@media (max-width: 980px) {
  .pc { position: relative; top: auto; transform: none; filter: none; grid-template-columns: 1fr; min-height: 0; }
  .pc-screen { transform: none; }
}
@media (max-width: 600px) { .pc { padding: 24px 20px; border-radius: 26px; } .pc-ic { width: 46px; height: 46px; font-size: 24px; } }

/* Stacked cards dim with a cheap overlay (no filter repaint) */
.pc::before { content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; border-radius: inherit; background: #050913; opacity: var(--dim, 0); }
.hero h1 { font-weight: 600; }

/* ---------- Products, layout B: horizontal row of expanding cards ---------- */
.layout-tag { margin: 0 0 16px; font-family: var(--mz-font-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; gap: 12px; }
.layout-tag::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pstack + .layout-tag { margin-top: clamp(48px, 6vw, 88px); }
.hx { display: flex; gap: 10px; height: 620px; }
.hx-card { position: relative; flex: 1 1 0; min-width: 0; display: flex; border-radius: 26px; overflow: hidden; color: #fff; background: #0b1020; isolation: isolate;
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); transition: flex-grow .45s cubic-bezier(.77, 0, .175, 1), border-color .3s; }
.hx-card.is-active { flex-grow: 5.2; border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.hx-strip { all: unset; box-sizing: border-box; position: relative; flex: 0 0 100%; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 22px 16px; cursor: pointer;
  background: radial-gradient(130% 60% at 50% 108%, var(--glow), transparent 70%), linear-gradient(180deg, #121a2c, #0a0f1d); transition: flex-basis .45s cubic-bezier(.77, 0, .175, 1); }
.hx-card.is-active .hx-strip { flex-basis: 19%; cursor: default; }
.hx-strip:focus-visible { outline: 2px solid var(--c2); outline-offset: -4px; }
.hx-num { font-family: var(--mz-font-mono); font-size: 13px; color: rgba(255, 255, 255, .5); }
.hx-copy { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hx-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #fff; color: var(--deep); font-size: 20px; margin-bottom: 12px; box-shadow: 0 10px 26px -10px var(--glow); transition: transform .4s; }
.hx-card:not(.is-active):hover .hx-ic { transform: translateY(-4px); }
.hx-name { font-family: var(--mz-font-display); font-size: clamp(15px, 1.3vw, 19px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.hx-cat { font-size: 13px; line-height: 1.3; color: rgba(255, 255, 255, .62); }
.hx-peek { display: none; }
.hx-panel { position: relative; flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; padding: clamp(24px, 2.8vw, 38px); overflow: hidden;
  background: radial-gradient(90% 75% at 100% 100%, color-mix(in srgb, var(--c) 45%, transparent), transparent 70%), radial-gradient(110% 80% at 100% 0%, rgba(255, 255, 255, .12), transparent 55%), linear-gradient(140deg, var(--deep), var(--mid));
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; }
.hx-card.is-active .hx-panel { opacity: 1; visibility: visible; transition: opacity .3s .2s, visibility 0s; }
.hx-panel::before { content: ""; position: absolute; width: 130%; aspect-ratio: 1; left: 18%; top: -80%; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .1); pointer-events: none; }
.hx-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.hx-tag { font-family: var(--mz-font-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2); white-space: nowrap; }
.hx-explore { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; color: #fff; font-size: 14px; font-weight: 600; padding: 10px 18px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .85); text-decoration: none; transition: background .2s, color .2s; }
.hx-explore:hover { background: #fff; color: var(--deep); }
.hx-explore svg { transition: transform .25s; }
.hx-explore:hover svg { transform: translateX(3px); }
.hx-head { position: relative; margin: 0; font-family: var(--mz-font-display); font-size: clamp(26px, 2.4vw, 36px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; color: #fff; max-width: 22ch; }
.hx-desc { position: relative; margin: 12px 0 0; max-width: 54ch; font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, .8); }
.hx-panel .demo { position: relative; margin-top: auto; }
@media (max-width: 1100px) { .hx { height: 660px; } .hx .split { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .hx { flex-direction: column; height: auto; }
  .hx-card { flex: none; flex-direction: column; }
  .hx-card.is-active { flex-grow: 0; }
  .hx-strip, .hx-card.is-active .hx-strip { flex: none; flex-direction: row; align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer; }
  .hx-copy { flex: 1; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 2px; align-items: center; }
  .hx-ic { grid-row: span 2; margin: 0; width: 42px; height: 42px; }
  .hx-peek { display: block; color: rgba(255, 255, 255, .6); transition: transform .3s; }
  .hx-card.is-active .hx-peek { transform: rotate(90deg); }
  .hx-panel { display: none; padding: 22px 18px; }
  .hx-card.is-active .hx-panel { display: flex; }
  .hx-top { flex-wrap: wrap; }
  .hx-panel .demo { margin-top: 22px; }
}
@media (prefers-reduced-motion: reduce) { .hx-card, .hx-strip, .hx-panel { transition: none !important; } }

/* ---------- Hero, editorial layout: headline → rotating line, brand wordmark set into the bottom edge ---------- */
.hero { padding-bottom: clamp(220px, 26vw, 390px); }
.hero h1 { margin: 6px auto 0; max-width: 15ch; font-family: var(--mz-font-display); font-size: clamp(42px, 6.4vw, 92px); font-weight: 600; letter-spacing: -0.045em; line-height: .98; color: var(--h-ink); text-wrap: balance; }
.hero h1 em { font-family: var(--mz-font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.015em; color: var(--brand-ink); }
.hero-rot { margin: 22px auto 0; font-size: clamp(18px, 1.7vw, 22px); color: var(--h-ink-2); }
.hero-rot .rotator { display: inline-grid; justify-items: start; vertical-align: bottom; width: auto; position: static; left: auto; transform: none; margin: 0 0 0 .2em; font-size: 1.2em; line-height: 1.15; }
.hero .lede { margin-top: 18px; }

.hero-word { position: absolute; left: 50%; bottom: 0; z-index: 1; pointer-events: none; user-select: none; display: flex;
  font-family: var(--mz-font-brand); font-style: italic; font-weight: 800; font-size: clamp(170px, 31vw, 500px); line-height: .78; letter-spacing: -0.07em;
  transform: translate(calc(-50% + var(--px, 0) * -14px), .05em); transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.hero-word span { display: block; padding-right: .07em;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand-ink) 62%, transparent) 0%, color-mix(in srgb, var(--brand-ink) 30%, transparent) 50%, color-mix(in srgb, var(--h-ink) 6%, transparent) 96%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--brand-ink) 40%, transparent);
  opacity: 0; transform: translateY(35%); animation: heroRise .7s cubic-bezier(.16, 1, .3, 1) forwards; }
.hero-word span:nth-child(2) { animation-delay: .08s; }
.hero-word span:nth-child(3) { animation-delay: .16s; }
.hero-word span:nth-child(4) { animation-delay: .24s; }
@keyframes heroRise { to { opacity: 1; transform: none; } }
.hero .scroll-cue { display: none; }
@media (max-width: 600px) {
  .hero-rot .rotator { display: grid; justify-items: center; margin: 4px 0 0; }
    .hero { padding-bottom: 215px; }
}
@media (prefers-reduced-motion: reduce) { .hero-word span { opacity: 1; transform: none; } .hero-word { transition: none; } }

/* No index numbers on the product cards */
.pc-num, .pc-line, .hx-num { display: none; }
.hx-strip { justify-content: flex-end; }

/* ---------- Small screens: the product cards stack (sticky) like on desktop ----------
   Each card is kept shorter than a phone screen: the live demo becomes a short preview. */
@media (max-width: 980px) {
  .pstack { gap: 16px; padding-bottom: 32px; }
  .pc { position: sticky; top: calc(var(--hdr) + 10px + var(--i) * 10px); transform: scale(var(--s)); gap: 18px; }
  .pc-name { margin-top: 12px; }
  .pc-tag { margin-top: 12px; }
  .pc-chips { margin-top: 14px; }
  .pc-go { margin-top: 16px; }
  .pc-screen { max-height: 170px; -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
}
@media (max-width: 600px) {
  .pc { padding: 22px 18px; border-radius: 24px; }
  .pc-word { font-size: 34px; }
  .pc-tag { font-size: 18px; }
  .pc-desc { font-size: 14px; line-height: 1.5; }
  .pc-chips span { padding: 5px 11px; }
  .pc-screen { max-height: 150px; }
}
@media (prefers-reduced-motion: reduce) { .pc { transform: none; } }

/* =========================================================
   Smooth hovering on Mac (Retina + Safari/Chrome on macOS)
   ========================================================= */
/* Parallax and glow are moved by home.js with transforms (GPU), not CSS variables */
.hcard { transform: none; will-change: transform; }
.hero-spot { inset: auto; left: 0; top: 0; width: 1120px; height: 1120px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--h-glow), transparent); transform: translate3d(calc(50vw - 560px), -260px, 0); will-change: transform; }
/* Frosted glass only where nothing animates on top of it: these were re-blurring on every hover frame */
.hc-in { backdrop-filter: none; -webkit-backdrop-filter: none; background: color-mix(in srgb, var(--h-bg) 82%, transparent); }
[data-theme="dark"] .hc-in { background: rgba(13, 21, 38, .86); }
.hp { backdrop-filter: none; -webkit-backdrop-filter: none; background: color-mix(in srgb, var(--h-bg) 88%, var(--h-ink) 4%); transition: border-color .3s; }
.demo { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(4, 10, 24, .55); }
.pc-go { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface); transition: background-color .3s, color .3s; }
.pc:hover .pc-go { gap: 8px; box-shadow: none; }
/* Cards: hover changes no large blurred shadows; 3D screen keeps a stable layer (no edge shimmer) */
.pc { transition: border-color .4s; }
.pc-screen { -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.hx-card { transform: translateZ(0); }

/* Space between the stacking cards and the horizontal row (both shown) */
.pstack + .hx { margin-top: clamp(48px, 6vw, 88px); }

/* ---------- Phones: nothing wider than the screen ---------- */
@media (max-width: 980px) {
  /* card columns may shrink below their content's natural width (stops tags/demo spilling out) */
  .pc { grid-template-columns: minmax(0, 1fr); }
  .pc-text, .pc-visual, .pc-screen, .pc-screen .demo { min-width: 0; max-width: 100%; }
  .pc-chips span { max-width: 100%; }
}
@media (max-width: 600px) {
  /* big wordmark fits inside the screen width */
  .hero-word { font-size: 27vw; letter-spacing: -0.06em; }
  .hero { padding-bottom: 150px; }
}

/* Security band: lede on one line on wide screens (wraps naturally on small ones) */
.secure .section-head, .secure .section-head .lede { max-width: none; }
@media (min-width: 1024px) { .secure .section-head .lede { white-space: nowrap; } }

/* Six products, one platform: 3 x 2 summary cards */
.stat-grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-grid-6 .stat { display: block; text-decoration: none; color: inherit; transition: background-color .2s; }
.stat-grid-6 .stat strong { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.03em; color: #fff; }
.stat-grid-6 .stat:hover { background: color-mix(in srgb, var(--dark) 88%, #fff); }
[data-theme="light"] .stat-grid-6 .stat strong { color: var(--hi); }
[data-theme="light"] .stat-grid-6 .stat:hover { background: var(--bg); }
@media (max-width: 900px) { .stat-grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .stat-grid-6 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Solutions row (homepage, under Products) ---------- */
.sols { padding-top: clamp(40px, 6vw, 80px); }
.sols .hx { height: 600px; }
/* Collapsed strips: big, clear labels on a darker base */
.sols .hx-strip { padding: 24px 18px; background: radial-gradient(140% 55% at 50% 112%, var(--glow), transparent 70%), linear-gradient(180deg, #141c30, #080c18); }
.sols .hx-name { font-size: clamp(17px, 1.45vw, 21px); font-weight: 650; color: #fff; line-height: 1.2; text-wrap: balance; }
.sols .hx-cat { font-size: 14px; color: rgba(255, 255, 255, .78); }
.sols .hx-card:not(.is-active):hover .hx-strip { background: radial-gradient(140% 65% at 50% 112%, var(--glow), transparent 72%), linear-gradient(180deg, #18213a, #0a0f1d); }
/* Open card: a soft dark wash behind the text so it always reads clearly */
.sols .hx-panel::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(105deg, rgba(3, 7, 18, .55) 0%, rgba(3, 7, 18, .25) 45%, transparent 75%); }
.sols .hx-panel > * { position: relative; z-index: 1; }
.sols .hx-tag { display: inline-flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-family: inherit; font-size: 14px; font-weight: 650; background: rgba(255, 255, 255, .16); }
.sols .hx-tag svg { width: 16px; height: 16px; }
.sols .hx-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(20px, 2.6vw, 36px); align-items: center; min-height: 0; }
.sols .hx-head { font-size: clamp(28px, 2.6vw, 40px); max-width: 16ch; text-shadow: 0 2px 18px rgba(0, 0, 0, .25); }
.sols .hx-desc { font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, .92); max-width: 44ch; margin-top: 14px; }
.sols .hx-points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.sols .hx-points li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; font-weight: 550; line-height: 1.45; color: #fff; }
.sols .hx-points svg { flex: none; width: 20px; height: 20px; padding: 3px; margin-top: 1px; border-radius: 50%; background: #fff; color: var(--deep); }
.sols .hx-panel .demo { margin-top: 0; align-self: center; }
@media (max-width: 1200px) {
  .sols .hx { height: auto; min-height: 640px; }
  .sols .hx-body { grid-template-columns: 1fr; align-items: start; }
  .sols .hx-panel .demo { align-self: stretch; }
}
@media (max-width: 900px) {
  .sols .hx { min-height: 0; }
  .sols .hx-strip, .sols .hx-card.is-active .hx-strip { padding: 16px 18px; }
  .sols .hx-cat { font-size: 13px; }
  .sols .hx-head { font-size: 26px; }
  .sols .hx-desc { font-size: 16px; }
}
/* Solutions: open card gets the room; its own label column is hidden (the panel repeats it) */
@media (min-width: 901px) {
  .sols .hx-card.is-active { flex-grow: 7; }
  .sols .hx-card.is-active .hx-strip { flex-basis: 0; padding: 0; overflow: hidden; }
  .sols .hx-card.is-active .hx-strip > * { opacity: 0; }
  .sols .hx-strip { padding: 22px 14px; }
}
@media (min-width: 1201px) {
  .sols .hx-body { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
  .sols .hx-panel .demo { overflow: hidden; }
}
/* Solutions: two-column demos stack into one column so nothing is cut off */
.sols .hx-panel .demo .split, .sols .hx-panel .demo .flow { grid-template-columns: 1fr; display: grid; gap: 12px; }
.sols .hx-panel .demo .flow .wire { display: none; }
/* Solutions: every strip wears its product's colours (no plain black) */
.sols .hx-card { background: var(--deep); border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.sols .hx-strip,
.sols .hx-card:not(.is-active):hover .hx-strip {
  background:
    radial-gradient(120% 55% at 50% 110%, color-mix(in srgb, var(--c2) 55%, transparent), transparent 70%),
    radial-gradient(140% 70% at 0% 0%, rgba(255, 255, 255, .14), transparent 55%),
    linear-gradient(180deg, var(--mid), var(--deep) 85%);
}
.sols .hx-card:not(.is-active):hover .hx-strip { filter: brightness(1.12) saturate(1.1); }
.sols .hx-strip { transition: flex-basis .45s cubic-bezier(.77, 0, .175, 1), filter .3s; }
.sols .hx-ic { color: var(--mid); }
.sols .hx-name { text-shadow: 0 1px 12px rgba(0, 0, 0, .3); }
.sols .hx-cat { color: rgba(255, 255, 255, .85); }
/* Solutions strips: identical rows in every card, so icons, names and products line up */
@media (min-width: 901px) {
  .sols .hx-strip { justify-content: flex-end; }
  .sols .hx-copy { display: grid; grid-template-rows: 46px calc(1.2em * 3) calc(1.35em * 2); row-gap: 12px; align-items: start; gap: 12px 0; width: 100%; }
  .sols .hx-ic { margin: 0; }
  .sols .hx-name { font-size: clamp(15px, 1.2vw, 18px); line-height: 1.2; align-self: start; overflow-wrap: normal; }
  .sols .hx-cat { font-size: 13px; line-height: 1.35; align-self: start; }
}
/* Solutions: quicker, smoother opening (ease-out, no slow start) */
@media (min-width: 901px) {
  .sols .hx-card { transition: flex-grow .42s cubic-bezier(.22, 1, .36, 1), border-color .3s; will-change: flex-grow; }
  .sols .hx-strip { transition: flex-basis .42s cubic-bezier(.22, 1, .36, 1), padding .42s cubic-bezier(.22, 1, .36, 1), filter .25s; }
  .sols .hx-card.is-active .hx-strip > * { transition: opacity .12s; }
  .sols .hx-panel { transition: opacity .18s, visibility 0s .18s; }
  .sols .hx-card.is-active .hx-panel { transition: opacity .3s .1s, visibility 0s; }
  .sols .hx-panel > .hx-top, .sols .hx-panel > .hx-body { width: var(--pw, auto); flex-shrink: 0; }
  .sols .hx-panel > .hx-body { transform: translateX(14px); transition: transform .45s cubic-bezier(.22, 1, .36, 1); }
  .sols .hx-card.is-active .hx-panel > .hx-body { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .sols .hx-card, .sols .hx-strip, .sols .hx-panel, .sols .hx-panel > .hx-body { transition: none !important; } }
/* Stacking cards: each card and its dimming layer live on their own GPU layer, so scrolling never repaints them */
.pc { will-change: transform; backface-visibility: hidden; }
.pc::before { will-change: opacity; }
@media (prefers-reduced-motion: reduce) { .pc { will-change: auto; } }
/* ---------- At a glance: one coloured card per product ---------- */
.glance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gl-card { position: relative; display: flex; flex-direction: column; min-height: 220px; padding: 26px 26px 24px; border-radius: 24px; overflow: hidden; isolation: isolate;
  text-decoration: none; color: inherit; border: 1px solid color-mix(in srgb, var(--c) 26%, var(--dark-line));
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--c) 30%, transparent), transparent 60%), color-mix(in srgb, var(--c) 6%, #0d1322);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), border-color .3s, box-shadow .35s; }
.gl-card::after { content: ""; position: absolute; left: 26px; right: 26px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--c), var(--c2)); }
.gl-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 60%, transparent); box-shadow: 0 22px 44px -26px color-mix(in srgb, var(--c) 80%, transparent); }
.gl-top { display: flex; align-items: center; gap: 12px; }
.gl-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; flex: none; color: #fff; font-size: 20px;
  background: linear-gradient(140deg, var(--c2), var(--c)); box-shadow: 0 8px 20px -8px var(--c); }
.gl-ic svg { width: 1em; height: 1em; }
.gl-cat { font-family: var(--mz-font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--c2) 85%, #fff); }
.gl-name { margin-top: 22px; font-family: var(--mz-font-display); font-size: clamp(24px, 2.2vw, 30px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; color: #fff; }
.gl-line { margin-top: 8px; font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, .78); max-width: 32ch; }
.gl-go { margin-top: auto; align-self: flex-end; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  color: var(--c2); border: 1px solid color-mix(in srgb, var(--c) 50%, transparent); transition: background .3s, color .3s, transform .35s cubic-bezier(.22, 1, .36, 1); }
.gl-go svg { width: 17px; height: 17px; }
.gl-card:hover .gl-go { background: var(--c); color: #fff; transform: translateX(4px); }
[data-theme="light"] .gl-card { border-color: color-mix(in srgb, var(--c) 22%, var(--line));
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--c) 16%, transparent), transparent 60%), var(--surface); }
[data-theme="light"] .gl-cat { color: color-mix(in srgb, var(--c) 80%, #000); }
[data-theme="light"] .gl-name { color: var(--hi, #0b1220); }
[data-theme="light"] .gl-line { color: var(--ink-2); }
[data-theme="light"] .gl-go { color: color-mix(in srgb, var(--c) 85%, #000); }
[data-theme="light"] .gl-card:hover .gl-go { color: #fff; }
@media (max-width: 900px) { .glance { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gl-card { min-height: 200px; } }
@media (max-width: 560px) { .glance { grid-template-columns: minmax(0, 1fr); } .gl-card { min-height: 0; padding: 22px 20px 20px; } .gl-go { position: absolute; right: 18px; bottom: 18px; } .gl-line { padding-right: 44px; } }
@media (prefers-reduced-motion: reduce) { .gl-card, .gl-go { transition: none; } .gl-card:hover { transform: none; } }
.gl-ic { background: linear-gradient(140deg, var(--c), color-mix(in srgb, var(--c) 62%, #000)); }
.gl-ic svg { stroke-width: 2.2; }
@media (prefers-reduced-motion: reduce) { .gl-card, .gl-go { transition: none; } .gl-card:hover { transform: none; } }
.gl-ic { background: linear-gradient(140deg, var(--c), color-mix(in srgb, var(--c) 62%, #000)); }
.gl-ic svg { stroke-width: 2.2; }
/* Hero product pills: name + a short line on what it does */
.hp .hp-txt { display: grid; gap: 1px; text-align: left; line-height: 1.15; }
.hp .hp-txt b { font-weight: 650; }
.hp .hp-txt small { font-size: 12px; font-weight: 500; color: color-mix(in srgb, var(--h-ink, var(--ink)) 62%, transparent); white-space: nowrap; }
.hp:hover .hp-txt small { color: color-mix(in srgb, var(--c) 75%, var(--h-ink, var(--ink))); }
@media (max-width: 600px) { .hp .hp-txt small { font-size: 11px; } }
.hero-products { max-width: none; }
/* Hero pills in one line on wide screens */
@media (min-width: 1100px) {
  .hero-products { flex-wrap: nowrap; gap: 8px; }
  .hero-products .hp { padding: 7px 14px 7px 7px; gap: 8px; }
  .hero-products .hp .mi-icon { width: 28px; height: 28px; font-size: 15px; }
  .hero-products .hp .hp-txt small { font-size: 11.5px; }
}
/* Side cards sit beside the headline, clear of the pills and the wordmark */
@media (min-width: 1100px) {
  .hc1 { top: 150px; } .hc2 { top: 420px; } .hc3 { top: 140px; } .hc4 { top: 440px; }
  .hc-ok { white-space: nowrap; }
}
