/* Lucidium Future — informative landing, premium presentation */
:root {
  --bg: #070b17;
  --ink: #f8fafc;
  --soft: #cbd5e1;
  --muted: #94a3b8;
  --accent: #a5b4fc;
  --line: rgba(148, 163, 184, 0.2);
  --panel: rgba(15, 23, 42, 0.65);
  --font-d: Syne, Manrope, system-ui, sans-serif;
  --font-b: Manrope, system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: min(1140px, calc(100% - 2.5rem));
  --fx-mx: 72%;
  --fx-my: 22%;
  --fx-cx: -100px;
  --fx-cy: -100px;
}

@property --fx-glow-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-b);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.fx-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 80% -5%, rgba(99, 102, 241, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 35% at 10% 100%, rgba(56, 189, 248, 0.1), transparent 50%),
    linear-gradient(180deg, #0a1020 0%, #070b17 40%, #060912 100%);
}

.fx-orbs {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.fx-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(52px);
  opacity: 0.42;
  mix-blend-mode: screen;
}

.fx-orb--a {
  width: 280px;
  height: 280px;
  left: 6%;
  top: 16%;
  background: rgba(99, 102, 241, 0.32);
  animation: fx-drift-a 16s ease-in-out infinite;
}

.fx-orb--b {
  width: 220px;
  height: 220px;
  right: 10%;
  top: 30%;
  background: rgba(56, 189, 248, 0.18);
  animation: fx-drift-b 19s ease-in-out infinite;
}

.fx-orb--c {
  width: 260px;
  height: 260px;
  left: 40%;
  bottom: 6%;
  background: rgba(129, 140, 248, 0.2);
  animation: fx-drift-c 17s ease-in-out infinite;
}

@keyframes fx-drift-a {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(3.5vw, 2.5vh) scale(1.08);
  }
}

@keyframes fx-drift-b {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-2.5vw, 3.5vh) scale(1.1);
  }
}

@keyframes fx-drift-c {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(2vw, -2.5vh);
  }
}

.fx-pointer {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
    560px circle at var(--fx-mx) var(--fx-my),
    rgba(99, 102, 241, 0.2),
    rgba(56, 189, 248, 0.06) 34%,
    transparent 60%
  );
  transition: opacity 0.45s var(--ease);
}

.fx-cursor {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: rgba(165, 180, 252, 0.95);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.35),
    0 0 18px rgba(99, 102, 241, 0.75),
    0 0 36px rgba(56, 189, 248, 0.35);
  transform: translate3d(var(--fx-cx), var(--fx-cy), 0) scale(var(--fx-cscale, 1));
  opacity: 0;
  transition:
    opacity 0.25s var(--ease),
    transform 0.12s var(--ease),
    width 0.2s var(--ease),
    height 0.2s var(--ease),
    margin 0.2s var(--ease),
    background 0.2s var(--ease);
  will-change: transform;
}

.fx-cursor.is-on {
  opacity: 0.9;
}

.fx-cursor.is-hot {
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow:
    0 0 0 1.5px rgba(165, 180, 252, 0.85),
    0 0 28px rgba(99, 102, 241, 0.55);
}

body.has-fx-cursor,
body.has-fx-cursor a,
body.has-fx-cursor button {
  cursor: none;
}

.fx-top,
main,
.fx-foot {
  position: relative;
  z-index: 1;
}

.fx-wrap {
  width: var(--wrap);
  margin: 0 auto;
}

/* —— Header —— */
.fx-top {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: max(0.55rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) 0.55rem
    max(1.25rem, env(safe-area-inset-left));
  background: rgba(7, 11, 23, 0.8);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.fx-brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.fx-brand img {
  border-radius: 10px;
  box-shadow: 0 8px 24px -8px rgba(99, 102, 241, 0.6);
}

.fx-brand__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.1;
}

.fx-brand__row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fx-brand__name {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.fx-brand__ai {
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(167, 139, 250, 0.65);
  color: #c4b5fd;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.fx-brand__tag {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.fx-nav {
  justify-self: center;
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.55);
}

