:root {
  --navy: #0a3a67;
  --blue: #1565c0;
  --blue-hover: #0d4d9c;
  --accent: #e23744;
  --text: #1f2933;
  --muted: #5b6677;
  --bg: #ffffff;
  --bg-muted: #f1f5fa;
  --border: #dde5ee;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3, h4 {
  line-height: 1.25;
  color: var(--navy);
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #9ec5ee;
  outline-offset: 3px;
}

button {
  font: inherit;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Demo tabs ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 30;
  transform: translateY(-150%);
  background: #fff;
  color: var(--navy);
  border: 2px solid var(--blue);
  border-radius: 8px;
  padding: 0.65rem 1rem;
  font-weight: 700;
  transition: transform 0.15s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.demo-tabbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(10, 58, 103, 0.08);
  position: relative;
  z-index: 20;
}

.demo-tabbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.tab-list {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 0;
  overflow-x: auto;
  flex: 1;
  min-width: 0;
}

.tour-launch {
  flex-shrink: 0;
  min-height: 44px;
  border: 1px solid var(--navy);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  font-weight: 800;
  padding: 0.55rem 1.15rem;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.tour-launch:hover {
  background: var(--navy);
  color: #fff;
}

.tour-launch.is-pulse {
  animation: tour-launch-pulse 1.6s ease-in-out 2;
}

@keyframes tour-launch-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(10, 58, 103, 0);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(10, 58, 103, 0.18);
  }
}

.tab-button {
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-muted);
  color: var(--navy);
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  padding: 0.65rem 1.35rem;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.tab-button:hover {
  background: #e3eefb;
  border-color: #b8cbe1;
  color: var(--navy);
  text-decoration: none;
}

