/* ==========================================================================
   ayrus AI Enhanced Interactive Elements
   - Hero Visual Flow Chart (Inspired by verticalsystems.io)
   - Advanced Multi-Lane Flow Chart
   - Interactive ROI / Automation Savings Calculator
   - Interactive Workflow Simulator with Human-in-the-Loop Gateway
   ========================================================================== */

/* ---------- HERO FLOW CHART: AI BUSINESS OPERATIONS COMMAND CENTRE (OPEN & FRAMELESS) ---------- */
.hero-flow-board {
  position: relative;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: visible;
  width: 100%;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

/* Header: Floating Control Strip */
.hfb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(14, 22, 38, 0.7);
  border: 1px solid rgba(40, 215, 196, 0.25);
  border-radius: 12px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.hfb-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hfb-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.74rem;
  font-weight: 700;
  color: #5BE6D6;
  background: rgba(40, 215, 196, 0.12);
  border: 1px solid rgba(40, 215, 196, 0.3);
  padding: 4px 10px;
  border-radius: 9999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hfb-status-pill .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #28D7C4;
  box-shadow: 0 0 10px #28D7C4;
  animation: pulse-ring 2s infinite;
}

.hfb-phase-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 600;
  color: #94A3B8;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 9px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.hfb-phase-tag {
  color: #38BDF8;
  font-weight: 700;
}

.hfb-stream-selector {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.hfb-stream-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94A3B8;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.hfb-stream-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border-color: rgba(40, 215, 196, 0.4);
}

.hfb-stream-btn.active {
  background: rgba(40, 215, 196, 0.18);
  color: #FFFFFF;
  border-color: #28D7C4;
  box-shadow: 0 0 12px rgba(40, 215, 196, 0.35);
}

/* Main Visual Stage (5 Fluid Columns: Inputs -> Orchestration -> Agents -> Approval -> Outputs) */
.hfb-stage {
  position: relative;
  min-height: 400px;
  padding: 8px 0;
  background: transparent;
  display: grid;
  grid-template-columns: minmax(115px, 1fr) minmax(150px, 1.35fr) minmax(150px, 1.35fr) minmax(110px, 1.05fr) minmax(115px, 1.05fr);
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
}

/* Column Header Tags */
.hfb-col-tag {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #64748B;
  text-transform: uppercase;
  margin-bottom: 6px;
  padding-left: 2px;
}

/* Connecting Wires (SVG) */
.hfb-conduit-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hfb-wire-track {
  fill: none;
  stroke: rgba(100, 116, 139, 0.22);
  stroke-width: 1.6;
}

.hfb-wire-flow {
  fill: none;
  stroke: url(#hfb-cyan-grad);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 10 90;
  stroke-dashoffset: 0;
  animation: hfb-spark 2.4s linear infinite;
  filter: drop-shadow(0 0 6px rgba(40, 215, 196, 0.85));
}

.hfb-wire-flow.delay-1 { animation-delay: -0.8s; }
.hfb-wire-flow.delay-2 { animation-delay: -1.6s; }

@keyframes hfb-spark {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}

/* Column 1: Inputs */
.hfb-col-inputs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
}

.hfb-input-chip {
  background: linear-gradient(135deg, rgba(24, 34, 56, 0.82), rgba(12, 19, 34, 0.94));
  border: 1px solid rgba(91, 123, 184, 0.28);
  border-radius: 9px;
  padding: 7px 9px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.hfb-input-chip:hover, .hfb-input-chip.active-input {
  border-color: #38BDF8;
  transform: translateX(3px);
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.3), inset 0 0 12px rgba(56, 189, 248, 0.15);
  background: linear-gradient(135deg, rgba(30, 48, 80, 0.9), rgba(14, 25, 45, 0.98));
}

.hfb-chip-title {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
}

