/* ==========================================================================
   Nexus — IT Company / Tech Startup template
   Custom design layer on Bootstrap 5. Vanilla, no jQuery.
   Identity: near-black indigo ink + electric violet & cyan accents,
   Space Grotesk display / Inter body.
   ========================================================================== */

:root {
  /* Ink & surfaces */
  --nx-ink: #0a0a12;
  --nx-ink-2: #10101d;
  --nx-ink-3: #17172a;
  --nx-line-dark: rgba(255, 255, 255, 0.08);

  /* Light surfaces */
  --nx-bg: #f6f7fb;
  --nx-surface: #ffffff;
  --nx-surface-2: #eef0f7;
  --nx-line: #e4e6ef;

  /* Text */
  --nx-text: #14141f;
  --nx-muted: #5c5f74;
  --nx-text-inv: #f4f5fb;
  --nx-muted-inv: #a2a5be;

  /* Accents */
  --nx-violet: #7c5cff;
  --nx-violet-600: #6a45ff;
  --nx-cyan: #2ee6d6;
  --nx-cyan-600: #17c9bd;

  /* Gradients */
  --nx-grad: linear-gradient(120deg, #7c5cff 0%, #9b5cff 45%, #2ee6d6 100%);
  --nx-grad-soft: linear-gradient(120deg, rgba(124, 92, 255, 0.16), rgba(46, 230, 214, 0.16));

  /* Shape */
  --nx-radius: 18px;
  --nx-radius-sm: 12px;
  --nx-radius-lg: 26px;
  --nx-shadow: 0 24px 60px -28px rgba(20, 20, 40, 0.35);
  --nx-shadow-sm: 0 10px 30px -18px rgba(20, 20, 40, 0.3);
  --nx-ring: 0 0 0 1px var(--nx-line);

  /* Type */
  --nx-font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --nx-font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --nx-nav-h: 76px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
* { -webkit-font-smoothing: antialiased; }

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

body {
  font-family: var(--nx-font-body);
  color: var(--nx-text);
  background: var(--nx-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .nx-display {
  font-family: var(--nx-font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--nx-text);
}

a { color: var(--nx-violet-600); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--nx-violet); }

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

.container { max-width: 1200px; }

::selection { background: rgba(124, 92, 255, 0.24); }

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.btn:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--nx-violet);
  outline-offset: 3px;
  border-radius: 6px;
}

.nx-skip {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 2000;
  background: var(--nx-ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  transition: top 0.2s ease;
}
.nx-skip:focus { top: 16px; color: #fff; }

/* --------------------------------------------------------------------------
   Section rhythm & shared type utilities
   -------------------------------------------------------------------------- */
.nx-section { padding: clamp(64px, 8vw, 120px) 0; }
.nx-section-tight { padding: clamp(48px, 6vw, 80px) 0; }

.nx-ink-section { background: var(--nx-ink); color: var(--nx-text-inv); }
.nx-ink-section h1, .nx-ink-section h2, .nx-ink-section h3,
.nx-ink-section h4, .nx-ink-section h5 { color: var(--nx-text-inv); }

.nx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--nx-font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nx-violet-600);
  margin-bottom: 18px;
}
.nx-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--nx-grad);
}
.nx-ink-section .nx-eyebrow { color: var(--nx-cyan); }

.nx-title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.nx-lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--nx-muted); }
.nx-ink-section .nx-lead { color: var(--nx-muted-inv); }

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

