/* ════════════════════════════════════════════════════════════════════════
 * OpsIQ — Premium Redesign Layer (PHASE_M3)
 *
 * A self-contained stylesheet that:
 *   1. Widens and re-skins the public-site footer (CTA ribbon + brand row +
 *      newsletter + 6-col grid + bottom strip).
 *   2. Adds animation utilities used throughout marketing pages — magnetic
 *      buttons, card tilt, gradient borders, shimmer, parallax orbs.
 *   3. Polishes the trimmed nav (smaller item count needs more breathing).
 *
 * Loaded after opsiq-saas-site.css + opsiq-premium.css so it can selectively
 * override anything from those layers without !important clutter.
 *
 * Theme-aware: uses the existing --op-* CSS variables. Both light + dark
 * themes inherit cleanly because every value resolves through them.
 * ════════════════════════════════════════════════════════════════════════ */

/* ── 0. Shared tokens for this redesign layer ─────────────────────────── */
:root {
  --op-rd-grad: linear-gradient(135deg, #2563eb 0%, #06b6d4 50%, #7c3aed 100%);
  --op-rd-grad-soft: linear-gradient(135deg, rgba(37,99,235,.18), rgba(124,58,237,.18));
  --op-rd-glass: rgba(255,255,255,.72);
  --op-rd-glass-bd: rgba(15,23,42,.08);
  --op-rd-shadow-lg: 0 32px 90px rgba(15,23,42,.16), 0 12px 32px rgba(15,23,42,.06);
  --op-rd-shadow-glow: 0 18px 60px rgba(37,99,235,.32);
}
html[data-theme="dark"] {
  --op-rd-glass: rgba(13,20,42,.6);
  --op-rd-glass-bd: rgba(180,200,255,.10);
  --op-rd-shadow-lg: 0 32px 90px rgba(0,0,0,.5), 0 12px 32px rgba(0,0,0,.32);
}

/* ── 1. Trimmed nav polish ────────────────────────────────────────────── */
.op-nav-link {
  position: relative;
  transition: color .25s ease, transform .25s ease;
}
.op-nav-link::after {
  content: '';
  position: absolute;
  left: 12px; right: 12px; bottom: 6px;
  height: 2px; border-radius: 2px;
  background: var(--op-rd-grad);
  transform: scaleX(0); transform-origin: center;
  transition: transform .35s cubic-bezier(.2,.9,.3,1);
}
.op-nav-link:hover::after,
.op-nav-link:focus-visible::after,
.op-nav-link.active::after { transform: scaleX(1); }
.op-nav-link:hover { transform: translateY(-1px); }



/* ── 1b. Premium feature mega dropdown ───────────────────────────────── */
.op-nav-feature-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
}
.op-nav-caret {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: currentColor;
  border-radius: 999px;
  background: rgba(37,99,235,.08);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), color .3s ease, background .3s ease;
}
.op-nav-caret svg { width: 14px; height: 14px; }
.op-nav-dd:hover .op-nav-caret,
.op-nav-dd:focus-within .op-nav-caret { transform: rotate(180deg); color: var(--op-blue); background: rgba(37,99,235,.14); }
.op-nav-feature-trigger.active .op-nav-caret { color: #fff; background: rgba(255,255,255,.18); }
html[data-theme="dark"] .op-nav-caret { background: rgba(255,255,255,.07); }
html[data-theme="dark"] .op-nav-dd:hover .op-nav-caret,
html[data-theme="dark"] .op-nav-dd:focus-within .op-nav-caret { background: rgba(96,165,250,.16); }

.op-dd-panel.op-feature-mega {
  --dd-line: rgba(37,99,235,.22);
  --dd-panel: rgba(255,255,255,.992);
  --dd-panel-2: rgba(248,252,255,.972);
  --dd-ink: #07111f;
  --dd-muted: #51617a;
  position: fixed !important;
  top: 92px !important;
  left: 50% !important;
  width: min(1100px, calc(100vw - 44px)) !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
  padding: 17px !important;
  border: 1px solid var(--dd-line) !important;
  outline: 1px solid rgba(255,255,255,.42);
  outline-offset: -2px;
  border-radius: 32px !important;
  color: var(--dd-ink) !important;
  background: linear-gradient(145deg, var(--dd-panel), var(--dd-panel-2)) !important;
  box-shadow: 0 32px 92px rgba(15,23,42,.20), 0 10px 28px rgba(37,99,235,.08), inset 0 1px 0 rgba(255,255,255,.9) !important;
  backdrop-filter: blur(30px) saturate(180%) !important;
  overflow: hidden;
  isolation: isolate;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateX(-50%) translateY(16px) scale(.982) !important;
  transform-origin: top center;
  transition: opacity .22s ease, visibility .22s ease, transform .36s cubic-bezier(.16,1,.3,1) !important;
}
html[data-theme="dark"] .op-dd-panel.op-feature-mega {
  --dd-line: rgba(180,200,255,.18);
  --dd-panel: rgba(8,13,30,.985);
  --dd-panel-2: rgba(13,20,42,.955);
  --dd-ink: #f8fbff;
  --dd-muted: #aebbd4;
  background: linear-gradient(145deg, var(--dd-panel), var(--dd-panel-2)) !important;
  box-shadow: 0 38px 110px rgba(0,0,0,.62), 0 10px 34px rgba(37,99,235,.10), inset 0 1px 0 rgba(255,255,255,.07) !important;
}
.op-nav-dd:hover .op-dd-panel.op-feature-mega,
.op-nav-dd:focus-within .op-dd-panel.op-feature-mega,
.op-nav-dd.open .op-dd-panel.op-feature-mega {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateX(-50%) translateY(0) scale(1) !important;
}
.op-dd-panel.op-feature-mega::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    radial-gradient(circle at 20% 0%, rgba(37,99,235,.10), transparent 28%),
    linear-gradient(rgba(37,99,235,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, #000 0%, #000 72%, transparent 100%);
}
html[data-theme="dark"] .op-dd-panel.op-feature-mega::before {
  background-image:
    linear-gradient(rgba(180,200,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180,200,255,.04) 1px, transparent 1px);
}
.op-dd-panel.op-feature-mega::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 30px;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 2%, rgba(37,99,235,.22) 18%, rgba(6,182,212,.26) 50%, rgba(124,58,237,.18) 82%, transparent 98%) top / 100% 1px no-repeat,
    linear-gradient(125deg, rgba(255,255,255,.52), transparent 26%, transparent 70%, rgba(6,182,212,.08));
  z-index: -1;
}
html[data-theme="dark"] .op-dd-panel.op-feature-mega::after {
  background:
    linear-gradient(90deg, transparent 2%, rgba(96,165,250,.22) 18%, rgba(34,211,238,.24) 50%, rgba(168,85,247,.18) 82%, transparent 98%) top / 100% 1px no-repeat,
    linear-gradient(125deg, rgba(255,255,255,.045), transparent 26%, transparent 72%, rgba(6,182,212,.055));
}
.op-dd-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: .20;
}
.op-dd-bg path {
  fill: none;
  stroke: url(#opDdLine);
  stroke-width: 1.5;
  stroke-dasharray: 9 14;
  animation: opDdDash 10s linear infinite;
}
.op-dd-bg path:nth-of-type(2) { animation-direction: reverse; animation-duration: 13s; }
.op-dd-bg circle {
  fill: #2563eb;
  opacity: .62;
  filter: drop-shadow(0 0 12px rgba(6,182,212,.55));
  animation: opDdPulse 3.4s ease-in-out infinite;
}
.op-dd-bg circle:nth-child(2n) { fill: #06b6d4; animation-delay: .5s; }
.op-dd-bg circle:nth-child(3n) { fill: #7c3aed; animation-delay: 1s; }

.op-dd-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 17px 20px;
  border: 1px solid var(--dd-line);
  border-radius: 26px;
  background:
    radial-gradient(circle at 0% 0%, rgba(37,99,235,.105), transparent 36%),
    linear-gradient(145deg, rgba(255,255,255,.97), rgba(244,249,255,.91));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.76);
}
html[data-theme="dark"] .op-dd-head {
  background:
    radial-gradient(circle at 0% 0%, rgba(96,165,250,.14), transparent 38%),
    linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.075));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.op-dd-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--op-blue);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}