.hfb-chip-sub {
  font-size: 0.67rem;
  color: #8C9EB5;
  margin: 2px 0 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hfb-chip-meta {
  display: block;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.62rem;
  color: #38BDF8;
  margin-top: 3px;
  font-weight: 600;
}

/* Column 2: Central Orchestrator Core */
.hfb-col-orchestrator {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.hfb-center-core {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px 12px;
  background: linear-gradient(155deg, rgba(40, 215, 196, 0.18), rgba(12, 26, 48, 0.92));
  border: 1.5px solid rgba(40, 215, 196, 0.55);
  border-radius: 16px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6), 0 0 35px rgba(40, 215, 196, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  width: 100%;
}

.hfb-center-core.active-core {
  border-color: #28D7C4;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.7), 0 0 45px rgba(40, 215, 196, 0.5), inset 0 0 20px rgba(40, 215, 196, 0.2);
}

.hfb-core-ring {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 1.5px dashed rgba(40, 215, 196, 0.45);
  animation: hfb-rotate 16s linear infinite;
  pointer-events: none;
}

.hfb-core-glow-bg {
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle, rgba(40, 215, 196, 0.22) 0%, transparent 70%);
  border-radius: 24px;
  pointer-events: none;
  filter: blur(8px);
}

@keyframes hfb-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hfb-core-badge {
  font-family: inherit;
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF;
  text-shadow: 0 0 18px rgba(40, 215, 196, 0.85);
  margin-bottom: 2px;
  letter-spacing: -0.02em;
}

.hfb-core-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #5BE6D6;
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hfb-core-desc {
  font-size: 0.67rem;
  color: #94A3B8;
  line-height: 1.25;
  margin: 0 0 8px;
}

.hfb-core-telemetry {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.62rem;
  color: #38BDF8;
  font-weight: 600;
  background: rgba(14, 165, 233, 0.1);
  padding: 3px 6px;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

/* Column 3: Specialized Agents */
.hfb-col-agents {
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.hfb-agent-card {
  background: linear-gradient(135deg, rgba(22, 32, 54, 0.85), rgba(11, 18, 32, 0.95));
  border: 1px solid rgba(91, 123, 184, 0.25);
  border-radius: 8px;
  padding: 6px 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.hfb-agent-card:hover, .hfb-agent-card.active-agent {
  border-color: #28D7C4;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(40, 215, 196, 0.3), inset 0 0 10px rgba(40, 215, 196, 0.12);
  background: linear-gradient(135deg, rgba(28, 44, 72, 0.9), rgba(14, 25, 45, 0.98));
}

.hfb-agent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.hfb-agent-icon {
  font-size: 0.78rem;
}

.hfb-agent-name {
  font-size: 0.73rem;
  font-weight: 700;
  color: #FFFFFF;
  flex: 1;
  white-space: nowrap;
}

.hfb-agent-pill {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  text-transform: uppercase;
}

.hfb-agent-pill.pill-active {
  color: #34D399;
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.hfb-agent-pill.pill-idle {
  color: #94A3B8;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.hfb-agent-task {
  font-size: 0.63rem;
  color: #8C9EB5;
  margin: 2px 0 0;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Column 4: Human-in-the-Loop Approval Checkpoint */
.hfb-col-approval {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.hfb-approval-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  background: linear-gradient(145deg, rgba(20, 32, 54, 0.8), rgba(10, 18, 32, 0.9));
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 12px;
  padding: 10px 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
  width: 100%;
}

.hfb-approval-node.active-approval {
  border-color: #34D399;
  box-shadow: 0 8px 24px rgba(52, 211, 153, 0.35), inset 0 0 12px rgba(52, 211, 153, 0.15);
}

.hfb-shield-sphere {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #5BE6D6, #10B981 50%, #064E3B 95%);
  display: grid;
  place-items: center;
  box-shadow: 0 0 18px rgba(52, 211, 153, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hfb-shield-sphere:hover {
  transform: scale(1.1);
  box-shadow: 0 0 24px rgba(52, 211, 153, 0.8);
}

.hfb-shield-sphere svg {
  stroke: #FFFFFF;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.hfb-approval-tag {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.62rem;
  font-weight: 700;
  color: #34D399;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hfb-approval-action {
  font-size: 0.64rem;
  color: #FFFFFF;
  font-weight: 600;
  line-height: 1.15;
}

.hfb-approval-status {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.65rem;
  font-weight: 700;
  color: #34D399;
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.3);
  padding: 2px 5px;
  border-radius: 4px;
}

.hfb-approval-sub {
  font-size: 0.58rem;
  color: #94A3B8;
  line-height: 1.1;
}

/* Column 5: Connected Systems */
.hfb-col-outputs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.hfb-output-chip {
  background: linear-gradient(135deg, rgba(20, 30, 50, 0.8), rgba(10, 16, 28, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 6px 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.22s ease;
  cursor: pointer;
}

.hfb-output-chip:hover, .hfb-output-chip.active-output {
  border-color: #34D399;
  transform: translateX(-3px);
  box-shadow: 0 6px 16px rgba(52, 211, 153, 0.25), inset 0 0 10px rgba(52, 211, 153, 0.12);
  background: linear-gradient(135deg, rgba(24, 40, 64, 0.9), rgba(12, 22, 38, 0.98));
}

.hfb-out-title {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
}

.hfb-out-sub {
  font-size: 0.63rem;
  color: #7B8CA3;
  margin: 2px 0 0;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Bottom Command Deck: Measurable Business Outcomes (Frameless Floating Band) */
.hfb-outcomes-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 14px;
  padding: 0;
  background: transparent;
  border: none;
}

.hfb-outcome-card {
  background: rgba(14, 22, 38, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: center;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: all 0.25s ease;
}

.hfb-outcome-card:hover, .hfb-outcome-card.hfb-outcome-highlight {
  border-color: rgba(40, 215, 196, 0.55);
  background: rgba(40, 215, 196, 0.12);
  box-shadow: 0 6px 20px rgba(40, 215, 196, 0.25);
  transform: translateY(-2px);
}

.hfb-outcome-val {
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.1;
  background: linear-gradient(135deg, #FFFFFF 30%, #5BE6D6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hfb-outcome-val small {
  font-size: 0.72rem;
  font-weight: 600;
  color: #5BE6D6;
  -webkit-text-fill-color: #5BE6D6;
  margin-left: 2px;
}

.hfb-outcome-lbl {
  font-size: 0.65rem;
  font-weight: 600;
  color: #94A3B8;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hfb-outcome-trend {
  display: inline-block;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.58rem;
  font-weight: 600;
  color: #34D399;
  margin-top: 2px;
}

/* Footer: Ticker & Live Simulation Trigger (Floating Pill Bar) */
.hfb-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  margin-top: 10px;
  background: rgba(10, 16, 28, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  flex-wrap: wrap;
  gap: 10px;
}

.hfb-footer-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Interface sound toggle (Visual Flow + Simulator). Off by default. */
.sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #A9B7CC;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.sound-toggle:hover { color: #FFFFFF; border-color: rgba(40, 215, 196, 0.5); }
.sound-toggle.is-on { color: #5BE6D6; border-color: rgba(40, 215, 196, 0.5); background: rgba(40, 215, 196, 0.1); }
.sound-toggle .i-snd-on { display: none; }
.sound-toggle.is-on .i-snd-on { display: block; }
.sound-toggle.is-on .i-snd-off { display: none; }
.sound-toggle:disabled { opacity: 0.5; cursor: not-allowed; }
.sim-controls-row .sound-toggle { font-size: 0.8rem; padding: 9px 12px; }

.hfb-packet-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(40, 215, 196, 0.2), rgba(14, 165, 233, 0.15));
  border: 1px solid rgba(40, 215, 196, 0.45);
  color: #5BE6D6;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
}

.hfb-packet-btn:hover {
  background: #28D7C4;
  color: #080E1A;
  border-color: #28D7C4;
  box-shadow: 0 0 16px rgba(40, 215, 196, 0.5);
  transform: translateY(-1px);
}

.hfb-live-pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #28D7C4;
  box-shadow: 0 0 8px #28D7C4;
  animation: pulse-ring 1.8s infinite;
}

.hfb-footer-telemetry {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.68rem;
  color: #94A3B8;
  max-width: 440px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hfb-live-ticker {
  color: #5BE6D6;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .hfb-stage {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 12px;
  }
  .hfb-col-approval, .hfb-col-outputs {
    grid-column: span 1;
  }
  .hfb-conduit-svg {
    display: none;
  }
  .hfb-outcomes-band {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hfb-stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 14px 10px;
  }
  .hfb-stage > * { min-width: 0; }
  .hfb-col-inputs, .hfb-col-agents, .hfb-col-outputs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  /* column labels sit on their own row above the two-up cards */
  .hfb-col-inputs > .hfb-col-tag, .hfb-col-agents > .hfb-col-tag, .hfb-col-outputs > .hfb-col-tag { grid-column: 1 / -1; margin-bottom: 0; }
  .hfb-footer-telemetry { max-width: 100%; }
  .hfb-agent-head { flex-wrap: wrap; row-gap: 3px; }
  .hfb-conduit-svg {
    display: none;
  }
  .hfb-outcomes-band {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 10px;
  }
  .hfb-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Section Styling ---------- */
.interactive-section {
  padding: var(--section-y) 0;
  position: relative;
  overflow: hidden;
}

.interactive-section.on-dark {
  background: var(--surface);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(40, 215, 196, 0.12);
  border: 1px solid rgba(40, 215, 196, 0.3);
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 18px;
}

.section-badge .dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.2); }
}

/* ==========================================================================
   1. ADVANCED MULTI-LANE FLOW ANIMATION
   ========================================================================== */
.flow-advanced-wrap {
  margin-top: 40px;
  background: rgba(11, 18, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.flow-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(26, 39, 64, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 16px;
}

.flow-lane-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.flow-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  color: #B2C2D8;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}

.flow-tab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: rgba(40, 215, 196, 0.4);
}

.flow-tab-btn.active {
  background: rgba(40, 215, 196, 0.15);
  border-color: var(--teal);
  color: var(--white);
  box-shadow: 0 0 16px rgba(40, 215, 196, 0.25);
}

.flow-live-status {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: #94A3B8;
}

.flow-live-status .status-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.flow-canvas-container {
  position: relative;
  width: 100%;
  min-height: 480px;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(40, 215, 196, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(91, 123, 184, 0.12), transparent),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0px, rgba(255, 255, 255, 0.02) 1px, transparent 1px, transparent 40px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0px, rgba(255, 255, 255, 0.02) 1px, transparent 1px, transparent 40px),
    #0B1220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.flow-diagram-grid {
  display: grid;
  grid-template-columns: 220px 1fr 220px 1fr 180px 1fr 200px;
  align-items: center;
  width: 100%;
  max-width: 1060px;
  position: relative;
  z-index: 2;
}

/* Connective Pipeline */
.flow-pipe {
  position: relative;
  height: 6px;
  background: rgba(58, 75, 107, 0.5);
  border-radius: 3px;
  overflow: visible;
}

.flow-pipe::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #3A4B6B, #28D7C4, #5B7BB8);
  opacity: 0.6;
}

.flow-packet {
  position: absolute;
  top: 50%;
  left: 0;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 12px #28D7C4, 0 0 20px #28D7C4;
  animation: packet-travel 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.flow-pipe.pipe-delay .flow-packet {
  animation-delay: 0.8s;
}

.flow-pipe.pipe-final .flow-packet {
  animation-delay: 1.6s;
}

@keyframes packet-travel {
  0% { left: 0%; opacity: 0; transform: scale(0.6); }
  10% { opacity: 1; transform: scale(1.1); }
  90% { opacity: 1; transform: scale(1); }
  100% { left: 100%; opacity: 0; transform: scale(0.6); }
}

/* Node cards */
.flow-node-card {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 18px 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  user-select: none;
}

.flow-node-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--teal);
  box-shadow: 0 16px 40px rgba(40, 215, 196, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.flow-node-card.active-node {
  border-color: var(--teal);
  background: linear-gradient(135deg, rgba(40, 215, 196, 0.2), rgba(26, 39, 64, 0.8));
  box-shadow: 0 0 30px rgba(40, 215, 196, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.node-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.node-type-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal);
}

.node-icon-bubble {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.node-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--white);
  margin: 0 0 4px;
}

.node-desc {
  font-size: 0.82rem;
  color: #A9B7CC;
  line-height: 1.4;
  margin: 0;
}

.node-meta {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #7B8CA3;
}

.node-badge-ok {
  color: #34D399;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

/* AI Engine Node (Central Highlight) */
.flow-node-card.ai-engine {
  background: linear-gradient(145deg, rgba(40, 215, 196, 0.22) 0%, rgba(91, 123, 184, 0.15) 100%), rgba(11, 26, 44, 0.85);
  border-color: rgba(40, 215, 196, 0.5);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45), 0 0 35px rgba(40, 215, 196, 0.25);
}

.flow-node-card.ai-engine .node-title {
  color: #5BE6D6;
  font-size: 1.15rem;
}

/* Human-in-the-Loop Node */
.flow-node-card.human-gate {
  border-color: rgba(167, 139, 250, 0.4);
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.15), rgba(26, 39, 64, 0.7));
}

.flow-node-card.human-gate .node-type-tag {
  color: #C4B5FD;
}

/* Interactive Node Details Drawer */
.flow-details-drawer {
  padding: 18px 24px;
  background: rgba(17, 27, 46, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.drawer-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.drawer-label {
  font-size: 0.82rem;
  color: #8C9EB5;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.drawer-val {
  font-family: ui-monospace, monospace;
  font-size: 0.88rem;
  color: var(--teal);
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(40, 215, 196, 0.2);
}

/* ==========================================================================
   2. INTERACTIVE ROI & AUTOMATION SAVINGS CALCULATOR
   ========================================================================== */
.calc-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  background: var(--surface);
  border: 1px solid var(--line-dark);
  border-radius: 24px;
  padding: 44px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  margin-top: 36px;
}

.calc-left {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Industry Presets */
.preset-picker {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.preset-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #A9B7CC;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.preset-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preset-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #D5DEEC;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.preset-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(40, 215, 196, 0.4);
}

.preset-btn.active {
  background: var(--teal);
  color: var(--navy);
  border-color: var(--teal);
  font-weight: 700;
}

/* Sliders */
.calc-slider-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.slider-name {
  font-weight: 600;
  color: var(--white);
  font-size: 0.98rem;
}

.slider-value-display {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--teal);
  background: rgba(40, 215, 196, 0.1);
  padding: 2px 10px;
  border-radius: 6px;
  border: 1px solid rgba(40, 215, 196, 0.25);
}

.calc-range {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #1E2D4A;
  outline: none;
  cursor: pointer;
}

.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px rgba(40, 215, 196, 0.7);
  cursor: pointer;
  border: 2px solid var(--white);
  transition: transform 0.15s ease;
}

.calc-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.slider-sub {
  font-size: 0.8rem;
  color: #7B8CA3;
  margin: 0;
}

/* Right Output Card */
.calc-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(145deg, rgba(26, 39, 64, 0.8), rgba(11, 18, 32, 0.95));
  border: 1px solid rgba(40, 215, 196, 0.35);
  border-radius: 20px;
  padding: 34px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.calc-right::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle at 100% 0%, rgba(40, 215, 196, 0.15), transparent 70%);
  pointer-events: none;
  border-radius: inherit;
}

.output-hero-stat {
  margin-bottom: 28px;
}

.output-hero-label {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94A3B8;
  font-weight: 700;
  margin-bottom: 8px;
}

.output-hero-num {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 4.5vw, 3.6rem);
  font-weight: 750;
  line-height: 1;
  color: var(--white);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.output-hero-num span {
  color: var(--teal);
}

.output-hero-sub {
  font-size: 0.92rem;
  color: #A9B7CC;
  margin: 0;
}

.output-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.stat-tile {
  background: rgba(11, 18, 32, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
}

.stat-tile-label {
  font-size: 0.78rem;
  color: #8C9EB5;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 4px;
}

.stat-tile-val {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}

.calc-breakdown-box {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  padding: 4px 0;
  color: #C3CEE0;
}

.breakdown-row span:last-child {
  font-weight: 600;
  color: var(--teal);
}

.calc-cta-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--teal);
  color: var(--navy);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 16px 24px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 10px 24px rgba(40, 215, 196, 0.35);
}

.calc-cta-btn:hover {
  background: #5BE6D6;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(40, 215, 196, 0.45);
}

/* ==========================================================================
   3. INTERACTIVE WORKFLOW SIMULATOR
   ========================================================================== */
.simulator-card {
  background: var(--surface);
  border: 1px solid var(--line-dark);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
  margin-top: 36px;
}

.sim-nav {
  display: flex;
  border-bottom: 1px solid var(--line-dark);
  background: rgba(11, 18, 32, 0.6);
  overflow-x: auto;
}

.sim-nav-btn {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  padding: 20px 24px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: #8C9EB5;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}

.sim-nav-btn:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--white);
}

