/* ============================================================
   SENZING GLOBAL STYLES
   senzing-global.css  |  v1.0  |  May 2026

   Import after senzing-tokens.css.
   Covers: reset, base, nav, hero, all shared components,
   light & dark theme utilities, animations, responsive.
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--obsidian);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Utility ──────────────────────────────────────────────── */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: .18em;
  color: var(--ember-hot); text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
}
.section-label::after { display: none; }
/* Light-theme section label */
.section-label.light { color: var(--ember-core); }
.section-label.center { justify-content: center; }


/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  background: var(--grad);
  color: var(--obsidian);
  font-weight: 700; font-size: 14px; letter-spacing: .04em;
  text-decoration: none; border: none; border-radius: var(--radius-sm);
  cursor: pointer; transition: opacity .2s, transform .2s;
  white-space: nowrap;
}
.btn-primary:hover { opacity: .9; transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px;
  background: transparent;
  color: var(--white);
  font-weight: 600; font-size: 14px; letter-spacing: .04em;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: var(--radius-sm); cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
  white-space: nowrap;
}
.btn-ghost:hover {
  border-color: var(--ember-hot);
  background: rgba(255,78,31,.06);
  transform: translateY(-1px);
}

/* Light-bg button variants */
.btn-primary-light {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  background: var(--grad);
  color: #fff;
  font-weight: 700; font-size: 14px; letter-spacing: .04em;
  text-decoration: none; border: none; border-radius: var(--radius-sm);
  cursor: pointer; transition: opacity .2s, transform .2s;
  white-space: nowrap;
}
.btn-primary-light:hover { opacity: .9; transform: translateY(-1px); }

.btn-ghost-light {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px;
  background: transparent;
  color: var(--light-text);
  font-weight: 600; font-size: 14px; letter-spacing: .04em;
  text-decoration: none;
  border: 1.5px solid var(--light-border);
  border-radius: var(--radius-sm); cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
  white-space: nowrap;
}
.btn-ghost-light:hover {
  border-color: var(--ember-hot);
  background: rgba(255,78,31,.04);
  transform: translateY(-1px);
}


/* ── Announcement Bar ─────────────────────────────────────── */
.announce-bar {
  background: var(--deep);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  text-align: center;
  font-size: 13px;
  color: var(--text);
  position: relative; z-index: 200;
}
.announce-bar a { color: var(--ember-hot); text-decoration: none; font-weight: 600; }
.announce-bar a:hover { text-decoration: underline; }


/* ── Navigation ───────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15,13,12,.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
nav::before {
  content: ''; display: block; height: 3px;
  background: var(--grad);
}
.nav-inner {
  max-width: var(--max-wide); margin: 0 auto;
  padding: 0 40px;
  display: flex; align-items: center;
  height: 64px; position: relative;
}
.nav-logo { flex-shrink: 0; text-decoration: none; position: relative; z-index: 2; }
.nav-logo img { display: block; height: 26px; width: auto; }

.nav-links {
  display: flex; align-items: center; gap: 4px; list-style: none;
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%); z-index: 1;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 14px;
  font-size: 13.5px; font-weight: 500;
  color: var(--text); text-decoration: none; border-radius: var(--radius-sm);
  transition: color .2s, background .2s; white-space: nowrap; cursor: pointer;
}
.nav-links > li > a:hover,
.nav-links > li > a.nav-active { color: var(--white); background: rgba(255,255,255,.05); }
.nav-links > li > a.nav-active { color: var(--ember-hot); }

/* Dropdown */
.nav-links > li > .dropdown {
  visibility: hidden; opacity: 0; pointer-events: none;
  position: absolute; top: calc(100% + 2px); left: 0;
  background: var(--deep); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 20px; min-width: 220px;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  z-index: 200; transition: opacity .15s ease, visibility .15s ease;
}
.nav-links > li:hover > .dropdown { visibility: visible; opacity: 1; pointer-events: auto; }
.nav-links > li:not(:hover) > .dropdown { transition-delay: 180ms; }
.nav-links > li::after {
  content: ''; display: block;
  position: absolute; top: 100%; left: 0; right: 0; height: 12px;
}
.dropdown a {
  display: block; padding: 9px 12px; font-size: 13.5px;
  color: var(--text); text-decoration: none; border-radius: var(--radius-sm);
  transition: color .2s, background .2s; cursor: pointer;
}
.dropdown a:hover { color: var(--white); background: rgba(255,255,255,.06); }
.dropdown-label {
  font-size: 10px; font-weight: 700; letter-spacing: .14em;
  color: var(--ember-hot); text-transform: uppercase; padding: 4px 12px 8px; display: block;
}
.dropdown-divider { height: 1px; background: var(--border); margin: 8px 0; }