.op-dd-eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 99px;
  background: var(--op-rd-grad);
}
.op-dd-head b {
  display: block;
  margin-top: 8px;
  color: var(--dd-ink);
  font-size: 24px;
  font-weight: 950;
  line-height: 1.1;
}
.op-dd-head small {
  display: block;
  max-width: 660px;
  margin-top: 7px;
  color: var(--dd-muted) !important;
  font-size: 13px;
  line-height: 1.55;
}
.op-dd-head > a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(37,99,235,.18);
  border-radius: 999px;
  color: #fff !important;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  background: var(--op-rd-grad) !important;
  box-shadow: 0 16px 34px rgba(37,99,235,.24), inset 0 1px 0 rgba(255,255,255,.32);
  transition: transform .22s cubic-bezier(.16,1,.3,1), box-shadow .22s ease, filter .22s ease;
}
.op-dd-head > a:hover { transform: translateY(-2px); box-shadow: 0 20px 42px rgba(37,99,235,.30), inset 0 1px 0 rgba(255,255,255,.34); filter: saturate(1.08); }
.op-dd-head > a svg { width: 16px; height: 16px; }

.op-dd-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}
.op-dd-panel.op-feature-mega .op-dd-item {
  position: relative;
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 12px 13px !important;
  border: 1px solid rgba(37,99,235,.145) !important;
  border-radius: 22px !important;
  color: var(--dd-ink) !important;
  text-decoration: none;
  background: linear-gradient(145deg, rgba(255,255,255,.95), rgba(249,252,255,.88)) !important;
  box-shadow: 0 10px 24px rgba(37,99,235,.055), inset 0 1px 0 rgba(255,255,255,.74);
  overflow: hidden;
  transform: translateY(0) scale(1);
  opacity: 1;
  transition: transform .26s cubic-bezier(.16,1,.3,1), border-color .24s ease, box-shadow .24s ease, background .24s ease !important;
}
html[data-theme="dark"] .op-dd-panel.op-feature-mega .op-dd-item {
  border-color: rgba(180,200,255,.10) !important;
  background: linear-gradient(145deg, rgba(255,255,255,.135), rgba(255,255,255,.075)) !important;
  box-shadow: none;
}
.op-dd-panel.op-feature-mega .op-dd-item.is-active {
  border-color: rgba(37,99,235,.42) !important;
  background: linear-gradient(145deg, rgba(232,244,255,.98), rgba(255,255,255,.94)) !important;
  box-shadow: 0 18px 44px rgba(37,99,235,.12), inset 0 1px 0 rgba(255,255,255,.86);
}
html[data-theme="dark"] .op-dd-panel.op-feature-mega .op-dd-item.is-active {
  border-color: rgba(103,232,249,.34) !important;
  background: linear-gradient(145deg, rgba(37,99,235,.25), rgba(255,255,255,.09)) !important;
}
.op-dd-panel.op-feature-mega .op-dd-item.is-active::before { opacity: 1; }
.op-dd-panel.op-feature-mega .op-dd-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--op-rd-grad);
  opacity: 0;
  transition: opacity .24s ease;
}
.op-dd-panel.op-feature-mega .op-dd-item::after {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 170px;
  height: 170px;
  background: radial-gradient(circle, rgba(6,182,212,.22), transparent 66%);
  opacity: 0;
  transition: opacity .24s ease, transform .24s ease;
  transform: translate(18px, -18px);
}
.op-dd-panel.op-feature-mega .op-dd-item:hover,
.op-dd-panel.op-feature-mega .op-dd-item:focus-visible {
  transform: translateY(-5px) scale(1.012) !important;
  border-color: rgba(37,99,235,.36) !important;
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(239,248,255,.88)) !important;
  box-shadow: 0 24px 58px rgba(37,99,235,.16), inset 0 1px 0 rgba(255,255,255,.82);
  outline: none;
}
html[data-theme="dark"] .op-dd-panel.op-feature-mega .op-dd-item:hover,
html[data-theme="dark"] .op-dd-panel.op-feature-mega .op-dd-item:focus-visible {
  background: linear-gradient(145deg, rgba(37,99,235,.24), rgba(6,182,212,.10)) !important;
  box-shadow: 0 24px 60px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.08);
}
.op-dd-panel.op-feature-mega .op-dd-item:hover::before,
.op-dd-panel.op-feature-mega .op-dd-item:hover::after,
.op-dd-panel.op-feature-mega .op-dd-item:focus-visible::before,
.op-dd-panel.op-feature-mega .op-dd-item:focus-visible::after { opacity: 1; transform: translate(0, 0); }
.op-dd-ico {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 15px;
  color: #2563eb;
  background:
    linear-gradient(145deg, rgba(255,255,255,.86), rgba(225,240,255,.58)),
    linear-gradient(135deg, rgba(37,99,235,.18), rgba(6,182,212,.14));
  border: 1px solid rgba(37,99,235,.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.78),
    inset 0 -10px 18px rgba(37,99,235,.08),
    0 13px 24px rgba(37,99,235,.12);
  overflow: visible;
  transform-style: preserve-3d;
  perspective: 420px;
  transform: translateZ(0) rotateX(0) rotateY(0);
  will-change: transform, box-shadow;
  animation: opDdIconBreathe 5.6s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -170ms);
  transition: transform .32s cubic-bezier(.16,1,.3,1), color .24s ease, background .24s ease, box-shadow .24s ease, filter .24s ease;
}
html[data-theme="dark"] .op-dd-ico {
  color: #67e8f9;
  background:
    linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.045)),
    linear-gradient(135deg, rgba(37,99,235,.28), rgba(124,58,237,.18));
  border-color: rgba(180,200,255,.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    inset 0 -12px 20px rgba(0,0,0,.12),
    0 13px 26px rgba(0,0,0,.22);
}
.op-dd-ico::before {
  content: "";
  position: absolute;
  inset: 3px 4px auto 4px;
  height: 42%;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.58), transparent);
  opacity: .74;
  transform: translateZ(8px);
  pointer-events: none;
}
.op-dd-ico::after {
  content: "";
  position: absolute;
  inset: auto 5px 4px 5px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(37,99,235,.28), transparent 70%);
  filter: blur(3px);
  opacity: .72;
  transform: translateZ(-4px);
  pointer-events: none;
}
html[data-theme="dark"] .op-dd-ico::before { opacity: .24; }
html[data-theme="dark"] .op-dd-ico::after { background: radial-gradient(ellipse at center, rgba(103,232,249,.22), transparent 70%); }
.op-dd-ico svg {
  position: relative;
  z-index: 1;
  width: 20px;
  height: 20px;
  overflow: visible;
  transform: translateZ(14px);
  filter: drop-shadow(0 7px 8px rgba(37,99,235,.20));
  transition: transform .32s cubic-bezier(.16,1,.3,1), filter .24s ease, stroke .24s ease;
}
.op-dd-ico svg * {
  vector-effect: non-scaling-stroke;
}
html[data-theme="dark"] .op-dd-ico svg { filter: drop-shadow(0 8px 10px rgba(103,232,249,.16)); }
.op-dd-item:hover .op-dd-ico,
.op-dd-item:focus-visible .op-dd-ico {
  transform: translateY(-2px) rotateX(8deg) rotateY(-8deg) scale(1.045);
  color: #0891b2;
  filter: saturate(1.14);
  animation-play-state: paused;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.84),
    inset 0 -12px 20px rgba(37,99,235,.10),
    0 18px 34px rgba(37,99,235,.22);
}
.op-dd-item:hover .op-dd-ico svg,
.op-dd-item:focus-visible .op-dd-ico svg {
  transform: translateZ(18px) scale(1.02);
  filter: drop-shadow(0 10px 12px rgba(37,99,235,.28));
  animation: opDdIconGlow .9s cubic-bezier(.16,1,.3,1) both;
}
html[data-theme="dark"] .op-dd-item:hover .op-dd-ico,
html[data-theme="dark"] .op-dd-item:focus-visible .op-dd-ico {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    inset 0 -12px 20px rgba(0,0,0,.18),
    0 18px 38px rgba(6,182,212,.18);
}
html[data-theme="dark"] .op-dd-item:hover .op-dd-ico svg,
html[data-theme="dark"] .op-dd-item:focus-visible .op-dd-ico svg { filter: drop-shadow(0 10px 14px rgba(103,232,249,.24)); }
.op-dd-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.op-dd-panel.op-feature-mega .op-dd-copy b {
  display: block;
  margin: 0 0 4px;
  color: var(--dd-ink) !important;
  font-size: 13.5px;
  font-weight: 930;
  line-height: 1.2;
}
.op-dd-panel.op-feature-mega .op-dd-copy small {
  display: -webkit-box;
  color: var(--dd-muted) !important;
  font-size: 11.8px;
  line-height: 1.46;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.op-dd-go {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--op-muted);
  opacity: .62;
  transform: translateX(-5px);
  transition: opacity .24s ease, transform .24s ease, color .24s ease;
}
.op-dd-go svg { width: 17px; height: 17px; }
.op-dd-item:hover .op-dd-go,
.op-dd-item:focus-visible .op-dd-go { opacity: 1; transform: translateX(1px); color: var(--op-blue); }
.op-nav-dd:hover .op-dd-panel.op-feature-mega .op-dd-item,
.op-nav-dd:focus-within .op-dd-panel.op-feature-mega .op-dd-item,
.op-nav-dd.open .op-dd-panel.op-feature-mega .op-dd-item {
  animation: opDdItemIn .46s cubic-bezier(.16,1,.3,1) both;
  animation-delay: calc(var(--i, 0) * 18ms);
}
@keyframes opDdDash { to { stroke-dashoffset: -230; } }
@keyframes opDdPulse { 0%,100% { opacity: .34; } 50% { opacity: .9; } }
@keyframes opDdItemIn { from { opacity: 0; transform: translateY(9px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes opDdIconBreathe {
  0%,100% { transform: translateY(0) rotateX(0) rotateY(0); }
  50% { transform: translateY(-1px) rotateX(3deg) rotateY(-3deg); }
}
@keyframes opDdIconGlow {
  0%,100% { opacity: 1; }
  45% { opacity: 1; }
}

@media (max-width: 1040px) {
  .op-dd-panel.op-feature-mega { display: none !important; }
}
@media (max-width: 900px) {
  .op-dd-grid { grid-template-columns: 1fr; }
  .op-dd-head { grid-template-columns: 1fr; }
  .op-dd-head > a { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .op-dd-bg path,
  .op-dd-bg circle { animation: none !important; }
  .op-dd-panel.op-feature-mega,
  .op-dd-panel.op-feature-mega *,
  .op-nav-caret { transition: none !important; animation: none !important; }
}

/* ── 2. Premium footer ────────────────────────────────────────────────── */
.op-footer-premium {
  position: relative;
  margin-top: 80px;
  padding: 0 0 32px;
  background: linear-gradient(180deg, transparent 0, rgba(37,99,235,.04) 14%, rgba(15,23,42,.02) 100%);
  overflow: hidden;
  isolation: isolate;
}
html[data-theme="dark"] .op-footer-premium {
  background: linear-gradient(180deg, transparent 0, rgba(37,99,235,.06) 14%, rgba(0,0,0,.36) 100%);
}

/* layered backdrop — orbs + grid */
.op-footer-premium .op-footer-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
}
.op-footer-premium .op-orb-footer {
  position: absolute; left: -200px; top: 8%;
  width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.20), transparent 60%);
  filter: blur(40px);
  animation: opRdOrbDrift 22s ease-in-out infinite;
}
.op-footer-premium .op-orb-footer-2 {
  position: absolute; right: -240px; bottom: -120px;
  width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,.18), rgba(6,182,212,.10) 50%, transparent 70%);
  filter: blur(50px);
  animation: opRdOrbDrift 28s ease-in-out infinite reverse;
}
@keyframes opRdOrbDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(40px, -30px) scale(1.06); }
}
.op-footer-premium .op-footer-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
  opacity: .65;
}
html[data-theme="dark"] .op-footer-premium .op-footer-grid-bg {
  background-image:
    linear-gradient(rgba(180,200,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180,200,255,.05) 1px, transparent 1px);
}