.fx-nav button {
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 7px 13px;
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.fx-nav button:hover {
  color: var(--ink);
}

.fx-nav button.is-on {
  color: #fff;
  background: #4338ca;
  box-shadow:
    0 0 0 1px rgba(165, 180, 252, 0.35),
    0 0 18px rgba(99, 102, 241, 0.45),
    0 6px 16px -6px rgba(79, 70, 229, 0.7);
}

.fx-top__actions {
  justify-self: end;
  display: flex;
  gap: 8px;
}

/* —— Buttons —— */
.fx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.5rem 1rem;
  border-radius: 11px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.fx-btn:hover {
  transform: translateY(-1px);
}

.fx-btn--primary {
  color: #fff;
  background: linear-gradient(115deg, #6366f1, #38bdf8);
  box-shadow: 0 8px 28px -10px rgba(99, 102, 241, 0.7);
}

.fx-btn--ghost {
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.45);
}

.fx-btn--lg {
  min-height: 48px;
  padding: 0.65rem 1.2rem;
}

.fx-btn--hero {
  min-height: 52px;
  padding: 0.75rem 1.45rem;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  box-shadow:
    0 10px 32px -10px rgba(99, 102, 241, 0.85),
    0 0 0 1px rgba(165, 180, 252, 0.25);
}

@media (prefers-reduced-motion: no-preference) {
  .fx-btn--hero {
    animation: fx-hero-cta-pulse 3.2s ease-in-out infinite;
  }
}

@keyframes fx-hero-cta-pulse {
  0%,
  100% {
    box-shadow:
      0 10px 32px -10px rgba(99, 102, 241, 0.85),
      0 0 0 1px rgba(165, 180, 252, 0.25);
  }
  50% {
    box-shadow:
      0 12px 40px -8px rgba(56, 189, 248, 0.55),
      0 0 0 1px rgba(165, 180, 252, 0.45);
  }
}

.fx-hero__hint {
  margin: 0.75rem 0 0;
  max-width: 40ch;
  color: var(--soft);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.45;
  opacity: 0.9;
}

/* —— Type —— */
.fx-kicker {
  margin: 0;
  color: #c4b5fd;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: no-preference) {
  .fx-kicker {
    text-shadow: 0 0 18px rgba(165, 180, 252, 0.35);
    animation: fx-accent-breathe 3.6s ease-in-out infinite;
  }
}

@keyframes fx-accent-breathe {
  0%,
  100% {
    opacity: 0.9;
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(165, 180, 252, 0.45));
  }
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-d);
  letter-spacing: -0.03em;
}

h1 {
  margin-top: 0.7rem;
  font-size: clamp(2rem, 4.8vw, 3.35rem);
  line-height: 1.06;
}