.text-muted-nx { color: var(--nx-muted) !important; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.nx-btn {
  --_bg: var(--nx-ink);
  --_fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--nx-font-display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--_bg);
  color: var(--_fg);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.nx-btn:hover { transform: translateY(-2px); color: var(--_fg); }
.nx-btn:active { transform: translateY(0); }

.nx-btn--primary {
  --_bg: var(--nx-violet);
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(124, 92, 255, 0.7);
}
.nx-btn--primary:hover { --_bg: var(--nx-violet-600); box-shadow: 0 18px 40px -12px rgba(124, 92, 255, 0.8); }

.nx-btn--grad {
  background: var(--nx-grad);
  color: #0a0a12;
  box-shadow: 0 14px 34px -14px rgba(46, 230, 214, 0.6);
}
.nx-btn--grad:hover { color: #0a0a12; }

.nx-btn--dark { --_bg: var(--nx-ink); color: #fff; }
.nx-btn--dark:hover { --_bg: #000; color: #fff; }

.nx-btn--ghost {
  background: transparent;
  color: var(--nx-text);
  border-color: var(--nx-line);
}
.nx-btn--ghost:hover { border-color: var(--nx-ink); color: var(--nx-text); background: transparent; }

.nx-btn--ghost-inv {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}
.nx-btn--ghost-inv:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.08); }

.nx-btn--sm { padding: 10px 20px; font-size: 0.9rem; }
.nx-btn--block { width: 100%; }

.nx-arrow { transition: transform 0.2s ease; }
.nx-btn:hover .nx-arrow { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */
.nx-nav {
  position: sticky;
  top: 0;
  z-index: 1030;
  height: var(--nx-nav-h);
  background: rgba(246, 247, 251, 0.72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.nx-nav.is-stuck {
  background: rgba(246, 247, 251, 0.9);
  border-bottom-color: var(--nx-line);
  box-shadow: 0 10px 30px -24px rgba(20, 20, 40, 0.5);
}
.nx-nav__inner {
  height: var(--nx-nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nx-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--nx-font-display);
  font-weight: 700;
  font-size: 1.32rem;
  letter-spacing: -0.03em;
  color: var(--nx-text);
}
.nx-brand:hover { color: var(--nx-text); }
.nx-brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--nx-grad);
  display: grid;
  place-items: center;
  color: #0a0a12;
  box-shadow: 0 8px 20px -10px rgba(124, 92, 255, 0.8);
  flex: none;
}
.nx-brand__mark svg { width: 18px; height: 18px; }

.nx-nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nx-nav__links a {
  display: block;
  padding: 9px 15px;
  border-radius: 10px;
  color: var(--nx-text);
  font-weight: 500;
  font-size: 0.96rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.nx-nav__links a:hover,
.nx-nav__links a.is-active { background: rgba(124, 92, 255, 0.1); color: var(--nx-violet-600); }

.nx-nav__cta { display: flex; align-items: center; gap: 12px; }

.nx-nav__toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--nx-line);
  background: var(--nx-surface);
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nx-nav__toggle span,
.nx-nav__toggle span::before,
.nx-nav__toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--nx-text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  position: relative;
}
.nx-nav__toggle span::before { position: absolute; top: -6px; }
.nx-nav__toggle span::after { position: absolute; top: 6px; }
.nx-nav__toggle[aria-expanded="true"] span { background: transparent; }
.nx-nav__toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nx-nav__toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.nx-drawer {
  position: fixed;
  inset: var(--nx-nav-h) 0 0 0;
  z-index: 1020;
  background: var(--nx-bg);
  padding: 24px 20px 40px;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  visibility: hidden;
}
.nx-drawer.is-open { transform: translateX(0); visibility: visible; }
.nx-drawer ul { list-style: none; margin: 0 0 24px; padding: 0; }
.nx-drawer a {
  display: block;
  padding: 16px 8px;
  font-family: var(--nx-font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--nx-text);
  border-bottom: 1px solid var(--nx-line);
}
.nx-drawer .nx-btn { width: 100%; }

@media (max-width: 991.98px) {
  .nx-nav__links, .nx-nav__cta .nx-btn { display: none; }
  .nx-nav__toggle { display: inline-flex; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.nx-hero {
  position: relative;
  background: var(--nx-ink);
  color: var(--nx-text-inv);
  overflow: hidden;
  padding: clamp(90px, 12vw, 150px) 0 clamp(70px, 9vw, 120px);
}
.nx-hero__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(50% 55% at 15% 8%, rgba(124, 92, 255, 0.55), transparent 60%),
    radial-gradient(45% 50% at 92% 20%, rgba(46, 230, 214, 0.4), transparent 60%),
    radial-gradient(60% 60% at 80% 100%, rgba(155, 92, 255, 0.35), transparent 62%);
  filter: saturate(120%);
}
.nx-hero__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
}
.nx-hero .container { position: relative; z-index: 2; }

.nx-hero h1 { font-size: clamp(2.5rem, 6vw, 4.3rem); margin-bottom: 22px; }
.nx-hero__sub { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--nx-muted-inv); max-width: 40ch; }

.nx-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.84rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 26px;
}
.nx-pill__dot {
  width: 20px; height: 20px; border-radius: 999px;
  background: var(--nx-grad);
  display: grid; place-items: center;
  color: #0a0a12; font-size: 11px; font-weight: 700;
}

