/* =========================================================
   Nexus Optimizer — landing page (2026 redesign)
   Self-contained: only this file styles index.html
   ========================================================= */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-var.woff2") format("woff2");
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-tight-var.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
}

:root {
  --bg: #05060a;
  --panel: #0b0e14;
  --panel-2: #0e121a;
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f7fb;
  --muted: #8b97a8;
  --dim: #5a6572;
  --accent: #b6ff3c;
  --accent-bright: #caff6a;
  --accent-soft: rgba(182, 255, 60, 0.1);
  --accent-line: rgba(182, 255, 60, 0.3);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --mono: ui-monospace, "Cascadia Mono", "JetBrains Mono", Consolas, monospace;
  --wrap: 1200px;
  --pad: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--accent);
  color: #08110a;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 10px 16px;
  background: var(--accent);
  color: #08110a;
  border-radius: 0 0 10px 0;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.mono {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---------------------------------------------------------- scroll chrome */

.nx-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 120;
  pointer-events: none;
}
.nx-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #4de8ff);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(10px);
  color: var(--text);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.2s, color 0.2s;
}
.to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.to-top:hover {
  border-color: var(--accent-line);
  color: var(--accent);
}
.to-top svg {
  width: 17px;
  height: 17px;
}

/* ---------------------------------------------------------------- header */

.nx-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nx-header.is-scrolled {
  background: rgba(5, 6, 10, 0.74);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.nx-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 70px;
}
.nx-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.nx-brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.nx-brand span {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 3px;
}
.nx-brand b {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.nx-brand i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.24em;
  color: var(--dim);
}

.nx-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nx-nav a {
  position: relative;
  font-size: 12.5px;
  color: var(--muted);
  transition: color 0.18s var(--ease);
}
.nx-nav a:hover {
  color: var(--text);
}
.nx-nav a.is-active {
  color: var(--text);
}
.nx-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -22px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
}

.nx-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.nx-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}
.nx-menu-btn svg {
  width: 18px;
  height: 18px;
}

.nx-mobile {
  position: fixed;
  inset: 70px 0 auto 0;
  z-index: 99;
  display: none;
  padding: 8px var(--pad) 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 6, 10, 0.97);
  backdrop-filter: blur(18px);
}
.nx-mobile.is-open {
  display: block;
}
.nx-mobile a {
  display: block;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--text);
}
.nx-mobile .nx-btn {
  width: 100%;
  margin-top: 20px;
}

/* ------------------------------------------------------------------ hero */

.nx-hero {
  position: relative;
  padding: 150px 0 clamp(70px, 8vw, 110px);
  overflow: hidden;
}
.nx-hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 720px;
  background: radial-gradient(46% 50% at 50% 40%, rgba(182, 255, 60, 0.14), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.nx-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(60% 45% at 50% 0%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(60% 45% at 50% 0%, #000 20%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}
.nx-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
}

.nx-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.nx-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.nx-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.9rem, 5.6vw, 5.1rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.96;
}
.nx-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.04em;
  letter-spacing: -0.01em;
  color: var(--accent);
}

.nx-lede {
  max-width: 44ch;
  margin: 24px 0 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

.nx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.nx-stats {
  display: flex;
  flex-wrap: wrap;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}
.nx-stats li {
  padding: 0 26px;
  border-left: 1px solid var(--line);
}
.nx-stats li:first-child {
  padding-left: 0;
  border-left: 0;
}
.nx-stats b {
  display: block;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.nx-stats span {
  display: block;
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.nx-stage {
  position: relative;
}
.nx-stage::before {
  content: "";
  position: absolute;
  inset: 8% -8% -14%;
  background: radial-gradient(50% 55% at 50% 50%, rgba(182, 255, 60, 0.2), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}
.nx-shot {
  position: relative;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: rotate(-1.4deg);
  overflow: hidden;
}
.nx-shot img {
  width: 100%;
  height: auto;
}
.nx-shot-tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(5, 6, 10, 0.78);
  backdrop-filter: blur(8px);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}
.nx-shot-tag i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------------------------------------------------------------- ticker */

.nx-ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  background: var(--panel);
}
.nx-ticker-track {
  display: flex;
  width: max-content;
  animation: nx-marquee 46s linear infinite;
}
.nx-ticker-group {
  display: flex;
  gap: 44px;
  padding-right: 44px;
}
.nx-ticker:hover .nx-ticker-track {
  animation-play-state: paused;
}
.nx-ticker span {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
}
.nx-ticker span::after {
  content: "✦";
  color: var(--accent);
  font-size: 9px;
}
@keyframes nx-marquee {
  to {
    transform: translateX(-50%);
  }
}

/* -------------------------------------------------------------- sections */

.nx-section {
  padding: clamp(72px, 9vw, 118px) 0;
  border-top: 1px solid var(--line);
}
.nx-section:first-of-type {
  border-top: 0;
}

.nx-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(36px, 5vw, 58px);
}
.nx-head .idx {
  display: block;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.nx-head h2 {
  max-width: 17ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.02;
}
.nx-head p {
  max-width: 34ch;
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  text-align: right;
}

/* -------------------------------------------------------------- features */

.nx-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 64px;
}
.nx-feature {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.nx-feature .num {
  padding-top: 3px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.nx-feature h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.025em;
}
.nx-feature p {
  max-width: 42ch;
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* --------------------------------------------------------------- modules */

.nx-modules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 64px;
}
.nx-module {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding: 14px 6px;
  border-top: 1px solid var(--line);
  transition: background 0.2s var(--ease), padding-left 0.2s var(--ease);
}
.nx-module:hover {
  padding-left: 14px;
  background: rgba(255, 255, 255, 0.025);
}
.nx-module .n {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--dim);
}
.nx-module .t {
  font-size: 14.5px;
  letter-spacing: -0.01em;
}
.nx-module .m {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--dim);
}
.nx-module:hover .t {
  color: var(--accent);
}

