:root {
  color-scheme: light;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --background: #f5f7fb;
  --surface: #ffffff;
  --text: #1f2933;
  --muted: #52606d;
  --border: #d0d7e2;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  /* Reserve space for a fixed header when present. include-partials.js sets
    --header-offset to the header height after it injects the partial. When
    the header isn't present the variable defaults to 0. Add a small extra
    visual gutter (12px) so content doesn't sit flush to the header. */
  padding-top: calc(var(--header-offset, 0) + 12px);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--background);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

header {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(79, 70, 229, 0.92));
  color: #f8fafc;
  /* Reduce vertical padding so content below the header sits closer to the fold.
     This affects pages that use the plain <header> element (most content pages).
     Keep horizontal padding the same to preserve layout. */
  padding: 1.25rem 1.5rem 1rem;
  box-shadow: var(--shadow);
}

header .container {
  max-width: 1100px;
  margin: 0 auto;
}

header .top-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  text-transform: uppercase;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: rgba(248, 250, 252, 0.92);
  transition: background 0.2s ease, transform 0.2s ease;
}

nav a:hover,
nav a:focus,
nav a.active {
  background: rgba(15, 23, 42, 0.2);
  color: #ffffff;
  transform: translateY(-1px);
}

.hero {
  /* Reduce top margin so the hero inside header doesn't push the following
     page content too far down. Many pages place their primary heading inside
     a .hero block; lowering this keeps the first section visible sooner. */
  /* reduced by 50% from previous value to tighten spacing */
  margin-top: 0.4rem;
  display: grid;
  gap: 1.5rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.01em;
}

.hero p {
  margin: 0;
  color: rgba(248, 250, 252, 0.82);
  max-width: 42rem;
  font-size: 1.1rem;
}

.btn-primary {
  align-self: start;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  background: #f8fafc;
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.18);
}

.btn-primary:hover {
  background: #e2e8f0;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.page-heading {
  margin-bottom: 2rem;
  text-align: center;
}

.page-heading p {
  color: var(--muted);
  margin: 0 auto;
  max-width: 60ch;
}

.section-card {
  background: var(--surface);
  border-radius: 22px;
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 2.5rem;
  border: 1px solid rgba(37, 99, 235, 0.08);
}

.section-card h2 {
  margin-top: 0;
  font-size: 1.65rem;
}

.section-card p {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.highlight {
  background: rgba(37, 99, 235, 0.08);
  border-left: 4px solid var(--primary);
  padding: 1rem 1.25rem;
  border-radius: 14px;
}

.diagram {
  margin: 2rem 0;
}

.diagram-image {
  display: block;
  width: 100%;
  /* Use natural image height so diagrams aren't cropped. Previously we
     limited height and used object-fit: cover which caused images to be
     clipped on all sides. For diagrams we prefer to scale responsively
     while preserving the full image: height:auto + object-fit:contain. */
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(37, 99, 235, 0.18);
}

figcaption {
  margin-top: 0.8rem;
  color: var(--muted);
  text-align: center;
}

.highlight a {
  color: var(--primary-dark);
  font-weight: 600;
}

.table-responsive {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  margin-top: 1.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

th,
td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(209, 213, 219, 0.6);
}

th {
  background: rgba(37, 99, 235, 0.08);
}

footer {
  background: #0f172a;
  color: rgba(226, 232, 240, 0.88);
  padding: 2.5rem 1.5rem;
}

footer .container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: center;
}

footer .links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

footer a {
  color: rgba(226, 232, 240, 0.88);
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
}

footer a:hover {
  background: rgba(148, 163, 184, 0.14);
}

