/* Codity 3D landing — "Particle Morph" theme (standalone, not Vuexy) */

:root {
  --bg: #0b0614;
  --bg-2: #0d0716;
  --ink: #f4eef9;
  --muted: #a89bb8;
  --dim: #8d7fa0;
  --line: rgba(255, 255, 255, 0.085);
  --panel: rgba(255, 255, 255, 0.032);
  --vio: #9b45ff;
  --mag: #e64ba0;
  --brand: #7307E0;
  --grad: linear-gradient(96deg, #7307E0 10%, #e64ba0 90%);
  --grad-text: linear-gradient(96deg, #a855f7 8%, #9b45ff 46%, #e64ba0 96%);
  --display: "Clash Display", "Inter", ui-sans-serif, system-ui, sans-serif;
  --body-font: "Inter", ui-sans-serif, system-ui, sans-serif;
  /* Motion system. Everything that moves or changes colour on this page uses
     these, so nothing snaps: the browser default `ease` front-loads its speed,
     which is what reads as "it just lights up". --ease-out decelerates into
     rest (hover/press feedback), --ease-soft is symmetric (open/close, layout).
     Hover-in is quicker than hover-out so the page feels responsive to the
     cursor but never yanks when you leave. */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-in: 0.24s;
  --dur-out: 0.45s;
  --dur-panel: 0.55s;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
html.lenis { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body.l3d {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body-font);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.l3d ::selection { background: rgba(123, 31, 232, 0.45); }

.l3d h1, .l3d h2, .l3d h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.l3d h4, .l3d h5 { font-family: var(--body-font); }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Language toggle */
.lang-lt { display: none; }
body.lt .lang-en { display: none; }
body.lt .lang-lt { display: revert; }

/* ---------- Fixed background layers ---------- */
#halo {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(46% 54% at 66% 44%, rgba(139, 63, 241, 0.16), rgba(115, 7, 224, 0.08) 46%, transparent 70%),
    radial-gradient(30% 34% at 12% 8%, rgba(155, 69, 255, 0.12), transparent 70%),
    radial-gradient(28% 30% at 92% 88%, rgba(230, 75, 160, 0.05), transparent 70%);
  transition: opacity 0.15s linear;
}
#bg3d {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  transition: opacity 0.15s linear;
}
.page {
  position: relative;
  z-index: 2;
}

/* ---------- Nav ---------- */
.nav3d {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}
/* Pure gradient scrim, NO backdrop-filter: a blur region always ends in a
   visible boundary (and WebKit ignores masks on backdrop-filter entirely).
   Eased stops so the fade has no perceptible edge anywhere. */
.nav3d::before {
  content: "";
  position: absolute;
  inset: 0 0 -76px 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    rgba(11, 6, 20, 0.72),
    rgba(11, 6, 20, 0.55) 38%,
    rgba(11, 6, 20, 0.32) 58%,
    rgba(11, 6, 20, 0.14) 76%,
    rgba(11, 6, 20, 0.04) 90%,
    transparent
  );
  transition: opacity 0.35s ease;
}
.nav3d.scrolled::before {
  background: linear-gradient(
    rgba(11, 6, 20, 0.88),
    rgba(11, 6, 20, 0.68) 38%,
    rgba(11, 6, 20, 0.4) 58%,
    rgba(11, 6, 20, 0.17) 76%,
    rgba(11, 6, 20, 0.05) 90%,
    transparent
  );
}
.nav3d-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 15px 44px;
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav3d .brand img { height: 27px; width: auto; display: block; }
.nav3d-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0 auto;
}
.nav3d-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color var(--dur-out) var(--ease-out);
}
.nav3d-links a:hover { color: #fff; transition-duration: var(--dur-in); }
.nav3d-actions { display: flex; align-items: center; gap: 14px; }

.lang-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  background: rgba(255, 255, 255, 0.02);
}
.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--dim);
  font: 600 12px/1 var(--body-font);
  padding: 4px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--dur-out) var(--ease-out), color var(--dur-out) var(--ease-out);
}
.lang-switch button.active { background: rgba(255, 255, 255, 0.1); color: #fff; }

/* ---------- Buttons ---------- */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 999px;
  padding: 11px 22px;
  font: 600 14px/1 var(--body-font);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform var(--dur-out) var(--ease-out), filter var(--dur-out) var(--ease-out),
    border-color var(--dur-out) var(--ease-out), background var(--dur-out) var(--ease-out),
    box-shadow var(--dur-out) var(--ease-out);
}
.btn-pill.sm { padding: 9px 18px; font-size: 13px; }
.btn-pill.lg { padding: 15px 30px; font-size: 15.5px; }
.btn-pill.primary {
  background: var(--grad);
  /* origin must match clip (border-box): the gradient sampled under the 1px
     transparent border otherwise wraps at the rounded caps — pink edge sliver */
  background-origin: border-box;
  color: #fff;
  box-shadow: 0 10px 32px -10px rgba(115, 7, 224, 0.7);
}
.btn-pill.primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -10px rgba(115, 7, 224, 0.85);
}
.btn-pill.ghost {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.02);
}
.btn-pill.ghost:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