/* CTA ribbon */
.op-footer-cta-ribbon {
  position: relative;
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto 64px;
  padding: 4px;
  border-radius: 32px;
  background: var(--op-rd-grad);
  background-size: 200% 200%;
  animation: opRdRibbonShift 14s ease-in-out infinite;
  box-shadow: var(--op-rd-shadow-glow);
}
@keyframes opRdRibbonShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.op-footer-cta-ribbon .op-footer-cta-inner {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 32px;
  align-items: center;
  padding: 40px 48px;
  border-radius: 28px;
  background: var(--op-bg);
  overflow: hidden;
}
html[data-theme="dark"] .op-footer-cta-ribbon .op-footer-cta-inner { background: var(--op-bg2); }
.op-footer-cta-ribbon .op-footer-cta-glow {
  position: absolute; left: -200px; top: -260px;
  width: 540px; height: 540px;
  background: radial-gradient(circle, rgba(124,58,237,.22), transparent 65%);
  filter: blur(36px); pointer-events: none;
}
.op-footer-cta-ribbon h2 {
  margin: 8px 0 12px;
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.018em;
  color: var(--op-text);
}
.op-footer-cta-ribbon p {
  margin: 0;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--op-muted);
}
.op-footer-cta-ribbon .op-footer-cta-actions {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}
@media (max-width: 880px) {
  .op-footer-cta-ribbon .op-footer-cta-inner { grid-template-columns: 1fr; padding: 28px; }
  .op-footer-cta-ribbon h2 { font-size: 28px; }
}