@media (max-width: 720px) {
  header {
    padding: 2rem 1.25rem 1.75rem;
  }

  nav ul {
    gap: 0.35rem;
  }

  nav a {
    font-size: 0.82rem;
    padding: 0.35rem 0.7rem;
  }

  .section-card {
    padding: 1.6rem;
  }

  footer .container {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== MERGED FROM root styles.css (original at /styles.css) =====
   The following block is the project's primary dark theme stylesheet
   moved into assets/css to consolidate assets. If you prefer the
   opposite ordering for variable overrides, move this block above
   the previous rules. */

:root {
  --bg-primary: #050a1a;
  --bg-secondary: #0b1a38;
  --bg-panel: rgba(10, 18, 40, 0.76);
  --bg-card: rgba(13, 21, 47, 0.85);
  --accent: #5ad1ff;
  --accent-2: #6b5bff;
  --accent-3: #5cffb7;
  --text-primary: #f3f7ff;
  --text-secondary: #c3cee5;
  --border-soft: rgba(255, 255, 255, 0.08);
  --shadow-color: rgba(6, 9, 22, 0.6);
  --max-width: 1160px;
  font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  /* Reserve space for the fixed header (set by include-partials.js). If no
    header is injected the variable defaults to 0 so this is a no-op. Add a
    small visual gutter (12px) to keep content comfortably below the header. */
  padding-top: calc(var(--header-offset, 0) + 12px);
  background: radial-gradient(circle at top left, rgba(38, 75, 255, 0.2), transparent 45%),
    radial-gradient(circle at bottom right, rgba(90, 209, 255, 0.25), transparent 50%),
    linear-gradient(180deg, #040714 0%, #040814 35%, #030512 100%);
  color: var(--text-primary);
  min-height: 100vh;
}

.page-shell {
  position: relative;
  overflow-x: hidden;
  /* Reserve space for the fixed header so content doesn't jump under it. */
  padding-top: var(--header-offset, 0);
}

.site-header {
  /* Use fixed so the header remains visible when the user scrolls. The
     header height is communicated to the page via --header-offset so the
     main content can be padded accordingly and avoid overlap. */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  flex-wrap: wrap; /* allow header items to wrap onto multiple lines */
  align-items: center;
  /* Center header content (brand + nav) horizontally by default. The
    nav still wraps on small screens. */
  justify-content: center;
  gap: 0.5rem;
  padding: 1.25rem 7vw;
  background: linear-gradient(90deg, rgba(5, 10, 26, 0.9), rgba(5, 10, 26, 0.4));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #050a1a;
  font-weight: 800;
}

.brand-word {
  font-weight: 600;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex: 1 1 auto; /* allow nav to take available space and shrink when needed */
  min-width: 0; /* enable flex children to shrink to avoid overflow */
  flex-wrap: wrap; /* allow nav links to wrap to multiple lines */
}

/* Make sure the nav itself centers its items when placed in a centered
   header. This keeps the brand and link group visually centered. */
.site-header .main-nav {
  justify-content: center;
}

/* Make the inline link group wrap so long lists flow into multiple rows */
.nav-inline-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.nav-inline-links a {
  white-space: nowrap; /* keep individual links on one line */
}

.main-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus {
  color: var(--text-primary);
}

/* Dropdown used by the index page for a compact site menu. Visible on hover
   and when the button or its menu receives keyboard focus. Uses focus-within
   so keyboard users can tab into the menu. */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.dropdown-toggle:focus {
  outline: 3px solid rgba(90, 209, 255, 0.16);
  outline-offset: 3px;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--bg-panel, rgba(10,18,40,0.95));
  color: var(--text-primary, #fff);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(6, 9, 22, 0.45);
  padding: 0.4rem 0.25rem;
  display: none;
  z-index: 30;
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu a {
  display: block;
  padding: 0.55rem 0.9rem;
  color: inherit;
  text-decoration: none;
  border-radius: 6px;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
  background: rgba(90, 209, 255, 0.06);
  color: var(--text-primary);
}

/* show on hover and when a child receives focus to aid keyboard users */
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  display: block;
}

.main-nav .cta-link {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(90, 209, 255, 0.5);
  color: var(--text-primary);
}

/* Inline variant for the merged generative-AI links (replaces the dropdown)
   Shows the site sections inline and matches main-nav link styling. */
.nav-inline-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.nav-inline-links a {
  color: var(--text-secondary);
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  font-weight: 500;
}
.nav-inline-links a:hover,
.nav-inline-links a:focus {
  color: var(--text-primary);
  background: rgba(90, 209, 255, 0.04);
}

/* Collapse the inline generative-AI links on small screens and reveal them
   when the mobile nav is opened (main-nav[data-open='true']). This keeps the
   header compact while preserving access to the full site list. */
@media (max-width: 960px) {
  .nav-inline-links {
    display: none;
  }
  .main-nav[data-open='true'] .nav-inline-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--text-primary);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  /* reduce vertical padding by 50% (top and bottom) so hero consumes less vertical
     space on large screens */
  padding: 3.5rem 7vw 3rem;
  overflow: hidden;
}

.hero-content {
  max-width: 600px;
  position: relative;
  z-index: 1;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.75rem;
  color: rgba(239, 245, 255, 0.65);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 3vw + 1rem, 3.5rem);
  line-height: 1.1;
  margin: 0 0 1.5rem;
}

.hero-subtext {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 32px rgba(90, 209, 255, 0.18);
}

.secondary-button {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text-secondary);
}

