:root {
  --nx-ink: #0b0d14;
  --nx-ink-soft: #141826;
  --nx-ink-line: #232838;
  --nx-paper: #f4f2ed;
  --nx-paper-dim: #d8d5cd;
  --nx-flare: #ff4d2e;
  --nx-flare-deep: #d92f13;
  --nx-mint: #4ce0b3;
  --nx-violet: #7a5cff;
  --nx-amber: #ffb347;
  --nx-text-on-dark: #eef0f5;
  --nx-text-on-dark-mute: #a7adbf;
  --nx-text-on-light: #17181d;
  --nx-text-on-light-mute: #4d4f57;
  --nx-radius-s: 6px;
  --nx-radius-m: 14px;
  --nx-radius-l: 28px;
  --nx-shadow-soft: 0 20px 50px -30px rgba(11, 13, 20, 0.55);
  --nx-shadow-lift: 0 34px 70px -40px rgba(11, 13, 20, 0.75);
  --nx-font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --nx-font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --nx-font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;
  --nx-container: 1240px;
  --nx-gutter: clamp(1rem, 4vw, 4rem);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: var(--nx-font-body);
  background-color: var(--nx-ink);
  color: var(--nx-text-on-dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main {
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--nx-font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.022em;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3.1rem);
}

h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--nx-mint);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover,
a:focus-visible {
  color: var(--nx-flare);
}

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

::selection {
  background: var(--nx-flare);
  color: #fff;
}

/* Layout scaffolding */
.nx-shell {
  width: 100%;
  max-width: var(--nx-container);
  margin-inline: auto;
  padding-inline: var(--nx-gutter);
}

.nx-shell--wide {
  max-width: 1480px;
}

.nx-shell--narrow {
  max-width: 820px;
}

.nx-section {
  position: relative;
  padding-block: clamp(4rem, 9vw, 8.5rem);
}

.nx-section--tight {
  padding-block: clamp(3rem, 6vw, 5.5rem);
}

.nx-section--light {
  background: var(--nx-paper);
  color: var(--nx-text-on-light);
}

.nx-section--light h1,
.nx-section--light h2,
.nx-section--light h3 {
  color: var(--nx-text-on-light);
}

.nx-section--light p {
  color: var(--nx-text-on-light-mute);
}

.nx-section--dark {
  background: var(--nx-ink);
}

.nx-section--soft {
  background: var(--nx-ink-soft);
}

.nx-section--bleed {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
}

/* Type utilities */
.nx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--nx-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--nx-mint);
}

.nx-eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.nx-lede {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  color: var(--nx-text-on-dark-mute);
  max-width: 62ch;
}

.nx-section--light .nx-lede {
  color: var(--nx-text-on-light-mute);
}

.nx-index {
  font-family: var(--nx-font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--nx-violet);
}

.nx-display-outline {
  font-family: var(--nx-font-display);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--nx-ink-line);
}

.nx-rule {
  border: 0;
  height: 1px;
  background: var(--nx-ink-line);
  opacity: 0.7;
}

/* Buttons */
.nx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.7rem;
  font-family: var(--nx-font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border-radius: var(--nx-radius-s);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.nx-btn:focus-visible {
  outline: 2px solid var(--nx-mint);
  outline-offset: 3px;
}

.nx-btn:hover {
  transform: translateY(-2px);
}

.nx-btn--primary {
  background: var(--nx-flare);
  color: #fff;
}

.nx-btn--primary:hover {
  background: var(--nx-flare-deep);
  color: #fff;
}

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

.nx-btn--ghost:hover {
  border-color: var(--nx-mint);
  color: var(--nx-mint);
}

.nx-btn--light {
  background: var(--nx-ink);
  color: var(--nx-paper);
}

.nx-btn--light:hover {
  background: var(--nx-flare);
  color: #fff;
}

.nx-btn--wide {
  width: 100%;
}

/* Header */
.nx-masthead {
  position: sticky;
  top: 0;
  z-index: 1040;
  background: rgba(11, 13, 20, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--nx-ink-line);
}

.nx-masthead__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.9rem;
}

