@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:opsz,wght@6..96,400;6..96,500;6..96,600;6..96,700&family=IBM+Plex+Mono:wght@400;500;600&family=Instrument+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&family=Syne:wght@400;500;600;700&display=swap');

/* ==========================================================================
   XIRAN — LIVING NETWORK DESIGN SYSTEM
   Palette:
   --ink-navy: #071317 (Primary deep dark teal/obsidian)
   --paper-white: #F1EEE7 (Warm bone surface)
   --signal-amber: #E8753D (Accent high-energy ember)
   --cobalt-blue: #6C9BA0 (Mineral blue secondary)
   --charcoal: #0B0D0C (Deep volcanic charcoal)
   --warm-gray: #D8D1C5 (Neutral light divider)
   ========================================================================== */
:root {
  /* Explicit Color Palette */
  --ink-navy: #071317;
  --paper-white: #F1EEE7;
  --signal-amber: #E8753D;
  --cobalt-blue: #6C9BA0;
  --charcoal: #0B0D0C;
  --warm-gray: #D8D1C5;
  --white: #FFFFFF;

  --volcanic-black: #071317;
  --obsidian-charcoal: #0C2023;
  --warm-bone: #F1EEE7;
  --paper-warm: #EFECE6;
  --burnished-copper: #E8753D;
  --oxidized-teal: #60756C;
  --ember-orange: #E8753D;
  --mineral-blue: #6C9BA0;
  --network-line: rgba(129, 198, 198, 0.21);

  /* Color Mappings */
  --bg-main: #F1EEE7;
  --bg-paper: #F1EEE7;
  --bg-navy: #071317;
  --bg-card: #F8F5EF;
  
  --text-heading: #071317;
  --text-body: #292D2A;
  --text-muted: #626861;
  --text-paper: #F1EEE7;
  --text-amber: #E8753D;
  --text-white: #FFFFFF;

  --brand-accent: #E8753D;
  --brand-accent-hover: #F08A56;
  --brand-blue: #071317;
  --brand-secondary: #60756C;

  --border-subtle: rgba(7, 19, 23, 0.14);
  --border-warm: #D8D1C5;
  --border-amber: rgba(232, 117, 61, 0.45);
  --border-glass: rgba(129, 198, 198, 0.22);

  --font-serif: 'Syne', sans-serif;
  --font-heading: 'Syne', sans-serif;
  --font-sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;

  --shadow-premium: 0 24px 70px rgba(11, 13, 12, 0.11);
  --shadow-glow: 0 12px 34px rgba(169, 104, 63, 0.24);

  --chat--color-primary: #A9683F;
  --chat--color-primary-shade-50: #C2794C;
  --chat--color-primary-shade-100: #171918;
  --chat--border-radius: 8px;
  --chat--header--background: #171918;
  --chat--header--color: #F1EEE7;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-main);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--bg-main);
  position: relative;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img, video {
  display: block;
  max-width: 100%;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

section {
  padding: 100px 0;
}

/* Bain Editorial Typography & Eyebrows */
.bain-eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--signal-amber);
  margin-bottom: 14px;
  display: inline-block;
}

.bain-section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 3.8vw, 3rem);
  color: var(--ink-navy);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.bain-title-rule {
  width: 70px;
  height: 4px;
  background-color: var(--signal-amber);
  margin-top: 18px;
  border-radius: 2px;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.12;
}

p {
  color: var(--text-body);
  font-size: 1.1rem;
  line-height: 1.65;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
  background-color: var(--signal-amber);
  color: var(--charcoal);
  padding: 14px 32px;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background-color: var(--brand-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(169, 104, 63, 0.4);
}

.btn-icon-bead {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--ink-navy);
  color: var(--signal-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.btn-primary:hover .btn-icon-bead {
  transform: translateX(4px);
}

.btn-secondary {
  background: rgba(245, 243, 238, 0.1);
  color: var(--paper-white);
  border: 1px solid rgba(245, 243, 238, 0.25);
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  background: rgba(245, 243, 238, 0.2);
  color: var(--white);
  border-color: var(--signal-amber);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--paper-white);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.25s ease;
}

.btn-ghost:hover {
  color: var(--signal-amber);
}

.btn-play-bead {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(245, 243, 238, 0.12);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper-white);
  transition: all 0.25s ease;
}

.btn-ghost:hover .btn-play-bead {
  background: var(--signal-amber);
  color: var(--charcoal);
}

/* ==========================================================================
   EXECUTIVE NAVIGATION BAR (FLOATING GLASS PILL DESIGN)
   ========================================================================== */
.nav-header-fixed {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 10000;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.nav-glass-container {
  pointer-events: auto;
  max-width: 1360px;
  width: 96%;
  margin: 0 auto;
  padding: 6px 16px;
  background: linear-gradient(135deg, rgba(12, 28, 50, 0.94), rgba(6, 17, 32, 0.97));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(169, 104, 63, 0.3);
  border-radius: 50px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 25px rgba(169, 104, 63, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.3s ease;
}

.brand-logo {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-name {
  white-space: nowrap;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.logo-v-badge {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--signal-amber);
  color: #0B0D0C;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(169, 104, 63, 0.4);
  flex-shrink: 0;
}

.nav-menu-container {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: center;
  margin: 0 4px;
}

.nav-menu-links {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.1vw, 13px);
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 1360px) {
  .nav-menu-links {
    gap: 8px;
  }
  .nav-link-item {
    font-size: 0.76rem !important;
    padding: 4px 0 !important;
  }
}

@media (max-width: 1180px) {
  .nav-glass-container {
    padding: 5px 12px;
    gap: 6px;
  }
  .brand-logo {
    font-size: 0.95rem;
    gap: 6px;
  }
  .logo-v-badge {
    width: 26px;
    height: 26px;
    font-size: 0.9rem;
  }
  .nav-menu-links {
    gap: 6px;
  }
  .nav-link-item {
    font-size: 0.72rem !important;
  }
  .nav-cta-pill {
    height: 34px !important;
    padding: 0 12px !important;
    font-size: 0.78rem !important;
  }
}

.nav-link-item {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(248, 250, 252, 0.9);
  white-space: nowrap;
  padding: 6px 0;
  position: relative;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
  letter-spacing: -0.01em;
}

.nav-link-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 100%;
  height: 2px;
  background: var(--signal-amber);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(169, 104, 63, 0.8);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link-item:hover, .nav-link-item.active {
  color: var(--signal-amber);
  font-weight: 700;
}

.nav-link-item:hover::after, .nav-link-item.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-actions-group {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.lang-toggle-btn {
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(245, 243, 238, 0.08);
  border: 1px solid rgba(169, 104, 63, 0.3);
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.lang-toggle-btn:hover {
  background: rgba(169, 104, 63, 0.2);
  border-color: var(--signal-amber);
  color: var(--signal-amber);
  box-shadow: 0 0 10px rgba(169, 104, 63, 0.2);
}

.lang-switch-group {
  display: inline-flex;
  align-items: center;
  background: rgba(245, 243, 238, 0.08);
  border: 1px solid rgba(169, 104, 63, 0.3);
  border-radius: 20px;
  padding: 2px 4px;
  gap: 2px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.lang-switch-btn {
  font-size: 0.78rem;
  font-weight: 700;
  color: #94a3b8;
  padding: 4px 10px;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
}

.lang-switch-btn:hover {
  color: #ffffff;
}

.lang-switch-btn.active {
  background: var(--signal-amber);
  color: #0B0D0C;
  font-weight: 800;
  box-shadow: 0 0 8px rgba(169, 104, 63, 0.3);
}

.nav-cta-pill {
  height: 38px;
  padding: 0 18px;
  border-radius: 20px;
  background: var(--signal-amber);
  border: 1px solid var(--signal-amber);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 800;
  color: #0B0D0C;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(169, 104, 63, 0.35);
  text-decoration: none;
}

.nav-cta-pill:hover {
  background: #ffffff;
  color: #0B0D0C;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   HERO SECTION (DEEP INK NAVY HERO WITH ROBOT BACKDROP)
   ========================================================================== */
.hero-section,
.bain-hero-section {
  position: relative;
  min-height: calc(100vh - 40px);
  padding-top: 150px;
  padding-bottom: 90px;
  display: flex;
  align-items: center;
  background-color: var(--ink-navy);
  color: var(--paper-white);
  overflow: hidden;
}

.hero-bg-gif-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg-gif {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  mix-blend-mode: multiply;
  opacity: 0.95;
  filter: contrast(1.1) brightness(1.05);
}

.hero-bg-backdrop-tint {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    #171918 0%, 
    #171918 40%, 
    rgba(23, 25, 24, 0.7) 65%, 
    rgba(23, 25, 24, 0.15) 85%, 
    transparent 100%
  );
  pointer-events: none;
}

/* Subpage Hero Ambient Background Image Overlays */
.hero-bg-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 1; /* 100% vivid brightness and crisp visibility! */
  filter: contrast(1.05) brightness(1);
}

.hero-bg-img-tint {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    #171918 0%, 
    #171918 30%, 
    rgba(23, 25, 24, 0.8) 45%, 
    rgba(23, 25, 24, 0.2) 65%, 
    transparent 85%
  ), linear-gradient(180deg, 
    rgba(23, 25, 24, 0.25) 0%, 
    transparent 40%, 
    rgba(23, 25, 24, 0.5) 80%, 
    #171918 100%
  );
}

.hero-editorial-content {
  position: relative;
  z-index: 10;
  max-width: 840px;
}

.hero-title-large {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -0.02em;
}

.hero-accent-serif {
  color: var(--signal-amber);
  font-style: italic;
  font-weight: 400;
}

.hero-subtitle-large {
  margin-top: 24px;
  max-width: 660px;
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--paper-white);
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 38px;
  flex-wrap: wrap;
}

section[id], [id] {
  scroll-margin-top: 140px;
}

/* BAIN 4-METRIC STRIP */
.bain-metrics-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 620px;
  width: 100%;
  margin-top: 36px;
  padding: 18px 24px;
  background: linear-gradient(135deg, rgba(12, 28, 50, 0.92), rgba(6, 17, 32, 0.96));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(169, 104, 63, 0.25);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-number {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--signal-amber);
  line-height: 1.1;
}

.metric-label {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-divider {
  width: 1px;
  height: 32px;
  background: rgba(169, 104, 63, 0.25);
}

/* ==========================================================================
   INFINITE MARQUEE BANNER
   ========================================================================== */
.marquee-section {
  background-color: var(--ink-navy);
  color: var(--white);
  padding: 20px 0;
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: marqueeScroll 25s linear infinite;
}

.marquee-item {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-white);
}

.marquee-item .highlight {
  color: var(--signal-amber);
  font-weight: 800;
  margin-left: 12px;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   OFF-WHITE / PAPER VERTICALS SHOWCASE GRID
   ========================================================================== */
.verticals-section {
  background-color: var(--paper-white);
  padding: 110px 0;
}

.verticals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
  margin-top: 48px;
}

@media (max-width: 992px) {
  .verticals-grid {
    grid-template-columns: 1fr;
  }
}

.vertical-card {
  background: var(--white);
  border: 1px solid var(--warm-gray);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-premium);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.vertical-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(23, 25, 24, 0.12);
  border-color: var(--signal-amber);
}

.vertical-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background-color: rgba(169, 104, 63, 0.15);
  color: var(--ink-navy);
  border: 1px solid var(--border-amber);
  margin-bottom: 16px;
}

.vertical-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.vertical-badge-row .vertical-badge {
  margin-bottom: 0;
}

.badge-popular {
  background: rgba(169, 104, 63, 0.25);
  color: #b45309;
  border: 1px solid var(--signal-amber);
  font-weight: 800;
}

.vertical-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  flex-wrap: wrap;
}

.vertical-roi-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--signal-amber);
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.vertical-roi-link:hover {
  text-decoration: underline;
  color: #A9683F;
}

.vertical-title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  line-height: 1.25;
  color: var(--ink-navy);
  font-weight: 700;
  margin-bottom: 16px;
}

.vertical-desc {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--charcoal);
  margin-bottom: 24px;
}

.vertical-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.vertical-bullets li {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-navy);
  display: flex;
  align-items: center;
  gap: 12px;
}