/* ---------- Eyebrow chips ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #cbb8dd;
  font: 600 12px/1 var(--body-font);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(155, 69, 255, 0.9);
  animation: dot-pulse 2.6s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 12px rgba(155, 69, 255, 0.9); }
  50% { box-shadow: 0 0 4px rgba(155, 69, 255, 0.4); }
}

/* ---------- Hero ---------- */
.hero3d {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(58% 78% at 20% 52%, rgba(11, 6, 20, 0.9), rgba(11, 6, 20, 0) 72%);
  /* the radial is taller than the hero, so without this it clips to a hard
     line at the hero's bottom edge (left side, where the scrim lives) */
  mask-image: linear-gradient(to bottom, #000 0 58%, transparent 97%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0 58%, transparent 97%);
}
.hero-inner {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  padding: 130px 44px 90px;
  width: 100%;
}
.hero-copy { max-width: 660px; will-change: transform, opacity; }
.hero3d h1 {
  font-size: clamp(40px, 4.6vw, 74px);
  line-height: 1.03;
  letter-spacing: -0.018em;
  margin: 28px 0 24px;
}
.hero3d .sub {
  font-size: 17.5px;
  line-height: 1.66;
  color: var(--muted);
  max-width: 560px;
}
.hero-ctas { display: flex; gap: 14px; margin-top: 36px; align-items: center; flex-wrap: wrap; }
.hero-note {
  margin-top: 28px;
  color: var(--dim);
  font-size: 13.5px;
  letter-spacing: 0.02em;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--dim);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.scroll-hint .wheel { animation: wheel 1.9s ease-in-out infinite; }
@keyframes wheel {
  0%, 100% { transform: translateY(0); opacity: 1; }
  55% { transform: translateY(7px); opacity: 0.15; }
}

/* ---------- Morph chip ---------- */
.morph-chip {
  position: absolute;
  left: 67.5%;
  bottom: 11%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px 11px 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(13, 7, 22, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 14px 40px -14px rgba(0, 0, 0, 0.7);
}
.morph-ico { display: flex; align-items: center; color: #c39bff; }
.morph-ico svg { display: none; }
.morph-ico svg.on { display: block; }
.morph-dots { display: flex; gap: 5px; }
.morph-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  transition: background var(--dur-panel) var(--ease-soft), box-shadow var(--dur-panel) var(--ease-soft);
}
.morph-dots i.on { background: var(--grad); box-shadow: 0 0 9px rgba(155, 69, 255, 0.9); }
#morphLabel {
  font-size: 13px;
  font-weight: 600;
  color: #ece0f5;
  letter-spacing: 0.02em;
  transition: opacity 0.22s;
  min-width: 96px;
}

/* ---------- Sections ---------- */
.below {
  position: relative;
  background: linear-gradient(180deg, rgba(12, 6, 20, 0) 0, var(--bg-2) 230px);
}
/* Faint magenta echo of the hero gradient that trails the viewport down the
   page (JS lerps its transform in the Lenis raf). Sits between the .below
   background and the z-index:1 sections. */
.scroll-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 150vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
}
.section3d { padding: 112px 32px; position: relative; z-index: 1; scroll-margin-top: 60px; }
.section3d .container { max-width: 1240px; margin: 0 auto; }
/* Ambient glows live on the .below wrapper, not on sections: a section-scoped
   glow clips at the section box and draws a visible seam between sections.
   Fixed-px ellipses fade to transparent well inside the layer, and the two
   layers drift/breathe slowly in opposite directions. */
