/* ============================================================
   Nexora Elementor Widgets — premium look, lightweight motion
   - All reveals fire ONCE via IntersectionObserver (.is-in)
   - Pure CSS transitions; GPU-friendly transform + opacity only
   - Respects prefers-reduced-motion
   ============================================================ */

/* Reveal primitive — used by all widget items */
.nx-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--nxw-delay, 0ms);
  will-change: transform, opacity;
}
.nx-reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .nx-reveal,
  .nx-reveal.is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   1) IMAGE MARQUEE
   ============================================================ */
.nxw-marquee {
  position: relative;
  overflow: hidden;
  padding-block: 28px;
}
.nxw-marquee.is-edge-fade {
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
}
.nxw-marquee__track {
  display: flex;
  width: max-content;
  animation: nxw-marquee var(--nxw-speed, 35s) linear infinite;
  animation-direction: var(--nxw-direction, normal);
}
.nxw-marquee.is-hover-pause:hover .nxw-marquee__track {
  animation-play-state: paused;
}
.nxw-marquee__list {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0 40px 0 0;
  flex-shrink: 0;
}
.nxw-marquee__item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nxw-marquee__item a {
  display: inline-flex;
  align-items: center;
}
.nxw-marquee__item img {
  height: auto;
  width: auto;
  max-height: 56px;
  display: block;
  opacity: 0.7;
  transition:
    opacity 0.35s ease,
    filter 0.35s ease,
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nxw-marquee.is-grayscale .nxw-marquee__item img {
  filter: grayscale(100%);
}
.nxw-marquee.is-grayscale .nxw-marquee__item:hover img {
  filter: grayscale(0);
}
.nxw-marquee__item:hover img {
  opacity: 1;
  transform: scale(1.04);
}
@keyframes nxw-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* ============================================================
   2) COUNTERS
   ============================================================ */
.nxw-counters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  position: relative;
  --nxw-accent: #6b4fff;
}
.nxw-counter {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 8px 4px;
  position: relative;
  isolation: isolate;
  transition:
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.35s ease,
    border-color 0.25s ease,
    background 0.35s ease;
}

/* Plain — original vertical divider look */
.nxw-counters.is-separated .nxw-counter + .nxw-counter::before {
  content: "";
  position: absolute;
  left: calc(-1 * (var(--gap, 24px) / 2));
  top: 12%;
  bottom: 12%;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(10, 15, 36, 0.12),
    transparent
  );
}