.amber-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--signal-amber);
  color: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.vertical-media-frame {
  position: relative;
  width: 100%;
  height: 240px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid var(--warm-gray);
  background: var(--ink-navy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vertical-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: contrast(1.05) saturate(1.08);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.vertical-media-frame::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, 
    rgba(23, 25, 24, 0.08) 0%, 
    rgba(23, 25, 24, 0.35) 60%,
    rgba(23, 25, 24, 0.65) 100%
  );
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.vertical-media-frame--amber {
  border-color: var(--border-amber);
}

.vertical-card:hover .vertical-media-frame img,
.custom-banner-card:hover .vertical-media-frame img {
  transform: scale(1.05);
  filter: contrast(1.08) saturate(1.12);
}

.vertical-btn {
  width: fit-content;
  background-color: var(--ink-navy);
  color: var(--white);
  padding: 12px 24px;
  font-weight: 700;
}

.vertical-btn:hover {
  background-color: var(--signal-amber);
  color: var(--charcoal);
}

/* Full Width Featured Custom Solution Banner */
.custom-banner-card {
  grid-column: 1 / -1;
  background: var(--ink-navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  box-shadow: 0 24px 60px rgba(23, 25, 24, 0.25);
  border: 1px solid var(--border-amber);
}

@media (max-width: 900px) {
  .custom-banner-card {
    grid-template-columns: 1fr;
    padding: 36px;
  }
}

.custom-banner-card h3 {
  color: var(--white);
  font-size: 2rem;
  margin-top: 12px;
}

.custom-banner-card p {
  color: var(--paper-white);
  margin-top: 14px;
  font-size: 1.1rem;
}

/* ==========================================================================
   4-STEP VISUAL SYSTEM WORKFLOW SECTION
   ========================================================================== */
.workflow-section {
  background-color: var(--white);
  padding: 100px 0;
  border-top: 1px solid var(--warm-gray);
  border-bottom: 1px solid var(--warm-gray);
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 50px;
}

@media (max-width: 900px) {
  .workflow-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .workflow-grid {
    grid-template-columns: 1fr;
  }
}

.workflow-card {
  background: var(--paper-white);
  border: 1px solid var(--warm-gray);
  border-radius: var(--radius-md);
  padding: 34px 26px;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.workflow-card:hover {
  transform: translateY(-4px);
  border-color: var(--signal-amber);
}

.workflow-step-num {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--signal-amber);
  margin-bottom: 16px;
  line-height: 1;
}

.workflow-card h4 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink-navy);
  margin-bottom: 8px;
}

.workflow-card p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ==========================================================================
   BAIN PROVEN IMPACT & ROI SECTION (DEEP INK NAVY)
   ========================================================================== */
.impact-section {
  background-color: var(--ink-navy);
  padding: 110px 0;
  color: var(--white);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.impact-card {
  background: linear-gradient(145deg, rgba(15, 30, 54, 0.9), rgba(8, 18, 36, 0.95)) !important;
  border: 1px solid rgba(169, 104, 63, 0.28) !important;
  border-top: 3px solid #A9683F !important;
  border-radius: 16px !important;
  padding: 36px 30px !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(20px) !important;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease !important;
}

.impact-card:hover {
  transform: translateY(-6px) !important;
  border-color: #A9683F !important;
  box-shadow: 0 22px 50px rgba(169, 104, 63, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.impact-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.impact-stat-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.2rem;
  font-weight: 800;
  color: #A9683F;
  letter-spacing: -0.02em;
  background: rgba(169, 104, 63, 0.12);
  border: 1px solid rgba(169, 104, 63, 0.3);
  padding: 6px 18px;
  border-radius: 12px;
  display: inline-block;
}

.impact-stat-badge.stat-emerald {
  color: #60756C;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
}

.impact-stat-badge.stat-cyan {
  color: #6C9BA0;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
}

.impact-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.impact-card-heading {
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF !important;
  line-height: 1.3;
  margin-bottom: 12px;
}

.impact-card-text, .impact-label {
  color: rgba(245, 243, 238, 0.8) !important;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.impact-title {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
}

.impact-desc {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--paper-white);
}

/* ==========================================================================
   LIVE SIMULATOR SANDBOX (EXECUTIVE INK NAVY & AMBER)
   ========================================================================== */
.simulator-section {
  background-color: #06101D;
  padding: 110px 0;
}

.sim-box {
  background: var(--ink-navy);
  border: 1px solid var(--border-amber);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.sim-chrome {
  background: #0B0D0C;
  padding: 16px 28px;
  border-bottom: 1px solid rgba(169, 104, 63, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sim-dots {
  display: flex;
  gap: 8px;
}

.sim-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--signal-amber);
  opacity: 0.7;
}

.sim-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 420px;
}

@media (max-width: 768px) {
  .sim-grid {
    grid-template-columns: 1fr;
  }
}

.sim-sidebar {
  background: #0B0D0C;
  border-right: 1px solid rgba(169, 104, 63, 0.2);
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sim-tab-item {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  color: var(--paper-white);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: left;
  transition: all 0.2s ease;
}

.sim-tab-item:hover, .sim-tab-item.active {
  background: var(--signal-amber);
  color: var(--charcoal);
}

.sim-main-display {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--ink-navy);
}

.sim-chat-area {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 280px;
  overflow-y: auto;
}

.chat-bubble {
  max-width: 80%;
  padding: 16px 22px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  line-height: 1.55;
}

.chat-bubble.agent {
  background: #0B0D0C;
  color: var(--white);
  align-self: flex-start;
  border: 1px solid rgba(169, 104, 63, 0.3);
}

.chat-bubble.user {
  background: var(--signal-amber);
  color: var(--charcoal);
  align-self: flex-end;
  font-weight: 600;
}

.sim-prompt-btn {
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: rgba(245, 243, 238, 0.08);
  border: 1px solid var(--border-amber);
  color: var(--paper-white);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.sim-prompt-btn:hover {
  background: var(--signal-amber);
  color: var(--charcoal);
}

/* ==========================================================================
   BAIN EXECUTIVE CONSULTATION CTA & FOOTER
   ========================================================================== */
.bain-cta-section {
  background: linear-gradient(180deg, #171918 0%, #0B0D0C 100%) !important;
  padding: 100px 0 !important;
  border-top: 1px solid rgba(169, 104, 63, 0.3) !important;
  color: #FFFFFF !important;
  text-align: center;
}

.bain-eyebrow {
  color: #A9683F !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  display: inline-block !important;
  margin-bottom: 16px !important;
}

.bain-cta-title {
  color: #FFFFFF !important;
  font-family: var(--font-serif, 'Playfair Display', serif) !important;
  font-size: clamp(2rem, 3.5vw, 2.8rem) !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  margin-bottom: 18px !important;
  max-width: 850px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.bain-cta-desc {
  color: rgba(248, 250, 252, 0.9) !important;
  font-size: 1.15rem !important;
  line-height: 1.65 !important;
  max-width: 720px !important;
  margin: 0 auto 36px auto !important;
}

.bain-cta-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
}

.bain-cta-actions .btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  color: #FFFFFF !important;
  background: rgba(255, 255, 255, 0.08) !important;
  font-weight: 600 !important;
  padding: 14px 28px !important;
  border-radius: 50px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.bain-cta-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: #FFFFFF !important;
  color: #FFFFFF !important;
}

.site-footer {
  background-color: #0B0D0C !important;
  color: rgba(245, 243, 238, 0.85) !important;
  padding: 80px 0 35px !important;
  border-top: 1px solid rgba(169, 104, 63, 0.2) !important;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 60px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col-header, .footer-heading {
  font-family: var(--font-serif, 'Playfair Display', serif) !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  color: #FFFFFF !important;
  margin-bottom: 20px !important;
}

.footer-brand-desc, .footer-tagline {
  color: rgba(245, 243, 238, 0.75) !important;
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
  margin-top: 14px !important;
}

.footer-col-links, .footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  margin: 0;
}

.footer-col-links a, .footer-links a {
  color: rgba(245, 243, 238, 0.78) !important;
  font-size: 0.92rem !important;
  transition: color 0.2s ease !important;
  text-decoration: none !important;
}

.footer-col-links a:hover, .footer-links a:hover {
  color: #A9683F !important;
}

.footer-bottom-bar, .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: rgba(245, 243, 238, 0.6) !important;
  padding-top: 24px !important;
  margin-top: 40px !important;
}
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--paper-white);
}

.footer-bottom-bar a {
  color: var(--paper-white);
  transition: color 0.2s ease;
}

.footer-bottom-bar a:hover {
  color: var(--signal-amber);
}

/* ==========================================================================
   ACCESSIBILITY & USABILITY ENHANCEMENTS
   ========================================================================== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--signal-amber);
  color: var(--charcoal);
  padding: 12px 24px;
  z-index: 9999;
  font-weight: 800;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 20px;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--paper-white);
  opacity: 0.85;
  margin-bottom: 16px;
}

.breadcrumb-nav a {
  color: var(--paper-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumb-nav a:hover {
  color: var(--signal-amber);
}

/* Breadcrumbs on Light/Paper Surfaces */
.contact-section-hero .breadcrumb-nav,
.section-paper-padding .breadcrumb-nav,
.section-paper-padding-100 .breadcrumb-nav,
.section-white-bordered .breadcrumb-nav,
.bain-paper-section .breadcrumb-nav,
.legal-content-wrapper .breadcrumb-nav {
  color: #626861;
  opacity: 1;
}

.contact-section-hero .breadcrumb-nav a,
.section-paper-padding .breadcrumb-nav a,
.section-paper-padding-100 .breadcrumb-nav a,
.section-white-bordered .breadcrumb-nav a,
.bain-paper-section .breadcrumb-nav a,
.legal-content-wrapper .breadcrumb-nav a {
  color: #353A36;
}

.contact-section-hero .breadcrumb-nav a:hover,
.section-paper-padding .breadcrumb-nav a:hover,
.section-paper-padding-100 .breadcrumb-nav a:hover,
.section-white-bordered .breadcrumb-nav a:hover,
.bain-paper-section .breadcrumb-nav a:hover,
.legal-content-wrapper .breadcrumb-nav a:hover {
  color: var(--ember-orange);
}

.contact-section-hero .breadcrumb-current,
.section-paper-padding .breadcrumb-current,
.section-paper-padding-100 .breadcrumb-current,
.section-white-bordered .breadcrumb-current,
.bain-paper-section .breadcrumb-current,
.legal-content-wrapper .breadcrumb-current {
  color: #071317;
  font-weight: 700;
}

/* Form Error States */
input.is-invalid, select.is-invalid, textarea.is-invalid {
  border-color: #e63946 !important;
  background-color: rgba(230, 57, 70, 0.04) !important;
}

.field-error-msg {
  font-size: 0.78rem;
  color: #e63946;
  font-weight: 700;
  margin-top: 4px;
  display: block;
}

/* Simulator Typing Indicator */
.chat-bubble.agent.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 18px;
  width: fit-content;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  background-color: var(--signal-amber);
  border-radius: 50%;
  display: inline-block;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: 0s; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* Modal Popup Dialog */
.legal-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(23, 25, 24, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.legal-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.legal-modal-card {
  background: var(--white);
  color: var(--charcoal);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 40px;
  border: 1px solid var(--warm-gray);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink-navy);
  cursor: pointer;
}

/* Modal Body Scroll Lock */
body.modal-scroll-lock {
  overflow: hidden !important;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (MOBILE NAV & METRICS STRIP FIXES)
   ========================================================================== */
@media (max-width: 1080px) {
  .nav-header-fixed {
    top: 12px;
    left: 12px;
    right: 12px;
    width: auto;
  }

  .nav-glass-container {
    padding: 10px 18px;
    position: relative;
    flex-wrap: wrap;
  }

  .nav-hamburger-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    border-radius: var(--radius-sm);
    background: rgba(245, 243, 238, 0.12);
    border: 1px solid var(--border-glass);
    color: var(--white);
    cursor: pointer;
    transition: background-color 0.2s ease;
  }

  .nav-hamburger-toggle:hover {
    background: rgba(245, 243, 238, 0.22);
  }

  .nav-hamburger-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--white);
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav-glass-container.is-mobile-open .nav-hamburger-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-glass-container.is-mobile-open .nav-hamburger-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav-glass-container.is-mobile-open .nav-hamburger-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-menu-container {
    display: none;
    width: 100%;
    order: 3;
    padding-top: 16px;
    margin-top: 12px;
    border-top: 1px solid var(--border-glass);
  }

  .nav-glass-container.is-mobile-open .nav-menu-container {
    display: block;
  }

  .nav-menu-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
  }

  .nav-link-item {
    font-size: 1rem;
    display: block;
    width: 100%;
    padding: 4px 0;
  }

  .nav-controls-desktop {
    display: none !important;
  }

  .nav-mobile-actions-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--border-glass);
    width: 100%;
  }
}

@media (min-width: 1081px) {
  .nav-hamburger-toggle {
    display: none !important;
  }
  .nav-mobile-actions-row {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .bain-metrics-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 16px;
    padding: 20px 24px;
  }

  .metric-divider {
    display: none;
  }

  .metric-number {
    font-size: 1.65rem;
  }

  .metric-label {
    font-size: 0.76rem;
  }
}

/* ==========================================================================
   REFACTORED COMPONENT & UTILITY CLASSES (INLINE STYLE EXTRACTION)
   ========================================================================== */

/* Layout & Grid Helpers */
.nav-actions-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.container-max-1100 {
  max-width: 1100px;
}

.container-max-800 {
  max-width: 800px;
}