.sim-nav-btn.active {
  background: rgba(40, 215, 196, 0.08);
  border-bottom-color: var(--teal);
  color: var(--white);
}

.sim-nav-title {
  font-family: var(--font-head);
  font-weight: 650;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.sim-nav-sub {
  font-size: 0.8rem;
  color: #7B8CA3;
  margin: 0;
}

.sim-body {
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 36px;
}

.sim-col-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sim-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal);
  margin-bottom: 6px;
}

.sim-input-box {
  background: #0B1220;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  padding: 20px;
  font-family: ui-monospace, monospace;
  font-size: 0.86rem;
  color: #E2E8F0;
  line-height: 1.5;
  min-height: 140px;
  width: 100%;
  resize: vertical;
}

.sim-controls-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.sim-run-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--teal);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}

.sim-run-btn:hover {
  background: #5BE6D6;
  transform: translateY(-1px);
}

.sim-reset-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #D5DEEC;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.sim-reset-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

/* Simulation Stepper Right Column */
.sim-col-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sim-step-card {
  background: rgba(11, 18, 32, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all 0.3s ease;
  opacity: 0.45;
}

.sim-step-card.active {
  opacity: 1;
  border-color: rgba(40, 215, 196, 0.5);
  background: rgba(17, 27, 46, 0.95);
  box-shadow: 0 8px 24px rgba(40, 215, 196, 0.15);
}

.sim-step-card.completed {
  opacity: 0.9;
  border-color: rgba(52, 211, 153, 0.4);
}

.step-num-bubble {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1A2740;
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.88rem;
  flex-shrink: 0;
  transition: all 0.2s;
}

.sim-step-card.active .step-num-bubble {
  background: var(--teal);
  color: var(--navy);
  box-shadow: 0 0 12px rgba(40, 215, 196, 0.6);
}

.sim-step-card.completed .step-num-bubble {
  background: #10B981;
  color: var(--white);
}

.step-content {
  flex: 1;
}

.step-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.step-title {
  font-family: var(--font-head);
  font-weight: 650;
  font-size: 0.98rem;
  color: var(--white);
  margin: 0;
}

.step-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.step-badge.pending { background: rgba(255, 255, 255, 0.08); color: #94A3B8; }
.step-badge.running { background: rgba(40, 215, 196, 0.2); color: var(--teal); animation: pulse-ring 1.5s infinite; }
.step-badge.done { background: rgba(52, 211, 153, 0.2); color: #34D399; }
.step-badge.review { background: rgba(245, 158, 11, 0.2); color: #FBBF24; }

.step-details {
  font-size: 0.84rem;
  color: #A9B7CC;
  margin: 0;
  line-height: 1.45;
}

.step-interactive-action {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.step-approve-btn {
  background: #10B981;
  color: var(--white);
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.15s;
}

.step-approve-btn:hover { background: #059669; }

.step-edit-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #D5DEEC;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.82rem;
  cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 980px) {
  .calc-container {
    grid-template-columns: 1fr;
    padding: 28px;
    gap: 32px;
  }
  .sim-body {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .flow-diagram-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .flow-pipe {
    height: 30px;
    width: 4px;
    margin: 0 auto;
  }
  .flow-packet {
    top: 0;
    left: 50%;
    margin-left: -7px;
    margin-top: 0;
    animation: packet-travel-v 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  }
}

/* Phones: one level of card padding instead of two, so calculator and simulator content gets the width. */
@media (max-width: 640px) {
  .calc-container { padding: 20px 16px; gap: 24px; margin-top: 28px; border-radius: 18px; }
  .calc-right { padding: 22px 18px; border-radius: 16px; }
  .slider-label-row { gap: 12px; }
  .slider-value-display { white-space: nowrap; font-size: 1.1rem; }
  .output-stat-grid { gap: 10px; margin-bottom: 22px; }
  .stat-tile { padding: 12px; }
  .stat-tile-val { font-size: 1.25rem; white-space: nowrap; }
  .breakdown-row { gap: 12px; }
  .breakdown-row span:last-child { text-align: right; }
  .sim-body { padding: 20px 16px; }
}

@keyframes packet-travel-v {
  0% { top: 0%; opacity: 0; transform: scale(0.6); }
  10% { opacity: 1; transform: scale(1.1); }
  90% { opacity: 1; transform: scale(1); }
  100% { top: 100%; opacity: 0; transform: scale(0.6); }
}

/* ---------- GLOSSY ABOUT PAGE THEME ---------- */
.about-glossy-canvas {
  background: 
    radial-gradient(1100px 600px at 85% 15%, rgba(40, 215, 196, 0.13), transparent 70%),
    radial-gradient(1200px 700px at 10% 65%, rgba(91, 123, 184, 0.15), transparent 70%),
    radial-gradient(800px 500px at 60% 90%, rgba(167, 139, 250, 0.08), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.012) 0px, rgba(255, 255, 255, 0.012) 1px, transparent 1px, transparent 32px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.012) 0px, rgba(255, 255, 255, 0.012) 1px, transparent 1px, transparent 32px),
    #080E1A;
  color: #E2E8F0;
  padding: var(--section-y) 0;
  position: relative;
}
.about-glossy-canvas .gloss-panel:last-child { margin-bottom: 0; }

.about-glossy-canvas h1,
.about-glossy-canvas h2,
.about-glossy-canvas h3 {
  color: #FFFFFF;
}

.about-glossy-canvas p {
  color: #B4C2D6;
  line-height: 1.7;
}

/* Glossy Frosted Glass Panels */
.gloss-panel {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.02) 50%, rgba(40, 215, 196, 0.04) 100%), rgba(17, 27, 46, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  box-shadow: 
    inset 0 1.5px 0 rgba(255, 255, 255, 0.35),
    inset 0 -12px 24px rgba(0, 0, 0, 0.3),
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 35px rgba(40, 215, 196, 0.08);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  padding: 48px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.gloss-panel:hover {
  border-color: rgba(40, 215, 196, 0.38);
  box-shadow: 
    inset 0 1.5px 0 rgba(255, 255, 255, 0.45),
    inset 0 -12px 24px rgba(0, 0, 0, 0.3),
    0 28px 70px rgba(0, 0, 0, 0.6),
    0 0 45px rgba(40, 215, 196, 0.12);
}

/* Subtle Specular Sheen Effect */
.gloss-panel::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.06), transparent 50%);
  pointer-events: none;
}

/* Principles / Approach Grid */
.gloss-approach-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 52px;
  align-items: start;
}