.nx-masthead__meta {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: var(--nx-text-on-dark-mute);
}

.nx-masthead__meta i {
  color: var(--nx-mint);
  margin-right: 0.4rem;
}

.nx-menu-toggle {
  background: transparent;
  border: 1px solid var(--nx-ink-line);
  border-radius: var(--nx-radius-s);
  color: var(--nx-text-on-dark);
  width: 44px;
  height: 44px;
  font-size: 1.15rem;
}

.nx-menu-toggle:hover {
  border-color: var(--nx-mint);
  color: var(--nx-mint);
}

.nx-nav-list {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
}

.nx-nav-list a {
  color: var(--nx-text-on-dark);
  font-weight: 500;
}

.nx-nav-list a:hover {
  color: var(--nx-mint);
}

/* Hero */
.nx-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  padding-block: clamp(6rem, 12vw, 10rem) clamp(4rem, 9vw, 7rem);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.nx-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
}

.nx-hero__title {
  font-size: clamp(2.9rem, 8vw, 6.2rem);
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

.nx-hero__title span {
  display: block;
  color: var(--nx-flare);
  -webkit-text-stroke: 0;
}

.nx-hero__rail {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  border-left: 1px solid var(--nx-ink-line);
  padding-left: 1.6rem;
}

.nx-hero__stat {
  font-family: var(--nx-font-mono);
  font-size: 2rem;
  color: var(--nx-mint);
  line-height: 1;
}

/* Slider */
.nx-slider {
  position: relative;
}

.nx-slider__track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.nx-slide {
  min-width: 100%;
  padding-inline: var(--nx-gutter);
}

.nx-slider__controls {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-top: 2rem;
}

.nx-slider__dot {
  width: 34px;
  height: 3px;
  border: 0;
  background: var(--nx-ink-line);
  cursor: pointer;
  transition: background-color 0.3s ease, width 0.3s ease;
}

.nx-slider__dot.is-active {
  background: var(--nx-flare);
  width: 58px;
}

.nx-slider__arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--nx-ink-line);
  background: transparent;
  color: var(--nx-text-on-dark);
}

.nx-slider__arrow:hover {
  border-color: var(--nx-mint);
  color: var(--nx-mint);
}

/* Cards */
.nx-card {
  position: relative;
  background: var(--nx-ink-soft);
  border: 1px solid var(--nx-ink-line);
  border-radius: var(--nx-radius-m);
  padding: 2rem;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.nx-card:hover {
  transform: translateY(-6px);
  border-color: var(--nx-violet);
  box-shadow: var(--nx-shadow-lift);
}

.nx-card__tag {
  font-family: var(--nx-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nx-amber);
}

.nx-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--nx-radius-s);
  background: var(--nx-ink);
  margin-bottom: 1.4rem;
}

.nx-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.nx-card:hover .nx-card__media img {
  transform: scale(1.06);
}

.nx-card__price {
  font-family: var(--nx-font-display);
  font-size: 1.9rem;
  color: var(--nx-mint);
}

/* Bento composition */
.nx-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.2rem;
}

.nx-bento__lead {
  grid-column: span 7;
}

.nx-bento__side {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.nx-bento__tile {
  grid-column: span 4;
}

/* Marquee */
.nx-marquee {
  overflow: hidden;
  border-block: 1px solid var(--nx-ink-line);
  padding-block: 1.4rem;
}

.nx-marquee__inner {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: nx-drift 32s linear infinite;
  font-family: var(--nx-font-display);
  font-size: clamp(1.4rem, 3vw, 2.6rem);
  text-transform: uppercase;
  color: var(--nx-text-on-dark-mute);
}

.nx-marquee__inner span {
  color: var(--nx-flare);
}

@keyframes nx-drift {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .nx-marquee__inner {
    animation: none;
  }
}

/* Steps */
.nx-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: nx-step;
}

.nx-steps li {
  counter-increment: nx-step;
  position: relative;
  padding: 1.6rem 0 1.6rem 4.6rem;
  border-top: 1px solid var(--nx-ink-line);
}

