/*
 * NEX × SellAuth visual layer
 * This file intentionally contains all new styles so the existing compiled
 * Tailwind bundle remains untouched and the theme stays importable.
 */

:root {
  --nex-bg: #06060c;
  --nex-surface: #0e0e16;
  --nex-surface-raised: #161423;
  --nex-purple: #665cff;
  --nex-purple-bright: #7c54fb;
  --nex-blue: #5a6dff;
  --nex-text: #f8f7ff;
  --nex-muted: #aaa4c2;
  --nex-line: rgba(255, 255, 255, 0.07);
  --nex-line-bright: rgba(159, 137, 255, 0.34);
  --nex-success: #82f6bf;
  --nex-shadow: 0 24px 72px rgba(0, 0, 0, 0.38);
}

* {
  scrollbar-color: rgba(var(--cl-accent), 0.62) #09090e;
  scrollbar-width: thin;
}

html {
  background: var(--nex-bg);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  letter-spacing: -0.012em;
  background:
    radial-gradient(62rem 34rem at 14% 6%, rgba(51, 38, 142, 0.48), transparent 66%),
    radial-gradient(50rem 30rem at 88% 0%, rgba(73, 57, 208, 0.2), transparent 65%),
    var(--nex-bg) !important;
}

body::before {
  position: fixed;
  z-index: -1;
  content: "";
  pointer-events: none;
  inset: 0;
  opacity: 0.21;
  background-image:
    linear-gradient(rgba(146, 132, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(146, 132, 255, 0.12) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 5%, #000, transparent 67%);
}

body::after {
  position: fixed;
  z-index: -1;
  content: "";
  pointer-events: none;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(1, 1, 4, 0.64));
}

::selection {
  color: #fff;
  background: var(--nex-purple);
}

#app {
  position: relative;
  z-index: 2;
}

#particles-js {
  opacity: 0.27 !important;
  mask-image: linear-gradient(to bottom, #000, rgba(0, 0, 0, 0.58) 62%, transparent);
}

.premium-backdrop {
  position: fixed;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  inset: 0;
}

.premium-grid {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 10%, #000, transparent 72%);
}

.premium-orb {
  position: absolute;
  width: 38rem;
  height: 38rem;
  border-radius: 50%;
  opacity: 0.13;
  background: rgb(var(--cl-accent));
  filter: blur(110px);
  animation: nex-orb-drift 18s ease-in-out infinite alternate;
}

.premium-orb--one {
  top: -18rem;
  left: -12rem;
}

.premium-orb--two {
  top: 32%;
  right: -18rem;
  animation-delay: -9s;
}

@keyframes nex-orb-drift {
  to {
    transform: translate3d(7rem, 4rem, 0) scale(1.14);
  }
}

/* Theme shell */

.announcement.component {
  margin: 0 auto 8px;
  overflow: hidden;
  border: 1px solid rgba(150, 129, 255, 0.22);
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(87, 59, 222, 0.52), rgba(124, 84, 251, 0.56)) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.16), 0 12px 32px rgba(41, 25, 117, 0.16);
}

.announcement.component > div {
  border: 0 !important;
  background: transparent !important;
}

nav.component {
  position: sticky;
  top: 1rem;
  z-index: 40;
  padding-top: 0.25rem;
}

nav.component > div {
  border: 1px solid var(--nex-line) !important;
  border-radius: 1.1rem;
  background: rgba(12, 12, 18, 0.76) !important;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.37), inset 0 1px rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(22px) saturate(140%);
}

nav.component img {
  filter: drop-shadow(0 4px 12px rgba(var(--cl-accent), 0.35));
}

nav.component h1 {
  letter-spacing: -0.045em;
}

nav.component a,
nav.component button {
  border-radius: 0.66rem;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease !important;
}

nav.component a:hover,
nav.component button:hover {
  transform: translateY(-1px);
}

nav.component a[class*="bg-accent"] {
  box-shadow: 0 8px 28px rgba(var(--cl-accent), 0.25);
}

