/* ==========================================================================
   ATTEST — MISTRAL-INSPIRED HERO SPLIT & OPERATIONAL CONSOLE SCROLL SYSTEM
   Palette: Deep Dark Obsidian Emerald (#020C0A) + Crisp White Highlights
   Structure: 250vh Pinned Hero, Bi-directional Split to Either Side,
              Center Console Emergence, Modular Bento Grid, Swiss Matrix.
   ========================================================================== */

/* ── Global Layout Resets & Modular Framework ── */
.mistral-wrapper {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  background: var(--color-base);
  position: relative;
  box-sizing: border-box;
}

/* Hairline Grid Dividers */
.border-b-grid {
  border-bottom: 1px solid var(--color-border);
}

.border-t-grid {
  border-top: 1px solid var(--color-border);
}

.border-l-grid {
  border-left: 1px solid var(--color-border);
}

.border-r-grid {
  border-right: 1px solid var(--color-border);
}

/* ── Fixed Modular Header ── */
.m-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(2, 12, 10, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  transform: translateZ(0);
  will-change: transform;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.m-nav__container {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  height: 56px;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
}

.m-nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  border-right: 1px solid var(--color-border);
  text-decoration: none;
  transition: background 0.2s ease;
}

.m-nav__logo:hover {
  background: var(--color-surface);
}

.m-nav__logo-img {
  height: 34px;
  width: auto;
  display: block;
  object-fit: contain;
}

.m-nav__links {
  display: flex;
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1;
}

.m-nav__link-item {
  display: flex;
  border-right: 1px solid var(--color-border);
}

.m-nav__link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 22px;
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.m-nav__link:hover {
  color: #FFFFFF;
  background: var(--color-surface);
}

.m-nav__actions {
  display: flex;
  align-items: stretch;
}

.m-nav__btn-ghost {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  border-left: 1px solid var(--color-border);
  transition: color 0.2s ease, background 0.2s ease;
}

.m-nav__btn-ghost:hover {
  color: #FFFFFF;
  background: var(--color-surface);
}

.m-nav__btn-primary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 26px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #020C0A;
  background: #FFFFFF;
  text-decoration: none;
  border-left: 1px solid var(--color-border);
  transition: background 0.2s ease, color 0.2s ease;
}

.m-nav__btn-primary:hover {
  background: #E6EDE9;
}

/* ── Shift Icon Effect (Mistral signature arrow hover) ── */
.m-shift-link {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.m-shift-link .m-icon-arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.m-shift-link:hover .m-icon-arrow {
  transform: translateX(4px);
}

/* ══════════════════════════════════════════════════════════════════════════
   HERO SECTION — 250VH PINNED SPLIT & CENTER CONSOLE REVEAL
   ══════════════════════════════════════════════════════════════════════════ */
.m-hero-scroll-container {
  position: relative;
  height: 250vh;
  width: 100%;
}

.m-hero-sticky-frame {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: var(--color-base);
  padding-top: 56px;
  box-sizing: border-box;
}

/* Hero Stage holding Left/Right Blocks and Center Console */
.m-hero-stage {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 1440px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Split Row Container (Initially visible side-by-side) */
.m-hero-split-row {
  position: absolute;
  inset: 0;
  display: flex;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  z-index: 5;
}

/* Left Block: "The Operational Brain" (60% Width Partition) */
.m-hero-block-left {
  width: 60%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 48px 0 72px;
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
  box-sizing: border-box;
  overflow: hidden;
}

.m-hero-eyebrow {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin-bottom: 20px;
}

.m-hero-eyebrow-badge {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FFFFFF;
}

.m-hero-display-title {
  position: relative;
  z-index: 3;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.2vw, 4.2rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  margin: 0;
  max-width: 540px;
  text-shadow: 0 4px 32px rgba(1, 9, 7, 0.85);
}

.m-hero-display-title span {
  display: block;
}

.m-hero-display-title .title-accent {
  color: var(--color-text-secondary);
  font-weight: 400;
  font-family: var(--font-brand);
  font-style: italic;
  letter-spacing: -0.01em;
}

/* Right Block: Tagline & Enterprise Specs (40% Width Partition) */
.m-hero-block-right {
  width: 40%;
  height: 100%;
  position: relative;
  border-left: 1px solid var(--color-border);
  background: var(--color-surface-brand);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  padding: 0 52px;
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
  box-sizing: border-box;
  overflow: hidden;
}

.m-hero-tagline-text {
  position: relative;
  z-index: 3;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-text-secondary);
  font-weight: 400;
  max-width: 340px;
  text-align: left;
  margin: 0 0 24px 0;
  text-shadow: 0 2px 20px rgba(1, 9, 7, 0.9);
}

.m-hero-meta-pill {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 340px;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.10em;
}

.m-hero-meta-pill span {
  color: #FFFFFF;
}

/* ── Central Digital Brain Fluid Canvas Stage (60:40 Partition) ── */
.m-hero-video-stage {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 60%;
  transform: translateX(-50%);
  width: 55%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 6;
  overflow: visible;
  mix-blend-mode: screen;
}

.m-hero-brain-active-canvas {
  width: 100%;
  height: 92%;
  max-height: 720px;
  object-fit: contain;
  mix-blend-mode: screen;
  pointer-events: none;
  user-select: none;
  display: block;
}

/* Interactive Neural Geometric Canvas (per-block) */
.m-hero-brain-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  z-index: 3;
}