/* Top brand row */
.op-footer-top {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto 48px;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px;
  align-items: start;
}
@media (max-width: 980px) {
  .op-footer-top { grid-template-columns: 1fr; gap: 40px; }
}
.op-footer-brand .op-logo { margin-bottom: 12px; }
.op-footer-tagline {
  margin: 0 0 18px;
  font-size: 16px; line-height: 1.55;
  color: var(--op-muted);
  max-width: 480px;
}
.op-footer-pills {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px;
}
.op-footer-pill {
  display: inline-flex; align-items: center;
  padding: 7px 14px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
  color: var(--op-text);
  background: var(--op-rd-glass);
  border: 1px solid var(--op-rd-glass-bd);
  border-radius: 999px;
  backdrop-filter: blur(12px) saturate(140%);
  transition: transform .25s ease, border-color .25s ease, color .25s ease, background .25s ease;
}
.op-footer-pill:hover {
  transform: translateY(-2px);
  color: #fff;
  background: var(--op-rd-grad);
  border-color: transparent;
}

/* Newsletter */
.op-footer-newsletter {
  padding: 26px 28px;
  border-radius: 22px;
  background: var(--op-rd-glass);
  border: 1px solid var(--op-rd-glass-bd);
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 12px 32px rgba(15,23,42,.06);
  position: relative; overflow: hidden;
}
.op-footer-newsletter::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,.08), transparent 60%);
  pointer-events: none;
}
.op-footer-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 11px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase;
  color: transparent;
  background: var(--op-rd-grad);
  -webkit-background-clip: text; background-clip: text;
}
.op-footer-newsletter h4 {
  margin: 0 0 6px;
  font-size: 22px; font-weight: 900; letter-spacing: -0.01em;
  color: var(--op-text);
}
.op-footer-newsletter p { margin: 0 0 16px; color: var(--op-muted); }
.op-footer-newsletter-form {
  display: flex; gap: 8px; margin-bottom: 18px;
  padding: 6px;
  background: var(--op-bg);
  border: 1px solid var(--op-rd-glass-bd);
  border-radius: 14px;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.op-footer-newsletter-form:focus-within {
  border-color: rgba(37,99,235,.4);
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}
.op-footer-newsletter-form input {
  flex: 1;
  padding: 10px 14px;
  border: 0; outline: none; background: transparent;
  color: var(--op-text);
  font: inherit; font-size: 14px;
}
.op-footer-newsletter-form input::placeholder { color: var(--op-muted); }
.op-footer-newsletter-form button { white-space: nowrap; padding: 10px 16px; font-size: 13.5px; }

/* Social row */
.op-footer-social { display: flex; gap: 10px; }
.op-footer-social a {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  color: var(--op-muted);
  background: var(--op-bg);
  border: 1px solid var(--op-rd-glass-bd);
  transition: transform .25s ease, color .25s ease, background .25s ease, border-color .25s ease;
}
.op-footer-social a:hover {
  transform: translateY(-2px) scale(1.04);
  color: #fff;
  background: var(--op-rd-grad);
  border-color: transparent;
}

/* 6-col link grid — wider canvas + refined hover */
.op-footer-premium .op-footer-main {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto 36px;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px 32px;
}
@media (max-width: 1100px) {
  .op-footer-premium .op-footer-main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .op-footer-premium .op-footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}

.op-footer-premium .op-footer-title {
  font-size: 11.5px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--op-text);
  margin-bottom: 14px;
  position: relative;
  padding-left: 14px;
}
.op-footer-premium .op-footer-title::before {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--op-rd-grad);
  transform: translateY(-50%);
  box-shadow: 0 0 0 3px rgba(37,99,235,.14);
}
.op-footer-premium .op-footer-links { display: flex; flex-direction: column; gap: 10px; }
.op-footer-premium .op-footer-links a {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 0;
  color: var(--op-muted);
  text-decoration: none;
  font-size: 13.5px; font-weight: 500;
  transition: color .2s ease, transform .25s ease;
  position: relative;
}
.op-footer-link-arrow {
  display: inline-block;
  opacity: 0; transform: translateX(-4px);
  transition: opacity .2s ease, transform .25s ease;
  font-size: 12px;
}
.op-footer-premium .op-footer-links a:hover {
  color: var(--op-text);
  transform: translateX(3px);
}
.op-footer-premium .op-footer-links a:hover .op-footer-link-arrow {
  opacity: 1; transform: translateX(0);
}

/* Bottom strip */
.op-footer-premium .op-footer-bottom {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 4px;
  border-top: 1px solid var(--op-rd-glass-bd);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--op-muted);
}
.op-footer-premium .op-footer-bottom-left,
.op-footer-premium .op-footer-bottom-right {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.op-footer-premium .op-footer-bottom-right a {
  color: var(--op-muted); text-decoration: none;
  transition: color .2s ease;
}
.op-footer-premium .op-footer-bottom-right a:hover { color: var(--op-text); }

.op-footer-status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(19,185,129,.10);
  border: 1px solid rgba(19,185,129,.25);
  color: #10b981 !important;
  font-weight: 700; font-size: 11.5px;
  text-decoration: none;
  transition: transform .2s ease;
}
.op-footer-status:hover { transform: translateY(-1px); }
.op-footer-status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(19,185,129,.18);
  animation: opRdStatusPulse 2s ease-in-out infinite;
}
@keyframes opRdStatusPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(19,185,129,.18); }
  50%      { box-shadow: 0 0 0 6px rgba(19,185,129,.04); }
}

/* Toggle caret on mobile */
.op-footer-premium .op-footer-toggle-caret {
  display: none;
  margin-left: auto;
  transition: transform .25s ease;
  font-size: 16px;
}
@media (max-width: 700px) {
  .op-footer-premium .op-footer-toggle { display: flex !important; align-items: center; }
  .op-footer-premium .op-footer-toggle-caret { display: inline-block; }
  .op-footer-premium .op-footer-toggle.is-open .op-footer-toggle-caret { transform: rotate(180deg); }
}

/* ── 3. Animation utilities (used by hero + section content) ─────────── */
@keyframes opRdFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(2deg); }
}
@keyframes opRdShimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes opRdSpinSlow {
  to { transform: rotate(360deg); }
}

/* Premium button — magnetic feel + shimmer sweep */
.op-btn-glow {
  position: relative; overflow: hidden;
  background: var(--op-rd-grad);
  background-size: 200% 200%;
  border: 0; color: #fff;
  box-shadow: 0 12px 30px rgba(37,99,235,.35);
  animation: opRdRibbonShift 12s ease-in-out infinite;
  transition: transform .25s cubic-bezier(.2,.9,.3,1), box-shadow .25s ease;
}
.op-btn-glow::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: opRdShimmer 3.2s ease-in-out infinite;
  pointer-events: none;
}
.op-btn-glow:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 44px rgba(37,99,235,.48);
}