.nex-navbar-discord {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(150, 128, 255, 0.25);
  color: #c9c2ed !important;
  background: rgba(102, 92, 255, 0.07);
}

.nex-navbar-discord:hover {
  border-color: rgba(150, 128, 255, 0.5);
  color: #fff !important;
  background: rgba(102, 92, 255, 0.15);
}

footer {
  overflow: hidden;
  border-color: var(--nex-line) !important;
  border-radius: 1rem;
  background: rgba(10, 10, 15, 0.74) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
}

footer a {
  transition: color 180ms ease, transform 180ms ease;
}

footer a:hover {
  transform: translateY(-1px);
}

.component:not(nav) {
  scroll-margin-top: 8rem;
}

/* Shared NEX tokens */

.nex-live-dot {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--nex-success);
  box-shadow: 0 0 15px rgba(130, 246, 191, 0.92);
}

.nex-live-dot::after {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(130, 246, 191, 0.72);
  border-radius: inherit;
  content: "";
  animation: nex-pulse-ring 2s ease-out infinite;
}

@keyframes nex-pulse-ring {
  0% {
    opacity: 0.86;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(3.1);
  }
}

.nex-logo-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(145deg, #9b7bff, #6145f4 55%, #4055dd);
  box-shadow: 0 9px 20px rgba(85, 60, 226, 0.32), inset 0 1px rgba(255, 255, 255, 0.24);
  font-size: 17px;
  font-weight: 800;
  font-style: normal;
  letter-spacing: -0.12em;
  line-height: 1;
  transform: skewX(-10deg);
}

.nex-section-heading {
  max-width: 680px;
  margin: 0 auto 38px;
}

.nex-section-heading--center {
  text-align: center;
}

.nex-section-heading--licenses {
  display: grid;
  max-width: none;
  grid-template-columns: minmax(0, 0.86fr) minmax(240px, 0.38fr);
  column-gap: 42px;
  align-items: end;
}

.nex-section-heading--licenses .nex-section-kicker,
.nex-section-heading--licenses h2 {
  grid-column: 1;
}

.nex-section-heading--licenses > p:last-child {
  grid-row: 1 / span 3;
  grid-column: 2;
  margin: 0 0 3px;
  text-align: right;
}

.nex-section-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 10px;
  color: #a697ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nex-section-kicker::before {
  width: 27px;
  height: 1px;
  content: "";
  background: var(--nex-purple);
  box-shadow: 0 0 12px rgba(102, 92, 255, 0.88);
}

.nex-section-heading--center .nex-section-kicker {
  justify-content: center;
}

.nex-section-heading h2,
.nex-faq__intro h2 {
  margin: 0;
  color: var(--nex-text);
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.064em;
  line-height: 1.04;
  text-wrap: balance;
}

.nex-section-heading > p,
.nex-faq__intro > p {
  max-width: 590px;
  margin: 16px auto 0;
  color: var(--nex-muted);
  font-size: 14px;
  line-height: 1.76;
}

.nex-section-heading--licenses > p {
  margin-left: 0;
}

.nex-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.nex-button:hover {
  color: #fff;
  transform: translateY(-2px);
}

.nex-button--primary {
  border-color: rgba(161, 140, 255, 0.72);
  background: linear-gradient(135deg, #6145f4, #7c54fb);
  box-shadow: 0 12px 32px rgba(89, 63, 230, 0.34), inset 0 1px rgba(255, 255, 255, 0.23);
}

.nex-button--primary:hover {
  box-shadow: 0 18px 44px rgba(89, 63, 230, 0.43), inset 0 1px rgba(255, 255, 255, 0.31);
}

.nex-button--ghost,
.nex-button--discord {
  border-color: rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.035);
}

.nex-button--ghost:hover,
.nex-button--discord:hover {
  border-color: rgba(158, 136, 255, 0.48);
  background: rgba(102, 92, 255, 0.12);
}

/* Hero */

.nex-hero {
  position: relative;
  min-height: min(780px, calc(100vh - 10px));
  padding: 100px clamp(10px, 3vw, 44px) 74px;
  overflow: hidden;
  isolation: isolate;
}