.tab-button.is-active,
.tab-button[aria-current="page"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.tab-button.is-active:hover,
.tab-button[aria-current="page"]:hover {
  color: #fff;
}

/* ---------- Top bar ---------- */
.topbar {
  background: #072036;
  color: #cfe0f2;
  font-size: 0.85rem;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 38px;
}

.topbar-tagline {
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.topbar-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.topbar-links a {
  color: #cfe0f2;
}

.topbar-links a:hover {
  color: #fff;
  text-decoration: none;
}

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand:hover {
  text-decoration: none;
}

.brand-logo {
  height: 40px;
  width: auto;
  display: block;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: #e7eff8;
  font-weight: 600;
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: #fff;
  text-decoration: none;
}

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

.nav-cta:hover {
  background: #c52d39;
  color: #fff !important;
}

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(115deg, rgba(7, 32, 54, 0.92) 30%, rgba(21, 101, 192, 0.62) 100%),
    url("../images/hero.webp") center / cover no-repeat,
    #0a3a67;
  color: #fff;
}

.hero-inner {
  padding: 5rem 1.25rem 5.5rem;
  max-width: 760px;
  margin: 0;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: #9ec5ee;
  margin: 0 0 0.75rem;
}

.hero h1 {
  color: #fff;
  font-size: 2.75rem;
  margin: 0 0 1.25rem;
}

.hero-sub {
  font-size: 1.15rem;
  color: #dceaf8;
  max-width: 620px;
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.button:hover {
  text-decoration: none;
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-primary:hover {
  background: #c52d39;
}

.button-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.button-light {
  background: #fff;
  color: var(--navy);
}

.button-light:hover {
  background: #eef4fb;
}

/* ---------- Stats ---------- */
.stats {
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border);
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 2.25rem 1.25rem;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
}

.stat-label {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Generic section ---------- */
.section {
  padding: 3.5rem 0;
}

.section-muted {
  background: var(--bg-muted);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.75rem;
}

.section-head h2 {
  font-size: 1.8rem;
  margin: 0;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
  margin: 0 0 0.5rem;
}

.kicker-light {
  color: #9ec5ee;
}

.link-arrow {
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}

/* ---------- Highlight band ---------- */
.highlight {
  padding: 3.5rem 0;
}

.highlight-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.highlight-media {
  height: 280px;
  border-radius: 12px;
  background: url("../images/elearning.jpg") center / cover no-repeat, #0a3a67;
  box-shadow: 0 8px 24px rgba(10, 58, 103, 0.18);
}

.highlight-body h2 {
  font-size: 1.9rem;
  margin: 0 0 1rem;
}

/* ---------- Card grids ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.news-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.news-thumb {
  height: 160px;
  background: #1565c0 center / cover no-repeat;
}

.news-thumb--scholarship {
  background-image: url("../images/news2.jpg");
}

.news-thumb--aid {
  background-image: url("../images/news1.jpg");
}

.news-thumb--webinar {
  background-image: url("../images/webinar.png");
}

.news-content {
  padding: 1.25rem;
}

.tag {
  display: inline-block;
  background: #e3eefb;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.6rem;
}

.news-content h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.news-content p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.info-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.info-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.info-card p {
  color: var(--muted);
  margin: 0 0 0.9rem;
}

/* ---------- Tool grid ---------- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.tool {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  font-weight: 600;
  color: var(--navy);
  min-height: 72px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.tool:hover {
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(10, 58, 103, 0.12);
  transform: translateY(-2px);
}

/* ---------- Congress banner ---------- */
.congress {
  background: linear-gradient(115deg, var(--navy), var(--blue));
  color: #fff;
}

.congress-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 2.75rem 1.25rem;
  flex-wrap: wrap;
}

.congress-logo {
  display: block;
  max-width: 360px;
  width: 100%;
  height: auto;
  margin: 0.3rem 0 0.6rem;
  background: #fff;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
}

.congress p {
  margin: 0;
  color: #dceaf8;
}

/* ---------- External site / analytics tabs ---------- */
.external-demo {
  background: var(--bg-muted);
  min-height: 760px;
  padding: 3rem 0;
}

.external-demo-intro {
  margin-bottom: 2rem;
}

.external-demo-intro h2 {
  font-size: 2rem;
  margin: 0 0 0.75rem;
}

.external-demo-intro p {
  color: var(--muted);
  max-width: 720px;
  margin: 0 0 1.25rem;
}

.external-frame-shell {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(10, 58, 103, 0.14);
  margin: 0 auto;
  max-width: 1280px;
  overflow: hidden;
  width: calc(100% - 2.5rem);
}

.external-frame {
  border: 0;
  display: block;
  height: 680px;
  width: 100%;
}

.external-frame-placeholder {
  align-items: center;
  display: flex;
  min-height: 360px;
  padding: 2rem;
}

.external-frame-placeholder > div {
  max-width: 620px;
}

.external-frame-placeholder h3 {
  font-size: 1.45rem;
  margin: 0 0 0.75rem;
}

.external-frame-placeholder p {
  color: var(--muted);
  margin: 0 0 1rem;
}

/* ---------- Analytics dashboard ---------- */
.analytics-dashboard {
  --analytics-ink: #152238;
  --analytics-muted: #667085;
  --analytics-blue: #255ecb;
  --analytics-cyan: #1ba6a6;
  --analytics-green: #14804a;
  --analytics-amber: #b7791f;
  --analytics-red: #b42318;
  --analytics-purple: #6c3fc5;
  --analytics-surface: #f4f7fb;
  background: var(--analytics-surface);
  color: var(--analytics-ink);
}

.analytics-hero {
  background:
    radial-gradient(circle at top right, rgba(27, 166, 166, 0.28), transparent 26rem),
    linear-gradient(135deg, #10223d, #153f6f);
  color: #fff;
  padding: 3.5rem 0;
}

.analytics-hero-inner {
  align-items: center;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.4fr 0.6fr;
}

.analytics-eyebrow {
  color: #7c8aa5;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  margin: 0 0 0.55rem;
  text-transform: uppercase;
}

.analytics-hero .analytics-eyebrow {
  color: #9fe6e6;
}

.analytics-hero h2 {
  color: #fff;
  font-size: 2.6rem;
  margin: 0 0 1rem;
}

.analytics-hero p {
  color: #d8e5f5;
  font-size: 1.05rem;
  margin: 0;
  max-width: 820px;
}

.analytics-status-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.16);
  padding: 1.4rem;
}

.analytics-status-card strong,
.analytics-status-card small {
  display: block;
}

.analytics-status-card small {
  color: #d8e5f5;
  margin-top: 0.4rem;
}

.status-dot {
  background: #49e3a7;
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(73, 227, 167, 0.16);
  display: inline-block;
  height: 0.7rem;
  margin-bottom: 1rem;
  width: 0.7rem;
}

.analytics-content {
  padding-bottom: 4rem;
  padding-top: 2rem;
}

.analytics-metric-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(5, 1fr);
  margin-top: -4rem;
  position: relative;
  z-index: 1;
}