/* Glass card */
.nxw-counters.is-style-glass .nxw-counter {
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  padding: 28px;
  box-shadow:
    0 28px 60px -28px rgba(10, 15, 36, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

/* Outline card */
.nxw-counters.is-style-outline .nxw-counter {
  background: transparent;
  border: 1px solid rgba(10, 15, 36, 0.12);
  border-radius: 16px;
  padding: 28px;
}

/* Solid card */
.nxw-counters.is-style-solid .nxw-counter {
  background: var(--nx-color-surface, #fff);
  border: 1px solid rgba(10, 15, 36, 0.06);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 6px 18px -10px rgba(10, 15, 36, 0.08);
}

/* Side accent — vertical color bar on the left */
.nxw-counters.is-style-accent .nxw-counter {
  background: var(--nx-color-surface, #fff);
  border: 1px solid rgba(10, 15, 36, 0.06);
  border-radius: 16px;
  padding: 28px 28px 28px 32px;
  box-shadow: 0 6px 18px -10px rgba(10, 15, 36, 0.08);
  overflow: hidden;
}
.nxw-counters.is-style-accent .nxw-counter::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--nxw-accent, #6b4fff), #0fbfa4);
  transition:
    top 0.4s ease,
    bottom 0.4s ease;
}
.nxw-counters.is-style-accent .nxw-counter:hover::before {
  top: 8%;
  bottom: 8%;
}

/* Numbered — giant index number floating in background */
.nxw-counters.is-style-numbered .nxw-counter {
  background: var(--nx-color-surface, #fff);
  border: 1px solid rgba(10, 15, 36, 0.07);
  border-radius: 18px;
  padding: 32px 28px 28px;
  box-shadow: 0 10px 28px -16px rgba(10, 15, 36, 0.1);
  overflow: hidden;
}
.nxw-counter__index {
  position: absolute;
  right: 14px;
  top: 4px;
  font-family: var(--nx-font-heading, "Space Grotesk", system-ui, sans-serif);
  font-size: 5.4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(10, 15, 36, 0.1);
  pointer-events: none;
  z-index: 0;
  transition:
    transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    -webkit-text-stroke-color 0.3s ease;
}
.nxw-counters.is-style-numbered .nxw-counter > *:not(.nxw-counter__index) {
  position: relative;
  z-index: 1;
}
.nxw-counters.is-style-numbered .nxw-counter:hover .nxw-counter__index {
  transform: translate(-4px, 2px);
  -webkit-text-stroke-color: rgba(107, 79, 255, 0.35);
}

/* Floating gradient — soft halo + gradient ring */
.nxw-counters.is-style-floating .nxw-counter {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  padding: 30px;
  box-shadow:
    0 30px 60px -28px rgba(107, 79, 255, 0.18),
    0 8px 24px -10px rgba(15, 191, 164, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.nxw-counters.is-style-floating .nxw-counter::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(107, 79, 255, 0.5),
    rgba(15, 191, 164, 0.4)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.6;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.nxw-counters.is-style-floating .nxw-counter:hover::after {
  opacity: 1;
}

/* Hover effects — apply to all carded styles */
.nxw-counters.is-hover-lift .nxw-counter:hover {
  transform: translateY(-6px);
  box-shadow: 0 36px 70px -32px rgba(10, 15, 36, 0.2);
}
.nxw-counters.is-hover-glow .nxw-counter:hover {
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--nxw-accent, #6b4fff) 35%, transparent),
    0 24px 60px -22px
      color-mix(in srgb, var(--nxw-accent, #6b4fff) 30%, transparent);
}
/* Gradient border hover — skip on styles that already render a gradient ring */
.nxw-counters.is-hover-border:not(.is-style-floating) .nxw-counter::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--nxw-accent, #6b4fff), #0fbfa4);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.nxw-counters.is-hover-border:not(.is-style-floating)
  .nxw-counter:hover::after {
  opacity: 1;
}
.nxw-counters.is-hover-tilt .nxw-counter:hover {
  transform: translateY(-4px) rotate(-0.4deg);
  box-shadow: 0 30px 60px -28px rgba(10, 15, 36, 0.18);
}

/* Counter inner pieces */
.nxw-counter__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 6px;
  border-radius: 10px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--nxw-accent, #6b4fff) 14%, transparent),
    color-mix(in srgb, #0fbfa4 12%, transparent)
  );
  color: var(--nxw-accent, #6b4fff);
}
.nxw-counter__icon svg,
.nxw-counter__icon i {
  width: 18px;
  height: 18px;
  font-size: 18px;
}
.nxw-counter__num {
  font-family: var(--nx-font-heading, "Space Grotesk", system-ui, sans-serif);
  font-size: clamp(2.2rem, 3.4vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #6b4fff 0%, #0fbfa4 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}
.nxw-counter__label {
  font-size: 0.92rem;
  color: var(--nx-color-text, #0a0f24);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.nxw-counter__desc {
  margin: 6px 0 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--nx-color-muted, #566083);
  max-width: 30ch;
}
.nxw-counters[style*="text-align: center"] .nxw-counter__desc,
.nxw-counter[style*="text-align: center"] .nxw-counter__desc {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   3) SERVICE BLOCK
   ============================================================ */
.nxw-services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.nxw-service {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px !important;
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition:
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.35s ease,
    border-color 0.25s ease;
  isolation: isolate;
}
.nxw-service__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  flex: 1 1 auto;
}
.nxw-service::after {
  /* used by gradient-border hover */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  padding: 1px;
  background: linear-gradient(135deg, #6b4fff, #0fbfa4);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
}

/* Card styles — light multi-stop gradient (hero-style) */
.nxw-services .nxw-service {
  background-color: #ffffff;
  background-image:
    radial-gradient(at 20% 15%, rgba(107, 79, 255, 0.12) 0%, transparent 55%),
    radial-gradient(at 85% 25%, rgba(15, 191, 164, 0.1) 0%, transparent 60%),
    radial-gradient(at 50% 110%, rgba(46, 141, 245, 0.1) 0%, transparent 65%);
}
.nxw-services.is-style-glass .nxw-service {
  background-color: rgba(255, 255, 255, 0.75);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 28px 60px -28px rgba(10, 15, 36, 0.1);
}
.nxw-services.is-style-outline .nxw-service {
  background-color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(10, 15, 36, 0.1);
}
.nxw-services.is-style-solid .nxw-service {
  background-color: var(--nx-color-surface, #fff);
  border: 1px solid rgba(10, 15, 36, 0.06);
  box-shadow: 0 6px 18px -10px rgba(10, 15, 36, 0.08);
}

/* Hover effects */
.nxw-services.is-hover-lift .nxw-service:hover {
  transform: translateY(-6px);
  box-shadow: 0 36px 70px -32px rgba(10, 15, 36, 0.18);
}
.nxw-services.is-hover-glow .nxw-service:hover {
  box-shadow:
    0 0 0 1px rgba(107, 79, 255, 0.4),
    0 24px 60px -22px rgba(107, 79, 255, 0.3);
}
.nxw-services.is-hover-border .nxw-service:hover::after {
  opacity: 1;
}

.nxw-service__badge {
  font-family: var(--nx-font-mono, "JetBrains Mono", monospace);
  font-size: 0.74rem;
  letter-spacing: 0.15em;
  color: var(--nx-color-accent, #6b4fff);
}

/* Image (preferred visual) */
.nxw-service__image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(10, 15, 36, 0.04);
}
.nxw-service__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nxw-service.is-zoom:hover .nxw-service__image img {
  transform: scale(1.06);
}

/* Icon (fallback when no image) */
.nxw-service__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--nx-color-accent, #6b4fff);
}
.nxw-service__icon svg {
  width: 100%;
  height: 100%;
}

.nxw-service__title {
  margin: 0;
  font-size: clamp(1.15rem, 1.4vw, 1.4rem);
  line-height: 1.25;
  color: var(--nx-color-text, #0a0f24);
}
.nxw-service__desc {
  margin: 0;
  color: var(--nx-color-muted, #566083);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Outlined button (pinned to card bottom) */
.nxw-service__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  align-self: flex-start;
  padding: 10px 20px;
  border: 1.5px solid var(--nx-color-accent, #6b4fff);
  border-radius: 12px !important;
  background: transparent;
  color: var(--nx-color-accent, #6b4fff);
  font-family: var(--nx-font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.3s ease;
}
.nxw-service__btn:hover {
  background: var(--nx-color-accent, #6b4fff);
  color: #fff;
  border-color: var(--nx-color-accent, #6b4fff);
  box-shadow: 0 12px 28px -14px rgba(107, 79, 255, 0.45);
}
.nxw-service__btn-arrow {
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nxw-service__btn:hover .nxw-service__btn-arrow {
  transform: translateX(3px);
}

/* ============================================================
   4) FAQ ACCORDION
   ============================================================ */
.nxw-faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nxw-faq__item {
  overflow: hidden;
  border-radius: 14px;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}
.nxw-faq.is-style-glass .nxw-faq__item {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 14px 40px -22px rgba(10, 15, 36, 0.1);
}
.nxw-faq.is-style-outline .nxw-faq__item {
  background: transparent;
  border: 1px solid rgba(10, 15, 36, 0.1);
}
.nxw-faq.is-style-minimal .nxw-faq__item {
  background: transparent;
  border-bottom: 1px solid rgba(10, 15, 36, 0.08);
  border-radius: 0;
}
.nxw-faq__item.is-open {
  box-shadow: 0 24px 60px -28px rgba(10, 15, 36, 0.15);
}

.nxw-faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 24px;
  background: transparent;
  border: 0;
  color: var(--nx-color-text, #0a0f24);
  font-family: var(--nx-font-heading, "Space Grotesk", system-ui, sans-serif);
  font-weight: 600;
  font-size: 1.02rem;
  text-align: left;
  cursor: pointer;
  transition: color 0.25s ease;
}
.nxw-faq__q-text {
  flex: 1;
}
.nxw-faq__icon {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(10, 15, 36, 0.06);
  color: var(--nx-color-text, #0a0f24);
  transition:
    transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    background 0.3s ease,
    color 0.3s ease;
}
.nxw-faq.is-icon-plus .nxw-faq__item.is-open .nxw-faq__icon {
  transform: rotate(45deg);
}
.nxw-faq.is-icon-chevron .nxw-faq__item.is-open .nxw-faq__icon {
  transform: rotate(180deg);
}

/* The answer uses CSS grid trick for smooth height transition (no JS height calc) */
.nxw-faq__a-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nxw-faq__item.is-open .nxw-faq__a-wrap {
  grid-template-rows: 1fr;
}
.nxw-faq__a-inner {
  min-height: 0;
  overflow: hidden;
  padding-inline: 24px;
}
.nxw-faq__a {
  padding-bottom: 18px;
  color: var(--nx-color-muted, #566083);
  line-height: 1.7;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity 0.35s ease 0.05s,
    transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) 0.05s;
}
.nxw-faq__item.is-open .nxw-faq__a {
  opacity: 1;
  transform: none;
}
.nxw-faq__a p:last-child {
  margin-bottom: 0;
}
.nxw-faq__a p {
  margin: 0 0 0.8em;
}

/* Fallback for older browsers without grid 0fr -> 1fr support */
@supports not (grid-template-rows: 0fr) {
  .nxw-faq__a-wrap {
    display: block;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .nxw-faq__item.is-open .nxw-faq__a-wrap {
    max-height: 1500px;
  }
}

/* ============================================================
   5) PRICING PLANS
   ============================================================ */
.nxw-pricing {
  --nxw-pricing-accent: #6b4fff;
  --nxw-pricing-accent-2: #0fbfa4;
  position: relative;
}

/* Section header */
.nxw-pricing__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nxw-pricing__eyebrow {
  display: inline-block;
  align-self: center;
  font-family: var(--nx-font-mono, "JetBrains Mono", ui-monospace, monospace);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nxw-pricing-accent);
  padding: 6px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--nxw-pricing-accent) 10%, transparent);
}
.nxw-pricing__heading {
  margin: 0;
  font-family: var(--nx-font-heading, "Space Grotesk", system-ui, sans-serif);
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--nx-color-text, #0a0f24);
}
.nxw-pricing__sub {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--nx-color-muted, #566083);
}

/* Grid */
.nxw-pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

/* Card base */
.nxw-pricing__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 32px 28px;
  border-radius: 20px;
  background-color: #ffffff;
  background-image:
    radial-gradient(at 15% 10%, rgba(107, 79, 255, 0.08) 0%, transparent 55%),
    radial-gradient(at 90% 100%, rgba(15, 191, 164, 0.07) 0%, transparent 60%);
  border: 1px solid rgba(10, 15, 36, 0.08);
  box-shadow: 0 6px 20px -12px rgba(10, 15, 36, 0.08);
  isolation: isolate;
  transition:
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.4s ease,
    border-color 0.3s ease;
}
.nxw-pricing__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -28px rgba(10, 15, 36, 0.18);
}

/* Style variants */
.nxw-pricing.is-style-glass .nxw-pricing__card {
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow:
    0 28px 60px -28px rgba(10, 15, 36, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.nxw-pricing.is-style-outline .nxw-pricing__card {
  background-color: transparent;
  border-color: rgba(10, 15, 36, 0.12);
  box-shadow: none;
}
.nxw-pricing.is-style-solid .nxw-pricing__card {
  background-color: var(--nx-color-surface, #fff);
}

/* Featured card */
.nxw-pricing__card.is-featured {
  border-color: transparent;
  background-image:
    radial-gradient(at 15% 10%, color-mix(in srgb, var(--nxw-pricing-accent) 14%, transparent) 0%, transparent 55%),
    radial-gradient(at 90% 100%, color-mix(in srgb, var(--nxw-pricing-accent-2) 12%, transparent) 0%, transparent 60%);
  box-shadow:
    0 36px 80px -32px color-mix(in srgb, var(--nxw-pricing-accent) 35%, transparent),
    0 12px 28px -14px color-mix(in srgb, var(--nxw-pricing-accent-2) 25%, transparent);
}
.nxw-pricing__card.is-featured::before {
  /* gradient ring */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, var(--nxw-pricing-accent), var(--nxw-pricing-accent-2));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}
.nxw-pricing.lift-featured .nxw-pricing__card.is-featured {
  transform: translateY(-12px);
}
.nxw-pricing.lift-featured .nxw-pricing__card.is-featured:hover {
  transform: translateY(-18px);
}

/* Featured badge */
.nxw-pricing__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--nx-font-mono, "JetBrains Mono", ui-monospace, monospace);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--nxw-pricing-accent), var(--nxw-pricing-accent-2));
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--nxw-pricing-accent) 50%, transparent);
}

/* Card head */
.nxw-pricing__card-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(10, 15, 36, 0.08);
}
.nxw-pricing__name {
  margin: 0;
  font-family: var(--nx-font-heading, "Space Grotesk", system-ui, sans-serif);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--nx-color-text, #0a0f24);
}
.nxw-pricing__subtitle {
  margin: 0;
  font-size: 0.86rem;
  color: var(--nx-color-muted, #566083);
}
.nxw-pricing__subtitle span {
  opacity: 0.7;
  margin-right: 4px;
}
.nxw-pricing__price {
  margin: 6px 0 0;
  font-family: var(--nx-font-heading, "Space Grotesk", system-ui, sans-serif);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--nxw-pricing-accent), var(--nxw-pricing-accent-2));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Features list */
.nxw-pricing__features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
}
.nxw-pricing__feat {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  line-height: 1.45;
}
.nxw-pricing__feat-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  margin-top: 1px;
}
.nxw-pricing__feat.is-included .nxw-pricing__feat-icon {
  background: color-mix(in srgb, var(--nxw-pricing-accent) 14%, transparent);
  color: var(--nxw-pricing-accent);
}
.nxw-pricing__feat.is-excluded .nxw-pricing__feat-icon {
  background: rgba(10, 15, 36, 0.06);
  color: rgba(10, 15, 36, 0.4);
}
.nxw-pricing__feat-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.nxw-pricing__feat-label {
  color: var(--nx-color-text, #0a0f24);
  font-weight: 500;
}
.nxw-pricing__feat.is-excluded .nxw-pricing__feat-label {
  color: rgba(10, 15, 36, 0.45);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.nxw-pricing__feat-value {
  color: var(--nx-color-muted, #566083);
  font-size: 0.84rem;
}

/* Button */
.nxw-pricing__btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--nxw-pricing-accent);
  background: transparent;
  color: var(--nxw-pricing-accent);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.3s ease;
}
.nxw-pricing__btn-arrow {
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nxw-pricing__btn:hover {
  background: var(--nxw-pricing-accent);
  color: #fff;
  border-color: var(--nxw-pricing-accent);
  box-shadow: 0 12px 28px -14px color-mix(in srgb, var(--nxw-pricing-accent) 50%, transparent);
}
.nxw-pricing__btn:hover .nxw-pricing__btn-arrow {
  transform: translateX(3px);
}
.nxw-pricing__card.is-featured .nxw-pricing__btn {
  background: linear-gradient(135deg, var(--nxw-pricing-accent), var(--nxw-pricing-accent-2));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--nxw-pricing-accent) 60%, transparent);
}
.nxw-pricing__card.is-featured .nxw-pricing__btn:hover {
  filter: brightness(1.06);
  box-shadow: 0 18px 36px -14px color-mix(in srgb, var(--nxw-pricing-accent) 70%, transparent);
}

/* ============================================================
   6) FORM
   ============================================================ */
.nxw-form-wrap {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.nxw-form__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nxw-form__heading {
  margin: 0;
  font-family: var(--nx-font-heading, "Space Grotesk", system-ui, sans-serif);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--nx-color-text, #0a0f24);
}
.nxw-form__sub {
  margin: 0;
  color: var(--nx-color-muted, #566083);
  line-height: 1.55;
}
.nxw-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.nxw-form__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.nxw-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  grid-column: span 6;
}
.nxw-form__field.is-w-50  { grid-column: span 3; }
.nxw-form__field.is-w-33  { grid-column: span 2; }
.nxw-form__field.is-w-100 { grid-column: span 6; }

.nxw-form__field > label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--nx-color-text, #0a0f24);
  letter-spacing: 0.01em;
}
.nxw-form__req {
  color: var(--nx-color-accent, #6b4fff);
  margin-left: 2px;
}

.nxw-form input:not([type="submit"]),
.nxw-form textarea,
.nxw-form select {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--nx-color-text, #0a0f24);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(10, 15, 36, 0.12);
  border-radius: 12px;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
  outline: none;
}
.nxw-form textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.55;
}
.nxw-form input:focus,
.nxw-form textarea:focus,
.nxw-form select:focus {
  border-color: var(--nx-color-accent, #6b4fff);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(107, 79, 255, 0.12);
}
.nxw-form input:invalid:not(:placeholder-shown),
.nxw-form textarea:invalid:not(:placeholder-shown) {
  border-color: #e0455c;
}
.nxw-form input::placeholder,
.nxw-form textarea::placeholder {
  color: var(--nx-color-muted, #566083);
  opacity: 0.65;
}
.nxw-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23566083' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  padding-right: 38px;
}

.nxw-form__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}
.nxw-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--nx-color-accent, #6b4fff), var(--nx-color-aurora, #0fbfa4));
  color: #ffffff;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 14px 28px -14px rgba(107, 79, 255, 0.45);
  transition:
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.3s ease,
    filter 0.3s ease;
}
.nxw-form__submit:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 20px 36px -16px rgba(107, 79, 255, 0.55);
}
.nxw-form__submit:disabled,
.nxw-form__submit.is-loading {
  opacity: 0.7;
  cursor: progress;
  transform: none;
}
.nxw-form__submit.is-full { width: 100%; }
.nxw-form__submit-arrow {
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nxw-form__submit:hover .nxw-form__submit-arrow {
  transform: translateX(3px);
}

.nxw-form__msg {
  margin: 4px 0 0;
  font-size: 0.9rem;
  min-height: 1.2em;
}
.nxw-form__msg.is-success {
  color: #0c9a6f;
}
.nxw-form__msg.is-error {
  color: #d0364f;
}

/* ============================================================
   7) SUB-SERVICES
   ============================================================ */
.nxw-subs {
  --nxw-subs-accent: var(--nx-color-accent, #6b4fff);
  --nxw-subs-accent-2: var(--nx-color-aurora, #0fbfa4);
}
.nxw-subs__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  max-width: 680px;
  /* Match the card's inner content left edge so eyebrow + heading + card titles
     all sit on the same vertical line. */
  padding-left: 20px;
}
.nxw-subs__head > * { margin: 0; }
.nxw-subs__heading { margin-top: 2px; }
.nxw-subs__eyebrow {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--nx-font-mono, "JetBrains Mono", ui-monospace, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nxw-subs-accent);
  padding: 5px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--nxw-subs-accent) 10%, transparent);
}
.nxw-subs__heading {
  margin: 0;
  font-family: var(--nx-font-heading, "Space Grotesk", system-ui, sans-serif);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--nx-color-text, #0a0f24);
}
.nxw-subs__sub {
  margin: 0;
  color: var(--nx-color-muted, #566083);
  font-size: 1rem;
  line-height: 1.55;
}

.nxw-subs__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* Base item */
.nxw-subs__item {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid rgba(10, 15, 36, 0.08);
  border-radius: 14px;
  background-color: #ffffff;
  background-image:
    radial-gradient(at 15% 10%, rgba(107, 79, 255, 0.05) 0%, transparent 60%),
    radial-gradient(at 100% 100%, rgba(15, 191, 164, 0.05) 0%, transparent 65%);
  color: inherit;
  text-decoration: none;
  isolation: isolate;
  transition:
    transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease,
    color 0.3s ease;
}

/* Cards layout — icon stacks on top, content flush-left below */
.nxw-subs.is-layout-cards .nxw-subs__item {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.nxw-subs.is-layout-cards .nxw-subs__body {
  width: 100%;
  /* Pull the body up tight against the icon — defeats grid's stretch-distribute */
  margin-bottom: auto;
}
.nxw-subs.is-layout-cards .nxw-subs__icon {
  margin-bottom: 0;
}

.nxw-subs__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--nxw-subs-accent) 12%, transparent);
  color: var(--nxw-subs-accent);
  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nxw-subs__icon i,
.nxw-subs__icon svg {
  font-size: 20px;
  width: 20px;
  height: 20px;
}
.nxw-subs__item:hover .nxw-subs__icon {
  transform: scale(1.05);
}

.nxw-subs__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nxw-subs__title {
  margin: 0;
  font-family: var(--nx-font-heading, "Space Grotesk", system-ui, sans-serif);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--nx-color-text, #0a0f24);
  letter-spacing: -0.005em;
}
.nxw-subs__desc {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--nx-color-muted, #566083);
}

.nxw-subs__arrow {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--nxw-subs-accent);
  background: rgba(255, 255, 255, 0.7);
  opacity: 0;
  transform: translate(-2px, 2px);
  transition:
    opacity 0.3s ease,
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    background 0.25s ease,
    color 0.25s ease;
}
.nxw-subs__item:hover .nxw-subs__arrow {
  opacity: 1;
  transform: translate(0, 0);
}

/* Hover effects */
.nxw-subs.is-hover-lift .nxw-subs__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px -22px rgba(10, 15, 36, 0.16);
  border-color: rgba(107, 79, 255, 0.25);
}
.nxw-subs.is-hover-glow .nxw-subs__item:hover {
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--nxw-subs-accent) 35%, transparent),
    0 18px 40px -18px color-mix(in srgb, var(--nxw-subs-accent) 30%, transparent);
  border-color: transparent;
}
.nxw-subs.is-hover-fill .nxw-subs__item:hover {
  background-color: var(--nxw-subs-accent);
  background-image: none;
  border-color: var(--nxw-subs-accent);
  box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--nxw-subs-accent) 45%, transparent);
}
.nxw-subs.is-hover-fill .nxw-subs__item:hover .nxw-subs__title,
.nxw-subs.is-hover-fill .nxw-subs__item:hover .nxw-subs__desc {
  color: #fff;
}
.nxw-subs.is-hover-fill .nxw-subs__item:hover .nxw-subs__desc {
  opacity: 0.92;
}
.nxw-subs.is-hover-fill .nxw-subs__item:hover .nxw-subs__icon {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.nxw-subs.is-hover-fill .nxw-subs__item:hover .nxw-subs__arrow {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Layout: List (single column, rows) */
.nxw-subs.is-layout-list .nxw-subs__grid {
  grid-template-columns: 1fr;
}
.nxw-subs.is-layout-list .nxw-subs__item {
  border-radius: 12px;
  padding: 16px 18px;
}

/* Layout: Compact pills */
.nxw-subs.is-layout-pills .nxw-subs__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-template-columns: none !important;
}
.nxw-subs.is-layout-pills .nxw-subs__item {
  flex: 0 0 auto;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background-image: none;
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(10, 15, 36, 0.1);
  gap: 8px;
  align-items: center;
}
.nxw-subs.is-layout-pills .nxw-subs__icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
}
.nxw-subs.is-layout-pills .nxw-subs__icon i,
.nxw-subs.is-layout-pills .nxw-subs__icon svg {
  font-size: 14px;
  width: 14px;
  height: 14px;
}
.nxw-subs.is-layout-pills .nxw-subs__title {
  font-size: 0.88rem;
  font-weight: 600;
}
.nxw-subs.is-layout-pills .nxw-subs__desc,
.nxw-subs.is-layout-pills .nxw-subs__arrow {
  display: none;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .nxw-pricing__grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }
  .nxw-pricing.lift-featured .nxw-pricing__card.is-featured,
  .nxw-pricing.lift-featured .nxw-pricing__card.is-featured:hover {
    transform: none;
  }
  .nxw-pricing__card.is-featured {
    order: -1; /* float the featured card to the top on mobile */
  }
}