/* Card tilt on hover (apply via [data-tilt]) */
[data-tilt] {
  transition: transform .35s cubic-bezier(.2,.9,.3,1), box-shadow .35s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
[data-tilt]:hover {
  transform: translateY(-6px) rotateX(2deg) rotateY(-2deg);
  box-shadow: var(--op-rd-shadow-lg);
}

/* Gradient border helper */
.op-grad-border {
  position: relative;
  border-radius: 22px;
  background:
    linear-gradient(var(--op-bg), var(--op-bg)) padding-box,
    var(--op-rd-grad) border-box;
  border: 1.5px solid transparent;
}
html[data-theme="dark"] .op-grad-border {
  background:
    linear-gradient(var(--op-bg), var(--op-bg)) padding-box,
    var(--op-rd-grad) border-box;
}

/* Reveal on scroll polish */
.op-reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.9,.3,1); }
.op-reveal.is-visible { opacity: 1; transform: none; }

/* Reduce motion respect */
@media (prefers-reduced-motion: reduce) {
  .op-footer-premium .op-orb-footer,
  .op-footer-premium .op-orb-footer-2,
  .op-footer-cta-ribbon,
  .op-footer-status-dot,
  .op-btn-glow,
  .op-btn-glow::before { animation: none !important; }
  [data-tilt]:hover { transform: translateY(-2px); }
}

/* ── 4. Premium hero — constellation + capability badges ─────────────── */
.op-hero-premium { position: relative; isolation: isolate; }
.op-hero-constellation {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
  opacity: .65; mix-blend-mode: normal;
}
html[data-theme="dark"] .op-hero-constellation { opacity: .85; }
.op-hero-premium .op-container { position: relative; z-index: 2; }

