:root {
  --nd-charcoal: #2a2e33;
  --nd-accent: #5b7fd6;
  --nd-accent-soft: #9fb4e6;
  --nd-radius: 14px;
  --nd-shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.06);
  --nd-font-main: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* GLOBAL */

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

/* GLOBAL BACKGROUND — DARKER, PREMIUM RAINBOW ANIMATION */
body {
  margin: 0;
  font-family: var(--nd-font-main);
  color: var(--nd-charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;

  /* Darker, more visible rainbow gradient */
  background: linear-gradient(
    135deg,
    rgba(255, 120, 150, 0.55),   /* deeper rose */
    rgba(120, 160, 255, 0.55),   /* stronger blue */
    rgba(120, 220, 160, 0.55),   /* deeper mint */
    rgba(255, 210, 120, 0.55),   /* warm amber */
    rgba(255, 150, 120, 0.55)    /* coral */
  );

  background-size: 500% 500%;
  animation: ndRainbow 18s ease infinite;
}

/* Smooth animated rainbow shift */
@keyframes ndRainbow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

.nd-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* HEADER (mobile-first) */

.nd-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.nd-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.nd-logo-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nd-logo {
  height: 32px;
  width: auto;
  border-radius: 999px;
}

.nd-wordmark {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.nd-nav-toggle {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
}

.nd-nav {
  position: absolute;
  top: 56px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  display: none;
  flex-direction: column;
  padding: 8px 16px 12px;
  gap: 6px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.nd-nav a {
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 0.9rem;
}

.nd-nav a.active {
  background: rgba(91, 127, 214, 0.08);
}

.nd-nav-cta {
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.nd-nav-open {
  display: flex;
}

/* HERO */

.nd-hero {
  padding: 40px 0 32px;
}

.nd-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.nd-hero-text h1 {
  font-size: 1.8rem;
  line-height: 1.25;
  margin: 0 0 10px;
}

.nd-hero-text p {
  margin: 0 0 18px;
  font-size: 1rem;
}

.nd-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--nd-accent), var(--nd-accent-soft));
  color: #ffffff;
  box-shadow: var(--nd-shadow-soft);
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.nd-tagline {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
}

.nd-hero-visual {
  display: flex;
  justify-content: center;
}

.nd-geo-orbit {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: radial-gradient(circle at 30% 0%, #ffffff, #e3e7f0);
  box-shadow: var(--nd-shadow-soft);
}

.nd-geo-orbit::before,
.nd-geo-orbit::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  border: 1px dashed rgba(0, 0, 0, 0.08);
}

.nd-geo-orbit::after {
  inset: 32%;
}

.nd-geo-node,
.nd-geo-node-alt {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--nd-accent), var(--nd-accent-soft));
  box-shadow: 0 0 0 5px rgba(91, 127, 214, 0.18);
}

.nd-geo-node {
  top: 18%;
  left: 62%;
}

.nd-geo-node-alt {
  bottom: 16%;
  right: 24%;
}

/* SECTIONS */

.nd-section {
  padding: 32px 0;
}

.nd-section-light {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
}

.nd-section-geo {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
}

.nd-section-contact {
  background: rgba(255, 255, 255, 0.9);
}

h1 {
  font-size: 1.6rem;
  margin: 0 0 12px;
}

h2 {
  font-size: 1.2rem;
  margin: 18px 0 8px;
}

h3 {
  font-size: 1rem;
  margin: 14px 0 6px;
}

.nd-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--nd-radius);
  padding: 16px;
  margin-top: 16px;
  box-shadow: var(--nd-shadow-soft);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.nd-midrange {
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--nd-radius);
  background: linear-gradient(135deg, rgba(91, 127, 214, 0.06), rgba(237, 231, 223, 0.8));
  border: 1px solid rgba(91, 127, 214, 0.18);
}

.nd-list {
  padding-left: 18px;
  margin: 0;
}

/* 4D FLOW (stacked on mobile) */

.nd-4d {
  margin-top: 20px;
}

.nd-4d-flow {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.nd-4d-step {
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--nd-radius);
  padding: 12px;
  box-shadow: var(--nd-shadow-soft);
}

.nd-4d-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--nd-accent), var(--nd-accent-soft));
  color: #fff;
  font-size: 0.75rem;
  margin-bottom: 4px;
}

/* FOOTER */

.nd-footer {
  padding: 14px 0;
  background: rgba(255, 255, 255, 0.85);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.nd-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8rem;
  opacity: 0.8;
}

/* DESKTOP ENHANCEMENTS */

@media (min-width: 768px) {
  .nd-header-inner {
    padding: 12px 0;
  }

  .nd-nav-toggle {
    display: none;
  }

  .nd-nav {
    position: static;
    display: flex !important;
    flex-direction: row;
    background: transparent;
    padding: 0;
    gap: 16px;
    border-bottom: none;
  }

  .nd-hero-inner {
    flex-direction: row;
    align-items: center;
  }

  .nd-hero-text h1 {
    font-size: 2.2rem;
  }

  .nd-section {
    padding: 48px 0;
  }

  .nd-footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }

  .nd-4d-flow {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .nd-hero {
    padding: 60px 0 48px;
  }

  .nd-hero-text h1 {
    font-size: 2.6rem;
  }
}



/* SCROLL ANIMATIONS */
.nd-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.nd-animate.nd-visible {
  opacity: 1;
  transform: translateY(0);
}


/* PRINT-FRIENDLY STYLESHEET */
@media print {

  /* Remove backgrounds & gradients */
  body {
    background: #ffffff !important;
    animation: none !important;
  }

  .nd-section,
  .nd-section-light,
  .nd-section-geo,
  .nd-section-contact {
    background: #ffffff !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
  }

  /* Hide navigation, buttons, animations */
  .nd-header,
  .nd-footer,
  .nd-nav,
  .nd-nav-toggle,
  .btn-primary,
  .btn-secondary,
  .nd-hero-visual {
    display: none !important;
  }

  /* Full-width content */
  .nd-container {
    max-width: 100% !important;
    padding: 0 !important;
  }

  /* Typography optimized for print */
  h1, h2, h3 {
    color: #000000 !important;
    page-break-after: avoid;
  }

  p, li {
    color: #000000 !important;
    font-size: 12pt !important;
  }

  /* Cards become flat sections */
  .nd-card,
  .nd-midrange {
    border: none !important;
    box-shadow: none !important;
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 0 16px 0 !important;
  }

  /* Avoid breaking 4D steps mid-block */
  .nd-4d-step {
    page-break-inside: avoid;
  }

  /* Ensure logo prints cleanly */
  .nd-logo {
    height: 60px !important;
    display: block !important;
    margin-bottom: 20px;
  }
}

