/*!
 * Neo Welcome v1.0.0 — first-visit experience for neotechnologies.io
 * Pairs with /assets/js/neo-welcome.js · no dependencies
 */

/* ── Page states (set by the head snippet + script) ───────────────────── */
html.nw-pending { background: #070b1f; }
html.nw-pending body > *:not(.nw) { visibility: hidden !important; }
html.nw-active { overflow: hidden !important; scrollbar-gutter: stable; }
html.nw-active body { overflow: hidden !important; }

/* ── Root ─────────────────────────────────────────────────────────────── */
.nw {
  --nw-ink: #eef0ff;
  --nw-muted: rgba(226, 230, 255, .74);
  --nw-faint: rgba(226, 230, 255, .6);
  --nw-violet: #c4b5fd;
  --nw-danger: #fca5a5;
  --nw-ok: #34d399;
  --nw-grad: linear-gradient(120deg, #6366f1 0%, #8b5cf6 48%, #ec4899 100%);
  --nw-text-grad: linear-gradient(92deg, #a5b4fc 0%, #c4b5fd 26%, #f9a8d4 52%, #c4b5fd 76%, #a5b4fc 100%);
  --nw-font: var(--font-body, "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
  --nw-display: var(--font-display, "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
  --nw-out: cubic-bezier(.16, 1, .3, 1);
  --nw-spring: cubic-bezier(.34, 1.56, .64, 1);
  --nw-mx: 0;
  --nw-my: 0;
  --nw-auto: 3400ms;

  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 9990;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  isolation: isolate;
  color: var(--nw-ink);
  background: radial-gradient(120% 85% at 50% -5%, #141c4d 0%, #070b1f 56%, #04060f 100%);
  font-family: var(--nw-font);
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}
.nw:focus { outline: none; }
/* Resets: element-level specificity only, so every .nw-* class below wins */
:where(.nw) *, :where(.nw) *::before, :where(.nw) *::after { box-sizing: border-box; }
:where(.nw) h1, :where(.nw) h2, :where(.nw) p, :where(.nw) ul, :where(.nw) li, :where(.nw) form { margin: 0; padding: 0; }
:where(.nw) ul { list-style: none; }
:where(.nw) a { color: inherit; }
:where(.nw) button {
  margin: 0; padding: 0; border: 0; background: none; color: inherit;
  font: inherit; letter-spacing: normal; text-transform: none; line-height: inherit;
  cursor: pointer; -webkit-appearance: none; appearance: none; box-shadow: none;
}
:where(.nw) svg { display: block; flex: none; overflow: visible; max-width: none; }
.nw .nw-i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nw kbd {
  display: inline-block; padding: 3px 7px; border-radius: 6px;
  font: 600 .72rem/1.2 var(--nw-font); color: var(--nw-ink);
  border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .08);
}
.nw-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Focus */
.nw-cta:focus-visible, .nw-submit:focus-visible, .nw-enter:focus-visible,
.nw-ctl:focus-visible, .nw-skip:focus-visible, .nw-privacy-toggle:focus-visible,
.nw-linkbtn:focus-visible, .nw-suggest:focus-visible, .nw-privacy a:focus-visible {
  outline: 2px solid #ddd6fe; outline-offset: 3px;
}
.nw:focus, .nw:focus-visible, .nw-greet:focus, .nw-greet:focus-visible,
.nw-card-title:focus, .nw-card-title:focus-visible { outline: none; box-shadow: none; border-radius: 0; }
.nw-vol:focus-visible { box-shadow: none; }
[data-nw-focus]:focus, [data-nw-focus]:focus-visible { outline: none; box-shadow: none; }

/* ── Background ───────────────────────────────────────────────────────── */
.nw-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; overflow: hidden; pointer-events: none; }
.nw-par {
  position: absolute; top: -8%; left: -8%; width: 116%; height: 116%;
  transform: translate3d(calc(var(--nw-mx) * -22px), calc(var(--nw-my) * -16px), 0);
  transition: transform 1s var(--nw-out);
}
.nw-blob { position: absolute; border-radius: 50%; will-change: transform; }
.nw-blob-1 { width: 74vmax; height: 74vmax; left: -24vmax; top: -32vmax; background: radial-gradient(closest-side, rgba(99, 102, 241, .5), rgba(99, 102, 241, 0)); animation: nw-drift1 24s ease-in-out infinite alternate; }
.nw-blob-2 { width: 66vmax; height: 66vmax; right: -26vmax; bottom: -36vmax; background: radial-gradient(closest-side, rgba(236, 72, 153, .32), rgba(236, 72, 153, 0)); animation: nw-drift2 28s ease-in-out infinite alternate; }
.nw-blob-3 { width: 54vmax; height: 54vmax; left: 32%; top: 14%; background: radial-gradient(closest-side, rgba(139, 92, 246, .3), rgba(139, 92, 246, 0)); animation: nw-drift3 32s ease-in-out infinite alternate; }

.nw-floor {
  position: absolute; left: -60%; right: -60%; bottom: 0; height: 58%;
  transform: perspective(380px) rotateX(64deg); transform-origin: 50% 100%;
  overflow: hidden; opacity: .62;
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .5) 36%, transparent 78%);
  mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .5) 36%, transparent 78%);
}
.nw-floor-lines {
  position: absolute; left: 0; right: 0; top: -80px; bottom: 0;
  background-image:
    linear-gradient(to bottom, rgba(167, 139, 250, .55) 1px, transparent 1px),
    linear-gradient(to right, rgba(129, 140, 248, .42) 1px, transparent 1px);
  background-size: 80px 80px;
  animation: nw-floor 3s linear infinite;
  will-change: transform;
}
.nw-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.nw-vig { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(ellipse 90% 78% at 50% 42%, transparent 52%, rgba(3, 5, 16, .74) 100%); }
.nw-grain {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Controls ─────────────────────────────────────────────────────────── */
.nw-controls {
  position: fixed; z-index: 6;
  top: max(16px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right));
  display: flex; align-items: center; gap: 2px; padding: 4px;
  border-radius: 999px;
  background: rgba(13, 19, 49, .55);
  border: 1px solid rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 12px 32px -14px rgba(0, 0, 0, .7);
}
.nw-ctl {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; min-width: 38px; padding: 0 10px; border-radius: 999px;
  color: var(--nw-muted); font-size: .82rem; font-weight: 600;
  transition: color .2s, background-color .2s;
}
.nw-ctl:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.nw-ctl[aria-pressed="true"] { color: #fff; }
.nw-ctl .nw-i { width: 17px; height: 17px; }
.nw-ctl-motion .nw-i-play, .nw-ctl-motion[aria-pressed="true"] .nw-i-pause { display: none; }
.nw-ctl-motion[aria-pressed="true"] .nw-i-play { display: block; }
.nw-ctl-sound .nw-i-on, .nw-ctl-sound[aria-pressed="true"] .nw-i-off { display: none; }
.nw-ctl-sound[aria-pressed="true"] .nw-i-on { display: block; }
.nw-ctl-sound[aria-pressed="true"] { background: rgba(139, 92, 246, .18); }
.nw-sound { display: flex; align-items: center; }
.nw-sound[hidden] { display: none; }
.nw-vol {
  -webkit-appearance: none; appearance: none;
  width: 0; height: 4px; margin: 0; opacity: 0; visibility: hidden;
  border-radius: 4px; cursor: pointer; background: transparent;
  transition: width .35s var(--nw-out), opacity .25s, margin .35s var(--nw-out), visibility .35s;
}
.nw-vol::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, #8b5cf6 0 var(--v, 60%), rgba(255, 255, 255, .18) var(--v, 60%) 100%); }
.nw-vol::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .18); }
.nw-vol::-moz-range-progress { height: 4px; border-radius: 4px; background: #8b5cf6; }
.nw-vol::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(139, 92, 246, .45); }
.nw-vol::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(139, 92, 246, .45); }
.nw-vol:focus-visible { outline: 2px solid #ddd6fe; outline-offset: 6px; }
.nw-sound.is-on .nw-vol { width: 74px; opacity: 1; visibility: visible; margin: 0 10px 0 4px; }
.nw-sep { width: 1px; height: 20px; margin: 0 4px; background: rgba(255, 255, 255, .12); }
.nw-skip {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px 0 15px;
  border-radius: 999px; font-size: .82rem; font-weight: 600; color: #fff;
  background: rgba(255, 255, 255, .08); transition: background-color .2s;
}
.nw-skip:hover { background: rgba(255, 255, 255, .15); }
.nw-skip .nw-i { width: 15px; height: 15px; transition: transform .25s var(--nw-out); }
.nw-skip:hover .nw-i { transform: translateX(2px); }

/* ── Stage & panels ───────────────────────────────────────────────────── */
.nw-stage {
  position: relative; z-index: 1;
  min-height: 100%;
  display: grid; place-items: center;
  padding: calc(88px + env(safe-area-inset-top)) 20px calc(48px + env(safe-area-inset-bottom));
}
.nw-panel { grid-area: 1 / 1; width: 100%; max-width: 820px; display: flex; flex-direction: column; align-items: center; }
.nw-panel[hidden] { display: none !important; }
.nw:not(.is-ready) .nw-panel-intro, .nw:not(.is-ready) .nw-controls { visibility: hidden; }

/* ── Logo ─────────────────────────────────────────────────────────────── */
.nw-logo { position: relative; width: 132px; height: 132px; margin: 0 auto 38px; }
.nw-halo { position: absolute; left: -70%; top: -70%; width: 240%; height: 240%; }
.nw-halo i { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(closest-side, rgba(139, 92, 246, .44), rgba(99, 102, 241, .14) 52%, rgba(99, 102, 241, 0) 72%); animation: nw-breathe 5.5s ease-in-out infinite; }
.nw-orbits { position: absolute; left: -100%; top: -100%; width: 300%; height: 300%; max-width: none; pointer-events: none; }
.nw-mark { position: relative; width: 100%; height: 100%; filter: drop-shadow(0 20px 40px rgba(139, 92, 246, .45)); }
.nw-mark-outline { stroke-dasharray: 1 2; stroke-dashoffset: 0; opacity: 0; }
.nw-mark-fill { transform-box: fill-box; transform-origin: 50% 50%; }
.nw-mark-n { stroke-dasharray: 1 2; stroke-dashoffset: 0; }
.nw-mark-shine { transform: translateX(80px); }

.nw.is-ready .nw-halo { animation: nw-halo-in 1.6s var(--nw-out) .45s both; }
.nw.is-ready .nw-orbits { animation: nw-fade 1.6s ease 1.15s both; }
.nw.is-ready .nw-mark-outline { animation: nw-outline 1.6s cubic-bezier(.65, 0, .35, 1) .1s both; }
.nw.is-ready .nw-mark-fill { animation: nw-pop 1s var(--nw-spring) .62s both; }
.nw.is-ready .nw-mark-n { animation: nw-draw .85s cubic-bezier(.65, 0, .35, 1) 1.02s both; }
.nw.is-ready .nw-mark-shine { animation: nw-shine 1.25s cubic-bezier(.4, 0, .2, 1) 1.75s both; }

/* ── Intro copy ───────────────────────────────────────────────────────── */
.nw-title { font-family: var(--nw-display); font-weight: 800; color: #fff; line-height: 1.02; letter-spacing: -.035em; }
.nw-title-1 { display: block; margin-bottom: 12px; font-size: clamp(1.1rem, 2.3vw, 1.55rem); font-weight: 600; letter-spacing: -.01em; color: var(--nw-muted); }
.nw-title-2 {
  display: inline-block; padding: 0 .05em .1em;
  font-size: clamp(2rem, min(10.2vw, 11vh), 5.7rem);
  background: var(--nw-text-grad); background-size: 200% 100%; background-position: 0% 50%;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  -webkit-mask-image: linear-gradient(100deg, #000 40%, transparent 60%); mask-image: linear-gradient(100deg, #000 40%, transparent 60%);
  -webkit-mask-size: 300% 100%; mask-size: 300% 100%;
  -webkit-mask-position: 0 0; mask-position: 0 0;
}
.nw-tagline { margin-top: 22px; font-size: clamp(1.02rem, 2vw, 1.3rem); font-weight: 500; color: var(--nw-muted); }
.nw-tag { display: inline-block; }
.nw-tag-2 { color: #e0e7ff; }
.nw-cta-wrap { position: relative; display: inline-block; margin-top: 42px; }
.nw-cta {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 14px;
  height: 62px; padding: 0 9px 0 30px; border-radius: 999px;
  color: #fff; font-family: var(--nw-display); font-size: 1.06rem; font-weight: 700; letter-spacing: .005em;
  background: var(--nw-grad); background-size: 180% 100%; background-position: 0% 50%;
  box-shadow: 0 18px 44px -14px rgba(139, 92, 246, .85), inset 0 0 0 1px rgba(255, 255, 255, .14), inset 0 1px 0 rgba(255, 255, 255, .3);
  overflow: hidden;
  transform: translate3d(var(--tx, 0), var(--ty, 0), 0);
  transition: transform .45s var(--nw-out), box-shadow .35s var(--nw-out), background-position .7s var(--nw-out);
}
.nw-cta:hover { background-position: 100% 50%; box-shadow: 0 26px 60px -16px rgba(236, 72, 153, .7), inset 0 0 0 1px rgba(255, 255, 255, .2), inset 0 1px 0 rgba(255, 255, 255, .34); }
.nw-cta:active { transform: translate3d(var(--tx, 0), var(--ty, 0), 0) scale(.97); transition-duration: .12s; }
.nw-cta-text { position: relative; white-space: nowrap; }
.nw-cta-icon {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, .18); transition: transform .4s var(--nw-out), background-color .3s;
}
.nw-cta-icon .nw-i { width: 19px; height: 19px; stroke-width: 2.1; }
.nw-cta:hover .nw-cta-icon { transform: translateX(3px); background: rgba(255, 255, 255, .28); }
.nw-cta-shine { position: absolute; top: 0; bottom: 0; left: 0; width: 34%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .42), transparent); animation: nw-cta-shine 4.6s ease-in-out 3.2s infinite; transform: skewX(-20deg) translateX(-160%); }
.nw-cta-glow { position: absolute; top: -12px; left: -12px; right: -12px; bottom: -12px; border-radius: 999px; background: linear-gradient(120deg, rgba(99, 102, 241, .65), rgba(236, 72, 153, .55)); filter: blur(22px); opacity: .45; animation: nw-glow 3.6s ease-in-out infinite alternate; }
.nw-cta-ping { position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: 999px; border: 1px solid rgba(196, 181, 253, .7); opacity: 0; animation: nw-ping-pill 3s ease-out 3.4s infinite; }
.nw-note { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 20px; font-size: .86rem; color: var(--nw-faint); }

/* intro entrance */
.nw.is-ready .nw-title-1 { animation: nw-rise .95s var(--nw-out) .95s both; }
.nw.is-ready .nw-title-2 { animation: nw-sweep 1.6s var(--nw-out) 1.1s both, nw-shimmer 7s ease-in-out 3.2s infinite alternate; }
.nw.is-ready .nw-tag-1 { animation: nw-rise .95s var(--nw-out) 1.55s both; }
.nw.is-ready .nw-tag-2 { animation: nw-rise .95s var(--nw-out) 1.72s both; }
.nw.is-ready .nw-cta-wrap { animation: nw-rise-scale 1s var(--nw-out) 1.95s both; }
.nw.is-ready .nw-note { animation: nw-rise .9s var(--nw-out) 2.2s both; }
.nw.is-ready .nw-controls { animation: nw-drop .8s var(--nw-out) .5s both; }

/* ── Form card ────────────────────────────────────────────────────────── */
.nw-card {
  position: relative; width: 100%; max-width: 448px; margin: 0 auto;
  padding: 30px 30px 24px; border-radius: 28px; text-align: left;
  background: linear-gradient(180deg, rgba(23, 29, 68, .8) 0%, rgba(11, 15, 38, .84) 100%);
  -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.nw-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, rgba(165, 180, 252, .55), rgba(139, 92, 246, .12) 42%, rgba(236, 72, 153, .42));
  -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;
}
.nw-card::after { content: ""; position: absolute; top: 0; left: 18%; right: 18%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); pointer-events: none; }
.nw-card.is-morphing { visibility: hidden; }
.nw-card.is-in .nw-stg { animation: nw-rise .7s var(--nw-out) both; }
.nw-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.nw-mini { width: 38px; height: 38px; filter: drop-shadow(0 8px 18px rgba(139, 92, 246, .5)); }
.nw-mini svg { width: 100%; height: 100%; }
.nw-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px 0 10px; border-radius: 999px;
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #ddd6fe;
  background: rgba(139, 92, 246, .14); border: 1px solid rgba(167, 139, 250, .28);
}
.nw-pill .nw-i { width: 14px; height: 14px; }
.nw-card-title { font-family: var(--nw-display); font-size: clamp(1.5rem, 4.4vw, 1.9rem); font-weight: 800; line-height: 1.15; letter-spacing: -.025em; color: #fff; }
.nw-card-lead { margin-top: 8px; font-size: .96rem; color: var(--nw-muted); }
.nw-fields { margin-top: 22px; }

.nw-field { position: relative; margin-top: 14px; }
.nw-field:first-child { margin-top: 0; }
.nw-field input {
  display: block; width: 100%; height: 60px; margin: 0; padding: 22px 44px 7px 48px;
  border-radius: 16px; border: 1px solid rgba(255, 255, 255, .13); background: rgba(255, 255, 255, .045);
  color: #fff; font: 500 16px/1.2 var(--nw-font); letter-spacing: .005em;
  outline: none; box-shadow: none; -webkit-appearance: none; appearance: none;
  transition: border-color .2s, background-color .2s, box-shadow .25s;
}
.nw-field input:hover { border-color: rgba(255, 255, 255, .22); }
.nw-field input:focus { border-color: rgba(167, 139, 250, .95); background: rgba(255, 255, 255, .07); box-shadow: 0 0 0 4px rgba(139, 92, 246, .24); }
.nw-field input:-webkit-autofill, .nw-field input:-webkit-autofill:hover {
  -webkit-text-fill-color: #fff; caret-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px #161c46 inset; transition: background-color 9999s ease-out 0s;
}
.nw-field input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px #1b2152 inset, 0 0 0 4px rgba(139, 92, 246, .24); }
.nw-field label {
  position: absolute; left: 48px; top: 20px; margin: 0;
  font-size: 1rem; font-weight: 500; line-height: 1.2; color: var(--nw-faint);
  pointer-events: none; transform-origin: 0 0;
  transition: transform .25s var(--nw-out), color .2s;
}
.nw-field input:focus + label, .nw-field input:not(:placeholder-shown) + label, .nw-field input:-webkit-autofill + label { transform: translateY(-11px) scale(.76); color: var(--nw-violet); }
.nw-field input:not(:focus):not(:placeholder-shown) + label { color: var(--nw-faint); }
.nw-field-icon { position: absolute; left: 16px; top: 20px; color: var(--nw-faint); pointer-events: none; transition: color .2s; }
.nw-field input:focus ~ .nw-field-icon { color: var(--nw-violet); }
.nw-field-ok { position: absolute; right: 16px; top: 20px; color: var(--nw-ok); opacity: 0; transform: scale(.5); pointer-events: none; transition: opacity .25s, transform .4s var(--nw-spring); }
.nw-field-ok .nw-i { stroke-width: 2.4; }
.nw-field.is-valid .nw-field-ok { opacity: 1; transform: none; }
.nw-field.is-invalid input { border-color: rgba(248, 113, 113, .9); box-shadow: 0 0 0 4px rgba(248, 113, 113, .15); }
.nw-field.is-invalid label, .nw-field.is-invalid .nw-field-icon { color: var(--nw-danger); }
.nw-err {
  display: flex; gap: 6px; align-items: flex-start; max-height: 0; overflow: hidden; opacity: 0;
  padding: 0 4px; font-size: .84rem; line-height: 1.4; color: var(--nw-danger);
  transition: max-height .3s var(--nw-out), opacity .2s, margin .3s var(--nw-out);
}
.nw-err .nw-i { width: 15px; height: 15px; margin-top: 1px; }
.nw-field.is-invalid .nw-err { max-height: 64px; opacity: 1; margin-top: 8px; }
.nw-hint { max-height: 0; overflow: hidden; opacity: 0; padding: 0 4px; font-size: .86rem; color: var(--nw-muted); transition: max-height .3s var(--nw-out), opacity .2s, margin .3s var(--nw-out); }
.nw-hint.is-on { max-height: 64px; opacity: 1; margin-top: 8px; }
/* KingsChat handle: small “(optional)” tag, dropped on narrow phones where it would wrap */
.nw-opt { margin-left: 1px; font-size: .8em; font-weight: 400; letter-spacing: .01em; opacity: .7; }
@media (max-width: 359px) { .nw-opt { display: none; } }
.nw-suggest { color: var(--nw-violet); text-decoration: underline; text-underline-offset: 3px; border-radius: 4px; }
.nw-suggest b { font-weight: 700; color: #fff; }
.nw-hp { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.nw-submit {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 56px; margin-top: 20px; border-radius: 16px; overflow: hidden;
  color: #fff; font-family: var(--nw-display); font-size: 1rem; font-weight: 700;
  background: var(--nw-grad); background-size: 180% 100%; background-position: 0% 50%;
  box-shadow: 0 16px 36px -14px rgba(139, 92, 246, .85), inset 0 1px 0 rgba(255, 255, 255, .26);
  transition: transform .25s var(--nw-out), box-shadow .25s, background-position .6s var(--nw-out);
}
.nw-submit:hover { background-position: 100% 50%; transform: translateY(-1px); }
.nw-submit:active { transform: scale(.985); }
.nw-submit .nw-i { width: 18px; height: 18px; stroke-width: 2.1; transition: transform .3s var(--nw-out), opacity .2s; }
.nw-submit:hover .nw-i { transform: translateX(3px); }
.nw-submit-text { transition: opacity .2s; }
.nw-spinner { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .3); border-top-color: #fff; opacity: 0; transition: opacity .2s; animation: nw-spin .8s linear infinite; }
.nw-submit[aria-busy="true"] { cursor: progress; }
.nw-submit[aria-busy="true"] .nw-submit-text, .nw-submit[aria-busy="true"] .nw-i { opacity: 0; }
.nw-submit[aria-busy="true"] .nw-spinner { opacity: 1; }

.nw-privacy { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .8rem; line-height: 1.55; color: var(--nw-faint); }
.nw-privacy-sum { display: flex; gap: 10px; align-items: flex-start; }
.nw-privacy-sum .nw-i { width: 16px; height: 16px; margin-top: 2px; color: #a5b4fc; }
.nw-privacy-toggle { display: inline-flex; align-items: center; gap: 4px; margin: 8px 0 0 26px; border-radius: 6px; font-size: .8rem; font-weight: 600; color: var(--nw-violet); }
.nw-privacy-toggle:hover { color: #fff; }
.nw-privacy-toggle .nw-i { width: 14px; height: 14px; transition: transform .3s var(--nw-out); }
.nw-privacy-toggle[aria-expanded="true"] .nw-i { transform: rotate(180deg); }
.nw-privacy-more { margin-top: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .07); }
.nw-privacy-more[hidden] { display: none; }
.nw-privacy-more li { position: relative; margin-top: 7px; padding-left: 14px; }
.nw-privacy-more li:first-child { margin-top: 0; }
.nw-privacy-more li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: linear-gradient(135deg, #818cf8, #f472b6); }
.nw-privacy-more b { font-weight: 600; color: var(--nw-ink); }
.nw-privacy a, .nw-linkbtn { color: var(--nw-violet); text-decoration: underline; text-underline-offset: 2px; border-radius: 4px; }
.nw-privacy a:hover, .nw-linkbtn:hover { color: #fff; }
.nw-privacy-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }

/* ── Greeting ─────────────────────────────────────────────────────────── */
.nw-gl-logo { position: relative; width: 96px; height: 96px; margin: 0 auto 34px; }
.nw-gl-logo svg { position: relative; width: 100%; height: 100%; filter: drop-shadow(0 18px 34px rgba(139, 92, 246, .55)); }
.nw-ping { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 28%; border: 1.5px solid rgba(196, 181, 253, .75); opacity: 0; }
.nw-greet { font-family: var(--nw-display); color: #fff; }
.nw-greet-1 {
  display: block; font-size: clamp(2rem, min(6.8vw, 9.5vh), 4.7rem); font-weight: 800; line-height: 1.06; letter-spacing: -.035em;
  -webkit-mask-image: linear-gradient(100deg, #000 40%, transparent 60%); mask-image: linear-gradient(100deg, #000 40%, transparent 60%);
  -webkit-mask-size: 300% 100%; mask-size: 300% 100%; -webkit-mask-position: 0 0; mask-position: 0 0;
}
.nw-name {
  background: var(--nw-text-grad); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  padding-right: .02em;
}
.nw-greet-2 { display: block; margin-top: 16px; font-family: var(--nw-font); font-size: clamp(1.05rem, 2.3vw, 1.38rem); font-weight: 500; letter-spacing: 0; line-height: 1.4; color: var(--nw-muted); }
.nw-progress { width: 180px; height: 3px; margin: 38px auto 0; border-radius: 3px; overflow: hidden; background: rgba(255, 255, 255, .1); }
.nw-progress span { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899); transform-origin: 0 50%; }
.nw-greet-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 22px; }
.nw-enter {
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px 0 22px; border-radius: 999px;
  font-size: .95rem; font-weight: 600; color: #fff;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  transition: background-color .2s, border-color .2s;
}
.nw-enter:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .24); }
.nw-enter .nw-i { width: 17px; height: 17px; stroke-width: 2.1; transition: transform .3s var(--nw-out); }
.nw-enter:hover .nw-i { transform: translateX(3px); }
.nw-kbd-hint { font-size: .82rem; color: var(--nw-faint); }

.nw-panel-greet.is-in .nw-gl-logo { animation: nw-pop 1s var(--nw-spring) both; }
.nw-panel-greet.is-in .nw-ping { animation: nw-ping 2.4s cubic-bezier(.2, .6, .3, 1) .4s infinite; }
.nw-panel-greet.is-in .nw-ping-2 { animation-delay: 1.2s; }
.nw-panel-greet.is-in .nw-greet-1 { animation: nw-sweep 1.4s var(--nw-out) .15s both; }
.nw-panel-greet.is-in .nw-name { animation: nw-shimmer 4s ease-in-out 1s infinite alternate; }
.nw-panel-greet.is-in .nw-greet-2 { animation: nw-rise .9s var(--nw-out) .6s both; }
.nw-panel-greet.is-in .nw-progress { animation: nw-fade .6s ease .8s both; }
.nw-panel-greet.is-in .nw-progress span { animation: nw-progress var(--nw-auto) linear .5s both; }
.nw-panel-greet.is-in .nw-greet-actions { animation: nw-rise .9s var(--nw-out) .95s both; }

/* ── Transitions ──────────────────────────────────────────────────────── */
.nw-morph { position: fixed; z-index: 3; border-radius: 999px; overflow: hidden; pointer-events: none; background: var(--nw-grad); box-shadow: 0 30px 70px -26px rgba(139, 92, 246, .7); }
.nw-morph i { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; background: linear-gradient(180deg, rgba(23, 29, 68, .98), rgba(11, 15, 38, .98)); }
.nw-flash { position: fixed; z-index: 4; width: 70vmax; height: 70vmax; margin: -35vmax 0 0 -35vmax; border-radius: 50%; opacity: 0; pointer-events: none; background: radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(196, 181, 253, .55) 32%, rgba(139, 92, 246, 0) 70%); }
.nw.is-exiting .nw-controls { animation: nw-out .3s ease both; }

/* ── Welcome-back chip (returning visitors) ───────────────────────────── */
.nw-wb {
  position: fixed; z-index: 9989; left: 50%; bottom: max(20px, env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px);
  padding: 7px 7px 7px 9px; border-radius: 999px; transform: translateX(-50%);
  color: #eef0ff; font: 500 .92rem/1.2 var(--font-body, "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
  background: rgba(13, 19, 49, .86); border: 1px solid rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 18px 44px -16px rgba(0, 0, 0, .65);
}
.nw-wb svg { display: block; flex: none; }
.nw-wb-mark { width: 30px; height: 30px; }
.nw-wb b { font-weight: 700; color: #fff; }
.nw-wb-x { display: grid; place-items: center; width: 30px; height: 30px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: rgba(226, 230, 255, .8); cursor: pointer; }
.nw-wb-x:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.nw-wb-x:focus-visible { outline: 2px solid #ddd6fe; outline-offset: 2px; }
.nw-wb-x svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ── Ambient motion pause (button + reduced motion) ───────────────────── */
.nw.is-paused .nw-amb, .nw.is-paused .nw-floor-lines, .nw.is-paused .nw-blob,
.nw.is-paused .nw-halo i, .nw.is-paused .nw-ping { animation-play-state: paused !important; }
.nw.is-paused.is-ready .nw-title-2 { animation-play-state: running, paused; }
.nw.is-paused .nw-panel-greet.is-in .nw-name { animation-play-state: paused; }

/* ── Reduced motion: fades only ───────────────────────────────────────── */
.nw.is-reduced .nw-par { transition: none; transform: none; }
.nw.is-reduced .nw-cta { transition-property: box-shadow, background-position; transform: none; }
.nw.is-reduced.is-ready .nw-halo, .nw.is-reduced.is-ready .nw-orbits,
.nw.is-reduced.is-ready .nw-title-1, .nw.is-reduced.is-ready .nw-tag-1, .nw.is-reduced.is-ready .nw-tag-2,
.nw.is-reduced.is-ready .nw-cta-wrap, .nw.is-reduced.is-ready .nw-note, .nw.is-reduced.is-ready .nw-controls,
.nw.is-reduced .nw-card.is-in .nw-stg, .nw.is-reduced .nw-panel-greet.is-in .nw-gl-logo,
.nw.is-reduced .nw-panel-greet.is-in .nw-greet-1, .nw.is-reduced .nw-panel-greet.is-in .nw-greet-2,
.nw.is-reduced .nw-panel-greet.is-in .nw-greet-actions { animation: nw-fade .5s ease both !important; }
.nw.is-reduced.is-ready .nw-logo { animation: nw-fade .5s ease both; }
.nw.is-reduced.is-ready .nw-title-2 { animation: nw-fade .5s ease .1s both !important; -webkit-mask-image: none; mask-image: none; }
.nw.is-reduced.is-ready .nw-mark-outline, .nw.is-reduced.is-ready .nw-mark-fill,
.nw.is-reduced.is-ready .nw-mark-n, .nw.is-reduced.is-ready .nw-mark-shine,
.nw.is-reduced .nw-cta-shine, .nw.is-reduced .nw-cta-ping, .nw.is-reduced .nw-panel-greet.is-in .nw-ping { animation: none !important; }
.nw.is-reduced .nw-panel-greet.is-in .nw-greet-1 { -webkit-mask-image: none; mask-image: none; }
.nw.is-reduced .nw-field label, .nw.is-reduced .nw-err, .nw.is-reduced .nw-hint, .nw.is-reduced .nw-vol { transition-duration: .01s; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 560px) {
  .nw-stage { padding: calc(78px + env(safe-area-inset-top)) 16px calc(28px + env(safe-area-inset-bottom)); }
  .nw-controls { top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); }
  .nw-ctl-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nw-logo { width: 108px; height: 108px; margin-bottom: 30px; }
  .nw-title-1 { margin-bottom: 8px; }
  .nw-tagline { margin-top: 18px; }
  .nw-tag { display: block; }
  .nw-cta-wrap { margin-top: 34px; }
  .nw-cta { height: 58px; padding-left: 24px; gap: 12px; font-size: 1rem; }
  .nw-cta-icon { width: 42px; height: 42px; }
  .nw-card { padding: 24px 20px 20px; border-radius: 24px; }
  .nw-card-head { margin-bottom: 16px; }
  .nw-sound.is-on .nw-vol { width: 60px; margin: 0 8px 0 2px; }
}
@media (max-height: 660px) {
  .nw-logo { width: 92px; height: 92px; margin-bottom: 22px; }
  .nw-cta-wrap { margin-top: 28px; }
  .nw-gl-logo { width: 76px; height: 76px; margin-bottom: 24px; }
}
@media (max-height: 480px) {
  .nw-stage { padding-top: calc(66px + env(safe-area-inset-top)); padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .nw-logo { width: 64px; height: 64px; margin-bottom: 12px; }
  .nw-title-1 { margin-bottom: 4px; font-size: 1rem; }
  .nw-tagline { margin-top: 10px; font-size: .95rem; }
  .nw-tag { display: inline-block; }
  .nw-cta-wrap { margin-top: 18px; }
  .nw-cta { height: 54px; }
  .nw-note { margin-top: 10px; }
  .nw-gl-logo { width: 60px; height: 60px; margin-bottom: 16px; }
  .nw-progress { margin-top: 22px; }
  .nw-greet-actions { margin-top: 14px; }
}
@media (hover: none), (pointer: coarse) {
  .nw-ctl, .nw-skip { height: 42px; min-width: 42px; }
  .nw-kbd-hint { display: none !important; }
}
@media (forced-colors: active) {
  .nw-bg { display: none; }
  .nw-title-2, .nw-name { -webkit-text-fill-color: CanvasText; color: CanvasText; background: none; }
  .nw-cta, .nw-submit, .nw-enter, .nw-skip { border: 2px solid ButtonText; }
}
@media print { .nw, .nw-wb { display: none !important; } html.nw-pending body > * { visibility: visible !important; } }

/* ── Keyframes ────────────────────────────────────────────────────────── */
@keyframes nw-fade { from { opacity: 0; } }
@keyframes nw-out { to { opacity: 0; } }
@keyframes nw-rise { from { opacity: 0; transform: translateY(16px); filter: blur(6px); } }
@keyframes nw-rise-scale { from { opacity: 0; transform: translateY(18px) scale(.94); filter: blur(6px); } }
@keyframes nw-drop { from { opacity: 0; transform: translateY(-10px); } }
@keyframes nw-sweep {
  from { -webkit-mask-position: 100% 0; mask-position: 100% 0; filter: blur(14px); transform: translateY(12px); }
  to { -webkit-mask-position: 0 0; mask-position: 0 0; filter: blur(0); transform: none; }
}
@keyframes nw-shimmer { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes nw-outline { 0% { stroke-dashoffset: 1.05; opacity: 1; } 55% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes nw-draw { from { stroke-dashoffset: 1.05; } }
@keyframes nw-pop { from { opacity: 0; transform: scale(.7); } }
@keyframes nw-shine { from { transform: translateX(-34px); } }
@keyframes nw-halo-in { from { opacity: 0; transform: scale(.5); } }
@keyframes nw-breathe { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.08); opacity: .72; } }
@keyframes nw-spin { to { transform: rotate(360deg); } }
@keyframes nw-drift1 { to { transform: translate3d(12vmax, 8vmax, 0) scale(1.12); } }
@keyframes nw-drift2 { to { transform: translate3d(-10vmax, -9vmax, 0) scale(1.18); } }
@keyframes nw-drift3 { to { transform: translate3d(-14vmax, 6vmax, 0) scale(.9); } }
@keyframes nw-floor { to { transform: translate3d(0, 80px, 0); } }
@keyframes nw-cta-shine { 0%, 62% { transform: skewX(-20deg) translateX(-160%); } 100% { transform: skewX(-20deg) translateX(420%); } }
@keyframes nw-glow { from { opacity: .32; transform: scale(.96); } to { opacity: .58; transform: scale(1.04); } }
@keyframes nw-ping-pill { 0% { opacity: .7; transform: scale(1); } 75%, 100% { opacity: 0; transform: scale(1.12, 1.45); } }
@keyframes nw-ping { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(2.6); } }
@keyframes nw-progress { from { transform: scaleX(0); } }