.nx-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 40px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--nx-line-dark);
}
.nx-hero__stat b {
  display: block;
  font-family: var(--nx-font-display);
  font-size: 1.7rem;
  color: #fff;
  line-height: 1;
}
.nx-hero__stat span { font-size: 0.86rem; color: var(--nx-muted-inv); }

/* Hero product mockup card */
.nx-mock {
  position: relative;
  background: linear-gradient(180deg, #16162a, #0e0e1c);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--nx-radius-lg);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}
.nx-mock__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
}
.nx-mock__dot { width: 11px; height: 11px; border-radius: 999px; background: rgba(255,255,255,0.16); }
.nx-mock__url {
  margin-left: 10px;
  font-family: var(--nx-font-body);
  font-size: 0.76rem;
  color: var(--nx-muted-inv);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 12px;
  border-radius: 8px;
}
.nx-mock__body { padding: 22px; }
.nx-mock__row { display: flex; gap: 14px; margin-bottom: 16px; }
.nx-mock__kpi {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 14px;
}
.nx-mock__kpi small { color: var(--nx-muted-inv); font-size: 0.72rem; display: block; margin-bottom: 6px; }
.nx-mock__kpi b { font-family: var(--nx-font-display); font-size: 1.35rem; color: #fff; }
.nx-mock__kpi i { font-style: normal; font-size: 0.72rem; color: var(--nx-cyan); }
.nx-mock__chart {
  height: 138px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(124, 92, 255, 0.22), rgba(124, 92, 255, 0) 70%);
  position: relative;
  overflow: hidden;
  padding: 12px;
}
.nx-mock__chart svg { width: 100%; height: 100%; }
.nx-mock__bars { display: flex; align-items: flex-end; gap: 9px; height: 100%; }
.nx-mock__bars span {
  flex: 1;
  border-radius: 6px 6px 3px 3px;
  background: var(--nx-grad);
  opacity: 0.9;
}
.nx-mock__float {
  position: absolute;
  right: -18px;
  bottom: 34px;
  background: #fff;
  color: var(--nx-text);
  border-radius: 14px;
  padding: 13px 16px;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 0.82rem;
  font-weight: 600;
}
.nx-mock__float .ico {
  width: 34px; height: 34px; border-radius: 10px;
  background: rgba(46, 230, 214, 0.16); color: var(--nx-cyan-600);
  display: grid; place-items: center; flex: none;
}
@media (max-width: 991.98px) {
  .nx-mock { margin-top: 48px; }
  .nx-mock__float { right: 8px; }
}

/* --------------------------------------------------------------------------
   Trusted-by strip
   -------------------------------------------------------------------------- */
.nx-trust { padding: 34px 0; border-bottom: 1px solid var(--nx-line); background: var(--nx-surface); }
.nx-trust__label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nx-muted);
  font-weight: 600;
}
.nx-trust__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
}
.nx-chip-logo {
  font-family: var(--nx-font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  color: #43465c;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--nx-line);
  background: var(--nx-bg);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.nx-chip-logo::before {
  content: "";
  width: 9px; height: 9px; border-radius: 3px;
  background: var(--nx-grad);
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   Services grid
   -------------------------------------------------------------------------- */
.nx-card {
  background: var(--nx-surface);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius);
  padding: 30px;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.nx-card:hover { transform: translateY(-5px); box-shadow: var(--nx-shadow); border-color: transparent; }

.nx-svc__ico {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--nx-grad-soft);
  color: var(--nx-violet-600);
  margin-bottom: 20px;
}
.nx-svc__ico svg { width: 26px; height: 26px; }
.nx-svc h3 { font-size: 1.24rem; margin-bottom: 10px; }
.nx-svc p { color: var(--nx-muted); font-size: 0.96rem; margin-bottom: 16px; }
.nx-svc__link {
  font-family: var(--nx-font-display);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nx-svc__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.nx-svc__tags li {
  font-size: 0.78rem;
  color: var(--nx-muted);
  background: var(--nx-surface-2);
  padding: 5px 11px;
  border-radius: 8px;
}

/* --------------------------------------------------------------------------
   How we work — process
   -------------------------------------------------------------------------- */
.nx-step {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--nx-radius);
  background: var(--nx-surface);
  border: 1px solid var(--nx-line);
  height: 100%;
}
.nx-step__num {
  font-family: var(--nx-font-display);
  font-weight: 700;
  font-size: 0.95rem;
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--nx-ink);
  color: #fff;
  margin-bottom: 20px;
}
.nx-step h3 { font-size: 1.16rem; margin-bottom: 9px; }
.nx-step p { color: var(--nx-muted); font-size: 0.94rem; margin: 0; }
.nx-step__time {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--nx-violet-600);
  background: rgba(124, 92, 255, 0.09);
  padding: 4px 11px;
  border-radius: 8px;
}
.nx-step__arrow {
  position: absolute;
  top: 46px;
  right: -13px;
  z-index: 3;
  color: var(--nx-line);
}
@media (max-width: 991.98px) { .nx-step__arrow { display: none; } }

