/* Landing — top half (owned by sections/top.js): utility bar + sticky header (.hdr-*),
   hero (.hero-*), integrations marquee (.mq-*), media banner (.bnr-*), benefit cards
   (.ben-*) and the dark #products section (.sol-*). Sumsub-like layout and scale. */

:root { --hdr-util: 40px; --hdr-bar: 80px; --hdr-h: calc(var(--hdr-util) + var(--hdr-bar)); }

/* Shared helpers --------------------------------------------------------- */
.top-sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* Entrance animation (landing.js adds .in); content stays visible without JS. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
html.hdr-locked { overflow: hidden; }
.header-row { display: flex; align-items: center; height: var(--hdr-bar); } /* 404 page header */
[id] { scroll-margin-top: calc(var(--hdr-h) + 8px); }

/* Header ------------------------------------------------------------------ */
.hdr { position: sticky; top: 0; z-index: 60; border-bottom: 1px solid transparent; transition: border-color 0.2s ease; }
/* Blur on a pseudo-element: backdrop-filter on .hdr itself would trap the fixed mobile menu. */
.hdr::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
}
.hdr.is-scrolled { border-bottom-color: var(--line); }
.hdr-wrap { width: 100%; padding: 0 32px; }

.hdr-util { height: var(--hdr-util); border-bottom: 1px solid var(--line); font-size: 12px; }
.hdr-util-in { height: 100%; display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.hdr-util-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 500; }
.hdr-util-link:hover { color: var(--accent-text); }
.hdr-util-in { gap: 12px; }
.hdr-util .lang-trigger { font-size: 12px; height: 28px; gap: 5px; }
.hdr-util .lang-globe { width: 14px; height: 14px; }
.hdr-util .theme-switch { --ts-size: 28px; --ts-icon: 16px; }
.hdr-util-link { margin-right: 6px; }

.hdr-in { height: var(--hdr-bar); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.hdr-logo { justify-self: start; }
.hdr-nav { display: flex; align-items: center; gap: 8px; }
.hdr-nav-link { padding: 8px 22px; font-size: 16px; font-weight: 500; color: var(--text); border-radius: var(--radius-btn); transition: background 0.2s ease; }
.hdr-nav-link:hover { background: var(--bg-soft); }
.hdr-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }

/* Mega panel under "Products" ---------------------------------------------- */
.hdr-mega-trigger { display: inline-flex; align-items: center; gap: 6px; }
.hdr-mega-trigger svg { transition: transform 0.2s ease; color: var(--muted); }
.hdr.is-mega .hdr-mega-trigger { background: var(--bg-soft); }
.hdr.is-mega .hdr-mega-trigger svg { transform: rotate(180deg); color: var(--accent-text); }
.hdr-mega {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 1;
  background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  box-shadow: 0 32px 48px -28px rgba(30, 20, 90, 0.28);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}
.hdr.is-mega .hdr-mega { opacity: 1; visibility: visible; transform: none; transition: opacity 0.18s ease, transform 0.18s ease; }
.mg-in { display: grid; grid-template-columns: 320px minmax(0, 1fr) 280px; gap: 0; padding-top: 28px; padding-bottom: 32px; }
.mg-h { margin-bottom: 14px; font-size: 12px; line-height: 1; text-transform: uppercase; color: var(--muted); }