/* ----------------------------------------------------------- screenshots */

.nx-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 0 20px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}
.nx-rail::-webkit-scrollbar {
  height: 6px;
}
.nx-rail::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.16);
}
.nx-slide {
  flex: 0 0 min(74vw, 720px);
  margin: 0;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  overflow: hidden;
}
.nx-slide img {
  width: 100%;
  height: auto;
  transition: transform 0.5s var(--ease);
}
.nx-slide:hover img {
  transform: scale(1.015);
}
.nx-slide figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.nx-slide figcaption b {
  font-weight: 400;
  color: var(--dim);
}

/* ------------------------------------------------------------- manifesto */

.nx-manifesto {
  padding: clamp(84px, 12vw, 150px) 0;
  border-top: 1px solid var(--line);
}
.nx-manifesto p {
  max-width: 20ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.1rem, 5vw, 3.9rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.02;
}
.nx-manifesto em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.nx-manifesto small {
  display: block;
  max-width: 46ch;
  margin-top: 26px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* ------------------------------------------------------------------- faq */

.nx-faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.nx-faq aside {
  position: sticky;
  top: 110px;
}
.nx-faq aside h2 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  letter-spacing: -0.045em;
  line-height: 1.04;
}
.nx-faq aside p {
  max-width: 30ch;
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
.nx-faq-list {
  border-top: 1px solid var(--line);
}
.nx-faq-item {
  border-bottom: 1px solid var(--line);
}
.nx-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 2px;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.nx-faq-item summary::-webkit-details-marker {
  display: none;
}
.nx-faq-item summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 18px;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.25s var(--ease);
}
.nx-faq-item[open] summary::after {
  transform: rotate(45deg);
}
.nx-faq-body {
  padding: 0 44px 22px 2px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}
.nx-faq-body code {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text);
}

/* ------------------------------------------------------------------- cta */

.nx-cta {
  padding: clamp(72px, 10vw, 120px) 0;
  border-top: 1px solid var(--line);
}
.nx-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(32px, 5vw, 56px);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: radial-gradient(90% 140% at 0% 0%, rgba(182, 255, 60, 0.08), transparent 60%), var(--panel);
}
.nx-cta h2 {
  max-width: 18ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -0.045em;
  line-height: 1.04;
}
.nx-cta p {
  max-width: 38ch;
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
.nx-cta-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.nx-cta-side .mono {
  color: var(--dim);
}

/* ---------------------------------------------------------------- footer */

.nx-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 34px;
}
.nx-footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}
.nx-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nx-footer-brand img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}
.nx-footer-brand b {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.nx-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}
.nx-footer-links a {
  font-size: 12px;
  color: var(--muted);
  transition: color 0.18s var(--ease);
}
.nx-footer-links a:hover {
  color: var(--text);
}
.nx-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}
.nx-footer-bottom .live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.nx-footer-bottom .live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.nx-footer-bottom a {
  color: var(--muted);
}
.nx-footer-bottom a:hover {
  color: var(--text);
}

/* --------------------------------------------------------------- buttons */

.nx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.nx-btn svg {
  width: 15px;
  height: 15px;
}
.nx-btn-primary {
  background: var(--accent);
  color: #08110a;
}
.nx-btn-primary:hover {
  background: var(--accent-bright);
  transform: translateY(-1px);
}
.nx-btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: transparent;
}
.nx-btn-ghost:hover {
  border-color: var(--accent-line);
  color: var(--accent);
}
.nx-btn-sm {
  height: 36px;
  padding: 0 15px;
  font-size: 11.5px;
}
.nx-btn-lg {
  height: 50px;
  padding: 0 26px;
  font-size: 13px;
}

