
/* Mega menu navigation */
.nav { position: fixed; top: 0; left: 0; right: 0; height: 72px; z-index: 200; display: flex; align-items: center; padding: 0 24px; }
.nav-inner { width: 100%; max-width: var(--max); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-links { display: flex; gap: 4px; list-style: none; align-items: center; }
.nav-links > li { position: relative; }
.nav-links > li > a,
.nav-links > li > button.nav-trigger {
  color: var(--hero-muted); text-decoration: none; font-size: 14px; font-weight: 500;
  white-space: nowrap; background: none; border: none; cursor: pointer; font-family: inherit;
  padding: 8px 12px; border-radius: 8px; display: inline-flex; align-items: center; gap: 4px;
}
.nav--solid .nav-links > li > a,
.nav--solid .nav-links > li > button.nav-trigger { color: var(--text-secondary); }
.nav-links > li > a:hover,
.nav-links > li > button.nav-trigger:hover,
.nav-links > li.open > button.nav-trigger { color: var(--primary); background: rgba(37,99,235,.06); }
.nav--solid .nav-links > li > a:hover,
.nav--solid .nav-links > li.open > button.nav-trigger { color: var(--primary); }
.brand--light ~ .nav-links > li > a,
.nav:not(.nav--solid) .nav-links > li > a:hover,
.nav:not(.nav--solid) .nav-links > li.open > button.nav-trigger { color: var(--hero-text); }
.nav:not(.nav--solid) .nav-links > li > button.nav-trigger { color: var(--hero-muted); }
.nav:not(.nav--solid) .nav-links > li > button.nav-trigger:hover,
.nav:not(.nav--solid) .nav-links > li.open > button.nav-trigger { color: var(--hero-text); background: rgba(255,255,255,.08); }
.chevron { font-size: 10px; opacity: .7; transition: transform .2s; }
.nav-links > li.open .chevron { transform: rotate(180deg); }

.mega-panel {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 640px; max-width: 820px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: 0 24px 48px rgba(17,24,39,.14); padding: 24px 28px 20px;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, transform .2s, visibility .2s;
  text-align: left; z-index: 300;
}
.nav-links > li.open .mega-panel { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mega-col h4 {
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 12px;
}
.mega-col a {
  display: block; font-size: 14px; font-weight: 500; color: var(--primary); text-decoration: none;
  padding: 6px 0; line-height: 1.35;
}
.mega-col a span { display: block; font-size: 12px; font-weight: 400; color: var(--text-secondary); margin-top: 2px; }
.mega-col a:hover { color: var(--accent); }
.mega-col a:hover span { color: var(--text-secondary); }
.mega-feature {
  margin-top: 20px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--background); display: flex; align-items: center; gap: 14px;
}
.mega-feature-icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.mega-feature strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.mega-feature p { font-size: 12px; color: var(--text-secondary); margin: 0; line-height: 1.4; }

/* Breadcrumbs */
.breadcrumbs {
  max-width: var(--max); margin: 0 auto; padding: 88px 24px 0; font-size: 13px; color: var(--text-muted);
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
.breadcrumbs a { color: var(--text-secondary); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { opacity: .5; }
.breadcrumbs .current { color: var(--primary); font-weight: 500; }

/* Rich page sections */
.page-hero.compact { padding: 32px 24px 48px; }
.page-hero.compact .page-hero-inner { max-width: var(--max); text-align: left; }
.page-hero.compact h1 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
.hero-split {
  max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center; text-align: left;
}
.hero-split .hero-visual { min-height: 280px; }

.section-block { padding: 72px 24px; }
.section-block.alt { background: var(--surface); }
.section-block.dark { background: var(--hero-bg); color: var(--hero-text); }
.block-inner { max-width: var(--max); margin: 0 auto; }
.block-header { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.block-header.left { text-align: left; margin-left: 0; }
.block-header h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 700; letter-spacing: -.02em; margin-bottom: 10px; }
.block-header p { font-size: 1rem; color: var(--text-secondary); line-height: 1.55; }
.section-block.dark .block-header p { color: var(--hero-muted); }

.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; text-align: left; }
.split-section.reverse .split-visual { order: 2; }
.split-section.reverse .split-copy { order: 1; }
.split-copy h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; letter-spacing: -.02em; }
.split-copy p { font-size: 15px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 12px; }
.split-copy ul.check { list-style: none; margin: 16px 0 0; }
.split-copy ul.check li { display: flex; gap: 10px; font-size: 14px; color: var(--text-secondary); margin-bottom: 8px; }
.split-copy ul.check li::before { content: "✓"; color: var(--success); font-weight: 700; }

/* Mini product UI mock */
.ui-mock {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; box-shadow: 0 16px 40px rgba(17,24,39,.1);
}
.ui-mock-bar { height: 28px; background: #f1f5f9; border-bottom: 1px solid var(--border); display: flex; align-items: center; padding: 0 10px; gap: 5px; }
.ui-mock-bar .dot { width: 7px; height: 7px; border-radius: 50%; background: #cbd5e1; }
.ui-mock-body { padding: 20px; background: var(--background); }
.ui-mock-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.ui-mock-sub { font-size: 12px; color: var(--text-secondary); margin-bottom: 16px; }
.ui-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.ui-stat { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 10px; }
.ui-stat-label { font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.ui-stat-value { font-size: 14px; font-weight: 700; margin-top: 2px; }
.ui-stat-value.warn { color: var(--warning); }
.ui-badge { display: inline-block; font-size: 10px; font-weight: 700; padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.ui-badge.risk { background: rgba(217,119,6,.12); color: var(--warning); }
.ui-badge.ok { background: rgba(5,150,105,.12); color: var(--success); }
.ui-badge.info { background: rgba(37,99,235,.1); color: var(--accent); }

/* Animated pipeline */
.pipeline {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  max-width: 900px; margin: 0 auto; padding: 24px 0;
}
.pipeline-step {
  flex: 1; min-width: 120px; text-align: center; padding: 16px 12px; border-radius: 12px;
  background: var(--surface); border: 1.5px solid var(--flow-border); position: relative;
  animation: flowIn .6s ease both;
}
.pipeline-step:nth-child(1) { animation-delay: .1s; }
.pipeline-step:nth-child(3) { animation-delay: .25s; }
.pipeline-step:nth-child(5) { animation-delay: .4s; }
.pipeline-step:nth-child(7) { animation-delay: .55s; }
.pipeline-step:nth-child(9) { animation-delay: .7s; }
.pipeline-step.featured { border-color: var(--accent); box-shadow: 0 8px 24px rgba(37,99,235,.12); background: rgba(37,99,235,.04); }
.pipeline-num { font-size: 11px; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.pipeline-step h4 { font-size: 13px; font-weight: 600; margin-bottom: 4px; line-height: 1.3; }
.pipeline-step p { font-size: 11px; color: var(--text-secondary); margin: 0; line-height: 1.35; }
.pipeline-arrow { color: var(--text-muted); font-size: 18px; flex-shrink: 0; animation: dashMove 2s linear infinite; }

.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-box-lg { padding: 28px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.stat-box-lg .num { font-size: 2rem; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 8px; }
.stat-box-lg h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.stat-box-lg p { font-size: 13px; color: var(--text-secondary); margin: 0; line-height: 1.4; }

.related-links {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border);
}
.related-links a {
  font-size: 13px; font-weight: 500; color: var(--accent); text-decoration: none;
  padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(37,99,235,.25); background: rgba(37,99,235,.04);
}
.related-links a:hover { background: rgba(37,99,235,.1); }

@media (max-width: 900px) {
  .mega-panel { min-width: calc(100vw - 48px); left: 0; transform: translateX(0) translateY(8px); }
  .mega-panel.mega-panel--product {
    min-width: calc(100vw - 48px);
    max-width: calc(100vw - 48px);
  }
  .nav-links > li.open .mega-panel { transform: translateX(0) translateY(0); }
  .mega-grid { grid-template-columns: 1fr 1fr; }
  .hero-split, .split-section { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .pipeline { flex-direction: column; }
  .pipeline-arrow { transform: rotate(90deg); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mega-grid, .stats-row { grid-template-columns: 1fr; }
  .mega-product { grid-template-columns: 1fr; }
}

/* Shared brand lockup — navbar + footer */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.footer-col--brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.footer-col--brand > .brand-lockup {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
}
.footer-col--brand > .brand-lockup .brand-mark {
  background: var(--primary);
  color: #fff;
}
.footer-col--brand > .brand-lockup .brand-name {
  color: var(--primary);
}
.footer-col--brand .footer-tagline {
  margin-top: 12px;
  max-width: 240px;
}

/* Product dropdown — decision map (no numbering) */
.mega-panel.mega-panel--product {
  min-width: 580px;
  max-width: 620px;
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
.mega-product {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
  width: 100%;
}
.mega-product .mega-col {
  min-width: 0;
  overflow: hidden;
}
.mega-product .mega-col h4 {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.mega-product .mega-col a {
  white-space: normal;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
  padding: 7px 0;
  line-height: 1.35;
}
.mega-product .mega-col a span {
  display: block;
  white-space: normal;
  overflow-wrap: break-word;
  word-wrap: break-word;
  max-width: 100%;
  line-height: 1.45;
  margin-top: 3px;
}

/* Product dropdown — decision journey (three mature surfaces) */
.mega-col--journey .mega-journey-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  text-decoration: none;
}
.mega-col--journey .mega-journey-num {
  flex-shrink: 0;
  min-width: 18px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  opacity: 0.65;
  line-height: 1.35;
  padding-top: 1px;
}
.mega-col--journey .mega-journey-body {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  line-height: 1.35;
}
.mega-col--journey .mega-journey-body > span {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-top: 2px;
  line-height: 1.45;
}
.mega-col--journey .mega-journey-item:hover .mega-journey-body {
  color: var(--accent);
}
.mega-col--journey .mega-journey-item:hover .mega-journey-body > span {
  color: var(--text-secondary);
}
.mega-col--journey .mega-journey-item:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
  border-radius: 6px;
}
.mega-col--journey .mega-journey-more {
  display: block;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.15s ease;
}
.mega-col--journey .mega-journey-more:hover {
  color: var(--primary);
}
.mega-col--journey .mega-journey-more:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Desktop hover opens via .open class (site.js); touch uses tap */