/* Scroll prompt at bottom of hero */
.m-hero-scroll-prompt {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-tertiary);
  z-index: 8;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.m-hero-scroll-prompt svg {
  width: 12px;
  height: 12px;
  animation: m-arrow-bob 1.6s infinite ease-in-out;
}

@keyframes m-arrow-bob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(4px);
  }
}


/* ══════════════════════════════════════════════════════════════════════════
   CENTER CONSOLE (POPS FROM CENTER AS BRAIN SEPARATES ON SCROLL)
   ══════════════════════════════════════════════════════════════════════════ */
.m-hero-center-console {
  position: absolute;
  width: 90%;
  max-width: 1200px;
  margin-top: 14px;
  z-index: 10;
  opacity: 0;
  transform: scale(0.8) translate3d(0, 40px, 0);
  will-change: transform, opacity, filter, box-shadow;
  backface-visibility: hidden;
  pointer-events: none;
  border: 1px solid var(--color-border);
  background: var(--color-base);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8), 0 0 35px rgba(16, 185, 129, 0.15);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.m-hero-center-console.is-interactive {
  pointer-events: auto;
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.9), 0 0 60px rgba(16, 185, 129, 0.25);
}

/* Console Header Bar */
.m-console-header {
  padding: 13px 20px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.m-console-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.m-console-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.m-console-heading {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.m-console-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Console Terminal Box */
.m-terminal-box {
  display: flex;
  width: 100%;
  min-height: 390px;
  max-height: 56vh;
}

/* Left: Scenario Selector (35%) */
.m-terminal-sidebar {
  width: 35%;
  border-right: 1px solid var(--color-border);
  background: var(--color-surface-brand);
  display: flex;
  flex-direction: column;
}

.m-terminal-sidebar__header {
  padding: 10px 18px;
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-tertiary);
}

.m-scenario-list {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.m-scenario-btn {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  padding: 14px 18px;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.m-scenario-btn:hover {
  background: var(--color-surface);
}

.m-scenario-btn.is-active {
  background: var(--color-surface-2);
}

.m-scenario-btn.is-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #FFFFFF;
}

.m-scenario-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-tertiary);
  margin-bottom: 6px;
  display: block;
}

.m-scenario-btn.is-active .m-scenario-badge {
  color: #FFFFFF;
}

.m-scenario-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: #FFFFFF;
  margin: 0 0 4px 0;
}

.m-scenario-summary {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--color-text-secondary);
  margin: 0;
}

/* Right: Real-time Execution Console (65%) */
.m-terminal-main {
  width: 65%;
  background: #010807;
  display: flex;
  flex-direction: column;
}

.m-terminal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}

.m-terminal-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #FFFFFF;
}

.m-terminal-actions {
  display: flex;
  gap: 8px;
}

.m-action-btn {
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  color: #FFFFFF;
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.2s ease;
}