.nex-hero__glow {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 61%;
  width: min(950px, 80vw);
  height: 470px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(ellipse, rgba(76, 49, 223, 0.34), rgba(32, 22, 100, 0.15) 42%, transparent 70%);
  filter: blur(24px);
  transform: translate(-50%, -50%);
}

.nex-hero__inner {
  display: grid;
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  grid-template-columns: minmax(0, 0.95fr) minmax(440px, 1.05fr);
  gap: clamp(36px, 6vw, 92px);
  align-items: center;
}

.nex-hero__copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.nex-live-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  padding: 8px 11px;
  border: 1px solid rgba(140, 121, 255, 0.37);
  border-radius: 999px;
  color: #d3cdfd;
  background: rgba(102, 92, 255, 0.09);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
}

.nex-hero__title {
  max-width: 670px;
  margin: 0;
  color: var(--nex-text);
  font-size: clamp(3.05rem, 5.8vw, 5.35rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.91;
  text-wrap: balance;
}

.nex-hero__title .nex-text-gradient,
.nex-text-gradient {
  background: linear-gradient(105deg, #a18bff 1%, #7657ff 55%, #526cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 20px 70px rgba(110, 81, 255, 0.19);
}

.nex-hero__subtitle {
  max-width: 560px;
  margin: 25px 0 0;
  color: var(--nex-muted);
  font-size: 16px;
  line-height: 1.8;
  text-wrap: balance;
}

.nex-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.nex-hero__proofs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 28px;
  color: #bcb5d5;
  font-size: 11px;
  font-weight: 700;
}

.nex-hero__proofs span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nex-hero__proofs i {
  color: #927cff;
}

.nex-hero__visual {
  position: relative;
  display: grid;
  min-height: 510px;
  place-items: center;
  isolation: isolate;
}

.nex-hero__visual::before {
  position: absolute;
  z-index: -2;
  width: 426px;
  height: 426px;
  border: 1px solid rgba(135, 111, 255, 0.14);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 58px rgba(127, 99, 255, 0.026), 0 0 0 116px rgba(127, 99, 255, 0.016);
}

.nex-orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(127, 99, 255, 0.28);
  border-radius: 50%;
  transform: rotate(-20deg);
}

.nex-orbit::after {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
  background: #ad99ff;
  box-shadow: 0 0 15px 4px rgba(136, 105, 255, 0.55);
}

.nex-orbit--outer {
  width: 520px;
  height: 196px;
}

.nex-orbit--outer::after {
  top: 9px;
  right: 35px;
}

.nex-orbit--inner {
  width: 405px;
  height: 153px;
  opacity: 0.46;
  transform: rotate(28deg);
}

.nex-orbit--inner::after {
  bottom: 6px;
  left: 44px;
}

.nex-loader-window {
  position: relative;
  --nex-device-scale: 1;
  width: min(100%, 535px);
  overflow: hidden;
  border: 1px solid rgba(172, 151, 255, 0.22);
  border-radius: 16px;
  background:
    radial-gradient(circle at 8% 18%, rgba(81, 59, 221, 0.42), transparent 30%),
    linear-gradient(135deg, #17122a, #0c0b13 56%, #18112e);
  box-shadow: 0 36px 95px rgba(0, 0, 0, 0.56), 0 0 70px rgba(76, 53, 210, 0.18), inset 0 1px rgba(255, 255, 255, 0.1);
  transform: perspective(1400px) rotateY(-5deg) rotateX(2deg) scale(var(--nex-device-scale)) translateY(0);
  transform-origin: center;
  animation: nex-loader-float 7s ease-in-out infinite;
}

@keyframes nex-loader-float {
  0%,
  100% {
    transform: perspective(1400px) rotateY(-5deg) rotateX(2deg) scale(var(--nex-device-scale)) translateY(0);
  }
  50% {
    transform: perspective(1400px) rotateY(-5deg) rotateX(2deg) scale(var(--nex-device-scale)) translateY(-9px);
  }
}

.nex-loader-window__top {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(5, 5, 11, 0.5);
}

.nex-loader-window__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f6f4ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.nex-loader-window__brand .nex-logo-mark {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  font-size: 11px;
}

.nex-loader-window__controls {
  display: flex;
  gap: 13px;
  color: #776f9e;
  font-size: 13px;
}

.nex-loader-window__body {
  display: grid;
  min-height: 384px;
  grid-template-columns: 58px minmax(0, 1fr);
}

.nex-loader-window__sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 17px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.045);
  background: rgba(4, 4, 10, 0.42);
}

