:root {
  --nd-ink: #111827;
  --nd-muted: #4b5563;
  --nd-border: #e5e7eb;
  --nd-bg: #ffffff;
  --nd-surface: #f8fafc;
  --nd-accent: #0b4aa2;
  --nd-accent-2: #0ea5e9;
}

html, body {
  background:
    radial-gradient(1400px 700px at 15% -10%, rgba(14, 165, 233, 0.12), transparent 55%),
    radial-gradient(1200px 600px at 85% 0%, rgba(11, 74, 162, 0.10), transparent 60%),
    linear-gradient(180deg, #ffffff, #fbfdff);
  color: var(--nd-ink);
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

.nd-main-wrap {
  position: relative;
  padding: 24px 12px 48px;
}
.nd-main-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('/site/nd/images/pattern-dots.svg') repeat;
  opacity: 0.22;
  pointer-events: none;
}
.nd-main-wrap > * {
  position: relative;
}

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

.nd-hero {
  border: 1px solid var(--nd-border);
  border-radius: 18px;
  overflow: hidden;
  background:
    url('/site/nd/images/hero-network.svg') no-repeat right -120px top -60px / 780px auto,
    radial-gradient(1200px 500px at 20% 0%, rgba(14, 165, 233, 0.20), transparent 55%),
    radial-gradient(900px 400px at 80% 20%, rgba(11, 74, 162, 0.20), transparent 60%),
    linear-gradient(180deg, #ffffff, #f8fafc);
}

.nd-hero-inner {
  padding: 28px 22px;
}

.nd-kicker {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 12px;
  color: var(--nd-muted);
}

.nd-title {
  font-weight: 800;
  line-height: 1.1;
  margin: 8px 0 10px;
}

.nd-subtitle {
  color: var(--nd-muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 70ch;
}

.nd-card {
  border: 1px solid var(--nd-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.nd-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 42px rgba(17, 24, 39, 0.10);
  border-color: rgba(14, 165, 233, 0.35);
}

.nd-card-title a {
  color: var(--nd-ink);
  text-decoration: none;
}
.nd-card-title a:hover {
  text-decoration: underline;
}

.nd-pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--nd-border);
  background: rgba(255, 255, 255, 0.85);
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--nd-muted);
  font-weight: 600;
  font-size: 13px;
}

.nd-section-h {
  font-weight: 800;
  margin: 26px 0 12px;
  position: relative;
  display: inline-block;
}
.nd-section-h::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(14,165,233,0.75), rgba(11,74,162,0.55));
}

.nd-icann {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--nd-border);
  border-radius: 12px;
  background: rgba(255,255,255,0.82);
}

.nd-email {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: var(--nd-ink);
}
.nd-email img {
  width: 16px;
  height: 16px;
  vertical-align: -2px;
}

.nd-link-muted {
  color: var(--nd-muted);
}

.nd-foot {
  border-top: 1px solid var(--nd-border);
  padding-top: 18px;
  margin-top: 28px;
  color: var(--nd-muted);
  font-size: 14px;
}

@media (max-width: 768px) {
  .nd-hero-inner { padding: 20px 16px; }
  .nd-subtitle { font-size: 15px; }
  .nd-hero { background-position: right -260px top -80px, 0 0, 0 0, 0 0; background-size: 720px auto, auto, auto, auto; }
}

/* NetDorm top nav: keep desktop menu on a single line */
@media (min-width: 768px) {
  nav.navbar .navbar-nav {
    flex-wrap: nowrap;
    white-space: nowrap;
  }
  nav.navbar .nav-link {
    padding-left: 0.6rem;
    padding-right: 0.6rem;
  }
}

/* NetDorm top nav: shrink spacing slightly before collapse to reduce wrap risk */
@media (min-width: 768px) and (max-width: 1199.98px) {
  nav.navbar .nav-link {
    padding-left: 0.45rem;
    padding-right: 0.45rem;
    font-size: 0.97rem;
  }
}
