:root {
  --ng-bg: #0d1117;
  --ng-surface: #161b22;
  --ng-surface-2: #21262d;
  --ng-rim: #30363d;
  --ng-blue: #388bfd;
  --ng-teal: #0abac9;
  --ng-gradient: linear-gradient(135deg, #1c6feb, #0abac9);
  --ng-white: #e6edf3;
  --ng-muted: #8b949e;
  --ng-dim: #6e7681;
}

html.nexus-git-landing,
html.nexus-git-landing body,
html.nexus-git-landing .full.height,
html.nexus-git-landing .page-content,
html.nexus-git-landing .ui.container {
  background: #0d1117 !important;
  color: #e6edf3 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif !important;
  min-height: 100vh !important;
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

html.nexus-git-landing .ui.grid,
html.nexus-git-landing .ui.segment {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

html.nexus-git-landing #navbar,
html.nexus-git-landing nav#navbar,
html.nexus-git-landing .page-footer,
html.nexus-git-landing footer.page-footer {
  display: none !important;
}

html.nexus-git-landing .page-content.home {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}

.ng-land {
  min-height: 100vh;
  width: 100%;
  box-sizing: border-box;
}

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

.ng-land-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* —— Header (sticky nav) —— */
.ng-land-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #30363d;
}

.ng-land-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.ng-land-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #e6edf3;
  flex-shrink: 0;
}

.ng-land-logo img {
  height: 28px;
  width: auto;
}

.ng-land-logo-name {
  font-weight: 700;
  font-size: 1rem;
  background: var(--ng-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ng-land-nav {
  display: none;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.ng-land-nav a {
  color: #e6edf3;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.ng-land-nav a:hover {
  color: #58a6ff;
}

.ng-land-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.ng-land-btn-ghost {
  color: #e6edf3;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 5px 12px;
}

.ng-land-btn-ghost:hover {
  color: #58a6ff;
}

.ng-land-btn-primary {
  display: inline-block;
  background: #238636;
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid rgba(240, 246, 252, 0.1);
  white-space: nowrap;
}

.ng-land-btn-primary:hover {
  background: #2ea043;
}

.ng-land-btn-primary.sm {
  padding: 5px 14px;
  font-size: 13px;
}

.ng-land-btn-primary.lg {
  padding: 14px 28px;
  font-size: 16px;
}

.ng-land-btn-outline {
  display: inline-block;
  color: #e6edf3 !important;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid #30363d;
  background: transparent;
}

.ng-land-btn-outline:hover {
  border-color: #8b949e;
  background: #21262d;
}

@media (min-width: 768px) {
  .ng-land-nav {
    display: flex;
  }

  .ng-land-btn-ghost.hide-md {
    display: none;
  }
}

/* —— Hero (split layout) —— */
.ng-land-hero {
  padding: 64px 0 80px;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(28, 111, 235, 0.25), transparent),
    #0d1117;
}

.ng-land-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 960px) {
  .ng-land-hero-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 40px;
  }
}

.ng-land-hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: #fff;
}

.ng-land-hero-lead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: #8b949e;
  margin: 0 0 28px;
  max-width: 34rem;
}

.ng-land-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.ng-land-hero-note {
  font-size: 12px;
  color: #6e7681;
  margin: 0;
}

/* —— Product mockup (floating UI) —— */
.ng-land-hero-visual {
  perspective: 1200px;
}

.ng-land-mock {
  transform: rotateY(-8deg) rotateX(4deg);
  border-radius: 12px;
  border: 1px solid #30363d;
  background: #161b22;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.ng-land-mock-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #010409;
  border-bottom: 1px solid #30363d;
}

.ng-land-mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #30363d;
}

.ng-land-mock-dot:nth-child(1) {
  background: #ff5f57;
}

.ng-land-mock-dot:nth-child(2) {
  background: #febc2e;
}

.ng-land-mock-dot:nth-child(3) {
  background: #28c840;
}

.ng-land-mock-url {
  margin-left: 8px;
  font-size: 11px;
  color: #6e7681;
  font-family: ui-monospace, monospace;
}

.ng-land-mock-body {
  display: flex;
  min-height: 220px;
}

.ng-land-mock-sidebar {
  width: 38%;
  padding: 12px;
  border-right: 1px solid #30363d;
  background: #0d1117;
}

.ng-land-mock-side-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6e7681;
  margin-bottom: 8px;
}

.ng-land-mock-repo {
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 6px;
  color: #8b949e;
  margin-bottom: 4px;
}

.ng-land-mock-repo.active {
  background: #21262d;
  color: #58a6ff;
  font-weight: 600;
}

.ng-land-mock-main {
  flex: 1;
  padding: 14px;
}

.ng-land-mock-branch {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.ng-land-mock-pill {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 12px;
  background: #21262d;
  border: 1px solid #30363d;
  color: #3fb950;
  font-family: ui-monospace, monospace;
}

.ng-land-mock-meta {
  font-size: 11px;
  color: #6e7681;
}

.ng-land-mock-file {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #c9d1d9;
  padding: 6px 0;
  border-bottom: 1px solid #21262d;
}

.ng-land-mock-file-icon {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  background: #388bfd;
  opacity: 0.7;
}

.ng-land-mock-pr {
  margin-top: 14px;
  padding: 10px 12px;
  background: #21262d;
  border: 1px solid #30363d;
  border-radius: 8px;
  font-size: 12px;
  color: #c9d1d9;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ng-land-mock-pr-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 12px;
  background: rgba(63, 185, 80, 0.15);
  color: #3fb950;
}

/* —— Trust strip (logo cloud) —— */
.ng-land-trust {
  padding: 40px 0;
  border-top: 1px solid #21262d;
  border-bottom: 1px solid #21262d;
  background: #010409;
}

.ng-land-trust-lead {
  text-align: center;
  font-size: 14px;
  color: #8b949e;
  margin: 0 0 20px;
}

.ng-land-trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 32px;
}