.container-max-840 {
  max-width: 840px;
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Eyebrow & Text Utilities */
.eyebrow-cobalt { color: #1E4D54; } /* High-contrast mineral teal on light surfaces (WCAG AA > 5:1) */
.section-navy-dark .eyebrow-cobalt,
.hiw-topology-section .eyebrow-cobalt,
.hiw-safety-section .eyebrow-cobalt,
.sim-wrapper-section .eyebrow-cobalt,
.bain-cta-section .eyebrow-cobalt {
  color: #81C6C6;
}
.eyebrow-amber { color: var(--signal-amber); }
.eyebrow-paper { color: var(--paper-white); }

.text-white { color: var(--white); }
.text-paper-white { color: var(--paper-white); }
.text-signal-amber { color: var(--signal-amber); }
.text-ink-navy { color: var(--ink-navy); }
.text-charcoal { color: var(--charcoal); }

.breadcrumb-current {
  color: var(--paper-white);
  font-weight: 700;
}

.breadcrumb-current-navy {
  color: var(--ink-navy);
  font-weight: 700;
}

.link-cobalt-bold {
  color: #1E4D54;
  font-weight: 700;
}

/* Subpage Hero & Section Structural Classes */
.subpage-hero {
  min-height: 82vh;
  padding-top: 150px;
  padding-bottom: 90px;
}

.hero-container-relative {
  position: relative;
  z-index: 10;
}

.section-paper-padding {
  background-color: var(--paper-white);
  padding: 90px 0;
}

.section-paper-padding-100 {
  background-color: var(--paper-white);
  padding: 100px 0;
}

.section-navy-dark {
  background-color: var(--ink-navy);
  color: var(--white);
  padding: 100px 0;
  border-bottom: 1px solid var(--border-glass);
}

.section-white-bordered {
  background-color: var(--white);
  padding: 100px 0;
  border-top: 1px solid var(--warm-gray);
}

.section-header-centered {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}

.section-header-centered-54 {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 54px;
}

.section-header-wide {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 54px;
}

.section-subtitle-paper {
  color: var(--paper-white);
  margin-top: 14px;
  font-size: 1.1rem;
}

/* Guardrail: automatically render subtitles dark when placed on light paper sections */
.section-paper-padding .section-subtitle-paper,
.section-paper-padding-100 .section-subtitle-paper,
.section-white-bordered .section-subtitle-paper,
.bain-paper-section .section-subtitle-paper {
  color: var(--charcoal) !important;
}

.section-subtitle-charcoal {
  color: var(--charcoal);
  margin-top: 14px;
  font-size: 1.1rem;
}

/* Card Component Classes */
.vertical-card-padded {
  padding: 36px;
}

.vertical-card-padded-lg {
  padding: 44px;
}

.vertical-card-heading {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink-navy);
  margin-bottom: 12px;
}

.vertical-card-heading-md {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink-navy);
  margin-bottom: 12px;
}

.vertical-card-body {
  font-size: 0.98rem;
  color: var(--charcoal);
  line-height: 1.6;
}

.vertical-card-body-sm {
  font-size: 0.95rem;
  color: var(--charcoal);
  line-height: 1.6;
}

.impact-card-icon {
  font-size: 2.2rem;
  color: var(--signal-amber);
  margin-bottom: 12px;
}

/* CTA Banner Classes */
.cta-container-centered {
  text-align: center;
}

.cta-banner-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  color: var(--white);
  margin-top: 8px;
}

.cta-banner-subtitle {
  max-width: 600px;
  margin: 16px auto 36px;
  color: var(--paper-white);
  font-size: 1.15rem;
}

.btn-cta-large {
  padding: 16px 44px;
  font-size: 1.05rem;
}

/* Footer Semantic Classes */
.footer-logo-wrapper {
  margin-bottom: 20px;
}

.footer-brand-desc {
  font-size: 0.92rem;
  color: var(--paper-white);
  max-width: 320px;
  line-height: 1.6;
}

.footer-contact-email {
  font-size: 0.95rem;
  color: var(--paper-white);
}

.footer-support-note {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--signal-amber);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

/* Contact Page Form & Layout Classes */
.contact-section-hero {
  padding-top: 150px;
  padding-bottom: 100px;
  background-color: var(--paper-white);
}

.contact-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-hero-title {
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  color: var(--ink-navy);
  line-height: 1.15;
}

.contact-hero-desc {
  margin-top: 20px;
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--charcoal);
}

.contact-trust-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-trust-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.amber-check-badge {
  width: 32px;
  height: 32px;
  font-size: 0.9rem;
  margin-top: 2px;
}

.contact-trust-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--ink-navy);
}

.contact-trust-desc {
  font-size: 0.95rem;
  color: var(--charcoal);
  margin-top: 4px;
  line-height: 1.5;
}

.contact-hero-title .hero-accent-serif,
.contact-section-hero .hero-accent-serif {
  color: #A94E24 !important; /* High-contrast deep ember (WCAG AA > 4.7:1 on #F1EEE7) */
  font-style: normal;
  font-weight: 600;
}

.contact-form-card {
  background: var(--white);
  border: 1px solid rgba(7, 19, 23, 0.14);
  border-top: 4px solid var(--ember-orange, #E8753D);
  border-radius: var(--radius-lg, 12px);
  padding: 40px;
  box-shadow: 0 16px 44px rgba(11, 13, 12, 0.08);
}

.contact-form-title {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--ink-navy);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.form-column-gap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-navy);
  margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-md, 8px);
  border: 1px solid #C7C0B4;
  font-size: 0.95rem;
  font-family: inherit;
  color: #071317;
  background: #FFFFFF;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #8C938A;
  opacity: 0.9;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--ember-orange, #E8753D) !important;
  box-shadow: 0 0 0 3px rgba(232, 117, 61, 0.2) !important;
}

.form-textarea {
  resize: vertical;
  min-height: 90px;
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .form-row-2col {
    grid-template-columns: 1fr;
  }
  .contact-form-card {
    padding: 24px 20px;
  }
}

.btn-submit-full {
  width: 100%;
  padding: 16px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  justify-content: center;
  margin-top: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-submit-full:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 117, 61, 0.35);
}

.form-trust-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 0.8rem;
  color: #626861;
  margin-top: 14px;
  text-align: center;
  line-height: 1.4;
}

.form-error-alert {
  display: none;
  padding: 24px;
  text-align: center;
  background: rgba(230, 57, 70, 0.08);
  border: 1px solid #e63946;
  border-radius: var(--radius-md);
  margin-top: 16px;
  color: #e63946;
}

.form-alert-heading {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.form-alert-text {
  font-size: 0.9rem;
  line-height: 1.5;
}

.form-success-card {
  display: none;
  padding: 36px;
  text-align: center;
  background: rgba(108, 155, 160, 0.06);
  border: 1px solid var(--cobalt-blue);
  border-radius: var(--radius-lg);
  margin-top: 24px;
}

/* About Page Specific Classes */
.about-heading-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 24px;
}

.about-body-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--charcoal);
  margin-bottom: 24px;
}

.about-body-paragraph {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--charcoal);
  margin-bottom: 32px;
}

.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.about-stat-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--warm-gray);
}

.about-stat-number {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--signal-amber);
}

.about-stat-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-navy);
  margin-top: 8px;
}

/* Button & Spacing Utility Helpers */
.btn-mt-24 {
  margin-top: 24px;
}

.no-margin-bottom {
  margin-bottom: 0 !important;
}

.grid-2col-gap36 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}

/* Additional Vertical Specific Component Classes */
.stat-number-serif {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--signal-amber);
}

.stat-heading-navy {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink-navy);
  margin-top: 8px;
}

.stat-body-muted {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.6;
}

.grid-2col-gap48 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.card-white-bordered-40 {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--warm-gray);
}

.tools-heading {
  font-weight: 800;
  color: var(--ink-navy);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.tools-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  font-weight: 700;
  color: var(--ink-navy);
}

.tool-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 768px) {
  .grid-3col, 
  .contact-grid-2col, 
  .about-stats-grid, 
  .grid-2col-gap48, 
  .tools-grid-2col, 
  .grid-2col-gap36,
  .form-row-2col {
    grid-template-columns: 1fr;
  }

  .grid-2col-gap48 {
    gap: 24px;
  }

  .card-white-bordered-40 {
    padding: 24px 20px;
  }
}

.sim-wrapper-section {
  padding: 100px 0;
  background-color: var(--ink-navy);
  color: var(--white);
}

.container-max-860 {
  max-width: 860px;
}

.margin-bottom-40 {
  margin-bottom: 40px;
}

.margin-top-14 {
  margin-top: 14px;
}

.section-paper-bordered {
  background-color: var(--paper-white);
  padding: 90px 0;
  border-top: 1px solid var(--warm-gray);
  border-bottom: 1px solid var(--warm-gray);
}

.demo-chat-card {
  background: var(--white);
  border: 1px solid var(--border-amber);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.demo-chat-embed {
  height: 520px;
  width: 100%;
}

.form-success-alert {
  display: none;
  padding: 32px;
  text-align: center;
  background: rgba(169, 104, 63, 0.1);
  border: 1px solid var(--border-amber);
  border-radius: var(--radius-md);
  margin-top: 16px;
}

.success-badge-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--signal-amber);
  color: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.4rem;
  font-weight: 800;
}

/* Index Page Specific Component Classes */
.badge-amber-dark {
  background: var(--signal-amber);
  color: var(--charcoal);
}

.sim-chips-wrapper {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.sim-live-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--signal-amber);
  letter-spacing: 0.1em;
}

.section-header-left-720 {
  text-align: left;
  max-width: 720px;
}

.section-header-centered-680 {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.section-header-centered-margin48 {
  text-align: center;
  margin-bottom: 48px;
}

.section-header-centered-margin36 {
  margin-bottom: 36px;
  text-align: center;
}

.title-max-700 {
  color: var(--white);
  margin: 0 auto;
  max-width: 700px;
}

/* ==========================================================================
   SMOOTH SCROLL REVEAL ANIMATIONS
   ========================================================================== */
/* Default: fully visible (no-JS / slow-JS resilience) */
.reveal-on-scroll {
  opacity: 1;
  transform: translateY(0);
}

/* Only hide when JS confirms execution AND before elements scroll into view */
.js-reveal-enabled .reveal-on-scroll:not(.is-visible) {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.js-reveal-enabled .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll,
  .js-reveal-enabled .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   INTERACTIVE DEMO SANDBOX & SIMULATOR STYLING
   ========================================================================== */
.simulator-section {
  background-color: var(--ink-navy);
  padding: 100px 0;
  border-bottom: 1px solid var(--border-glass);
}

.simulator-board {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 28px;
  background: linear-gradient(145deg, rgba(14, 30, 52, 0.95), rgba(7, 16, 30, 0.98));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(169, 104, 63, 0.35);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 28px 75px rgba(0, 0, 0, 0.65), 0 0 40px rgba(169, 104, 63, 0.07);
}

@media (max-width: 960px) {
  .simulator-board {
    grid-template-columns: 1fr;
    padding: 20px;
  }
}

.sim-control-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-right: 24px;
  border-right: 1px solid rgba(169, 104, 63, 0.2);
}

@media (max-width: 960px) {
  .sim-control-panel {
    border-right: none;
    border-bottom: 1px solid rgba(169, 104, 63, 0.2);
    padding-right: 0;
    padding-bottom: 24px;
  }
}

.sim-brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 4px;
}

.sim-brand-name {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--paper-white);
  letter-spacing: 0.05em;
}

.sim-live-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--signal-amber);
  letter-spacing: 0.08em;
}