@media (max-width: 820px) {
  .nxw-marquee__list {
    gap: 28px;
    padding-right: 28px;
  }
  .nxw-services {
    grid-template-columns: 1fr !important;
  }
  .nxw-counter__num {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
  }
  .nxw-counters.is-separated .nxw-counter + .nxw-counter::before {
    display: none;
  }
  .nxw-counters:not(.is-style-plain) .nxw-counter {
    padding: 22px;
  }
  .nxw-counter__index {
    font-size: 4.2rem;
  }
  .nxw-counter__desc {
    max-width: none;
  }
  .nxw-faq__q {
    padding: 16px 18px;
    font-size: 0.96rem;
  }
  .nxw-form__field.is-w-50,
  .nxw-form__field.is-w-33 {
    grid-column: span 6;
  }
  .nxw-form__submit {
    width: 100%;
  }
  .nxw-subs__grid {
    grid-template-columns: 1fr !important;
  }
  .nxw-subs__item {
    padding: 16px;
  }
  .nxw-pricing__card {
    padding: 26px 22px;
  }
  .nxw-pricing__name {
    font-size: 1.25rem;
  }
}

/* ============================================================
   TEAM MEMBERS WIDGET
   ============================================================ */
.nxw-team {
  --nxw-team-a: var(--nx-color-primary, #6366f1);
  --nxw-team-b: var(--nx-color-accent,  #06b6d4);
  --nxw-card-bg: #ffffff;
  --nxw-card-border: color-mix(in srgb, var(--nxw-team-a) 14%, #e6e8ef);
  --nxw-card-radius: 28px;
  --nxw-text-1: #0b1020;
  --nxw-text-2: #4a5070;
  --nxw-text-3: #6b7290;
  position: relative;
}

.nxw-team__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.nxw-team__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--nxw-team-a);
  background: color-mix(in srgb, var(--nxw-team-a) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--nxw-team-a) 20%, transparent);
  margin-bottom: 18px;
}
.nxw-team__eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--nxw-team-a);
  box-shadow: 0 0 12px var(--nxw-team-a);
}
.nxw-team__heading {
  font-family: var(--nx-font-heading);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--nxw-text-1);
  margin: 0 0 14px;
  text-wrap: balance;
}
.nxw-team__sub {
  color: var(--nxw-text-2);
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0;
  text-wrap: pretty;
}

