/* ==========================================================================
   Ngabantu Global Stylesheet
   - Dark/light glassmorphism theme
   - Shared layout for home, products, announcements, and detail pages
   ========================================================================== */

/* Reset & base ----------------------------------------------------------- */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui,
    -system-ui, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: radial-gradient(circle at top left, #23263b 0, #0a0a0f 45%, #000000 100%);
  color: #f5f7ff;
}

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

/* Theming --------------------------------------------------------------- */

body[data-theme="dark"] {
  --nb-bg: #05050a;
  --nb-bg-soft: #0a0a11;
  --nb-surface: rgba(30, 30, 46, 0.94);
  --nb-surface-strong: rgba(22, 33, 62, 0.98);
  --nb-border: rgba(255, 255, 255, 0.18);
  --nb-border-soft: rgba(255, 255, 255, 0.08);
  --nb-primary: #667eea;
  --nb-primary-soft: rgba(102, 126, 234, 0.25);
  --nb-secondary: #764ba2;
  --nb-accent: #ff6b9d;
  --nb-text: #f5f7ff;
  --nb-text-soft: #e5e7ff;
  --nb-text-muted: #9ca3c7;
  --nb-chip-bg: rgba(15, 23, 42, 0.7);
}

body[data-theme="light"] {
  --nb-bg: #f4f5fb;
  --nb-bg-soft: #eaedf7;
  --nb-surface: rgba(255, 255, 255, 0.98);
  --nb-surface-strong: rgba(255, 255, 255, 1);
  --nb-border: rgba(15, 23, 42, 0.08);
  --nb-border-soft: rgba(15, 23, 42, 0.04);
  --nb-primary: #667eea;
  --nb-primary-soft: rgba(102, 126, 234, 0.16);
  --nb-secondary: #764ba2;
  --nb-accent: #ff6b9d;
  --nb-text: #0f172a;
  --nb-text-soft: #1e293b;
  --nb-text-muted: #6b7280;
  --nb-chip-bg: rgba(248, 250, 252, 0.9);

  background: radial-gradient(circle at top left, #e0e7ff 0, #e5e7eb 40%, #f9fafb 100%);
  color: var(--nb-text);
}

body:not([data-theme]),
body[data-theme="dark"] {
  background: radial-gradient(circle at top left, #23263b 0, #0a0a0f 45%, #000000 100%);
}

body[data-theme="light"] .nb-root {
  background: radial-gradient(
      circle at top left,
      rgba(148, 163, 255, 0.32) 0,
      transparent 52%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(251, 191, 36, 0.22) 0,
      transparent 55%
    ),
    linear-gradient(135deg, #f9fafb, #e5e7eb);
}

/* Layout shell ---------------------------------------------------------- */

.nb-root {
  min-height: 100vh;
  padding: 32px 16px 40px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: radial-gradient(
      circle at top left,
      rgba(102, 126, 234, 0.32) 0,
      transparent 52%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(255, 107, 157, 0.18) 0,
      transparent 55%
    ),
    linear-gradient(135deg, rgba(10, 10, 15, 0.98), rgba(10, 14, 30, 0.98));
}

.nb-shell {
  width: 100%;
  max-width: 1120px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Orbits / glow blobs --------------------------------------------------- */

.nb-orbit {
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.9;
  pointer-events: none;
}

.nb-orbit--primary {
  width: 260px;
  height: 260px;
  top: -80px;
  right: -40px;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.9), transparent 65%);
}

.nb-orbit--secondary {
  width: 220px;
  height: 220px;
  bottom: -80px;
  left: -40px;
  background: radial-gradient(circle, rgba(118, 75, 162, 0.85), transparent 65%);
}

.nb-orbit--accent {
  width: 140px;
  height: 140px;
  top: 55%;
  left: 60%;
  transform: translate(-50%, -10%);
  background: radial-gradient(circle, rgba(255, 107, 157, 0.75), transparent 70%);
}

/* App bar --------------------------------------------------------------- */

.nb-app-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 999px;
  background: linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.9),
      rgba(17, 24, 47, 0.86)
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.06),
      rgba(255, 255, 255, 0)
    );
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 3;
}

body[data-theme="light"] .nb-app-bar {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.98),
    rgba(248, 250, 252, 0.98)
  );
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(148, 163, 255, 0.25);
  border-color: rgba(148, 163, 255, 0.45);
}