/* --------------------------------------------------------------------------
   Feature split + inline mockup
   -------------------------------------------------------------------------- */
.nx-feature__list { list-style: none; margin: 26px 0 0; padding: 0; }
.nx-feature__list li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--nx-line);
}
.nx-feature__list li:first-child { border-top: 0; }
.nx-feature__check {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: rgba(46, 230, 214, 0.14);
  color: var(--nx-cyan-600);
  display: grid; place-items: center;
}
.nx-feature__list b { font-family: var(--nx-font-display); display: block; font-size: 1.02rem; margin-bottom: 2px; }
.nx-feature__list span { color: var(--nx-muted); font-size: 0.92rem; }

.nx-panel {
  border-radius: var(--nx-radius-lg);
  background: var(--nx-ink);
  border: 1px solid var(--nx-line-dark);
  padding: 26px;
  color: #fff;
  box-shadow: var(--nx-shadow);
}
.nx-panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.nx-panel__head b { font-family: var(--nx-font-display); font-size: 1.05rem; }
.nx-panel__pipe { display: grid; gap: 10px; }
.nx-pipe-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 15px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
}
.nx-pipe-row .st {
  margin-left: auto;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}
.st--ok { background: rgba(46, 230, 214, 0.16); color: var(--nx-cyan); }
.st--run { background: rgba(124, 92, 255, 0.22); color: #c3b2ff; }
.st--wait { background: rgba(255, 255, 255, 0.08); color: var(--nx-muted-inv); }
.nx-pipe-row .ic {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: rgba(255, 255, 255, 0.06);
  display: grid; place-items: center; color: #fff;
}

/* --------------------------------------------------------------------------
   Metrics band
   -------------------------------------------------------------------------- */
.nx-metrics { text-align: center; }
.nx-metric b {
  font-family: var(--nx-font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1;
  display: block;
  color: #fff;
}
.nx-metric .nx-grad-text { -webkit-text-fill-color: transparent; }
.nx-metric span { color: var(--nx-muted-inv); font-size: 0.94rem; margin-top: 8px; display: block; }
.nx-metrics .col { border-left: 1px solid var(--nx-line-dark); }
.nx-metrics .col:first-child { border-left: 0; }
@media (max-width: 767.98px) {
  .nx-metrics .col:nth-child(odd) { border-left: 0; }
  .nx-metric b { font-size: 2.6rem; }
}

/* --------------------------------------------------------------------------
   Case studies
   -------------------------------------------------------------------------- */
.nx-case {
  display: block;
  border-radius: var(--nx-radius);
  overflow: hidden;
  background: var(--nx-surface);
  border: 1px solid var(--nx-line);
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  color: var(--nx-text);
}
.nx-case:hover { transform: translateY(-5px); box-shadow: var(--nx-shadow); border-color: transparent; color: var(--nx-text); }
.nx-case__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--nx-surface-2); }
.nx-case__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.nx-case:hover .nx-case__media img { transform: scale(1.05); }
.nx-case__tag {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(10, 10, 18, 0.82);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.nx-case__body { padding: 24px; }
.nx-case__body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.nx-case__body p { color: var(--nx-muted); font-size: 0.92rem; margin-bottom: 16px; }
.nx-case__result {
  display: flex;
  gap: 22px;
  padding-top: 15px;
  border-top: 1px solid var(--nx-line);
}
.nx-case__result b { font-family: var(--nx-font-display); font-size: 1.24rem; display: block; color: var(--nx-violet-600); }
.nx-case__result span { font-size: 0.78rem; color: var(--nx-muted); }

/* --------------------------------------------------------------------------
   Tech stack chips
   -------------------------------------------------------------------------- */
.nx-stack { display: flex; flex-wrap: wrap; gap: 10px; }
.nx-stack__chip {
  font-family: var(--nx-font-display);
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--nx-text);
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--nx-line);
  background: var(--nx-surface);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.nx-stack__chip:hover { border-color: var(--nx-violet); color: var(--nx-violet-600); transform: translateY(-2px); }