.nxw-team__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 1180px) {
  .nxw-team__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nxw-team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .nxw-team__grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- Card (iOS-style liquid glass with aurora gradient) ---------- */
.nxw-team__card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(135deg,
      rgba(217, 206, 245, 0.55) 0%,
      rgba(214, 226, 245, 0.45) 35%,
      rgba(215, 238, 235, 0.5) 70%,
      rgba(199, 235, 219, 0.55) 100%);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--nxw-card-radius);
  padding: 22px 22px 24px;
  overflow: hidden;
  transition:
    transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.4s ease,
    background 0.4s ease;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 -1px 0 rgba(255, 255, 255, 0.4) inset,
    0 18px 40px -24px rgba(110, 100, 180, 0.3),
    0 2px 6px -2px rgba(80, 90, 140, 0.1);
}
/* Specular highlight sheen on top edge */
.nxw-team__card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.55) 0%,
      rgba(255, 255, 255, 0.08) 18%,
      transparent 40%);
  mix-blend-mode: overlay;
  z-index: 0;
}
.nxw-team__card > .nxw-team__media,
.nxw-team__card > .nxw-team__body { position: relative; z-index: 1; }
.nxw-team__card:hover {
  transform: translateY(-6px);
  background:
    linear-gradient(135deg,
      rgba(208, 192, 246, 0.7) 0%,
      rgba(205, 220, 246, 0.6) 35%,
      rgba(200, 234, 228, 0.65) 70%,
      rgba(180, 230, 208, 0.7) 100%);
  border-color: color-mix(in srgb, var(--nxw-team-a) 35%, rgba(255, 255, 255, 0.7));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 -1px 0 rgba(255, 255, 255, 0.45) inset,
    0 34px 70px -28px color-mix(in srgb, var(--nxw-team-a) 45%, #1a1f3a 55%),
    0 6px 18px -8px rgba(110, 100, 180, 0.22);
}

/* Aurora halo - sits behind everything */
.nxw-team__halo {
  position: absolute;
  inset: -40%;
  z-index: -2;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(40% 40% at 25% 30%, color-mix(in srgb, var(--nxw-team-a) 38%, transparent), transparent 60%),
    radial-gradient(45% 45% at 80% 75%, color-mix(in srgb, var(--nxw-team-b) 32%, transparent), transparent 65%);
  filter: blur(40px);
  transition: opacity 0.6s ease;
}
.nxw-team__card:hover .nxw-team__halo { opacity: 1; }

/* Subtle grain over the card for premium feel */
.nxw-team__grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image: radial-gradient(rgba(0,0,0,0.05) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: multiply;
}

/* ---------- Media (photo or avatar) ---------- */
.nxw-team__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin-bottom: 18px;
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--nxw-team-a) 12%, transparent),
      color-mix(in srgb, var(--nxw-team-b) 10%, transparent));
  border-radius: 22px;
}
.nxw-team__photo {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.5s ease;
}
.nxw-team__card:hover .nxw-team__photo {
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.02);
}