.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }


/* ── Section Layout ───────────────────────────────────────── */
section { padding: var(--space-2xl) 40px; }
.section-inner { max-width: var(--max-content); margin: 0 auto; }
.section-header { max-width: var(--max-text); margin-bottom: var(--space-xl); }
.section-header h2 {
  font-size: clamp(30px, 3.5vw, 44px); font-weight: 800; line-height: 1.12;
  letter-spacing: -.02em; color: var(--white); margin: 16px 0 20px;
}
.section-header p { font-size: 17px; color: var(--muted); line-height: 1.7; }

/* Light section header */
.section-header.light h2 { color: var(--light-text); }
.section-header.light p  { color: var(--light-body); }


/* ── Hero — Dark (Standard Page Hero) ────────────────────── */
/* Used on: Product, Financial Services, Insurance, and all
   inner/solution pages. Two-column text + actions layout.   */
.page-header {
  background: var(--deep);
  border-bottom: 1px solid var(--border);
  padding: 72px 40px;
}
.page-header-inner {
  max-width: var(--max-content); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-xl);
}
.page-header-text { max-width: 620px; }
.page-header-text h1 {
  font-size: clamp(36px, 4.5vw, 60px); font-weight: 800; line-height: 1.1;
  letter-spacing: -.02em; color: var(--white); margin: 16px 0 20px;
}
.page-header-text p { font-size: 18px; color: var(--muted); line-height: 1.7; }
.page-header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }


/* ── Hero — Dark (Homepage Variant) ──────────────────────── */
/* Full-bleed centered hero with ambient glow circles.
   Optionally splits into two columns with ERD animation.   */
.hero {
  position: relative; overflow: hidden;
  padding: 96px 40px 80px;
  background: var(--obsidian);
  text-align: center;
}
.hero-circle {
  position: absolute; border-radius: 50%; pointer-events: none;
}
.hero-circle-1 {
  width: 700px; height: 700px; top: -200px; left: 50%;
  transform: translateX(-20%);
  background: radial-gradient(circle, rgba(255,78,31,.10) 0%, transparent 70%);
}
.hero-circle-2 {
  width: 500px; height: 500px; bottom: -150px; left: -100px;
  background: radial-gradient(circle, rgba(240,146,10,.12) 0%, transparent 70%);
}
.hero-inner { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }
.hero-inner.with-anim {
  max-width: var(--max-content);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-xl); align-items: center; text-align: left;
}
.hero-inner.with-anim .hero-ctas { justify-content: flex-start; }
.hero-inner.with-anim .hero-badge { margin-left: 0; }
.hero-copy { max-width: 560px; }
.hero-visual { display: flex; justify-content: center; align-items: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px;
  background: rgba(255,78,31,.07); border: 1px solid rgba(255,78,31,.2);
  border-radius: var(--radius-pill);
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: var(--ember-hot);
  margin-bottom: 36px; text-decoration: none; transition: background .2s; cursor: pointer;
}
.hero-badge:hover { background: rgba(255,78,31,.12); }
.hero-badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--signal);
  animation: pulse-signal 1.8s ease-in-out infinite; flex-shrink: 0;
}
@keyframes pulse-signal {
  0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,252,136,.5); }
  50%      { opacity: .85; box-shadow: 0 0 0 5px rgba(0,252,136,0); }
}

.hero h1 {
  font-size: clamp(38px, 5.5vw, 68px); font-weight: 800; line-height: 1.08;
  letter-spacing: -.02em; color: var(--white); margin-bottom: 24px;
}
.hero-sub {
  font-size: clamp(17px, 2vw, 21px); color: var(--muted); line-height: 1.6;
  max-width: 640px; margin: 0 auto 44px;
}
.hero-ctas {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap;
}