/* --------------------------------------------------------------- reveals */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}
[data-parallax] {
  will-change: transform;
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 1024px) {
  .nx-hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .nx-shot {
    transform: none;
    max-width: 760px;
  }
  .nx-features,
  .nx-modules {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .nx-faq {
    grid-template-columns: 1fr;
  }
  .nx-faq aside {
    position: static;
  }
  .nx-head p {
    display: none;
  }
}

@media (max-width: 760px) {
  .nx-nav {
    display: none;
  }
  .nx-menu-btn {
    display: grid;
  }
  .nx-hero {
    padding-top: 118px;
  }
  .nx-stats li {
    padding: 0 16px;
  }
  .nx-stats b {
    font-size: 20px;
  }
  .nx-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .nx-footer-top {
    flex-direction: column;
  }
  .nx-ticker-track {
    animation-duration: 30s;
  }
  .nx-slide {
    flex-basis: 86vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  [data-parallax] {
    transform: none !important;
  }
  .nx-ticker-track {
    animation: none;
  }
  .nx-slide img {
    transition: none;
  }
}

/* anchor offset for the fixed header */
section[id] {
  scroll-margin-top: 92px;
}

.nx-faq aside .idx {
  display: block;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
/* ---------------------------------------------------------- owner credit */

.nx-owner {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin-top: 30px;
  padding: 12px 16px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}
.nx-owner-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent);
  color: #08110a;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
}
.nx-owner b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.nx-owner i {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.nx-owner-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.18s var(--ease);
}
.nx-owner-link:hover {
  color: var(--accent);
}
@media (max-width: 760px) {
  .nx-owner {
    width: 100%;
    flex-wrap: wrap;
  }
  .nx-owner-link {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }
}
/* ------------------------------------------------------------ watermark */

.nx-wm {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("../watermark.svg");
  background-repeat: repeat;
  background-size: 560px 320px;
}

main,
.nx-footer {
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------- invite */

.nx-invite {
  border-top: 1px solid var(--line);
  background: var(--panel);
}
.nx-invite .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 26px;
  padding-bottom: 26px;
}
.nx-invite p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.nx-invite p b {
  color: var(--text);
  font-weight: 500;
}
.nx-invite a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color 0.2s var(--ease);
}
.nx-invite a:hover {
  color: var(--accent-bright);
}
.nx-invite a svg {
  width: 13px;
  height: 13px;
}

@media (max-width: 600px) {
  .nx-wm {
    background-size: 420px 240px;
  }
}
/* =========================================================
   Refinement pass — hero composition, module groups, rail
   ========================================================= */

.nx-hero {
  padding: 140px 0 clamp(64px, 7vw, 96px);
}
.nx-hero .wrap {
  position: relative;
  z-index: 1;
}
.nx-title {
  max-width: 16ch;
  font-size: clamp(2.7rem, 5.4vw, 5rem);
  text-wrap: balance;
}
.nx-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: start;
  gap: clamp(28px, 4vw, 64px);
  margin-top: clamp(34px, 4vw, 52px);
}
.nx-hero-copy {
  padding-top: 4px;
}

.nx-shot-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.nx-shot-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.nx-shot-bar i:nth-child(1) {
  background: rgba(255, 95, 86, 0.55);
}
.nx-shot-bar i:nth-child(2) {
  background: rgba(255, 189, 46, 0.5);
}
.nx-shot-bar i:nth-child(3) {
  background: rgba(39, 201, 63, 0.5);
}
.nx-shot-bar em {
  margin-left: auto;
  font-family: var(--mono);
  font-style: normal;
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.nx-modules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 0 64px;
}
.nx-group-stack {
  display: grid;
  gap: 34px;
}
.nx-group-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 4px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}
.nx-group-label span {
  color: var(--accent);
}

.nx-head-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.nx-counter {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--dim);
}
.nx-counter b {
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
}
.nx-counter i {
  font-style: normal;
}

.nx-rail {
  cursor: grab;
}
.nx-rail.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}
.nx-slide img {
  -webkit-user-drag: none;
  user-select: none;
}

.nx-title,
.nx-head h2,
.nx-manifesto p,
.nx-cta h2,
.nx-faq aside h2 {
  text-wrap: balance;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (max-width: 1024px) {
  .nx-hero-grid {
    grid-template-columns: 1fr;
    margin-top: 36px;
  }
  .nx-head-side {
    display: none;
  }
}
/* hard stop for any horizontal overflow on small screens */
html {
  overflow-x: hidden;
  overflow-x: clip;
}
body {
  overflow-x: hidden;
  overflow-x: clip;
}
.nx-ticker,
.nx-rail,
.nx-hero {
  contain: paint;
}
.nx-cta-link {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color 0.2s var(--ease);
}
.nx-cta-link:hover {
  color: var(--accent-bright);
}