.nx-steps li::before {
  content: counter(nx-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.6rem;
  font-family: var(--nx-font-mono);
  font-size: 1.1rem;
  color: var(--nx-flare);
}

/* Gallery */
.nx-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.nx-gallery__item {
  position: relative;
  border-radius: var(--nx-radius-m);
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.nx-gallery__item--wide {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

.nx-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nx-gallery__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.2rem;
  background: linear-gradient(transparent, rgba(11, 13, 20, 0.92));
  font-size: 0.9rem;
}

/* FAQ */
.nx-faq .accordion-item {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--nx-ink-line);
}

.nx-faq .accordion-button {
  background: transparent;
  color: var(--nx-text-on-dark);
  font-family: var(--nx-font-display);
  font-size: 1.05rem;
  padding-inline: 0;
  box-shadow: none;
}

.nx-faq .accordion-button:not(.collapsed) {
  color: var(--nx-mint);
  background: transparent;
}

.nx-faq .accordion-button::after {
  filter: invert(1) brightness(1.4);
}

.nx-faq .accordion-body {
  color: var(--nx-text-on-dark-mute);
  padding-inline: 0;
}

/* Forms */
.nx-form {
  background: var(--nx-ink-soft);
  border: 1px solid var(--nx-ink-line);
  border-radius: var(--nx-radius-l);
  padding: clamp(1.6rem, 4vw, 3rem);
}

.nx-form label {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--nx-text-on-dark-mute);
  margin-bottom: 0.4rem;
}

.nx-form .form-control,
.nx-form .form-select {
  background: var(--nx-ink);
  border: 1px solid var(--nx-ink-line);
  color: var(--nx-text-on-dark);
  border-radius: var(--nx-radius-s);
  padding: 0.85rem 1rem;
}

.nx-form .form-control:focus,
.nx-form .form-select:focus {
  background: var(--nx-ink);
  border-color: var(--nx-mint);
  color: var(--nx-text-on-dark);
  box-shadow: 0 0 0 3px rgba(76, 224, 179, 0.18);
}

.nx-form .form-control::placeholder {
  color: #6b7188;
}

.nx-form__note {
  font-size: 0.82rem;
  color: var(--nx-text-on-dark-mute);
}

.nx-form__error {
  color: #ff8a72;
  font-size: 0.82rem;
  margin-top: 0.3rem;
  display: none;
}

.nx-form__error.is-visible {
  display: block;
}

/* Price tables */
.nx-plan {
  border: 1px solid var(--nx-ink-line);
  border-radius: var(--nx-radius-m);
  padding: 2.2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--nx-ink-soft);
}

.nx-plan--featured {
  border-color: var(--nx-flare);
  background: linear-gradient(160deg, rgba(255, 77, 46, 0.08), var(--nx-ink-soft));
}

.nx-plan__list {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 2rem;
  flex-grow: 1;
}

.nx-plan__list li {
  padding: 0.5rem 0 0.5rem 1.6rem;
  position: relative;
  color: var(--nx-text-on-dark-mute);
  border-bottom: 1px solid rgba(35, 40, 56, 0.6);
}

.nx-plan__list li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--nx-mint);
  font-size: 0.78rem;
}

/* Contact map */
.nx-map {
  border: 1px solid var(--nx-ink-line);
  border-radius: var(--nx-radius-m);
  overflow: hidden;
  min-height: 380px;
}

.nx-map iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  filter: grayscale(0.4) contrast(1.1);
}

/* Footer */
.nx-footer {
  background: var(--nx-ink-soft);
  border-top: 1px solid var(--nx-ink-line);
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
  font-size: 0.92rem;
}

.nx-footer h4 {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nx-mint);
  margin-bottom: 1.1rem;
}

.nx-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nx-footer li {
  margin-bottom: 0.5rem;
}

.nx-footer a,
.nx-footer span {
  color: var(--nx-text-on-dark-mute);
}

.nx-footer a:hover {
  color: var(--nx-mint);
}

.nx-footer__legal {
  border-top: 1px solid var(--nx-ink-line);
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--nx-text-on-dark-mute);
}

/* Cookie banner — unique Nexusforgeai styling */
.nx-cookie-veil {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 1080;
  padding: 0 var(--nx-gutter) 1.4rem;
  pointer-events: none;
}