.nex-logo-mark--small {
  width: 25px;
  height: 25px;
  margin-bottom: 3px;
  border-radius: 8px;
  font-size: 12px;
}

.nex-side-icon {
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #8982a8;
  font-size: 13px;
}

.nex-side-icon.is-active {
  border-color: rgba(139, 111, 255, 0.22);
  color: #c4b8ff;
  background: rgba(121, 84, 251, 0.2);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
}

.nex-loader-window__main {
  position: relative;
  overflow: hidden;
  padding: 22px;
}

.nex-loader-window__main::after {
  position: absolute;
  right: -105px;
  bottom: -130px;
  width: 290px;
  height: 290px;
  border-radius: 50%;
  content: "";
  background: rgba(85, 54, 234, 0.24);
  filter: blur(64px);
}

.nex-loader-window__status {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  color: #f7f5ff;
  font-size: 12px;
  font-weight: 800;
}

.nex-loader-window__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid rgba(126, 115, 171, 0.22);
  border-radius: 7px;
  color: #b8afd5;
  background: rgba(8, 7, 16, 0.48);
  font-size: 9px;
  font-weight: 400;
}

.nex-loader-window__live i {
  width: 5px;
  height: 5px;
  border-radius: 99px;
  background: var(--nex-success);
  box-shadow: 0 0 8px var(--nex-success);
}

.nex-loader-window__main h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #f5f3ff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.nex-loader-window__main > p {
  position: relative;
  z-index: 1;
  margin: 4px 0 17px;
  color: #918aad;
  font-size: 10px;
}

.nex-loader-window__modes {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.nex-mode-card {
  position: relative;
  min-height: 168px;
  padding: 17px;
  overflow: hidden;
  border: 1px solid rgba(180, 164, 255, 0.15);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(33, 28, 54, 0.85), rgba(14, 13, 22, 0.85));
}

.nex-mode-card::after {
  position: absolute;
  right: -29px;
  bottom: -39px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  content: "";
  background: rgba(103, 72, 250, 0.25);
  filter: blur(23px);
}

.nex-mode-card.is-muted {
  opacity: 0.52;
}

.nex-mode-card__icon {
  display: grid;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(145deg, #6145f4, #815cff);
  box-shadow: 0 9px 22px rgba(96, 69, 244, 0.35);
}

.nex-mode-card strong,
.nex-mode-card small,
.nex-mode-card__link {
  position: relative;
  z-index: 1;
  display: block;
}

.nex-mode-card strong {
  color: #f8f7ff;
  font-size: 12px;
}

.nex-mode-card small {
  margin-top: 5px;
  color: #938cab;
  font-size: 9px;
  line-height: 1.55;
}

.nex-mode-card__link {
  margin-top: 14px;
  color: #bbaeff;
  font-size: 10px;
  font-weight: 800;
}

.nex-loader-window__scan {
  position: absolute;
  z-index: 3;
  top: 48px;
  right: 0;
  left: 58px;
  height: 1px;
  opacity: 0.75;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, #9b84ff, transparent);
  box-shadow: 0 0 18px #8d6dff;
  animation: nex-scan 5.5s linear infinite;
}

@keyframes nex-scan {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  10%,
  90% {
    opacity: 0.75;
  }
  100% {
    opacity: 0;
    transform: translateY(384px);
  }
}

.nex-rank-badge {
  position: absolute;
  z-index: 4;
  right: -12px;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 10px 13px;
  border: 1px solid rgba(182, 160, 255, 0.27);
  border-radius: 11px;
  color: #ddd7ff;
  background: rgba(16, 12, 32, 0.76);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.nex-rank-badge b {
  color: #f3b64f;
  font-size: 14px;
}

.nex-hero__uploaded-art {
  position: absolute;
  z-index: 5;
  width: min(100%, 550px);
  overflow: hidden;
  border: 1px solid rgba(172, 151, 255, 0.27);
  border-radius: 16px;
  box-shadow: var(--nex-shadow);
  transform: rotate(-2deg);
}

.nex-hero__uploaded-art img {
  display: block;
  width: 100%;
  height: auto;
}

/* Live status */

.nex-status {
  padding: 0 clamp(10px, 3vw, 44px) 18px;
}

.nex-status__rail {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--nex-line);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(20, 18, 32, 0.92), rgba(10, 10, 16, 0.92));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04), 0 18px 46px rgba(0, 0, 0, 0.18);
  grid-template-columns: 1.32fr repeat(3, 1fr);
}