.below::before,
.below::after {
  content: "";
  position: absolute;
  inset: -80px 0;
  pointer-events: none;
  will-change: transform, opacity;
  /* The lobes are far bigger than this box (the first is 780px tall, centred at
     5% — its top half sits above the box), so they were CLIPPED at the box edge
     and drew a hard horizontal line 80px above the fold. It only showed on the
     LEFT because that radial is centred at 14%; the right-hand one sits at
     88% 22%, ~1380px down, so its lobe never reaches the edge — which is why
     the right blended and the left did not. Fading both ends means a lobe can
     never end in a cut, whatever the gradients are changed to later. */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 240px,
    #000 calc(100% - 240px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 240px,
    #000 calc(100% - 240px), transparent 100%);
}
.below::before {
  background:
    radial-gradient(1100px 780px at 14% 5%, rgba(155, 69, 255, 0.09), transparent 70%),
    radial-gradient(1000px 720px at 88% 22%, rgba(115, 7, 224, 0.09), transparent 70%),
    radial-gradient(1200px 820px at 45% 54%, rgba(115, 7, 224, 0.07), transparent 70%);
  animation: glow-drift-a 30s ease-in-out infinite alternate;
}
.below::after {
  background:
    radial-gradient(1050px 760px at 84% 76%, rgba(230, 75, 160, 0.06), transparent 70%),
    radial-gradient(1000px 700px at 10% 92%, rgba(115, 7, 224, 0.08), transparent 70%);
  animation: glow-drift-b 42s ease-in-out infinite alternate;
}
@keyframes glow-drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.75; }
  to { transform: translate3d(-48px, 56px, 0) scale(1.05); opacity: 1; }
}
@keyframes glow-drift-b {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: 1; }
  to { transform: translate3d(44px, -52px, 0) scale(1.04); opacity: 0.7; }
}
.section-head { text-align: center; max-width: 680px; margin: 0 auto 58px; position: relative; }
.section-head h2 {
  font-size: clamp(34px, 3.1vw, 48px);
  letter-spacing: -0.012em;
  line-height: 1.1;
  margin: 20px 0 16px;
}
.section-head p { color: var(--muted); font-size: 16.5px; line-height: 1.62; }

/* ---------- Cards ---------- */
.glass {
  position: relative;
  background: var(--panel);
  border: 1px solid transparent;   /* the ::before ring IS the edge */
  border-radius: 18px;
  overflow: hidden;
  transition: transform var(--dur-out) var(--ease-out),
    border-color var(--dur-out) var(--ease-out), box-shadow var(--dur-out) var(--ease-out);
}
/* Full-perimeter animated edge (was a 2px bar across the top). A conic
   gradient clipped to a 2px band by masking the content box OUT of the padding
   box; the arc orbits by animating the gradient's own ANGLE, because rotating a
   rounded rectangle makes its corners wobble. Paused at rest so the page is
   still until you engage a card — see .glass:hover::before. The card's own
   border goes transparent so the ring is the only edge, and the negative
   per-card delay parks each one at a different angle so a grid of cards does
   not look rubber-stamped (landing-3d.js already sets --i per sibling). */
@property --sheen-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  pointer-events: none;
  opacity: 0.9;
  background: conic-gradient(from var(--sheen-angle),
    rgba(155, 69, 255, 0.16) 0deg,
    var(--vio) 55deg,
    var(--mag) 110deg,
    rgba(230, 75, 160, 0.16) 180deg,
    rgba(155, 69, 255, 0.16) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: sheen-rotate 6s linear infinite paused;
  animation-delay: calc(var(--i, 0) * -1.35s);
}
@keyframes sheen-rotate { to { --sheen-angle: 360deg; } }
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(440px 170px at 50% 0%, rgba(139, 63, 241, 0.1), transparent 72%);
}
.glass:hover {
  transform: translateY(-5px);
  border-color: rgba(155, 69, 255, 0.36);
  box-shadow: 0 26px 64px -26px rgba(115, 7, 224, 0.5);
}
/* play-state only: leaving holds the arc where it stopped instead of snapping
   back to 0deg, and re-entering picks up from there */