.nx-cookie-veil[hidden] {
  display: none;
}

.nx-cookie-console {
  pointer-events: auto;
  max-width: 940px;
  margin-inline: auto;
  background: linear-gradient(135deg, #141826 0%, #0b0d14 100%);
  border: 1px solid var(--nx-ink-line);
  border-left: 3px solid var(--nx-flare);
  border-radius: var(--nx-radius-m);
  box-shadow: var(--nx-shadow-lift);
  padding: 1.4rem 1.6rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1.2rem;
  align-items: center;
}

.nx-cookie-console__glyph {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--nx-radius-s);
  background: rgba(122, 92, 255, 0.14);
  color: var(--nx-violet);
  font-size: 1.3rem;
}

.nx-cookie-console__copy {
  font-size: 0.9rem;
  color: var(--nx-text-on-dark-mute);
}

.nx-cookie-console__copy strong {
  display: block;
  font-family: var(--nx-font-display);
  font-size: 1rem;
  color: var(--nx-text-on-dark);
  margin-bottom: 0.25rem;
}

.nx-cookie-console__copy a {
  color: var(--nx-mint);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nx-cookie-console__actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.nx-cookie-cmd {
  font-family: var(--nx-font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  padding: 0.7rem 1.2rem;
  border-radius: var(--nx-radius-s);
  border: 1px solid var(--nx-ink-line);
  background: transparent;
  color: var(--nx-text-on-dark);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nx-cookie-cmd:hover {
  border-color: var(--nx-mint);
  color: var(--nx-mint);
}

.nx-cookie-cmd--allow {
  background: var(--nx-flare);
  border-color: var(--nx-flare);
  color: #fff;
}

.nx-cookie-cmd--allow:hover {
  background: var(--nx-flare-deep);
  border-color: var(--nx-flare-deep);
  color: #fff;
}

@media (max-width: 768px) {
  .nx-cookie-console {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .nx-cookie-console__glyph {
    display: none;
  }

  .nx-cookie-console__actions {
    flex-direction: column;
  }

  .nx-cookie-cmd {
    width: 100%;
  }
}

/* Utility */
.nx-reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.nx-reveal-up.is-shown {
  opacity: 1;
  transform: none;
}

.nx-clip-slant {
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}

.nx-stack-lg > * + * {
  margin-top: 2rem;
}

.nx-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.nx-chip {
  font-family: var(--nx-font-mono);
  font-size: 0.75rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--nx-ink-line);
  border-radius: 999px;
  color: var(--nx-text-on-dark-mute);
}

/* Responsive tuning */
@media (max-width: 991px) {
  .nx-hero__grid {
    grid-template-columns: 1fr;
  }

  .nx-hero__rail {
    border-left: 0;
    border-top: 1px solid var(--nx-ink-line);
    padding-left: 0;
    padding-top: 1.4rem;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
  }

  .nx-bento__lead,
  .nx-bento__side,
  .nx-bento__tile {
    grid-column: span 12;
  }

  .nx-nav-list {
    flex-direction: column;
    gap: 0.9rem;
  }
}

@media (max-width: 576px) {
  .nx-gallery__item--wide {
    grid-column: span 1;
  }

  .nx-card {
    padding: 1.5rem;
  }

  .nx-footer__legal {
    flex-direction: column;
  }
}
/* ===== Contrast fixes (dark cards inside light sections) ===== */
.nx-card h1,
.nx-card h2,
.nx-card h3,
.nx-card h4,
.nx-card h5,
.nx-card h6,
.nx-section--light .nx-card h1,
.nx-section--light .nx-card h2,
.nx-section--light .nx-card h3,
.nx-section--light .nx-card h4,
.nx-section--light .nx-card h5,
.nx-section--light .nx-card h6 {
  color: var(--nx-text-on-dark);
}

.nx-card p,
.nx-section--light .nx-card p {
  color: var(--nx-text-on-dark-mute);
}

.nx-card strong,
.nx-card b,
.nx-section--light .nx-card strong,
.nx-section--light .nx-card b {
  color: var(--nx-text-on-dark);
}

/* ===== Primary button contrast (white text on flare) ===== */
.nx-btn--primary,
a.nx-btn.nx-btn--primary {
  background-color: #c62b10;
  color: #fff;
}

.nx-btn--primary:hover,
.nx-btn--primary:focus-visible,
a.nx-btn.nx-btn--primary:hover {
  background-color: #a82209;
  color: #fff;
}

/* ===== Hero readability on small screens ===== */
@media (max-width: 768px) {
  .nx-section--dark .nx-eyebrow {
    color: #8ff0d2;
  }

  .nx-section--dark .nx-lede {
    color: #eef0f5;
  }
}

/* --- Contrast & a11y overrides (append-only) --- */

/* Outline display numerals: give solid readable color on dark surfaces */
.nx-section--dark .nx-display-outline,
.nx-section--soft .nx-display-outline,
.nx-hero .nx-display-outline,
.nx-section:not(.nx-section--light):not(.nx-section--dark):not(.nx-section--soft) .nx-display-outline {
  color: var(--nx-text-on-dark);
  -webkit-text-stroke: 0;
}

/* Chips sitting on photographic/hero backgrounds need a solid backdrop */
.nx-hero .nx-chip {
  background: rgba(11, 13, 20, 0.88);
  color: var(--nx-text-on-dark);
  border-color: rgba(238, 240, 245, 0.28);
}

/* Primary button: darker fill so white label meets contrast */
.nx-btn--primary {
  background: var(--nx-flare-deep);
}
.nx-btn--primary:hover {
  background: #b0250d;
}

/* === Contrast fixes (about page) === */

/* Lighter violet for numeric index labels on dark surfaces (was 3.3–3.8:1) */
.nx-index {
  color: #a99bff;
}

/* Keep index labels readable on light sections */
.nx-section--light .nx-index {
  color: #5b3ff0;
}

/* Ghost button rendered on light sections used dark-mode text (1.02:1) */
.nx-section--light .nx-btn--ghost {
  color: var(--nx-text-on-light);
  border-color: rgba(23, 24, 29, 0.4);
}

.nx-section--light .nx-btn--ghost:hover,
.nx-section--light .nx-btn--ghost:focus-visible {
  color: var(--nx-flare-deep);
  border-color: var(--nx-flare-deep);
}

/* === Blog page / light-section contrast fixes (append-only) === */

/* Links sitting directly on light sections used mint (1.49:1). Use a deep
   flare tone that reads clearly on paper backgrounds. */
.nx-section--light a:not(.nx-btn):not(.dropdown-item) {
  color: #a82209;
}

.nx-section--light a:not(.nx-btn):not(.dropdown-item):hover,
.nx-section--light a:not(.nx-btn):not(.dropdown-item):focus-visible {
  color: #7d1906;
}

/* Restore readable link colour inside dark cards/forms that live in a
   light section (their background is dark ink, not paper). */
.nx-section--light .nx-card a:not(.nx-btn),
.nx-section--light .nx-form a:not(.nx-btn),
.nx-section--light .nx-form__note a {
  color: var(--nx-mint);
}

/* Ghost buttons inside dark cards: the generic light-section rule set dark
   text (1:1). Keep them light-on-dark. */
.nx-section--light .nx-card .nx-btn--ghost,
.nx-card .nx-btn--ghost {
  color: var(--nx-text-on-dark);
  border-color: var(--nx-ink-line);
}

.nx-section--light .nx-card .nx-btn--ghost:hover,
.nx-section--light .nx-card .nx-btn--ghost:focus-visible,
.nx-card .nx-btn--ghost:hover,
.nx-card .nx-btn--ghost:focus-visible {
  color: var(--nx-mint);
  border-color: var(--nx-mint);
}

/* Placeholder text was 4.01:1 on the dark input background. */
.nx-form .form-control::placeholder {
  color: #7c849c;
  opacity: 1;
}

/* === Contacts page: form placeholder contrast (was 4.01:1) === */
.nx-form .form-control::placeholder,
.nx-form .form-select::placeholder {
  color: #a7adbf;
  opacity: 1;
}

/* === Contacts page: FAQ accordion inside light sections (was 1.02:1) === */
.nx-section--light .nx-faq .accordion-button,
.nx-faq.accordion-button {
  color: var(--nx-text-on-light);
}

.nx-section--light .nx-faq .accordion-button:not(.collapsed) {
  color: #0a6b50;
  background: transparent;
}

.nx-section--light .nx-faq .accordion-button::after {
  filter: none;
}

.nx-section--light .nx-faq .accordion-button:focus {
  box-shadow: none;
}

.nx-section--light .nx-faq .accordion-body {
  color: var(--nx-text-on-light-mute);
}

/* === Cookie allow button contrast (was 3.31:1 white on flare) === */
.nx-cookie-cmd--allow {
  background: #c62b10;
  border-color: #c62b10;
  color: #fff;
}

.nx-cookie-cmd--allow:hover,
.nx-cookie-cmd--allow:focus-visible {
  background: #a82209;
  border-color: #a82209;
  color: #fff;
}

/* === Price page: dark plan cards placed inside light sections === */

/* Headings inside dark .nx-plan cards must stay light, even when the
   surrounding section sets light-surface colors. */
.nx-plan h1,
.nx-plan h2,
.nx-plan h3,
.nx-plan h4,
.nx-plan h5,
.nx-plan h6,
.nx-section--light .nx-plan h1,
.nx-section--light .nx-plan h2,
.nx-section--light .nx-plan h3,
.nx-section--light .nx-plan h4,
.nx-section--light .nx-plan h5,
.nx-section--light .nx-plan h6 {
  color: var(--nx-text-on-dark);
}

/* Body copy inside dark plan cards */
.nx-plan p,
.nx-section--light .nx-plan p {
  color: var(--nx-text-on-dark-mute);
}

/* Price line keeps its mint accent on the dark card */
.nx-plan .nx-card__price,
.nx-section--light .nx-plan .nx-card__price {
  color: var(--nx-mint);
}

/* Feature list contrast on the dark card */
.nx-plan .nx-plan__list li,
.nx-section--light .nx-plan .nx-plan__list li {
  color: var(--nx-text-on-dark-mute);
}

/* Solid opaque dark surface for the featured plan: the previous
   translucent gradient made text render against an unpredictable
   backdrop and dropped the tag / list items below contrast minimums. */
.nx-plan--featured {
  background-color: #1b2033;
  background-image: none;
}

/* === Testimonials (home, "Кілька слів від тих, хто вже запустив") ===
   The three review cards collapsed into the left portion of the wide
   container instead of filling the row. Force an explicit equal-width,
   evenly distributed track layout that spans the full container width and
   collapses to a single column on narrow screens (mobile stays intact). */
.nx-section .row:has(> .nx-card-row) {
  --bs-gutter-x: 1.5rem;
}

.nx-card-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  width: 100%;
  margin-inline: 0;
}

.nx-card-row > [class*="col-"] {
  width: 100%;
  max-width: 100%;
  flex: 0 0 auto;
  padding-inline: 0;
}

.nx-card-row > [class*="col-"] > .nx-card {
  width: 100%;
}

@media (max-width: 991.98px) {
  .nx-card-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .nx-card-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }
}

/* === Home FAQ section (Те, що питають найчастіше перед стартом) ===
   The FAQ list only occupied the left third of the container and left the
   remaining two thirds empty. The two-column row (intro + accordion) collapsed
   because the accordion column did not claim the flexible width. Force an
   explicit, evenly distributed two-column track that spans the whole container
   and collapses to a single column on narrow screens (mobile unchanged). */
.nx-section .row:has(> .nx-faq) {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  column-gap: var(--nx-gutter);
  row-gap: 2.5rem;
  align-items: start;
}

.nx-section .row:has(> .nx-faq) > [class*="col-"] {
  width: 100%;
  max-width: 100%;
  flex: 0 0 auto;
  padding-inline: 0;
}

.nx-faq {
  width: 100%;
}

@media (max-width: 991.98px) {
  .nx-section .row:has(> .nx-faq) {
    grid-template-columns: minmax(0, 1fr);
  }
}