.nex-status__intro,
.nex-status__item {
  display: flex;
  min-height: 87px;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-right: 1px solid var(--nex-line);
}

.nex-status__item:last-child {
  border-right: 0;
}

.nex-status__intro strong,
.nex-status__item b {
  display: block;
  color: #f4f1ff;
  font-size: 12px;
  font-weight: 800;
}

.nex-status__intro span:not(.nex-live-dot),
.nex-status__item span {
  display: block;
  margin-top: 3px;
  color: #968fac;
  font-size: 10px;
}

.nex-status__item > i {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(146, 127, 255, 0.25);
  border-radius: 10px;
  color: #c3b6ff;
  background: rgba(105, 79, 247, 0.15);
}

/* Products / licences */

.nex-products {
  padding: 78px clamp(10px, 3vw, 44px) 60px;
}

.nex-products__search {
  display: flex;
  max-width: 520px;
  align-items: center;
  gap: 10px;
  margin: -12px auto 28px;
  padding: 0 15px;
  border: 1px solid var(--nex-line);
  border-radius: 11px;
  color: #aaa4c2;
  background: rgba(255, 255, 255, 0.025);
}

.nex-products__search:focus-within {
  border-color: rgba(144, 119, 255, 0.68);
  box-shadow: 0 0 0 3px rgba(102, 92, 255, 0.13);
}

.nex-products__search input {
  width: 100%;
  min-height: 48px;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  font: inherit;
  font-size: 12px;
}

.nex-products__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.nex-products__item {
  min-width: 0;
}

.nex-product-card {
  position: relative;
  display: flex;
  height: 100%;
  min-height: 452px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--nex-line);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(19, 18, 29, 0.95), rgba(9, 9, 15, 0.95));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
  transition: transform 250ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 250ms ease, box-shadow 250ms ease;
}

.nex-product-card:hover {
  border-color: rgba(145, 122, 255, 0.53);
  box-shadow: 0 28px 66px rgba(0, 0, 0, 0.35), 0 0 35px rgba(102, 92, 255, 0.08), inset 0 1px rgba(255, 255, 255, 0.06);
  transform: translateY(-6px);
}

.nex-product-card--featured {
  border-color: rgba(145, 122, 255, 0.5);
}

.nex-product-card--featured::before {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, #a289ff, transparent);
  box-shadow: 0 0 18px #8b70ff;
}

.nex-product-card__visual {
  position: relative;
  display: grid;
  min-height: 174px;
  overflow: hidden;
  place-items: center;
  border-bottom: 1px solid var(--nex-line);
  background:
    radial-gradient(circle at 50% 65%, rgba(90, 67, 239, 0.32), transparent 47%),
    linear-gradient(145deg, #151027, #0a0a10);
}

.nex-product-card__visual > img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 174px;
  object-fit: cover;
  opacity: 0.88;
  transition: transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 300ms ease;
}