.gloss-principles-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gloss-principles-list li {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 18px;
  color: #C3CEE0;
  font-size: 0.98rem;
  line-height: 1.55;
  transition: all 0.2s ease;
}

.gloss-principles-list li:hover {
  background: rgba(40, 215, 196, 0.08);
  border-color: rgba(40, 215, 196, 0.3);
  transform: translateX(4px);
}

.gloss-principles-list li strong {
  color: var(--teal);
  font-weight: 700;
  margin-right: 4px;
}

/* Founder Feature Showcase (High Quality Portrait) */
.founder-gloss-showcase {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: center;
}

.founder-photo-showcase {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 
    0 24px 60px rgba(0, 0, 0, 0.7),
    0 0 35px rgba(40, 215, 196, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #0B1220;
}

.founder-photo-showcase img {
  width: 100%;
  height: auto;
  aspect-ratio: 3.73 / 5;
  object-fit: cover;
  display: block;
  image-rendering: auto;
  image-rendering: -webkit-optimize-contrast;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.founder-content-col h2 {
  font-size: clamp(2rem, 3.2vw, 2.5rem);
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}

.founder-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(40, 215, 196, 0.12);
  border: 1px solid rgba(40, 215, 196, 0.3);
  padding: 5px 12px;
  border-radius: 9999px;
  margin-bottom: 14px;
}

.founder-title-lead {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 6px;
}

.founder-role-text {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 20px;
}

.founder-bio-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #C3CEE0;
  margin-bottom: 16px;
}