.mg-promo {
  position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 10px;
  min-height: 300px; padding: 24px; border-radius: var(--radius-lg); color: #fff;
  background:
    radial-gradient(60% 55% at 100% 100%, rgba(255, 154, 82, 0.4), transparent 70%),
    radial-gradient(70% 70% at 70% 30%, rgba(91, 70, 240, 0.55), transparent 70%),
    linear-gradient(140deg, #07061a 0%, #110c3a 55%, #1c1258 100%);
}
.mg-promo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1.5px) 0 0 / 18px 18px;
  -webkit-mask: radial-gradient(70% 60% at 70% 30%, #000, transparent 75%); mask: radial-gradient(70% 60% at 70% 30%, #000, transparent 75%);
}
.mg-promo-art { position: relative; flex: 1; min-height: 110px; }
.mg-promo-art i { position: absolute; display: block; border-radius: 14px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(177, 155, 255, 0.35); transition: transform 0.4s cubic-bezier(.2, .8, .2, 1); }
.mg-promo-art i:nth-child(1) { left: 0; top: 18px; width: 58%; height: 54px; }
.mg-promo-art i:nth-child(2) { right: 0; top: 0; width: 34%; height: 86px; background: linear-gradient(135deg, #8b7bff, #5b46f0 60%, #ff9a52); border: 0; }
.mg-promo-art i:nth-child(3) { left: 14%; top: 82px; width: 46%; height: 18px; border-radius: 999px; }
.mg-promo:hover .mg-promo-art i:nth-child(2) { transform: translateY(-4px) rotate(-3deg); }
.mg-promo:hover .mg-promo-art i:nth-child(1) { transform: translateX(4px); }
.mg-kicker { font-size: 12px; line-height: 1; text-transform: uppercase; color: #ffb47e; }
.mg-promo-title { font: 400 26px/1.1 var(--font-display); letter-spacing: -0.02em; }
.mg-promo-text { font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, 0.72); }
.mg-promo-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 15px; font-weight: 600; }
.mg-promo-cta svg { transition: transform 0.2s ease; }
.mg-promo:hover .mg-promo-cta svg { transform: translateX(3px); }

.mg-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; padding: 0 40px; border-right: 1px solid var(--line); margin-left: 40px; border-left: 1px solid var(--line); }
.mg-col ul, .mg-svcs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mg-prod { display: flex; gap: 14px; align-items: flex-start; padding: 10px 12px; margin: 0 -12px; border-radius: 14px; color: var(--text); transition: background 0.15s ease; }
.mg-prod:hover { background: var(--bg-soft); }
.mg-ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); transition: background 0.15s ease, color 0.15s ease; }
.mg-ic svg { width: 20px; height: 20px; }
.mg-prod:hover .mg-ic { background: linear-gradient(135deg, #8b7bff, #5b46f0 60%, #ff9a52); color: #fff; }
.mg-prod b { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.mg-prod small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.mg-svcs { padding-left: 40px; }
.mg-svc { display: block; padding: 7px 0; font: 400 19px/1.25 var(--font-display); letter-spacing: -0.01em; color: var(--text); transition: color 0.15s ease, transform 0.15s ease; }
.mg-svc:hover { color: var(--accent-text); transform: translateX(3px); }
@media (max-width: 1360px) {
  .mg-in { grid-template-columns: 260px minmax(0, 1fr) 240px; }
  .mg-cols { padding: 0 28px; margin-left: 28px; }
  .mg-svcs { padding-left: 28px; }
  .mg-svc { font-size: 17px; }
}
@media (max-width: 1180px) { .mg-promo { display: none; } .mg-in { grid-template-columns: minmax(0, 1fr) 240px; } .mg-cols { margin-left: 0; border-left: 0; padding-left: 0; } }
@media (max-width: 1024px) { .hdr-mega { display: none; } }
.hdr-plain { background: transparent; color: var(--text); padding: 0 14px; }
.hdr-plain:hover { background: var(--bg-soft); }
.hdr-cta { padding: 0 22px; }

.hdr-burger {
  display: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: var(--radius-btn);
  background: transparent; color: var(--text); cursor: pointer; position: relative;
}
.hdr-burger span {
  position: absolute; left: 9px; right: 9px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform 0.25s ease, top 0.25s ease;
}
.hdr-burger span:first-child { top: 14px; }
.hdr-burger span:last-child { top: 24px; }
.hdr.is-open .hdr-burger span:first-child { top: 19px; transform: rotate(45deg); }
.hdr.is-open .hdr-burger span:last-child { top: 19px; transform: rotate(-45deg); }

.hdr-menu { display: none; }

/* Hero ---------------------------------------------------------------------- */
.hero { max-width: var(--max); margin: 0 auto; padding: 96px var(--gutter) 0; text-align: center; }
.hero-in { max-width: 1100px; margin: 0 auto; }
.hero-title { font-size: 64px; line-height: 1; letter-spacing: -1px; color: var(--text); text-wrap: balance; }
.hero-sub { max-width: 700px; margin: 28px auto 0; font-size: 20px; line-height: 28px; color: var(--text-2); }
.hero-ctas { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-btn { padding: 0 32px; }
.hero-watch { gap: 10px; padding: 0 24px 0 18px; }
.hero-watch svg { color: var(--accent-text, var(--accent)); }
.hero-watch-len { font-size: 13px; color: var(--muted); }

/* Overview video dialog */
.vmodal {
  width: min(1200px, calc(100vw - 32px)); max-width: none; max-height: none; padding: 0; border: 0;
  background: transparent; overflow: visible;
}
.vmodal::backdrop { background: rgba(6, 5, 20, 0.82); backdrop-filter: blur(6px); }
.vmodal[open] { animation: vmodal-in 0.28s cubic-bezier(0.2, 0.7, 0.2, 1); }
/* Custom player ------------------------------------------------------------------- */
.vp {
  --vp-grad: linear-gradient(90deg, #7c6cff, #b19bff 55%, #ff9a52);
  position: relative; overflow: hidden; border-radius: 20px; background: #0d0a2e; color: #fff;
  box-shadow: 0 0 0 1px rgba(160, 148, 255, 0.22), 0 40px 120px -20px rgba(91, 75, 255, 0.45), 0 30px 80px rgba(0, 0, 0, 0.5);
}
.vp.is-idle { cursor: none; }
.vp:fullscreen { border-radius: 0; display: grid; place-items: center; background: #000; }
.vp-video { display: block; width: 100%; aspect-ratio: 16 / 9; cursor: pointer; }
.vp:fullscreen .vp-video { width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; }

.vp-big {
  position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 88px; height: 88px; padding: 0 0 0 4px;
  border: 0; border-radius: 50%; color: #fff; cursor: pointer; transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.12); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25), 0 10px 40px rgba(91, 75, 255, 0.5);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.vp-big::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; padding: 2px; background: var(--vp-grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.vp-big svg { width: 32px; height: 32px; }
.vp-big:hover { transform: translate(-50%, -50%) scale(1.06); }
.vp.is-playing .vp-big { opacity: 0; transform: translate(-50%, -50%) scale(0.85); pointer-events: none; }

.vp-bar {
  position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 12px; padding: 8px 10px;
  border-radius: 14px; background: rgba(13, 10, 46, 0.55); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); transition: opacity 0.35s ease, transform 0.35s ease;
}
.vp.is-idle .vp-bar { opacity: 0; transform: translateY(8px); pointer-events: none; }
.vp-btn { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: #fff; cursor: pointer; }
.vp-btn:hover { background: rgba(255, 255, 255, 0.12); }
.vp .vp-i-pause, .vp.is-playing .vp-i-play { display: none; }
.vp.is-playing .vp-i-pause { display: block; }
.vp-time { flex: none; font-size: 13px; color: rgba(255, 255, 255, 0.75); font-variant-numeric: tabular-nums; }

.vp-track { position: relative; flex: 1; display: flex; gap: 4px; height: 28px; align-items: center; cursor: pointer; touch-action: none; }
.vp-track:focus-visible { outline: 2px solid #b19bff; outline-offset: 2px; border-radius: 6px; }
.vp-seg { position: relative; flex-basis: 0; height: 4px; border-radius: 3px; overflow: hidden; background: rgba(255, 255, 255, 0.2); transition: height 0.2s ease; }
.vp-track:hover .vp-seg, .vp-seg.is-current { height: 6px; }
.vp-fill { position: absolute; inset: 0; background: var(--vp-grad); transform: scaleX(0); transform-origin: left; }
.vp-tip {
  position: absolute; bottom: calc(100% + 8px); padding: 5px 9px; border-radius: 8px; white-space: nowrap; font-size: 12px;
  background: #fff; color: #0d0a2e; transform: translateX(-50%); opacity: 0; pointer-events: none; transition: opacity 0.15s ease;
}
.vp-track:hover .vp-tip:not(:empty) { opacity: 1; }

.vp-end {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 24px;
  text-align: center; background: radial-gradient(80% 80% at 50% 60%, rgba(91, 75, 255, 0.35), rgba(13, 10, 46, 0.88));
  backdrop-filter: blur(6px); animation: vmodal-in 0.4s ease;
}
.vp-end[hidden] { display: none; }
.vp.is-ended .vp-bar, .vp.is-ended .vp-big { opacity: 0; pointer-events: none; }
.vp-end-title { max-width: 560px; font-size: clamp(22px, 3vw, 36px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 500; }
.vp-end-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.vp-replay { gap: 8px; background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255, 255, 255, 0.25); }
.vp-replay:hover { background: rgba(255, 255, 255, 0.18); }

.vp-chapters { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.vp-ch {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.8); font: inherit; font-size: 14px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.vp-ch:hover { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.vp-ch[aria-current="true"] { color: #fff; border-color: transparent; background: linear-gradient(90deg, rgba(124, 108, 255, 0.55), rgba(255, 154, 82, 0.45)); }
.vp-ch-t { font-size: 12px; opacity: 0.7; }
@media (max-width: 640px) {
  .vp { border-radius: 14px; }
  .vp-big { width: 64px; height: 64px; }
  .vp-big svg { width: 24px; height: 24px; }
  .vp-bar { left: 6px; right: 6px; bottom: 6px; gap: 6px; padding: 4px 6px; }
  .vp-time { display: none; }
  .vp-end { gap: 12px; padding: 12px; }
  .vp-end-title { font-size: 17px; }
  .vp-end-ctas .btn { height: 40px; padding: 0 14px; font-size: 14px; }
  .vp-chapters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .vp-ch { flex: none; }
}
.vmodal-close {
  position: absolute; right: 0; bottom: calc(100% + 12px); display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #fff; cursor: pointer; transition: background 0.2s ease;
}
.vmodal-close:hover { background: rgba(255, 255, 255, 0.24); }
/* Phone in landscape: fit the video to the screen height, close button inside the frame. */
@media (orientation: landscape) and (max-height: 560px) {
  .vmodal { width: min(calc((100vh - 24px) * 16 / 9), calc(100vw - 32px)); }
  .vmodal-close { z-index: 2; top: 8px; right: 8px; bottom: auto; width: 40px; height: 40px; background: rgba(13, 10, 46, 0.6); }
  .vp-chapters { display: none; }
}
@keyframes vmodal-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } }

/* Integrations marquee -------------------------------------------------------- */
.mq { margin-top: 104px; }
.mq-viewport {
  display: flex; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.mq-track {
  flex: none; display: flex; align-items: center; gap: 72px; margin: 0; padding: 0 72px 0 0; list-style: none;
  animation: mq-scroll 84s linear infinite; /* each track holds the list twice so it outruns even 4K widths */
}
.mq:hover .mq-track { animation-play-state: paused; }
.mq-item {
  height: 80px; display: flex; align-items: center; white-space: nowrap; --wm: 30px; font-size: var(--wm); line-height: 1;
  color: var(--muted); opacity: 0.75;
}
@keyframes mq-scroll { to { transform: translateX(-100%); } }

/* Wordmark styles (text-only logos) */
.wm-round { font-weight: 600; letter-spacing: -0.02em; }
.wm-bold { font-weight: 600; letter-spacing: -0.05em; }
:is(.mq-item, .sol-logo).wm-heavy { font-weight: 600; letter-spacing: -0.07em; font-size: calc(var(--wm) * 1.08); }
.wm-plain { font-weight: 500; letter-spacing: -0.02em; }
.wm-light { font-weight: 400; letter-spacing: 0.04em; }
.wm-serif { font-family: Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: -0.02em; }
:is(.mq-item, .sol-logo).wm-mono {
  font-family: var(--font-mono); font-weight: 500; font-size: calc(var(--wm) * 0.6); text-transform: uppercase;
  border: 2px solid currentColor; border-radius: 6px; padding: 0.3em 0.6em;
}
.mq-item.wm-mono { height: auto; }

/* Media banner ------------------------------------------------------------------ */
.bnr-sec { max-width: var(--max); margin: 16px auto 0; padding: 0 var(--gutter); }
.bnr {
  position: relative; isolation: isolate; display: grid; place-items: center; height: 560px;
  border-radius: var(--radius-lg); overflow: hidden; color: #fff;
  background:
    radial-gradient(120% 90% at 50% 120%, #3a2bb8 0%, rgba(58, 43, 184, 0) 60%),
    linear-gradient(160deg, #0d0a2e 0%, #1b1260 45%, #120c40 100%);
}
.bnr-scene { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.bnr-scene > span { position: absolute; will-change: transform, opacity; }
.bnr-orb { border-radius: 50%; filter: blur(60px); }
.bnr-orb-a {
  left: 8%; top: -20%; width: 38%; height: 80%; background: rgba(124, 108, 255, 0.45);
  animation: bnr-drift 12s ease-in-out infinite alternate;
}
.bnr-orb-b {
  right: 6%; bottom: -30%; width: 30%; height: 70%; background: rgba(255, 138, 61, 0.28);
  animation: bnr-drift 14s ease-in-out infinite alternate-reverse;
}
.bnr-waves { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bnr-wave { transform-box: view-box; will-change: transform; animation: bnr-flow 18s linear infinite; }
/* No CSS filters on the moving waves: blur/drop-shadow were re-rasterised every frame. */
.bnr-wave-glow { opacity: 0.16; animation-duration: 26s; }
.bnr-wave-violet { opacity: 0.85; animation-duration: 20s; }
.bnr-wave-orange { opacity: 0.95; animation-duration: 15s; animation-direction: reverse; }
/* Once the loop video plays it covers the CSS scene entirely, so stop drawing it. */
.bnr.is-playing .bnr-scene { visibility: hidden; }
.bnr.is-playing .bnr-scene > span, .bnr.is-playing .bnr-wave { animation-play-state: paused; }
/* Decorative text and art: plain arrow cursor, no accidental selection. */
.bnr, [class^="mq"], .cta-art, .mg-promo-art, .ind-stage { cursor: default; -webkit-user-select: none; user-select: none; }
/* Sections scrolled out of view pause their loops (landing.js toggles .is-off). */
.is-off, .is-off * { animation-play-state: paused !important; }
.bnr-wave-line { animation-duration: 11s; }
.bnr-sweep {
  top: 0; bottom: 0; left: -40%; width: 40%;
  background: linear-gradient(90deg, rgba(190, 180, 255, 0), rgba(200, 190, 255, 0.12), rgba(190, 180, 255, 0));
  animation: bnr-sweep 11s linear infinite;
}
.bnr-video {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.6s ease; pointer-events: none;
}
.bnr.is-playing .bnr-video { opacity: 1; }
.bnr.is-playing .bnr-words { opacity: 0; transition: opacity 0.4s ease; }
.bnr-words { position: relative; z-index: 1; display: grid; place-items: center; }
.bnr-word {
  grid-area: 1 / 1; font-size: clamp(56px, 9.4vw, 136px); font-weight: 500; line-height: 1;
  letter-spacing: -0.04em; white-space: nowrap; text-shadow: 0 4px 40px rgba(20, 10, 70, 0.5);
  opacity: 0; transform: translateY(28px); transition: opacity 0.3s ease, transform 0.45s ease;
}
.bnr-word.is-out { transform: translateY(-24px); }
.bnr-word.is-on {
  opacity: 1; transform: none;
  transition: opacity 0.6s ease 0.25s, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s;
}
@keyframes bnr-drift { from { transform: translate3d(-4%, 0, 0) scale(1); } to { transform: translate3d(6%, 8%, 0) scale(1.12); } }
@keyframes bnr-flow { to { transform: translateX(800px); } }
@keyframes bnr-sweep { to { transform: translateX(350%); } }

/* Benefit cards ------------------------------------------------------------------- */
.ben { max-width: var(--max); margin: var(--section) auto 0; padding: 0 var(--gutter); }
.ben-grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ben-card { display: flex; flex-direction: column; min-height: 274px; padding: 32px 32px 48px; border-radius: var(--radius-lg); background: var(--bg-soft); }
.ben-ico { align-self: flex-end; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 12px; background: var(--surface); color: var(--text); }
.ben-h { margin-top: 28px; font-size: 32px; line-height: 32px; letter-spacing: -1px; color: var(--text); }
.ben-p { margin-top: 12px; font-size: 18px; line-height: 25.2px; color: var(--text); }
.ben-grid > .ben-card:nth-child(2) { transition-delay: 0.06s; }
.ben-grid > .ben-card:nth-child(3) { transition-delay: 0.12s; }
.ben-grid > .ben-card:nth-child(4) { transition-delay: 0.18s; }

/* Dark #products section ------------------------------------------------------------ */
.sol { position: relative; margin-top: var(--section); background: var(--ink); color: #fff; overflow: clip; }
.sol-glow { position: absolute; inset: 0; pointer-events: none; }
.sol-glow > span { position: absolute; will-change: transform, opacity; }
.sol-glow-a { right: -10%; top: -10%; width: 70%; height: 55%; background: radial-gradient(closest-side, rgba(109, 93, 252, 0.38), rgba(109, 93, 252, 0)); animation: sol-drift 16s ease-in-out infinite alternate; }
.sol-glow-b { left: 20%; bottom: -14%; width: 50%; height: 50%; background: radial-gradient(closest-side, rgba(255, 138, 61, 0.16), rgba(255, 138, 61, 0)); animation: sol-drift 20s ease-in-out infinite alternate-reverse; }
/* Faint dot grid instead of a prism: reads as a "circuit board" the products plug into. */
.sol-prism {
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1.4px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(70% 60% at 75% 35%, #000, transparent);
  mask-image: radial-gradient(70% 60% at 75% 35%, #000, transparent);
}
.sol-in { position: relative; display: grid; grid-template-columns: minmax(280px, 384px) minmax(0, 1fr); }
.sol-side { border-right: 1px solid var(--ink-line); }
.sol-sticky { position: sticky; top: var(--hdr-h); height: calc(100vh - var(--hdr-h)); min-height: 420px; display: flex; flex-direction: column; padding: 48px; }
.sol-title { font-size: 32px; line-height: 35px; letter-spacing: -1px; color: rgba(255, 255, 255, 0.7); }
.sol-sub { margin-top: 24px; font-size: 16px; line-height: 26px; color: rgba(255, 255, 255, 0.7); }
.sol-spy { margin-top: auto; display: flex; flex-direction: column; gap: 2px; font-size: 20px; line-height: 28px; font-weight: 500; }
.sol-spy-link { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, 0.3); transition: color 0.2s ease; }
.sol-spy-link::before { content: ""; display: none; width: 14px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, #7c6cff, #ff9a52); }
.sol-spy-link:hover { color: rgba(255, 255, 255, 0.7); }
.sol-spy-link[aria-current="true"] { color: #fff; }
.sol-spy-link[aria-current="true"]::before { display: block; }

.sol-main { padding: 48px 48px 128px; }
.sol-group + .sol-group { margin-top: 168px; }
.sol-h { font-size: 56px; line-height: 56px; letter-spacing: -1px; color: rgba(255, 255, 255, 0.7); }
.sol-chips { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.sol-chip {
  min-height: 40px; padding: 0 16px; border-radius: var(--radius-btn); border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04); color: #fff; font-size: 20px; font-weight: 500; letter-spacing: -0.5px;
  cursor: pointer; white-space: nowrap; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.sol-chip:hover { border-color: rgba(255, 255, 255, 0.5); }
.sol-chip[aria-pressed="true"] { background: #fff; color: #0a0c0e; border-color: #fff; }
.sol-chip:focus-visible, .sol-tile:focus-visible, .sol-spy-link:focus-visible { outline-color: #fff; }

.sol-tiles { margin: 24px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sol-li[hidden] { display: none; }
html:not(.js) .sol-more-li { display: none; }
.sol-tile {
  position: relative; isolation: isolate; overflow: hidden;
  height: 100%; min-height: 112px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 20px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.035); backdrop-filter: blur(6px);
  color: #fff; font-size: 20px; line-height: 24px; font-weight: 500; letter-spacing: -0.5px; text-align: left;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
/* Cursor spotlight: --mx/--my are set by top-behavior.js on pointermove. */
.sol-tile[data-spot]::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.3s ease;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(124, 108, 255, 0.28), transparent 70%);
}
.sol-tile[data-spot]:hover::before { opacity: 1; }
a.sol-tile:hover { border-color: rgba(150, 138, 255, 0.45); transform: translateY(-2px); }
.sol-tile-prod { flex-direction: column; justify-content: space-between; min-height: 132px; }
.sol-tile-top { display: flex; align-items: center; gap: 10px; width: 100%; }
.sol-ico {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: rgba(124, 108, 255, 0.16); color: #b9b0ff; transition: background 0.25s ease, color 0.25s ease;
}
a.sol-tile:hover .sol-ico { background: var(--accent); color: #fff; }
.sol-cat { font-size: 12px; line-height: 1; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); }
.sol-go { margin-left: auto; color: rgba(255, 255, 255, 0.35); transition: color 0.25s ease, transform 0.25s ease; }
a.sol-tile:hover .sol-go { color: #ffab6b; transform: translate(2px, -2px); }
.sol-name { margin-top: 20px; }
.sol-more { width: 100%; font: inherit; font-size: 20px; cursor: pointer; background: transparent; border: 1px dashed rgba(255, 255, 255, 0.24); justify-content: center; align-items: center; }
.sol-more:hover { border-color: rgba(255, 171, 107, 0.7); color: #ffcf9e; }
.sol-tile-static { min-height: 88px; justify-content: flex-start; flex-direction: column; gap: 14px; }
.sol-idx { font-size: 13px; line-height: 1; color: #ffab6b; letter-spacing: 0.04em; transition: color 0.25s ease; }
/* Layer tiles glow in the orange of their index number. */
.sol-tile-static[data-spot]::before { background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 154, 82, 0.22), transparent 70%); }
.sol-tile-static:hover { border-color: rgba(255, 171, 107, 0.45); background: rgba(255, 154, 82, 0.05); }
.sol-tile-static:hover .sol-idx { color: #ffcf9e; }

.sol-logos { margin: 40px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 36px 52px; }
.sol-logo { --wm: 28px; font-size: var(--wm); line-height: 1; color: #fff; white-space: nowrap; }
@keyframes sol-drift { from { transform: translate3d(0, 0, 0); opacity: 0.85; } to { transform: translate3d(-6%, 8%, 0); opacity: 1; } }

/* Responsive ----------------------------------------------------------------------- */
@media (max-width: 1280px) {
  .hdr-nav-link { padding: 8px 14px; }
  .sol-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ben-card { padding: 28px 24px 40px; }
  .ben-h { font-size: 28px; line-height: 30px; }
}

@media (max-width: 1100px) {
  .ben-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ben-card { min-height: 240px; }
}

@media (max-width: 1024px) {
  :root { --hdr-util: 0px; --hdr-bar: 64px; }
  .hdr-util, .hdr-nav, .hdr-plain { display: none; }
  .hdr-wrap { padding: 0 var(--gutter); }
  .hdr-in { grid-template-columns: 1fr auto; }
  .hdr-burger { display: block; }
  .hdr-menu {
    display: flex; flex-direction: column; gap: 28px; position: fixed; left: 0; right: 0; top: var(--hdr-bar); bottom: 0;
    padding: 16px var(--gutter) 32px; overflow-y: auto; background: var(--bg);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
  }
  .hdr.is-open .hdr-menu { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s ease, transform 0.25s ease; }
  .hdr.is-open { border-bottom-color: var(--line); }
  .hdr-menu-nav { display: flex; flex-direction: column; }
  .hdr-menu-link { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 22px; line-height: 1.2; letter-spacing: -0.4px; color: var(--text); }
  .hdr-menu-actions { display: grid; gap: 12px; }
  .hdr-menu-util { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
  .hdr-menu-util .lang-trigger { height: 40px; padding: 0 12px 0 10px; margin-left: -10px; font-size: 16px; gap: 8px; }
  .hdr-menu-util .lang-globe { width: 18px; height: 18px; }
  .hdr-menu-util .lang-item { font-size: 16px; padding: 12px 14px; }

  .hero { padding-top: 72px; }
  .hero-title { font-size: 52px; line-height: 56px; }
  .mq { margin-top: 72px; }
  .bnr { height: 460px; }

  .sol-in { grid-template-columns: minmax(0, 1fr); }
  .sol-side { border-right: 0; }
  .sol-sticky { position: static; height: auto; min-height: 0; padding: 64px var(--gutter) 0; }
  .sol-title { font-size: 40px; line-height: 44px; color: #fff; }
  .sol-sub { font-size: 18px; }
  .sol-spy { display: none; }
  .sol-main { padding: 48px var(--gutter) 80px; }
  .sol-group { padding-top: 32px; border-top: 1px solid var(--ink-line); }
  .sol-group + .sol-group { margin-top: 64px; }
  .sol-h { font-size: 40px; line-height: 44px; }
  .sol-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .hdr-cta { padding: 0 14px; }
  .hero { padding-top: 40px; }
  .hero-title { font-size: 34px; line-height: 38px; letter-spacing: -0.5px; }
  .hero-title br { display: none; }
  .hero-sub { margin-top: 16px; font-size: 17px; line-height: 24px; }
  .hero-ctas { margin-top: 28px; }
  .hero-btn { width: 100%; }
  .mq { margin-top: 40px; }
  .mq-track { gap: 44px; padding-right: 44px; }
  .mq-item { height: 64px; --wm: 22px; }
  .bnr-sec { margin-top: 8px; }
  .bnr { height: 264px; border-radius: 20px; }
  .bnr-word { font-size: 48px; }

  .ben-grid { gap: 8px; }
  .ben-card { min-height: 0; padding: 16px 16px 24px; border-radius: 20px; }
  .ben-ico { width: 56px; height: 56px; }
  .ben-h { margin-top: 20px; font-size: 20px; line-height: 24px; letter-spacing: -0.4px; }
  .ben-p { margin-top: 8px; font-size: 14px; line-height: 20px; }

  .sol-sticky { padding-top: 56px; }
  .sol-title { font-size: 36px; line-height: 38px; }
  .sol-sub { font-size: 16px; }
  .sol-h { font-size: 20px; line-height: 28px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0; color: rgba(255, 255, 255, 0.7); }
  .sol-chips {
    flex-wrap: nowrap; overflow-x: auto; margin: 20px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) 4px;
    scrollbar-width: none;
  }
  .sol-chips::-webkit-scrollbar { display: none; }
  .sol-chip { min-height: 38px; font-size: 16px; letter-spacing: -0.2px; }
  .sol-tiles { margin-top: 16px; }
  .sol-tile { min-height: 64px; padding: 14px 16px; font-size: 15px; line-height: 20px; letter-spacing: -0.2px; }
  .sol-tile-prod { min-height: 112px; }
  .sol-ico { width: 30px; height: 30px; border-radius: 8px; }
  .sol-cat { display: none; }
  .sol-name { margin-top: 14px; }
  .sol-tile-static { min-height: 56px; }
  .sol-more { font-size: 15px; }
  .sol-logos { margin-top: 24px; gap: 24px 32px; }
  .sol-logo { --wm: 22px; }
}

@media (max-width: 380px) {
  .hdr-cta { font-size: 14px; padding: 0 10px; }
  .hero-title { font-size: 30px; line-height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .mq-clone, .mq-dup { display: none; }
  .mq-viewport { justify-content: center; -webkit-mask-image: none; mask-image: none; }
  .mq-track { flex: 1 1 auto; flex-wrap: wrap; justify-content: center; gap: 8px 48px; padding: 0; }
  .js .reveal { opacity: 1; transform: none; }
}