.nb-app-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.nb-logo-orb {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: conic-gradient(from 210deg, #ff6b9d, #667eea, #764ba2, #ff6b9d);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35),
    0 10px 30px rgba(0, 0, 0, 0.7);
}

.nb-logo-orb-inner {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  overflow: hidden;

  /* Logo as background */
  background:
    url("/img/ngabantu_logo.png") center center / 90% no-repeat,
    radial-gradient(circle at 30% 0, #ffffff, #d1d5ff);
}

.nb-logo-mark {
  display: block;
  width: 85%;
  height: 85%;
  object-fit: contain;      /* Scale neatly inside the orb */
}

.nb-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.nb-brand-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nb-text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nb-brand-subtitle {
  font-size: 13px;
  color: var(--nb-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nb-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--nb-border);
  background: radial-gradient(
    circle at top left,
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0.03)
  );
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  color: var(--nb-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.nb-theme-toggle-icon {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 0, #ffffff, #e5e7ff);
  color: #111827;
  font-size: 13px;
}

.nb-app-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nb-chip-link {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 255, 0.4);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nb-text-soft);
  background: rgba(15, 23, 42, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Main card ------------------------------------------------------------- */

.nb-main-card {
  position: relative;
  margin-top: 8px;
  border-radius: 30px;
  padding: 28px 28px 26px;
  background: linear-gradient(
      145deg,
      rgba(15, 23, 42, 0.9),
      rgba(10, 11, 20, 0.96)
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.07),
      rgba(255, 255, 255, 0.01)
    );
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.82),
    0 0 0 1px var(--nb-border-soft);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  border: 1px solid var(--nb-border);
  color: var(--nb-text);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 28px;
  align-items: flex-start;
}

body[data-theme="light"] .nb-main-card {
  background: linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.99),
      rgba(248, 250, 252, 0.99)
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.9),
      rgba(255, 255, 255, 0.9)
    );
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16),
    0 0 0 1px rgba(148, 163, 255, 0.16);
  border-color: rgba(148, 163, 255, 0.28);
}

/* Hero ------------------------------------------------------------------ */

.hero-kicker {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nb-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.hero-title {
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--nb-text-soft);
  margin-bottom: 10px;
}

.hero-subtitle {
  font-size: 15px;
  line-height: 1.7;
  color: var(--nb-text-muted);
  max-width: 520px;
  margin-bottom: 16px;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--nb-chip-bg);
  color: var(--nb-text-soft);
  font-size: 12px;
  margin-bottom: 18px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-footnote {
  font-size: 12px;
  color: var(--nb-text-muted);
  margin-bottom: 1.2rem; /* extra breathing room before next section */
}

/* Buttons --------------------------------------------------------------- */

.btn-primary {
  padding: 11px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.55);
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 45px rgba(102, 126, 234, 0.7);
}

.btn-secondary {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--nb-border-soft);
  background: rgba(15, 23, 42, 0.7);
  font-size: 13px;
  color: var(--nb-text-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

body[data-theme="light"] .btn-secondary {
  background: rgba(248, 250, 252, 0.9);
}

/* Sections / content blocks -------------------------------------------- */

.section {
  margin-top: 18px;
}

.section-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--nb-text-muted);
  margin-bottom: 8px;
}

.section-heading {
  font-size: 18px;
  font-weight: 600;
  color: var(--nb-text-soft);
  margin-bottom: 10px;
}

.section-body {
  font-size: 14px;
  color: var(--nb-text-muted);
  line-height: 1.7;
}

.section-list {
  margin-top: 10px;
  padding-left: 1.2rem;
  font-size: 14px;
  color: var(--nb-text-muted);
  line-height: 1.7;
}

.section-list li {
  margin-bottom: 4px;
}

/* Pills ----------------------------------------------------------------- */

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.pill {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--nb-border-soft);
  font-size: 12px;
  color: var(--nb-text-soft);
  background: rgba(15, 23, 42, 0.7);
}

body[data-theme="light"] .pill {
  background: rgba(248, 250, 252, 0.96);
}

/* Domains grid --------------------------------------------------------- */

.domains-card {
  border-radius: 20px;
  padding: 18px 18px 16px;
  background: radial-gradient(
    circle at top left,
    rgba(15, 23, 42, 0.96),
    rgba(15, 23, 42, 0.92)
  );
  border: 1px solid var(--nb-border-soft);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 255, 0.08);
}

body[data-theme="light"] .domains-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.98),
    rgba(248, 250, 252, 0.98)
  );
}

