/* Nexus Tracker Bot — landing (from poster design system) */

.nexus-page {
  --nx-bg: #f4f8fc;
  --nx-bg-2: #eef4fa;
  --nx-panel: #ffffff;
  --nx-line: #dfe8f0;
  --nx-line-2: #c5d4e4;
  --nx-ink: #0f172a;
  --nx-ink-2: #475569;
  --nx-ink-3: #64748b;
  --nx-accent: #0b8ec9;
  --nx-accent-2: #097aa8;
  --nx-accent-line: rgba(11, 142, 201, 0.32);
  --nx-red: #dc2626;
  --mobile-nav-offset: var(--header-h);

  font-family: "Inter", system-ui, sans-serif;
  color: var(--nx-ink);
  background: var(--nx-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.nexus-page h1,
.nexus-page h2,
.nexus-page h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--nx-ink);
}

.nexus-page em {
  font-style: italic;
  color: var(--nx-accent);
}

.nx-container {
  width: min(1100px, 100% - 2rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--nx-accent);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.5rem;
}

/* Ubai Store header — prominent on Nexus homepage */
@media (min-width: 768px) {
  .nexus-page .site-header-shell--prominent {
    box-shadow: 0 4px 24px rgba(11, 142, 201, 0.14);
    border-bottom: 2px solid var(--color-primary-light);
  }
}

.nexus-page .site-header-shell--prominent .logo img {
  height: 50px;
}

.nx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.1rem;
  min-height: 42px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.nx-btn:active {
  transform: scale(0.98);
}

.nx-btn--primary {
  background: var(--nx-accent);
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(11, 142, 201, 0.5);
}

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

.nx-btn--ghost {
  background: var(--nx-panel);
  color: var(--nx-ink);
  border: 1px solid var(--nx-line-2);
}

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

/* Hero */
.nx-hero {
  position: relative;
  overflow: hidden;
  padding: 3rem 1rem 2.5rem;
}

.nx-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(11, 142, 201, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 142, 201, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 20%, transparent 75%);
  pointer-events: none;
}

.nx-hero::after {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 120%);
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(11, 142, 201, 0.12), transparent 65%);
  pointer-events: none;
}

.nx-hero__figure {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 0;
  width: min(52%, 28rem);
  height: min(100%, 22rem);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  pointer-events: none;
}

.nx-hero__figure::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    var(--nx-bg) 0%,
    rgba(244, 248, 252, 0.92) 28%,
    rgba(244, 248, 252, 0.35) 55%,
    transparent 78%
  );
}

.nx-hero__figure img {
  position: relative;
  z-index: 0;
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: right bottom;
  transform: scaleX(-1);
  filter: drop-shadow(0 12px 28px rgba(15, 23, 42, 0.12));
}

.nx-hero__inner {
  position: relative;
  z-index: 2;
  text-align: left;
}

@media (min-width: 768px) {
  .nx-hero {
    padding: 3.5rem 1rem 3rem;
  }

  .nx-hero__figure {
    width: min(46%, 32rem);
    height: calc(100% + 1rem);
    right: max(0px, calc((100% - 1100px) / 2));
  }
}

@media (min-width: 1024px) {
  .nx-hero__figure {
    width: min(42%, 36rem);
    height: 100%;
  }

  .nx-hero__tagline {
    max-width: 32rem;
  }
}

@media (max-width: 639px) {
  .nx-hero {
    padding-bottom: 3.25rem;
  }

  .nx-hero::before {
    mask-image: radial-gradient(ellipse 100% 50% at 50% 0%, black 15%, transparent 70%);
  }

  .nx-hero::after {
    opacity: 0.45;
    height: 280px;
  }

  .nx-hero__figure {
    width: 13.5rem;
    height: 14.5rem;
    right: -1.25rem;
    bottom: -0.25rem;
    opacity: 1;
  }

  .nx-hero__figure::before {
    display: none;
  }

  .nx-hero__figure img {
    filter: drop-shadow(0 10px 24px rgba(15, 23, 42, 0.22));
  }

  .nx-hero__inner {
    max-width: 100%;
    padding-right: 0.25rem;
  }
}

.nx-hero__eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nx-accent);
  margin: 0 0 0.5rem;
}

.nx-hero__title {
  font-size: clamp(3.5rem, 14vw, 6.5rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin: 0;
}

.nx-hero__tagline {
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  color: var(--nx-ink-2);
  margin: 1rem 0 0;
  max-width: 36rem;
  line-height: 1.45;
}

.nx-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.nx-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  background: var(--nx-bg-2);
  border: 1px solid var(--nx-line-2);
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: var(--nx-ink-2);
}

.nx-chip svg {
  width: 14px;
  height: 14px;
  color: var(--nx-accent);
  flex-shrink: 0;
}

.nx-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* Sections */
.nx-section {
  padding: 3rem 1rem;
}

.nx-section--alt {
  background: var(--nx-bg-2);
  border-block: 1px solid var(--nx-line);
}

.nx-section__kicker {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nx-accent);
  margin: 0 0 0.5rem;
}