.nex-product-card:hover .nex-product-card__visual > img {
  filter: saturate(1.12) contrast(1.04);
  transform: scale(1.05);
}

.nex-product-card__fallback {
  position: relative;
  z-index: 1;
  display: grid;
  width: 83px;
  height: 83px;
  place-items: center;
  border: 1px solid rgba(163, 142, 255, 0.42);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(99, 74, 240, 0.31), rgba(21, 17, 45, 0.9));
  box-shadow: 0 20px 38px rgba(42, 25, 139, 0.28), inset 0 1px rgba(255, 255, 255, 0.12);
  transform: rotate(-7deg);
}

.nex-product-card__fallback .nex-logo-mark {
  position: absolute;
  width: 49px;
  height: 49px;
  border-radius: 15px;
  font-size: 25px;
}

.nex-product-card__fallback > i {
  position: absolute;
  right: 7px;
  bottom: 7px;
  color: #c8bbff;
  font-size: 12px;
}

.nex-product-card__visual-grid {
  position: absolute;
  z-index: 2;
  inset: 0;
  opacity: 0.42;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(177, 160, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(177, 160, 255, 0.12) 1px, transparent 1px);
  background-size: 25px 25px;
  mask-image: linear-gradient(135deg, #000, transparent 75%);
}

.nex-product-card__badges {
  position: absolute;
  z-index: 4;
  top: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nex-product-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  border: 1px solid var(--badge-color, #8065ff);
  border-radius: 7px;
  color: #fff;
  background: var(--badge-color, #8065ff);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.nex-product-card__code {
  position: absolute;
  z-index: 3;
  right: 12px;
  bottom: 11px;
  color: rgba(233, 229, 255, 0.8);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.nex-product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.nex-product-card__heading {
  display: flex;
  min-height: 53px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.nex-product-card__heading p {
  margin: 0 0 4px;
  color: #a697ff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.nex-product-card__heading h3 {
  margin: 0;
  color: #f8f6ff;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.nex-product-card__availability {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding-top: 2px;
  color: #a7a0bc;
  font-size: 9px;
  white-space: nowrap;
}

.nex-product-card__availability i {
  width: 5px;
  height: 5px;
  border-radius: 99px;
  background: var(--nex-success);
  box-shadow: 0 0 8px rgba(130, 246, 191, 0.88);
}

.nex-product-card__availability.is-out i {
  background: #f27486;
  box-shadow: 0 0 8px rgba(242, 116, 134, 0.78);
}

.nex-product-card__price-row {
  display: flex;
  min-height: 62px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0;
  padding: 15px 0;
  border-top: 1px solid var(--nex-line);
  border-bottom: 1px solid var(--nex-line);
}

.nex-product-card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  margin: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 1;
}

.nex-product-card__price small {
  width: 100%;
  color: #8c859f;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: line-through;
}

.nex-product-card__price-separator {
  color: #8478bb;
  font-size: 15px;
}

.nex-product-card__duration {
  max-width: 46%;
  color: #a9a1bd;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.45;
  text-align: right;
}

.nex-product-card__hint {
  display: flex;
  min-height: 38px;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 17px;
  color: #9e97b2;
  font-size: 10px;
  line-height: 1.6;
}

.nex-product-card__hint i {
  margin-top: 2px;
  color: #a792ff;
}

.nex-product-card__action {
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: auto;
  padding: 0 12px;
  border: 1px solid rgba(147, 123, 255, 0.65);
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, rgba(97, 69, 244, 0.94), rgba(124, 84, 251, 0.94));
  box-shadow: 0 10px 26px rgba(82, 55, 220, 0.22), inset 0 1px rgba(255, 255, 255, 0.18);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.nex-product-card__action:hover {
  color: #fff;
  box-shadow: 0 15px 33px rgba(82, 55, 220, 0.33), inset 0 1px rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.nex-product-card__action--checkout.is-nex-checkout-loading {
  cursor: wait;
  opacity: 0.75;
}

.nex-product-card__details {
  display: block;
  margin-top: 10px;
  color: #a99cff;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.nex-product-card__details:hover {
  color: #d1c8ff;
}

.nex-group-modal__panel {
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid rgba(150, 129, 255, 0.34);
  border-radius: 18px;
  background:
    radial-gradient(circle at 90% 0%, rgba(101, 75, 246, 0.2), transparent 40%),
    rgba(13, 12, 21, 0.97);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.6), inset 0 1px rgba(255, 255, 255, 0.08);
}

.nex-group-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.nex-group-modal__header h3 {
  margin: 0;
  color: #f6f4ff;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.055em;
}

.nex-group-modal__close {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--nex-line);
  border-radius: 9px;
  color: #c0b8d5;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

.nex-products__grid--modal .nex-product-card {
  min-height: 400px;
}

/* Feature grid */

.nex-features {
  padding: 76px clamp(10px, 3vw, 44px);
}

.nex-features__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.nex-feature-card {
  position: relative;
  min-height: 246px;
  padding: 27px;
  overflow: hidden;
  border: 1px solid var(--nex-line);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(21, 19, 34, 0.92), rgba(11, 11, 17, 0.92));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
  transition: transform 250ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 250ms ease, box-shadow 250ms ease;
}

.nex-feature-card:hover {
  border-color: rgba(133, 111, 255, 0.52);
  box-shadow: 0 23px 55px rgba(0, 0, 0, 0.28), 0 0 32px rgba(102, 92, 255, 0.08), inset 0 1px rgba(255, 255, 255, 0.06);
  transform: translateY(-5px);
}

.nex-feature-card::after {
  position: absolute;
  top: -95px;
  right: -78px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  content: "";
  opacity: 0;
  background: radial-gradient(circle, rgba(103, 82, 250, 0.21), transparent 68%);
  transition: opacity 250ms ease;
}

.nex-feature-card:hover::after {
  opacity: 1;
}

.nex-feature-card__icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 47px;
  height: 47px;
  margin-bottom: 23px;
  place-items: center;
  border: 1px solid rgba(146, 127, 255, 0.26);
  border-radius: 13px;
  color: #c5b8ff;
  background: linear-gradient(145deg, rgba(105, 79, 247, 0.28), rgba(83, 57, 187, 0.1));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.13), 0 10px 22px rgba(72, 49, 182, 0.14);
  font-size: 20px;
}

.nex-feature-card h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #f8f6ff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.nex-feature-card p {
  position: relative;
  z-index: 1;
  max-width: 325px;
  margin: 9px 0 0;
  color: var(--nex-muted);
  font-size: 12px;
  line-height: 1.75;
}