.m-action-btn:hover {
  background: #FFFFFF;
  color: #020C0A;
}

.m-terminal-body {
  padding: 18px 20px;
  flex: 1;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
}

.m-step-block {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border-subtle);
  animation: m-fade-step 0.3s ease forwards;
}

@keyframes m-fade-step {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.m-step-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.m-step-num {
  width: 18px;
  height: 18px;
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  border-radius: 2px;
  color: #FFFFFF;
}

.m-step-title {
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.8rem;
}

.m-step-time {
  margin-left: auto;
  font-size: 0.65rem;
  color: var(--color-text-tertiary);
}

.m-step-detail {
  padding-left: 28px;
  color: var(--color-text-secondary);
}

.m-code-highlight {
  display: block;
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid #FFFFFF;
  padding: 8px 12px;
  margin-top: 6px;
  font-size: 0.75rem;
  color: #FFFFFF;
}

.m-step-result-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #FFFFFF;
  border-radius: 3px;
  font-size: 0.72rem;
  margin-top: 8px;
}


/* ══════════════════════════════════════════════════════════════════════════
   MODULAR PRODUCT SUITE & ARCHITECTURE BENTO GRID
   ══════════════════════════════════════════════════════════════════════════ */
.m-bento-section {
  width: 100%;
  border-top: 1px solid var(--color-border);
  position: relative;
}

.m-section-header {
  padding: 48px 48px 32px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
}

.m-section-header__left {
  max-width: 680px;
}

.m-section-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-tertiary);
  margin-bottom: 12px;
  display: block;
}

.m-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  font-weight: 700;
  line-height: 1.12;
  color: #FFFFFF;
  margin: 0 0 12px 0;
  letter-spacing: -0.025em;
}

.m-section-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0;
}

.m-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: 100%;
}

.m-bento-card {
  padding: 48px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-base);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
  transition: background 0.3s ease;
  position: relative;
}

.m-bento-card:nth-child(2n) {
  border-right: none;
}

.m-bento-card:hover {
  background: var(--color-surface);
}

.m-bento-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.m-bento-icon {
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.m-bento-icon svg {
  width: 20px;
  height: 20px;
  color: #FFFFFF;
}

.m-bento-category {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-tertiary);
}

.m-bento-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 12px 0;
  letter-spacing: -0.02em;
}

.m-bento-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0 0 24px 0;
}

.m-bento-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--color-border-subtle);
}

.m-bento-metric {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #FFFFFF;
}


/* ══════════════════════════════════════════════════════════════════════════
   INTELLIGENCE LOOP CAPABILITIES MATRIX (SCROLL-EXPANDING SPACE ACCORDION)
   ══════════════════════════════════════════════════════════════════════════ */
.m-capabilities-section {
  width: 100%;
  position: relative;
}

.m-loop-matrix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: max-height, opacity;
}

.m-capabilities-section.is-expanded .m-loop-matrix,
.m-capabilities-section.is-dropped .m-loop-matrix {
  max-height: 700px;
  opacity: 1;
}

.m-matrix-col {
  padding: 40px 32px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface-brand);
  opacity: 0;
  transform: translateY(-35px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.3s ease, border-color 0.3s ease;
  will-change: transform, opacity;
}

.m-capabilities-section.is-expanded .m-matrix-col,
.m-capabilities-section.is-dropped .m-matrix-col {
  opacity: 1;
  transform: translateY(0);
}

.m-capabilities-section.is-expanded .m-matrix-col:nth-child(1),
.m-capabilities-section.is-dropped .m-matrix-col:nth-child(1) {
  transition-delay: 0.08s;
}

.m-capabilities-section.is-expanded .m-matrix-col:nth-child(2),
.m-capabilities-section.is-dropped .m-matrix-col:nth-child(2) {
  transition-delay: 0.20s;
}

.m-capabilities-section.is-expanded .m-matrix-col:nth-child(3),
.m-capabilities-section.is-dropped .m-matrix-col:nth-child(3) {
  transition-delay: 0.32s;
}

.m-capabilities-section.is-expanded .m-matrix-col:nth-child(4),
.m-capabilities-section.is-dropped .m-matrix-col:nth-child(4) {
  transition-delay: 0.44s;
}