.nx-section__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 1.5rem;
  text-align: center;
}

/* Pricing table */
.nx-pricing-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--nx-line);
  border-radius: 16px;
  background: var(--nx-panel);
  box-shadow: 0 12px 32px -16px rgba(0, 0, 0, 0.08);
}

.nx-compare {
  display: grid;
  grid-template-columns: minmax(140px, 1.8fr) repeat(4, minmax(72px, 1fr));
  min-width: 640px;
  font-size: 0.875rem;
}

.nx-compare > div {
  padding: 0.75rem 0.65rem;
  border-bottom: 1px solid var(--nx-line);
  border-right: 1px solid var(--nx-line);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.nx-compare > div:nth-child(5n) {
  border-right: none;
}

.nx-compare > div:nth-last-child(-n + 5) {
  border-bottom: none;
}

.nx-compare .nx-head {
  background: var(--nx-bg-2);
  flex-direction: column;
  gap: 0.15rem;
  font-family: "Fraunces", Georgia, serif;
}

.nx-compare .nx-head .plan {
  font-size: 1.35rem;
  font-weight: 700;
}

.nx-compare .nx-head.featured {
  background: radial-gradient(
      140% 80% at 50% 0%,
      rgba(11, 142, 201, 0.14),
      transparent 60%
    ),
    var(--nx-bg-2);
  border-bottom-color: var(--nx-accent-line);
  position: relative;
}

.nx-compare .nx-head.featured .plan {
  color: var(--nx-accent);
}

.nx-compare .nx-head.featured::after {
  content: "★";
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 0.75rem;
  color: var(--nx-accent);
}

.nx-compare .nx-label {
  justify-content: flex-start;
  text-align: left;
  background: var(--nx-bg-2);
  font-weight: 500;
  color: var(--nx-ink);
  gap: 0.35rem;
}

.nx-compare .nx-label svg {
  width: 14px;
  height: 14px;
  color: var(--nx-accent);
  flex-shrink: 0;
}

.nx-compare .nx-cell.featured {
  background: rgba(11, 142, 201, 0.04);
}

.nx-compare .mono {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
}

.nx-compare .price .was {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  color: var(--nx-red);
  text-decoration: line-through;
  opacity: 0.8;
}

.nx-compare .price .amt {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
}

.nx-compare .price.featured .amt {
  color: var(--nx-accent);
}

.nx-compare .price .cyc {
  font-size: 0.65rem;
  color: var(--nx-ink-3);
}

/* Cards */
.nx-card {
  background: var(--nx-panel);
  border: 1px solid var(--nx-line);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  height: 100%;
}

.nx-card--tinted {
  background: radial-gradient(
      140% 80% at 0% 0%,
      rgba(11, 142, 201, 0.08),
      transparent 55%
    ),
    var(--nx-panel);
  border-color: var(--nx-accent-line);
}

.nx-card__title {
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
}

.nx-lang-badge {
  display: inline-block;
  background: var(--nx-accent);
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  margin-right: 0.35rem;
}

.nx-check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.nx-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
}

.nx-check-list li::before {
  content: "";
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
  border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
      center/12px no-repeat,
    var(--nx-accent);
}

.nx-lang-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nx-lang-grid li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem 0.35rem 0.45rem;
  background: var(--nx-bg-2);
  border: 1px solid var(--nx-line);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
}

.nx-lang-grid img {
  width: 18px;
  height: 13px;
  border-radius: 2px;
  object-fit: cover;
}

.nx-grid-2 {
  display: grid;
  gap: 1rem;
}

.nx-grid-3 {
  display: grid;
  gap: 1.25rem;
}

.nx-features-more {
  margin-top: 1rem;
}

.nx-col-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nx-ink-3);
  margin: 0 0 0.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px dashed var(--nx-line-2);
}

/* Platforms bar */
.nx-platforms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--nx-panel);
  border: 1px solid var(--nx-line);
  border-radius: 14px;
}

.nx-platforms__label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nx-accent);
}

.nx-platform-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
}

.nx-platform-item svg {
  width: 28px;
  height: 28px;
}

/* KvK bar */
.nx-kvk {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  background: radial-gradient(
      140% 100% at 50% 0%,
      rgba(11, 142, 201, 0.1),
      transparent 60%
    ),
    var(--nx-panel);
  border: 1px solid var(--nx-accent-line);
  border-radius: 14px;
  margin-top: 1rem;
}

.nx-kvk__price {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.5rem;
  color: var(--nx-accent);
}

.nx-kvk__price small {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: var(--nx-ink-3);
  font-weight: 400;
}

/* Bottom CTA */
.nx-cta-band {
  margin: 0 1rem 2rem;
  padding: 1.5rem 1.25rem;
  background: radial-gradient(
      80% 200% at 0% 50%,
      rgba(11, 142, 201, 0.12),
      transparent 55%
    ),
    var(--nx-panel);
  border: 1px solid var(--nx-accent-line);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  box-shadow: 0 14px 30px -20px rgba(11, 142, 201, 0.25);
}