.ghost-button {
  background: rgba(90, 209, 255, 0.08);
  border-color: rgba(90, 209, 255, 0.3);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.primary-button:focus-visible,
.secondary-button:focus-visible,
.ghost-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(90, 209, 255, 0.16);
}

.trust-strip {
  display: grid;
  gap: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.trust-logos {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  opacity: 0.75;
}

.ecosystem h2 {
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(239, 245, 255, 0.6);
  margin-bottom: 0.8rem;
}

.ecosystem-logos {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-weight: 600;
  color: var(--text-primary);
}

.hero-visual {
  position: relative;
  margin: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1;
}

.visual-card {
  background: var(--bg-panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.6rem;
  width: min(340px, 100%);
  display: grid;
  gap: 1.1rem;
  box-shadow: 0 30px 60px rgba(6, 9, 22, 0.4);
  backdrop-filter: blur(12px);
}

.visual-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
}

.status-pill {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(92, 255, 183, 0.16);
  color: var(--accent-3);
  font-size: 0.75rem;
}

.visual-body {
  display: grid;
  gap: 0.85rem;
}

.visual-metric {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.metric-value {
  font-weight: 700;
  color: var(--text-primary);
}

.visual-chart {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  align-items: end;
  height: 120px;
}

.visual-chart .chart-bar {
  width: 100%;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, rgba(90, 209, 255, 0.8), rgba(90, 209, 255, 0));
  position: relative;
  overflow: hidden;
}

.visual-footer {
  font-size: 0.8rem;
  color: rgba(243, 247, 255, 0.6);
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(0px);
  opacity: 0.8;
  animation: float 18s ease-in-out infinite;
}

.gradient-orb--one {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(90, 209, 255, 0.6), rgba(106, 91, 255, 0));
  top: -160px;
  right: -120px;
}

.gradient-orb--two {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(92, 255, 183, 0.4), rgba(90, 209, 255, 0));
  bottom: -160px;
  left: -80px;
  animation-delay: -9s;
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(20px, -30px, 0) scale(1.05);
  }
}

.section {
  padding: 5.5rem 7vw;
}

.section-header {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 0.75rem;
  color: rgba(239, 245, 255, 0.55);
  margin-bottom: 0.9rem;
}

.section-subtext {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.4rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 2rem;
  display: grid;
  gap: 1.3rem;
  box-shadow: 0 22px 46px var(--shadow-color);
}

.card h3 {
  margin: 0;
  font-size: 1.35rem;
}

.card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.card ul li::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 0.5rem;
  background: var(--accent);
  border-radius: 50%;
}

.card-visual {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.tree-node {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(90, 209, 255, 0.12);
  border: 1px solid rgba(90, 209, 255, 0.2);
  font-size: 0.85rem;
}

.tree-branch {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, rgba(90, 209, 255, 0.4), rgba(106, 91, 255, 0.4));
}

.card-visual--flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  text-align: center;
}

.flow-step {
  padding: 0.65rem;
  border-radius: 12px;
  background: rgba(106, 91, 255, 0.12);
  border: 1px solid rgba(106, 91, 255, 0.22);
  font-size: 0.85rem;
}

.card-stat {
  display: grid;
  gap: 0.2rem;
  align-items: baseline;
  justify-items: start;
}

.stat-value {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  color: rgba(239, 245, 255, 0.55);
}