.glass:hover::before { animation-play-state: running; opacity: 1; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.icon-orb {
  width: 47px;
  height: 47px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(115, 7, 224, 0.24), rgba(230, 75, 160, 0.12));
  border: 1px solid rgba(155, 69, 255, 0.32);
  margin-bottom: 22px;
}

.feature-card { padding: 32px 30px; }
.feature-card h3 { font-size: 21px; margin-bottom: 11px; }
.feature-card p { color: var(--muted); font-size: 14.5px; line-height: 1.66; }

/* Services */
.service-card3d { padding: 32px 30px; }
.service-card3d h3 { font-size: 21px; margin-bottom: 11px; }
.service-card3d > p { color: var(--muted); font-size: 14.5px; line-height: 1.66; }
.check-list {
  list-style: none;
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
}
.check-list li {
  display: flex;
  gap: 9px;
  align-items: center;
  color: #d4c8e1;
  font-size: 13.5px;
  font-weight: 500;
}
.check-list svg { flex: none; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step-card { padding: 32px 30px; }
.step-num {
  width: 47px;
  height: 47px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  font: 600 20px/1 var(--display);
  color: #fff;
  background: var(--grad);
  box-shadow: 0 10px 32px -10px rgba(115, 7, 224, 0.7);
  margin-bottom: 22px;
}
.step-card h3 { font-size: 21px; margin-bottom: 11px; }
.step-card p { color: var(--muted); font-size: 14.5px; line-height: 1.66; }

/* Pricing */
.pricing-single {
  max-width: 980px;
  margin: 0 auto;
  padding: 46px 48px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
  border-color: rgba(155, 69, 255, 0.5);
  box-shadow: 0 0 60px -12px rgba(115, 7, 224, 0.45);
  background: linear-gradient(180deg, rgba(115, 7, 224, 0.1), var(--panel) 45%);
}
.pricing-single::before { opacity: 1; animation-play-state: running; animation-duration: 9s; }
.pricing-single h3 { font-size: 26px; margin-bottom: 12px; }
.pricing-pitch-text { color: var(--muted); font-size: 15px; line-height: 1.7; margin-bottom: 26px; }
.pricing-note { margin-top: 13px; color: var(--dim); font-size: 12.5px; }
.pricing-includes { border-left: 1px solid var(--line); padding-left: 44px; }
.pricing-includes .check-list { grid-template-columns: 1fr; margin-top: 18px; gap: 13px; }
.included-label {
  font: 600 11px/1 var(--body-font);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 22px;
}

/* FAQ */
.faq-wrap { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { border-radius: 16px; }
.faq-item h3 { margin: 0; } /* heading wraps the .faq-q button; button carries all styling */
.faq-item::before { opacity: 0.5; transition: opacity var(--dur-out) var(--ease-out); }
.faq-item.open::before, .faq-item:hover::before { opacity: 1; }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: transparent;
  border: 0;
  color: var(--ink);
  font: 600 15.5px/1.4 var(--body-font);
  text-align: left;
  padding: 20px 24px;
  cursor: pointer;
}
.faq-q .chev {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(155, 69, 255, 0.4);
  color: #c39bff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dur-panel) var(--ease-soft),
    background var(--dur-panel) var(--ease-soft), border-color var(--dur-out) var(--ease-out);
}
.faq-item.open .chev { transform: rotate(45deg); background: rgba(115, 7, 224, 0.22); }
/* Height animates via grid-template-rows 0fr -> 1fr, not max-height. max-height
   needs a px value JS measures, and animating to a guessed-too-large ceiling
   spends the tail of the curve on empty space — which is the stepped, jerky
   feel. 0fr -> 1fr interpolates the row's REAL height, so the curve maps to
   what you actually see. */
.faq-a {
  display: grid;
  /* minmax(0, …), not a bare 0fr: an fr track is minmax(auto, Nfr), so its floor
     is the item's min-content height — which includes .faq-a-inner's 22px bottom
     padding. A bare 0fr therefore collapses to 22px, not 0, and the panel never
     animates at all. */
  grid-template-rows: minmax(0, 0fr);
  overflow: hidden;
  transition: grid-template-rows var(--dur-panel) var(--ease-soft);
}
.faq-item.open .faq-a { grid-template-rows: minmax(0, 1fr); }
.faq-a-inner {
  min-height: 0;      /* required: a grid item's default min-height:auto refuses to shrink */
  overflow: hidden;
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.66;
  /* the text fades slightly behind the panel so it arrives, rather than being
     revealed by a moving clip edge */
  opacity: 0;
  transition: opacity var(--dur-in) var(--ease-out);
}
.faq-item.open .faq-a-inner {
  opacity: 1;
  transition: opacity var(--dur-out) var(--ease-out) 0.12s;
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr; }
.contact-form { padding: 36px 38px; }
/* No hover lift on the form: it is a card you AIM at, and translating it moves
   every input out from under the cursor mid-approach. The border and glow still
   respond, so it stays alive without becoming a moving target. */
.contact-form:hover { transform: none; }
/* honeypot: parked far off-screen (not display:none — some bots skip those) */
.hp-wrap { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.btn-pill[disabled] { opacity: 0.55; pointer-events: none; }
/* The message's SPACE animates too, not just its opacity. Toggling [hidden]
   removed the flash plus its 28px margin in one frame, so the form snapped
   upward under the fade — which is what read as "it disappears instantly".
   minmax(0, …) rather than a bare 0fr: an fr track floors at the item's
   min-content height, and the child's margin would keep it open. */
#contactFormMsg {
  display: grid;
  grid-template-rows: minmax(0, 0fr);
  overflow: hidden;
  transition: grid-template-rows var(--dur-panel) var(--ease-soft);
  /* Reserved placeholder: the slot keeps the message's height even when empty,
     so the form does not move when a message appears or leaves — no scroll jump
     while the user is aiming at an input. Measured against the real flash:
     64.7px + its 28px margin. The grid row above still animates, so a message
     TALLER than the reserve (a long error, a narrow screen) grows smoothly
     instead of snapping. */
  min-height: 94px;
}
@media (max-width: 767.98px) {
  /* the LT success line wraps to two lines here — measured 76.8px + 28px */
  #contactFormMsg { min-height: 107px; }
}
#contactFormMsg.is-open { grid-template-rows: minmax(0, 1fr); }
#contactFormMsg > * { min-height: 0; }
/* no-JS: the box is only ever populated by the AJAX path */
#contactFormMsg[hidden] { display: none; }
.contact-form h3 { font-size: 24px; margin-bottom: 8px; }
.contact-form .form-sub { color: var(--muted); font-size: 14.5px; margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.field { margin-bottom: 16px; }
.form-row .field { margin-bottom: 0; }
.field label {
  display: block;
  font: 600 11px/1 var(--body-font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  /* permanent inset cover: browser-internal autofill painting (Chrome ghost
     autofill, extension native fills) replaces the CSS background and ignores
     even inline !important — an always-on inset shadow paints over ALL of it */
  box-shadow: inset 0 0 0 1000px #161020;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font: 400 14.5px/1.5 var(--body-font);
  padding: 13px 16px;
  outline: none;
  transition: border-color var(--dur-out) var(--ease-out),
    box-shadow var(--dur-out) var(--ease-out);
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder {
  color: rgba(141, 127, 160, 0.55);
  transition: color var(--dur-out) var(--ease-out);
}
/* the placeholder recedes as you engage the field, instead of sitting at full
   strength until the first keystroke blanks it */
.field input:focus::placeholder, .field textarea:focus::placeholder {
  color: rgba(141, 127, 160, 0.3);
}
/* fields had no hover state at all — the border only ever changed on focus, so
   the form felt inert until clicked */
.field input:hover, .field textarea:hover { border-color: rgba(255, 255, 255, 0.2); }
.field input:focus, .field textarea:focus {
  border-color: rgba(155, 69, 255, 0.6);
  box-shadow: inset 0 0 0 1000px #161020, 0 0 0 3px rgba(115, 7, 224, 0.18);
}
/* the label lifts with its field so the pair reads as one control */
.field label { transition: color var(--dur-out) var(--ease-out); }
.field:focus-within label { color: #c8b4dd; }
/* Chrome autofill paints its own pale green background — repaint it with an
   inset shadow matching the field, and keep our text/caret colors */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus,
.field textarea:-webkit-autofill {
  /* two independent layers: the inset shadow repaints the field body, and
     background-clip:text confines Chrome's own tint to the glyphs where the
     matching text-fill-color hides it — covers every Chrome variant */
  -webkit-box-shadow: 0 0 0 1000px #161020 inset;
  -webkit-background-clip: text;
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  transition: background-color 99999s ease-out;
}

/* Flash messages */
.flash3d {
  max-width: 640px;
  margin: 0 auto 28px;
  padding: 15px 22px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: #f1e7fb;
  border: 1px solid rgba(155, 69, 255, 0.35);
  background: linear-gradient(135deg, rgba(115, 7, 224, 0.16), rgba(230, 75, 160, 0.08));
  box-shadow: 0 14px 44px -18px rgba(115, 7, 224, 0.55);
  animation: flash-in 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.flash3d .flash-ic {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad);
  box-shadow: 0 6px 18px -6px rgba(115, 7, 224, 0.8);
  animation: ic-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.12s backwards;
}
@keyframes ic-pop {
  from { transform: scale(0.3); opacity: 0; }
}
.flash3d.leaving { animation: flash-out 0.45s ease forwards; }
@keyframes flash-out {
  to { opacity: 0; transform: translateY(-10px) scale(0.97); }
}
.flash3d.danger {
  border-color: rgba(230, 75, 160, 0.45);
  background: linear-gradient(135deg, rgba(230, 75, 160, 0.14), rgba(115, 7, 224, 0.07));
  box-shadow: 0 14px 44px -18px rgba(230, 75, 160, 0.5);
}
.flash3d.danger .flash-ic { background: linear-gradient(120deg, #e64ba0, #ff5470); }
@keyframes flash-in {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* Footer */
.footer3d {
  border-top: 1px solid var(--line);
  padding: 72px 32px 0;
  background: #0c0616;
}
.footer3d .container { max-width: 1240px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 5fr 3fr 3fr 3fr; gap: 40px; padding-bottom: 48px; }
.footer3d img.flogo { height: 26px; width: auto; margin-bottom: 19px; }
.footer3d .fdesc { color: var(--muted); font-size: 13.5px; line-height: 1.66; max-width: 320px; }
.footer3d h4 {
  font: 600 12px/1 var(--body-font);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #cbb8dd;
  margin-bottom: 19px;
}
.footer3d ul { list-style: none; }
.footer3d ul li { margin-bottom: 11px; }
.footer3d ul a { color: var(--muted); text-decoration: none; font-size: 13.5px; transition: color var(--dur-out) var(--ease-out); }
.footer3d ul a:hover { color: #fff; }
.social-orbs { display: flex; gap: 11px; }
.social-orbs a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  border: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
  transition: border-color var(--dur-out) var(--ease-out), color var(--dur-out) var(--ease-out),
    box-shadow var(--dur-out) var(--ease-out), transform var(--dur-out) var(--ease-out);
}
.social-orbs a:hover {
  color: #fff;
  border-color: rgba(155, 69, 255, 0.5);
  box-shadow: 0 0 24px -6px rgba(115, 7, 224, 0.7);
  transform: translateY(-2px);
}
.footer-bottom3d {
  border-top: 1px solid var(--line);
  padding: 22px 0 26px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--dim);
  font-size: 13px;
}
.footer-bottom3d .heart { color: var(--mag); }

/* Reveal on scroll — an ANIMATION, not a transition, and that distinction is
   load-bearing. `.reveal` sits later in this file than `.glass`, so a
   `transition` shorthand here REPLACED the card's own hover transition: every
   .glass.reveal computed `transition-property: opacity, transform`, leaving
   border-color and box-shadow untransitioned. That is what made hover "just
   light up" instantly. An animation leaves `transition` untouched for hover.
   A shorter travel over a longer duration also reads calmer — 22px in 0.75s has
   to move fast at the start, and that lurch is what registered as jerky. */
/* The hidden state is scoped to :not(.in) rather than sitting on .reveal
   permanently. A standing `transform: translateY(...)` (or its `none` reset on
   .settled) matches `.glass:hover`'s specificity and wins on source order, which
   silently kills the hover lift on every revealed card. Scoped this way, a
   settled element carries no transform declaration at all. */
.reveal:not(.in) {
  opacity: 0;
  transform: translateY(14px);
  will-change: opacity, transform;
}
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.reveal.in {
  animation: reveal-in 0.9s var(--ease-out) both;
  /* siblings arrive as a sequence rather than one flash; capped so a long list
     does not trail off. landing-3d.js assigns --i per sibling group. */
  animation-delay: min(calc(var(--i, 0) * 70ms), 420ms);
}
/* Once the arrival has played, drop the animation entirely: an animation with a
   forwards fill keeps winning the cascade over `.glass:hover { transform }`, so
   leaving it in place would kill the hover lift on every revealed card. JS adds
   this on animationend. */
.reveal.settled {
  animation: none;
  will-change: auto;  /* stop holding a compositor layer per card */
}

/* On-reveal accents: the card's top line draws in from the middle, icon and
   step tiles settle with a soft spring, checklist items cascade in. */
.glass.reveal::before,
.reveal .glass::before { opacity: 0; transition: opacity 0.9s var(--ease-out) 0.3s; }
.glass.reveal.in::before,
.reveal.in .glass::before { opacity: 0.9; }
.reveal .icon-orb {
  opacity: 0;
  transform: scale(0.82) translateY(6px);
  transition: opacity 0.5s ease 0.18s, transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.18s;
}
.reveal.in .icon-orb { opacity: 1; transform: none; }
.reveal .step-num {
  opacity: 0;
  transform: scale(0.85) rotate(-5deg);
  transition: opacity 0.5s ease 0.2s, transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s;
}
.reveal.in .step-num { opacity: 1; transform: none; }
.reveal .check-list li {
  opacity: 0;
  transform: translateX(-9px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.reveal.in .check-list li { opacity: 1; transform: none; }
.reveal.in .check-list li:nth-child(1) { transition-delay: 0.26s; }
.reveal.in .check-list li:nth-child(2) { transition-delay: 0.34s; }
.reveal.in .check-list li:nth-child(3) { transition-delay: 0.42s; }
.reveal.in .check-list li:nth-child(4) { transition-delay: 0.5s; }
.reveal.in .check-list li:nth-child(5) { transition-delay: 0.58s; }
/* (stagger now rides animation-delay on .reveal.in — a transition-delay here
   would also delay every hover on the same element by up to 420ms) */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; animation: none; }
  /* the accordion still opens, it just snaps instead of sliding */
  .faq-a { transition: none; }
  .faq-a-inner { opacity: 1; transition: none; }
  .scroll-hint .wheel { animation: none; }
  .eyebrow .dot { animation: none; }
  .glass::before, .glass:hover::before, .pricing-single::before { animation: none; }
  .below::before, .below::after { animation: none; }
  .scroll-glow { display: none; }
  .flash3d, .flash3d .flash-ic, .flash3d.leaving { animation: none; }
  .glass.reveal::before, .reveal .glass::before { opacity: 0.9; transition: none; }
  .reveal .icon-orb, .reveal .step-num, .reveal .check-list li {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .glass:hover, .btn-pill.primary:hover, .btn-pill.ghost:hover, .social-orbs a:hover {
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .check-list { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav3d-links { display: none; }
  /* with the link list (and its auto margins) gone, spread logo and actions —
     otherwise everything bunches on the left */
  .nav3d-inner { padding: 13px 24px; gap: 16px; justify-content: space-between; }
  .hero-inner { padding: 120px 24px 90px; }
  .morph-chip { display: none; }
  .grid-2, .grid-3, .steps {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
  .pricing-single { grid-template-columns: 1fr; gap: 30px; padding: 34px 28px; }
  .pricing-includes { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 26px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .section3d { padding: 72px 20px; }
  .hero3d h1 { font-size: clamp(34px, 9.6vw, 44px); }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn-pill { width: 100%; justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 26px 20px; }
  .pricing-single { padding: 26px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer3d { padding: 56px 20px 0; }
  .nav3d-inner { padding: 12px 16px; gap: 12px; }
  .nav3d-actions .btn-login { display: none; }
}