.domains-grid,
.domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.domain-chip,
.domain-card {
  padding: 10px 11px 9px;
  border-radius: 14px;
  border: 1px solid var(--nb-border-soft);
  background: rgba(15, 23, 42, 0.8);
  font-size: 13px;
  color: var(--nb-text-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body[data-theme="light"] .domain-chip,
body[data-theme="light"] .domain-card {
  background: rgba(248, 250, 252, 0.96);
}

.domain-chip-title {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.domain-chip-list,
.domain-text {
  font-size: 12px;
  color: var(--nb-text-muted);
  line-height: 1.5;
}

.domain-list {
  font-size: 12px;
  color: var(--nb-text-muted);
  line-height: 1.6;
  padding-left: 1.2rem;
}

.domain-list li {
  margin-bottom: 4px;
}

/* Plugins / product tiles ---------------------------------------------- */

.plugins-card {
  border-radius: 20px;
  padding: 18px 18px 16px;
  background: radial-gradient(
    circle at top left,
    rgba(15, 23, 42, 0.98),
    rgba(10, 10, 18, 0.96)
  );
  border: 1px solid var(--nb-border-soft);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.7);
}

body[data-theme="light"] .plugins-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.99),
    rgba(241, 245, 249, 0.99)
  );
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.18);
}

.plugins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.plugin-tile {
  border-radius: 16px;
  padding: 12px 12px 11px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--nb-border-soft);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%; /* keep tiles equal height in grids */
}

body[data-theme="light"] .plugin-tile {
  background: rgba(248, 250, 252, 0.96);
}

.plugin-tile-title {
  font-weight: 600;
  color: var(--nb-text-soft);
}

.plugin-tile-body {
  font-size: 13px;
  color: var(--nb-text-muted);
}

.plugin-tile-list {
  margin-top: 4px;
  padding-left: 1.2rem;
  font-size: 12px;
  color: var(--nb-text-muted);
  line-height: 1.6;
}

.plugin-tile-list li {
  margin-bottom: 3px;
}

.plugin-tagline {
  font-size: 12px;
  color: var(--nb-text-muted);
}

.plugin-meta {
  font-size: 11px;
  color: var(--nb-text-muted);
  margin-top: 2px;
}

.plugin-cta {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--nb-primary);
  text-decoration: none;
}

.nb-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--nb-border-soft);
  color: var(--nb-text-soft);
  background: rgba(15, 23, 42, 0.8);
}

body[data-theme="light"] .nb-badge {
  background: rgba(248, 250, 252, 0.96);
}

.plugin-tile-footer {
  margin-top: 10px;
}

/* Right column panels --------------------------------------------------- */

.panel {
  border-radius: 20px;
  padding: 18px 18px 16px;
  background: radial-gradient(
    circle at top left,
    rgba(15, 23, 42, 0.96),
    rgba(15, 23, 42, 0.92)
  );
  border: 1px solid var(--nb-border-soft);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65);
  margin-bottom: 18px;
}

body[data-theme="light"] .panel {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.99),
    rgba(248, 250, 252, 0.99)
  );
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.14);
}

.panel-header {
  margin-bottom: 10px;
}

.panel-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--nb-text-soft);
}

.panel-subtitle {
  font-size: 13px;
  color: var(--nb-text-muted);
}

.panel-body {
  margin-top: 4px;
}

.panel-text {
  font-size: 13px;
  color: var(--nb-text-muted);
  line-height: 1.6;
  margin-bottom: 8px;
}

.nb-link-inline {
  color: var(--nb-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

/* Panel footer used on checkout & plugin cards ------------------------- */

.panel-footer {
  margin-top: 14px;
  font-size: 11px;
  color: var(--nb-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.panel-footer a {
  color: var(--nb-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.panel-footer-text {
  flex-basis: 100%;
}

/* Footer --------------------------------------------------------------- */

.nb-footer {
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(16px);
}

body[data-theme="light"] .nb-footer {
  border-top-color: rgba(15, 23, 42, 0.08);
  background: rgba(248, 250, 252, 0.92);
}

.nb-footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0 1rem;
}

.nb-footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nb-footer-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
}

body[data-theme="light"] .nb-footer-title {
  color: #0f172a;
}

.nb-footer-text {
  font-size: 0.9rem;
  opacity: 0.6;
}

.nb-footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nb-footer-link {
  font-size: 0.9rem;
  color: #d0d5e0;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

body[data-theme="light"] .nb-footer-link {
  color: #4b5563;
}

.nb-footer-link:hover {
  opacity: 0.7;
}

.nb-footer-copy {
  font-size: 0.85rem;
  opacity: 0.5;
}

/* Responsive tweaks ----------------------------------------------------- */

@media (max-width: 900px) {
  .nb-main-card {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px 18px 22px;
    border-radius: 24px;
  }
}

@media (max-width: 640px) {
  .nb-app-bar {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 20px;
  }

  .nb-app-actions {
    width: 100%;
    justify-content: space-between;
  }

  .hero-title {
    font-size: 26px;
  }

  .nb-main-card {
    margin-top: 10px;
  }

  .nb-footer-content {
    align-items: flex-start;
  }
}