/* Initials avatar fallback - gradient derived from name hash */
.nxw-team__avatar {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 80% at 20% 10%, hsl(var(--nxw-hue, 220) 95% 70% / 0.9), transparent 55%),
    radial-gradient(120% 80% at 100% 100%, hsl(calc(var(--nxw-hue, 220) + 60) 90% 60% / 0.95), transparent 60%),
    linear-gradient(160deg, var(--nxw-team-a), var(--nxw-team-b));
  position: relative;
}
.nxw-team__avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 40%),
    radial-gradient(rgba(255,255,255,0.16) 1px, transparent 1px);
  background-size: auto, 4px 4px;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.nxw-team__initials {
  font-family: var(--nx-font-heading);
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4rem);
  letter-spacing: -0.04em;
  color: #fff;
  text-shadow: 0 4px 24px rgba(0,0,0,0.25);
  z-index: 1;
}

/* Photo shapes */
.nxw-team.is-shape-arch .nxw-team__media {
  border-radius: 999px 999px 22px 22px;
}
.nxw-team.is-shape-circle .nxw-team__media {
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  max-width: 70%;
  margin-left: auto;
  margin-right: auto;
}
.nxw-team.is-shape-rounded .nxw-team__media { border-radius: 18px; }
.nxw-team.is-shape-blob .nxw-team__media {
  border-radius: 62% 38% 55% 45% / 50% 55% 45% 50%;
  transition: border-radius 1.2s ease;
}
.nxw-team.is-shape-blob .nxw-team__card:hover .nxw-team__media {
  border-radius: 38% 62% 45% 55% / 60% 40% 60% 40%;
}