.sim-selector-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sim-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(248, 250, 252, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sim-select {
  background: rgba(18, 38, 64, 0.95);
  color: var(--paper-white);
  border: 1px solid rgba(169, 104, 63, 0.4);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 0.25s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.sim-select option {
  background-color: var(--ink-navy);
  color: var(--paper-white);
}

.sim-select:focus, .sim-select:hover {
  border-color: var(--signal-amber);
  box-shadow: 0 0 12px rgba(169, 104, 63, 0.25);
}

/* Dynamic Explanation Box */
.sim-explanation-card {
  background: rgba(18, 38, 64, 0.65);
  border: 1px solid rgba(169, 104, 63, 0.25);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.sim-explanation-header {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}

.sim-explanation-icon {
  font-size: 1.1rem;
  line-height: 1.2;
}

.sim-explanation-intro {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--paper-white);
  line-height: 1.4;
}

.sim-explanation-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sim-explanation-list li {
  font-size: 0.8rem;
  color: rgba(248, 250, 252, 0.88);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.35;
}

.sim-bullet-check {
  color: var(--signal-amber);
  font-weight: 800;
  font-size: 0.85rem;
}

/* Quick Prompt Chips */
.sim-chips-wrapper {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sim-chip-btn {
  background: rgba(169, 104, 63, 0.08);
  border: 1px solid rgba(169, 104, 63, 0.28);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  line-height: 1.35;
  display: block;
  width: 100%;
}

.sim-chip-btn:hover {
  background: rgba(169, 104, 63, 0.22);
  border-color: rgba(169, 104, 63, 0.65);
  color: var(--signal-amber);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(169, 104, 63, 0.18);
}

.sim-preview-panel {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(10, 24, 43, 0.85);
  border: 1px solid rgba(169, 104, 63, 0.3);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.sim-preview-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: rgba(12, 27, 48, 0.98);
  border-bottom: 1px solid rgba(169, 104, 63, 0.2);
}

.sim-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.sim-dot.green {
  background-color: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
  animation: simPulse 2s infinite;
}

@keyframes simPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.sim-dot.yellow { background-color: #eab308; }
.sim-dot.red { background-color: #ef4444; }

.sim-status-text {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--paper-white);
  letter-spacing: 0.02em;
  margin-left: 6px;
}

#n8n-chat-container {
  --chat--color--primary: #e8753d;
  --chat--color-dark: #061114;
  --chat--color-light: #09191d;
  --chat--color-white: #e8f2ef;
  
  --chat--header--background: #09191d;
  --chat--header--color: #e8f2ef;
  
  --chat--body--background: #061114;
  --chat--footer--background: #09191d;
  --chat--footer--border-top: 1px solid rgba(129, 198, 198, 0.2);

  --chat--message--bot--background: #0c2023;
  --chat--message--bot--color: #e8f2ef;
  --chat--message--bot--border: 1px solid rgba(129, 198, 198, 0.25);

  --chat--message--user--background: #e8753d;
  --chat--message--user--color: #ffffff;
  --chat--message--user--border: none;

  --chat--input--background: #061114;
  --chat--input--text-color: #e8f2ef;
  --chat--input--container--background: #061114;
  --chat--input--border: 1px solid rgba(129, 198, 198, 0.3);
  --chat--input--send--button--background: #e8753d;
  --chat--input--send--button--color: #ffffff;

  min-height: 540px;
  width: 100%;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  overflow: hidden;
  overscroll-behavior: contain !important;
}

/* Deep Class Overrides for @n8n/chat DOM elements */
#n8n-chat-container .chat-header {
  padding: 18px 20px !important;
  border-bottom: 1px solid rgba(129, 198, 198, 0.2) !important;
  background: #09191d !important;
}

#n8n-chat-container .chat-header-title,
#n8n-chat-container .chat-header h1 {
  font-family: var(--font-sans) !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #e8f2ef !important;
  letter-spacing: 0.01em;
}

#n8n-chat-container .chat-header-subtitle,
#n8n-chat-container .chat-header p {
  color: #81c6c6 !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  opacity: 0.9;
}

#n8n-chat-container .chat-body,
#n8n-chat-container .chat-layout,
#n8n-chat-container .n8n-chat,
#n8n-chat-container [class*="chat-body"],
#n8n-chat-container [class*="chat-layout"] {
  background-color: #061114 !important;
  background-image: none !important;
  color: #e8f2ef !important;
  overscroll-behavior: contain !important;
}

#n8n-chat-container .chat-message,
#n8n-chat-container [class*="chat-message"] {
  scroll-margin: 0 !important;
}

#n8n-chat-container .chat-message-from-bot,
#n8n-chat-container [class*="from-bot"] {
  background: #0c2023 !important;
  color: #F1EEE7 !important;
  border: 1px solid rgba(129, 198, 198, 0.3) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
  border-radius: 12px 12px 12px 2px !important;
  font-size: 0.92rem !important;
  line-height: 1.55 !important;
  scroll-margin: 0 !important;
}

#n8n-chat-container .chat-message-from-bot *,
#n8n-chat-container .chat-message-from-bot p,
#n8n-chat-container .chat-message-from-bot span,
#n8n-chat-container .chat-message-from-bot div,
#n8n-chat-container .chat-message-from-bot li,
#n8n-chat-container [class*="from-bot"] *,
#n8n-chat-container [class*="from-bot"] p,
#n8n-chat-container [class*="from-bot"] span,
#n8n-chat-container [class*="from-bot"] div,
#n8n-chat-container [class*="from-bot"] li {
  color: #F1EEE7 !important;
  font-size: 0.92rem !important;
  line-height: 1.55 !important;
}

#n8n-chat-container .chat-message-from-bot strong,
#n8n-chat-container .chat-message-from-bot b,
#n8n-chat-container [class*="from-bot"] strong,
#n8n-chat-container [class*="from-bot"] b {
  color: #FFFFFF !important;
  font-weight: 700 !important;
}

#n8n-chat-container .chat-message-from-bot a,
#n8n-chat-container [class*="from-bot"] a {
  color: #81C6C6 !important;
  text-decoration: underline !important;
}

#n8n-chat-container .chat-message-from-user,
#n8n-chat-container [class*="from-user"] {
  background: #e8753d !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 14px rgba(232, 117, 61, 0.35) !important;
  border-radius: 12px 12px 2px 12px !important;
  border: none !important;
  font-size: 0.92rem !important;
  line-height: 1.55 !important;
  scroll-margin: 0 !important;
}

#n8n-chat-container .chat-message-from-user *,
#n8n-chat-container .chat-message-from-user p,
#n8n-chat-container .chat-message-from-user span,
#n8n-chat-container .chat-message-from-user div,
#n8n-chat-container .chat-message-from-user li,
#n8n-chat-container [class*="from-user"] *,
#n8n-chat-container [class*="from-user"] p,
#n8n-chat-container [class*="from-user"] span,
#n8n-chat-container [class*="from-user"] div,
#n8n-chat-container [class*="from-user"] li {
  color: #ffffff !important;
  font-size: 0.92rem !important;
  line-height: 1.55 !important;
}

#n8n-chat-container .chat-inputs,
#n8n-chat-container .chat-footer,
#n8n-chat-container .chat-input-container,
#n8n-chat-container [class*="chat-input-container"] {
  background-color: #09191d !important;
  border-top: 1px solid rgba(129, 198, 198, 0.2) !important;
  padding: 14px 16px !important;
}

#n8n-chat-container textarea,
#n8n-chat-container input[type="text"] {
  background-color: #061114 !important;
  color: #e8f2ef !important;
  border: 1px solid rgba(129, 198, 198, 0.3) !important;
  border-radius: 4px !important;
  padding: 11px 14px !important;
  font-size: 0.88rem !important;
  transition: all 0.2s ease !important;
}

#n8n-chat-container textarea::placeholder,
#n8n-chat-container input::placeholder {
  color: rgba(232, 242, 239, 0.5) !important;
}

#n8n-chat-container textarea:focus,
#n8n-chat-container input[type="text"]:focus {
  border-color: #81c6c6 !important;
  box-shadow: 0 0 12px rgba(129, 198, 198, 0.25) !important;
  outline: none !important;
}

#n8n-chat-container button[type="submit"],
#n8n-chat-container .chat-input-send-button {
  background: #e8753d !important;
  color: #ffffff !important;
  border-radius: 4px !important;
  border: none !important;
  transition: all 0.2s ease !important;
}

#n8n-chat-container button[type="submit"]:hover,
#n8n-chat-container .chat-input-send-button:hover {
  background: #cf622c !important;
  transform: scale(1.03) !important;
  box-shadow: 0 4px 12px rgba(232, 117, 61, 0.4) !important;
}

/* ==========================================================================
   LEGAL PAGES STYLING (PRIVACY POLICY & TERMS OF SERVICE)
   ========================================================================== */
.effective-date-text {
  font-size: 0.95rem;
  color: var(--charcoal-muted);
  font-weight: 500;
}

.legal-disclaimer-box {
  background: var(--paper-warm);
  border-left: 4px solid var(--signal-amber);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--charcoal);
}

.legal-article-body {
  margin-top: 32px;
}

.legal-article-body h3 {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink-navy);
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-article-body p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--charcoal);
  margin-bottom: 16px;
}

.legal-article-body ul {
  margin-bottom: 24px;
  padding-left: 20px;
}

.legal-article-body li {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--charcoal);
  margin-bottom: 8px;
}

/* ==========================================================================
   COOKIE CONSENT BANNER STYLING
   ========================================================================== */
.cookie-consent-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 720px;
  z-index: 9999;
  background: rgba(23, 25, 24, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.cookie-consent-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 640px) {
  .cookie-consent-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

.cookie-consent-text {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--paper-white);
  margin: 0;
}

.cookie-privacy-link {
  color: var(--signal-amber);
  text-decoration: underline;
  font-weight: 600;
}

.cookie-privacy-link:hover {
  color: var(--white);
}

.cookie-consent-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.cookie-btn-accept {
  background-color: var(--signal-amber);
  color: var(--ink-navy);
}

.cookie-btn-accept:hover {
  background-color: var(--amber-hover);
  transform: translateY(-1px);
}

.cookie-btn-decline {
  background: transparent;
  color: var(--warm-gray);
  border: 1px solid var(--border-glass);
}

.cookie-btn-decline:hover {
  color: var(--paper-white);
  border-color: var(--warm-gray);
}

/* ==========================================================================
   BAIN-STYLE BLOG & ARTICLE STYLES
   ========================================================================== */body.blog-page:not(.light-editorial) {
  background-color: #171918 !important;
  color: #F5F3EE !important;
}

body.blog-page:not(.light-editorial) h1,
body.blog-page:not(.light-editorial) h2,
body.blog-page:not(.light-editorial) h3,
body.blog-page:not(.light-editorial) h4 {
  color: #FFFFFF !important;
}

/* Blog Hero & Header */
.blog-hero-section {
  padding: 140px 0 50px 0;
  text-align: center;
  position: relative;
  background: radial-gradient(circle at 50% 0%, rgba(169, 104, 63, 0.15) 0%, rgba(23, 25, 24, 1) 75%);
}

.blog-hero-title {
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  color: #FFFFFF !important;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.blog-hero-subtitle {
  font-size: 1.18rem;
  color: rgba(245, 243, 238, 0.85) !important;
  max-width: 680px;
  margin: 0 auto 36px auto;
  line-height: 1.6;
}

/* Category Filter Bar */
.blog-controls-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  margin-bottom: 40px;
}

.blog-filter-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.blog-filter-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #F5F3EE !important;
  padding: 10px 22px;
  border-radius: 999px;
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.blog-filter-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--signal-amber, #A9683F);
  color: #FFFFFF !important;
  transform: translateY(-1px);
}