/* --------------------------------------------------------------------------
   Team
   -------------------------------------------------------------------------- */
.nx-team__card { text-align: center; }
.nx-team__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--nx-radius);
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--nx-surface-2);
  border: 1px solid var(--nx-line);
}
.nx-team__photo img { width: 100%; height: 100%; object-fit: cover; }
.nx-team__card h3 { font-size: 1.08rem; margin-bottom: 2px; }
.nx-team__card p { color: var(--nx-muted); font-size: 0.88rem; margin: 0; }
.nx-team__social {
  position: absolute;
  inset: auto 0 0 0;
  padding: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, transparent, rgba(10,10,18,0.72));
  opacity: 0;
  transition: opacity 0.25s ease;
}
.nx-team__photo:hover .nx-team__social,
.nx-team__photo:focus-within .nx-team__social { opacity: 1; }
.nx-team__social a {
  width: 34px; height: 34px; border-radius: 9px;
  background: rgba(255,255,255,0.92);
  display: grid; place-items: center;
  color: var(--nx-ink);
}
.nx-team__social a:hover { background: #fff; }

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */
.nx-price {
  background: var(--nx-surface);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius-lg);
  padding: 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.nx-price:hover { transform: translateY(-4px); box-shadow: var(--nx-shadow); }
.nx-price--featured {
  background: var(--nx-ink);
  color: #fff;
  border-color: transparent;
  position: relative;
  box-shadow: var(--nx-shadow);
}
.nx-price--featured h3, .nx-price--featured .nx-price__amt { color: #fff; }
.nx-price__badge {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--nx-grad);
  color: #0a0a12;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}
.nx-price h3 { font-size: 1.2rem; margin-bottom: 6px; }
.nx-price__desc { font-size: 0.88rem; color: var(--nx-muted); margin-bottom: 22px; }
.nx-price--featured .nx-price__desc { color: var(--nx-muted-inv); }
.nx-price__amt { font-family: var(--nx-font-display); font-weight: 700; font-size: 2.4rem; line-height: 1; }
.nx-price__amt sup { font-size: 1rem; font-weight: 600; top: -0.9em; }
.nx-price__per { font-size: 0.86rem; color: var(--nx-muted); }
.nx-price--featured .nx-price__per { color: var(--nx-muted-inv); }
.nx-price__list { list-style: none; margin: 24px 0; padding: 0; flex: 1; }
.nx-price__list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 8px 0;
  font-size: 0.92rem;
}
.nx-price__list svg { flex: none; margin-top: 3px; color: var(--nx-cyan-600); }
.nx-price--featured .nx-price__list svg { color: var(--nx-cyan); }

/* --------------------------------------------------------------------------
   Testimonials slider
   -------------------------------------------------------------------------- */
.nx-quotes { position: relative; }
.nx-quote {
  display: none;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.nx-quote.is-active { display: block; animation: nxFade 0.5s ease; }
@keyframes nxFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.nx-quote__stars { color: var(--nx-cyan); margin-bottom: 22px; letter-spacing: 3px; }
.nx-quote blockquote {
  font-family: var(--nx-font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin: 0 0 30px;
  color: var(--nx-text-inv);
}
.nx-ink-section .nx-quote blockquote { color: var(--nx-text-inv); }
.nx-quote__author { display: inline-flex; align-items: center; gap: 14px; text-align: left; }
.nx-quote__author img { width: 54px; height: 54px; border-radius: 999px; object-fit: cover; border: 2px solid rgba(255,255,255,0.14); }
.nx-quote__author b { font-family: var(--nx-font-display); display: block; color: #fff; }
.nx-quote__author span { font-size: 0.86rem; color: var(--nx-muted-inv); }
.nx-quotes__nav { display: flex; justify-content: center; gap: 10px; margin-top: 34px; }
.nx-quotes__dot {
  width: 9px; height: 9px; border-radius: 999px;
  background: rgba(255,255,255,0.24);
  border: 0; padding: 0; cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}
.nx-quotes__dot.is-active { width: 26px; background: var(--nx-cyan); }

/* --------------------------------------------------------------------------
   Contact / CTA band + form
   -------------------------------------------------------------------------- */
.nx-cta { position: relative; overflow: hidden; }
.nx-cta__mesh {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(40% 60% at 88% 10%, rgba(46, 230, 214, 0.35), transparent 60%),
    radial-gradient(45% 70% at 6% 100%, rgba(124, 92, 255, 0.4), transparent 62%);
}
.nx-cta .container { position: relative; z-index: 2; }
.nx-form {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--nx-line-dark);
  border-radius: var(--nx-radius-lg);
  padding: clamp(24px, 4vw, 40px);
  backdrop-filter: blur(8px);
}
.nx-field { margin-bottom: 16px; }
.nx-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--nx-muted-inv);
}
.nx-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 13px 16px;
  color: #fff;
  font-family: var(--nx-font-body);
  font-size: 0.96rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nx-input::placeholder { color: rgba(255,255,255,0.4); }
.nx-input:focus {
  outline: none;
  border-color: var(--nx-violet);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.18);
}
textarea.nx-input { min-height: 120px; resize: vertical; }
.nx-form__note { font-size: 0.8rem; color: var(--nx-muted-inv); margin: 8px 0 0; }
.nx-form__ok {
  display: none;
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: 12px;
  background: rgba(46, 230, 214, 0.14);
  border: 1px solid rgba(46, 230, 214, 0.4);
  color: var(--nx-cyan);
  font-size: 0.9rem;
  font-weight: 600;
}
.nx-form__ok.is-visible { display: block; }