/* Nexus screenshot showcase */
.nx-showcase {
  padding-top: 0.5rem;
}

.nx-showcase__kicker,
.nx-showcase__heading {
  text-align: center;
}

.nx-showcase__lead {
  margin: 0 auto 1.5rem;
  max-width: 32rem;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--nx-ink-2);
  line-height: 1.55;
}

.nx-showcase__grid {
  max-width: 920px;
  margin-inline: auto;
}

.nx-showcase__layout {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.nx-showcase__stack,
.nx-showcase__side {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}

.nx-showcase__item {
  margin: 0;
  min-width: 0;
}

.nx-showcase__btn {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid var(--nx-line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--nx-panel);
  cursor: zoom-in;
  box-shadow: 0 8px 24px -12px rgba(15, 23, 42, 0.2);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.nx-showcase__btn:hover {
  box-shadow: 0 12px 28px -10px rgba(11, 142, 201, 0.28);
  transform: translateY(-2px);
}

.nx-showcase__btn:focus-visible {
  outline: 2px solid var(--nx-accent);
  outline-offset: 2px;
}

.nx-showcase__btn img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: var(--nx-bg-2);
}

.nx-showcase__stack .nx-showcase__btn img {
  max-height: 220px;
}

.nx-showcase__side .nx-showcase__btn img {
  width: 100%;
  height: auto;
  min-height: 180px;
  max-height: 320px;
  object-fit: contain;
}

.nx-showcase__empty {
  margin: 0;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--nx-ink-3);
  border: 1px dashed var(--nx-line-2);
  border-radius: 12px;
}

body.nx-showcase-lightbox-open {
  overflow: hidden;
}

.nx-showcase-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.nx-showcase-lightbox.is-open {
  display: flex;
}

.nx-showcase-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(6px);
}

.nx-showcase-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.nx-showcase-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.nx-showcase-lightbox__figure {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(420px, 96vw);
  max-height: 90dvh;
}

.nx-showcase-lightbox__figure img {
  display: block;
  max-width: 100%;
  max-height: 90dvh;
  width: auto;
  height: auto;
  margin-inline: auto;
  border-radius: 12px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

@media (min-width: 768px) {
  .nx-showcase__layout:not(.nx-showcase__layout--single-col) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
  }

  .nx-showcase__layout:not(.nx-showcase__layout--single-col) .nx-showcase__stack {
    justify-content: center;
  }

  .nx-showcase__layout:not(.nx-showcase__layout--single-col) .nx-showcase__stack .nx-showcase__btn img {
    max-height: 240px;
  }

  .nx-showcase__layout:not(.nx-showcase__layout--single-col) .nx-showcase__side .nx-showcase__item {
    height: 100%;
    display: flex;
  }

  .nx-showcase__layout:not(.nx-showcase__layout--single-col) .nx-showcase__side .nx-showcase__btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
  }

  .nx-showcase__layout:not(.nx-showcase__layout--single-col) .nx-showcase__side .nx-showcase__btn img {
    height: 100%;
    min-height: 200px;
    max-height: none;
  }
}

.nx-cta-band h2 {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  line-height: 1.2;
}

.nx-cta-band p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--nx-ink-2);
  font-family: "JetBrains Mono", monospace;
}

.nx-cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

/* Nexus FAQ */
.nx-faq {
  margin: 0 1rem 3rem;
  padding: 0 0 1rem;
  max-width: 1100px;
}

.nx-faq__title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 4vw, 1.65rem);
  text-align: center;
}

.nx-faq__intro {
  margin: 0 0 1.25rem;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--nx-ink-2);
}

.nx-faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nx-faq__item {
  border: 1px solid var(--nx-line);
  border-radius: 12px;
  background: var(--nx-panel);
  overflow: hidden;
}

.nx-faq__item summary {
  padding: 0.9rem 1rem;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  list-style: none;
}

.nx-faq__item summary::-webkit-details-marker {
  display: none;
}

.nx-faq__item summary::after {
  content: "+";
  float: right;
  color: var(--nx-accent);
  font-weight: 700;
}

.nx-faq__item[open] summary::after {
  content: "−";
}

.nx-faq__item p {
  margin: 0;
  padding: 0 1rem 1rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--nx-ink-2);
}

/* Homepage: store hero + services on top */
.store-top {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.store-top .hero {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

/* Nexus block below services */
.nexus-content {
  border-top: 2px solid var(--color-primary-light);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.nexus-content [id] {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

@media (min-width: 768px) {
  .nx-grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  .nx-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .nx-cta-band {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: 1.5rem 2rem;
    max-width: 1100px;
    margin-inline: auto;
  }

  .nx-cta-band__actions {
    justify-content: flex-end;
    flex-shrink: 0;
  }

  .nx-faq {
    margin-inline: auto;
  }
}

@media (min-width: 900px) {
  .nx-hero__inner,
  .nx-section .nx-container {
    padding-inline: 0;
  }
}

@media (max-width: 767px) {
  .nexus-page main {
    padding-bottom: 5rem;
  }
}