/* Status badge */
.nxw-team__badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.7);
  color: var(--nxw-text-1);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 24px -10px rgba(0,0,0,0.25);
}
.nxw-team__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: nxw-team-pulse 2s ease-in-out infinite;
}
@keyframes nxw-team-pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.4); opacity: 0.7; }
}

/* ---------- Body ---------- */
.nxw-team__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nxw-team__name {
  font-family: var(--nx-font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--nxw-text-1);
  margin: 0;
}
.nxw-team__role {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--nxw-team-a), var(--nxw-team-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}
.nxw-team__tagline {
  font-size: 0.92rem;
  color: var(--nxw-text-3);
  line-height: 1.5;
  margin: 4px 0 0;
  text-wrap: pretty;
}

/* ---------- Socials ---------- */
.nxw-team__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.nxw-team.is-socials-hover .nxw-team__socials {
  opacity: 0;
  transform: translateY(6px);
}
.nxw-team.is-socials-hover .nxw-team__card:hover .nxw-team__socials,
.nxw-team.is-socials-hover .nxw-team__card:focus-within .nxw-team__socials {
  opacity: 1;
  transform: none;
}
.nxw-team__social {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--nxw-text-2);
  background: color-mix(in srgb, var(--nxw-team-a) 6%, #f3f4f8);
  border: 1px solid color-mix(in srgb, var(--nxw-team-a) 14%, transparent);
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.nxw-team__social:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--nxw-team-a), var(--nxw-team-b));
  color: #fff;
  border-color: transparent;
}