.card-visual--dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.dashboard-metric {
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: rgba(90, 209, 255, 0.1);
  border: 1px solid rgba(90, 209, 255, 0.18);
  display: grid;
  gap: 0.3rem;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.dashboard-metric strong {
  font-size: 1.2rem;
  color: var(--text-primary);
}

.technology {
  background: linear-gradient(180deg, rgba(5, 10, 26, 0.95) 0%, rgba(9, 17, 36, 0.85) 100%);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.4rem;
  max-width: var(--max-width);
  margin: 0 auto;
  /* ensure all tech cards align to the top of the row to avoid visual overlap */
  align-items: start;
}

.tech-card {
  background: rgba(10, 18, 40, 0.78);
  border: 1px solid rgba(90, 209, 255, 0.15);
  border-radius: 18px;
  padding: 2rem;
  display: grid;
  gap: 1.2rem;
  box-shadow: 0 20px 42px rgba(5, 10, 26, 0.45);
}

.tech-card h3 {
  margin: 0;
}

.tech-card p {
  color: var(--text-secondary);
  margin: 0;
}

.tech-chart,
.rag-diagram,
.agent-graph,
.modalities {
  /* use flex with wrapping so the inner chips/cards can wrap instead of overflowing
     which previously could cause visual overlap between neighboring tech cards */
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: rgba(13, 21, 47, 0.9);
  border: 1px solid rgba(90, 209, 255, 0.18);
  font-size: 0.85rem;
  text-align: center;
}

.tech-chart div {
  height: 100px;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, rgba(106, 91, 255, 0.8), rgba(106, 91, 255, 0));
}

.rag-diagram span,
.agent-graph span {
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  background: rgba(106, 91, 255, 0.16);
  border: 1px solid rgba(106, 91, 255, 0.28);
}

.modalities span {
  font-size: 1.5rem;
}

.tech-note {
  color: rgba(239, 245, 255, 0.65);
  font-size: 0.9rem;
}

.governance {
  background: linear-gradient(180deg, rgba(9, 16, 34, 0.92) 0%, rgba(8, 13, 28, 0.95) 100%);
}

.governance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.gov-card {
  background: rgba(8, 14, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 2rem;
  display: grid;
  gap: 1rem;
}

.gov-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
  color: var(--text-secondary);
}

.gov-card ul li::before {
  content: '▹';
  margin-right: 0.5rem;
  color: var(--accent-2);
}

.gov-card--feature {
  background: linear-gradient(135deg, rgba(90, 209, 255, 0.1), rgba(106, 91, 255, 0.18));
  border-color: rgba(106, 91, 255, 0.25);
}

.story-card {
  display: grid;
  gap: 0.35rem;
  background: rgba(9, 16, 34, 0.75);
  border-radius: 14px;
  padding: 1.2rem;
  border: 1px solid rgba(90, 209, 255, 0.18);
}

.story-metric {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
}