.nex-feature-card__line {
  position: absolute;
  right: 28px;
  bottom: 24px;
  left: 28px;
  height: 1px;
  opacity: 0.65;
  background: linear-gradient(90deg, rgba(102, 92, 255, 0.75), transparent);
}

/* FAQ */

.nex-faq {
  padding: 76px clamp(10px, 3vw, 44px) 86px;
}

.nex-faq__layout {
  display: grid;
  max-width: 1190px;
  margin: 0 auto;
  grid-template-columns: minmax(245px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(35px, 8vw, 120px);
}

.nex-faq__intro > p {
  margin-left: 0;
}

.nex-faq__intro .nex-button {
  margin-top: 25px;
}

.nex-faq__list {
  border-top: 1px solid var(--nex-line);
}

.nex-faq__item {
  border-bottom: 1px solid var(--nex-line);
}

.nex-faq__button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 21px 0;
  border: 0;
  color: #f5f2ff;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-align: left;
  cursor: pointer;
}

.nex-faq__button > i {
  flex: 0 0 auto;
  color: #a58fff;
  font-size: 13px;
  transition: transform 220ms ease;
}

.nex-faq__button > i.is-rotated {
  transform: rotate(180deg);
}

.nex-faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 260ms ease;
}

.nex-faq__answer p {
  max-width: 630px;
  margin: 0;
  padding: 0 0 21px;
  color: var(--nex-muted);
  font-size: 12px;
  line-height: 1.8;
}