.m-matrix-col:last-child {
  border-right: none;
}

.m-matrix-step-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-text-tertiary);
  margin-bottom: 20px;
  display: block;
}

.m-matrix-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 12px 0;
}

.m-matrix-desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--color-text-secondary);
  margin: 0 0 20px 0;
}

.m-matrix-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--color-border-subtle);
  padding-top: 16px;
}

.m-matrix-list li {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.m-matrix-list li::before {
  content: '→';
  color: #FFFFFF;
}


/* ══════════════════════════════════════════════════════════════════════════
   HOW IT WORKS — 7-STEP SERPENTINE FLOWCHART SECTION (350VH STICKY RUNWAY)
   ══════════════════════════════════════════════════════════════════════════ */
.m-flowchart-section {
  width: 100%;
  position: relative;
  height: 350vh;
  background: var(--color-base);
  border-bottom: 1px solid var(--color-border);
}

.m-flowchart-sticky-wrap {
  position: sticky;
  top: 56px;
  left: 0;
  width: 100%;
  height: calc(100vh - 56px);
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  box-sizing: border-box;
  overflow: hidden;
  padding: 0;
}

.m-flowchart-header {
  width: 100%;
  padding: 16px 48px 12px;
  box-sizing: border-box;
  text-align: left;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 4px;
}

.m-flowchart-header .m-section-header__left {
  max-width: 720px;
  text-align: left;
}

.m-flowchart-header .m-section-kicker {
  font-family: var(--font-mono);
  font-size: 0.70rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-tertiary);
  margin-bottom: 4px;
  display: block;
}

.m-flowchart-header .m-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.0vw, 1.9rem);
  font-weight: 700;
  line-height: 1.12;
  color: #FFFFFF;
  letter-spacing: -0.025em;
  margin: 0 0 4px 0;
  text-align: left;
}

.m-flowchart-header .m-section-desc {
  font-size: 0.82rem;
  line-height: 1.40;
  color: var(--color-text-secondary);
  margin: 0;
  text-align: left;
  max-width: 700px;
}