.nx-contact__list { list-style: none; margin: 28px 0 0; padding: 0; }
.nx-contact__list li { display: flex; gap: 15px; align-items: flex-start; margin-bottom: 22px; }
.nx-contact__ico {
  width: 44px; height: 44px; flex: none;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--nx-line-dark);
  display: grid; place-items: center;
  color: var(--nx-cyan);
}
.nx-contact__list small { display: block; color: var(--nx-muted-inv); font-size: 0.8rem; margin-bottom: 2px; }
.nx-contact__list b { font-family: var(--nx-font-display); color: #fff; font-weight: 500; }

/* --------------------------------------------------------------------------
   Page hero (services)
   -------------------------------------------------------------------------- */
.nx-pagehero {
  position: relative;
  background: var(--nx-ink);
  color: #fff;
  overflow: hidden;
  padding: clamp(80px, 11vw, 130px) 0 clamp(60px, 8vw, 96px);
}
.nx-pagehero .container { position: relative; z-index: 2; }
.nx-pagehero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin-bottom: 18px; }
.nx-breadcrumb { list-style: none; display: flex; gap: 10px; padding: 0; margin: 0 0 22px; font-size: 0.86rem; }
.nx-breadcrumb a { color: var(--nx-muted-inv); }
.nx-breadcrumb a:hover { color: #fff; }
.nx-breadcrumb li[aria-current] { color: var(--nx-cyan); }
.nx-breadcrumb li + li::before { content: "/"; color: rgba(255,255,255,0.3); margin-right: 10px; }

/* Detailed service block */
.nx-svc-detail {
  background: var(--nx-surface);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius-lg);
  padding: clamp(26px, 4vw, 42px);
  height: 100%;
}
.nx-svc-detail__ico {
  width: 58px; height: 58px; border-radius: 15px;
  background: var(--nx-grad-soft); color: var(--nx-violet-600);
  display: grid; place-items: center; margin-bottom: 22px;
}
.nx-svc-detail h2 { font-size: 1.5rem; margin-bottom: 12px; }
.nx-svc-detail > p { color: var(--nx-muted); margin-bottom: 22px; }
.nx-deliver { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.nx-deliver li { display: flex; gap: 11px; align-items: flex-start; font-size: 0.94rem; }
.nx-deliver svg { flex: none; margin-top: 3px; color: var(--nx-cyan-600); }
.nx-svc-detail__meta {
  display: flex; flex-wrap: wrap; gap: 20px 32px;
  margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--nx-line);
}
.nx-svc-detail__meta small { color: var(--nx-muted); font-size: 0.78rem; display: block; }
.nx-svc-detail__meta b { font-family: var(--nx-font-display); font-size: 1.05rem; }

