/* ==========================================================
   MAGIC MIND – Main Stylesheet (black + glass theme)
   1. Tokens  2. Base  3. Buttons  4. Navbar  5. Hero
   6. Headings  7. Glass skin  8. Dashboard bits  9. Cards
   ========================================================== */


/* ---------- 1. TOKENS ---------- */
:root {
  --bg: #0A0A0B;
  --text: #F2EFE8;
  --muted: #8F8C85;
  --line: rgba(255, 255, 255, .12);
  --glass: rgba(255, 255, 255, .05);
  --accent: #A78BFA;
  --font-head: "Inter Tight", "Sora", sans-serif; /* heading + number font */
}


/* ---------- 2. BASE ---------- */
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", system-ui, sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

/* Fixed 3D canvas (the agent network) sits behind everything */
#scene3d {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

main, header { position: relative; z-index: 1; }

a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.nx-section { padding: 110px 0; scroll-margin-top: 60px; }
.nx-muted { color: var(--muted); font-size: 1.05rem; line-height: 1.7; }


/* ---------- 3. BUTTONS ---------- */
.nx-btn {
  display: inline-block;
  padding: 11px 26px;
  border-radius: 99px;
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .25s, background .25s;
}
.nx-btn:hover { transform: translateY(-2px); }

.nx-btn-outline { border: 1px solid rgba(255, 255, 255, .45); color: #fff; background: rgba(0, 0, 0, .4); }
.nx-btn-outline:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.nx-btn-solid { background: #fff; color: #000; border: 1px solid #fff; }
.nx-btn-solid:hover { background: #e6e6e6; color: #000; }


/* ---------- 4. NAVBAR (floating glass pill) ---------- */
.nx-header { position: sticky; top: 0; z-index: 10; padding: 16px 0 0; }

.nx-pill-nav {
  padding: 8px 10px 8px 22px;
  border-radius: 99px;
  background: rgba(14, 14, 14, .45);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 18px 50px -18px #000;
  transition: background .3s;
}
.nx-header.is-scrolled .nx-pill-nav { background: rgba(10, 10, 10, .7); }

.nx-brand { text-decoration: none; font-family: var(--font-head); display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 500; letter-spacing: .22em; font-size: 1rem; }
.nx-brand:hover { color: #fff; }

/* Links with a sliding highlight behind the hovered item */
.nx-links { position: relative; gap: 2px; }
.nx-links .nav-link { position: relative; z-index: 1; color: #b9b9b3; font-size: .9rem; padding: 8px 16px; border-radius: 99px; transition: color .2s; }
.nx-links .nav-link:hover { color: #fff; }
.nx-slider { position: absolute; top: 0; left: 0; height: 100%; width: 0; opacity: 0; border-radius: 99px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .12); }

.nx-signin { color: #cfcfca; text-decoration: none; font-size: .9rem; padding: 8px 16px; }
.nx-signin:hover { color: #fff; }

.nx-btn-sm { padding: 9px 22px; font-size: .78rem; }

.nx-toggler { filter: invert(1); border: 0; }

/* Mobile: open menu becomes a tidy stacked list */
@media (max-width: 991px) {
  .nx-pill-nav { border-radius: 26px; padding: 10px 18px; }
  .nx-links { padding: 14px 0; }
  .nx-slider { display: none; }
}


/* ---------- 5. HERO ---------- */
.nx-hero { min-height: calc(100vh + 80px); display: flex; align-items: center; padding: 140px 0 130px; }

.nx-title {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -.04em;
  margin-bottom: 26px;
}

.nx-lead { color: #cfcfca; font-size: 1.1rem; line-height: 1.7; max-width: 560px; margin: 0 auto 34px; }

.nx-planned { margin-top: 70px; color: var(--muted); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }

.nx-marquee { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; color: #bdbdb8; font-size: 1.05rem; }


/* ---------- 6. HEADINGS ---------- */
.nx-h2 { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 300; line-height: 1.12; letter-spacing: -.03em; }

/* Second line of a heading is dimmer, like the reference */
.nx-dim { color: #75756f; }


/* ---------- 7. GLASS SKIN ---------- */
.nx-glass {
  background: linear-gradient(145deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02));
  border: 1px solid var(--line);
  border-radius: 22px;
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  /* inner top highlight gives the "glass edge" look */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 30px 80px -30px rgba(0, 0, 0, .9);
  overflow: hidden;
}


/* ---------- 8. DASHBOARD PANEL ---------- */
.nx-panel { border-radius: 26px; }

/* Top bar */
.nx-panel-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 26px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .025); }
.nx-panel-top strong { font-weight: 400; font-size: .95rem; }

.nx-live { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 99px; font-family: "Geist Mono", monospace; font-size: .7rem; color: #86efac; background: rgba(74, 222, 128, .1); border: 1px solid rgba(74, 222, 128, .25); }
.nx-live i { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; animation: blink 1.8s infinite; }
@keyframes blink { 50% { opacity: .25; } }

.nx-tabs { display: flex; gap: 4px; padding: 3px; border-radius: 99px; background: rgba(255, 255, 255, .06); }
.nx-tabs button { border: 0; background: transparent; color: var(--muted); font-size: .78rem; padding: 4px 14px; border-radius: 99px; }
.nx-tabs button.active { background: rgba(255, 255, 255, .14); color: #fff; }

/* Left list */
.nx-glass-side { padding: 26px; border-right: 1px solid var(--line); }
.nx-label { font-family: "Geist Mono", monospace; font-size: .72rem; color: var(--muted); letter-spacing: .06em; margin-bottom: 10px; }

.nx-agents { list-style: none; padding: 0; margin: 0; }
.nx-agents li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 0 -14px 4px; border-radius: 12px; transition: background .2s; }
.nx-agents li:hover { background: rgba(255, 255, 255, .06); }
.nx-agents small { display: block; color: var(--muted); font-size: .75rem; margin-top: 2px; }

.nx-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.nx-dot.ok { background: #4ade80; box-shadow: 0 0 10px rgba(74, 222, 128, .6); }
.nx-dot.idle { background: #77776f; }
.nx-dot.fail { background: #f87171; box-shadow: 0 0 10px rgba(248, 113, 113, .5); }

/* Right side */
.nx-panel-main { padding: 26px 30px 20px; }

.nx-kpi { padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .07); }
.nx-num { font-family: var(--font-head); font-size: 2.3rem; font-weight: 200; margin: 0 0 4px; line-height: 1.1; }
.nx-delta { font-family: "Geist Mono", monospace; font-size: .72rem; }
.nx-delta.up { color: #4ade80; }
.nx-delta.down { color: #f87171; }

/* Chart with faint horizontal grid lines */
.nx-chart { height: 150px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to top, transparent 0, transparent 37px, rgba(255, 255, 255, .06) 37px, rgba(255, 255, 255, .06) 38px); }
.nx-bars { display: flex; align-items: flex-end; gap: 10px; height: 100%; }
.nx-bars i { position: relative; flex: 1; height: 10%; border-radius: 7px 7px 0 0; background: linear-gradient(to top, rgba(127, 168, 232, .05), rgba(167, 139, 250, .6) 60%, rgba(91, 198, 216, .95)); transition: filter .2s; }
.nx-bars i:hover { filter: brightness(1.4); }
.nx-bars i:hover::after { content: attr(data-val); position: absolute; bottom: 100%; left: 50%; transform: translate(-50%, -6px); font-family: "Geist Mono", monospace; font-size: .68rem; padding: 3px 8px; border-radius: 6px; background: #fff; color: #000; }
.nx-note { margin: 12px 0 0; font-size: .72rem; color: #5f5f5a; }


/* ---------- 9. FEATURE CARDS (clear glass: background shows through) ---------- */
/* Lighter blur + very low tint, so the 3D vortex stays visible inside the card */
.nx-clear {
  background: linear-gradient(145deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .01) 60%);
  backdrop-filter: blur(5px) brightness(1.15);
  -webkit-backdrop-filter: blur(5px) brightness(1.15);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -20px 40px -30px rgba(255, 255, 255, .15), 0 20px 50px -25px #000;
  position: relative;
  overflow: visible; /* lets the custom dropdown menu hang outside the card */
}

/* Soft light that follows the mouse (position set in main.js) */
.nx-clear::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .16), transparent 60%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.nx-clear:hover::before { opacity: 1; }

.nx-card { padding: 28px; height: 100%; transition: transform .3s, border-color .3s; }
.nx-card:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, .35); }
.nx-card h3 { font-family: var(--font-head); font-size: 1.3rem; font-weight: 400; margin: 60px 0 10px; }
.nx-card p:last-child { color: #a5a5a0; margin: 0; }


/* ---------- 10. AGENT DIRECTORY ---------- */
.nx-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 18px 24px; border-bottom: 1px solid var(--line); }

.nx-input { width: 100%; padding: 11px 16px; border-radius: 12px; color: #fff; font-family: inherit; font-size: .92rem; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); transition: border-color .2s; }
.nx-input:focus { outline: none; border-color: var(--accent); }
.nx-input option { background: #111; }
.nx-toolbar .nx-input { max-width: 260px; }

.nx-chipbar { display: flex; flex-wrap: wrap; gap: 6px; }
.nx-chipbar button { border: 1px solid transparent; background: rgba(255, 255, 255, .05); color: var(--muted); padding: 6px 16px; border-radius: 99px; font-size: .82rem; transition: all .2s; }
.nx-chipbar button:hover { color: #fff; }
.nx-chipbar button.active { background: #fff; color: #000; }

.nx-rows { list-style: none; margin: 0; padding: 8px 12px 12px; }
.nx-rows li { display: grid; grid-template-columns: 2fr 1.2fr 1fr 1fr; align-items: center; gap: 12px; padding: 15px 14px; border-radius: 14px; transition: background .2s; }
.nx-rows li:hover { background: rgba(255, 255, 255, .06); }
.nx-rows b { font-weight: 400; }
.nx-rows span, .nx-rows small { color: var(--muted); font-size: .88rem; }
.nx-rows small { text-align: right; }

.st { font-style: normal; font-size: .75rem; font-family: "Geist Mono", monospace; width: fit-content; padding: 3px 11px; border-radius: 99px; border: 1px solid; }
.st.active { color: #86efac; background: rgba(74, 222, 128, .08); border-color: rgba(74, 222, 128, .25); }
.st.idle { color: #a3a39c; background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .15); }
.st.paused { color: #fcd34d; background: rgba(252, 211, 77, .08); border-color: rgba(252, 211, 77, .25); }
.st.failed { color: #fca5a5; background: rgba(248, 113, 113, .08); border-color: rgba(248, 113, 113, .25); }

.nx-empty { text-align: center; color: var(--muted); padding: 30px; margin: 0; }

@media (max-width: 640px) {
  .nx-rows li { grid-template-columns: 1fr auto; }
  .nx-rows span, .nx-rows small { display: none; }
}


/* ---------- 11. AGENT BUILDER ---------- */
.nx-form { padding: 28px; display: grid; gap: 18px; height: 100%; }
.nx-form label, .nx-form legend { display: grid; gap: 7px; font-size: .82rem; color: #b5b5af; margin: 0; }
.nx-form fieldset { display: grid; gap: 9px; border: 0; padding: 0; margin: 0; }
.nx-check { display: flex !important; align-items: center; gap: 10px; color: #e5e5e0 !important; font-size: .92rem !important; }
.nx-form input[type=checkbox], .nx-form input[type=range] { accent-color: #A78BFA; }

.nx-code { padding: 28px; height: 100%; }
.nx-code pre { margin: 0; color: #F3D9CE; font-family: "Geist Mono", monospace; font-size: .85rem; line-height: 1.75; white-space: pre-wrap; word-break: break-word; }


/* ---------- 12. ORCHESTRATION GRAPH ---------- */
.nx-graph-wrap { padding: 24px; overflow-x: auto; }
.nx-graph { display: block; min-width: 680px; width: 100%; height: auto; }

.nx-wires path { fill: none; stroke: rgba(255, 255, 255, .35); stroke-width: 1.4; stroke-dasharray: 5 7; animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -12; } }

.nx-gn rect { fill: rgba(255, 255, 255, .05); stroke: rgba(255, 255, 255, .25); stroke-width: 1.2; transition: all .35s; }
.nx-gn text { fill: #e8e8e4; font-family: "Geist", sans-serif; font-size: 15px; text-anchor: middle; }
.nx-gn.on rect { fill: rgba(167, 139, 250, .2); stroke: #A78BFA; filter: drop-shadow(0 0 12px rgba(167, 139, 250, .5)); }


/* ---------- 13. CUSTOM GLASS DROPDOWN (replaces the ugly native menu) ---------- */
.nx-native-hidden { display: none; }
.nx-select { position: relative; }

.nx-select-btn { width: 100%; text-align: left; position: relative; padding: 11px 40px 11px 16px; border-radius: 12px; color: #fff; font-family: inherit; font-size: .92rem; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); transition: border-color .2s; }
.nx-select-btn:hover, .nx-select.open .nx-select-btn { border-color: rgba(255, 255, 255, .35); }
.nx-select-btn::after { content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border-right: 1.5px solid #aaa; border-bottom: 1.5px solid #aaa; transform: rotate(45deg); transition: transform .25s; }
.nx-select.open .nx-select-btn::after { transform: rotate(225deg); margin-top: -2px; }

.nx-select-menu { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 8px); display: none; list-style: none; margin: 0; padding: 6px; border-radius: 14px; background: rgba(18, 18, 18, .88); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 24px 50px -12px #000; }
.nx-select.open .nx-select-menu { display: block; }
.nx-select-menu li { padding: 10px 12px; border-radius: 9px; color: #cfcfca; font-size: .9rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.nx-select-menu li:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nx-select-menu li.selected { color: #fff; }
.nx-select-menu li.selected::after { content: "✓"; color: var(--accent); font-size: .85rem; }


/* ---------- 14. SCHEDULING ---------- */
.nx-field { display: grid; gap: 8px; font-size: .82rem; color: #b5b5af; }
.nx-next { font-family: var(--font-head); font-size: 1.35rem; font-weight: 300; margin: 0 0 6px; line-height: 1.3; }
.nx-rule { font-family: "Geist Mono", monospace; font-size: .75rem; color: var(--muted); margin: 0; }

.nx-days { display: grid; grid-template-columns: repeat(7, 1fr); margin-left: 0; font-family: "Geist Mono", monospace; font-size: .7rem; color: var(--muted); padding-bottom: 10px; }
.nx-track { margin-bottom: 22px; }
.nx-track p { margin: 0 0 8px; font-size: .95rem; }
.nx-track small { color: var(--muted); margin-left: 8px; font-family: "Geist Mono", monospace; font-size: .7rem; }
.nx-lane { position: relative; height: 12px; border-radius: 99px; background: rgba(255, 255, 255, .06); }
.nx-lbar { position: absolute; top: 0; bottom: 0; left: var(--s); width: var(--w); border-radius: 99px; transform-origin: left; }
.nx-lbar.c1 { background: linear-gradient(90deg, #5BC6D8, #CDEFF5); }
.nx-lbar.c2 { background: linear-gradient(90deg, #A78BFA, #E4D9FF); }
.nx-lbar.c3 { background: linear-gradient(90deg, #F19C8E, #F9C27A); }


/* ---------- 15. WORKFLOW BUILDER ---------- */
.nx-canvas-scroll { overflow-x: auto; }
.nx-canvas { position: relative; min-width: 0; height: 360px; background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px); background-size: 24px 24px; }
.nx-canvas svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.nx-canvas svg path { fill: none; stroke: rgba(255, 255, 255, .4); stroke-width: 1.5; stroke-dasharray: 5 7; animation: flow 1.2s linear infinite; }

.nx-wnode { position: absolute; width: 150px; padding: 10px 14px; border-radius: 14px; cursor: grab; user-select: none; touch-action: none; background: rgba(24, 24, 24, .85); border: 1px solid rgba(255, 255, 255, .2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 12px 30px -12px #000; }
.nx-wnode.drag { cursor: grabbing; border-color: var(--accent); }
.nx-wnode small { display: block; font-family: "Geist Mono", monospace; font-size: .65rem; margin-bottom: 3px; }
.nx-wnode span { font-size: .9rem; }
.nx-wnode.trigger small { color: #fcd34d; }
.nx-wnode.agent small { color: #A78BFA; }
.nx-wnode.condition small { color: #C9D8F7; }
.nx-wnode.action small { color: #86efac; }


/* ---------- 16. TASKS ---------- */
.nx-tasks li { grid-template-columns: 2fr 1.2fr 1fr 1fr; }
.pr { font-style: normal; font-size: .78rem; }
.pr.high { color: #fca5a5; }
.pr.medium { color: #fcd34d; }
.pr.low { color: #a3a39c; }
.nx-tasks button.st { justify-self: end; background: transparent; cursor: pointer; }
.st.queued { color: #a3a39c; border-color: rgba(255, 255, 255, .2); }
.st.running { color: #A78BFA; border-color: rgba(167, 139, 250, .35); background: rgba(167, 139, 250, .08); }
.st.done { color: #86efac; border-color: rgba(74, 222, 128, .3); background: rgba(74, 222, 128, .08); }
@media (max-width: 640px) { .nx-tasks li { grid-template-columns: 1fr auto auto; } }


/* ---------- 17. DURABLE EXECUTION ---------- */
.nx-run { padding: 28px; height: 100%; }
.nx-steps { list-style: none; padding: 0; margin: 0 0 24px; }
.nx-steps li { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.nx-steps li:last-child { border-bottom: 0; }
.nx-steps i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #666; flex: none; transition: all .3s; }
.nx-steps b { font-weight: 400; flex: 1; }
.nx-steps small { font-family: "Geist Mono", monospace; font-size: .72rem; color: var(--muted); }
.nx-steps li.running i { border-color: #A78BFA; box-shadow: 0 0 12px rgba(167, 139, 250, .7); animation: blink 1s infinite; }
.nx-steps li.done i { background: #4ade80; border-color: #4ade80; }
.nx-steps li.failed i { background: #f87171; border-color: #f87171; }
.nx-steps li.failed small { color: #fca5a5; }
.nx-run button:disabled { opacity: .35; pointer-events: none; }


/* ---------- 18. MEMORY ---------- */
.nx-mem { list-style: none; margin: 0; padding: 8px 12px; min-height: 230px; }
.nx-mem li { display: flex; align-items: center; gap: 14px; padding: 13px 14px; border-radius: 14px; transition: background .2s; }
.nx-mem li:hover { background: rgba(255, 255, 255, .06); }
.nx-mem li span { flex: 1; font-size: .93rem; transition: opacity .25s; }
.nx-mem li.off span { opacity: .35; text-decoration: line-through; }
.nx-mem li button { border: 0; background: transparent; color: var(--muted); font-size: 1.2rem; line-height: 1; }
.nx-mem li button:hover { color: #fca5a5; }

/* Toggle switch built from a checkbox */
.nx-switch { appearance: none; -webkit-appearance: none; width: 34px; height: 20px; border-radius: 99px; background: rgba(255, 255, 255, .15); position: relative; cursor: pointer; transition: background .25s; flex: none; }
.nx-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .25s; }
.nx-switch:checked { background: #7FA8E8; }
.nx-switch:checked::after { transform: translateX(14px); }

.nx-meter { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.nx-meter i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #5BC6D8, #7FA8E8); }


/* ---------- 19. MONITORING ---------- */
.nx-feed { list-style: none; margin: 0; padding: 0; min-height: 300px; }
.nx-feed li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.nx-feed time { font-family: "Geist Mono", monospace; font-size: .72rem; color: var(--muted); width: 62px; flex: none; }
.nx-feed b { font-weight: 400; flex: 1; }
.nx-alert { padding: 12px 16px; margin-bottom: 14px; border-radius: 12px; font-size: .88rem; color: #fecaca; background: rgba(248, 113, 113, .1); border: 1px solid rgba(248, 113, 113, .3); }


/* ---------- 20. ANALYTICS ---------- */
.nx-linechart { display: block; width: 100%; height: auto; }
.nx-linechart text { fill: #77776f; font-family: "Geist Mono", monospace; font-size: 11px; }
.nx-linechart line { stroke: rgba(255, 255, 255, .07); }


/* ---------- 21. INTEGRATIONS ---------- */
.nx-int { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.nx-int li { padding: 20px; border-radius: 18px; background: linear-gradient(145deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .01)); border: 1px solid rgba(255, 255, 255, .13); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22); transition: transform .3s, border-color .3s; }
.nx-int li:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, .35); }
.nx-int b { display: block; font-family: var(--font-head); font-weight: 400; font-size: 1.05rem; margin-bottom: 4px; }
.nx-int small { color: var(--muted); font-size: .78rem; }
.nx-int em { display: inline-block; margin-top: 16px; font-style: normal; font-family: "Geist Mono", monospace; font-size: .68rem; color: #fcd34d; padding: 3px 10px; border-radius: 99px; border: 1px solid rgba(252, 211, 77, .3); }


/* ---------- 22. SECURITY & TEAM ---------- */
/* lets dropdown menus hang outside this panel */
.nx-panel.nx-visible { overflow: visible; }

.nx-card.nx-auto { height: auto; }
.nx-card.nx-auto .nx-label { margin-bottom: 14px; }

.nx-team { list-style: none; margin: 0; padding: 8px 12px; }
.nx-team li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; }
.nx-team li:hover { background: rgba(255, 255, 255, .05); }
.nx-avatar { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: .8rem; background: linear-gradient(135deg, rgba(167, 139, 250, .35), rgba(167, 139, 250, .35)); border: 1px solid rgba(255, 255, 255, .2); }
.nx-team div.who { flex: 1; min-width: 0; }
.nx-team div.who b { display: block; font-weight: 400; font-size: .93rem; }
.nx-team div.who small { color: var(--muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; display: block; }
.nx-team .nx-select, .nx-team .fixed-role { width: 130px; flex: none; }
.nx-team .fixed-role { color: var(--muted); font-size: .88rem; padding-left: 16px; }
.nx-role-pick { width: 140px; }
.nx-team .nx-select-btn { padding-top: 8px; padding-bottom: 8px; font-size: .85rem; }

.nx-perms { list-style: none; margin: 0; padding: 0; }
.nx-perms li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.nx-perms li:last-child { border-bottom: 0; }
.nx-perms .yes { color: #86efac; }
.nx-perms .no { color: #5f5f5a; }

.nx-keys { list-style: none; margin: 0; padding: 0; }
.nx-keys li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-family: "Geist Mono", monospace; font-size: .78rem; color: #F3D9CE; }
.nx-keys li span { flex: 1; }
.nx-keys button { border: 0; background: transparent; color: var(--muted); font-size: .78rem; }
.nx-keys button:hover { color: #fca5a5; }


/* ---------- 23. USE CASES ---------- */
.nx-uclist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.nx-uclist button { width: 100%; text-align: left; padding: 14px 18px; border-radius: 14px; font-family: inherit; font-size: .95rem; color: var(--muted); background: transparent; border: 1px solid transparent; transition: all .25s; }
.nx-uclist button:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.nx-uclist button.active { color: #fff; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); }

.nx-ucdetail { padding: 40px; min-height: 100%; }
.nx-ucdetail h3 { font-family: var(--font-head); font-weight: 300; font-size: 1.9rem; letter-spacing: -.02em; margin-bottom: 14px; }
.nx-flowchips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.nx-flowchips span { padding: 8px 16px; border-radius: 99px; font-size: .85rem; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .05); }
.nx-flowchips i { color: var(--muted); font-style: normal; }


/* ---------- 24. HOW IT WORKS ---------- */
.nx-howgrid { position: relative; }
.nx-rail { position: absolute; left: 0; right: 0; top: -22px; height: 2px; background: rgba(255, 255, 255, .1); border-radius: 2px; }
.nx-rail i { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, #5BC6D8, #7FA8E8); }
.nx-step h3 { margin-top: 36px; font-size: 1.15rem; }
.nx-step .nx-label { transition: color .4s; }
.nx-step.lit { border-color: rgba(167, 139, 250, .5); }
.nx-step.lit .nx-label { color: var(--accent); }


/* ---------- 25. PRICING ---------- */
.nx-plan { height: 100%; padding: 30px 26px; display: flex; flex-direction: column; position: relative; transition: transform .3s, border-color .3s; }
.nx-plan:hover { transform: translateY(-6px); }
.nx-plan h3 { font-family: var(--font-head); font-weight: 400; font-size: 1.3rem; margin: 0 0 6px; }
.nx-plan-for { color: var(--muted); font-size: .88rem; min-height: 40px; }

.nx-price { font-family: var(--font-head); font-weight: 200; font-size: 3rem; letter-spacing: -.03em; margin: 14px 0 22px; line-height: 1; }
.nx-price::before { content: "$"; font-size: 1.4rem; vertical-align: top; margin-right: 3px; color: var(--muted); }
.nx-price small { font-family: "Geist", sans-serif; font-size: .85rem; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.nx-price-text::before { content: none; }
.nx-price-text span { font-size: 2.4rem; }

.nx-plan ul { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.nx-plan li { padding: 8px 0 8px 24px; font-size: .9rem; color: #d4d4cf; position: relative; border-bottom: 1px solid var(--line); }
.nx-plan li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); }
.nx-plan .nx-btn { text-align: center; }

/* Highlighted plan */
.nx-featured { border-color: rgba(167, 139, 250, .55); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 0 60px -10px rgba(167, 139, 250, .35), 0 20px 50px -25px #000; }
.nx-badge { position: absolute; top: 18px; right: 18px; font-family: "Geist Mono", monospace; font-size: .66rem; padding: 4px 10px; border-radius: 99px; color: #000; background: #fff; }


/* ---------- 26. FAQ (Bootstrap accordion, restyled as separate glass cards) ---------- */
.nx-faq-side { position: sticky; top: 110px; }
.nx-ask { padding: 26px; border-radius: 22px; }
.nx-ask-title { font-family: var(--font-head); font-size: 1.15rem; margin: 0 0 6px; }
.nx-ask-text { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }

.nx-faq-tools { padding: 0 0 18px; border: 0; }
.nx-faq-tools .nx-input { max-width: 280px; }

.nx-faq {
  --bs-accordion-bg: transparent;
  --bs-accordion-color: #cfcfca;
  --bs-accordion-btn-color: #fff;
  --bs-accordion-btn-bg: transparent;
  --bs-accordion-active-bg: transparent;
  --bs-accordion-active-color: #fff;
  --bs-accordion-btn-focus-box-shadow: none;
  --bs-accordion-border-width: 0;
  display: grid;
  gap: 12px;
}

.nx-faq .accordion-item {
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .01));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2);
  overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
}
.nx-faq .accordion-item:hover { border-color: rgba(255, 255, 255, .25); }
/* the open question glows softly */
.nx-faq .accordion-item:has(.accordion-button:not(.collapsed)) {
  border-color: rgba(167, 139, 250, .45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 0 50px -18px rgba(167, 139, 250, .45);
}

.nx-faq .accordion-button { display: flex; align-items: center; gap: 18px; padding: 22px 24px; font-family: var(--font-head); font-weight: 300; font-size: 1.05rem; box-shadow: none; }
.nx-faq-num { font-family: "Geist Mono", monospace; font-size: .72rem; color: var(--muted); width: 22px; flex: none; }
.nx-faq .accordion-button:not(.collapsed) .nx-faq-num { color: var(--accent); }

/* plus icon that turns into a cross */
.nx-faq .accordion-button::after { content: "+"; background-image: none; margin-left: auto; width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; font-size: 1.2rem; line-height: 1; border: 1px solid rgba(255, 255, 255, .2); transition: transform .35s, background .3s; }
.nx-faq .accordion-button:not(.collapsed)::after { transform: rotate(45deg); background: rgba(255, 255, 255, .12); }

.nx-faq .accordion-body { padding: 0 24px 24px 64px; color: #a5a5a0; line-height: 1.75; font-size: .95rem; }

@media (max-width: 575px) {
  .nx-faq .accordion-body { padding-left: 24px; }
  .nx-faq-num { display: none; }
}


/* ---------- 27. FINAL CTA + FOOTER ---------- */
.nx-ctabox { padding: 90px 30px; border-radius: 32px; }
.nx-ctabox .nx-lead { margin-bottom: 34px; }

.nx-footer { position: relative; z-index: 1; padding: 70px 0 30px; border-top: 1px solid var(--line); background: rgba(0, 0, 0, .55); backdrop-filter: blur(10px); }
.nx-footer .nx-brand { display: inline-flex; }
.nx-footer ul { list-style: none; padding: 0; margin: 0; }
.nx-footer li { margin-bottom: 10px; }
.nx-footer li a { color: #b5b5af; text-decoration: none; font-size: .92rem; transition: color .2s; }
.nx-footer li a:hover { color: #fff; }

.nx-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.nx-social a { padding: 6px 14px; border-radius: 99px; font-size: .8rem; color: #cfcfca; text-decoration: none; border: 1px solid rgba(255, 255, 255, .15); transition: all .2s; }
.nx-social a:hover { background: #fff; color: #000; }

/* Footer contact address */
.nx-address { font-style: normal; color: #b5b5af; font-size: .92rem; line-height: 1.8; margin: 0; }
.nx-address a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .3); transition: border-color .2s; }
.nx-address a:hover { border-color: #fff; }

.nx-copy { margin: 50px 0 0; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }


/* ---------- 28. BRAND LOGOS (plain <img> tags from a CDN) ---------- */
/* The logo files are black, so a filter turns them soft white on the dark page */
.nx-logo { width: 22px; height: 22px; object-fit: contain; flex: none; filter: brightness(0) invert(.72); transition: filter .25s, transform .25s; }
.nx-marquee li { display: inline-flex; align-items: center; gap: 10px; transition: color .25s; }
.nx-marquee li:hover { color: #fff; }
.nx-marquee li:hover .nx-logo, .nx-int li:hover .nx-logo { filter: brightness(0) invert(1); transform: scale(1.1); }

.nx-int .nx-logo { width: 30px; height: 30px; margin-bottom: 18px; display: block; }


/* ---------- 29. SIGN IN / SIGN UP SIDE PANEL ---------- */
.nx-signin { background: none; border: 0; }

.offcanvas.nx-auth {
  --bs-offcanvas-width: 470px;
  --bs-offcanvas-bg: rgba(8, 8, 8, .78);
  --bs-offcanvas-color: #fff;
  --bs-offcanvas-border-width: 0;
  border-left: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, .14), -30px 0 80px -20px #000;
}
.nx-auth .offcanvas-header { padding: 26px 32px 10px; justify-content: space-between; }
.nx-auth .offcanvas-body { padding: 14px 32px 40px; }

.nx-close { width: 38px; height: 38px; border-radius: 50%; font-size: 1.4rem; line-height: 1; color: #fff; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .15); transition: background .2s; }
.nx-close:hover { background: rgba(255, 255, 255, .15); }

/* Tabs with a sliding pill */
.nx-authtabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-bottom: 30px; border-radius: 99px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.nx-authtabs button { position: relative; z-index: 1; padding: 10px; border: 0; background: transparent; color: var(--muted); font-size: .88rem; border-radius: 99px; transition: color .25s; }
.nx-authtabs button.active { color: #fff; }
.nx-authslider { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 99px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .15); transition: transform .35s cubic-bezier(.3, .9, .3, 1); }
.nx-authtabs[data-active="signup"] .nx-authslider { transform: translateX(100%); }

.nx-authform { display: grid; gap: 16px; }
.nx-authform[hidden] { display: none; }
.nx-authform h2 { font-family: var(--font-head); font-weight: 300; font-size: 1.8rem; letter-spacing: -.02em; margin: 0; }
.nx-authform > p.nx-muted { margin: -6px 0 4px; font-size: .95rem; }

.nx-social-btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; border-radius: 12px; font-size: .92rem; color: #fff; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .15); transition: background .2s; }
.nx-social-btn:hover { background: rgba(255, 255, 255, .12); }
.nx-social-btn .nx-logo { width: 20px; height: 20px; filter: brightness(0) invert(1); }

.nx-or { display: flex; align-items: center; gap: 14px; color: #5f5f5a; font-size: .78rem; }
.nx-or::before, .nx-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.nx-field-row { display: flex; justify-content: space-between; }
.nx-forgot { color: var(--accent); font-size: .8rem; text-decoration: none; }

.nx-pass { position: relative; display: block; }
.nx-pass .nx-input { padding-right: 70px; }
.nx-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--muted); font-size: .78rem; padding: 6px 10px; }
.nx-eye:hover { color: #fff; }

.nx-authform .nx-check { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: #b5b5af; }
.nx-authform input[type=checkbox] { accent-color: #A78BFA; }
.nx-authform .nx-input:invalid:not(:placeholder-shown) { border-color: rgba(248, 113, 113, .6); }

.nx-strength { display: block; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.nx-strength i { display: block; height: 100%; width: 0; border-radius: 4px; background: #f87171; transition: width .3s, background .3s; }
.nx-field small { color: var(--muted); font-size: .76rem; }

.nx-formmsg { margin: 0; padding: 12px 14px; border-radius: 12px; font-size: .85rem; color: #bae6fd; background: rgba(167, 139, 250, .08); border: 1px solid rgba(167, 139, 250, .25); }
.nx-formmsg[data-state="ok"] { color: #9fe3c8; background: rgba(37, 211, 102, .08); border-color: rgba(37, 211, 102, .3); }
.nx-formmsg[data-state="error"] { color: #e6bcbc; background: rgba(220, 120, 120, .08); border-color: rgba(220, 120, 120, .3); }
.nx-switch-text { text-align: center; color: var(--muted); font-size: .88rem; margin: 4px 0 0; }
.nx-switch-text a { color: #fff; }


/* ---------- 30. INNER PAGES (About, Contact, Privacy, Terms) ---------- */
.nx-pagehero { padding: 120px 0 70px; }
.nx-crumbs { font-family: "Geist Mono", monospace; font-size: .75rem; color: var(--muted); margin-bottom: 24px; }
.nx-crumbs a { color: var(--muted); text-decoration: none; }
.nx-crumbs a:hover { color: #fff; }

.nx-inner { padding: 30px 0 70px; position: relative; z-index: 1; }

/* Text pages sit on a darker glass card so long text stays easy to read */
.nx-prose-card { padding: 44px; border-radius: 26px; background: rgba(10, 10, 10, .72); }
.nx-prose h2 { font-family: var(--font-head); font-weight: 400; font-size: 1.45rem; margin: 42px 0 12px; scroll-margin-top: 110px; }
.nx-prose p, .nx-prose li { color: #b9b9b3; line-height: 1.8; }
.nx-prose ul { padding-left: 1.2rem; }
.nx-prose a { color: var(--accent); }
.nx-templatebox { padding: 14px 18px; border-radius: 14px; font-size: .88rem; color: #fcd34d !important; background: rgba(252, 211, 77, .07); border: 1px solid rgba(252, 211, 77, .25); }

/* Contents list that follows you while you read */
.nx-toc { position: sticky; top: 110px; }
.nx-toc ul { list-style: none; margin: 0; padding: 0; }
.nx-toc a { display: block; padding: 7px 14px; font-size: .86rem; color: var(--muted); text-decoration: none; border-left: 1px solid var(--line); transition: all .2s; }
.nx-toc a:hover { color: #fff; }
.nx-toc a.active { color: #fff; border-left-color: var(--accent); }

/* About: honest status list */
.nx-status { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.nx-status li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 16px 20px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); }
.nx-status li b { font-weight: 400; min-width: 150px; }
.nx-status li span { color: var(--muted); font-size: .9rem; }
.nx-status li.now { border-color: rgba(167, 139, 250, .45); }
.nx-status li.now b { color: var(--accent); }

@media (max-width: 575px) { .nx-prose-card { padding: 26px 22px; } .nx-pagehero { padding: 90px 0 50px; } }


/* ---------- 31. SMALL EXTRAS ---------- */
/* Quiet pill used for honest "preview" labels */
.nx-pill-soft { font-size: .8rem; color: var(--muted); }

/* Form row at the bottom of a panel: line on top instead of below */
.nx-toolbar-end { border-bottom: 0; border-top: 1px solid var(--line); }

/* Phone version of the orchestration graph */
.nx-graph.nx-graph-mobile { min-width: 0; max-width: 420px; margin: 0 auto; }


/* ---------- 32. TABLET + PHONE SPACING ---------- */
/* Tablet and below (under 992px) */
@media (max-width: 991px) {
  .nx-section { padding: 57px 0; }
  .nx-inner { padding: 16px 0 44px; }
  .nx-hero { min-height: 0; padding: 85px 0 84px; }
  .nx-planned { margin-top: 48px; }

  /* the big gaps under section headings */
  .nx-section .mb-5 { margin-bottom: 2.2rem !important; }

  /* stacked panels: divider goes under the side column, not beside it */
  .nx-glass-side { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px; }
  .nx-panel-main { padding: 22px; }
  .nx-faq-side { position: static; }
  .nx-ctabox { padding: 64px 28px; }
  .nx-ucdetail { padding: 30px; }
  .nx-footer { padding: 52px 0 26px; }
}

/* Phones (under 576px) */
@media (max-width: 575px) {
  .nx-section { padding: 52px 0; }
  .nx-inner { padding: 12px 0 34px; }
  .nx-hero { padding: 96px 0 56px; }
  .nx-planned { margin-top: 36px; }
  .nx-lead { font-size: 1rem; margin-bottom: 26px; }

  .nx-section .mb-5 { margin-bottom: 1.5rem !important; }

  /* cards and panels: less padding, shorter */
  .nx-card { padding: 22px; }
  .nx-card h3 { margin-top: 30px; }
  .nx-plan { padding: 24px 20px; }
  .nx-plan-for { min-height: 0; }
  .nx-price { margin: 10px 0 16px; }
  .nx-form, .nx-code, .nx-run, .nx-ucdetail { padding: 22px; }
  .nx-panel-main, .nx-glass-side { padding: 18px; }
  .nx-panel-top { padding: 14px 18px; }
  .nx-toolbar { padding: 14px 18px; gap: 10px; }
  .nx-mem { min-height: 0; }
  .nx-feed { min-height: 0; }
  .nx-graph-wrap { padding: 16px; }
  .nx-canvas { height: 430px; }

  /* numbers must fit inside their small cards */
  .nx-num { font-size: 1.55rem; }
  .nx-kpi { padding: 12px 12px; min-width: 0; overflow: hidden; }

  /* integrations: two small tiles per row instead of one tall tile */
  .nx-int { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .nx-int li { padding: 16px; }
  .nx-int .nx-logo { width: 26px; height: 26px; margin-bottom: 12px; }
  .nx-int em { margin-top: 10px; }

  .nx-ctabox { padding: 44px 20px; border-radius: 24px; }
  .nx-footer { padding: 42px 0 22px; }
  .nx-copy { margin-top: 30px; }
}


/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nx-btn, .nx-card { transition: none; }
  .nx-wires path, .nx-live i { animation: none; }
}

/* ---------- BRAND ACCENTS (Magic Mind) ---------- */
.nx-it {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.005em;
  font-size: 1.1em;
  color: var(--text);
}
.nx-h2 .nx-it, .nx-h1 .nx-it { color: var(--accent); }
.nx-brand svg { flex: none; }
.nx-brand .nx-mk { display: grid; grid-template-columns: repeat(2, 6px); grid-template-rows: repeat(2, 6px); gap: 2px; }
.nx-brand .nx-mk i { background: var(--accent); display: block; }
.nx-brand .nx-mk i:nth-child(2) { opacity: .45; }
.nx-brand .nx-mk i:nth-child(3) { opacity: .45; }
.nx-hero h1 .nx-it, .nx-h1 .nx-it { color: var(--text); }
.nx-accent { color: var(--accent); }
.nx-title .nx-it { color: var(--accent); font-size: 1.12em; line-height: .9; }
.nx-num small { font-size: .42em; font-weight: 300; color: var(--muted); letter-spacing: 0; margin: 0 3px; vertical-align: .35em; }
.nx-int .nx-mk { width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-family: "Geist Mono", monospace; font-size: .6rem; letter-spacing: .06em; color: #F2EFE8; background: rgba(255,255,255,.04); border: 1px solid rgba(242,239,232,.14); transition: border-color .25s, color .25s; }
.nx-int li:hover .nx-mk { border-color: rgba(167,139,250,.6); color: #A78BFA; }
.nx-h2 { line-height: 1.18; }
.nx-h2 .nx-it { line-height: .95; }
.nx-plan.nx-featured { padding-top: 56px; }
.nx-plan.nx-featured .nx-badge { top: 20px; }
.nx-planned { margin-top: 54px; }
@media (max-width: 991px) { .nx-planned { margin-top: 40px; } }
.nx-title .nx-it { color: var(--accent) !important; }
/* leitura confortável sobre a rede 3D nas páginas internas */
.nx-pagehero .nx-lead, .nx-pagehero .nx-crumbs { text-shadow: 0 1px 18px rgba(10,10,11,.95), 0 0 40px rgba(10,10,11,.85); }
.nx-inner .nx-muted { text-shadow: 0 1px 14px rgba(10,10,11,.9); }
@media (max-width: 767px) {
  .nx-marquee { font-size: .92rem; gap: 6px 18px; }
  .nx-planned { font-size: .68rem; }
  .nx-title .nx-it { font-size: 1.06em; }
}

/* ---------- LOGO (lockup oficial, versão para fundo escuro) ---------- */
.nx-brand .nx-logoimg { display: block; height: 32px; width: auto; }
.nx-footer .nx-brand .nx-logoimg { height: 38px; }
@media (max-width: 991px) { .nx-brand .nx-logoimg { height: 26px; } }
.nx-fav-mark { display: inline-flex; }
/* páginas internas: rede 3D mais discreta atrás do texto */
body.nx-page #scene3d { opacity: .55; }
body.nx-page .nx-inner { position: relative; }
body.nx-page .nx-inner::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 55% at 50% 45%, rgba(10,10,11,.72), rgba(10,10,11,0) 100%); }
body.nx-page .nx-inner .container { position: relative; z-index: 1; }

/* ---------- 40. HERO PARALLAX ---------- */
@media (min-width: 992px) {
  .nx-hero { min-height: clamp(700px, calc(100vh + 80px), 1040px); }
}
.nx-hero { position: relative; overflow: hidden; }
.nx-hero-bg { position: absolute; inset: -12% -6%; z-index: 0; pointer-events: none; will-change: transform; }
.nx-hero-bg span { position: absolute; display: block; border-radius: 50%; filter: blur(80px); }
.nx-hero-bg .g1 { width: 56vw; height: 56vw; left: 2%; top: -8%; background: radial-gradient(circle, rgba(142,123,214,.34), transparent 62%); }
.nx-hero-bg .g2 { width: 42vw; height: 42vw; right: -4%; top: 6%; background: radial-gradient(circle, rgba(63,166,140,.20), transparent 64%); }
.nx-hero-bg .g3 { width: 50vw; height: 34vw; left: 26%; bottom: -14%; background: radial-gradient(circle, rgba(74,120,208,.24), transparent 64%); }
.nx-hero-copy { position: relative; z-index: 2; will-change: transform, opacity; }
#scene3d { will-change: transform; }
@media (prefers-reduced-motion: reduce) {
  .nx-hero-bg, .nx-hero-copy, #scene3d { will-change: auto; }
}

/* ---------- 41. CÉREBRO DE PARTÍCULAS ---------- */
/* O vortex da home é um canvas fixo (#scene3d, seção 1 deste arquivo) desenhado
   por vortex-hero.js — sem máscara, como no modelo original. */
.nx-hero-bg { z-index: 0; }
.nx-hero-bg {
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 62%, rgba(0,0,0,0) 98%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 62%, rgba(0,0,0,0) 98%);
}