.m-flowchart-container {
  position: relative;
  width: 100%;
  padding: 8px 48px 24px;
  box-sizing: border-box;
  overflow: visible;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* SVG Winding Track Background */
.m-flowchart-svg-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

.m-flowchart-path-base {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 2.5px;
  fill: none;
  stroke-dasharray: 6 6;
}

.m-flowchart-path-active {
  stroke: url(#m-flowchart-grad);
  stroke-width: 2.5px;
  fill: none;
  filter: url(#m-track-glow);
  stroke-linecap: round;
  transition: none;
}

.m-fc-laser-head {
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.m-fc-laser-pulse {
  transition: opacity 0.3s ease;
  animation: m-fc-laser-pulse-ring 1.8s infinite ease-out;
  pointer-events: none;
}

@keyframes m-fc-laser-pulse-ring {
  0% {
    r: 6px;
    opacity: 0.9;
  }

  100% {
    r: 16px;
    opacity: 0;
  }
}

/* Flowchart Grid Layout (3 Symmetric Rows) */
.m-flowchart-grid {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.m-flowchart-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 24px;
  width: 100%;
  box-sizing: border-box;
}

/* Row 2: 2 cards centered in the middle of the row */
.m-fc-row-2 {
  display: flex;
  justify-content: center;
  gap: 24px;
  width: 100%;
}

.m-fc-row-2 .m-fc-item {
  width: calc((100% - 48px) / 3);
  max-width: calc((100% - 48px) / 3);
  flex: 0 0 calc((100% - 48px) / 3);
}

/* Row 3: 2 cards at both ends (Left col 1 & Right col 3) */
.m-fc-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 24px;
  width: 100%;
}

.m-fc-spacer {
  visibility: hidden;
  pointer-events: none;
}

/* Flowchart Step Item & Motion Scroll Popping */
.m-fc-item {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  opacity: 0.18;
  transform: translateY(20px) scale(0.95);
  filter: blur(1.5px);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    filter 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity, filter;
}

/* Active & Popped State */
.m-fc-item.is-popped,
.m-fc-item.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Flowchart Step Content Card (Ultra Compact & Refined) */
.m-fc-card {
  width: 100%;
  background: var(--color-surface, #051814);
  border: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
  border-radius: 9px;
  padding: 10px 14px;
  box-sizing: border-box;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s ease,
    background-color 0.35s ease,
    box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
  min-height: 104px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Dynamic Ambient Glow inside card */
.m-fc-card-glow {
  position: absolute;
  top: -40%;
  left: -40%;
  width: 180%;
  height: 180%;
  background: radial-gradient(circle at 50% 30%, rgba(16, 185, 129, 0.12) 0%, transparent 65%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.m-fc-item.is-popped .m-fc-card-glow,
.m-fc-item:hover .m-fc-card-glow {
  opacity: 1;
}

/* Top Accent Line */
.m-fc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #10B981, rgba(52, 211, 153, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.m-fc-item.is-popped .m-fc-card {
  border-color: rgba(16, 185, 129, 0.32);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 16px rgba(16, 185, 129, 0.08);
}

.m-fc-item.is-popped .m-fc-card::before {
  opacity: 1;
}

/* Hover Elevation */
.m-fc-item:hover .m-fc-card {
  transform: translateY(-3px);
  border-color: rgba(16, 185, 129, 0.6);
  background: var(--color-surface-2, #07221c);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6), 0 0 24px rgba(16, 185, 129, 0.2);
}

.m-fc-item:hover .m-fc-card::before {
  opacity: 1;
}

/* Pop Flash Animation */
.m-fc-item.just-popped .m-fc-card {
  animation: m-fc-pop-flash 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes m-fc-pop-flash {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.8), 0 0 35px rgba(16, 185, 129, 0.6);
    border-color: #34D399;
  }

  50% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0), 0 0 45px rgba(16, 185, 129, 0.35);
  }

  100% {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 16px rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.32);
  }
}

/* Card Header */
.m-fc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.m-fc-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #10B981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.24);
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.m-fc-badge-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #10B981;
  display: inline-block;
  opacity: 0.6;
  transition: opacity 0.3s ease, box-shadow 0.3s ease;
}

.m-fc-item.is-popped .m-fc-badge {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.55);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

.m-fc-item.is-popped .m-fc-badge-dot {
  opacity: 1;
  box-shadow: 0 0 6px #10B981;
  animation: m-fc-dot-pulse 1.8s infinite ease-in-out;
}

@keyframes m-fc-dot-pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.4);
    opacity: 0.6;
  }
}

.m-fc-category {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.3s ease;
}

.m-fc-item.is-popped .m-fc-category {
  color: #A7F3D0;
}

/* Card Title & Typography */
.m-fc-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin: 0 0 2px 0;
  line-height: 1.22;
}

.m-fc-desc {
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--color-text-secondary);
  margin: 0;
}

/* Card Footer */
.m-fc-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--color-text-muted);
}

.m-fc-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.m-fc-status-indicator {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.m-fc-item.is-popped .m-fc-status-indicator {
  background: #10B981;
  box-shadow: 0 0 6px #10B981;
}

.m-fc-item.is-popped .m-fc-status-text {
  color: #10B981;
}

.m-fc-seq-num {
  font-variant-numeric: tabular-nums;
  opacity: 0.5;
}

/* ── Responsive Flowchart (Tablet & Mobile) ── */
@media (max-width: 1080px) {
  .m-flowchart-section {
    height: auto;
  }

  .m-flowchart-sticky-wrap {
    position: relative;
    height: auto;
    min-height: auto;
    padding: 60px 24px;
  }

  .m-flowchart-container {
    padding: 20px 24px 40px;
  }

  .m-flowchart-row,
  .m-fc-row-2,
  .m-fc-row-3 {
    column-gap: 20px;
    gap: 20px;
  }

  .m-fc-row-2 .m-fc-item {
    width: calc((100% - 40px) / 3);
    max-width: calc((100% - 40px) / 3);
    flex: 0 0 calc((100% - 40px) / 3);
  }
}

@media (max-width: 900px) {
  .m-flowchart-section {
    height: auto;
  }

  .m-flowchart-sticky-wrap {
    position: relative;
    height: auto;
    min-height: auto;
    padding: 40px 16px;
  }

  .m-flowchart-container {
    padding: 20px 16px 40px;
  }

  .m-flowchart-grid {
    gap: 20px;
  }

  .m-flowchart-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .m-fc-row-2 {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .m-fc-row-2 .m-fc-item {
    width: 100%;
    max-width: 100%;
    flex: 1 1 auto;
  }

  .m-fc-row-3 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .m-fc-spacer {
    display: none;
  }

  .m-flowchart-svg-track {
    display: block;
  }
}


/* ══════════════════════════════════════════════════════════════════════════
   ENTERPRISE TRUST & PRECISION METRICS BAR
   ══════════════════════════════════════════════════════════════════════════ */
.m-metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  background: var(--color-base);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  z-index: 5;
}

.m-metric-cell {
  padding: 56px 40px;
  border-right: 1px solid var(--color-border);
}

.m-metric-cell:last-child {
  border-right: none;
}

.m-metric-value {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.05;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.m-metric-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-tertiary);
  margin-bottom: 6px;
}