.analytics-metric-card,
.analytics-panel {
  background: #fff;
  border: 1px solid #dce5f1;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(21, 34, 56, 0.08);
}

.analytics-metric-card {
  padding: 1.25rem;
}

.metric-label,
.metric-trend {
  display: block;
  font-size: 0.78rem;
}

.metric-label {
  color: var(--analytics-muted);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.analytics-metric-card strong {
  color: var(--analytics-ink);
  display: block;
  font-size: 2rem;
  line-height: 1;
  margin: 0.8rem 0;
}

.metric-trend {
  color: var(--analytics-muted);
  font-weight: 700;
}

.positive {
  color: var(--analytics-green);
}

.caution {
  color: var(--analytics-amber);
}

.alert {
  color: var(--analytics-red);
}

.analytics-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.analytics-grid-main {
  grid-template-columns: 1.35fr 0.65fr;
}

.analytics-grid-two {
  grid-template-columns: repeat(2, 1fr);
}

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

.analytics-panel {
  padding: 1.4rem;
}

.analytics-panel h3 {
  color: var(--analytics-ink);
  font-size: 1.25rem;
  margin: 0;
}

.analytics-panel p {
  color: var(--analytics-muted);
  margin: 0.8rem 0 0;
}

.analytics-panel-head {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.analytics-panel-head > span,
.panel-badge {
  background: #eef4ff;
  border-radius: 999px;
  color: var(--analytics-blue);
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.35rem 0.7rem;
}

.panel-badge.caution {
  background: #fff8e8;
  color: var(--analytics-amber);
}

.panel-badge.alert {
  background: #fff1f0;
  color: var(--analytics-red);
}

.topic-list {
  display: grid;
  gap: 0.85rem;
}

.topic-row {
  align-items: center;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: minmax(180px, 1fr) 2fr auto;
}

.topic-row > span {
  color: #344054;
  font-weight: 700;
}

.topic-row strong {
  color: var(--analytics-ink);
  font-size: 0.9rem;
}

.topic-bar {
  background: #e7edf6;
  border-radius: 999px;
  height: 0.72rem;
  overflow: hidden;
}

.topic-bar span {
  background: linear-gradient(90deg, var(--analytics-blue), var(--analytics-cyan));
  border-radius: inherit;
  display: block;
  height: 100%;
  min-width: 2rem;
}

.segment-list,
.document-list,
.gap-list,
.safety-list {
  display: grid;
  gap: 0.85rem;
}

.segment-list > div,
.gap-list > div {
  background: #f7f9fc;
  border: 1px solid #e5ebf3;
  border-radius: 12px;
  padding: 0.9rem;
}

.segment-list strong,
.gap-list strong,
.document-row strong {
  color: var(--analytics-ink);
  display: block;
}

.segment-list span,
.gap-list span,
.document-row span {
  color: var(--analytics-muted);
  display: block;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.document-row {
  align-items: center;
  border-bottom: 1px solid #edf2f7;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding-bottom: 0.85rem;
}

.document-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.document-row em {
  color: var(--analytics-blue);
  flex: 0 0 auto;
  font-style: normal;
  font-weight: 800;
}

.treatment-table {
  border: 1px solid #e5ebf3;
  border-radius: 14px;
  overflow: hidden;
}

.treatment-row {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.1fr 0.45fr 1.4fr;
  padding: 0.85rem 1rem;
}

.treatment-row:nth-child(even) {
  background: #f7f9fc;
}

.treatment-header {
  background: #152238 !important;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.treatment-row strong {
  color: var(--analytics-blue);
}

.analytics-panel-alert {
  border-color: #ffd7d4;
}

.analytics-note {
  background: #fff8e8;
  border-left: 4px solid var(--analytics-amber);
  border-radius: 10px;
  padding: 0.9rem;
}

.safety-list > div {
  align-items: center;
  background: #fff7f6;
  border: 1px solid #ffd7d4;
  border-radius: 12px;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: auto 1fr;
  padding: 0.8rem;
}

.safety-list strong {
  color: var(--analytics-red);
  font-size: 1.4rem;
  line-height: 1;
}

.safety-list span {
  color: #5f2a2a;
}

.opportunity-tag {
  background: #eef4ff;
  border-radius: 999px;
  color: var(--analytics-blue);
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 800;
  margin-top: 1rem;
  padding: 0.45rem 0.75rem;
}

.quote-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}

.quote-grid blockquote {
  background: #f7f9fc;
  border: 1px solid #e5ebf3;
  border-radius: 14px;
  margin: 0;
  padding: 1rem;
}

.quote-grid p {
  color: var(--analytics-ink);
  font-weight: 700;
  margin: 0 0 0.9rem;
}

.quote-grid cite {
  color: var(--analytics-muted);
  font-size: 0.82rem;
  font-style: normal;
}

/* ---------- NBDF mock tab ---------- */
.nbdf-site {
  --nbdf-ink: #19143b;
  --nbdf-purple: #5f2485;
  --nbdf-red: #aa1f35;
  --nbdf-teal: #008a9b;
  --nbdf-gold: #f0b429;
  --nbdf-surface: #f7f5f2;
  background: #fff;
  color: var(--nbdf-ink);
  font-family: Arial, Helvetica, sans-serif;
}

.nbdf-site a {
  color: inherit;
}

.nbdf-adbar {
  align-items: center;
  background: #243947;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  justify-content: center;
  min-height: 118px;
  padding: 0.5rem 1.25rem 1rem;
  text-align: center;
}

.nbdf-adbar > span {
  font-size: 0.65rem;
  font-style: italic;
  opacity: 0.92;
}

.nbdf-ad-card {
  align-items: center;
  background: linear-gradient(100deg, #e8fbfb, #d7f1ed 62%, #bddf75);
  color: #0a5162;
  display: flex;
  gap: 2rem;
  justify-content: center;
  max-width: 500px;
  min-height: 60px;
  padding: 0.75rem 2rem;
  text-transform: uppercase;
  width: 100%;
}

.nbdf-ad-card strong {
  font-size: 1.15rem;
}

.nbdf-ad-card span {
  color: #1aa7aa;
  font-size: 1rem;
  font-weight: 800;
}

.nbdf-header {
  background: #fff;
  border-bottom: 1px solid #ece9e4;
}

.nbdf-header-utility {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  min-height: 34px;
  font-size: 0.78rem;
  font-weight: 700;
}

.nbdf-header-main {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 96px;
}

.nbdf-logo-link {
  display: inline-flex;
}

.nbdf-logo {
  display: block;
  height: 54px;
  width: auto;
}

.nbdf-header-actions {
  align-items: center;
  display: flex;
  gap: 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.nbdf-pill {
  border: 1px solid var(--nbdf-red);
  border-radius: 999px;
  color: var(--nbdf-red) !important;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  padding: 0.55rem 1.15rem;
}

.nbdf-pill-solid {
  background: var(--nbdf-red);
  color: #fff !important;
}

.nbdf-pill:hover,
.nbdf-outline-button:hover,
.nbdf-action-card:hover,
.nbdf-news-card:hover,
.nbdf-event:hover {
  text-decoration: none;
}

.nbdf-nav {
  align-items: center;
  display: flex;
  gap: 2.25rem;
  justify-content: center;
  min-height: 68px;
}

.nbdf-nav a {
  font-size: 0.8rem;
  font-weight: 800;
  max-width: 120px;
  text-align: center;
}

.nbdf-hero {
  background:
    linear-gradient(90deg, rgba(247, 245, 242, 0.97) 0%, rgba(247, 245, 242, 0.88) 40%, rgba(247, 245, 242, 0.2) 70%),
    url("https://www.bleeding.org/sites/default/files/styles/crop_1440x570/public/image/Educate_to_Elevate_Pillar_Banner_Image.jpg?itok=nsU4CaXY") center / cover no-repeat,
    var(--nbdf-surface);
  padding: 3.5rem 0 4.5rem;
}

.nbdf-hero-card {
  align-items: center;
  display: flex;
  min-height: 330px;
}

.nbdf-hero-copy {
  background: rgba(247, 245, 242, 0.88);
  border-radius: 0 130px 130px 0;
  margin-left: -2rem;
  max-width: 500px;
  padding: 2rem 3.25rem 2rem 2rem;
}

.nbdf-eyebrow {
  color: #6f7480;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

.nbdf-hero h2 {
  color: var(--nbdf-purple);
  font-size: 2rem;
  line-height: 1.25;
  margin: 0 0 1.75rem;
  max-width: 370px;
}

.nbdf-outline-button {
  border: 2px solid var(--nbdf-red);
  border-radius: 999px;
  color: var(--nbdf-red) !important;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 900;
  padding: 0.85rem 1.25rem;
}

.nbdf-action-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
  margin-top: -2rem;
  position: relative;
  z-index: 1;
}

.nbdf-action-card {
  align-items: center;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 14px 28px rgba(25, 20, 59, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 170px;
  padding: 1.3rem 1rem;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nbdf-action-card:hover {
  box-shadow: 0 18px 34px rgba(25, 20, 59, 0.16);
  transform: translateY(-3px);
}

.nbdf-action-card img {
  height: 58px;
  object-fit: contain;
  width: 58px;
}

.nbdf-action-card span {
  color: var(--nbdf-purple);
  font-weight: 900;
}

.nbdf-impact {
  background: #fff;
  padding: 4rem 0 3rem;
  text-align: center;
}

.nbdf-impact h2,
.nbdf-section-head h2,
.nbdf-mission h2,
.nbdf-events h2 {
  color: var(--nbdf-ink);
  font-size: 2rem;
  margin: 0;
}

.nbdf-stat-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 2rem;
}

.nbdf-stat {
  border-top: 5px solid var(--nbdf-teal);
  padding: 1.2rem 0.8rem 0;
}

.nbdf-stat:nth-child(2) {
  border-color: var(--nbdf-purple);
}

.nbdf-stat:nth-child(3) {
  border-color: #e86948;
}

.nbdf-stat:nth-child(4) {
  border-color: var(--nbdf-red);
}

.nbdf-stat span {
  color: var(--nbdf-red);
  display: block;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.1;
}

.nbdf-stat p {
  color: #4f5666;
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0.6rem 0 0;
}

.nbdf-mission {
  align-items: center;
  background: var(--nbdf-surface);
  border-radius: 18px;
  display: grid;
  gap: 2rem;
  grid-template-columns: 0.8fr 1.2fr auto;
  margin-bottom: 3.5rem;
  padding: 2rem;
}

.nbdf-mission p {
  color: #4f5666;
  margin: 0;
}

.nbdf-news,
.nbdf-events {
  background: var(--nbdf-surface);
  padding: 3.5rem 0;
}

.nbdf-section-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.nbdf-section-head a {
  color: var(--nbdf-red);
  font-weight: 900;
}

.nbdf-news-grid,
.nbdf-event-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(3, 1fr);
}

.nbdf-news-card,
.nbdf-event {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(25, 20, 59, 0.08);
  overflow: hidden;
}

.nbdf-news-card img,
.nbdf-event img {
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  width: 100%;
}

.nbdf-news-card div,
.nbdf-event div {
  padding: 1.2rem;
}

.nbdf-news-card span,
.nbdf-event span {
  color: var(--nbdf-red);
  display: block;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 0.55rem;
  text-transform: uppercase;
}

.nbdf-news-card h3,
.nbdf-event h3 {
  color: var(--nbdf-ink);
  font-size: 1.05rem;
  margin: 0 0 0.9rem;
}

.nbdf-news-card a {
  color: var(--nbdf-red);
  font-weight: 900;
}

.nbdf-help {
  align-items: center;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1fr;
  padding-bottom: 3.5rem;
  padding-top: 3.5rem;
}

.nbdf-help-image {
  background: url("https://www.bleeding.org/sites/default/files/styles/ping_pong_image/public/image/Donate-Now-CTA.jpg?itok=dDnsssgh") center / cover no-repeat;
  border-radius: 18px;
  min-height: 360px;
}

.nbdf-help blockquote {
  color: var(--nbdf-purple);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 1rem;
}

.nbdf-help p {
  color: #4f5666;
  margin: 0 0 1.3rem;
}

.nbdf-event p {
  color: #4f5666;
  margin: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #07294a;
  color: #b9cde2;
  padding-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-logo {
  height: 44px;
  width: auto;
  display: block;
}

.footer-brand p {
  margin: 0.9rem 0 0;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin: 0 0 0.9rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: #b9cde2;
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-social a {
  color: #b9cde2;
}

.footer-social a:hover {
  color: #fff;
  text-decoration: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .stats-inner,
  .tool-grid,
  .nbdf-action-grid,
  .nbdf-stat-grid,
  .nbdf-news-grid,
  .nbdf-event-grid,
  .analytics-metric-grid,
  .analytics-grid-three,
  .quote-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .analytics-hero-inner,
  .analytics-grid-main,
  .analytics-grid-two {
    grid-template-columns: 1fr;
  }
  .nbdf-nav {
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1rem;
  }
  .nbdf-mission,
  .nbdf-help {
    grid-template-columns: 1fr;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .highlight-inner {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .main-nav {
    display: none;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: 2rem;
  }
  .stats-inner,
  .tool-grid,
  .footer-grid,
  .nbdf-action-grid,
  .nbdf-stat-grid,
  .nbdf-news-grid,
  .nbdf-event-grid,
  .analytics-metric-grid,
  .analytics-grid-three,
  .quote-grid {
    grid-template-columns: 1fr;
  }
  .tab-button {
    flex: 1 0 auto;
  }
  .external-demo {
    padding: 2.5rem 0;
  }
  .external-frame {
    height: 560px;
  }
  .analytics-hero {
    padding: 2.5rem 0;
  }
  .analytics-hero h2 {
    font-size: 2rem;
  }
  .analytics-metric-grid {
    margin-top: -3rem;
  }
  .analytics-panel-head,
  .document-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .topic-row,
  .treatment-row {
    grid-template-columns: 1fr;
  }
  .nbdf-ad-card,
  .nbdf-header-main,
  .nbdf-header-actions,
  .nbdf-section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .nbdf-header-main,
  .nbdf-header-actions {
    gap: 1rem;
    padding-bottom: 1rem;
    padding-top: 1rem;
  }
  .nbdf-hero {
    background:
      linear-gradient(rgba(247, 245, 242, 0.92), rgba(247, 245, 242, 0.92)),
      url("https://www.bleeding.org/sites/default/files/styles/crop_1440x570/public/image/Educate_to_Elevate_Pillar_Banner_Image.jpg?itok=nsU4CaXY") center / cover no-repeat,
      var(--nbdf-surface);
    padding: 2.5rem 0;
  }
  .nbdf-hero-card {
    min-height: 260px;
  }
  .nbdf-hero-copy {
    border-radius: 18px;
    margin-left: 0;
    padding: 1.5rem;
  }
  .nbdf-hero h2,
  .nbdf-impact h2,
  .nbdf-section-head h2,
  .nbdf-mission h2,
  .nbdf-events h2 {
    font-size: 1.65rem;
  }
  .topbar-links {
    gap: 0.85rem;
  }

  .demo-tabbar-inner {
    flex-wrap: wrap;
    padding-bottom: 0.65rem;
  }

  .tour-launch {
    margin-left: auto;
  }
}

/* ---------- Product tour overlays ---------- */
.hi-tour {
  position: fixed;
  inset: 0;
  z-index: 100050;
}

.hi-tour[hidden] {
  display: none !important;
}

.hi-tour-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100050;
  background: transparent;
}

.hi-tour-widget-overlay {
  position: fixed;
  z-index: 100051;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 18px 42px rgba(7, 32, 54, 0.24),
    0 0 0 1px rgba(10, 58, 103, 0.08);
  pointer-events: none;
  transition: top 0.22s ease, left 0.22s ease, width 0.22s ease, height 0.22s ease;
}

.hi-tour-preview-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 2;
  border-radius: 999px;
  background: rgba(10, 58, 103, 0.88);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 0.35rem 0.65rem;
  text-transform: uppercase;
}

.hi-tour-widget-overlay[hidden] {
  display: none !important;
}

.hi-tour-widget-overlay-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: top center;
}

.hi-tour-widget-suppressed {
  visibility: hidden !important;
  pointer-events: none !important;
}

.hi-tour-spotlight {
  position: fixed;
  border-radius: 14px;
  box-shadow: 0 0 0 9999px rgba(7, 32, 54, 0.28);
  outline: 3px solid #7eb6ef;
  outline-offset: 0;
  pointer-events: none;
  transition: top 0.22s ease, left 0.22s ease, width 0.22s ease, height 0.22s ease;
  z-index: 100052;
}

.hi-tour.is-screenshot-step .hi-tour-spotlight {
  border-radius: 12px;
  outline: 3px solid #4d9de0;
  box-shadow:
    0 0 0 9999px rgba(7, 32, 54, 0.28),
    0 0 0 6px rgba(77, 157, 224, 0.18);
}

.hi-tour.is-screenshot-step .hi-tour-widget-overlay {
  border-radius: 12px;
}

.hi-tour-live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hi-tour.is-center-step .hi-tour-spotlight {
  display: none;
}

.hi-tour-card {
  position: fixed;
  z-index: 100053;
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(4px);
  color: var(--text);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(7, 32, 54, 0.18);
  padding: 1.15rem 1.2rem 1.1rem;
  max-width: calc(100vw - 2rem);
}

.hi-tour-step {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
}

.hi-tour-title {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
  color: var(--navy);
}

.hi-tour-body {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.hi-tour-media {
  margin: 0 0 1rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f8fafc;
}

.hi-tour-media-image {
  display: block;
  width: 100%;
  height: auto;
}

.hi-tour-card.has-screenshot {
  max-width: min(420px, calc(100vw - 2rem));
}

.hi-tour-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.hi-tour-nav {
  display: flex;
  gap: 0.5rem;
}

.hi-tour-btn {
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.45rem 1rem;
  font-weight: 800;
  cursor: pointer;
}

.hi-tour-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.hi-tour-btn-primary {
  background: var(--navy);
  color: #fff;
}

.hi-tour-btn-primary:hover:not(:disabled) {
  background: #072036;
}

.hi-tour-btn-secondary {
  background: var(--bg-muted);
  border-color: var(--border);
  color: var(--navy);
}

.hi-tour-btn-secondary:hover:not(:disabled) {
  background: #e3eefb;
}

.hi-tour-btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}

.hi-tour-btn-ghost:hover {
  color: var(--navy);
}

.hi-tour.is-loading .hi-tour-body {
  font-style: italic;
}

body.hi-tour-active {
  overflow: auto;
}

@media (max-width: 640px) {
  .hi-tour-card {
    padding: 1rem;
  }

  .hi-tour-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hi-tour-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hi-tour-btn-ghost {
    order: 1;
    text-align: center;
  }
}