.blog-filter-btn.active {
  background: var(--signal-amber, #A9683F) !important;
  color: #171918 !important;
  border-color: var(--signal-amber, #A9683F) !important;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(169, 104, 63, 0.35);
}

.blog-search-box {
  position: relative;
  width: 100%;
  max-width: 440px;
}

.blog-search-input {
  width: 100%;
  padding: 13px 20px 13px 48px;
  background: rgba(23, 25, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #FFFFFF !important;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
}

.blog-search-input::placeholder {
  color: rgba(245, 243, 238, 0.55);
}

.blog-search-input:focus {
  outline: none;
  border-color: var(--signal-amber, #A9683F);
  box-shadow: 0 0 0 3px rgba(169, 104, 63, 0.2);
}

.blog-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--signal-amber, #A9683F);
  pointer-events: none;
}

/* Featured Article Card */
.featured-post-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  background: linear-gradient(135deg, rgba(18, 30, 48, 0.95), rgba(11, 23, 38, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 60px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.featured-post-card:hover {
  transform: translateY(-4px);
  border-color: var(--signal-amber, #A9683F);
  box-shadow: 0 16px 40px rgba(169, 104, 63, 0.15);
}

.featured-post-img-holder {
  width: 100%;
  height: 100%;
  min-height: 340px;
  position: relative;
  overflow: hidden;
  background: #171918;
}

.featured-post-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-post-card:hover .featured-post-img {
  transform: scale(1.04);
}

.featured-post-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-badge {
  display: inline-block;
  align-self: flex-start;
  background: rgba(169, 104, 63, 0.15);
  color: var(--signal-amber, #A9683F) !important;
  border: 1px solid rgba(169, 104, 63, 0.3);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.featured-post-title {
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #FFFFFF !important;
  line-height: 1.25;
  margin-bottom: 14px;
}

.featured-post-excerpt {
  color: rgba(245, 243, 238, 0.8) !important;
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.84rem;
  color: rgba(245, 243, 238, 0.6) !important;
}

/* Article Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 80px;
}

.article-card {
  background: linear-gradient(135deg, rgba(18, 30, 48, 0.95), rgba(11, 23, 38, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--signal-amber, #A9683F);
  box-shadow: 0 12px 30px rgba(169, 104, 63, 0.12);
}

.article-card-img-holder {
  width: 100%;
  height: 210px;
  overflow: hidden;
  position: relative;
  background: #171918;
}

.article-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .article-card-img {
  transform: scale(1.05);
}

.article-card-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-card-title {
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-size: 1.25rem;
  color: #FFFFFF !important;
  line-height: 1.35;
  margin-bottom: 12px;
  transition: color 0.2s ease;
}

.article-card:hover .article-card-title {
  color: var(--signal-amber, #A9683F) !important;
}

.article-card-excerpt {
  color: rgba(245, 243, 238, 0.78) !important;
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 22px;
  flex-grow: 1;
}

/* Single Article Layout */
.single-article-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 140px 24px 80px 24px;
}

.article-header {
  text-align: center;
  margin-bottom: 40px;
}

.article-main-title {
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  color: #FFFFFF !important;
  line-height: 1.18;
  margin: 18px 0 22px 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

.article-author-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 40px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--signal-amber, #A9683F);
  color: #171918;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.author-info {
  text-align: left;
}

.author-name {
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.95rem;
}

.article-read-info {
  font-size: 0.84rem;
  color: rgba(245, 243, 238, 0.7) !important;
}

.article-content {
  color: #D8D1C5 !important;
  font-size: 1.14rem;
  line-height: 1.85;
}

.article-content p {
  color: #D8D1C5 !important;
  font-size: 1.14rem;
  line-height: 1.85;
  margin-bottom: 24px;
}

.article-content h2 {
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-size: 1.9rem;
  color: #FFFFFF !important;
  margin: 46px 0 20px 0;
  line-height: 1.3;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.article-content h3 {
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-size: 1.5rem;
  color: #FFFFFF !important;
  margin: 34px 0 16px 0;
}

.article-content ul, 
.article-content ol {
  margin: 0 0 26px 24px;
}

.article-content li {
  color: #D8D1C5 !important;
  margin-bottom: 12px;
  font-size: 1.08rem;
  line-height: 1.7;
}

.article-content strong,
.article-content b {
  color: #FFFFFF !important;
  font-weight: 700;
}

.article-content a:not(.btn) {
  color: var(--signal-amber, #A9683F) !important;
  text-decoration: underline;
  font-weight: 600;
}

.article-content a:not(.btn):hover {
  color: #FFFFFF !important;
}

.article-callout-box {
  background: rgba(169, 104, 63, 0.12);
  border-left: 4px solid var(--signal-amber, #A9683F);
  padding: 26px 30px;
  border-radius: 0 12px 12px 0;
  margin: 38px 0;
  font-style: italic;
  font-size: 1.18rem;
  color: #1E293B !important;
  line-height: 1.65;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

body:not(.light-editorial) .article-callout-box {
  color: #FFFFFF !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Article Inline Lead CTA Box */
.article-inline-cta {
  background: linear-gradient(135deg, rgba(18, 30, 48, 0.98), rgba(11, 23, 38, 0.98));
  border: 1px solid var(--signal-amber, #A9683F);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  margin: 50px 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.article-inline-cta h4 {
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-size: 1.7rem;
  color: #FFFFFF !important;
  margin-bottom: 12px;
}

.article-inline-cta p {
  color: rgba(245, 243, 238, 0.85) !important;
  font-size: 1rem;
  margin-bottom: 26px;
}

/* CTA Button Specific Override for High Contrast */
.article-content a.btn,
.article-content a.btn-primary,
.article-inline-cta a.btn-primary {
  background-color: var(--signal-amber, #A9683F) !important;
  color: #171918 !important;
  font-family: var(--font-sans, 'Inter', sans-serif) !important;
  font-weight: 800 !important;
  font-size: 0.95rem !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 14px 34px !important;
  border-radius: 999px !important;
  box-shadow: 0 4px 18px rgba(169, 104, 63, 0.35) !important;
  transition: all 0.25s ease !important;
  border: none !important;
  letter-spacing: 0.02em;
}

.article-content a.btn-primary:hover,
.article-inline-cta a.btn-primary:hover,
.btn-primary:hover {
  background-color: #E8753D !important;
  color: #171918 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 28px rgba(169, 104, 63, 0.5) !important;
}

/* ROI Calculator Styles */
.roi-calculator-box {
  background: linear-gradient(135deg, rgba(18, 30, 48, 0.98), rgba(11, 23, 38, 0.98));
  border: 1px solid var(--signal-amber, #A9683F);
  border-radius: 18px;
  padding: 38px;
  margin: 50px 0;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
}

.roi-calculator-box h3 {
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-size: 1.8rem;
  color: #FFFFFF !important;
  margin-bottom: 8px;
  text-align: center;
}

.roi-calculator-subtitle {
  color: rgba(245, 243, 238, 0.85) !important;
  font-size: 0.98rem;
  text-align: center;
  margin-bottom: 30px;
}

.roi-controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 34px;
}

.roi-control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.roi-control-group label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #FFFFFF !important;
}

.roi-select,
.roi-slider {
  width: 100%;
  padding: 10px 14px;
  background: rgba(23, 25, 24, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #FFFFFF !important;
  font-size: 0.95rem;
}

.roi-select:focus {
  outline: none;
  border-color: var(--signal-amber, #A9683F);
}

.roi-slider-value {
  align-self: flex-end;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  color: var(--signal-amber, #A9683F) !important;
  font-weight: 700;
}

.roi-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  background: rgba(23, 25, 24, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.roi-stat-number {
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--signal-amber, #A9683F) !important;
  line-height: 1.1;
  margin-bottom: 4px;
}

.roi-stat-label {
  font-size: 0.82rem;
  color: rgba(245, 243, 238, 0.75) !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .roi-results-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Software Ecosystem Integration Showcase */
.integration-showcase-section {
  padding: 90px 0 !important;
  background-color: #F8F5EF !important;
  border-top: 1px solid #D8D1C5 !important;
  border-bottom: 1px solid #D8D1C5 !important;
}

.integration-showcase-title {
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: #171918 !important;
  text-align: center;
  margin-bottom: 12px;
  font-weight: 800;
}

.integration-showcase-desc {
  color: #4E554F !important;
  text-align: center;
  max-width: 680px;
  margin: 0 auto 44px auto;
  font-size: 1.08rem;
  line-height: 1.6;
}

.integration-ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 22px;
}

.integration-badge-card {
  background: #FFFFFF !important;
  border: 1px solid #C7C0B4 !important;
  border-top: 3px solid #171918 !important;
  border-radius: 16px !important;
  padding: 26px 20px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06) !important;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease !important;
}

.integration-badge-card:hover {
  transform: translateY(-6px) !important;
  border-color: #A9683F !important;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12) !important;
}

.integration-badge-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #F1EEE7;
  border: 1px solid #D8D1C5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.integration-badge-name {
  color: #171918 !important;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 4px;
}

.integration-badge-cat {
  color: #626861 !important;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 768px) {
  .bain-hero-section {
    padding-top: 125px;
    padding-bottom: 60px;
    min-height: auto;
  }

  .hero-bg-gif {
    object-position: center center;
    opacity: 0.88;
  }

  .hero-bg-backdrop-tint {
    background: linear-gradient(180deg, 
      #171918 0%, 
      rgba(23, 25, 24, 0.8) 40%, 
      rgba(23, 25, 24, 0.5) 70%, 
      #171918 100%
    );
  }

  .featured-post-card {
    grid-template-columns: 1fr;
  }
  
  .featured-post-content {
    padding: 24px;
  }
  
  .single-article-container {
    padding-top: 110px;
  }
}

/* ==========================================================================
   DARK EXECUTIVE PIPELINE FLOW (CONCEPT 1 VISUAL REDESIGN)
   ========================================================================== */
/* ==========================================================================
   LIGHT EDITORIAL PIPELINE FLOW (5-STEP PROCESS)
   ========================================================================== */
/* (Pipeline styles migrated to Living Network how-it-works architecture) */

/* ==========================================================================
   ARTICLE VISUAL AIDS & INFOGRAPHIC DIAGRAM STYLES
   ========================================================================== */
.article-hero-image-box {
  margin: 32px 0 40px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.6);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.article-hero-img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.article-img-caption {
  padding: 12px 20px;
  font-size: 0.88rem;
  color: rgba(245, 243, 238, 0.7);
  background: rgba(23, 25, 24, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-style: italic;
  text-align: center;
}

.article-diagram-box {
  margin: 36px 0;
  padding: 28px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(169, 104, 63, 0.3);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.diagram-title {
  color: #A9683F !important;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.diagram-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 768px) {
  .diagram-flow {
    flex-direction: column;
  }
}

.diagram-step {
  flex: 1;
  padding: 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease;
}

.diagram-step:hover {
  transform: translateY(-2px);
}

.diagram-step.red-step {
  border-left: 4px solid #EF4444;
  background: rgba(239, 68, 68, 0.08);
}

.diagram-step.green-step {
  border-left: 4px solid #60756C;
  background: rgba(16, 185, 129, 0.08);
}

.diagram-step.amber-step {
  border-left: 4px solid #A9683F;
  background: rgba(169, 104, 63, 0.08);
}

.step-num {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.diagram-arrow {
  font-size: 1.5rem;
  color: #A9683F;
  font-weight: 900;
}

@media (max-width: 768px) {
  .diagram-arrow {
    transform: rotate(90deg);
  }
}

/* ==========================================================================
   HYBRID LANDING-PAGE & LIGHT EDITORIAL CANVAS STYLES
   ========================================================================== */
body.blog-page.light-editorial {
  background-color: #F8F5EF !important;
  color: #353A36 !important;
}

/* Hero Banner on Light Editorial Articles */
.article-landing-hero {
  position: relative;
  background: linear-gradient(180deg, #171918 0%, #202522 100%);
  padding: 120px 0 60px;
  color: #FFFFFF;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.article-landing-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  filter: saturate(1.2) brightness(0.9);
}

.article-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
}

.article-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 50px;
  background: rgba(169, 104, 63, 0.15);
  border: 1px solid rgba(169, 104, 63, 0.4);
  color: #A9683F;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.article-hero-title-hybrid {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.22;
  color: #FFFFFF !important;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

@media (max-width: 768px) {
  .article-hero-title-hybrid {
    font-size: 1.95rem;
  }
}

.article-hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(245, 243, 238, 0.75);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

/* Key Takeaways Card Box */
.key-takeaways-box {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(169, 104, 63, 0.3);
  border-radius: 14px;
  padding: 22px 28px;
  margin-top: 10px;
}

.key-takeaways-title {
  color: #A9683F;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.key-takeaways-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.key-takeaways-list li {
  color: #D8D1C5;
  font-size: 0.98rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.key-takeaways-list li::before {
  content: "✓";
  color: #60756C;
  font-weight: 900;
}

/* Hybrid Article Canvas Body */
.hybrid-article-body {
  max-width: 860px;
  margin: 50px auto 80px;
  padding: 0 24px;
}

.hybrid-article-body p {
  color: #353A36 !important;
  font-size: 1.15rem;
  line-height: 1.85;
  margin-bottom: 24px;
}

body.blog-page.light-editorial .hybrid-article-body > h2,
body.blog-page.light-editorial .article-content > h2,
.hybrid-article-body > h2 {
  color: #171918 !important;
  font-family: 'Playfair Display', serif;
  font-size: 1.95rem;
  font-weight: 800;
  margin-top: 52px;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
  padding-bottom: 10px;
  border-bottom: 2px solid #D8D1C5;
}

body.blog-page.light-editorial .hybrid-article-body > h3,
body.blog-page.light-editorial .article-content > h3,
.hybrid-article-body > h3 {
  color: #171918 !important;
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 36px;
  margin-bottom: 16px;
}

body.blog-page.light-editorial .hybrid-article-body > h4,
body.blog-page.light-editorial .article-content > h4,
.hybrid-article-body > h4 {
  color: #171918 !important;
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 12px;
}

.hybrid-article-body ul, .hybrid-article-body ol {
  color: #353A36 !important;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 28px;
  padding-left: 24px;
}

.hybrid-article-body li {
  margin-bottom: 10px;
}

.hybrid-article-body strong {
  color: #171918 !important;
  font-weight: 700;
}

/* Stat Grid Callouts (Landing Page Feature) */
.stat-grid-landing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0;
}

@media (max-width: 768px) {
  .stat-grid-landing {
    grid-template-columns: 1fr;
  }
}

.stat-card-landing {
  background: #FFFFFF;
  border: 1px solid #D8D1C5;
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
  border-top: 4px solid #171918;
}

.stat-card-landing.amber-border {
  border-top-color: #A9683F;
}

.stat-card-landing.green-border {
  border-top-color: #60756C;
}

.stat-number-landing {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.4rem;
  font-weight: 800;
  color: #171918;
  margin-bottom: 6px;
}

.stat-label-landing {
  font-size: 0.9rem;
  color: #626861;
  font-weight: 600;
  line-height: 1.4;
}

/* Light Callout Quote Box */
.article-callout-box.light-mode {
  background: #FFFBEB !important;
  border: 1px solid #C2794C !important;
  border-left: 5px solid #A9683F !important;
  color: #78350F !important;
  font-size: 1.15rem;
  font-weight: 600;
  border-radius: 12px;
  padding: 24px;
  margin: 36px 0;
  box-shadow: 0 8px 20px rgba(169, 104, 63, 0.08);
}

/* Light Diagram Box */
.article-diagram-box.light-mode {
  background: #FFFFFF !important;
  border: 1px solid #C7C0B4 !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08) !important;
}

.article-diagram-box.light-mode .diagram-title {
  color: #171918 !important;
}

.article-diagram-box.light-mode .diagram-step {
  background: #F8F5EF !important;
  border: 1px solid #D8D1C5 !important;
}

.article-diagram-box.light-mode .diagram-step p {
  color: #353A36 !important;
}

.article-diagram-box.light-mode .step-num {
  color: #171918 !important;
}

/* Mid-Page Interactive Sandbox CTA Box */
.mid-page-cta-landing {
  background: linear-gradient(135deg, #171918 0%, #132742 55%, #1B355B 100%);
  border: 1px solid rgba(169, 104, 63, 0.35);
  border-radius: 20px;
  padding: 40px 36px;
  color: #FFFFFF !important;
  margin: 48px 0;
  box-shadow: 0 20px 45px rgba(23, 25, 24, 0.22), 0 0 25px rgba(169, 104, 63, 0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.mid-page-cta-landing::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(169, 104, 63, 0.12) 0%, rgba(169, 104, 63, 0) 70%);
  pointer-events: none;
}

.mid-page-cta-landing .cta-badge-gold {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 14px;
  border-radius: 20px;
  background: rgba(169, 104, 63, 0.18);
  color: var(--signal-amber, #A9683F) !important;
  border: 1px solid rgba(169, 104, 63, 0.4);
  margin-bottom: 16px;
  line-height: 1.3;
}

.mid-page-cta-landing h3,
.mid-page-cta-landing h4,
.mid-page-cta-landing .cta-heading-landing,
.mid-page-cta-landing .cta-landing-content h4 {
  font-family: var(--font-heading, 'Playfair Display', serif) !important;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem) !important;
  font-weight: 800 !important;
  color: #FFFFFF !important;
  line-height: 1.25 !important;
  margin: 0 0 12px 0 !important;
  padding: 0 !important;
  border: none !important;
  text-align: left !important;
}

.mid-page-cta-landing p,
.mid-page-cta-landing .cta-subtitle-landing,
.mid-page-cta-landing .cta-landing-content p {
  color: rgba(245, 243, 238, 0.9) !important;
  font-size: 1.05rem !important;
  line-height: 1.6 !important;
  margin: 0 0 24px 0 !important;
  max-width: 680px;
  text-align: left !important;
}

.mid-page-cta-landing .btn,
.mid-page-cta-landing .btn-cta-landing,
.mid-page-cta-landing .cta-landing-btn {
  background: var(--signal-amber, #A9683F) !important;
  color: #0B0D0C !important;
  font-family: var(--font-sans, 'Inter', sans-serif) !important;
  font-weight: 800 !important;
  font-size: 0.92rem !important;
  padding: 13px 28px !important;
  border-radius: 30px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  border: 1px solid var(--signal-amber, #A9683F) !important;
  box-shadow: 0 4px 16px rgba(169, 104, 63, 0.35) !important;
  transition: all 0.25s ease !important;
  white-space: nowrap !important;
  cursor: pointer !important;
}

.mid-page-cta-landing .btn:hover,
.mid-page-cta-landing .btn-cta-landing:hover,
.mid-page-cta-landing .cta-landing-btn:hover {
  background: #FFFFFF !important;
  color: #0B0D0C !important;
  border-color: #FFFFFF !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3) !important;
}

/* ==========================================================================
   LIGHT EDITORIAL BLOG HUB (LISTING CARDS & SEARCH) STYLES
   ========================================================================== */
body.blog-page.light-editorial .article-card {
  background: #FFFFFF !important;
  border: 1px solid #D8D1C5 !important;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06) !important;
}

body.blog-page.light-editorial .article-card:hover {
  transform: translateY(-4px);
  border-color: #171918 !important;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.12) !important;
}

body.blog-page.light-editorial .article-card-title,
body.blog-page.light-editorial .article-card-title a {
  color: #171918 !important;
}

body.blog-page.light-editorial .article-card:hover .article-card-title {
  color: #1E3A8A !important;
}

body.blog-page.light-editorial .article-card-excerpt {
  color: #4E554F !important;
}

body.blog-page.light-editorial .article-card .article-meta {
  color: #626861 !important;
}

body.blog-page.light-editorial .featured-post-card {
  background: #FFFFFF !important;
  border: 1px solid #D8D1C5 !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08) !important;
}

body.blog-page.light-editorial .featured-post-title {
  color: #171918 !important;
}

body.blog-page.light-editorial .featured-post-excerpt {
  color: #4E554F !important;
}

body.blog-page.light-editorial .featured-post-card .article-meta {
  color: #626861 !important;
}

/* Light Blog Hero & Search Controls */
body.blog-page.light-editorial .blog-hero-section {
  background: linear-gradient(180deg, #171918 0%, #202522 100%) !important;
  padding: 130px 0 70px !important;
  color: #FFFFFF !important;
}

body.blog-page.light-editorial .blog-search-box {
  background: #FFFFFF !important;
  border: 1px solid #C7C0B4 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
}

body.blog-page.light-editorial .blog-search-input {
  color: #171918 !important;
}

body.blog-page.light-editorial .blog-search-input::placeholder {
  color: #94A3B8 !important;
}

body.blog-page.light-editorial .blog-search-icon {
  stroke: #626861 !important;
}

body.blog-page.light-editorial .blog-filter-btn {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #D8D1C5 !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

body.blog-page.light-editorial .blog-filter-btn.active,
body.blog-page.light-editorial .blog-filter-btn:hover {
  background: #A9683F !important;
  color: #171918 !important;
  border-color: #A9683F !important;
}

/* ==========================================================================
   HOW IT WORKS — LIVING NETWORK ARCHITECTURE
   ========================================================================== */
.page-how-it-works .subpage-hero {
  background: radial-gradient(circle at 50% 15%, rgba(129, 198, 198, 0.12), transparent 55%), #071317;
  color: var(--warm-bone);
  border-bottom: 1px solid rgba(129, 198, 198, 0.2);
  min-height: auto;
  padding-top: clamp(140px, 16vw, 180px);
  padding-bottom: clamp(60px, 8vw, 100px);
}

.page-how-it-works .hero-title-large {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-block: 16px 22px;
}

.page-how-it-works .text-accent-teal {
  color: #81C6C6;
}

.page-how-it-works .hero-subtitle-large {
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.6;
  color: rgba(241, 238, 231, 0.82);
  max-width: 720px;
}

.hiw-telemetry-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(241, 238, 231, 0.12);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #81C6C6;
}

.hiw-telemetry-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Tier Topology Section */
.hiw-topology-section {
  background: #09191d !important;
  padding-block: clamp(80px, 10vw, 120px);
  color: #F1EEE7 !important;
  border-bottom: 1px solid rgba(129, 198, 198, 0.15);
}

.hiw-topology-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.hiw-topology-card {
  background: rgba(7, 19, 23, 0.65);
  border: 1px solid rgba(129, 198, 198, 0.22);
  border-radius: 8px;
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.hiw-topology-card:hover {
  transform: translateY(-4px);
  border-color: #81C6C6;
}

.topology-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #81C6C6;
  margin-bottom: 14px;
}

.topology-title {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: 1.35rem;
  color: #FFFFFF;
  margin-bottom: 12px;
  font-weight: 700;
}

.topology-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(241, 238, 231, 0.75);
  margin-bottom: 20px;
}

.topology-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(241, 238, 231, 0.88);
}

.topology-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.topology-list li span.bullet {
  color: #E8753D;
  font-weight: bold;
}

.topology-metric {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(241, 238, 231, 0.1);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #69E6AA;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 3-Phase Deployment Section (Warm Bone Editorial Surface) */
.hiw-process-section {
  background: var(--warm-bone);
  color: #071317;
  padding-block: clamp(90px, 12vw, 140px);
  border-bottom: 1px solid rgba(7, 19, 23, 0.12);
}

.hiw-phase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.hiw-phase-card {
  background: #ffffff;
  border: 1px solid rgba(7, 19, 23, 0.12);
  border-radius: 8px;
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(7, 19, 23, 0.04);
  position: relative;
}

.phase-num {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: #071317;
  line-height: 1;
  margin-bottom: 18px;
}

.phase-title {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #071317;
  margin-bottom: 12px;
}

.phase-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(7, 19, 23, 0.76);
  margin-bottom: 20px;
}

.phase-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.84rem;
  color: rgba(7, 19, 23, 0.85);
}

.phase-checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phase-checklist li span {
  color: #E8753D;
  font-weight: bold;
}

.phase-owner-pill {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border-radius: 4px;
  background: rgba(232, 117, 61, 0.08);
  color: #A9683F;
  border: 1px solid rgba(232, 117, 61, 0.2);
}

.phase-owner-pill.pill-zero {
  background: rgba(22, 96, 104, 0.08);
  color: #166068;
  border-color: rgba(22, 96, 104, 0.2);
}

/* Safety & Control Guarantees */
.hiw-safety-section {
  background: #071317 !important;
  color: var(--warm-bone) !important;
  padding-block: clamp(90px, 11vw, 130px);
  border-bottom: 1px solid rgba(129, 198, 198, 0.15);
}

.hiw-safety-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.hiw-safety-card {
  background: rgba(241, 238, 231, 0.03);
  border: 1px solid rgba(241, 238, 231, 0.1);
  border-radius: 8px;
  padding: 30px 24px;
}

.safety-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #81C6C6;
  margin-bottom: 12px;
}

.safety-title {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.safety-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(241, 238, 231, 0.72);
}

/* Connected Ecosystem Section */
.hiw-ecosystem-section {
  background: #09191d !important;
  color: #F1EEE7 !important;
  padding-block: clamp(90px, 10vw, 130px);
  border-bottom: 1px solid rgba(129, 198, 198, 0.15);
}

.hiw-ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.hiw-ecosystem-card {
  background: rgba(7, 19, 23, 0.5);
  border: 1px solid rgba(129, 198, 198, 0.18);
  border-radius: 8px;
  padding: 24px 22px;
}

.ecosystem-cat {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: #E8753D;
  margin-bottom: 8px;
}

.ecosystem-name {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.ecosystem-tools {
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(241, 238, 231, 0.65);
}

/* Responsive */
@media (max-width: 960px) {
  .hiw-topology-grid,
  .hiw-phase-grid,
  .hiw-safety-grid,
  .hiw-ecosystem-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================================================== 
   XIRAN SYSTEM LAYER — SITE-WIDE REBRAND
   ========================================================================== */
body {
  background: var(--warm-bone);
  color: var(--text-body);
}

::selection {
  background: var(--burnished-copper);
  color: var(--warm-bone);
}

:focus-visible {
  outline: 2px solid var(--ember-orange);
  outline-offset: 4px;
}

.container {
  max-width: 1320px;
  padding-inline: clamp(20px, 4vw, 56px);
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  line-height: 1;
}

.logo-v-badge {
  display: none !important;
}

.nav-header-fixed {
  top: 18px;
}

.nav-glass-container {
  min-height: 64px;
  padding: 8px 10px 8px 22px;
  border: 1px solid rgba(108, 155, 160, 0.32);
  border-radius: 4px;
  background: rgba(7, 19, 23, 0.88);
  box-shadow: 0 0 0 1px rgba(7, 19, 23, 0.7), 0 18px 60px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-scrolled .nav-glass-container {
  background: rgba(7, 19, 23, 0.96);
  border-color: rgba(129, 198, 198, 0.38);
}

.nav-glass-container .brand-name,
.nav-link-item,
.lang-switch-btn {
  color: var(--warm-bone);
}

.nav-link-item {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav-link-item::after {
  background: var(--burnished-copper);
}

.nav-link-item:hover,
.nav-link-item.active {
  color: #fff;
}

.lang-switch-group {
  border-color: rgba(108, 155, 160, 0.25);
  background: rgba(7, 19, 23, 0.4);
}

.lang-switch-btn.active {
  background: var(--warm-bone);
  color: var(--obsidian-charcoal);
}

.nav-cta-pill,
.btn-primary {
  border: 1px solid var(--ember-orange);
  border-radius: 3px;
  background: var(--ember-orange);
  color: #071317;
  font-weight: 600;
  box-shadow: 0 0 24px rgba(232, 117, 61, 0.16);
}

.nav-cta-pill:hover,
.btn-primary:hover {
  border-color: #F08A56;
  background: #F08A56;
  color: #071317;
  box-shadow: 0 8px 32px rgba(232, 117, 61, 0.32);
}

.btn-secondary,
.btn-ghost,
.vertical-link,
.xiran-text-link {
  border-radius: 4px;
}

.bain-eyebrow,
.vertical-eyebrow,
.article-category,
.footer-col-header,
.sim-label,
.sim-prompts-title {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.12em;
}

.bain-section-title,
.vertical-hero-title,
.article-title,
.cta-banner-title,
.legal-page-title {
  font-weight: 500;
  letter-spacing: -0.035em;
}

.bain-title-rule {
  width: 52px;
  height: 2px;
  border-radius: 0;
  background: var(--burnished-copper);
}

.vertical-card,
.impact-card,
.workflow-step-card,
.blog-card,
.contact-form-card,
.legal-content-card,
.roi-calculator-card,
.pipeline-card,
.channel-card {
  border-color: rgba(23, 25, 24, 0.13);
  border-radius: 8px;
  box-shadow: none;
}

.vertical-card:hover,
.impact-card:hover,
.blog-card:hover,
.pipeline-card:hover {
  border-color: rgba(169, 104, 63, 0.56);
  box-shadow: 0 20px 50px rgba(11, 13, 12, 0.09);
}

.site-footer {
  background: var(--volcanic-black);
  border-top: 1px solid rgba(241, 238, 231, 0.13);
}

.footer-contact-email {
  color: var(--warm-bone);
  text-decoration-color: var(--burnished-copper);
  text-underline-offset: 5px;
}

.cookie-consent-banner {
  border: 1px solid rgba(241, 238, 231, 0.16);
  border-radius: 8px;
  background: rgba(11, 13, 12, 0.96);
  color: var(--warm-bone);
}

/* Home: authority */
.xiran-home section {
  position: relative;
}

.xiran-hero {
  min-height: 900px;
  padding: 170px 0 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 35%, rgba(96, 117, 108, 0.13), transparent 26%),
    radial-gradient(circle at 68% 48%, rgba(108, 155, 160, 0.08), transparent 30%),
    var(--volcanic-black);
  color: var(--warm-bone);
}

.xiran-hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.23;
  background-image:
    linear-gradient(rgba(241, 238, 231, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 238, 231, 0.08) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 78%, transparent);
}

.xiran-signal {
  position: absolute;
  z-index: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--mineral-blue), transparent);
  opacity: 0.7;
  animation: xiran-signal-flow 7s linear infinite;
}

.xiran-signal::after {
  content: '';
  position: absolute;
  left: -3px;
  bottom: 22%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ember-orange);
  box-shadow: 0 0 22px rgba(232, 117, 61, 0.78);
}

.xiran-signal-one {
  top: 0;
  bottom: 8%;
  left: 46%;
}

.xiran-signal-two {
  top: 22%;
  bottom: 0;
  right: 8%;
  animation-delay: -3s;
}

@keyframes xiran-signal-flow {
  0%, 100% { transform: translateY(-7%); opacity: 0.18; }
  45% { transform: translateY(7%); opacity: 0.82; }
}

.xiran-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.07fr) minmax(410px, 0.93fr);
  gap: clamp(56px, 7vw, 110px);
  align-items: center;
  min-height: 610px;
}

.xiran-hero-copy,
.system-map {
  position: relative;
  z-index: 2;
}

.xiran-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: #CBB7A7;
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.xiran-kicker.dark {
  color: var(--burnished-copper);
}

.status-dot,
.system-state i,
.sim-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ember-orange);
  box-shadow: 0 0 0 5px rgba(232, 117, 61, 0.1);
}

.xiran-hero h1 {
  max-width: 790px;
  margin: 0;
  color: var(--warm-bone);
  font-size: clamp(3.45rem, 6.2vw, 6.6rem);
  font-weight: 500;
  letter-spacing: -0.058em;
  line-height: 0.98;
}

.xiran-hero-summary {
  max-width: 680px;
  margin-top: 34px;
  color: rgba(241, 238, 231, 0.74);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.65;
}

.xiran-actions {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 38px;
}

.xiran-actions .btn-primary {
  padding: 15px 20px;
}

.xiran-text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-block: 8px;
  border-bottom: 1px solid rgba(241, 238, 231, 0.36);
  color: var(--warm-bone);
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 180ms ease, border-color 180ms ease;
}

.xiran-text-link.dark {
  color: var(--obsidian-charcoal);
  border-color: rgba(23, 25, 24, 0.3);
}

.xiran-text-link:hover {
  border-color: var(--ember-orange);
  color: var(--ember-orange);
}

.xiran-hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 50px;
  color: rgba(241, 238, 231, 0.58);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.xiran-hero-proof span:not(:last-child)::after {
  content: '/';
  margin-left: 20px;
  color: var(--burnished-copper);
}

.system-map {
  padding: 18px;
  border: 1px solid rgba(241, 238, 231, 0.16);
  background: linear-gradient(150deg, rgba(241, 238, 231, 0.055), rgba(241, 238, 231, 0.018));
  box-shadow: 0 44px 100px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(10px);
}

.system-map::before,
.system-map::after {
  content: '';
  position: absolute;
  width: 35px;
  height: 35px;
  border-color: var(--burnished-copper);
  opacity: 0.7;
}

.system-map::before {
  top: -7px;
  left: -7px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.system-map::after {
  right: -7px;
  bottom: -7px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.system-map-header {
  display: flex;
  justify-content: space-between;
  padding: 7px 8px 17px;
  color: rgba(241, 238, 231, 0.6);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.13em;
}

.system-state {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #9BB0A7;
}

.system-state i {
  display: block;
  width: 5px;
  height: 5px;
  background: #84A995;
  box-shadow: 0 0 10px rgba(132, 169, 149, 0.7);
}

.system-layer {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 70px;
  padding: 13px 15px;
  border: 1px solid rgba(241, 238, 231, 0.12);
  background: rgba(11, 13, 12, 0.54);
  transition: border-color 200ms ease, transform 200ms ease;
}

.system-layer:hover {
  z-index: 2;
  transform: translateX(-5px);
  border-color: rgba(108, 155, 160, 0.55);
}

.layer-intelligence {
  border-color: rgba(108, 155, 160, 0.5);
  background: linear-gradient(90deg, rgba(108, 155, 160, 0.15), rgba(11, 13, 12, 0.66));
}

.layer-outcome {
  border-color: rgba(169, 104, 63, 0.54);
}

.layer-index,
.system-layer small,
.layer-detail {
  font-family: var(--font-mono);
}

.layer-index {
  color: rgba(241, 238, 231, 0.45);
  font-size: 0.75rem;
}

.system-layer div {
  display: grid;
  gap: 2px;
}

.system-layer small {
  color: var(--mineral-blue);
  font-size: 0.69rem;
  letter-spacing: 0.11em;
}

.system-layer strong {
  color: var(--warm-bone);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
}

.layer-detail {
  color: rgba(241, 238, 231, 0.5);
  font-size: 0.69rem;
  text-align: right;
}

.layer-pulse {
  width: 64px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 18'%3E%3Cpath d='M0 9h11l4-7 7 14 7-12 6 10 5-5h24' fill='none' stroke='%236C9BA0' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.8;
}

.system-connector {
  display: grid;
  place-items: center;
  height: 16px;
}

.system-connector span {
  width: 1px;
  height: 16px;
  background: linear-gradient(var(--mineral-blue), var(--burnished-copper));
}

.system-caption {
  margin: 17px 8px 3px;
  color: rgba(241, 238, 231, 0.5);
  font-family: var(--font-serif);
  font-size: 0.83rem;
  font-style: italic;
  text-align: right;
}

.xiran-hero-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  padding-block: 22px;
  border-top: 1px solid rgba(241, 238, 231, 0.12);
  color: rgba(241, 238, 231, 0.55);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.xiran-hero-footer a {
  color: rgba(241, 238, 231, 0.65);
}

/* Home: clarity */
.xiran-platform,
.xiran-process,
.xiran-outcomes {
  background: var(--warm-bone);
}

.xiran-platform {
  padding-block: clamp(100px, 12vw, 170px);
}

.xiran-section-intro {
  display: grid;
  grid-template-columns: minmax(220px, 0.62fr) minmax(400px, 1.2fr) minmax(260px, 0.75fr);
  gap: clamp(28px, 5vw, 74px);
  align-items: start;
  margin-bottom: clamp(64px, 8vw, 110px);
}

.xiran-section-intro .xiran-kicker {
  margin: 11px 0 0;
}

.xiran-section-intro h2,
.process-heading h2,
.outcomes-heading h2,
.control-copy h2,
.final-cta-layout h2 {
  margin: 0;
  color: var(--obsidian-charcoal);
  font-size: clamp(2.55rem, 4.5vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.052em;
  line-height: 1.02;
}

.xiran-section-intro > p {
  margin: 9px 0 0;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

.capability-list {
  border-top: 1px solid rgba(23, 25, 24, 0.23);
}

.capability-row {
  display: grid;
  grid-template-columns: 0.35fr 0.8fr 1.3fr 1.05fr;
  gap: clamp(22px, 4vw, 60px);
  align-items: start;
  padding: 42px 8px;
  border-bottom: 1px solid rgba(23, 25, 24, 0.18);
}

.capability-number,
.capability-row li {
  font-family: var(--font-mono);
}

.capability-number {
  padding-top: 6px;
  color: var(--burnished-copper);
  font-size: 0.65rem;
}

.capability-row h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.3vw, 2.15rem);
  font-weight: 500;
}

.capability-row p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.72;
}

.capability-row ul {
  display: grid;
  gap: 9px;
  list-style: none;
}

.capability-row li {
  position: relative;
  padding-left: 17px;
  color: #596059;
  font-size: 0.63rem;
  letter-spacing: 0.035em;
}

.capability-row li::before {
  content: '';
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--oxidized-teal);
}

/* Home: systems */
.xiran-solutions,
.xiran-control,
.xiran-simulator,
.xiran-final-cta {
  background: var(--obsidian-charcoal);
  color: var(--warm-bone);
}

.xiran-solutions {
  overflow: hidden;
  padding-block: clamp(100px, 12vw, 170px);
}

.xiran-solutions::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, transparent 49.9%, rgba(241, 238, 231, 0.045) 50%, transparent 50.1%);
  pointer-events: none;
}

.xiran-section-intro.on-dark h2,
.xiran-section-intro.on-dark p,
.control-copy h2,
.control-copy p,
.final-cta-layout h2,
.final-cta-layout p {
  color: var(--warm-bone);
}

.xiran-section-intro.on-dark > p,
.control-copy > p,
.final-cta-layout p {
  color: rgba(241, 238, 231, 0.66);
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(241, 238, 231, 0.15);
  border-left: 1px solid rgba(241, 238, 231, 0.15);
}

.solution-panel {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 50px);
  border-right: 1px solid rgba(241, 238, 231, 0.15);
  border-bottom: 1px solid rgba(241, 238, 231, 0.15);
  background: rgba(11, 13, 12, 0.18);
  transition: background 240ms ease, color 240ms ease;
}

.solution-panel-wide {
  grid-column: 1 / -1;
  min-height: 360px;
}

.solution-panel:hover {
  background: var(--warm-bone);
}

.solution-panel-accent {
  background: rgba(169, 104, 63, 0.12);
}

.solution-code {
  color: var(--mineral-blue);
  font-family: var(--font-mono);
  font-size: 0.61rem;
  letter-spacing: 0.1em;
}

.solution-panel h3 {
  max-width: 820px;
  margin: auto 0 18px;
  color: var(--warm-bone);
  font-size: clamp(2rem, 3.6vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.045em;
}

.solution-panel p {
  max-width: 720px;
  color: rgba(241, 238, 231, 0.59);
  font-size: 0.88rem;
}

.solution-arrow {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 14px;
  border-top: 1px solid rgba(241, 238, 231, 0.15);
  color: rgba(241, 238, 231, 0.74);
  font-family: var(--font-mono);
  font-size: 0.61rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.solution-panel:hover h3,
.solution-panel:hover p,
.solution-panel:hover .solution-arrow {
  color: var(--obsidian-charcoal);
}

.solution-panel:hover .solution-arrow {
  border-color: rgba(23, 25, 24, 0.18);
}

/* Home: process and outcomes */
.xiran-process {
  padding-block: clamp(100px, 12vw, 170px);
}

.process-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(430px, 1.18fr);
  gap: clamp(60px, 10vw, 150px);
}

.process-heading {
  position: sticky;
  top: 125px;
  align-self: start;
}

.process-heading .xiran-text-link {
  margin-top: 36px;
}

.process-steps {
  list-style: none;
  border-top: 1px solid rgba(23, 25, 24, 0.23);
}

.process-steps li {
  display: grid;
  grid-template-columns: 65px 1fr;
  gap: 22px;
  min-height: 220px;
  padding: 40px 4px;
  border-bottom: 1px solid rgba(23, 25, 24, 0.18);
}

.process-steps > li > span {
  color: var(--burnished-copper);
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

.process-steps h3 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 3.8vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.process-steps p {
  max-width: 610px;
  font-size: 0.95rem;
}

.xiran-outcomes {
  padding: 0 0 clamp(100px, 12vw, 170px);
}

.outcomes-heading {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  gap: 50px;
  align-items: start;
  margin-bottom: 70px;
}

.outcomes-heading .xiran-kicker {
  margin-top: 10px;
}

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(23, 25, 24, 0.2);
  border-left: 1px solid rgba(23, 25, 24, 0.2);
}

.outcome-item {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-right: 1px solid rgba(23, 25, 24, 0.2);
  border-bottom: 1px solid rgba(23, 25, 24, 0.2);
}

.outcome-item span {
  color: var(--burnished-copper);
  font-family: var(--font-mono);
  font-size: 0.61rem;
}

.outcome-item strong {
  max-width: 260px;
  color: var(--obsidian-charcoal);
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  font-weight: 600;
  line-height: 1.35;
}

/* Home: human control */
.xiran-control {
  overflow: hidden;
  padding-block: clamp(110px, 13vw, 180px);
}

.control-layout {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(60px, 10vw, 150px);
  align-items: center;
}

/* Home: Human Control Triage Visual */
.control-visual.triage-visual {
  position: relative;
  width: 100%;
  max-width: 580px;
  min-height: auto;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  background: #071317;
  border: 1px solid rgba(129, 198, 198, 0.24);
  border-radius: 8px;
  padding: 22px 24px;
  color: var(--warm-bone);
  box-shadow: 0 24px 48px -12px rgba(7, 19, 23, 0.28);
  font-family: var(--font-sans);
}

.triage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(241, 238, 231, 0.1);
  margin-bottom: 14px;
}

.triage-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: #81C6C6;
  font-weight: 600;
}

.triage-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #69E6AA;
  box-shadow: 0 0 10px rgba(105, 230, 170, 0.8);
}

.triage-mode-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(241, 238, 231, 0.08);
  color: rgba(241, 238, 231, 0.7);
  text-transform: uppercase;
}

.triage-input-card {
  background: rgba(241, 238, 231, 0.03);
  border: 1px solid rgba(241, 238, 231, 0.12);
  border-radius: 6px;
  padding: 12px 14px;
}

.triage-step-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
}

.triage-step-num {
  color: #81C6C6;
  font-weight: 700;
}

.triage-step-title {
  color: rgba(241, 238, 231, 0.9);
  letter-spacing: 0.08em;
  font-weight: 600;
}

.triage-channel-pill {
  margin-left: auto;
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  background: rgba(129, 198, 198, 0.12);
  color: #81C6C6;
  border-radius: 3px;
}

.triage-quote {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #F1EEE7;
  font-style: italic;
  margin-bottom: 10px;
}

.triage-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.triage-chip {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  padding: 3px 8px;
  border-radius: 3px;
}

.triage-chip.chip-routine {
  background: rgba(129, 198, 198, 0.12);
  color: #81C6C6;
  border: 1px solid rgba(129, 198, 198, 0.25);
}

.triage-chip.chip-exception {
  background: rgba(232, 117, 61, 0.12);
  color: #E8753D;
  border: 1px solid rgba(232, 117, 61, 0.28);
}

.triage-stem-connector {
  display: flex;
  justify-content: center;
  height: 16px;
  line-height: 1;
}

.triage-gate-card {
  background: rgba(129, 198, 198, 0.06);
  border: 1px solid rgba(129, 198, 198, 0.28);
  border-radius: 6px;
  padding: 12px 14px;
}

.triage-gate-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.triage-gate-icon {
  display: inline-flex;
  color: #81C6C6;
}

.triage-gate-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #F1EEE7;
}

.triage-gate-rule {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  color: rgba(241, 238, 231, 0.55);
}

.triage-gate-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: rgba(7, 19, 23, 0.5);
  border-radius: 4px;
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
}

.gate-metric .metric-lbl {
  color: rgba(241, 238, 231, 0.55);
}

.gate-metric .val-cyan {
  color: #81C6C6;
  font-weight: 600;
}

.gate-metric .val-teal {
  color: #69E6AA;
  font-weight: 600;
}

.gate-metric .val-amber {
  color: #E8753D;
  font-weight: 600;
}

.triage-fork-connector {
  width: 100%;
  height: 28px;
}

.triage-fork-connector svg {
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes flowDash {
  to {
    stroke-dashoffset: -20;
  }
}

.fork-path-auto {
  animation: flowDash 1.4s linear infinite;
}

.fork-path-human {
  animation: flowDash 1.4s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .fork-path-auto,
  .fork-path-human {
    animation: none;
  }
}

.triage-branches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.triage-branch {
  display: flex;
  flex-direction: column;
  border-radius: 6px;
  padding: 12px 14px;
  background: rgba(241, 238, 231, 0.03);
}

.triage-branch.branch-auto {
  border: 1px solid rgba(129, 198, 198, 0.32);
  background: linear-gradient(180deg, rgba(129, 198, 198, 0.06) 0%, rgba(7, 19, 23, 0.4) 100%);
}

.triage-branch.branch-human {
  border: 1px solid rgba(232, 117, 61, 0.36);
  background: linear-gradient(180deg, rgba(232, 117, 61, 0.06) 0%, rgba(7, 19, 23, 0.4) 100%);
}

.branch-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.branch-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.tag-auto { color: #81C6C6; }
.tag-human { color: #E8753D; }

.branch-pill {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
}

.pill-auto {
  background: rgba(129, 198, 198, 0.15);
  color: #81C6C6;
}

.pill-human {
  background: rgba(232, 117, 61, 0.15);
  color: #E8753D;
}

.branch-name {
  font-size: 0.86rem;
  font-weight: 600;
  color: #F1EEE7;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.branch-desc {
  font-size: 0.72rem;
  line-height: 1.4;
  color: rgba(241, 238, 231, 0.68);
  margin-bottom: 10px;
}

.branch-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.68rem;
  color: rgba(241, 238, 231, 0.85);
}

.branch-checklist li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.branch-checklist span {
  font-family: var(--font-mono);
  font-weight: 700;
}

.branch-auto .branch-checklist span {
  color: #69E6AA;
}

.branch-human .branch-checklist span {
  color: #E8753D;
}

.branch-status-bar {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  padding: 5px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.status-auto {
  background: rgba(105, 230, 170, 0.1);
  color: #69E6AA;
  border: 1px solid rgba(105, 230, 170, 0.22);
}

.status-human {
  background: rgba(232, 117, 61, 0.1);
  color: #E8753D;
  border: 1px solid rgba(232, 117, 61, 0.25);
}

.status-indicator-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.triage-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(241, 238, 231, 0.1);
  margin-top: 16px;
  text-align: center;
}

.triage-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.triage-stat strong {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: #81C6C6;
  font-weight: 700;
}

.triage-stat span {
  font-size: 0.62rem;
  color: rgba(241, 238, 231, 0.6);
  line-height: 1.25;
}

@media (max-width: 560px) {
  .triage-branches {
    grid-template-columns: 1fr;
  }
  .triage-gate-metrics {
    grid-template-columns: 1fr;
  }
  .triage-fork-connector {
    display: none;
  }
}


.control-copy .xiran-kicker {
  margin-bottom: 24px;
}

.control-copy > p {
  max-width: 650px;
  margin-top: 32px;
  font-size: 1rem;
}

.control-points {
  margin-top: 42px;
  border-top: 1px solid rgba(241, 238, 231, 0.14);
  list-style: none;
}

.control-points li {
  display: grid;
  grid-template-columns: 52px 1fr;
  padding: 16px 0;
  border-bottom: 1px solid rgba(241, 238, 231, 0.14);
  color: rgba(241, 238, 231, 0.8);
  font-size: 0.84rem;
}

.control-points span {
  color: var(--burnished-copper);
  font-family: var(--font-mono);
  font-size: 0.61rem;
}

/* Home: demo and invitation */
#live-simulator-anchor,
.xiran-simulator {
  padding-block: clamp(100px, 12vw, 160px);
  background: var(--volcanic-black);
  scroll-margin-top: 110px;
}

.xiran-simulator .simulator-unified-card {
  display: grid;
  grid-template-columns: 410px 1fr;
  border-radius: 8px;
  border: 1px solid rgba(241, 238, 231, 0.15);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  background: #09191d;
}

.xiran-simulator .sim-control-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #09191d;
  padding: 30px 24px;
}

.xiran-simulator .sim-chat-panel {
  display: flex;
  flex-direction: column;
  min-height: 600px;
  background: #061114;
}

@media (max-width: 960px) {
  .xiran-simulator .simulator-unified-card {
    grid-template-columns: 1fr;
  }
  .xiran-simulator .sim-control-panel {
    border-right: none;
    border-bottom: 1px solid rgba(129, 198, 198, 0.2);
    padding: 24px 18px;
  }
  .xiran-simulator .sim-chat-panel {
    min-height: 520px;
  }
}

.xiran-final-cta {
  padding-block: clamp(90px, 11vw, 150px);
  border-top: 1px solid rgba(241, 238, 231, 0.13);
}

.final-cta-layout {
  display: grid;
  grid-template-columns: 0.42fr 1.15fr 0.68fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: start;
}

.final-cta-layout .xiran-kicker {
  margin-top: 11px;
}

.final-cta-layout p {
  margin: 11px 0 28px;
  font-size: 0.96rem;
}

/* Legacy marketing pages inherit the XIRAN material system. */
body:not(.xiran-home) .bain-hero-section,
body:not(.xiran-home) .vertical-hero-section,
body:not(.xiran-home) .article-hero-section,
body:not(.xiran-home) .contact-hero-section,
body:not(.xiran-home) .legal-hero-section {
  background-color: var(--volcanic-black);
}

body:not(.xiran-home):not(.page-how-it-works) main {
  background: var(--warm-bone);
}

.page-how-it-works main {
  background: #071317;
}

/* Alternate paper backgrounds only for explicit paper sections */
body:not(.xiran-home):not(.page-how-it-works) section.section-paper-padding:nth-of-type(even) {
  background-color: #E9E4DA;
}

body:not(.xiran-home) .bain-cta-section {
  background: var(--obsidian-charcoal);
}

body:not(.xiran-home) .nav-cta-pill span {
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .xiran-hero {
    padding-top: 145px;
  }

  .xiran-hero-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .system-map {
    width: min(100%, 720px);
  }

  .xiran-section-intro,
  .final-cta-layout {
    grid-template-columns: 0.48fr 1.15fr;
  }

  .xiran-section-intro > p,
  .final-cta-layout > div {
    grid-column: 2;
  }

  .capability-row {
    grid-template-columns: 52px 0.8fr 1.3fr;
  }

  .capability-row ul {
    grid-column: 3;
  }
}

@media (max-width: 900px) {
  .nav-glass-container {
    padding-inline: 18px;
  }

  .nav-hamburger-toggle span {
    background: var(--warm-bone);
  }

  .nav-menu-container {
    background: rgba(11, 13, 12, 0.98);
    border-color: rgba(241, 238, 231, 0.14);
  }

  .xiran-hero h1 {
    font-size: clamp(3.2rem, 10vw, 5rem);
  }

  .process-layout,
  .control-layout {
    grid-template-columns: 1fr;
  }

  .process-heading {
    position: static;
  }

  .outcome-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  html {
    font-size: 16px;
  }

  section {
    padding-block: 78px;
  }

  .xiran-hero {
    min-height: auto;
    padding-top: 130px;
  }

  .xiran-hero-layout {
    gap: 70px;
  }

  .xiran-hero h1 {
    font-size: clamp(3rem, 14vw, 4.4rem);
  }

  .xiran-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .xiran-hero-proof span:not(:last-child)::after {
    margin-left: 12px;
  }

  .system-map {
    padding: 10px;
  }

  .system-layer {
    grid-template-columns: 28px 1fr;
  }

  .layer-detail,
  .layer-pulse {
    display: none;
  }

  .xiran-hero-footer {
    gap: 20px;
    margin-top: 64px;
  }

  .xiran-hero-footer > span {
    display: none;
  }

  .xiran-section-intro,
  .final-cta-layout,
  .outcomes-heading {
    grid-template-columns: 1fr;
  }

  .xiran-section-intro > p,
  .final-cta-layout > div {
    grid-column: auto;
  }

  .xiran-section-intro h2,
  .process-heading h2,
  .outcomes-heading h2,
  .control-copy h2,
  .final-cta-layout h2 {
    font-size: clamp(2.6rem, 12vw, 4rem);
  }

  .capability-row {
    grid-template-columns: 42px 1fr;
    padding-block: 32px;
  }

  .capability-row p,
  .capability-row ul {
    grid-column: 2;
  }

  .solution-grid,
  .outcome-grid {
    grid-template-columns: 1fr;
  }

  .solution-panel-wide {
    grid-column: auto;
  }

  .solution-panel {
    min-height: 300px;
  }

  .process-steps li {
    grid-template-columns: 44px 1fr;
    min-height: 190px;
  }

  .outcome-item {
    min-height: 145px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .xiran-signal,
  .layer-pulse {
    animation: none !important;
  }

  .system-layer,
  .solution-panel {
    transition: none;
  }
}