h1 span {
  background: linear-gradient(100deg, #f8fafc, #a5b4fc 55%, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  margin-top: 0.45rem;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.12;
}

h3 {
  font-size: 1.15rem;
  line-height: 1.25;
}

.fx-lede {
  margin: 0.85rem 0 0;
  max-width: 54ch;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.fx-lede--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.fx-section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.fx-section--muted {
  background: rgba(15, 23, 42, 0.35);
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.fx-section__head {
  text-align: center;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.fx-section__head h2 {
  max-width: 20ch;
  margin-left: auto;
  margin-right: auto;
}

/* —— Hero —— */
.fx-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 5vw, 3rem);
}

.fx-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.fx-hero__copy .fx-lede {
  max-width: 48ch;
}

.fx-cta {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.fx-chips {
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.fx-chips li {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--soft);
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.4);
}

/* —— Product frame (screenshots — never cropped) —— */
.fx-prod {
  margin: 0;
  border-radius: 14px;
  border: 1px solid rgba(165, 180, 252, 0.22);
  background: #0c1222;
  padding: 6px;
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.08),
    0 28px 56px -24px rgba(0, 0, 0, 0.75);
  overflow: hidden;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.fx-prod:hover {
  border-color: rgba(165, 180, 252, 0.45);
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.2),
    0 0 40px -8px rgba(99, 102, 241, 0.35),
    0 28px 56px -24px rgba(0, 0, 0, 0.75);
}

.fx-prod img {
  width: 100%;
  height: auto;
  border-radius: 9px;
}

.fx-prod--hero {
  transform: perspective(1200px) rotateY(-3deg) rotateX(1deg);
  transform-origin: center left;
}

.fx-prod--wide {
  max-width: 920px;
  margin: 0 auto;
}

/* —— Features grid —— */
.fx-features {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fx-feature {
  padding: 1.15rem 1.2rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.fx-feature:hover {
  border-color: rgba(165, 180, 252, 0.4);
  box-shadow: 0 0 28px -10px rgba(99, 102, 241, 0.45);
}

.fx-feature h3 {
  font-size: 1rem;
}

.fx-feature p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* —— Product tour —— */
.fx-section--tour {
  padding-bottom: 0;
}

.fx-section--tour .fx-section__head {
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.fx-tour__row {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.fx-tour__row--alt {
  background: rgba(15, 23, 42, 0.28);
}

.fx-tour__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.25rem, 3.5vw, 2.75rem);
  align-items: center;
}

.fx-tour__row--alt .fx-tour__grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.fx-tour__row--alt .fx-tour__copy {
  order: 2;
}

.fx-tour__row--alt .fx-prod {
  order: 1;
}

.fx-tour__copy p:not(.fx-kicker) {
  margin: 0.55rem 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* —— Vision —— */
.fx-vision {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fx-vision__card {
  padding: 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(167, 139, 250, 0.28);
  background: linear-gradient(165deg, rgba(99, 102, 241, 0.1), rgba(15, 23, 42, 0.55));
}

.fx-vision__card p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* —— Why —— */
.fx-why {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 1.25rem;
  align-items: stretch;
}

.fx-why__list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.fx-why__list li {
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

.fx-why__list strong {
  color: var(--soft);
}

.fx-why__stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.35rem;
  border-radius: 16px;
  border: 1px solid rgba(167, 139, 250, 0.3);
  background: linear-gradient(160deg, rgba(99, 102, 241, 0.18), rgba(15, 23, 42, 0.6));
  text-align: center;
}

.fx-why__stat-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c4b5fd;
}

.fx-why__stat-num {
  margin: 0.35rem 0 0;
  font-family: var(--font-d);
  font-size: clamp(2.5rem, 5vw, 3.25rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.fx-why__stat-desc {
  margin: 0.45rem 0 0;
  color: var(--soft);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* —— Pricing —— */
.fx-pricing {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.fx-price {
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.3rem 1.4rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.fx-price--featured {
  border-color: rgba(165, 180, 252, 0.45);
  background:
    linear-gradient(165deg, rgba(99, 102, 241, 0.18), rgba(15, 23, 42, 0.7));
  box-shadow: 0 0 40px -18px rgba(99, 102, 241, 0.55);
}

.fx-price__badge {
  align-self: flex-start;
  margin: 0 0 0.65rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(165, 180, 252, 0.35);
  background: rgba(99, 102, 241, 0.2);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c7d2fe;
}

.fx-price__tier {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.fx-price__amount {
  margin: 0.45rem 0 0.55rem;
  font-family: var(--font-d);
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.fx-price__amount span {
  font-family: var(--font-b);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
}

.fx-price h3 {
  margin: 0;
  font-family: var(--font-d);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.fx-price__fit {
  margin: 0.4rem 0 0.95rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.fx-price ul {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  flex: 1;
}

.fx-price li {
  position: relative;
  padding-left: 0.95rem;
  color: var(--soft);
  font-size: 0.86rem;
  line-height: 1.45;
}

.fx-price li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 999px;
  background: var(--accent);
}

.fx-price .fx-btn {
  align-self: stretch;
  justify-content: center;
  margin-top: auto;
}

.fx-pricing__note {
  margin: 1.1rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
}

/* —— CTA block —— */
.fx-cta-block,
.fx-wrap.fx-cta {
  text-align: center;
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(99, 102, 241, 0.16), transparent 60%),
    rgba(15, 23, 42, 0.45);
}

.fx-wrap.fx-cta h2 {
  max-width: none;
}

.fx-wrap.fx-cta p {
  margin: 0.65rem auto 0;
  max-width: 42ch;
  color: var(--muted);
}

.fx-wrap.fx-cta .fx-cta {
  justify-content: center;
}

/* —— Footer —— */
.fx-foot {
  padding: 1.25rem max(1.25rem, env(safe-area-inset-right))
    calc(1.25rem + env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.fx-foot p {
  margin: 0;
  font-size: 0.78rem;
  color: #64748b;
}

/* —— Reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal--d1 {
  transition-delay: 0.1s;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* —— Glow border system —— */
.fx-glow {
  position: relative;
  isolation: isolate;
}

.fx-glow::before,
.fx-glow::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.fx-glow::before {
  inset: -5px;
  z-index: -1;
  background: conic-gradient(
    from var(--fx-glow-angle),
    transparent 0deg 248deg,
    rgba(99, 102, 241, 0.18) 275deg,
    rgba(129, 140, 248, 0.5) 300deg,
    rgba(186, 230, 253, 0.55) 318deg,
    rgba(129, 140, 248, 0.5) 336deg,
    rgba(99, 102, 241, 0.18) 355deg,
    transparent 360deg
  );
  filter: blur(14px);
}

.fx-glow::after {
  inset: -1px;
  z-index: 2;
  padding: 1.5px;
  background: conic-gradient(
    from var(--fx-glow-angle),
    transparent 0deg 255deg,
    rgba(99, 102, 241, 0.35) 278deg,
    rgba(129, 140, 248, 0.9) 302deg,
    #e0e7ff 318deg,
    #ffffff 326deg,
    #bae6fd 334deg,
    rgba(129, 140, 248, 0.9) 348deg,
    rgba(99, 102, 241, 0.35) 358deg,
    transparent 360deg
  );
  -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;
}

@keyframes fx-glow-spin {
  to {
    --fx-glow-angle: 360deg;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .fx-glow:hover::before,
  .fx-glow:hover::after,
  .fx-glow:focus-within::before,
  .fx-glow:focus-within::after {
    opacity: 1;
    animation: fx-glow-spin 3.8s linear infinite;
  }

  .fx-btn.fx-glow::before,
  .fx-btn.fx-glow::after,
  .fx-nav.fx-glow::before,
  .fx-nav.fx-glow::after {
    border-radius: 999px;
  }

  .fx-chips li {
    transition:
      transform 0.2s var(--ease),
      border-color 0.2s var(--ease),
      box-shadow 0.25s var(--ease);
  }

  .fx-chips li:hover {
    border-color: rgba(165, 180, 252, 0.45);
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.35);
    transform: translateY(-1px);
  }
}

.fx-magnetic {
  transform-style: preserve-3d;
  will-change: transform;
}

/* —— Demo invite modal (marketing invite, not product tour) —— */
body.fx-invite-open {
  overflow: hidden;
}

.fx-invite {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
  pointer-events: none;
}

.fx-invite[hidden] {
  display: none;
}

.fx-invite.is-open {
  pointer-events: auto;
}

.fx-invite__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 18, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.22s var(--ease);
}

.fx-invite.is-open .fx-invite__backdrop {
  opacity: 1;
}

.fx-invite__dialog {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  margin: 0 auto;
  padding: 1.35rem 1.35rem 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(165, 180, 252, 0.22);
  background:
    linear-gradient(165deg, rgba(22, 30, 52, 0.97), rgba(10, 15, 28, 0.98));
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.08),
    0 24px 48px -20px rgba(0, 0, 0, 0.75);
  transform: translateY(12px);
  opacity: 0;
  transition:
    transform 0.28s var(--ease),
    opacity 0.22s var(--ease);
}

.fx-invite.is-open .fx-invite__dialog {
  transform: translateY(0);
  opacity: 1;
}

.fx-invite__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.fx-invite__close:hover,
.fx-invite__close:focus-visible {
  color: var(--ink);
  background: rgba(148, 163, 184, 0.12);
  outline: none;
}

.fx-invite__dialog .fx-kicker {
  margin: 0;
  padding-right: 2rem;
}

.fx-invite__dialog h2 {
  margin-top: 0.45rem;
  font-size: clamp(1.2rem, 3.5vw, 1.4rem);
  line-height: 1.2;
  max-width: 18ch;
}

.fx-invite__body {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.fx-invite__body strong {
  color: var(--soft);
  font-weight: 700;
}

.fx-invite__actions {
  margin-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.fx-invite__actions .fx-btn {
  flex: 1 1 auto;
  min-width: 7.5rem;
}

@media (min-width: 641px) {
  .fx-invite {
    align-items: center;
    padding: 1.5rem;
  }
}

/* —— Responsive —— */
@media (max-width: 960px) {
  .fx-pointer,
  .fx-orbs,
  .fx-cursor {
    display: none;
  }

  body.has-fx-cursor,
  body.has-fx-cursor a,
  body.has-fx-cursor button {
    cursor: auto;
  }

  .fx-top {
    grid-template-columns: 1fr auto;
  }

  .fx-nav {
    display: none;
  }

  .fx-hero__grid,
  .fx-tour__grid,
  .fx-tour__row--alt .fx-tour__grid,
  .fx-why {
    grid-template-columns: 1fr;
  }

  .fx-tour__row--alt .fx-tour__copy,
  .fx-tour__row--alt .fx-prod {
    order: unset;
  }

  .fx-features,
  .fx-vision,
  .fx-pricing {
    grid-template-columns: 1fr;
  }

  .fx-prod--hero {
    transform: none;
  }
}

@media (max-width: 640px) {
  .fx-top {
    flex-wrap: wrap;
    display: flex;
    justify-content: space-between;
  }

  .fx-top__actions {
    width: 100%;
  }

  .fx-top__actions .fx-btn {
    flex: 1;
  }

  .fx-cta .fx-btn {
    width: 100%;
  }

  .fx-invite__actions .fx-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .fx-btn:hover {
    transform: none;
  }

  .fx-btn--hero {
    animation: none !important;
  }

  .fx-invite__backdrop,
  .fx-invite__dialog {
    transition: none;
  }

  .fx-orbs,
  .fx-pointer,
  .fx-cursor,
  .fx-glow::before,
  .fx-glow::after,
  .fx-kicker {
    animation: none !important;
  }

  .fx-pointer,
  .fx-orbs,
  .fx-cursor {
    display: none;
  }

  body.has-fx-cursor,
  body.has-fx-cursor a,
  body.has-fx-cursor button {
    cursor: auto;
  }
}