/* ---------- Card style variants ---------- */
.nxw-team.is-style-minimal .nxw-team__card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0 0 6px;
}
.nxw-team.is-style-minimal .nxw-team__card:hover {
  transform: translateY(-4px);
  box-shadow: none;
}
.nxw-team.is-style-minimal .nxw-team__halo { display: none; }
.nxw-team.is-style-minimal .nxw-team__grain { display: none; }

.nxw-team.is-style-dark {
  --nxw-card-bg: #0b1020;
  --nxw-card-border: rgba(255,255,255,0.08);
  --nxw-text-1: #f5f7ff;
  --nxw-text-2: rgba(245,247,255,0.78);
  --nxw-text-3: rgba(245,247,255,0.6);
}
.nxw-team.is-style-dark .nxw-team__social {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
  color: var(--nxw-text-2);
}
.nxw-team.is-style-dark .nxw-team__badge {
  background: rgba(11,16,32,0.85);
  color: #fff;
  border-color: rgba(255,255,255,0.12);
}

/* ============================================================
   BLOG POSTS WIDGET (Grid + Carousel)
   ============================================================ */
.nxw-blog { position: relative; }
.nxw-blog--empty {
  padding: 28px;
  text-align: center;
  border: 1px dashed rgba(20,24,60,0.18);
  border-radius: 14px;
  color: #4a5070;
}