/* Working with ayrus AI Process Steps (Glossy) */
.gloss-expect-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.gloss-step-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 20px;
  position: relative;
  transition: all 0.25s ease;
}

.gloss-step-card:hover {
  background: rgba(40, 215, 196, 0.08);
  border-color: rgba(40, 215, 196, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.gloss-step-num {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--teal);
  margin-bottom: 8px;
}

.gloss-step-card strong {
  display: block;
  color: #FFFFFF;
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.gloss-step-card span {
  font-size: 0.88rem;
  color: #94A3B8;
  line-height: 1.45;
  display: block;
}

/* Responsive */
@media (max-width: 960px) {
  .founder-gloss-showcase {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .founder-photo-showcase {
    max-width: 320px;
    margin: 0 auto;
  }
  .gloss-approach-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .gloss-panel {
    padding: 32px 24px;
  }
}
@media (max-width: 640px) {
  .gloss-panel { padding: 26px 18px; border-radius: 18px; }
}



/* Touch screens: small workflow and simulator controls get a finger-sized hit area. */
@media (pointer: coarse) {
  .hfb-stream-btn, .hfb-packet-btn, .sound-toggle, .preset-btn { min-height: 40px; }
}

/* ==========================================================================
   HERO WORKFLOW: colour-coded phases, run bar, phase transitions
   Each of the 6 phases owns one colour (--ph1..--ph6). A column's own phase
   colour is --pc; the phase currently running is --phase on the board.
   ========================================================================== */
.hero-flow-board {
  /* Soft, desaturated tints that sit close to the navy + teal theme. */
  --ph1: #8DB8D6;   /* 1 Ingest      steel blue */
  --ph2: #6CC7BC;   /* 2 Orchestrate soft teal  */
  --ph3: #A3A6D4;   /* 3 Dispatch    periwinkle */
  --ph4: #CDB88A;   /* 4 Approve     sand       */
  --ph5: #C4A1BA;   /* 5 Integrate   dusty rose */
  --ph6: #9DC4A2;   /* 6 Outcomes    sage       */
  --phase: var(--ph1);
}
.hero-flow-board[data-phase="2"] { --phase: var(--ph2); }
.hero-flow-board[data-phase="3"] { --phase: var(--ph3); }
.hero-flow-board[data-phase="4"] { --phase: var(--ph4); }
.hero-flow-board[data-phase="5"] { --phase: var(--ph5); }
.hero-flow-board[data-phase="6"] { --phase: var(--ph6); }
.hero-flow-board [data-phase="1"], .hfb-rail-step[data-step="1"] { --pc: var(--ph1); }
.hero-flow-board [data-phase="2"], .hfb-rail-step[data-step="2"] { --pc: var(--ph2); }
.hero-flow-board [data-phase="3"], .hfb-rail-step[data-step="3"] { --pc: var(--ph3); }
.hero-flow-board [data-phase="4"], .hfb-rail-step[data-step="4"] { --pc: var(--ph4); }
.hero-flow-board [data-phase="5"], .hfb-rail-step[data-step="5"] { --pc: var(--ph5); }
.hero-flow-board [data-phase="6"], .hfb-rail-step[data-step="6"] { --pc: var(--ph6); }

/* Phase badge in the header takes the running phase's colour and flashes on each change. */
.hfb-phase-badge { border-color: color-mix(in srgb, var(--phase) 45%, transparent); transition: border-color .4s ease, background-color .4s ease; }
.hfb-phase-badge .hfb-phase-tag, .hfb-phase-badge strong { color: var(--phase); transition: color .4s ease; }
.hfb-phase-badge.is-changing { animation: hfb-badge-flash .9s ease-out; }
@keyframes hfb-badge-flash {
  0% { background: color-mix(in srgb, var(--phase) 22%, transparent); box-shadow: 0 0 0 0 color-mix(in srgb, var(--phase) 35%, transparent); }
  100% { background: rgba(255, 255, 255, 0.05); box-shadow: 0 0 0 10px transparent; }
}

/* ---------- Run bar ---------- */
.hfb-runbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 18px; margin: 0 0 6px;
}
.hfb-run-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; flex: 1 1 320px; min-width: 0; }
.hfb-runbar .hfb-packet-btn {
  position: relative; gap: 8px; font-size: 0.86rem; padding: 10px 18px; border-radius: 999px;
  background: #28D7C4; color: #06111C; border-color: #28D7C4; letter-spacing: 0;
  box-shadow: 0 6px 22px rgba(40, 215, 196, 0.35);
}
.hfb-runbar .hfb-packet-btn:hover { background: #5BE6D6; border-color: #5BE6D6; color: #06111C; }
.hfb-runbar .hfb-packet-btn:disabled { cursor: progress; opacity: 1; background: rgba(40, 215, 196, 0.16); color: #CFFAF4; border-color: color-mix(in srgb, var(--phase) 70%, transparent); box-shadow: none; transform: none; }
/* Soft "call" ring until the visitor has run the simulation once. */
.hero-flow-board:not(.has-run) .hfb-runbar .hfb-packet-btn:not(:disabled)::after {
  content: ""; position: absolute; inset: -4px; border-radius: inherit; pointer-events: none;
  border: 2px solid rgba(40, 215, 196, 0.6); animation: hfb-call 2.2s ease-out infinite;
}
@keyframes hfb-call { 0% { opacity: .9; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.14, 1.4); } }
.hfb-run-hint { margin: 0; font-size: 0.78rem; line-height: 1.4; color: #A9B7CC; max-width: none; flex: 1 1 200px; min-width: 0; }
.hfb-run-hint strong { color: #E6EEF9; font-weight: 650; }
.hfb-run-hint .hfb-hop { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-weight: 700; font-size: 0.74rem; letter-spacing: .02em; white-space: nowrap; }
.hfb-run-hint .hfb-hop b { font-weight: 700; }
.hfb-run-hint.is-changing { animation: hfb-hint-in .5s ease-out; }
@keyframes hfb-hint-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- Phase rail ---------- */
.hfb-phase-rail { display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; flex: 0 1 auto; }
.hfb-rail-step { display: flex; align-items: center; gap: 5px; color: #7D8BA1; font-size: 0.7rem; font-weight: 650; white-space: nowrap; }
.hfb-rail-step + .hfb-rail-step::before {
  content: ""; width: 14px; height: 2px; margin: 0 6px; border-radius: 2px; background: rgba(255, 255, 255, 0.14);
  transition: background .5s ease;
}
.hfb-rail-num {
  display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  font-size: 0.68rem; font-weight: 800; color: var(--pc);
  border: 1.5px solid color-mix(in srgb, var(--pc) 55%, transparent); background: rgba(10, 16, 28, 0.8);
  transition: background .35s ease, color .35s ease, box-shadow .35s ease, transform .35s ease;
}
.hfb-rail-step.is-done .hfb-rail-num { background: color-mix(in srgb, var(--pc) 18%, rgba(10, 16, 28, 0.9)); color: #E6EEF9; }
.hfb-rail-step.is-done + .hfb-rail-step::before, .hfb-rail-step.is-current::before { background: linear-gradient(90deg, rgba(255,255,255,.25), var(--pc)); }
.hfb-rail-step.is-current { color: #FFFFFF; }
.hfb-rail-step.is-current .hfb-rail-num { background: color-mix(in srgb, var(--pc) 32%, #0B1220); color: #FFFFFF; border-color: var(--pc); transform: scale(1.15); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pc) 16%, transparent); }

/* ---------- Tighter stage ---------- */
.hfb-stage { min-height: 0; padding: 4px 0 2px; gap: 16px; align-items: center; }
.hfb-col-orchestrator, .hfb-col-approval { flex-direction: column; align-items: stretch; }
.hfb-col-tag { display: flex; align-items: center; gap: 6px; color: #8796AD; }
.hfb-step-num {
  display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; flex: none;
  font-size: 0.6rem; font-weight: 800; letter-spacing: 0; color: #06111C; background: var(--pc);
}
.hfb-col-tag .ai-accent { -webkit-text-fill-color: currentColor; color: inherit; }
.hfb-outcomes-band { margin-top: 10px; }
.hfb-footer { margin-top: 8px; }

/* ---------- Colour-coded active states (each column glows in its own phase colour) ---------- */
.hfb-input-chip.active-input, .hfb-agent-card.active-agent, .hfb-output-chip.active-output, .hfb-approval-node.active-approval, .hfb-center-core.active-core {
  border-color: var(--pc);
  border-color: color-mix(in srgb, var(--pc) 75%, transparent);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--pc) 16%, transparent), inset 0 0 10px color-mix(in srgb, var(--pc) 8%, transparent);
}
.hfb-center-core.active-core { box-shadow: 0 16px 42px rgba(0,0,0,.6), 0 0 30px color-mix(in srgb, var(--pc) 28%, transparent), inset 0 0 16px color-mix(in srgb, var(--pc) 12%, transparent); }
.hfb-outcome-card.hfb-outcome-highlight {
  border-color: color-mix(in srgb, var(--pc) 55%, transparent); background: color-mix(in srgb, var(--pc) 7%, transparent);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--pc) 12%, transparent);
}

/* The column of the running phase is outlined and labelled; during a run the rest step back. */
.hfb-stage > [data-phase], .hfb-outcomes-band { position: relative; transition: opacity .45s ease, filter .45s ease; }
.hfb-stage > [data-phase]::after, .hfb-outcomes-band::after {
  content: ""; position: absolute; inset: -7px -6px; border-radius: 14px; pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--pc) 70%, transparent); background: color-mix(in srgb, var(--pc) 4%, transparent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--pc) 16%, transparent); opacity: 0; transition: opacity .45s ease;
}
.hfb-stage > .is-phase-focus::after, .hfb-outcomes-band.is-phase-focus::after { opacity: 1; }
.hfb-stage > .is-phase-focus .hfb-col-tag { color: var(--pc); }
.hfb-stage > .is-phase-enter::after, .hfb-outcomes-band.is-phase-enter::after { animation: hfb-enter 1s ease-out; }
@keyframes hfb-enter { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--pc) 45%, transparent); } 100% { box-shadow: 0 0 0 10px transparent, 0 0 14px color-mix(in srgb, var(--pc) 16%, transparent); } }
.hero-flow-board.is-simulating .hfb-stage > [data-phase]:not(.is-phase-focus):not(.is-phase-done),
.hero-flow-board.is-simulating .hfb-outcomes-band:not(.is-phase-focus) { opacity: .42; filter: saturate(.6); }