/* ── Logo Bar ─────────────────────────────────────────────── */
.logo-bar {
  padding: 36px 40px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--deep);
}
.logo-bar-inner {
  max-width: var(--max-content); margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 28px;
}
.logo-bar-label {
  font-size: 11px; font-weight: 700; letter-spacing: .16em;
  color: var(--muted); text-transform: uppercase;
}
.logo-bar-logos {
  display: flex; align-items: center; justify-content: center;
  gap: 48px; flex-wrap: wrap;
}
/* Light logo bar variant */
.logo-bar.light { background: var(--light-surface); border-color: var(--light-border); }
.logo-bar.light .logo-bar-label { color: var(--light-meta); }


/* ── Problem Cards ────────────────────────────────────────── */
.problem { background: var(--obsidian); }
.problem-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.problem-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px 32px;
  position: relative; overflow: hidden;
}
.problem-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--grad);
}
.problem-card-icon { width: 32px; height: 32px; margin-bottom: 20px; display: block; color: var(--ember-hot); }
.problem-card-icon svg { width: 32px; height: 32px; stroke: currentColor; stroke-width: 1.5; }
.problem-card h3 { font-size: 17px; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.problem-card p { font-size: 14.5px; color: var(--muted); line-height: 1.7; }

/* Light variant */
.problem-card.light { background: var(--light-surface); border-color: var(--light-border); }
.problem-card.light h3 { color: var(--light-text); }
.problem-card.light p  { color: var(--light-body); }


/* ── Category / Two-Column ────────────────────────────────── */
.category { background: var(--deep); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.category-what, .category-how {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px 36px;
}
.category-what { border-color: rgba(255,78,31,.3); }
.category-how  { border-color: rgba(240,146,10,.3); }
.pill {
  display: inline-block; padding: 4px 14px; border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: 20px;
}
.pill-ember   { background: rgba(255,78,31,.12); color: var(--ember-hot); }
.pill-amber   { background: rgba(240,146,10,.12); color: var(--ember-warm); }
.category-what h3, .category-how h3 {
  font-size: 22px; font-weight: 800; color: var(--white);
  letter-spacing: -.01em; margin-bottom: 14px;
}
.category-what p, .category-how p { font-size: 15px; color: var(--muted); line-height: 1.75; }

.quote-block {
  margin-top: 64px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 48px 52px; position: relative;
}
.quote-mark {
  position: absolute; top: 20px; left: 32px;
  font-size: 96px; font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1; opacity: .4;
}
.quote-block blockquote {
  font-size: clamp(17px, 1.8vw, 21px); font-style: italic;
  color: var(--white); line-height: 1.65; max-width: 780px; padding-left: 24px;
}
.quote-attr { margin-top: 24px; padding-left: 24px; font-size: 13px; color: var(--muted); font-weight: 600; }


/* ── Capability Cards ─────────────────────────────────────── */
.capabilities { background: var(--obsidian); }
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cap-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 28px;
  transition: border-color .25s, transform .25s;
}
.cap-card:hover { border-color: rgba(255,78,31,.3); transform: translateY(-3px); }
.cap-icon {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  background: var(--grad); display: flex; align-items: center;
  justify-content: center; margin-bottom: 20px; flex-shrink: 0;
}
.cap-icon svg { width: 20px; height: 20px; stroke: #fff; stroke-width: 1.75; fill: none; }
.cap-card h3 { font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.cap-card p  { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* Light variant */
.cap-card.light { background: var(--light-bg); border-color: var(--light-border); }
.cap-card.light:hover { border-color: rgba(255,78,31,.3); }
.cap-card.light h3 { color: var(--light-text); }
.cap-card.light p  { color: var(--light-body); }


/* ── Stats ────────────────────────────────────────────────── */
.stats { background: var(--deep); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px 28px;
  text-align: center; position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--grad);
}
.stat-num {
  display: block; font-size: clamp(36px, 4vw, 52px); font-weight: 800; line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 12px;
}
.stat-label { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* Light variant */
.stat-card.light { background: var(--light-bg); border-color: var(--light-border); }
.stat-card.light .stat-label { color: var(--light-body); }


/* ── Use Case Cards ───────────────────────────────────────── */
.usecases { background: var(--obsidian); }
.usecases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.usecase-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 24px;
  transition: border-color .2s, transform .2s;
}
.usecase-card:hover { border-color: rgba(255,78,31,.3); transform: translateY(-2px); }
.usecase-icon { display: block; color: var(--ember-hot); margin-bottom: 14px; width: 24px; height: 24px; }
.usecase-card h4 { font-size: 15px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.usecase-card p  { font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* Light variant */
.usecase-card.light { background: var(--light-bg); border-color: var(--light-border); }
.usecase-card.light h4 { color: var(--light-text); }
.usecase-card.light p  { color: var(--light-body); }


/* ── Proof / Testimonial Cards ────────────────────────────── */
.proof { background: var(--obsidian); }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.proof-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px 32px;
}
.proof-card blockquote {
  font-size: 15px; font-style: italic; color: var(--muted);
  line-height: 1.75; margin-bottom: 28px;
  padding-bottom: 28px; border-bottom: 1px solid var(--border);
}
.proof-card-attr { display: flex; align-items: center; gap: 14px; }
.proof-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,78,31,.12); color: var(--ember-hot);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; flex-shrink: 0;
}
.proof-name  { font-size: 13px; font-weight: 700; color: var(--white); margin-bottom: 2px; }
.proof-title { font-size: 12px; color: var(--muted); }

/* Light variant */
.proof-card.light { background: var(--light-bg); border-color: var(--light-border); }
.proof-card.light blockquote { color: var(--light-body); border-color: var(--light-border); }
.proof-card.light .proof-name { color: var(--light-text); }


/* ── Architecture Diagram ─────────────────────────────────── */
.architecture { background: var(--obsidian); }
.arch-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.arch-diagram {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 48px;
}
.arch-layer { display: flex; align-items: center; margin-bottom: 4px; }
.arch-layer-label {
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  color: var(--muted); text-transform: uppercase;
  width: 140px; flex-shrink: 0;
}
.arch-boxes { display: flex; gap: 8px; flex: 1; flex-wrap: wrap; }
.arch-box {
  flex: 1; min-width: 100px; padding: 10px 14px;
  background: var(--deep); border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 12px; font-weight: 600;
  color: var(--ember-hot); text-align: center; white-space: nowrap;
}
.arch-box.center-layer {
  background: var(--grad); color: var(--obsidian);
  border: none; font-weight: 700; font-size: 13px;
}
.arch-connector {
  display: flex; justify-content: center; align-items: center;
  height: 28px; padding-left: 140px; color: var(--border); font-size: 18px;
}
.arch-points { list-style: none; }
.arch-points li {
  display: flex; gap: 14px; padding: 16px 0;
  font-size: 14px; color: var(--muted); line-height: 1.6;
  border-bottom: 1px solid var(--border);
}
.arch-points li:last-child { border-bottom: none; }
.arch-point-icon { color: var(--ember-hot); flex-shrink: 0; margin-top: 2px; }


/* ── Feature Rows ─────────────────────────────────────────── */
.feature-rows { background: var(--deep); }
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center; max-width: var(--max-content);
  margin: 0 auto; padding: 72px 40px;
  border-bottom: 1px solid var(--border);
}
.feature-row:last-child { border-bottom: none; }
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-row-text h2 {
  font-size: clamp(26px, 3vw, 38px); font-weight: 800;
  letter-spacing: -.02em; color: var(--white); margin: 16px 0; line-height: 1.15;
}
.feature-row-text p { font-size: 15px; color: var(--muted); line-height: 1.75; margin-bottom: 20px; }
.feature-row-text ul { list-style: none; }
.feature-row-text ul li {
  display: flex; gap: 12px; padding: 10px 0;
  font-size: 14px; color: var(--muted); line-height: 1.6;
  border-bottom: 1px solid var(--border);
}
.feature-row-text ul li:last-child { border-bottom: none; }
.feature-row-text ul li::before { content: '→'; color: var(--ember-hot); flex-shrink: 0; }
.feature-visual {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 40px;
  min-height: 280px; display: flex; flex-direction: column;
  justify-content: center; gap: 16px;
}
.feature-visual-label {
  font-size: 10px; font-weight: 700; letter-spacing: .16em;
  color: var(--muted); text-transform: uppercase; margin-bottom: 8px;
}

/* Light feature rows variant */
.feature-rows.light { background: var(--light-bg); }
.feature-rows.light .feature-row { border-bottom-color: var(--light-border); }
.feature-rows.light .feature-row-text h2 { color: var(--light-text); }
.feature-rows.light .feature-row-text p  { color: var(--light-body); }
.feature-rows.light .feature-row-text ul li { color: var(--light-body); border-color: var(--light-border); }
.feature-rows.light .feature-visual { background: var(--light-surface); border-color: var(--light-border); }
.feature-rows.light .feature-visual-label { color: var(--light-meta); }


/* ── Inline Feature Visuals ───────────────────────────────── */

/* Principle steps */
.principle-step {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.principle-step:last-child { border-bottom: none; }
.principle-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--grad); display: flex; align-items: center;
  justify-content: center; font-size: 11px; font-weight: 800;
  color: var(--obsidian); flex-shrink: 0;
}
.principle-step h4 { font-size: 13px; font-weight: 700; color: var(--white); margin-bottom: 3px; }
.principle-step p  { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* Light principle steps */
.light .principle-step { border-color: var(--light-border); }
.light .principle-step h4 { color: var(--light-text); }
.light .principle-step p  { color: var(--light-body); }

/* Real-time pipeline */
.realtime-flow { display: flex; flex-direction: column; gap: 8px; }
.rt-row { display: flex; align-items: center; gap: 10px; }
.rt-label {
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  color: var(--muted); text-transform: uppercase;
  width: 100px; flex-shrink: 0; text-align: right;
}
.rt-bar {
  flex: 1; height: 32px; border-radius: var(--radius-sm);
  background: var(--deep); border: 1px solid var(--border);
  position: relative; overflow: hidden;
  display: flex; align-items: center; padding: 0 12px;
  font-size: 11px; font-weight: 600; color: var(--ember-hot);
}
.rt-bar-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--grad); opacity: .15;
}
.rt-badge { margin-left: auto; font-size: 10px; font-weight: 700; color: var(--signal); letter-spacing: .05em; }
.rt-connector { padding-left: 110px; color: var(--border); font-size: 14px; }