/* Product page and forms retain native commerce behavior but get NEX surfaces. */

.bg-card\/75,
.bg-card\/90,
.bg-card {
  background: linear-gradient(145deg, rgba(20, 20, 29, 0.91), rgba(9, 9, 14, 0.91)) !important;
}

input,
textarea,
select,
.choices__inner {
  border-radius: 0.66rem !important;
}

input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(var(--cl-accent), 0.14);
}

.fixed.inset-0 .bg-background {
  border-radius: 1.1rem;
  background: rgba(10, 10, 15, 0.97) !important;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
}

hr.border-accent-500 {
  width: 2.5rem !important;
  border-radius: 99px;
  box-shadow: 0 0 14px rgba(var(--cl-accent), 0.6);
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

@media (max-width: 1050px) {
  .nex-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(385px, 0.9fr);
    gap: 35px;
  }

  .nex-loader-window {
    --nex-device-scale: 0.92;
  }
}

@media (max-width: 820px) {
  nav.component {
    top: 0.5rem;
  }

  .nex-hero {
    min-height: auto;
    padding-top: 94px;
    padding-bottom: 49px;
  }

  .nex-hero__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .nex-hero__copy {
    max-width: 680px;
  }

  .nex-hero__visual {
    min-height: 435px;
  }

  .nex-section-heading--licenses {
    display: block;
  }

  .nex-section-heading--licenses > p:last-child {
    margin-top: 15px;
    text-align: left;
  }

  .nex-status__rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nex-status__intro,
  .nex-status__item {
    border-bottom: 1px solid var(--nex-line);
  }

  .nex-status__intro:nth-child(2n) {
    border-right: 0;
  }

  .nex-status__item:nth-child(2n) {
    border-right: 0;
  }

  .nex-products__grid,
  .nex-features__grid {
    grid-template-columns: 1fr;
  }

  .nex-product-card {
    min-height: 0;
  }

  .nex-feature-card {
    min-height: 0;
  }

  .nex-faq__layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  nav.component > div {
    border-radius: 14px;
  }

  .nex-hero,
  .nex-status,
  .nex-products,
  .nex-features,
  .nex-faq {
    padding-right: 4px;
    padding-left: 4px;
  }

  .nex-hero {
    padding-top: 82px;
  }

  .nex-live-chip {
    font-size: 8px;
    letter-spacing: 0.1em;
  }

  .nex-hero__title {
    font-size: clamp(2.55rem, 13.2vw, 3.55rem);
    line-height: 0.94;
  }

  .nex-hero__subtitle {
    font-size: 14px;
  }

  .nex-hero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .nex-hero__actions .nex-button {
    width: 100%;
  }

  .nex-hero__proofs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .nex-hero__visual {
    min-height: 315px;
    margin: 0 -12px;
  }

  .nex-hero__visual::before {
    width: 260px;
    height: 260px;
  }

  .nex-orbit--outer {
    width: 332px;
    height: 125px;
  }

  .nex-orbit--inner {
    width: 265px;
    height: 96px;
  }

  .nex-loader-window {
    width: min(530px, 148vw);
    --nex-device-scale: 0.68;
  }

  .nex-rank-badge {
    right: -5px;
    bottom: 6px;
    transform: scale(0.86);
    transform-origin: right bottom;
  }

  .nex-section-heading,
  .nex-products {
    margin-bottom: 28px;
  }

  .nex-section-heading h2,
  .nex-faq__intro h2 {
    font-size: 31px;
  }

  .nex-status__rail {
    grid-template-columns: 1fr;
  }

  .nex-status__intro,
  .nex-status__item,
  .nex-status__intro:nth-child(2n),
  .nex-status__item:nth-child(2n) {
    min-height: 70px;
    border-right: 0;
  }

  .nex-status__item:last-child {
    border-bottom: 0;
  }

  .nex-products,
  .nex-features,
  .nex-faq {
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .nex-product-card__body,
  .nex-feature-card {
    padding: 22px;
  }

  .nex-group-modal__panel {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