/* Timeline process (services page) */
.nx-timeline { position: relative; max-width: 820px; margin: 0 auto; }
.nx-timeline::before {
  content: "";
  position: absolute;
  left: 27px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--nx-violet), var(--nx-cyan));
}
.nx-tl {
  position: relative;
  padding: 0 0 34px 76px;
}
.nx-tl:last-child { padding-bottom: 0; }
.nx-tl__dot {
  position: absolute; left: 12px; top: 0;
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--nx-surface);
  border: 2px solid var(--nx-violet);
  display: grid; place-items: center;
  font-family: var(--nx-font-display); font-weight: 700; font-size: 0.85rem;
  color: var(--nx-violet-600);
  z-index: 2;
}
.nx-tl h3 { font-size: 1.16rem; margin-bottom: 6px; }
.nx-tl__time { font-size: 0.8rem; font-weight: 600; color: var(--nx-cyan-600); }
.nx-tl p { color: var(--nx-muted); font-size: 0.95rem; margin: 6px 0 0; }

/* FAQ */
.nx-faq { border-top: 1px solid var(--nx-line); }
.nx-faq details { border-bottom: 1px solid var(--nx-line); }
.nx-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 4px;
  font-family: var(--nx-font-display);
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.nx-faq summary::-webkit-details-marker { display: none; }
.nx-faq summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--nx-violet-600);
  transition: transform 0.2s ease;
  line-height: 1;
}
.nx-faq details[open] summary::after { transform: rotate(45deg); }
.nx-faq p { color: var(--nx-muted); padding: 0 4px 22px; margin: 0; max-width: 74ch; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.nx-footer { background: var(--nx-ink); color: var(--nx-muted-inv); padding: 72px 0 34px; }
.nx-footer .nx-brand { color: #fff; }
.nx-footer p { font-size: 0.94rem; max-width: 34ch; }
.nx-footer h4 {
  font-family: var(--nx-font-display);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
}
.nx-footer ul { list-style: none; padding: 0; margin: 0; }
.nx-footer ul li { margin-bottom: 11px; }
.nx-footer ul a { color: var(--nx-muted-inv); font-size: 0.94rem; }
.nx-footer ul a:hover { color: #fff; }
.nx-footer__social { display: flex; gap: 10px; margin-top: 18px; }
.nx-footer__social a {
  width: 40px; height: 40px; border-radius: 11px;
  border: 1px solid var(--nx-line-dark);
  display: grid; place-items: center;
  color: var(--nx-muted-inv);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.nx-footer__social a:hover { color: #fff; border-color: var(--nx-violet); background: rgba(124,92,255,0.14); }
.nx-footer__bottom {
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid var(--nx-line-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
}
.nx-footer__bottom nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nx-footer__bottom a { color: var(--nx-muted-inv); }
.nx-footer__bottom a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */
.nx-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.nx-reveal.is-in { opacity: 1; transform: none; }
.nx-reveal[data-delay="1"] { transition-delay: 0.08s; }
.nx-reveal[data-delay="2"] { transition-delay: 0.16s; }
.nx-reveal[data-delay="3"] { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .nx-reveal { opacity: 1; transform: none; }
}

/* Utility spacers */
.nx-mt-neg { margin-top: -1px; }