.op-con-pulse {
  filter: drop-shadow(0 0 6px rgba(37,99,235,.6));
  transform-origin: center;
  animation: opConPulse 3s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes opConPulse {
  0%, 100% { opacity: .55; r: 2; }
  50%      { opacity: 1;   r: 4; }
}

/* Capability badges — float around the 3D stage */
.op-stage { position: relative; }
.op-cap-badge {
  position: absolute; z-index: 10;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 14px 9px 9px;
  border-radius: 999px;
  background: var(--op-rd-glass);
  border: 1px solid var(--op-rd-glass-bd);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 12px 30px rgba(15,23,42,.10), 0 2px 6px rgba(15,23,42,.06);
  transition: transform .35s cubic-bezier(.2,.9,.3,1), box-shadow .35s ease;
  cursor: default;
}
html[data-theme="dark"] .op-cap-badge {
  box-shadow: 0 12px 30px rgba(0,0,0,.36), 0 2px 6px rgba(0,0,0,.2);
}
.op-cap-badge:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 18px 44px rgba(37,99,235,.22), 0 4px 10px rgba(15,23,42,.12);
}
.op-cap-icon {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  color: #fff;
  flex-shrink: 0;
}
.op-cap-icon-blue   { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.op-cap-icon-cyan   { background: linear-gradient(135deg, #06b6d4, #10b981); }
.op-cap-icon-violet { background: linear-gradient(135deg, #7c3aed, #2563eb); }
.op-cap-icon-green  { background: linear-gradient(135deg, #10b981, #06b6d4); }
.op-cap-icon-pink   { background: linear-gradient(135deg, #e879f9, #7c3aed); }
.op-cap-text { display: flex; flex-direction: column; line-height: 1.15; }
.op-cap-label { font-size: 12.5px; font-weight: 800; color: var(--op-text); letter-spacing: -0.005em; }
.op-cap-meta  { font-size: 10.5px; font-weight: 600; color: var(--op-muted); }

/* Position each badge — float independently with staggered timing */
.op-cap-1 { top: -22px;  left: -50px;  animation: opRdFloat 7s ease-in-out infinite; }
.op-cap-2 { top: 28%;    right: -56px; animation: opRdFloat 6s ease-in-out infinite; animation-delay: .8s; }
.op-cap-3 { top: 60%;    left: -68px;  animation: opRdFloat 8s ease-in-out infinite; animation-delay: .4s; }
.op-cap-4 { bottom: 4%;  right: -32px; animation: opRdFloat 7.5s ease-in-out infinite; animation-delay: 1.2s; }
.op-cap-5 { bottom: -14px; left: 28%;  animation: opRdFloat 9s ease-in-out infinite; animation-delay: 1.6s; }

@media (max-width: 1080px) {
  /* Hide badges on tablet/mobile to keep the hero clean */
  .op-cap-badge { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .op-cap-badge, .op-con-pulse { animation: none !important; }
}

/* ── 5. Capabilities showcase section (premium illustrated cards) ────── */
.op-caps-showcase {
  position: relative;
  padding: 100px 20px 80px;
  overflow: hidden;
}
.op-caps-showcase::before {
  content: ''; position: absolute; left: 50%; top: 0;
  width: 1100px; height: 1100px; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(37,99,235,.08), transparent 60%);
  pointer-events: none;
}
.op-caps-showcase .op-caps-head {
  text-align: center; max-width: 720px; margin: 0 auto 56px;
  position: relative;
}
.op-caps-showcase h2 {
  margin: 14px 0 10px;
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 900; letter-spacing: -0.02em; line-height: 1.05;
  color: var(--op-text);
}
.op-caps-showcase .op-lead { margin: 0; font-size: 17px; }

.op-caps-grid {
  position: relative;
  width: min(1280px, 100%);
  margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px;
}
@media (max-width: 1080px) { .op-caps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px)  { .op-caps-grid { grid-template-columns: 1fr; } }

.op-cap-card {
  position: relative;
  padding: 28px 24px;
  border-radius: 22px;
  background: var(--op-rd-glass);
  border: 1px solid var(--op-rd-glass-bd);
  backdrop-filter: blur(20px) saturate(160%);
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.9,.3,1), border-color .35s ease, box-shadow .35s ease;
}
.op-cap-card::before {
  content: ''; position: absolute; left: -40%; top: -60%;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(37,99,235,.20), transparent 65%);
  filter: blur(20px);
  opacity: 0; transition: opacity .35s ease, transform .35s ease;
  pointer-events: none;
}
.op-cap-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37,99,235,.35);
  box-shadow: var(--op-rd-shadow-lg);
}
.op-cap-card:hover::before { opacity: 1; transform: translate(20px, 20px); }
.op-cap-card-glyph {
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 16px;
  margin-bottom: 18px;
  color: #fff;
  position: relative;
  box-shadow: 0 12px 24px rgba(37,99,235,.25);
}
.op-cap-card-glyph::after {
  content: ''; position: absolute; inset: -4px;
  border-radius: 18px;
  background: var(--op-rd-grad);
  opacity: .15;
  z-index: -1;
  filter: blur(8px);
}
.op-cap-card h3 {
  margin: 0 0 8px; font-size: 19px; font-weight: 900; letter-spacing: -0.01em;
  color: var(--op-text);
}
.op-cap-card p {
  margin: 0 0 16px; font-size: 13.5px; line-height: 1.55; color: var(--op-muted);
}
.op-cap-card-stats {
  display: flex; gap: 14px; padding-top: 14px;
  border-top: 1px dashed var(--op-rd-glass-bd);
}
.op-cap-card-stat {
  display: flex; flex-direction: column;
}
.op-cap-card-stat b {
  font-size: 18px; font-weight: 900;
  background: var(--op-rd-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.op-cap-card-stat span {
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--op-muted);
}

@media (max-width: 640px) {
  .op-int-luxe .icl-river {
    position: relative !important;
    min-height: 35px !important;
    max-width: 100% !important;
    overflow: hidden !important;
    overflow-x: clip !important;
    contain: layout paint !important;
    clip-path: inset(0) !important;
  }
  .op-int-luxe .icl-river > div {
    position: absolute !important;
    inset: 0 auto auto 0 !important;
    width: max-content !important;
    max-width: none !important;
    will-change: transform;
  }
}

/* -- Premium mobile navigation command sheet -- */
@media (max-width: 1040px) {
  .op-mobile-btn {
    width: 43px !important;
    height: 43px !important;
    border-radius: 16px !important;
    border-color: rgba(37,99,235,.16) !important;
    background:
      linear-gradient(145deg, rgba(255,255,255,.96), rgba(243,248,255,.82)) !important;
    box-shadow: 0 14px 34px rgba(15,23,42,.10), inset 0 1px 0 rgba(255,255,255,.8) !important;
    overflow: hidden;
  }
  html[data-theme="dark"] .op-mobile-btn {
    border-color: rgba(180,200,255,.14) !important;
    background: linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.045)) !important;
    box-shadow: 0 16px 36px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.08) !important;
  }
  .op-mobile-btn::before {
    content: "";
    position: absolute;
    inset: -50% -35%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.52), transparent);
    transform: rotate(22deg) translateX(-120%);
    transition: transform .55s cubic-bezier(.16,1,.3,1);
  }
  .op-mobile-btn:hover::before,
  .op-mobile-btn[aria-expanded="true"]::before { transform: rotate(22deg) translateX(120%); }
  .op-mobile-btn span {
    width: 18px !important;
    height: 2px !important;
    border-radius: 999px !important;
    background: linear-gradient(90deg, #2563eb, #06b6d4) !important;
    position: relative;
    z-index: 1;
  }
  html[data-theme="dark"] .op-mobile-btn span { background: linear-gradient(90deg, #67e8f9, #a78bfa) !important; }
  .op-mobile-btn[aria-expanded="true"] {
    border-color: transparent !important;
    background: linear-gradient(135deg, #2563eb, #06b6d4 52%, #7c3aed) !important;
    box-shadow: 0 18px 42px rgba(37,99,235,.28), inset 0 1px 0 rgba(255,255,255,.28) !important;
  }
  .op-mobile-btn[aria-expanded="true"] span { background: #fff !important; }

  .op-mobile-menu {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483020 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 8px max(10px, env(safe-area-inset-bottom)) !important;
    box-sizing: border-box;
    background: rgba(246,250,255,0) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    -webkit-backdrop-filter: blur(0) saturate(100%);
    backdrop-filter: blur(0) saturate(100%);
    transition: opacity .26s ease, visibility .26s ease, background .26s ease, backdrop-filter .26s ease !important;
  }
  html[data-theme="dark"] .op-mobile-menu { background: rgba(3,7,18,0) !important; }
  .op-mobile-menu.open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    background:
      radial-gradient(720px 520px at 50% -10%, rgba(219,234,254,.84), rgba(239,246,255,.64) 48%, rgba(226,238,252,.72) 100%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    backdrop-filter: blur(24px) saturate(150%);
  }
  html[data-theme="dark"] .op-mobile-menu.open { background: rgba(3,7,18,.78) !important; }
  .op-mm-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    clip-path: inset(0);
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s ease;
  }
  .op-mobile-menu.open .op-mm-bg { opacity: .32; }
  html[data-theme="dark"] .op-mobile-menu.open .op-mm-bg { opacity: .46; }
  .op-mm-bg path {
    fill: none;
    stroke: url(#opMmLine);
    stroke-width: 1.15;
    stroke-dasharray: 10 16;
    animation: opMmDash 14s linear infinite;
  }
  .op-mm-bg path:nth-of-type(2) { animation-direction: reverse; animation-duration: 17s; }
  .op-mm-bg circle {
    fill: #06b6d4;
    opacity: .75;
    filter: drop-shadow(0 0 14px rgba(6,182,212,.45));
    animation: opMmPulse 3.8s ease-in-out infinite;
  }

  .op-mm-inner {
    width: 100% !important;
    max-width: 520px !important;
    min-width: 0 !important;
    max-height: calc(100dvh - 78px);
    margin: 58px auto 10px !important;
    padding: 10px !important;
    display: grid !important;
    gap: 8px !important;
    border: 1px solid rgba(37,99,235,.16);
    border-radius: 26px;
    background:
      radial-gradient(640px 420px at 16% 0%, rgba(219,234,254,.70), transparent 62%),
      radial-gradient(520px 360px at 92% 16%, rgba(224,242,254,.62), transparent 68%),
      linear-gradient(145deg, rgba(248,251,255,.982), rgba(235,243,253,.955)) !important;
    box-shadow: 0 32px 90px rgba(15,23,42,.22), 0 10px 24px rgba(37,99,235,.08), inset 0 1px 0 rgba(255,255,255,.88);
    color: var(--op-text);
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateY(-18px) scale(.982) !important;
    opacity: 0 !important;
    -webkit-backdrop-filter: blur(28px) saturate(170%);
    backdrop-filter: blur(28px) saturate(170%);
    scrollbar-width: thin;
    scrollbar-color: rgba(37,99,235,.35) transparent;
    transition: transform .42s cubic-bezier(.16,1,.3,1), opacity .26s ease !important;
  }
  html[data-theme="dark"] .op-mm-inner {
    border-color: rgba(180,200,255,.14);
    background: linear-gradient(145deg, rgba(8,13,30,.982), rgba(13,20,42,.94)) !important;
    box-shadow: 0 34px 100px rgba(0,0,0,.62), 0 12px 28px rgba(37,99,235,.10), inset 0 1px 0 rgba(255,255,255,.07);
  }
  .op-mobile-menu.open .op-mm-inner {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
  }
  .op-mm-inner::-webkit-scrollbar { width: 6px; }
  .op-mm-inner::-webkit-scrollbar-track { background: transparent; }
  .op-mm-inner::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(37,99,235,.42), rgba(6,182,212,.36));
  }

  .op-mm-top {
    position: sticky;
    top: -10px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 0 3px;
    background: linear-gradient(180deg, rgba(248,251,255,.98), rgba(237,246,255,.90) 72%, transparent);
  }
  html[data-theme="dark"] .op-mm-top { background: linear-gradient(180deg, rgba(8,13,30,.98), rgba(8,13,30,.88) 72%, transparent); }
  .op-mm-label {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 0 !important;
    color: var(--op-blue) !important;
    font-size: 11px !important;
    font-weight: 950 !important;
    letter-spacing: 0 !important;
    text-transform: uppercase;
  }
  .op-mm-label { margin: 0 0 10px 2px; }
  .op-mm-label::before {
    content: "";
    width: 20px;
    height: 2px;
    border-radius: 99px;
    background: var(--op-rd-grad);
  }
  .op-mm-close,
  .op-mm-theme-icon {
    display: grid !important;
    place-items: center;
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    padding: 0 !important;
    border: 1px solid rgba(37,99,235,.16) !important;
    border-radius: 50% !important;
    color: var(--op-text) !important;
    background: rgba(255,255,255,.74) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.76), 0 10px 22px rgba(37,99,235,.08) !important;
    cursor: pointer;
    transition: transform .22s cubic-bezier(.16,1,.3,1), border-color .22s ease, background .22s ease, box-shadow .22s ease;
  }
  html[data-theme="dark"] .op-mm-close,
  html[data-theme="dark"] .op-mm-theme-icon {
    border-color: rgba(180,200,255,.12) !important;
    background: rgba(255,255,255,.07) !important;
  }
  .op-mm-close:hover,
  .op-mm-theme-icon:hover {
    transform: translateY(-2px);
    border-color: rgba(37,99,235,.32) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.84), 0 14px 28px rgba(37,99,235,.14) !important;
  }
  .op-mm-close:hover { transform: translateY(-2px) rotate(4deg); }
  .op-mm-close svg,
  .op-mm-theme-icon .op-mm-ico svg { width: 17px; height: 17px; }
  .op-mm-theme-icon .op-mm-ico {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    flex: 0 0 30px !important;
    border-radius: 50% !important;
    color: inherit !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .op-mm-quick {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    min-width: 0;
  }
  .op-mm-section {
    display: block !important;
    padding: 12px 0 0 !important;
    border: 0 !important;
    border-top: 1px solid rgba(37,99,235,.12) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  html[data-theme="dark"] .op-mm-section { border-top-color: rgba(180,200,255,.10) !important; }
  .op-mm-product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    min-width: 0;
  }

  .op-mm-link {
    position: relative;
    display: grid !important;
    grid-template-columns: 38px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 10px !important;
    min-height: 54px;
    padding: 8px 9px !important;
    border: 1px solid rgba(37,99,235,.12) !important;
    border-radius: 16px !important;
    color: var(--op-text) !important;
    text-decoration: none !important;
    background: linear-gradient(145deg, rgba(248,251,255,.90), rgba(233,242,253,.76)) !important;
    box-shadow: 0 10px 22px rgba(37,99,235,.055), inset 0 1px 0 rgba(255,255,255,.72);
    overflow: hidden;
    transform: translateX(0);
    transition: transform .24s cubic-bezier(.16,1,.3,1), border-color .22s ease, background .22s ease, box-shadow .22s ease !important;
  }
  html[data-theme="dark"] .op-mm-link {
    border-color: rgba(180,200,255,.10) !important;
    background: linear-gradient(145deg, rgba(255,255,255,.092), rgba(255,255,255,.045)) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  }
  .op-mm-link::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--op-rd-grad);
    opacity: 0;
    transition: opacity .22s ease;
  }
  .op-mm-link:hover,
  .op-mm-link:active,
  .op-mm-link.is-active {
    transform: translateX(0) !important;
    border-color: rgba(37,99,235,.32) !important;
    background: linear-gradient(145deg, rgba(250,253,255,.98), rgba(225,242,255,.90)) !important;
    box-shadow: 0 16px 38px rgba(37,99,235,.12), inset 0 1px 0 rgba(255,255,255,.86);
  }
  html[data-theme="dark"] .op-mm-link:hover,
  html[data-theme="dark"] .op-mm-link:active,
  html[data-theme="dark"] .op-mm-link.is-active {
    background: linear-gradient(145deg, rgba(37,99,235,.22), rgba(6,182,212,.09)) !important;
    box-shadow: 0 16px 40px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.08);
  }
  .op-mm-link:hover::before,
  .op-mm-link:active::before,
  .op-mm-link.is-active::before { opacity: 1; }
  .op-mm-product-link {
    grid-template-columns: 36px minmax(0, 1fr) !important;
    min-height: 52px;
    border-radius: 16px !important;
    padding: 9px !important;
  }
  .op-mm-product-link .op-mm-arr { display: none !important; }
  .op-mm-quick-primary {
    border-color: rgba(37,99,235,.28) !important;
    background: linear-gradient(135deg, rgba(37,99,235,.13), rgba(6,182,212,.10), rgba(124,58,237,.10)) !important;
  }

  .op-mm-ico {
    position: relative;
    z-index: 1;
    display: grid !important;
    place-items: center;
    width: 38px !important;
    height: 38px !important;
    border-radius: 15px !important;
    color: #2563eb;
    background:
      linear-gradient(145deg, rgba(246,250,255,.96), rgba(215,232,250,.76)),
      linear-gradient(135deg, rgba(37,99,235,.18), rgba(6,182,212,.13));
    border: 1px solid rgba(37,99,235,.16);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.78), 0 10px 20px rgba(37,99,235,.10);
    flex: 0 0 38px !important;
    font-size: 0 !important;
    overflow: visible;
    transition: transform .24s cubic-bezier(.16,1,.3,1), box-shadow .22s ease, color .22s ease;
  }
  html[data-theme="dark"] .op-mm-ico {
    color: #67e8f9;
    border-color: rgba(180,200,255,.14);
    background:
      linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.045)),
      linear-gradient(135deg, rgba(37,99,235,.26), rgba(124,58,237,.16));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 22px rgba(0,0,0,.18);
  }
  .op-mm-product-link .op-mm-ico {
    width: 36px !important;
    height: 36px !important;
    border-radius: 14px !important;
    flex-basis: 36px !important;
  }
  .op-mm-ico svg {
    width: 19px;
    height: 19px;
    overflow: visible;
    filter: drop-shadow(0 6px 8px rgba(37,99,235,.18));
  }
  .op-mm-link:hover .op-mm-ico,
  .op-mm-link:active .op-mm-ico,
  .op-mm-link.is-active .op-mm-ico {
    transform: translateY(-1px) scale(1.035);
    color: #0891b2;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.84), 0 14px 28px rgba(37,99,235,.16);
  }
  .op-mm-copy {
    position: relative;
    z-index: 1;
    display: grid !important;
    gap: 2px;
    min-width: 0;
    background: transparent !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    flex: initial !important;
  }
  .op-mm-copy b {
    display: block;
    color: var(--op-text);
    font-size: 13px;
    font-weight: 920;
    line-height: 1.18;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .op-mm-copy small {
    display: block;
    color: var(--op-muted) !important;
    font-size: 11px;
    font-weight: 760;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .op-mm-arr {
    position: relative;
    z-index: 1;
    display: grid !important;
    place-items: center;
    width: 18px !important;
    height: 18px !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--op-muted);
    opacity: .58;
    transition: opacity .22s ease, transform .22s ease, color .22s ease;
  }
  .op-mm-arr svg { width: 15px; height: 15px; }
  .op-mm-link:hover .op-mm-arr,
  .op-mm-link:active .op-mm-arr,
  .op-mm-link.is-active .op-mm-arr { opacity: 1; color: var(--op-blue); transform: translateX(2px); }

  .op-mm-bottom {
    position: sticky;
    bottom: -14px;
    z-index: 3;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    gap: 8px !important;
    align-items: center;
    margin: 2px -2px -2px !important;
    padding: 10px 0 0;
    background: linear-gradient(0deg, rgba(248,251,255,.98), rgba(237,246,255,.90) 72%, transparent);
  }
  html[data-theme="dark"] .op-mm-bottom { background: linear-gradient(0deg, rgba(8,13,30,.98), rgba(8,13,30,.88) 72%, transparent); }
  .op-mm-bottom .op-btn {
    min-height: 46px;
    padding: 0 12px !important;
    border-radius: 16px !important;
    font-size: 13px !important;
    box-shadow: 0 16px 34px rgba(37,99,235,.24) !important;
  }
  .op-mm-bottom .op-btn-primary {
    color: #fff !important;
    text-shadow: 0 1px 0 rgba(0,0,0,.14);
  }
  .op-mm-bottom .op-btn-primary svg { color: #fff !important; stroke: currentColor !important; }

  .op-mm-bottom .op-mm-login {
    display: grid !important;
    grid-template-columns: 30px minmax(0, auto);
    justify-content: center;
    align-items: center;
    gap: 8px !important;
    border: 1px solid rgba(37,99,235,.16) !important;
    color: var(--op-text) !important;
    background: linear-gradient(145deg, rgba(248,251,255,.92), rgba(230,241,253,.78)) !important;
    box-shadow: 0 12px 28px rgba(37,99,235,.10), inset 0 1px 0 rgba(255,255,255,.78) !important;
    text-decoration: none !important;
    overflow: hidden;
  }
  html[data-theme="dark"] .op-mm-bottom .op-mm-login {
    border-color: rgba(180,200,255,.12) !important;
    background: linear-gradient(145deg, rgba(255,255,255,.105), rgba(255,255,255,.052)) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.07) !important;
  }
  .op-mm-bottom .op-mm-login:hover {
    transform: translateY(-1px);
    border-color: rgba(37,99,235,.30) !important;
    background: linear-gradient(145deg, rgba(250,253,255,.98), rgba(220,240,255,.88)) !important;
    box-shadow: 0 16px 34px rgba(37,99,235,.16), inset 0 1px 0 rgba(255,255,255,.88) !important;
  }
  html[data-theme="dark"] .op-mm-bottom .op-mm-login:hover {
    background: linear-gradient(145deg, rgba(37,99,235,.20), rgba(6,182,212,.08)) !important;
    box-shadow: 0 16px 34px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.08) !important;
  }
  .op-mm-bottom .op-mm-login .op-mm-ico {
    width: 30px !important;
    height: 30px !important;
    flex: 0 0 30px !important;
    border-radius: 12px !important;
  }
  .op-mm-bottom .op-mm-login .op-mm-ico svg { width: 16px; height: 16px; }
  .op-mm-bottom .op-mm-login span:not(.op-mm-ico) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .op-mm-link,
  .op-mm-product-link {
    grid-template-columns: 38px minmax(0, 1fr) 18px !important;
    justify-items: stretch !important;
    text-align: left !important;
  }
  .op-mm-product-link {
    min-height: 54px !important;
    padding: 8px 9px !important;
  }
  .op-mm-product-link .op-mm-ico {
    width: 38px !important;
    height: 38px !important;
    flex-basis: 38px !important;
    border-radius: 15px !important;
  }
  .op-mm-product-link .op-mm-arr {
    display: grid !important;
    opacity: .34 !important;
  }
  .op-mm-copy {
    width: 100% !important;
    max-width: 100% !important;
    justify-content: start !important;
    justify-items: start !important;
    align-items: center !important;
    text-align: left !important;
  }
  .op-mm-copy b,
  .op-mm-copy small {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    justify-self: stretch !important;
    text-align: left !important;
  }

  .op-mobile-menu.open .op-mm-top,
  .op-mobile-menu.open .op-mm-quick,
  .op-mobile-menu.open .op-mm-section,
  .op-mobile-menu.open .op-mm-bottom {
    animation: opMmRise .42s cubic-bezier(.16,1,.3,1) both;
  }
  .op-mobile-menu.open .op-mm-quick { animation-delay: .04s; }
  .op-mobile-menu.open .op-mm-section:nth-of-type(1) { animation-delay: .08s; }
  .op-mobile-menu.open .op-mm-section:nth-of-type(2) { animation-delay: .11s; }
  .op-mobile-menu.open .op-mm-section:nth-of-type(3) { animation-delay: .14s; }
  .op-mobile-menu.open .op-mm-section:nth-of-type(4) { animation-delay: .17s; }
  .op-mobile-menu.open .op-mm-bottom { animation-delay: .2s; }

  .op-mobile-menu *,
  .op-mobile-menu *::before,
  .op-mobile-menu *::after {
    box-sizing: border-box;
    max-width: 100%;
  }
  .op-mm-inner,
  .op-mm-quick,
  .op-mm-section,
  .op-mm-product-grid,
  .op-mm-bottom,
  .op-mm-link,
  .op-mm-copy {
    min-width: 0 !important;
  }
  body.op-mm-open { overflow: hidden !important; touch-action: none; }
}