/* ECL diagram */
.ecl-entity {
  background: var(--deep); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 16px 20px; margin-bottom: 8px;
}
.ecl-entity-label {
  font-size: 10px; font-weight: 700; letter-spacing: .12em;
  color: var(--muted); text-transform: uppercase; margin-bottom: 8px;
}
.ecl-records { display: flex; gap: 8px; flex-wrap: wrap; }
.ecl-record {
  padding: 4px 10px; border-radius: var(--radius-sm);
  font-size: 11px; font-weight: 600;
  background: rgba(255,78,31,.1); color: var(--ember-hot);
  border: 1px solid rgba(255,78,31,.2);
}
.ecl-arrow { text-align: center; color: var(--ember-hot); font-size: 18px; margin: 4px 0; opacity: .6; }


/* ── ERD Animation (Hero Widget) ──────────────────────────── */
.erd-anim { width: 100%; max-width: 380px; }
.erd-anim-records { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.erd-anim-record {
  background: var(--deep); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 12px 16px; opacity: 0; transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.4s ease, background 0.4s ease;
}
.erd-anim-record.ha-visible   { opacity: 1; transform: translateY(0); }
.erd-anim-record.ha-resolving { border-color: rgba(255,78,31,.5); background: #201510; }
.erd-anim-record.ha-resolved  { border-color: rgba(255,78,31,.6); background: #251208; }
.erd-anim-source { font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.erd-anim-name   { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.erd-anim-detail { font-size: 11px; color: #C8BDB8; }
.erd-anim-connector {
  display: flex; justify-content: center; margin-bottom: 14px;
  height: 20px; opacity: 0; transition: opacity 0.5s ease; align-items: center;
}
.erd-anim-connector.ha-visible { opacity: 1; }
.erd-anim-vline {
  width: 1px; height: 100%;
  background: rgba(255,78,31,.5);
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.5s ease;
}
.erd-anim-connector.ha-visible .erd-anim-vline { transform: scaleY(1); }
.erd-anim-result {
  background: #1A0D08; border: 1px solid rgba(255,78,31,.4);
  border-radius: var(--radius-lg); padding: 16px 18px;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.erd-anim-result.ha-visible { opacity: 1; transform: translateY(0); }
.erd-anim-result-label { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--signal); margin-bottom: 7px; }
.erd-anim-result-name  { font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.erd-anim-result-meta  { display: flex; gap: 6px; flex-wrap: wrap; }
.erd-anim-tag { font-size: 10px; color: var(--muted); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 3px 9px; }
.erd-anim-tag.alert { color: var(--ember-hot); border-color: rgba(255,78,31,.3); background: rgba(255,78,31,.08); }

/* Light ERD animation overrides */
.erd-anim.light .erd-anim-record    { background: #FFFFFF; border-color: var(--light-border); }
.erd-anim.light .erd-anim-record.ha-resolving { border-color: rgba(255,78,31,.4); background: #FFF8F5; }
.erd-anim.light .erd-anim-record.ha-resolved  { border-color: rgba(255,78,31,.5); background: #FFF3EE; }
.erd-anim.light .erd-anim-result    { background: #FFF8F5; border-color: rgba(255,78,31,.3); }
.erd-anim.light .erd-anim-name      { color: var(--light-text); }
.erd-anim.light .erd-anim-detail    { color: var(--light-body); }
.erd-anim.light .erd-anim-tag       { background: var(--light-surface); border-color: var(--light-border); color: var(--light-body); }


/* ── Closing CTA Band ─────────────────────────────────────── */
/* Always dark — intentional brand moment at page end. */
.closing {
  background: var(--deep);
  border-top: 1px solid var(--border);
  padding: var(--space-2xl) 40px;
  text-align: center;
}
.closing .section-inner { max-width: 860px; }
.closing h2 {
  font-size: clamp(28px, 3.5vw, 44px); font-weight: 800; line-height: 1.12;
  letter-spacing: -.02em; color: var(--white); margin: 16px 0 20px;
}
.closing p { font-size: 17px; color: var(--muted); line-height: 1.7; margin-bottom: 48px; }
.closing-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; text-align: left;
}
.closing-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px 32px;
}
.closing-card-label {
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  color: var(--ember-hot); text-transform: uppercase; display: block; margin-bottom: 12px;
}
.closing-card h3 { font-size: 20px; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.closing-card p  { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 20px; }
.closing-card a  { font-size: 14px; font-weight: 600; color: var(--ember-hot); text-decoration: none; }
.closing-card a:hover { text-decoration: underline; }


/* ── Footer ───────────────────────────────────────────────── */
footer {
  background: var(--deep); border-top: 1px solid var(--border);
  padding: 60px 40px 36px;
}
.footer-inner { max-width: var(--max-content); margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 220px repeat(4, 1fr);
  gap: 48px; margin-bottom: 48px;
}
.footer-brand p { font-size: 13px; color: var(--muted); margin-top: 14px; line-height: 1.7; }
.footer-col h4 {
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  color: var(--muted); text-transform: uppercase; margin-bottom: 16px;
}
.footer-col a {
  display: block; font-size: 13.5px; color: var(--text);
  text-decoration: none; margin-bottom: 10px; transition: color .2s;
}
.footer-col a:hover { color: var(--ember-hot); }
.footer-bottom {
  padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--muted);
}
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--text); }


/* ── WIP / Placeholder Banner ─────────────────────────────── */
.wip-banner {
  background: rgba(240,146,10,.12); border: 1px dashed rgba(240,146,10,.4);
  border-radius: var(--radius-md); padding: 20px 28px; margin: 48px auto;
  max-width: 700px; text-align: center; font-size: 14px; color: var(--muted);
}
.wip-banner strong { color: var(--ember-warm); }


/* ── Contact Form ─────────────────────────────────────────── */
.contact-form-wrap {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 48px;
  max-width: 560px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text); margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 16px;
  background: var(--deep); border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 14px; color: var(--white);
  font-family: var(--font-sans);
  transition: border-color .2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--ember-hot); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group select option { background: var(--deep); }


/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .problem-grid, .cap-grid, .stats-grid, .proof-grid { grid-template-columns: 1fr 1fr; }
  .usecases-grid { grid-template-columns: 1fr 1fr; }
  .two-col, .arch-two-col, .closing-cards, .feature-row { grid-template-columns: 1fr; }
  .feature-row.reverse { direction: ltr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .logo-bar-logos { gap: 28px; }
  .hero-inner.with-anim { grid-template-columns: 1fr; text-align: center; }
  .hero-inner.with-anim .hero-ctas { justify-content: center; }
  .hero-visual { display: none; }
  .page-header-inner { flex-direction: column; }
}
@media (max-width: 600px) {
  .problem-grid, .cap-grid, .stats-grid, .proof-grid, .usecases-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  section { padding: 64px 24px; }
  .hero  { padding: 72px 24px 60px; }
  .footer-top { grid-template-columns: 1fr; }
  .closing-cards { grid-template-columns: 1fr; }
}

/* ── AI section: entity-centric animation (ck_ai_section) ─── */
.ai-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.ai-copy .section-label { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; background: rgba(255,78,31,.1); color: #FF4E1F; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 20px; }
.ai-copy h2 { font-size: clamp(26px, 2.8vw, 40px); font-weight: 800; line-height: 1.2; letter-spacing: -.02em; color: #1A1614; margin-bottom: 20px; }
.ai-copy p { font-size: 17px; line-height: 1.8; color: #555555; margin-bottom: 16px; }
.ai-copy p:last-of-type { margin-bottom: 0; }
.ai-anim { width: 100%; }
.ec-stage { position: relative; height: 340px; }
.ec-svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.ec-card { position: absolute; width: 148px; background: #FFFFFF; border: 1px solid #DDD8D3; border-radius: 8px; padding: 10px 12px; opacity: 0; transform: scale(0.92); transition: opacity .5s ease, transform .5s ease, border-color .45s ease; }
.ec-card.ec-visible { opacity: 1; transform: scale(1); }
.ec-card.ec-linked { border-color: rgba(255,78,31,.5); }
.ec-source { font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9E8E80; margin-bottom: 4px; }
.ec-name { font-size: 11px; font-weight: 700; color: #1A1614; margin-bottom: 3px; line-height: 1.35; }
.ec-detail { font-size: 10px; color: #9E8E80; line-height: 1.5; }
.ec-detail.ec-match { color: #FF4E1F; font-weight: 600; }
.ec-entity { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0.88); width: 180px; background: #FFFFFF; border: 1.5px solid #DDD8D3; border-radius: 10px; padding: 14px 16px 12px; opacity: 0; transition: opacity .6s ease, transform .6s ease; text-align: left; box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.ec-entity.ec-visible { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.ec-entity-label { font-size: 9px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #1A7A50; margin-bottom: 4px; }
.ec-entity-name { font-size: 13px; font-weight: 700; color: #1A1614; margin-bottom: 10px; line-height: 1.3; }
.ec-attrs { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.ec-attr { display: flex; align-items: center; gap: 5px; font-size: 10px; color: #555555; opacity: 0; transform: translateX(-4px); transition: opacity .35s ease, transform .35s ease; }
.ec-attr.ec-visible { opacity: 1; transform: translateX(0); }
.ec-attr-dot { width: 4px; height: 4px; border-radius: 50%; background: #DDD8D3; flex-shrink: 0; }
.ec-conf { margin-top: 10px; font-size: 10px; font-weight: 600; color: #555555; background: #F7F5F2; border: 1px solid #DDD8D3; border-radius: 4px; padding: 4px 8px; opacity: 0; transition: opacity .4s ease; }
.ec-conf.ec-visible { opacity: 1; }
.ec-status { text-align: center; font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #C8BDB8; margin-top: 14px; min-height: 14px; }
@media (max-width: 768px) {
  .ai-inner { grid-template-columns: 1fr; gap: 40px; }
}