/* ---------- Live wires (drawn from real card positions) ---------- */
.hfb-conduit-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: visible; }
.hfb-wire-group { transition: opacity .45s ease; }
.hfb-wire-group .hfb-wire-flow { stroke-width: 2; filter: none; }
.hfb-wire-group.is-hot .hfb-wire-track { stroke: rgba(255, 255, 255, 0.16); }
.hfb-wire-group.is-hot .hfb-wire-flow { stroke-width: 2.6; stroke-dasharray: 16 84; animation-duration: 0.9s; filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.25)); }
.hero-flow-board.is-simulating .hfb-wire-group:not(.is-hot) { opacity: .25; }

/* ---------- Phones and tablets ---------- */
.hfb-runbar { margin-bottom: 12px; }
@media (max-width: 900px) {
  .hfb-stage > [data-phase]::after { inset: -5px; }
  .hfb-stage { row-gap: 18px; }
}
/* Tablet: row 1 = phases 1-3, row 2 = approval + connected systems as a 2x2 grid (no empty cell). */
@media (min-width: 641px) and (max-width: 900px) {
  .hfb-col-outputs { grid-column: span 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; align-content: center; }
  .hfb-col-outputs > .hfb-col-tag { grid-column: 1 / -1; margin-bottom: 0; }
}
@media (max-width: 640px) {
  .hfb-runbar { flex-direction: column; align-items: stretch; gap: 10px; }
  .hfb-run-cta { flex: none; }
  .hfb-run-hint { flex: 1 1 100%; }
  .hfb-run-cta .hfb-packet-btn { flex: 1 1 auto; justify-content: center; }
  .hfb-phase-rail { justify-content: space-between; }
  .hfb-rail-label { display: none; }
  .hfb-rail-step { flex: 1 1 auto; }
  .hfb-rail-step + .hfb-rail-step::before { flex: 1 1 auto; width: auto; margin: 0 4px; }
  .hfb-rail-step.is-current .hfb-rail-label { display: inline; }
  .hfb-col-orchestrator, .hfb-col-approval { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-flow-board .hfb-packet-btn::after, .hfb-phase-badge.is-changing, .hfb-run-hint.is-changing,
  .hfb-stage > .is-phase-enter::after, .hfb-outcomes-band.is-phase-enter::after { animation: none !important; }
}

/* =====================================================================
   Design review fixes (2026-11-20): Impeccable + taste-skill + modern-web-design
   ===================================================================== */
/* Text floor in the visualiser: functional labels >= 11.2px, descriptive lines >= 11.5px. */
.hfb-col-tag, .hfb-agent-pill, .hfb-approval-tag, .hfb-approval-action, .hfb-approval-status,
.hfb-outcome-trend, .hfb-chip-meta, .hfb-core-telemetry, .hfb-rail-num, .hfb-step-num { font-size: 0.7rem; }
.hfb-chip-sub, .hfb-agent-task, .hfb-core-desc, .hfb-out-sub, .hfb-approval-sub,
.hfb-outcome-lbl, .hfb-footer-telemetry { font-size: 0.72rem; }
.hfb-agent-task, .hfb-core-desc { line-height: 1.32; }

/* Contrast: phase rail labels, column tags and descriptions brighter on the dark board. */
.hfb-rail-step { color: #A3B1C6; }
.hfb-col-tag { color: #A3B1C6; }
.hfb-core-desc { color: #C3CEE0; }
.hfb-agent-task, .hfb-chip-sub, .hfb-out-sub { color: #AEBBCD; }

/* The orchestrator glow stays inside its panel (it spilled 23px). */
.hfb-center-core { overflow: hidden; isolation: isolate; }
.hfb-core-glow-bg { inset: 0; filter: none; border-radius: inherit; z-index: -1; }
.hfb-core-ring { max-width: calc(100% - 16px); max-height: calc(100% - 16px); aspect-ratio: 1; }

/* Live ticker: show the whole message (two lines at most) instead of cutting it mid-word. */
.hfb-footer-telemetry { white-space: normal; text-overflow: clip; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; max-width: 100%; }

/* Range sliders: a 44px hit area around the 8px track; keep focus visible. */
.calc-range { height: 44px; background: transparent; }
.calc-range::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: #1E2D4A; }
.calc-range::-moz-range-track { height: 8px; border-radius: 4px; background: #1E2D4A; }
.calc-range::-webkit-slider-thumb { margin-top: -7px; }
.calc-range:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.slider-sub { color: #9AA9BD; }

@media (max-width: 640px) {
  /* agent and input descriptions wrap to two lines on phones instead of being cut */
  .hfb-agent-task, .hfb-chip-sub { white-space: normal; text-overflow: clip; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  /* a lone card in the last row spans the full width */
  .hfb-col-inputs > .hfb-input-chip:last-child:nth-child(even), .hfb-col-outputs > :last-child:nth-child(even) { grid-column: 1 / -1; }
  /* figures stay below the page headline size */
  .output-hero-num { font-size: clamp(1.9rem, 8vw, 2.2rem); }
  /* calculator preset buttons 44px */
  .preset-btn { min-height: 44px; }
}

/* Review fixes, round 2 */
/* Focus rings inside the dark widgets: white, so they stand out from teal borders. */
.hero-flow-board :focus-visible, .sim-nav-btn:focus-visible, .interactive-section :focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; }
/* "AI" inside a column tag is plain text in the tag colour (no gradient ground behind it). */
.hfb-col-tag .ai-accent { background: none; }
/* Agent name and status pill wrap rather than spill out of narrow cards. */
.hfb-agent-head { flex-wrap: wrap; row-gap: 3px; }
.hfb-agent-name { white-space: normal; }
/* Pending simulator steps: dimmed, but still readable (was opacity .45). */
.sim-step-card { opacity: .78; }
.sim-step-card.active, .sim-step-card.completed { opacity: 1; }
.step-num-bubble { color: #A9B7CC; }
.step-badge.pending { color: #B4C2D4; }
.step-details { color: #B4C2D4; }
.sim-col-left .microcopy, .sim-body .microcopy { color: #AEBBCD; }
/* Section badge on a light section uses the deep teal. */
.interactive-section:not(.on-dark) .section-head .section-badge, .section:not(.on-dark) .section-badge { color: var(--teal-ink); border-color: rgba(10, 110, 100, .35); background: rgba(10, 110, 100, .08); }
/* Calculator CTA keeps navy text on its teal fill. */
.calc-cta-btn, .calc-cta-btn span, .on-dark a.calc-cta-btn { color: var(--navy); }
/* Simulator tabs stack on phones instead of running off the side. */
@media (max-width: 640px) {
  .sim-nav { flex-direction: column; overflow-x: visible; }
  .sim-nav-btn { min-width: 0; padding: 14px 16px; border-bottom-width: 2px; }
}
.hfb-core-telemetry { color: #7DD3FC; }

/* Impeccable leftovers (2026-11-20): outcome figures as solid text so contrast holds on the highlighted card */
.hfb-outcome-val {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
  color: #FFFFFF;
}