@media (max-width: 430px) {
  .op-mm-inner { width: 100% !important; max-width: none !important; margin-top: 56px !important; border-radius: 24px; padding: 9px !important; }
  .op-mm-quick { gap: 8px; }
  .op-mm-link { min-height: 56px; grid-template-columns: 38px minmax(0,1fr) 16px; }
  .op-mm-ico { width: 38px !important; height: 38px !important; flex-basis: 38px !important; }
}

@media (max-width: 360px) {
  .op-mm-bottom { grid-template-columns: 1fr !important; }
}

@media (prefers-reduced-motion: reduce) {
  .op-mm-bg path,
  .op-mm-bg circle,
  .op-mobile-menu.open .op-mm-top,
  .op-mobile-menu.open .op-mm-quick,
  .op-mobile-menu.open .op-mm-section,
  .op-mobile-menu.open .op-mm-bottom { animation: none !important; }
  .op-mobile-menu,
  .op-mm-inner,
  .op-mm-link,
  .op-mobile-btn,
  .op-mm-ico { transition: none !important; }
}
@keyframes opMmDash { to { stroke-dashoffset: -260; } }
@keyframes opMmPulse { 0%,100% { opacity: .42; } 50% { opacity: .95; } }
@keyframes opMmRise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* NAV_INTENT_GUARD - feature mega menu opens on deliberate intent, not fly-bys. */
@media (min-width: 1041px) {
  .op-nav-dd::before { pointer-events: none !important; }
  .op-nav-dd.open::before {
    pointer-events: auto !important;
    left: -8px !important;
    right: -8px !important;
    height: 14px !important;
  }
  .op-nav-dd:not(.open):not(:focus-within):hover .op-dd-panel,
  .op-nav-dd:not(.open):not(:focus-within):hover .op-dd-panel.op-feature-mega {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateX(-50%) translateY(16px) scale(.982) !important;
  }
  .op-nav-dd:not(.open):not(:focus-within):hover .op-nav-caret {
    transform: none !important;
    opacity: .7 !important;
    color: currentColor !important;
  }
  .op-nav-dd.open .op-nav-caret,
  .op-nav-dd:focus-within .op-nav-caret {
    transform: rotate(180deg) !important;
    opacity: 1 !important;
    color: var(--op-blue) !important;
    background: rgba(37,99,235,.14) !important;
  }
}