.ng-land-trust-logos span {
  font-size: 14px;
  font-weight: 600;
  color: #6e7681;
}

/* —— Feature rows (alternating sections) —— */
.ng-land-features {
  padding: 80px 0;
}

.ng-land-feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 96px;
}

.ng-land-feature-row:last-child {
  margin-bottom: 0;
}

@media (min-width: 900px) {
  .ng-land-feature-row {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }

  .ng-land-feature-row.reverse .ng-land-feature-copy {
    order: 2;
  }

  .ng-land-feature-row.reverse .ng-land-feature-visual {
    order: 1;
  }
}

.ng-land-feature-copy h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 12px;
  color: #fff;
}

.ng-land-feature-copy p {
  font-size: 16px;
  line-height: 1.6;
  color: #8b949e;
  margin: 0 0 16px;
}

.ng-land-feature-copy ul {
  margin: 0;
  padding-left: 20px;
  color: #8b949e;
  font-size: 15px;
  line-height: 1.8;
}

.ng-land-feature-visual {
  display: flex;
  justify-content: center;
}

.ng-land-mini-card {
  width: 100%;
  max-width: 360px;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #30363d;
  background: #161b22;
}

.ng-land-mini-line {
  height: 10px;
  border-radius: 4px;
  background: #21262d;
  margin-bottom: 10px;
  width: 70%;
}

.ng-land-mini-line.wide {
  width: 100%;
}

.ng-land-mini-line.medium {
  width: 85%;
}

.ng-land-mini-comment {
  margin-top: 16px;
  font-size: 13px;
  color: #3fb950;
  font-weight: 600;
}

.ng-land-mini-card.pipeline {
  display: flex;
  gap: 8px;
}

.ng-land-pipe-step {
  flex: 1;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  padding: 12px 8px;
  border-radius: 8px;
  border: 1px solid #30363d;
  color: #6e7681;
}

.ng-land-pipe-step.done {
  background: rgba(63, 185, 80, 0.12);
  border-color: #238636;
  color: #3fb950;
}

.ng-land-pipe-step.run {
  background: rgba(56, 139, 253, 0.12);
  border-color: #388bfd;
  color: #58a6ff;
}

.ng-land-mini-card.shield {
  text-align: center;
}

.ng-land-shield-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(63, 185, 80, 0.15);
  color: #3fb950;
  font-size: 24px;
  line-height: 48px;
  font-weight: 700;
}

/* —— CTA band —— */
.ng-land-cta-band {
  padding: 80px 0;
  background: linear-gradient(180deg, #161b22 0%, #0d1117 100%);
  border-top: 1px solid #30363d;
}

.ng-land-cta-band-inner {
  text-align: center;
}

.ng-land-cta-band h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 12px;
  color: #fff;
}

.ng-land-cta-band p {
  font-size: 16px;
  color: #8b949e;
  margin: 0 0 28px;
}

/* —— Footer (multi-column) —— */
.ng-land-site-footer {
  padding: 48px 0 32px;
  border-top: 1px solid #21262d;
  background: #010409;
}

.ng-land-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

@media (min-width: 640px) {
  .ng-land-footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.ng-land-footer-brand p {
  font-size: 13px;
  color: #6e7681;
  margin: 12px 0 0;
  max-width: 240px;
}

.ng-land-footer-col h3 {
  font-size: 13px;
  font-weight: 600;
  color: #e6edf3;
  margin: 0 0 12px;
}

.ng-land-footer-col a {
  display: block;
  font-size: 13px;
  color: #8b949e;
  text-decoration: none;
  margin-bottom: 8px;
}

.ng-land-footer-col a:hover {
  color: #58a6ff;
  text-decoration: underline;
}

.ng-land-footer-bottom {
  padding-top: 24px;
  border-top: 1px solid #21262d;
  font-size: 12px;
  color: #6e7681;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}

.ng-land-footer-bottom .product {
  font-weight: 600;
  color: #8b949e;
}

.ng-land-footer-bottom .sovereign {
  width: 100%;
  font-size: 11px;
}

.page-content.home .ng-dash-sub {
  color: var(--ng-muted);
  margin-bottom: 1rem;
}

html.nexus-git-landing[data-theme="nexus-light"],
html.nexus-git-landing[data-theme="nexus-light"] body,
html.nexus-git-landing[data-theme="nexus-light"] .full.height,
html.nexus-git-landing[data-theme="nexus-light"] .page-content {
  background: #ffffff !important;
  color: #1f2328 !important;
}

html.nexus-git-landing[data-theme="nexus-light"] .ng-land-header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: #d0d7de;
}

html.nexus-git-landing[data-theme="nexus-light"] .ng-land-nav a,
html.nexus-git-landing[data-theme="nexus-light"] .ng-land-hero-title,
html.nexus-git-landing[data-theme="nexus-light"] .ng-land-logo-name {
  color: #1f2328;
}

html.nexus-git-landing[data-theme="nexus-light"] .ng-land-hero-lead,
html.nexus-git-landing[data-theme="nexus-light"] .ng-land-section p {
  color: #656d76;
}

html.nexus-git-landing[data-theme="nexus-light"] .ng-land-mock,
html.nexus-git-landing[data-theme="nexus-light"] .ng-land-card {
  background: #f6f8fa;
  border-color: #d0d7de;
}