.story-label {
  color: rgba(239, 245, 255, 0.58);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.insights {
  background: radial-gradient(circle at top, rgba(106, 91, 255, 0.15), transparent 50%),
    linear-gradient(180deg, rgba(5, 10, 26, 0.95) 0%, rgba(4, 8, 20, 0.95) 100%);
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.insight-card {
  background: rgba(9, 16, 35, 0.8);
  border: 1px solid rgba(90, 209, 255, 0.16);
  border-radius: 16px;
  padding: 2rem;
  display: grid;
  gap: 1rem;
  /* Ensure text inside insight cards is readable against the dark translucent
     background — set an explicit light color so headings and paragraphs don't
     accidentally inherit a dark page text color (which can happen in merged
     light/dark styles). */
  color: rgba(243, 247, 255, 0.95);
}

.guide-card {
  background: rgba(12, 20, 42, 0.82);
  border: 1px solid rgba(90, 209, 255, 0.12);
  gap: 1.25rem;
  /* Make sure text inside guide cards (Post spotlights) is high-contrast
     with the darker card background. Headings and paragraphs will inherit
     this color. */
  color: rgba(243, 247, 255, 0.95);
}

.guide-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.guide-card li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(239, 245, 255, 0.85);
}

.guide-card li::before {
  content: "↗";
  color: var(--accent);
  font-size: 0.9rem;
}

.text-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.testimonial {
  background: radial-gradient(circle at center, rgba(90, 209, 255, 0.1), rgba(5, 10, 26, 0.95));
}

.testimonial-wrapper {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  display: grid;
  gap: 1.5rem;
}

.testimonial blockquote {
  font-size: 1.3rem;
  margin: 0;
  color: var(--text-secondary);
  font-style: italic;
}

.testimonial cite {
  color: rgba(239, 245, 255, 0.6);
  font-size: 0.9rem;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(9, 16, 35, 0.85);
  border: 1px solid rgba(90, 209, 255, 0.18);
  border-radius: 18px;
  padding: 2.2rem;
  display: grid;
  gap: 1.5rem;
  box-shadow: 0 22px 46px rgba(5, 10, 26, 0.55);
}

.contact-details {
  max-width: 600px;
  margin: 2rem auto 0;
  background: rgba(9, 16, 35, 0.65);
  border: 1px solid rgba(90, 209, 255, 0.16);
  border-radius: 14px;
  padding: 1.5rem;
  display: grid;
  gap: 0.5rem;
  text-align: center;
  font-style: normal;
  color: rgba(243, 247, 255, 0.8);
}

.contact-details p {
  margin: 0;
  color: rgba(243, 247, 255, 0.85);
}

.contact-details a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.contact-details a:hover,
.contact-details a:focus {
  text-decoration: underline;
}

.form-row {
  display: grid;
  gap: 0.5rem;
}

label {
  font-weight: 600;
  color: rgba(243, 247, 255, 0.75);
}

input,
textarea,
select {
  background: rgba(5, 10, 26, 0.72);
  border: 1px solid rgba(90, 209, 255, 0.2);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font: inherit;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(90, 209, 255, 0.45);
}

.site-footer {
  padding: 2.5rem 7vw 3rem;
  background: rgba(5, 10, 26, 0.95);
  display: grid;
  gap: 1.4rem;
  justify-items: center;
  border-top: 1px solid var(--border-soft);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

.footer-brand .brand-mark {
  width: 1.6rem;
  height: 1.6rem;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(239, 245, 255, 0.62);
  text-decoration: none;
}

.footer-note {
  color: rgba(239, 245, 255, 0.42);
  font-size: 0.85rem;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 26, 0.72);
  display: grid;
  place-items: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal[aria-hidden='false'] {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: rgba(8, 14, 32, 0.96);
  border-radius: 20px;
  padding: 2.4rem;
  max-width: 460px;
  width: 100%;
  border: 1px solid rgba(90, 209, 255, 0.2);
  display: grid;
  gap: 1.5rem;
  position: relative;
  box-shadow: 0 24px 48px rgba(5, 10, 26, 0.55);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: rgba(239, 245, 255, 0.8);
  font-size: 1.5rem;
  cursor: pointer;
}

.simulator-form {
  display: grid;
  gap: 1rem;
}

.simulator-form label {
  display: grid;
  gap: 0.5rem;
}

.simulator-result {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(90, 209, 255, 0.1);
  border: 1px solid rgba(90, 209, 255, 0.22);
}

@media (max-width: 960px) {
  .site-header {
    padding: 1rem 6vw;
  }

  .main-nav {
    position: fixed;
    inset: 0 0 auto 0;
    background: rgba(5, 10, 26, 0.98);
    flex-direction: column;
    align-items: center;
    padding: 5rem 1.5rem 2rem;
    gap: 1.5rem;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    border-bottom: 1px solid var(--border-soft);
  }

  .main-nav[data-open='true'] {
    transform: translateY(0);
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 720px) {
  .hero {
    /* half of 6rem */
    padding-top: 3rem;
  }

  .hero-visual {
    justify-content: flex-start;
  }

  .section {
    padding: 4.5rem 6vw;
  }

  .section-header {
    margin-bottom: 2.4rem;
  }

  .solution-grid,
  .tech-grid,
  .governance-grid,
  .insights-grid {
    gap: 1.8rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Page-specific compact hero variant for index to keep core messaging above the fold
   while allowing users to scroll to the rest of the page more easily. Applied only
   when <body class="compact-hero"> is present (index.html). */
.compact-hero .hero {
  /* reduce the vertical padding without changing the desktop layout too much;
     halved to make the compact hero even tighter */
  padding: 1.5rem 7vw 1.5rem;
}

.compact-hero .hero-visual {
  align-items: center;
}

.compact-hero .visual-card {
  width: min(320px, 100%);
}

/* Reduce the size/offset of decorative orbs on the index compact layout so they
   don't visually push content below the fold on smaller screens. */
.compact-hero .gradient-orb--one {
  width: 360px;
  height: 360px;
  top: -80px;
  right: -60px;
}

.compact-hero .gradient-orb--two {
  width: 300px;
  height: 300px;
  bottom: -80px;
  left: -40px;
}

@media (max-width: 720px) {
  .compact-hero .hero {
    /* half of 2rem to reduce vertical footprint on small screens */
    padding: 1rem 5vw 1rem;
  }
  .compact-hero .gradient-orb--one,
  .compact-hero .gradient-orb--two {
    display: none;
  }
}

/* Reduce the main hero title size on the index page to keep the headline readable
   without pushing below-the-fold content too far down. Scoped to .compact-hero. */
.compact-hero .hero h1,
.compact-hero #hero-title {
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  line-height: 1.08;
}

/* Inline label placed next to the hero kicker on the index page */
.ai-command-label {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  margin-top: 0.45rem;
  color: var(--text-secondary, rgba(239,245,255,0.65));
  font-weight: 600;
}

.ai-command-label .brand-label {
  font-weight: 700;
  font-size: 0.95rem;
}

/* Layout row to keep kicker and label on the same line when space permits */
.hero-kicker-row {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.hero-kicker {
  margin: 0;
  font-weight: 600;
}

@media (max-width: 520px) {
  .primary-button,
  .secondary-button,
  .ghost-button {
    width: 100%;
  }

  .trust-logos {
    gap: 0.9rem;
  }
}

/* End merged stylesheet */

/* Ensure tables are readable when dark theme rules are present.
   Some pages (e.g., insight-ai-value-streams.html) use `.table-responsive`
   which previously inherited a light surface background while the global
   text color became light after merging the dark stylesheet. Force a
   high-contrast table surface and text color for `.table-responsive`. */
.table-responsive table {
  background: rgba(13, 21, 47, 0.95) !important;
  color: var(--text-primary) !important;
  border-radius: 12px;
}

.table-responsive th,
.table-responsive td {
  color: var(--text-primary) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.table-responsive thead th {
  background: rgba(10, 18, 40, 0.9) !important;
  color: rgba(243, 247, 255, 0.85) !important;
}

/* Small screens: reduce padding so tables don't overflow */
@media (max-width: 720px) {
  .table-responsive th,
  .table-responsive td {
    padding: 0.6rem 0.8rem;
  }
}

/* Fix: ensure light-surfaced "section-card" and other legacy light-theme
   components keep dark text when the dark theme variables are present.
   Many content pages use `.section-card` (light card) which became
   unreadable after merging a dark theme that sets body text to light.
*/
.section-card,
.section-card h2,
.section-card p,
.section-card ul,
.section-card li,
.section-card a,
.page-heading,
.page-heading p,
.diagram-placeholder,
.diagram-placeholder span {
  color: var(--text) !important;
}

/* For elements where the light surface needs a slightly muted caption */
.section-card p,
.section-card small,
.page-heading p {
  color: var(--muted) !important;
}

/* Ensure tables and embedded content inside light "section-card" surfaces
   use the dark/light text appropriate for that surface. This overrides the
   earlier global rules that set dark-theme colors for body and tables. */
.section-card,
.section-card * {
  color: var(--text) !important;
}

.section-card table,
.section-card .table-responsive table,
.section-card thead th,
.section-card th,
.section-card td {
  background: var(--surface) !important;
  color: var(--text) !important;
  border-bottom: 1px solid rgba(37, 99, 235, 0.06) !important;
}

.section-card a {
  color: var(--primary-dark) !important;
}

/* Theme switch: restore original light-theme variables when a page sets
   <body class="light">. This lets pages opt into the light surfaces
   without moving or duplicating the original light stylesheet. */
.light {
  color-scheme: light;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --background: #f5f7fb;
  --surface: #ffffff;
  --text: #1f2933;
  --muted: #52606d;
  --border: #d0d7e2;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

/* Ensure the body uses the redefined variables when .light is present */
.light body {
  background: var(--background) !important;
  color: var(--text) !important;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}