/* Grid */
.nxw-blog__grid {
  display: grid;
  grid-template-columns: repeat(var(--cols-d, 3), minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 1024px) {
  .nxw-blog__grid { grid-template-columns: repeat(var(--cols-t, 2), minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .nxw-blog__grid { grid-template-columns: repeat(var(--cols-m, 1), minmax(0, 1fr)); }
}

/* Carousel viewport / track */
.nxw-blog__viewport { overflow: hidden; }
.nxw-blog__track {
  display: flex;
  gap: 24px;
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
  user-select: none;
  cursor: grab;
}
.nxw-blog__track:active { cursor: grabbing; }
.nxw-blog__track .nxw-blog__card { flex: 0 0 auto; }

/* Card */
.nxw-blog__card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.7);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.4s ease, border-color 0.3s ease;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 12px 30px -22px rgba(20,24,60,0.25);
}
.nxw-blog__card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--nx-color-accent, #6b4fff) 30%, transparent);
  box-shadow:
    0 1px 0 rgba(255,255,255,1) inset,
    0 30px 60px -28px color-mix(in srgb, var(--nx-color-accent, #6b4fff) 45%, #1a1f3a 55%);
}

.nxw-blog__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.nxw-blog__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2,0.8,0.2,1), filter 0.5s ease;
}
.nxw-blog__card:hover .nxw-blog__media img {
  transform: scale(1.05);
  filter: saturate(1.08);
}
.nxw-blog__cat-pill {
  position: absolute;
  top: 12px; left: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--nx-color-accent, #4c1d95);
  box-shadow: 0 6px 18px -10px rgba(0,0,0,0.3);
}

.nxw-blog__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.nxw-blog__meta {
  font-size: 0.78rem;
  color: #6b7290;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nxw-blog__meta .sep { opacity: 0.5; }
.nxw-blog__title {
  font-family: var(--nx-font-heading);
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
.nxw-blog__title a {
  color: #0a0f24;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.4s ease;
}
.nxw-blog__title a:hover { background-size: 100% 1px; }
.nxw-blog__excerpt {
  color: #4a5070;
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.nxw-blog__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--nx-color-accent, #6b4fff);
  text-decoration: none;
}
.nxw-blog__more svg { transition: transform 0.25s ease; }
.nxw-blog__more:hover svg { transform: translateX(3px); }

/* Arrows */
.nxw-blog__nav {
  position: absolute;
  top: 38%;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(20,24,60,0.12);
  background: rgba(255,255,255,0.95);
  color: #0a0f24;
  cursor: pointer;
  box-shadow: 0 14px 30px -16px rgba(20,24,60,0.35);
  z-index: 2;
  transition: transform 0.25s ease, background 0.25s ease, opacity 0.25s ease;
}
.nxw-blog__nav:disabled { opacity: 0.35; cursor: not-allowed; }
.nxw-blog__nav--prev { left: -22px; }
.nxw-blog__nav--next { right: -22px; }
.nxw-blog__nav:hover:not(:disabled) {
  background: var(--nx-color-accent, #6b4fff);
  color: #fff;
  transform: scale(1.08);
}
@media (max-width: 768px) {
  .nxw-blog__nav--prev { left: 4px; }
  .nxw-blog__nav--next { right: 4px; }
}

/* Dots */
.nxw-blog__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}
.nxw-blog__dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: rgba(20,24,60,0.18);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}
.nxw-blog__dot.is-active {
  width: 24px;
  background: var(--nx-color-accent, #6b4fff);
}