.m-metric-subtext {
  font-size: 0.84rem;
  color: var(--color-text-secondary);
  margin: 0;
}


/* ══════════════════════════════════════════════════════════════════════════
   SWISS CTA BANNER & FOOTER
   ══════════════════════════════════════════════════════════════════════════ */
.m-cta-banner {
  padding: 80px 48px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-surface-brand);
  flex-wrap: wrap;
  gap: 32px;
}

.m-cta-banner__left {
  max-width: 640px;
}

.m-cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 16px 0;
  letter-spacing: -0.03em;
}

.m-cta-desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0;
}

.m-cta-banner__actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.m-footer {
  width: 100%;
  background: var(--color-base);
}

.m-footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  width: 100%;
  border-bottom: 1px solid var(--color-border);
}

.m-footer-col {
  padding: 48px;
  border-right: 1px solid var(--color-border);
}

.m-footer-col:last-child {
  border-right: none;
}

.m-footer-logo-img {
  height: 40px;
  width: auto;
  margin-bottom: 18px;
  object-fit: contain;
  display: block;
}

.m-footer-tagline {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 320px;
  margin: 0 0 24px 0;
}

.m-footer-heading {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-tertiary);
  margin-bottom: 20px;
}

.m-footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.m-footer-nav li {
  margin-bottom: 12px;
}

.m-footer-nav a {
  color: var(--color-text-secondary);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.m-footer-nav a:hover {
  color: #FFFFFF;
}

.m-footer-bottom {
  padding: 24px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-tertiary);
}


/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVENESS (Mobile & Tablet)
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .m-hero-split-row {
    flex-direction: column;
  }

  .m-hero-block-left,
  .m-hero-block-right {
    width: 100%;
    height: 50%;
    padding: 24px;
  }

  .m-hero-block-right {
    border-left: none;
    border-top: 1px solid var(--color-border);
  }

  .m-hero-center-console {
    width: 95%;
  }

  .m-terminal-box {
    flex-direction: column;
  }

  .m-terminal-sidebar,
  .m-terminal-main {
    width: 100%;
  }

  .m-terminal-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .m-bento-grid {
    grid-template-columns: 1fr;
  }

  .m-bento-card {
    border-right: none;
  }

  .m-loop-matrix,
  .m-metrics-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .m-matrix-col:nth-child(2n),
  .m-metric-cell:nth-child(2n) {
    border-right: none;
  }

  .m-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .m-nav__links {
    display: none;
  }
}

@media (max-width: 640px) {

  .m-hero-block-left,
  .m-section-header,
  .m-cta-banner,
  .m-footer-col {
    padding: 32px 20px;
  }

  .m-loop-matrix,
  .m-metrics-strip {
    grid-template-columns: 1fr;
  }

  .m-matrix-col,
  .m-metric-cell {
    border-right: none;
  }

  .m-footer-grid {
    grid-template-columns: 1fr;
  }

  .m-footer-col {
    border-right: none;
  }

  .m-footer-bottom {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    padding: 20px;
  }
}