:root {
  --header-h: 106px;
  --bg: #05060b;
  --bg-2: #0a0d18;
  --text: #f5f7fc;
  --muted: #9fa8bf;
  --line: rgba(255, 255, 255, 0.14);
  --violet: #7f49ff;
  --violet-soft: rgba(127, 73, 255, 0.24);
  --radius: 18px;
  --shadow: 0 25px 70px rgba(5, 8, 17, 0.55);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  --beat-glow: 0;
  --beat-accent: 0;
  --tempo-strength: 0.9;
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  line-height: 1.52;
  background: linear-gradient(180deg, #070912 0%, #06080f 45%, #05060b 100%);
  overflow-x: hidden;
}

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

#intro {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: #04050a;
  overflow: hidden;
  transition: opacity 680ms ease, visibility 680ms ease;
}

#intro::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 50%, rgba(169, 130, 255, 0.45), rgba(169, 130, 255, 0) 48%);
}

.intro-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.2%;
  background: linear-gradient(180deg, #05070e 0%, #04050b 55%, #03040a 100%);
  transition: transform 1350ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.panel-left {
  left: 0;
  border-right: 1px solid rgba(194, 169, 255, 0.2);
}

.panel-right {
  right: 0;
  border-left: 1px solid rgba(194, 169, 255, 0.2);
}

.intro-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(70vw, 940px);
  transform: translate(-50%, -50%);
  transition: transform 1000ms cubic-bezier(0.22, 1, 0.36, 1), opacity 900ms ease, filter 900ms ease;
}

.intro-logo-wrap {
  display: block;
  width: 100%;
}

.intro-logo {
  width: 100%;
  display: block;
  opacity: 0;
  transform: scale(0.72);
  filter: brightness(0) invert(1) blur(12px) drop-shadow(0 0 36px rgba(128, 82, 255, 0.45));
}

.intro-burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}

.intro-burst::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(64vw, 840px);
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  border: 1px solid rgba(212, 191, 255, 0.88);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.22);
  filter: blur(0.4px) drop-shadow(0 0 26px rgba(161, 124, 246, 0.52));
}

.intro-burst span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.6px;
  height: min(78vh, 760px);
  opacity: 0;
  background: linear-gradient(
    180deg,
    rgba(211, 191, 255, 0),
    rgba(227, 214, 255, 0.96),
    rgba(172, 137, 255, 0.82),
    rgba(211, 191, 255, 0)
  );
  transform-origin: 50% 50%;
  transform: translate(-50%, -50%) rotate(calc(var(--i) * 15deg)) scaleY(0.04);
  filter: blur(0.3px) drop-shadow(0 0 20px rgba(148, 103, 255, 0.55));
}

body.intro-start .intro-logo {
  animation: introLogoIn 1450ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

body.intro-open .panel-left {
  transform: translateX(-102%);
}

body.intro-open .panel-right {
  transform: translateX(102%);
}

body.intro-open .intro-core {
  transform: translate(-50%, -50%) scale(1.06);
  opacity: 0;
  filter: blur(10px);
}

body.intro-open .intro-burst span {
  animation: burstLine 980ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--i) * 14ms);
}

body.intro-open .intro-burst::before {
  animation: introShockwave 920ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.intro-open #intro::after {
  animation: introFlash 900ms ease-out both;
}

body.is-ready #intro {
  opacity: 0;
  visibility: hidden;
}

#fx-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.12;
  mix-blend-mode: soft-light;
  background-image: radial-gradient(rgba(255, 255, 255, 0.15) 0.7px, transparent 0.9px);
  background-size: 3px 3px;
}

.top-strip {
  position: sticky;
  top: 0;
  z-index: 45;
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  background: #060912;
  transition: opacity 240ms ease;
}

.strip-left,
.strip-nav {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 10px 14px;
}

.strip-left {
  gap: 14px;
  border-right: 0;
}

.top-email {
  position: absolute;
  right: clamp(12px, 2.2vw, 22px);
  top: 50%;
  transform: translateY(-50%);
  font-family: "Space Mono", "Courier New", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: rgba(197, 206, 228, 0.72);
  opacity: 0.88;
  transition: color 180ms ease, opacity 180ms ease;
}

.top-email:hover,
.top-email:focus-visible {
  color: #eef4ff;
  opacity: 1;
  outline: none;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 102px;
  min-width: 102px;
}

.logo-link img {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
  transition: opacity 260ms ease, transform 260ms ease;
}

.logo-link img.is-logo-fading {
  opacity: 0;
  transform: scale(0.94);
}

.mobile-menu-toggle {
  display: none;
  position: relative;
  width: 34px;
  height: 34px;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.mobile-menu-toggle span {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1.6px;
  border-radius: 999px;
  background: #d6def2;
  transform: translate(-50%, -50%);
  transition: transform 220ms ease, opacity 220ms ease;
}

.mobile-menu-toggle span:nth-child(1) {
  top: calc(50% - 6px);
}

.mobile-menu-toggle span:nth-child(2) {
  top: 50%;
}

.mobile-menu-toggle span:nth-child(3) {
  top: calc(50% + 6px);
}

.mobile-menu-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(187, 162, 255, 0.55);
  border-radius: 8px;
}

.top-strip.is-mobile-nav-open .mobile-menu-toggle span:nth-child(1) {
  transform: translate(-50%, 6px) rotate(45deg);
}

.top-strip.is-mobile-nav-open .mobile-menu-toggle span:nth-child(2) {
  opacity: 0;
}

.top-strip.is-mobile-nav-open .mobile-menu-toggle span:nth-child(3) {
  transform: translate(-50%, -6px) rotate(-45deg);
}

.glyph-block {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.glyph-line {
  margin: 0;
  font-family: "Space Mono", "Courier New", monospace;
  font-size: 0.67rem;
  letter-spacing: 0.04em;
  color: rgba(193, 202, 224, 0.86);
  opacity: calc(0.78 + var(--beat-glow) * 0.24);
  text-shadow: 0 0 calc(2px + var(--beat-glow) * 8px) rgba(168, 137, 250, 0.5);
  transform: translateZ(0);
  white-space: nowrap;
  overflow: hidden;
  max-width: 260px;
}

.glyph-note {
  margin: 0;
  color: #dde5fa;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.66rem;
  font-weight: 700;
  opacity: calc(0.9 + var(--beat-glow) * 0.2);
  text-shadow: 0 0 calc(4px + var(--beat-glow) * 16px) rgba(176, 141, 255, 0.66);
  transform-origin: 0 50%;
  transform: translateZ(0) scale(calc(0.992 + var(--tempo-strength) * 0.01 + var(--beat-glow) * 0.045 + var(--beat-accent) * 0.02));
}

.tempo-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.tempo-knob {
  --knob-angle: 0deg;
  position: relative;
  width: 25px;
  height: 25px;
  border-radius: 999px;
  border: 1px solid rgba(197, 170, 255, 0.55);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: visible;
  isolation: isolate;
  cursor: grab;
  box-shadow: 0 0 calc(4px + var(--beat-glow) * 14px) rgba(150, 118, 255, 0.5);
  transform: translateZ(0) scale(calc(1 + var(--beat-glow) * 0.05 + var(--beat-accent) * 0.02));
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.tempo-knob::before,
.tempo-knob::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.tempo-knob::before {
  inset: -4px;
  border: 1px solid rgba(194, 166, 255, 0.46);
  opacity: calc(0.2 + var(--beat-glow) * 0.48);
  transform: scale(calc(1 + var(--beat-glow) * 0.36));
}

.tempo-knob::after {
  inset: -10px;
  background: radial-gradient(
    circle,
    rgba(176, 139, 255, 0.34) 0%,
    rgba(176, 139, 255, 0.16) 40%,
    rgba(176, 139, 255, 0) 74%
  );
  opacity: calc(var(--beat-accent) * 0.62 + var(--beat-glow) * 0.14);
  transform: scale(calc(0.88 + var(--beat-accent) * 0.76));
  filter: blur(0.4px);
}

.tempo-knob:active {
  cursor: grabbing;
}

.tempo-knob:hover,
.tempo-knob:focus-visible {
  border-color: rgba(197, 170, 255, 0.78);
  box-shadow: 0 0 0 3px rgba(127, 73, 255, 0.22), 0 0 calc(8px + var(--beat-glow) * 18px) rgba(150, 118, 255, 0.56);
  outline: none;
}

.tempo-knob-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2.3px;
  height: 9px;
  border-radius: 2px;
  background: #ddc9ff;
  box-shadow: 0 0 6px rgba(191, 162, 255, 0.78);
  transform: translate(-50%, -100%) rotate(var(--knob-angle));
  transform-origin: 50% 100%;
  will-change: transform;
  pointer-events: none;
  z-index: 2;
}

.strip-nav {
  display: none !important;
  margin-left: auto;
  gap: 8px;
  justify-content: flex-end;
  padding-inline: clamp(10px, 2vw, 24px);
}

.strip-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 9px 12px;
  border: 1px solid transparent;
  color: #c7cde0;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  text-transform: uppercase;
  transition: color 200ms ease, border-color 200ms ease, background 200ms ease;
}

.strip-nav a:hover,
.strip-nav a.is-active {
  color: #fff;
  border-color: rgba(171, 138, 255, 0.4);
  background: rgba(127, 73, 255, 0.1);
}

.site-main {
  position: relative;
  z-index: 1;
}

body.slide-mode {
  overflow: hidden;
  overscroll-behavior-y: none;
  --line-warp: 0px;
}

body.slide-mode::before {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  top: var(--header-h);
  bottom: 0;
  pointer-events: none;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(11, 15, 28, 0.12), rgba(7, 9, 15, 0.42)),
    repeating-linear-gradient(
      180deg,
      rgba(214, 224, 245, 0.11) 0px,
      rgba(214, 224, 245, 0.11) 1px,
      transparent 1px,
      transparent 34px
    ),
    repeating-linear-gradient(
      180deg,
      rgba(156, 123, 240, 0.09) 0px,
      rgba(156, 123, 240, 0.09) 1px,
      transparent 1px,
      transparent 52px
    );
  background-position: 0 0, 0 var(--line-warp), 0 calc(var(--line-warp) * -0.55);
  animation: slideLineDrift 16s ease-in-out infinite;
}

body.slide-mode::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  top: var(--header-h);
  bottom: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 72% 44%, rgba(152, 118, 246, 0.34), transparent 56%),
    radial-gradient(circle at 26% 74%, rgba(121, 96, 227, 0.24), transparent 62%);
  opacity: calc(0.08 + var(--beat-glow) * 0.36);
  transition: opacity 70ms linear;
}

body.slide-mode .site-main {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--header-h);
  bottom: 0;
  overflow: hidden;
}

body.slide-mode.is-sliding .site-main {
  pointer-events: none;
}

body.slide-mode .site-main > .section {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  min-height: calc(100vh - var(--header-h));
  margin: 0;
  padding: clamp(34px, 4.4vw, 56px) clamp(5vw, 6.6vw, 90px);
  overflow: hidden;
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(1);
  pointer-events: none;
  z-index: 1;
  transition: opacity 420ms cubic-bezier(0.33, 1, 0.68, 1);
}

body.slide-mode.is-sliding .site-main > .section {
  will-change: opacity;
}

body.slide-mode .site-main > .section.is-slide-active {
  opacity: 1;
  pointer-events: none;
  z-index: 2;
}

body.slide-mode .site-main > .section.is-slide-active:last-of-type,
body.slide-mode .site-main > .section.is-slide-active {
  pointer-events: auto;
}

body.slide-mode .site-main > .section + .section {
  border-left: 0;
}

body.slide-mode .slide-transition-in-prep,
body.slide-mode .slide-transition-in {
  z-index: 3;
}

body.slide-mode .slide-transition-out {
  z-index: 2;
}

body.slide-mode .slide-transition-out {
  opacity: 0;
  transition: opacity 100ms ease;
}

body.slide-mode .slide-transition-in-prep {
  opacity: 0;
  transform: translate3d(0, 0, 0);
  transition: none;
}

body.slide-mode .slide-transition-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 200ms cubic-bezier(0.33, 1, 0.68, 1);
}

body.slide-mode .slide-enter-piece {
  opacity: 1;
  transition: opacity 320ms ease;
  transition-delay: 0ms;
  backface-visibility: hidden;
}

body.slide-mode.is-sliding .slide-transition-in .slide-enter-piece {
  will-change: opacity;
}

body.slide-mode .slide-transition-in-prep .slide-enter-piece {
  opacity: 0;
  transition: none;
}

body.slide-mode .slide-transition-in .slide-enter-piece {
  opacity: 1;
  transition-delay: calc(var(--slide-enter-base, 0ms) + var(--slide-enter-delay, 0ms));
}

.slide-progress {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 54;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(179, 151, 255, 0.34);
  background: rgba(7, 10, 19, 0.88);
  backdrop-filter: blur(7px);
  transform: translate3d(-50%, 8px, 0);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 240ms ease, transform 240ms ease, visibility 240ms ease;
}

body.slide-mode .slide-progress {
  opacity: 1;
  visibility: visible;
  transform: translate3d(-50%, 0, 0);
}

.slide-progress-track {
  width: 112px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

#slide-progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(161, 126, 255, 0.94), rgba(220, 208, 255, 0.96));
  transform-origin: 0 50%;
  transform: scaleX(0.1667);
  transition: transform 180ms linear;
}

.slide-progress-label {
  font-family: "Space Mono", "Courier New", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d9e0f3;
}

.section {
  width: min(1120px, 92vw);
  margin: 0 auto;
  position: relative;
  padding: clamp(70px, 9vw, 122px) 0;
}

.hero {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0;
}

.hero-grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(270px, 0.8fr);
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
}

.hero-copy-block {
  width: 100%;
}

.eyebrow,
.section-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.72rem;
  font-weight: 700;
  color: #b996ff;
}

.hero-badges {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(185, 159, 255, 0.4);
  background: rgba(127, 73, 255, 0.1);
  padding: 5px 10px;
  font-size: 0.64rem;
  line-height: 1;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #dac6ff;
}

.hero-title {
  margin: 14px 0 0;
  font-family: "Teko", sans-serif;
  font-size: clamp(1.55rem, 4.1vw, 3.35rem);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 0.012em;
  max-width: 16ch;
}

.hero-title span {
  display: block;
}

.hero-copy {
  margin: 20px 0 0;
  max-width: 76ch;
  color: var(--muted);
  font-size: clamp(0.92rem, 1.05vw, 1.02rem);
  line-height: 1.66;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-mini-flow {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #cfd8ef;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
}

.hero-mini-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ae88ff;
  box-shadow: 0 0 0 0 rgba(174, 136, 255, 0.6);
  animation: heroDotPulse 1.8s ease-out infinite;
}

.hero-playground {
  border-radius: var(--radius);
  border: 1px solid rgba(185, 159, 255, 0.28);
  background: linear-gradient(145deg, rgba(127, 73, 255, 0.12), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
  padding: clamp(14px, 2.2vw, 22px);
  display: grid;
  gap: 12px;
}

.hero-console {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(3, 5, 10, 0.62);
  padding: 12px;
  display: grid;
  gap: 7px;
}

.hero-console p {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: "Space Mono", "Courier New", monospace;
  font-size: 0.69rem;
  color: #d8e1f3;
}

.hero-console span {
  color: #b58fff;
  letter-spacing: 0.07em;
}

.hero-console code {
  color: #e2e8f8;
  font-size: 0.69rem;
  white-space: nowrap;
}

.hero-orbit {
  position: relative;
  min-height: 142px;
  border-radius: 12px;
  border: 1px dashed rgba(193, 167, 255, 0.38);
  background: radial-gradient(circle at 50% 50%, rgba(132, 91, 241, 0.15), rgba(132, 91, 241, 0) 64%);
  overflow: hidden;
}

.hero-orbit::before {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 999px;
  border: 1px solid rgba(198, 174, 255, 0.26);
}

.orbit-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  border: 1px solid rgba(189, 161, 255, 0.55);
  background: rgba(127, 73, 255, 0.2);
  color: #e4d7ff;
  padding: 6px 11px;
  font-family: "Space Mono", "Courier New", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.orbit-node {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(201, 178, 255, 0.45);
  background: rgba(4, 7, 13, 0.8);
  color: #dbe3f4;
  padding: 4px 9px;
  font-size: 0.67rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  animation: orbitDrift 4.8s ease-in-out infinite;
}

.node-a {
  top: 15%;
  left: 10%;
  animation-delay: 0ms;
}

.node-b {
  top: 20%;
  right: 12%;
  animation-delay: 620ms;
}

.node-c {
  bottom: 12%;
  left: 16%;
  animation-delay: 1120ms;
}

.node-d {
  bottom: 16%;
  right: 15%;
  animation-delay: 1640ms;
}

#hero #hero-mini-flow-text,
#hero .hero-console p,
#hero .hero-orbit .orbit-center,
#hero .hero-orbit .orbit-node {
  transition: opacity 230ms ease, transform 260ms cubic-bezier(0.22, 1, 0.36, 1), color 260ms ease;
}

#hero .hero-playground,
#hero .hero-console,
#hero .hero-orbit,
#hero .hero-mini-dot,
#hero .hero-console span,
#hero .hero-console code {
  transition: border-color 280ms ease, background 280ms ease, color 280ms ease, box-shadow 280ms ease;
}

#hero.is-hero-mode-shifting #hero-mini-flow-text,
#hero.is-hero-mode-shifting .hero-console p,
#hero.is-hero-mode-shifting .hero-orbit .orbit-center,
#hero.is-hero-mode-shifting .hero-orbit .orbit-node {
  opacity: 0.2;
  transform: translateY(5px) scale(0.985);
}

#hero[data-hero-mode="diagnostic"] .hero-playground {
  border-color: rgba(123, 211, 255, 0.42);
  background: linear-gradient(145deg, rgba(69, 147, 255, 0.14), rgba(255, 255, 255, 0.02));
  box-shadow: 0 20px 60px rgba(20, 71, 120, 0.4);
}

#hero[data-hero-mode="diagnostic"] .hero-console {
  border-color: rgba(123, 211, 255, 0.3);
  background: rgba(3, 9, 18, 0.72);
}

#hero[data-hero-mode="diagnostic"] .hero-console span {
  color: #8ad8ff;
}

#hero[data-hero-mode="diagnostic"] .hero-console code {
  color: #ddf4ff;
}

#hero[data-hero-mode="diagnostic"] .hero-orbit {
  border-color: rgba(132, 218, 255, 0.46);
  background: radial-gradient(circle at 50% 50%, rgba(86, 180, 255, 0.18), rgba(86, 180, 255, 0) 64%);
}

#hero[data-hero-mode="diagnostic"] .orbit-center {
  border-color: rgba(148, 224, 255, 0.62);
  background: rgba(80, 173, 255, 0.2);
  color: #e4f6ff;
}

#hero[data-hero-mode="diagnostic"] .orbit-node {
  border-color: rgba(146, 223, 255, 0.5);
  color: #def2ff;
}

#hero[data-hero-mode="diagnostic"] .hero-mini-dot {
  background: #8fdcff;
  box-shadow: 0 0 0 0 rgba(143, 220, 255, 0.55);
}

#hero[data-hero-mode="exchange"] .hero-playground {
  border-color: rgba(241, 149, 255, 0.42);
  background: linear-gradient(145deg, rgba(180, 82, 255, 0.15), rgba(255, 255, 255, 0.02));
  box-shadow: 0 20px 60px rgba(84, 31, 120, 0.42);
}

#hero[data-hero-mode="exchange"] .hero-console {
  border-color: rgba(241, 149, 255, 0.28);
  background: rgba(11, 4, 18, 0.7);
}

#hero[data-hero-mode="exchange"] .hero-console span {
  color: #e6a0ff;
}

#hero[data-hero-mode="exchange"] .hero-console code {
  color: #f4ddff;
}

#hero[data-hero-mode="exchange"] .hero-orbit {
  border-color: rgba(237, 162, 255, 0.45);
  background: radial-gradient(circle at 50% 50%, rgba(198, 104, 255, 0.19), rgba(198, 104, 255, 0) 64%);
}

#hero[data-hero-mode="exchange"] .orbit-center {
  border-color: rgba(240, 181, 255, 0.64);
  background: rgba(196, 99, 255, 0.22);
  color: #ffe8ff;
}

#hero[data-hero-mode="exchange"] .orbit-node {
  border-color: rgba(240, 181, 255, 0.5);
  color: #f8e3ff;
}

#hero[data-hero-mode="exchange"] .hero-mini-dot {
  background: #e8a4ff;
  box-shadow: 0 0 0 0 rgba(232, 164, 255, 0.58);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 11px 18px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.03);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
  will-change: transform;
}

.footer {
  transition: opacity 240ms ease;
}

body.has-spotlight .top-strip,
body.has-spotlight .footer {
  opacity: 0.26;
}

.btn::after,
.cookie-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 100vmax rgba(3, 5, 11, 0.66);
  opacity: 0;
  transition: opacity 240ms ease;
  pointer-events: none;
  z-index: -1;
}

.is-spotlight-active {
  position: relative !important;
  z-index: 90 !important;
  isolation: isolate;
}

.is-spotlight-active::after {
  opacity: 1;
}

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

.btn-primary {
  border-color: rgba(185, 159, 255, 0.5);
  background: linear-gradient(120deg, #6d31f0, #9f73ff);
  box-shadow: 0 12px 30px rgba(127, 73, 255, 0.38);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
}

.section-head h2 {
  margin: 10px 0 0;
  max-width: 17ch;
  font-family: "Teko", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  line-height: 0.96;
  font-size: clamp(1.8rem, 4.4vw, 3.5rem);
}

.offers-playfield,
.evidence-playfield,
.method-playfield,
.positioning-playfield,
.cta-playfield {
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid rgba(189, 162, 255, 0.3);
  background: linear-gradient(140deg, rgba(127, 73, 255, 0.12), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
}

.offers-playfield {
  margin-top: 22px;
  padding: 14px;
  display: grid;
  gap: 12px;
}

.offers-flowline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}

.offers-flowline span {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(195, 173, 255, 0.36);
  background: rgba(8, 12, 23, 0.7);
  color: #dfe7f8;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.offers-flowline span:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -9px;
  top: 50%;
  width: 10px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(191, 161, 255, 0.2), rgba(191, 161, 255, 0.9));
  transform: translateY(-50%);
  animation: flowDash 2.6s linear infinite;
}

.offers-meters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.offers-meter {
  --meter: 0.7;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 8, 16, 0.64);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.offers-meter p {
  margin: 0;
  font-size: 0.72rem;
  color: #d7deef;
}

.offers-meter.meter-a {
  --meter: 0.82;
}

.offers-meter.meter-b {
  --meter: 0.91;
}

.offers-meter.meter-c {
  --meter: 0.76;
}

.offers-meter-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.offers-meter-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(177, 143, 255, 0.96), rgba(220, 208, 255, 0.95));
  transform-origin: 0 50%;
  transform: scaleX(var(--meter));
  animation: meterBreath 2.8s ease-in-out infinite;
}

.offers .cards,
.evidence .evidence-grid {
  margin-top: 18px;
}

.cards,
.evidence-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.evidence-playfield {
  margin-top: 22px;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(180px, 0.85fr);
  gap: 11px;
}

.evidence-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.evidence-kpi {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(5, 8, 16, 0.64);
  padding: 10px;
  display: grid;
  gap: 2px;
}

.evidence-kpi strong {
  font-family: "Teko", sans-serif;
  font-size: 1.58rem;
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: #eddfff;
}

.evidence-kpi span {
  color: #d8e0f2;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.evidence-radar {
  position: relative;
  border-radius: 12px;
  border: 1px dashed rgba(201, 178, 255, 0.35);
  background: radial-gradient(circle at 50% 50%, rgba(127, 73, 255, 0.2), rgba(127, 73, 255, 0) 70%);
  min-height: 136px;
  overflow: hidden;
}

.radar-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 999px;
  border: 1px solid rgba(211, 190, 255, 0.3);
  transform: translate(-50%, -50%);
}

.ring-a {
  width: 44px;
  height: 44px;
  animation: radarPulse 3.3s ease-out infinite;
}

.ring-b {
  width: 86px;
  height: 86px;
  animation: radarPulse 3.3s ease-out infinite 780ms;
}

.ring-c {
  width: 126px;
  height: 126px;
  animation: radarPulse 3.3s ease-out infinite 1540ms;
}

.radar-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  border: 1px solid rgba(201, 178, 255, 0.55);
  background: rgba(127, 73, 255, 0.26);
  color: #f0e5ff;
  padding: 5px 10px;
  font-family: "Space Mono", "Courier New", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.radar-tag {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(206, 186, 255, 0.42);
  background: rgba(4, 7, 14, 0.8);
  color: #d9e3f7;
  padding: 4px 8px;
  font-size: 0.64rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  animation: orbitDrift 4.6s ease-in-out infinite;
}

.tag-a {
  left: 12%;
  top: 18%;
}

.tag-b {
  right: 10%;
  top: 24%;
  animation-delay: 680ms;
}

.tag-c {
  right: 18%;
  bottom: 14%;
  animation-delay: 1320ms;
}

.card,
.evidence-card,
.step {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
}

.card {
  position: relative;
  padding: 24px;
  overflow: hidden;
  transform-style: preserve-3d;
}

.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(187, 162, 255, 0.3), transparent 45%);
  transition: opacity 240ms ease;
}

.card:hover::before {
  opacity: 1;
}

.card-tag {
  margin: 0;
  font-family: "Teko", sans-serif;
  letter-spacing: 0.07em;
  color: #bb97ff;
  font-size: 1.35rem;
}

.card h3 {
  margin: 2px 0 4px;
  text-transform: uppercase;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
}

.card-sub {
  margin: 0;
  font-size: 0.88rem;
  color: #d2daec;
}

.card ul,
.evidence-card ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.card li,
.evidence-card li {
  position: relative;
  padding-left: 16px;
  font-size: 0.84rem;
  color: #dde2f0;
}

.card li::before,
.evidence-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.56em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(160deg, #ad84ff, #7946ff);
}

.card-result {
  margin: 16px 0 0;
  font-size: 0.84rem;
  color: #c7cee2;
}

.card-result strong {
  color: #fff;
}

.evidence-card {
  padding: 24px;
}

.evidence-card h3 {
  margin: 0;
  text-transform: uppercase;
  font-size: 0.98rem;
  letter-spacing: 0.03em;
}

.timeline {
  margin-top: 34px;
  position: relative;
  display: grid;
  gap: 18px;
  padding-left: 60px;
}

.method-layout {
  margin-top: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(250px, 0.88fr);
  gap: 14px;
  align-items: stretch;
}

.method-layout .timeline {
  margin-top: 0;
}

.method-playfield {
  padding: 14px;
  display: grid;
  gap: 12px;
}

.method-play-title {
  margin: 0;
  font-size: 0.72rem;
  color: #dbccff;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.method-pings {
  display: grid;
  gap: 8px;
}

.method-pings p {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d8e0f3;
  font-size: 0.75rem;
}

.ping-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #b28eff;
  color: rgba(178, 142, 255, 0.62);
  box-shadow: 0 0 0 0 rgba(178, 142, 255, 0.62);
  animation: pingPulse 1.9s ease-out infinite;
}

.method-bars {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 34px;
}

.method-bars span {
  flex: 1;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(210, 188, 255, 0.95), rgba(127, 73, 255, 0.7));
  transform-origin: 50% 100%;
  animation: equalizer 1.7s ease-in-out infinite;
}

.method-bars span:nth-child(2) {
  animation-delay: 120ms;
}

.method-bars span:nth-child(3) {
  animation-delay: 240ms;
}

.method-bars span:nth-child(4) {
  animation-delay: 360ms;
}

.method-bars span:nth-child(5) {
  animation-delay: 480ms;
}

.method-bars span:nth-child(6) {
  animation-delay: 600ms;
}

.timeline-line {
  position: absolute;
  left: 18px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: rgba(255, 255, 255, 0.12);
}

#timeline-progress {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(to bottom, #b694ff, #7f49ff);
  box-shadow: 0 0 14px rgba(127, 73, 255, 0.7);
}

.step {
  position: relative;
  padding: 20px;
}

.step::before {
  content: "";
  position: absolute;
  left: -47px;
  top: 22px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid #bf9fff;
  background: #080a12;
  box-shadow: 0 0 12px rgba(127, 73, 255, 0.72);
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(196, 170, 255, 0.52);
  color: #d0bbff;
  font-size: 0.8rem;
  font-weight: 700;
}

.step h3 {
  margin: 10px 0 8px;
  text-transform: uppercase;
  font-size: 0.94rem;
  letter-spacing: 0.03em;
}

.step p {
  margin: 0;
  color: #c8d0e4;
  font-size: 0.87rem;
  line-height: 1.6;
}

.positioning {
  border-radius: calc(var(--radius) + 3px);
  border: 1px solid rgba(180, 152, 255, 0.34);
  background: linear-gradient(130deg, rgba(127, 73, 255, 0.22), rgba(11, 13, 20, 0.92) 52%);
  box-shadow: var(--shadow);
}

.positioning {
  padding: clamp(20px, 3.2vw, 34px);
}

.positioning .section-head h2 {
  max-width: 22ch;
  font-size: clamp(1.35rem, 2.25vw, 2.15rem);
  line-height: 0.98;
}

.positioning-stack {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.positioning-layout,
.cta-row {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(220px, 0.92fr);
  gap: 12px;
  align-items: stretch;
}

.positioning-copy,
.cta-copy-card {
  min-width: 0;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid rgba(189, 162, 255, 0.3);
  background: linear-gradient(140deg, rgba(127, 73, 255, 0.12), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
  padding: 12px;
}

.positioning blockquote {
  margin: 8px 0 0;
  padding: 0;
}

.positioning blockquote p {
  margin: 0;
  max-width: 24ch;
  font-family: "Teko", sans-serif;
  text-transform: uppercase;
  line-height: 0.97;
  letter-spacing: 0.015em;
  font-size: clamp(1.2rem, 2.65vw, 2.25rem);
}

.positioning-note {
  margin: 8px 0 0;
  color: #d2d9eb;
  font-size: clamp(0.88rem, 0.95vw, 0.98rem);
  line-height: 1.48;
}

.positioning-tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.positioning-tags span {
  border-radius: 999px;
  border: 1px solid rgba(201, 178, 255, 0.42);
  background: rgba(6, 9, 17, 0.56);
  padding: 4px 9px;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #dfe8f9;
}

.positioning-playfield {
  padding: 12px;
  display: grid;
  gap: 9px;
}

.positioning-play-title {
  margin: 0;
  font-size: 0.7rem;
  color: #d8c7ff;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 700;
}

.positioning-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.positioning-matrix span {
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(4, 7, 14, 0.66);
  min-height: 22px;
  animation: matrixBlink 4.2s ease-in-out infinite;
}

.positioning-matrix span.on {
  background: linear-gradient(140deg, rgba(186, 159, 255, 0.88), rgba(136, 93, 255, 0.78));
  border-color: rgba(218, 203, 255, 0.72);
}

.positioning-matrix span:nth-child(2) {
  animation-delay: 460ms;
}

.positioning-matrix span:nth-child(3) {
  animation-delay: 920ms;
}

.positioning-matrix span:nth-child(4) {
  animation-delay: 180ms;
}

.positioning-matrix span:nth-child(5) {
  animation-delay: 640ms;
}

.positioning-matrix span:nth-child(6) {
  animation-delay: 1080ms;
}

.positioning-matrix span:nth-child(7) {
  animation-delay: 320ms;
}

.positioning-matrix span:nth-child(8) {
  animation-delay: 820ms;
}

.positioning-matrix span:nth-child(9) {
  animation-delay: 1240ms;
}

.positioning-play-text {
  margin: 0;
  color: #d2daed;
  font-size: 0.77rem;
  line-height: 1.56;
}

.cta-copy {
  min-width: 0;
}

.cta-copy-card h2 {
  margin: 6px 0 0;
  max-width: 18ch;
  font-family: "Teko", sans-serif;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: 0.015em;
  font-size: clamp(1.2rem, 2.6vw, 2.3rem);
}

.cta-copy-card h2 + p {
  margin: 8px 0 0;
  color: #d2daec;
  font-size: 0.88rem;
  line-height: 1.45;
}

.cta-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cta-playfield {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.cta-play-status {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e0e8f9;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}

.cta-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #8fffd8;
  color: rgba(143, 255, 216, 0.65);
  box-shadow: 0 0 0 0 rgba(143, 255, 216, 0.65);
  animation: pingPulse 1.8s ease-out infinite;
}

.cta-play-slots {
  display: grid;
  gap: 6px;
}

.cta-play-slots p {
  margin: 0;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 8, 16, 0.64);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}

.cta-play-slots span {
  color: #d4dced;
  font-size: 0.72rem;
}

.cta-play-slots strong {
  color: #f0e3ff;
  font-size: 0.69rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cta-play-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 22px;
}

.cta-play-bars span {
  flex: 1;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(229, 214, 255, 0.94), rgba(151, 112, 255, 0.72));
  transform-origin: 50% 100%;
  animation: equalizer 1.65s ease-in-out infinite;
}

.cta-play-bars span:nth-child(2) {
  animation-delay: 150ms;
}

.cta-play-bars span:nth-child(3) {
  animation-delay: 300ms;
}

.cta-play-bars span:nth-child(4) {
  animation-delay: 450ms;
}

.cta-play-bars span:nth-child(5) {
  animation-delay: 600ms;
}

.cta-play-bars span:nth-child(6) {
  animation-delay: 750ms;
}

.cta-play-bars span:nth-child(7) {
  animation-delay: 900ms;
}

.footer {
  padding: 22px max(24px, 4vw) 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.footer a {
  color: #d4dcf2;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer a:hover {
  color: #ffffff;
}

body.slide-mode .footer {
  display: none;
}

.legal-page {
  background: linear-gradient(180deg, #070912 0%, #06080f 45%, #05060b 100%);
}

.legal-top {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 74px;
  padding: 10px max(14px, 3vw);
  border-bottom: 1px solid var(--line);
  background: rgba(6, 9, 18, 0.95);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-top .logo-link {
  width: 92px;
  min-width: 92px;
}

.legal-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(171, 138, 255, 0.34);
  padding: 9px 14px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d6def2;
}

.legal-home-link:hover {
  border-color: rgba(171, 138, 255, 0.58);
  color: #fff;
  background: rgba(127, 73, 255, 0.12);
}

.legal-wrap {
  width: min(940px, 92vw);
  margin: 0 auto;
  padding: clamp(44px, 7vw, 78px) 0 clamp(56px, 8vw, 92px);
  display: grid;
  gap: 14px;
}

.legal-hero {
  padding-bottom: 8px;
}

.legal-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: #b996ff;
  font-weight: 700;
}

.legal-hero h1 {
  margin: 10px 0 0;
  font-family: "Teko", sans-serif;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.015em;
  font-size: clamp(1.95rem, 5vw, 3.8rem);
}

.legal-hero p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-card {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
  padding: clamp(18px, 2.4vw, 28px);
}

.legal-card h2 {
  margin: 0 0 8px;
  font-family: "Teko", sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 0.95;
  font-size: clamp(1.45rem, 3.4vw, 2.4rem);
}

.legal-card p {
  margin: 0;
  color: #d8def0;
  font-size: 0.92rem;
  line-height: 1.62;
}

.legal-card p + p {
  margin-top: 8px;
}

.legal-card a {
  color: #d7c0ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner[hidden],
.cookie-manage-btn[hidden] {
  display: none !important;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 130;
  width: min(860px, calc(100vw - 32px));
  margin: 0 auto;
  border-radius: 16px;
  border: 1px solid rgba(185, 159, 255, 0.38);
  background: rgba(8, 12, 23, 0.96);
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(9px);
  padding: 16px;
}

.cookie-title {
  margin: 0;
  font-family: "Teko", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 0.95;
  font-size: clamp(1.2rem, 2.2vw, 2rem);
}

.cookie-text {
  margin: 8px 0 0;
  color: #d2daec;
  font-size: 0.88rem;
  line-height: 1.55;
}

.cookie-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 9px 14px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
}

.cookie-btn:hover {
  border-color: rgba(255, 255, 255, 0.38);
}

.cookie-btn-primary {
  border-color: rgba(185, 159, 255, 0.5);
  background: linear-gradient(120deg, #6d31f0, #9f73ff);
  box-shadow: 0 8px 20px rgba(127, 73, 255, 0.28);
}

.cookie-btn-primary:hover {
  border-color: rgba(203, 180, 255, 0.7);
}

.cookie-customize {
  margin-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 12px;
  display: grid;
  gap: 8px;
}

.cookie-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.cookie-choice-title {
  margin: 0;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.cookie-choice-text {
  margin: 3px 0 0;
  color: #c7d0e6;
  font-size: 0.77rem;
}

.cookie-choice input[type="checkbox"] {
  width: 42px;
  height: 22px;
  accent-color: #8f59ff;
}

.cookie-badge {
  border: 1px solid rgba(187, 162, 255, 0.55);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.67rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d9c8ff;
}

.cookie-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.78rem;
  color: #d6c0ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-manage-btn {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 125;
  border-radius: 999px;
  border: 1px solid rgba(185, 159, 255, 0.42);
  background: rgba(9, 12, 22, 0.92);
  color: #dae2f5;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 12px;
  cursor: pointer;
}

.cookie-manage-btn:hover {
  color: #fff;
  border-color: rgba(185, 159, 255, 0.7);
}

.reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  filter: blur(7px);
  transition: opacity 680ms ease, transform 680ms cubic-bezier(0.22, 1, 0.36, 1), filter 680ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

::selection {
  background: rgba(127, 73, 255, 0.42);
  color: #fff;
}

@keyframes introLogoIn {
  from {
    opacity: 0;
    transform: scale(0.72);
    filter: brightness(0) invert(1) blur(12px) drop-shadow(0 0 36px rgba(128, 82, 255, 0.45));
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: brightness(0) invert(1) blur(0) drop-shadow(0 0 20px rgba(128, 82, 255, 0.45));
  }
}

@keyframes burstLine {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(calc(var(--i) * 15deg)) scaleY(0.04);
  }
  28% {
    opacity: 0.98;
    transform: translate(-50%, -50%) rotate(calc(var(--i) * 15deg)) scaleY(0.86);
  }
  56% {
    opacity: 0.82;
    transform: translate(-50%, -50%) rotate(calc(var(--i) * 15deg)) scaleY(1.24);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(calc(var(--i) * 15deg)) scaleY(1.42);
  }
}

@keyframes introShockwave {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.22);
  }
  24% {
    opacity: 0.88;
    transform: translate(-50%, -50%) scale(0.42);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.48);
  }
}

@keyframes introFlash {
  0% {
    opacity: 0;
  }
  20% {
    opacity: 0.96;
  }
  56% {
    opacity: 0.34;
  }
  100% {
    opacity: 0;
  }
}

@keyframes heroDotPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(174, 136, 255, 0.55);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(174, 136, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(174, 136, 255, 0);
  }
}

@keyframes orbitDrift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -4px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes slideLineDrift {
  0% {
    background-position: 0 0, 0 calc(var(--line-warp) - 8px), 0 calc(var(--line-warp) * -0.55 + 10px);
  }
  50% {
    background-position: 0 0, 0 calc(var(--line-warp) + 10px), 0 calc(var(--line-warp) * -0.55 - 14px);
  }
  100% {
    background-position: 0 0, 0 calc(var(--line-warp) - 8px), 0 calc(var(--line-warp) * -0.55 + 10px);
  }
}

@keyframes flowDash {
  0% {
    opacity: 0.25;
    transform: translateY(-50%) scaleX(0.4);
  }
  50% {
    opacity: 1;
    transform: translateY(-50%) scaleX(1);
  }
  100% {
    opacity: 0.25;
    transform: translateY(-50%) scaleX(0.4);
  }
}

@keyframes meterBreath {
  0%,
  100% {
    opacity: 0.78;
  }
  50% {
    opacity: 1;
  }
}

@keyframes radarPulse {
  0% {
    opacity: 0.18;
    transform: translate(-50%, -50%) scale(0.78);
  }
  48% {
    opacity: 0.56;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.2);
  }
}

@keyframes pingPulse {
  0% {
    box-shadow: 0 0 0 0 currentColor;
    opacity: 0.92;
  }
  75% {
    box-shadow: 0 0 0 10px transparent;
    opacity: 1;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
    opacity: 0.92;
  }
}

@keyframes equalizer {
  0%,
  100% {
    transform: scaleY(0.36);
    opacity: 0.72;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes matrixBlink {
  0%,
  100% {
    opacity: 0.56;
    filter: brightness(0.86);
  }
  50% {
    opacity: 1;
    filter: brightness(1.16);
  }
}

@media (max-width: 1260px) {
  .top-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1080px) {
  .slide-progress {
    display: none;
  }

  body.slide-mode {
    overflow-y: auto;
  }

  body.slide-mode .site-main {
    position: relative;
    top: 0;
    left: 0;
    right: auto;
    bottom: auto;
    display: block;
    width: auto;
    min-width: 0;
    transform: none !important;
    transition: none;
  }

  body.slide-mode .site-main > .section {
    position: relative;
    inset: auto;
    width: min(1120px, 90vw);
    max-width: none;
    min-height: auto;
    margin: 0 auto;
    border-left: 0;
    overflow: visible;
    padding: clamp(70px, 9vw, 122px) 0;
    opacity: 1;
    transform: none !important;
    pointer-events: auto;
    z-index: auto;
    transition: none;
  }

  body.slide-mode .site-main > .section + .section {
    border-left: 0;
  }

  :root {
    --header-h: 132px;
  }

  .top-strip {
    grid-template-columns: 1fr;
  }

  .strip-left {
    border-right: 0;
    border-bottom: 0;
  }

  .section {
    width: min(1120px, 90vw);
  }

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

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero-playground {
    max-width: 560px;
  }

  .evidence-playfield,
  .method-layout,
  .positioning-layout,
  .cta-row {
    grid-template-columns: 1fr;
  }

  .offers-playfield,
  .evidence-playfield,
  .method-playfield,
  .positioning-playfield,
  .cta-playfield {
    max-width: 640px;
  }

  .cards,
  .evidence-grid {
    grid-template-columns: 1fr;
  }

  .section-head h2 {
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 78px;
  }

  .top-strip {
    grid-template-columns: 1fr;
    min-height: var(--header-h);
  }

  .strip-left {
    min-height: var(--header-h);
    justify-content: flex-start;
    gap: 12px;
    padding-inline: 12px;
    border-right: 0;
    border-bottom: 0;
  }

  .logo-link {
    width: 90px;
    min-width: 90px;
  }

  .glyph-block {
    display: none;
  }

  .top-email {
    display: none;
  }

  .mobile-menu-toggle {
    display: none;
  }

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

  .offers-flowline span::after {
    display: none;
  }

  .offers-meters,
  .evidence-kpis {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 72px;
  }

  .strip-left {
    gap: 10px;
    padding-inline: 10px;
  }

  .logo-link {
    width: 84px;
    min-width: 84px;
  }

  .strip-nav a {
    font-size: 0.72rem;
  }

  .hero {
    padding-top: 16px;
  }

  .hero-title {
    font-size: clamp(1.4rem, 7.2vw, 2.5rem);
    max-width: 100%;
  }

  .hero-badges span {
    font-size: 0.61rem;
  }

  .hero-playground {
    padding: 12px;
  }

  .hero-console p,
  .hero-console code {
    font-size: 0.65rem;
  }

  .offers-playfield,
  .evidence-playfield,
  .method-playfield,
  .positioning-playfield,
  .cta-playfield {
    padding: 12px;
  }

  .timeline {
    padding-left: 48px;
  }

  .timeline-line {
    left: 14px;
  }

  .step::before {
    left: -39px;
  }
}

@media (max-width: 520px) {
  .hero-actions,
  .cta-actions {
    width: 100%;
    display: grid;
  }

  .hero-actions .btn,
  .cta-actions .btn {
    width: 100%;
  }

  .offers-flowline {
    grid-template-columns: 1fr;
  }

  .card,
  .evidence-card,
  .step {
    padding: 18px;
  }

  .hero-orbit {
    min-height: 126px;
  }

  .node-b,
  .node-d {
    display: none;
  }

  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
    padding: 12px;
  }

  .cookie-actions .cookie-btn {
    width: 100%;
    justify-content: center;
  }

  .cookie-choice {
    align-items: flex-start;
    flex-direction: column;
  }

  .cookie-manage-btn {
    left: 10px;
    bottom: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

body[data-page-mode="multi"] .site-header {
  position: sticky;
  top: 0;
  z-index: 45;
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  padding: 0 clamp(14px, 2.2vw, 24px);
  background: rgba(6, 9, 18, 0.9);
  backdrop-filter: blur(14px);
}

body[data-page-mode="multi"] .site-header .strip-left,
body[data-page-mode="multi"] .site-header .header-right {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
}

body[data-page-mode="multi"] .site-header .strip-left {
  gap: 14px;
  padding: 0;
}

body[data-page-mode="multi"] .site-header .logo-link {
  width: 116px;
  min-width: 116px;
}

body[data-page-mode="multi"] .site-header .glyph-block {
  max-width: 280px;
}

body[data-page-mode="multi"] .desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--header-h);
  padding-inline: 8px;
}

body[data-page-mode="multi"] .site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #c7cde0;
  font-size: 0.79rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  text-transform: uppercase;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

body[data-page-mode="multi"] .site-nav a:hover,
body[data-page-mode="multi"] .site-nav a:focus-visible,
body[data-page-mode="multi"] .site-nav a.is-active,
body[data-page-mode="multi"] .site-nav a[aria-current="page"] {
  color: #fff;
  border-color: rgba(171, 138, 255, 0.42);
  background: rgba(127, 73, 255, 0.1);
  outline: none;
}

body[data-page-mode="multi"] .site-header .header-right {
  justify-self: end;
  gap: 14px;
}

body[data-page-mode="multi"] .site-header .top-email {
  position: static;
  top: auto;
  right: auto;
  transform: none;
  white-space: nowrap;
}

body[data-page-mode="multi"] .mobile-menu-toggle {
  display: none;
  margin-left: 0;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(174, 140, 255, 0.24);
  background: rgba(255, 255, 255, 0.03);
}

body[data-page-mode="multi"] .mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 132;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 240ms ease, visibility 240ms ease;
  background: rgba(4, 6, 12, 0.82);
  backdrop-filter: blur(18px);
}

body[data-page-mode="multi"] .mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.mobile-nav-open {
  overflow: hidden;
}

body[data-page-mode="multi"] .mobile-nav-panel {
  min-height: 100vh;
  padding: calc(var(--header-h) + 26px) clamp(18px, 7vw, 34px) 34px;
  display: grid;
  align-content: start;
  gap: 24px;
  background:
    radial-gradient(circle at 20% 18%, rgba(127, 73, 255, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(8, 11, 20, 0.98), rgba(5, 7, 13, 0.98));
}

body[data-page-mode="multi"] .mobile-nav-kicker {
  margin: 0;
  font-family: "Space Mono", "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b996ff;
}

body[data-page-mode="multi"] .mobile-nav-links {
  display: grid;
  gap: 10px;
}

body[data-page-mode="multi"] .mobile-nav-links a {
  justify-content: flex-start;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-family: "Teko", sans-serif;
  font-size: clamp(2.15rem, 12vw, 3.4rem);
  line-height: 0.96;
  letter-spacing: 0.03em;
}

body[data-page-mode="multi"] .mobile-nav-links a:hover,
body[data-page-mode="multi"] .mobile-nav-links a:focus-visible,
body[data-page-mode="multi"] .mobile-nav-links a.is-active,
body[data-page-mode="multi"] .mobile-nav-links a[aria-current="page"] {
  border: 0;
  background: transparent;
  color: #fff;
}

body[data-page-mode="multi"] .mobile-nav-meta {
  display: grid;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body[data-page-mode="multi"] .mobile-nav-email {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-family: "Space Mono", "Courier New", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: #ecf2ff;
}

body[data-page-mode="multi"] .mobile-nav-meta p {
  margin: 0;
  max-width: 28ch;
  color: #a9b4cb;
  font-size: 0.92rem;
  line-height: 1.6;
}

body[data-page-mode="multi"] .mobile-nav-cookie-btn {
  width: fit-content;
  border-radius: 999px;
  border: 1px solid rgba(185, 159, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
  color: #edf2ff;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 14px;
  cursor: pointer;
}

body[data-page-mode="multi"] .mobile-nav-cookie-btn:hover,
body[data-page-mode="multi"] .mobile-nav-cookie-btn:focus-visible {
  border-color: rgba(185, 159, 255, 0.56);
  background: rgba(127, 73, 255, 0.08);
  outline: none;
}

body[data-page-mode="multi"] .page-shell {
  padding-bottom: 44px;
}

body[data-page-mode="multi"] .page-hero {
  min-height: min(78vh, 760px);
  display: flex;
  align-items: flex-end;
  padding-top: clamp(56px, 8vw, 90px);
}

body[data-page-mode="multi"] .page-hero-grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: end;
}

body[data-page-mode="multi"] .page-title {
  margin: 12px 0 0;
  max-width: 12ch;
  font-family: "Teko", sans-serif;
  font-size: clamp(2.1rem, 6vw, 4.9rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

body[data-page-mode="multi"] .page-intro {
  margin: 18px 0 0;
  max-width: 65ch;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.1vw, 1.04rem);
  line-height: 1.68;
}

body[data-page-mode="multi"] .page-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

body[data-page="about"] .about-hero {
  min-height: auto;
  align-items: flex-start;
  padding-top: clamp(16px, 2.4vw, 30px);
  padding-bottom: clamp(4px, 1vw, 12px);
}

body[data-page="about"] .about-hero-shell {
  width: min(100%, 880px);
  display: grid;
  gap: 18px;
}

body[data-page="about"] .about-bio-section {
  padding-top: clamp(18px, 4vw, 42px);
}

body[data-page="about"] .about-bio-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.94fr) minmax(0, 1.06fr);
  gap: clamp(18px, 3vw, 30px);
  align-items: center;
}

body[data-page="about"] .about-bio-grid-intro {
  grid-template-columns: 1fr;
  justify-items: center;
}

body[data-page="about"] .about-bio-media {
  margin: 0;
  overflow: hidden;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--surface-border-accent);
  background: var(--surface-gradient-accent);
  box-shadow: var(--shadow);
}

body[data-page="about"] .about-bio-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

body[data-page="about"] .about-bio-grid-intro .about-bio-media {
  width: min(100%, 460px);
}

body[data-page="about"] .about-bio-copy {
  display: grid;
  gap: 14px;
  padding: clamp(20px, 2.8vw, 28px);
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--surface-border-accent);
  background: var(--surface-gradient-accent);
  box-shadow: var(--shadow);
}

body[data-page="about"] .about-bio-copy h2,
body[data-page="about"] .about-bio-copy p {
  margin: 0;
}

body[data-page="about"] .about-bio-copy h2 {
  font-family: "Teko", sans-serif;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 0.96;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

body[data-page="about"] .about-bio-copy p:not(.section-kicker) {
  color: var(--muted);
  font-size: clamp(0.95rem, 1.05vw, 1.02rem);
  line-height: 1.72;
}

body[data-page="about"] .about-bio-copy-intro {
  width: min(100%, 820px);
  justify-items: center;
  text-align: center;
}

body[data-page="about"] .about-bio-copy-intro .chip-list {
  justify-content: center;
}

body[data-page-mode="multi"] .page-side-card,
body[data-page-mode="multi"] .content-panel,
body[data-page-mode="multi"] .contact-panel,
body[data-page-mode="multi"] .feature-card,
body[data-page-mode="multi"] .page-cta-band {
  border-radius: var(--radius);
  border: 1px solid rgba(185, 159, 255, 0.24);
  background: linear-gradient(145deg, rgba(127, 73, 255, 0.12), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow);
}

body[data-page-mode="multi"] .page-side-card,
body[data-page-mode="multi"] .content-panel,
body[data-page-mode="multi"] .contact-panel,
body[data-page-mode="multi"] .feature-card {
  padding: 22px;
}

body[data-page-mode="multi"] .page-side-card {
  display: grid;
  gap: 14px;
}

body[data-page-mode="multi"] .page-side-card p,
body[data-page-mode="multi"] .content-panel p,
body[data-page-mode="multi"] .feature-card p,
body[data-page-mode="multi"] .contact-panel p {
  margin: 0;
}

body[data-page-mode="multi"] .page-side-card h3,
body[data-page-mode="multi"] .content-panel h3,
body[data-page-mode="multi"] .feature-card h3,
body[data-page-mode="multi"] .contact-panel h3 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.96rem;
}

body[data-page-mode="multi"] .page-side-list,
body[data-page-mode="multi"] .mini-list,
body[data-page-mode="multi"] .contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

body[data-page-mode="multi"] .page-side-list li,
body[data-page-mode="multi"] .mini-list li,
body[data-page-mode="multi"] .contact-list li {
  position: relative;
  padding-left: 15px;
  color: #d9e0f2;
  font-size: 0.88rem;
  line-height: 1.58;
}

body[data-page-mode="multi"] .page-side-list li::before,
body[data-page-mode="multi"] .mini-list li::before,
body[data-page-mode="multi"] .contact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, #c9b0ff, #7f49ff);
}

body[data-page-mode="multi"] .content-grid,
body[data-page-mode="multi"] .feature-grid,
body[data-page-mode="multi"] .contact-grid,
body[data-page-mode="multi"] .page-link-grid {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}

body[data-page-mode="multi"] .content-grid,
body[data-page-mode="multi"] .contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-page-mode="multi"] .feature-grid,
body[data-page-mode="multi"] .page-link-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[data-page-mode="multi"] .feature-card {
  position: relative;
  overflow: hidden;
}

body[data-page-mode="multi"] .feature-card::before {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(150, 117, 246, 0.18), rgba(150, 117, 246, 0));
  pointer-events: none;
}

body[data-page-mode="multi"] .feature-card .card-tag,
body[data-page-mode="multi"] .content-panel .card-tag {
  margin-bottom: 6px;
}

body[data-page-mode="multi"] .panel-note {
  margin-top: 10px;
  color: #aeb9d2;
  font-size: 0.84rem;
  line-height: 1.55;
}

body[data-page-mode="multi"] .chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body[data-page-mode="multi"] .chip-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(195, 173, 255, 0.36);
  background: rgba(8, 12, 23, 0.58);
  color: #dfe7f8;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-page-mode="multi"] .hero-home {
  padding-top: 26px;
}

body[data-page-mode="multi"] .page-link-grid a {
  display: grid;
  gap: 12px;
  min-height: 100%;
}

body[data-page-mode="multi"] .page-link-grid h3 {
  margin: 0;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

body[data-page-mode="multi"] .page-link-grid p {
  margin: 0;
  color: #c7d0e4;
  font-size: 0.9rem;
  line-height: 1.62;
}

body[data-page-mode="multi"] .inline-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f0e5ff;
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body[data-page-mode="multi"] .page-cta-band {
  margin-top: 28px;
  padding: clamp(24px, 3vw, 30px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

body[data-page-mode="multi"] .page-cta-band h2 {
  margin: 6px 0 0;
  max-width: 15ch;
  font-family: "Teko", sans-serif;
  font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 0.95;
  text-transform: uppercase;
}

body[data-page-mode="multi"] .page-cta-band p {
  margin: 0;
  color: #d2daec;
}

body[data-page-mode="multi"] .project-card .card-result,
body[data-page-mode="multi"] .contact-panel .panel-note {
  margin-top: 14px;
}

body[data-page-mode="multi"] .contact-panel .btn,
body[data-page-mode="multi"] .page-cta-band .btn {
  width: fit-content;
}

body[data-page-mode="multi"] .contact-grid .cta-playfield,
body[data-page-mode="multi"] .content-grid .positioning-playfield,
body[data-page-mode="multi"] .content-grid .method-playfield {
  margin-top: 0;
}

body[data-page-mode="multi"] .footer-rich {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

body[data-page-mode="multi"] .footer-nav {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

body[data-page-mode="multi"] .footer-nav a {
  text-decoration: none;
}

body[data-page-mode="multi"] .footer-nav a:hover,
body[data-page-mode="multi"] .footer-nav a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 1180px) {
  body[data-page-mode="multi"] .site-header {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
  }

  body[data-page-mode="multi"] .desktop-nav {
    gap: 2px;
  }

  body[data-page-mode="multi"] .site-nav a {
    min-height: 38px;
    padding-inline: 11px;
    font-size: 0.74rem;
  }

  body[data-page-mode="multi"] .page-hero-grid,
  body[data-page-mode="multi"] .feature-grid,
  body[data-page-mode="multi"] .page-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body[data-page-mode="multi"] .site-header {
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding-inline: 12px;
  }

  body[data-page-mode="multi"] .site-header .strip-left,
  body[data-page-mode="multi"] .site-header .header-right {
    min-height: var(--header-h);
  }

  body[data-page-mode="multi"] .site-header .glyph-block,
  body[data-page-mode="multi"] .desktop-nav,
  body[data-page-mode="multi"] .site-header .top-email {
    display: none;
  }

  body[data-page-mode="multi"] .site-header .logo-link {
    width: 104px;
    min-width: 104px;
  }

  body[data-page-mode="multi"] .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body[data-page-mode="multi"] .page-hero,
  body[data-page-mode="multi"] .hero {
    min-height: auto;
    padding-top: 28px;
  }

  body[data-page-mode="multi"] .page-hero-grid,
  body[data-page-mode="multi"] .content-grid,
  body[data-page-mode="multi"] .feature-grid,
  body[data-page-mode="multi"] .contact-grid,
  body[data-page-mode="multi"] .page-link-grid,
  body[data-page-mode="multi"] .footer-rich,
  body[data-page-mode="multi"] .page-cta-band {
    grid-template-columns: 1fr;
  }

  body[data-page-mode="multi"] .page-title {
    max-width: 100%;
  }

  body[data-page-mode="multi"] .page-side-card,
  body[data-page-mode="multi"] .content-panel,
  body[data-page-mode="multi"] .contact-panel,
  body[data-page-mode="multi"] .feature-card,
  body[data-page-mode="multi"] .page-cta-band {
    padding: 18px;
  }

  body[data-page-mode="multi"] .footer-rich {
    justify-items: start;
  }

  body[data-page-mode="multi"] .footer-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  body[data-page-mode="multi"] .site-header .logo-link {
    width: 96px;
    min-width: 96px;
  }

  body[data-page-mode="multi"] .page-title {
    font-size: clamp(1.85rem, 11vw, 3.2rem);
  }

  body[data-page-mode="multi"] .page-actions,
  body[data-page-mode="multi"] .page-cta-band .cta-actions {
    display: grid;
    width: 100%;
  }

  body[data-page-mode="multi"] .page-actions .btn,
  body[data-page-mode="multi"] .page-cta-band .btn,
  body[data-page-mode="multi"] .contact-panel .btn {
    width: 100%;
  }

  body[data-page-mode="multi"] .mobile-nav-panel {
    padding-inline: 18px;
  }
}

:root {
  --page-bg: #000000;
  --page-bg-solid: #000000;
  --header-bg-solid: rgba(0, 0, 0, 0.92);
  --surface-gradient: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  --surface-gradient-accent: linear-gradient(145deg, rgba(127, 73, 255, 0.12), rgba(255, 255, 255, 0.03));
  --surface-subtle: rgba(5, 8, 16, 0.64);
  --surface-orbit: rgba(4, 7, 13, 0.8);
  --surface-border: rgba(255, 255, 255, 0.14);
  --surface-border-soft: rgba(255, 255, 255, 0.12);
  --surface-border-accent: rgba(189, 162, 255, 0.3);
  --pill-bg: rgba(8, 12, 23, 0.7);
  --pill-border: rgba(195, 173, 255, 0.36);
  --console-label: #b58fff;
  --console-code: #e2e8f8;
  --logo-filter: brightness(0) invert(1);
  --theme-toggle-bg: rgba(255, 255, 255, 0.04);
  --spotlight-mask: rgba(3, 5, 11, 0.66);
}

:root[data-theme="light"] {
  --bg: #fafafc;
  --bg-2: #f2effa;
  --text: #171a24;
  --muted: #5e667a;
  --line: rgba(23, 26, 36, 0.12);
  --shadow: 0 18px 44px rgba(67, 43, 124, 0.08);
  --page-bg: linear-gradient(180deg, #ffffff 0%, #f6f3ff 38%, #ffffff 100%);
  --page-bg-solid: #ffffff;
  --header-bg-solid: rgba(255, 255, 255, 0.9);
  --surface-gradient: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 244, 255, 0.94));
  --surface-gradient-accent: linear-gradient(145deg, rgba(247, 242, 255, 0.96), rgba(255, 255, 255, 0.98));
  --surface-subtle: rgba(255, 255, 255, 0.96);
  --surface-orbit: rgba(255, 255, 255, 0.92);
  --surface-border: rgba(90, 66, 161, 0.16);
  --surface-border-soft: rgba(61, 45, 117, 0.14);
  --surface-border-accent: rgba(108, 84, 190, 0.18);
  --pill-bg: rgba(255, 255, 255, 0.94);
  --pill-border: rgba(96, 70, 182, 0.18);
  --console-label: #7047de;
  --console-code: #1b2130;
  --logo-filter: none;
  --theme-toggle-bg: rgba(109, 87, 184, 0.08);
  --spotlight-mask: rgba(250, 250, 252, 0.8);
}

body {
  color: var(--text);
  background: var(--page-bg);
  transition: background 220ms ease, color 220ms ease;
}

.top-strip,
.legal-top {
  background: var(--header-bg-solid);
  border-bottom-color: var(--line);
}

.logo-link img,
.legal-top .logo-link img {
  filter: var(--logo-filter);
}

.hero-playground,
.offers-playfield,
.evidence-playfield,
.method-playfield,
.positioning-playfield,
.cta-playfield,
.positioning-copy,
.cta-copy-card,
body[data-page-mode="multi"] .page-side-card,
body[data-page-mode="multi"] .page-cta-band,
body[data-page-mode="multi"] .feature-card,
body[data-page-mode="multi"] .contact-panel,
body[data-page-mode="multi"] .content-panel {
  background: var(--surface-gradient-accent);
  border-color: var(--surface-border-accent);
  box-shadow: var(--shadow);
}

.card,
.evidence-card,
.step,
.positioning,
body[data-page-mode="multi"] .page-side-card,
body[data-page-mode="multi"] .page-cta-band,
body[data-page-mode="multi"] .feature-card,
body[data-page-mode="multi"] .contact-panel,
body[data-page-mode="multi"] .content-panel {
  background: var(--surface-gradient);
  border-color: var(--surface-border);
  box-shadow: var(--shadow);
}

.offers-meter,
.evidence-kpi,
.hero-console,
.cta-play-slots p,
.positioning-matrix span,
body[data-page-mode="multi"] .mobile-menu-toggle,
.theme-toggle,
.legal-home-link,
.offers-flowline span,
.positioning-tags span,
body[data-page-mode="multi"] .chip-list span {
  background: var(--surface-subtle);
  border-color: var(--surface-border-soft);
}

.hero-orbit,
.evidence-radar {
  background: radial-gradient(circle at 50% 50%, rgba(127, 73, 255, 0.12), rgba(127, 73, 255, 0) 70%);
  border-color: var(--surface-border-accent);
}

.orbit-node,
.radar-tag {
  background: var(--pill-bg);
  border-color: var(--pill-border);
  color: var(--text);
}

.hero-console p,
.hero-console code,
.hero-mini-flow,
.method-pings p,
.positioning-play-text,
.cta-play-status,
.cta-play-slots span,
.cta-play-slots strong,
.evidence-kpi span,
.evidence-card li,
.card li,
body[data-page-mode="multi"] .mini-list li,
body[data-page-mode="multi"] .contact-list li,
body[data-page-mode="multi"] .page-side-list li,
body[data-page-mode="multi"] .mobile-nav-meta p {
  color: var(--text);
}

.hero-console span {
  color: var(--console-label);
}

.hero-console code {
  color: var(--console-code);
}

.hero-copy,
.card-sub,
.card-result,
.step p,
.positioning-note,
.cta-copy-card h2 + p,
body[data-page-mode="multi"] .page-intro,
body[data-page-mode="multi"] .panel-note,
body[data-page-mode="multi"] .feature-card p,
body[data-page-mode="multi"] .content-panel p,
body[data-page-mode="multi"] .contact-panel p,
body[data-page-mode="multi"] .page-link-grid p,
.footer p,
.top-email,
.legal-home-link {
  color: var(--muted);
}

.hero-badges span,
.positioning-tags span,
body[data-page-mode="multi"] .chip-list span,
.offers-flowline span,
body[data-page-mode="multi"] .site-nav a {
  color: var(--text);
}

.btn::after,
.cookie-btn::after {
  box-shadow: 0 0 0 100vmax var(--spotlight-mask);
}

:root[data-theme="light"] .btn {
  color: var(--text);
  border-color: rgba(90, 66, 161, 0.18);
  background: rgba(109, 87, 184, 0.04);
}

:root[data-theme="light"] .btn,
:root[data-theme="light"] .btn-primary,
:root[data-theme="light"] .btn-ghost,
:root[data-theme="light"] .cookie-btn,
:root[data-theme="light"] .cookie-btn-primary {
  color: #000 !important;
}

:root[data-theme="light"] .btn-ghost:hover {
  background: rgba(109, 87, 184, 0.08);
}

:root[data-theme="light"] .btn-primary {
  box-shadow: 0 12px 30px rgba(127, 73, 255, 0.22);
}

:root[data-theme="light"] .card-result strong,
:root[data-theme="light"] .footer a,
:root[data-theme="light"] .top-email:hover,
:root[data-theme="light"] .top-email:focus-visible {
  color: var(--text);
}

:root[data-theme="light"] .footer a:hover,
:root[data-theme="light"] .legal-home-link:hover {
  color: var(--violet);
}

:root[data-theme="light"] .site-nav a:hover,
:root[data-theme="light"] .site-nav a:focus-visible,
:root[data-theme="light"] .site-nav a.is-active,
:root[data-theme="light"] .site-nav a[aria-current="page"] {
  background: rgba(127, 73, 255, 0.08);
  border-color: rgba(127, 73, 255, 0.18);
}

:root[data-theme="light"] #intro {
  background: #ffffff;
}

:root[data-theme="light"] .intro-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f6f3ff 55%, #f3efff 100%);
}

:root[data-theme="light"] .panel-left,
:root[data-theme="light"] .panel-right {
  border-color: rgba(127, 73, 255, 0.14);
}

:root[data-theme="light"] .intro-logo {
  filter: none drop-shadow(0 0 26px rgba(127, 73, 255, 0.18));
}

:root[data-theme="light"] .intro-burst::before {
  border-color: rgba(127, 73, 255, 0.26);
  filter: blur(0.4px) drop-shadow(0 0 16px rgba(127, 73, 255, 0.18));
}

:root[data-theme="light"] .intro-burst span {
  background: linear-gradient(
    180deg,
    rgba(127, 73, 255, 0),
    rgba(127, 73, 255, 0.42),
    rgba(127, 73, 255, 0.25),
    rgba(127, 73, 255, 0)
  );
}

:root[data-theme="light"] #intro::after {
  background: radial-gradient(circle at 50% 50%, rgba(127, 73, 255, 0.16), rgba(127, 73, 255, 0) 48%);
}

body[data-page-mode="multi"] {
  --header-h: 88px;
  --desktop-progress: 0;
}

body[data-page-mode="multi"] .site-header {
  background: var(--header-bg-solid);
}

body[data-page-mode="multi"] .site-header .strip-left {
  gap: 0;
}

body[data-page-mode="multi"] .site-header .logo-link {
  width: 108px;
  min-width: 108px;
}

body[data-page-mode="multi"] .header-right {
  gap: 10px;
}

.mobile-menu-toggle span {
  background: var(--text);
}

.theme-toggle {
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--surface-border-soft);
  background: var(--theme-toggle-bg);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(127, 73, 255, 0.28);
  box-shadow: 0 0 0 3px rgba(127, 73, 255, 0.12);
  outline: none;
}

.theme-toggle-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: opacity 180ms ease, transform 180ms ease;
}

.theme-toggle-icon svg {
  width: 18px;
  height: 18px;
}

:root[data-theme="dark"] body[data-page-mode="multi"] .theme-icon-sun,
:root[data-theme="dark"] .legal-top .theme-icon-sun {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

:root[data-theme="dark"] body[data-page-mode="multi"] .theme-icon-moon,
:root[data-theme="dark"] .legal-top .theme-icon-moon {
  opacity: 0;
  transform: scale(0.7) rotate(-18deg);
}

:root[data-theme="light"] body[data-page-mode="multi"] .theme-icon-sun,
:root[data-theme="light"] .legal-top .theme-icon-sun {
  opacity: 0;
  transform: scale(0.7) rotate(18deg);
}

:root[data-theme="light"] body[data-page-mode="multi"] .theme-icon-moon,
:root[data-theme="light"] .legal-top .theme-icon-moon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.legal-top-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

:root[data-theme="light"] .legal-home-link {
  background: rgba(109, 87, 184, 0.04);
}

:root[data-theme="light"] body[data-page-mode="multi"] .mobile-nav {
  background: rgba(255, 255, 255, 0.82);
}

:root[data-theme="light"] body[data-page-mode="multi"] .mobile-nav-panel {
  background:
    radial-gradient(circle at 20% 18%, rgba(127, 73, 255, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 243, 255, 0.98));
}

body[data-page-mode="multi"] .mobile-nav-links a:hover,
body[data-page-mode="multi"] .mobile-nav-links a:focus-visible,
body[data-page-mode="multi"] .mobile-nav-links a.is-active,
body[data-page-mode="multi"] .mobile-nav-links a[aria-current="page"] {
  background: transparent;
  border: 0;
}

@media (min-width: 901px) {
  body[data-page-mode="multi"] .site-header {
    position: sticky;
    top: calc(14px - (4px * var(--desktop-progress)));
    width: min(1260px, calc(100vw - (42px + (136px * var(--desktop-progress)))));
    min-height: calc(88px - (10px * var(--desktop-progress)));
    margin: 14px auto 0;
    padding-inline: calc(18px - (4px * var(--desktop-progress)));
    border: 1px solid rgba(214, 201, 255, calc(0.06 + (0.035 * var(--desktop-progress))));
    border-radius: calc(28px + (16px * var(--desktop-progress)));
    background:
      radial-gradient(circle at 14% 50%, rgba(127, 73, 255, calc(0.024 + (0.026 * var(--desktop-progress)))), transparent 26%),
      linear-gradient(
        180deg,
        rgba(255, 255, 255, calc(0.016 + (0.016 * var(--desktop-progress)))),
        rgba(255, 255, 255, calc(0.002 + (0.007 * var(--desktop-progress))))
      ),
      rgba(6, 9, 18, calc(0.56 - (0.22 * var(--desktop-progress))));
    backdrop-filter: blur(calc(24px + (14px * var(--desktop-progress)))) saturate(calc(1.08 + (0.08 * var(--desktop-progress))));
    -webkit-backdrop-filter: blur(calc(24px + (14px * var(--desktop-progress)))) saturate(calc(1.08 + (0.08 * var(--desktop-progress))));
    overflow: hidden;
    isolation: isolate;
    box-shadow:
      0 calc(14px + (8px * var(--desktop-progress))) calc(34px + (16px * var(--desktop-progress))) rgba(1, 3, 10, calc(0.08 + (0.05 * var(--desktop-progress)))),
      inset 0 1px 0 rgba(255, 255, 255, calc(0.018 + (0.02 * var(--desktop-progress)))),
      inset 0 -1px 0 rgba(255, 255, 255, calc(0.008 + (0.012 * var(--desktop-progress))));
    transition:
      background 280ms cubic-bezier(0.22, 1, 0.36, 1),
      border-color 280ms cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 280ms cubic-bezier(0.22, 1, 0.36, 1),
      backdrop-filter 280ms cubic-bezier(0.22, 1, 0.36, 1),
      -webkit-backdrop-filter 280ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  :root[data-theme="light"] body[data-page-mode="multi"] .site-header {
    background:
      radial-gradient(circle at 14% 50%, rgba(127, 73, 255, calc(0.03 + (0.025 * var(--desktop-progress)))), transparent 26%),
      linear-gradient(
        180deg,
        rgba(255, 255, 255, calc(0.52 + (0.07 * var(--desktop-progress)))),
        rgba(255, 255, 255, calc(0.28 + (0.07 * var(--desktop-progress))))
      ),
      rgba(255, 255, 255, calc(0.54 - (0.18 * var(--desktop-progress))));
    border-color: rgba(127, 73, 255, calc(0.045 + (0.03 * var(--desktop-progress))));
    box-shadow:
      0 calc(14px + (7px * var(--desktop-progress))) calc(32px + (14px * var(--desktop-progress))) rgba(67, 43, 124, calc(0.035 + (0.03 * var(--desktop-progress)))),
      inset 0 1px 0 rgba(255, 255, 255, 0.62),
      inset 0 -1px 0 rgba(255, 255, 255, 0.24);
  }

  body[data-page-mode="multi"] .site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      radial-gradient(circle at 12% 50%, rgba(127, 73, 255, calc(0.045 + (0.03 * var(--desktop-progress)))), transparent 24%),
      linear-gradient(90deg, rgba(255, 255, 255, calc(0.014 + (0.012 * var(--desktop-progress)))), transparent 18%, transparent 82%, rgba(255, 255, 255, calc(0.006 + (0.01 * var(--desktop-progress)))));
    opacity: calc(0.34 + (0.12 * var(--desktop-progress)));
  }

  body[data-page-mode="multi"] .site-header::after {
    content: "";
    position: absolute;
    top: -46%;
    left: -48%;
    width: 28%;
    height: 194%;
    pointer-events: none;
    opacity: 0;
    border-radius: 999px;
    background:
      linear-gradient(
        90deg,
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, calc(0.01 + (0.022 * var(--desktop-progress)))) 38%,
        rgba(207, 190, 255, calc(0.01 + (0.022 * var(--desktop-progress)))) 52%,
        rgba(255, 255, 255, 0)
      );
    filter: blur(calc(20px + (14px * var(--desktop-progress))));
    mix-blend-mode: screen;
    transform: translate3d(-126%, 0, 0) rotate(-11deg);
  }

  :root[data-theme="light"] body[data-page-mode="multi"] .site-header::after {
    background:
      linear-gradient(
        90deg,
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, calc(0.05 + (0.055 * var(--desktop-progress)))) 38%,
        rgba(177, 143, 255, calc(0.016 + (0.02 * var(--desktop-progress)))) 52%,
        rgba(255, 255, 255, 0)
      );
    mix-blend-mode: normal;
  }

  body[data-page-mode="multi"] .site-header.is-desktop-condensed::after {
    opacity: calc(0.05 + (0.11 * var(--desktop-progress)));
    animation: desktopHeaderLoop 15.8s cubic-bezier(0.37, 0, 0.2, 1) infinite;
  }

  body[data-page-mode="multi"] .site-header .strip-left,
  body[data-page-mode="multi"] .site-header .desktop-nav,
  body[data-page-mode="multi"] .site-header .header-right {
    position: relative;
    z-index: 1;
    min-height: calc(88px - (10px * var(--desktop-progress)));
  }

  body[data-page-mode="multi"] .site-header .strip-left {
    transform: translateY(calc(-1px * var(--desktop-progress)));
  }

  body[data-page-mode="multi"] .site-header .logo-link {
    width: calc(108px - (10px * var(--desktop-progress)));
    min-width: calc(108px - (10px * var(--desktop-progress)));
    transform: translate3d(0, calc(-1px * var(--desktop-progress)), 0) scale(calc(1 - (0.045 * var(--desktop-progress))));
    transform-origin: left center;
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  body[data-page-mode="multi"] .desktop-nav {
    gap: calc(8px - (4px * var(--desktop-progress)));
    padding-inline: calc(8px - (2px * var(--desktop-progress)));
  }

  body[data-page-mode="multi"] .site-nav a {
    min-height: calc(40px - (3px * var(--desktop-progress)));
    padding: 0 calc(14px - (2px * var(--desktop-progress)));
    font-size: calc(0.79rem - (0.02rem * var(--desktop-progress)));
    letter-spacing: calc(0.1em - (0.01em * var(--desktop-progress)));
    border-radius: calc(999px - (4px * var(--desktop-progress)));
  }

  body[data-page-mode="multi"] .site-header .header-right {
    gap: calc(10px - (3px * var(--desktop-progress)));
    transform: translateY(calc(-1px * var(--desktop-progress)));
  }

  body[data-page-mode="multi"] .site-header .top-email {
    opacity: calc(0.88 - (0.38 * var(--desktop-progress)));
    transform: translateY(calc(-50% + (2px * var(--desktop-progress))));
  }

  body[data-page-mode="multi"] .site-header .theme-toggle {
    transform: scale(calc(1 - (0.05 * var(--desktop-progress))));
  }

  body[data-page-mode="multi"] .site-header.is-desktop-condensed .top-email {
    pointer-events: none;
  }

  body[data-page="home"] .hero-home-simple {
    padding-top: clamp(36px, 7vw, 92px);
  }
}

@keyframes desktopHeaderLoop {
  0% {
    transform: translate3d(-136%, 0, 0) rotate(-11deg) scaleX(0.97);
    opacity: 0;
  }
  12% {
    opacity: 0.34;
  }
  48% {
    transform: translate3d(100%, 0, 0) rotate(-11deg) scaleX(1);
    opacity: 0.22;
  }
  62% {
    opacity: 0;
  }
  100% {
    transform: translate3d(126%, 0, 0) rotate(-11deg) scaleX(1.02);
    opacity: 0;
  }
}

@media (hover: hover) and (pointer: fine) and (min-width: 901px) {
  body[data-page-mode="multi"] .page-side-card,
  body[data-page-mode="multi"] .content-panel,
  body[data-page-mode="multi"] .contact-panel,
  body[data-page-mode="multi"] .feature-card,
  body[data-page-mode="multi"] .page-cta-band,
  body[data-page="home"] .home-metric-card,
  body[data-page="home"] .home-testimonials-carousel,
  body[data-page="home"] .home-location-card,
  body[data-page="about"] .about-bio-media,
  body[data-page="about"] .about-bio-copy {
    transition:
      transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 240ms cubic-bezier(0.22, 1, 0.36, 1),
      border-color 240ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  body[data-page-mode="multi"] .page-side-card:hover,
  body[data-page-mode="multi"] .content-panel:hover,
  body[data-page-mode="multi"] .contact-panel:hover,
  body[data-page-mode="multi"] .feature-card:hover,
  body[data-page-mode="multi"] .page-cta-band:hover,
  body[data-page="home"] .home-metric-card:hover,
  body[data-page="home"] .home-testimonials-carousel:hover,
  body[data-page="home"] .home-location-card:hover,
  body[data-page="about"] .about-bio-media:hover,
  body[data-page="about"] .about-bio-copy:hover {
    transform: translate3d(0, -4px, 0);
    border-color: rgba(185, 159, 255, 0.34);
    box-shadow: 0 24px 54px rgba(7, 10, 18, 0.2);
  }

  :root[data-theme="light"] body[data-page-mode="multi"] .page-side-card:hover,
  :root[data-theme="light"] body[data-page-mode="multi"] .content-panel:hover,
  :root[data-theme="light"] body[data-page-mode="multi"] .contact-panel:hover,
  :root[data-theme="light"] body[data-page-mode="multi"] .feature-card:hover,
  :root[data-theme="light"] body[data-page-mode="multi"] .page-cta-band:hover,
  :root[data-theme="light"] body[data-page="home"] .home-metric-card:hover,
  :root[data-theme="light"] body[data-page="home"] .home-testimonials-carousel:hover,
  :root[data-theme="light"] body[data-page="home"] .home-location-card:hover,
  :root[data-theme="light"] body[data-page="about"] .about-bio-media:hover,
  :root[data-theme="light"] body[data-page="about"] .about-bio-copy:hover {
    box-shadow: 0 24px 54px rgba(67, 43, 124, 0.14);
  }
}

@media (max-width: 900px) {
  body[data-page-mode="multi"] {
    --header-h: 72px;
  }

  body[data-page-mode="multi"] .site-header .logo-link {
    width: 96px;
    min-width: 96px;
  }
}

body[data-page="home"] .hero-home-simple {
  min-height: calc(100vh - var(--header-h));
  padding-top: clamp(28px, 5vw, 68px);
  padding-bottom: clamp(18px, 5vw, 48px);
  display: grid;
  align-items: center;
}

body[data-page="home"] .hero-home-shell {
  width: min(100%, 1180px);
  display: grid;
  gap: 18px;
}

body[data-page="home"] .hero-home-showcase-shell {
  justify-items: center;
  text-align: center;
}

body[data-page="home"] .home-award {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 10px;
  border-radius: 999px;
  border: 1px solid var(--surface-border-soft);
  background: var(--surface-subtle);
  box-shadow: var(--shadow);
}

body[data-page="home"] .hero-tool-cloud.home-award {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: min(100%, 980px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page="home"] .hero-tool-cloud span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--surface-border-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02)),
    var(--surface-subtle);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
  box-shadow: var(--shadow-soft);
  animation: heroToolCloudFloat 7.4s ease-in-out infinite;
}

body[data-page="home"] .hero-tool-cloud span:nth-child(odd) {
  animation-duration: 8.2s;
}

body[data-page="home"] .hero-tool-cloud span:nth-child(3n) {
  animation-duration: 6.8s;
}

body[data-page="home"] .hero-tool-cloud span:nth-child(1) { animation-delay: 0s; }
body[data-page="home"] .hero-tool-cloud span:nth-child(2) { animation-delay: 0.18s; }
body[data-page="home"] .hero-tool-cloud span:nth-child(3) { animation-delay: 0.34s; }
body[data-page="home"] .hero-tool-cloud span:nth-child(4) { animation-delay: 0.5s; }
body[data-page="home"] .hero-tool-cloud span:nth-child(5) { animation-delay: 0.72s; }
body[data-page="home"] .hero-tool-cloud span:nth-child(6) { animation-delay: 0.9s; }
body[data-page="home"] .hero-tool-cloud span:nth-child(7) { animation-delay: 1.08s; }
body[data-page="home"] .hero-tool-cloud span:nth-child(8) { animation-delay: 1.24s; }
body[data-page="home"] .hero-tool-cloud span:nth-child(9) { animation-delay: 1.42s; }
body[data-page="home"] .hero-tool-cloud span:nth-child(10) { animation-delay: 1.6s; }
body[data-page="home"] .hero-tool-cloud span:nth-child(11) { animation-delay: 1.78s; }
body[data-page="home"] .hero-tool-cloud span:nth-child(12) { animation-delay: 1.94s; }
body[data-page="home"] .hero-tool-cloud span:nth-child(13) { animation-delay: 2.12s; }
body[data-page="home"] .hero-tool-cloud span:nth-child(14) { animation-delay: 2.28s; }
body[data-page="home"] .hero-tool-cloud span:nth-child(15) { animation-delay: 2.44s; }
body[data-page="home"] .hero-tool-cloud span:nth-child(16) { animation-delay: 2.6s; }
body[data-page="home"] .hero-tool-cloud span:nth-child(17) { animation-delay: 2.76s; }
body[data-page="home"] .hero-tool-cloud span:nth-child(18) { animation-delay: 2.92s; }
body[data-page="home"] .hero-tool-cloud span:nth-child(19) { animation-delay: 3.08s; }
body[data-page="home"] .hero-tool-cloud span:nth-child(20) { animation-delay: 3.22s; }
body[data-page="home"] .hero-tool-cloud span:nth-child(21) { animation-delay: 3.36s; }
body[data-page="home"] .hero-tool-cloud span:nth-child(22) { animation-delay: 3.5s; }
body[data-page="home"] .hero-tool-cloud span:nth-child(23) { animation-delay: 3.64s; }
body[data-page="home"] .hero-tool-cloud span:nth-child(24) { animation-delay: 3.78s; }

body[data-page="home"] .home-award-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(127, 73, 255, 0.3), rgba(127, 73, 255, 0.08));
  border: 1px solid var(--surface-border-accent);
  color: var(--text);
  font-family: "Space Mono", monospace;
  font-size: 0.88rem;
  font-weight: 700;
}

body[data-page="home"] .home-award-copy {
  display: grid;
  gap: 2px;
  justify-items: start;
  text-align: left;
}

body[data-page="home"] .home-award-copy p,
body[data-page="home"] .home-award-copy strong {
  margin: 0;
}

body[data-page="home"] .home-award-copy p {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body[data-page="home"] .home-award-copy strong {
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
}

@keyframes heroToolCloudFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
    border-color: var(--surface-border-soft);
  }
  50% {
    transform: translate3d(0, -5px, 0);
    border-color: var(--surface-border-accent);
  }
}

body[data-page="home"] .hero-home-title {
  margin: 0;
  max-width: 11.8ch;
  font-family: "Manrope", sans-serif;
  font-size: clamp(3.7rem, 8.8vw, 7.15rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 800;
}

body[data-page="home"] .hero-home-accent {
  color: var(--violet);
}

body[data-page="home"] .hero-home-lead {
  margin: 0;
  max-width: 44ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.72;
}

body[data-page="home"] .hero-home-proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 22px;
  max-width: 980px;
}

body[data-page="home"] .hero-home-proof p {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
}

body[data-page="home"] .hero-home-proof span {
  color: var(--violet);
}

body[data-page="home"] .hero-home-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 900px;
}

body[data-page="home"] .hero-home-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--surface-border-soft);
  background: var(--surface-subtle);
  color: var(--text);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

body[data-page="home"] .hero-home-actions {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

body[data-page="home"] .hero-home-stack {
  margin-top: 10px;
  display: grid;
  gap: 14px;
  justify-items: center;
}

body[data-page="home"] .hero-home-stack-label {
  margin: 0;
  color: var(--violet);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

body[data-page="home"] .hero-home-stack-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 16px;
  max-width: 980px;
}

body[data-page="home"] .hero-home-stack-row span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.94;
}

body[data-page="home"] .home-metrics {
  padding-top: 0;
}

body[data-page="home"] .home-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

body[data-page="home"] .home-metric-card {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--surface-border-accent);
  background: var(--surface-gradient-accent);
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
  min-height: 100%;
}

body[data-page="home"] .home-metric-card h3,
body[data-page="home"] .home-metric-card p {
  margin: 0;
}

body[data-page="home"] .home-metric-value {
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.3rem, 4vw, 4.3rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  font-weight: 800;
  color: var(--text);
}

body[data-page="home"] .home-metric-card h3 {
  color: var(--text);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-page="home"] .home-metric-card > p:last-child {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.62;
}

body[data-page="home"] .home-profile-cta {
  padding-top: clamp(22px, 4vw, 58px);
}

body[data-page="home"] .home-profile-cta-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 18px;
  padding: clamp(22px, 3vw, 30px);
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--surface-border-accent);
  background: var(--surface-gradient-accent);
  box-shadow: var(--shadow);
}

body[data-page="home"] .home-profile-cta-copy,
body[data-page="home"] .home-profile-cta-side {
  display: grid;
  gap: 14px;
  align-content: start;
}

body[data-page="home"] .home-profile-cta-copy h2 {
  margin: 0;
  max-width: 12ch;
  font-family: "Teko", sans-serif;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

body[data-page="home"] .home-profile-cta-copy p:last-child,
body[data-page="home"] .home-profile-cta-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

body[data-page="home"] .home-profile-cta-side {
  justify-items: start;
}

body[data-page="home"] .home-profile-cta-side .chip-list {
  max-width: 34rem;
}

body[data-page="home"] .home-testimonials {
  padding-top: clamp(22px, 4vw, 58px);
}

body[data-page="home"] .home-testimonials-note {
  margin: 8px 0 0;
  max-width: 42ch;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

body[data-page="home"] .home-testimonials-carousel {
  position: relative;
  margin-top: 30px;
  padding: 24px;
  overflow: hidden;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--surface-border-accent);
  background: var(--surface-gradient-accent);
  box-shadow: var(--shadow);
  display: grid;
  gap: 22px;
}

body[data-page="home"] .home-testimonials-carousel::before {
  content: "";
  position: absolute;
  inset: -60px auto auto -40px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(127, 73, 255, 0.18), rgba(127, 73, 255, 0));
  pointer-events: none;
}

body[data-page="home"] .home-testimonials-topline,
body[data-page="home"] .home-testimonials-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

body[data-page="home"] .home-testimonials-proof {
  margin: 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.66;
}

body[data-page="home"] .home-testimonials-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

body[data-page="home"] .home-testimonials-arrow {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--surface-border-soft);
  background: var(--surface-subtle);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 220ms ease,
    border-color 220ms ease,
    color 220ms ease,
    opacity 220ms ease;
}

body[data-page="home"] .home-testimonials-arrow:hover,
body[data-page="home"] .home-testimonials-arrow:focus-visible {
  transform: translateY(-1px);
  border-color: var(--surface-border-accent);
  background: rgba(127, 73, 255, 0.12);
  outline: none;
}

body[data-page="home"] .home-testimonials-arrow:disabled {
  opacity: 0.42;
  cursor: default;
  transform: none;
}

body[data-page="home"] .home-testimonials-viewport {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

body[data-page="home"] .home-testimonials-track {
  display: flex;
  transition: transform 760ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

body[data-page="home"] .home-testimonial-card {
  flex: 0 0 100%;
  min-width: 100%;
  display: grid;
  gap: 18px;
}

body[data-page="home"] .home-testimonial-quote {
  margin: 0;
  max-width: 20ch;
  color: var(--text);
  font-size: clamp(1.75rem, 3vw, 2.85rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 700;
}

body[data-page="home"] .home-testimonial-results {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body[data-page="home"] .home-testimonial-results span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--surface-border-soft);
  background: var(--surface-subtle);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body[data-page="home"] .home-testimonial-author {
  display: grid;
  gap: 4px;
}

body[data-page="home"] .home-testimonial-author strong,
body[data-page="home"] .home-testimonial-author p {
  margin: 0;
}

body[data-page="home"] .home-testimonial-author strong {
  color: var(--text);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-page="home"] .home-testimonial-author p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

body[data-page="home"] .home-testimonials-dots {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

body[data-page="home"] .home-testimonial-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: width 220ms ease, background 220ms ease, transform 220ms ease;
}

body[data-page="home"] .home-testimonial-dot:hover,
body[data-page="home"] .home-testimonial-dot:focus-visible {
  background: rgba(255, 255, 255, 0.42);
  outline: none;
}

body[data-page="home"] .home-testimonial-dot.is-active {
  width: 28px;
  background: linear-gradient(90deg, rgba(205, 182, 255, 0.98), rgba(127, 73, 255, 0.94));
  transform: translateZ(0);
}

body[data-page="home"] .home-testimonials-counter {
  margin: 0;
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body[data-page="home"] .home-location-card {
  margin-top: 28px;
  padding: 20px;
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1.12fr);
  gap: 18px;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--surface-border-accent);
  background: var(--surface-gradient-accent);
  box-shadow: var(--shadow);
}

body[data-page="home"] .home-location-map {
  position: relative;
  min-height: 292px;
  overflow: hidden;
  border-radius: calc(var(--radius) - 4px);
  border: 1px solid var(--surface-border-soft);
  background:
    radial-gradient(circle at 24% 20%, rgba(127, 73, 255, 0.18), rgba(127, 73, 255, 0) 36%),
    linear-gradient(145deg, rgba(12, 16, 29, 0.96), rgba(8, 11, 20, 0.92));
}

body[data-page="home"] .home-location-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 100% 18%, 18% 100%;
  opacity: 0.5;
  pointer-events: none;
}

body[data-page="home"] .home-location-map-chip {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--surface-border-soft);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body[data-page="home"] .home-location-road {
  position: absolute;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(127, 73, 255, 0.24));
  opacity: 0.84;
}

body[data-page="home"] .home-location-road.road-a {
  top: 24%;
  left: -6%;
  width: 78%;
  height: 14px;
  transform: rotate(-14deg);
}

body[data-page="home"] .home-location-road.road-b {
  top: 55%;
  right: -10%;
  width: 68%;
  height: 16px;
  transform: rotate(12deg);
}

body[data-page="home"] .home-location-road.road-c {
  left: 28%;
  top: -8%;
  width: 16px;
  height: 64%;
  transform: rotate(8deg);
}

body[data-page="home"] .home-location-road.road-d {
  right: 18%;
  bottom: -10%;
  width: 18px;
  height: 54%;
  transform: rotate(-10deg);
}

body[data-page="home"] .home-location-pin {
  position: absolute;
  left: 57%;
  top: 49%;
  width: 54px;
  height: 54px;
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(180deg, rgba(231, 220, 255, 0.98), rgba(127, 73, 255, 0.92));
  box-shadow: 0 18px 36px rgba(127, 73, 255, 0.28);
  transform: rotate(-45deg);
}

body[data-page="home"] .home-location-pin-core {
  position: absolute;
  left: calc(57% + 14px);
  top: calc(49% + 14px);
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(8, 11, 20, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body[data-page="home"] .home-location-body {
  display: grid;
  align-content: start;
  gap: 16px;
}

body[data-page="home"] .home-location-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body[data-page="home"] .home-location-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--surface-border-soft);
  background: var(--surface-subtle);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

body[data-page="home"] .home-location-body h2 {
  margin: 0;
  font-family: "Teko", sans-serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.96;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

body[data-page="home"] .home-location-lead {
  margin: 0;
  max-width: 40ch;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.66;
}

body[data-page="home"] .home-location-facts {
  display: grid;
  gap: 10px;
}

body[data-page="home"] .home-location-fact {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--surface-border-soft);
  background: rgba(255, 255, 255, 0.03);
}

body[data-page="home"] .home-location-fact span {
  color: var(--violet);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body[data-page="home"] .home-location-fact strong,
body[data-page="home"] .home-location-fact a {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
  text-decoration: none;
  font-weight: 700;
}

body[data-page="home"] .home-location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

body[data-page="home"] .home-location-actions .btn {
  width: fit-content;
}

body[data-page="home"] .home-services {
  padding-top: clamp(26px, 4vw, 58px);
}

body[data-page="home"] .service-visual-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

body[data-page="home"] .service-visual-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--surface-border-accent);
  background: var(--surface-gradient-accent);
  box-shadow: var(--shadow);
}

body[data-page="home"] .service-visual-card::after {
  content: "";
  position: absolute;
  inset: auto -42px -42px auto;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(127, 73, 255, 0.16), rgba(127, 73, 255, 0));
  pointer-events: none;
}

body[data-page="home"] .service-visual-card h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1;
  font-family: "Teko", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body[data-page="home"] .service-visual-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

body[data-page="home"] .service-visual-card li {
  position: relative;
  padding-left: 15px;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.58;
}

body[data-page="home"] .service-visual-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, #cdb6ff, #7f49ff);
}

body[data-page="home"] .service-visual-stage {
  position: relative;
  height: 220px;
  overflow: hidden;
  border-radius: calc(var(--radius) - 4px);
  border: 1px solid var(--surface-border-soft);
  background:
    radial-gradient(circle at 18% 18%, rgba(127, 73, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

body[data-page="home"] .stage-diagnostic::before,
body[data-page="home"] .stage-automation::before,
body[data-page="home"] .stage-training::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
  pointer-events: none;
}

body[data-page="home"] .diagnostic-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 100% 18%, 18% 100%;
  opacity: 0.5;
}

body[data-page="home"] .diagnostic-grid span {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(233, 224, 255, 0.78);
  box-shadow: 0 0 12px rgba(181, 143, 255, 0.4);
  opacity: 0.35;
}

body[data-page="home"] .diagnostic-grid span:nth-child(1) { left: 14%; top: 20%; }
body[data-page="home"] .diagnostic-grid span:nth-child(2) { left: 38%; top: 20%; }
body[data-page="home"] .diagnostic-grid span:nth-child(3) { left: 62%; top: 20%; }
body[data-page="home"] .diagnostic-grid span:nth-child(4) { left: 82%; top: 20%; }
body[data-page="home"] .diagnostic-grid span:nth-child(5) { left: 14%; top: 44%; }
body[data-page="home"] .diagnostic-grid span:nth-child(6) { left: 38%; top: 44%; }
body[data-page="home"] .diagnostic-grid span:nth-child(7) { left: 62%; top: 44%; }
body[data-page="home"] .diagnostic-grid span:nth-child(8) { left: 82%; top: 44%; }
body[data-page="home"] .diagnostic-grid span:nth-child(9) { left: 14%; top: 68%; }
body[data-page="home"] .diagnostic-grid span:nth-child(10) { left: 38%; top: 68%; }
body[data-page="home"] .diagnostic-grid span:nth-child(11) { left: 62%; top: 68%; }
body[data-page="home"] .diagnostic-grid span:nth-child(12) { left: 82%; top: 68%; }

body[data-page="home"] .diagnostic-beam {
  position: absolute;
  inset: 12px auto 12px 0;
  width: 34%;
  background: linear-gradient(90deg, rgba(127, 73, 255, 0), rgba(197, 173, 255, 0.32), rgba(127, 73, 255, 0));
  filter: blur(1px);
  opacity: 0;
}

body[data-page="home"] .diagnostic-node {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(219, 202, 255, 0.9);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.92), rgba(127, 73, 255, 0.8));
  box-shadow: 0 0 22px rgba(127, 73, 255, 0.35);
  opacity: 0;
}

body[data-page="home"] .node-one { left: 22%; top: 30%; }
body[data-page="home"] .node-two { left: 56%; top: 52%; }
body[data-page="home"] .node-three { left: 74%; top: 24%; }

body[data-page="home"] .automation-lane {
  position: absolute;
  left: 18px;
  right: 18px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--surface-border-soft);
  background: rgba(6, 10, 19, 0.58);
}

body[data-page="home"] .lane-top { top: 26px; }
body[data-page="home"] .lane-mid { top: 88px; }
body[data-page="home"] .lane-bottom { top: 150px; }

body[data-page="home"] .lane-label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body[data-page="home"] .lane-dot {
  position: absolute;
  top: 50%;
  left: 68px;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 999px;
  background: linear-gradient(180deg, #efe6ff, #8b5fff);
  box-shadow: 0 0 18px rgba(127, 73, 255, 0.42);
}

body[data-page="home"] .automation-bars {
  position: absolute;
  right: 18px;
  bottom: 16px;
  display: flex;
  align-items: end;
  gap: 8px;
}

body[data-page="home"] .automation-bars span {
  width: 10px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(238, 228, 255, 0.9), rgba(127, 73, 255, 0.56));
  opacity: 0.85;
}

body[data-page="home"] .automation-bars span:nth-child(2) { height: 44px; }
body[data-page="home"] .automation-bars span:nth-child(3) { height: 64px; }
body[data-page="home"] .automation-bars span:nth-child(4) { height: 38px; }

body[data-page="home"] .training-stack {
  position: absolute;
  inset: 22px 20px auto 20px;
  height: 124px;
}

body[data-page="home"] .training-card {
  position: absolute;
  left: 0;
  right: 48px;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--surface-border-soft);
  background: rgba(8, 12, 23, 0.72);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
}

body[data-page="home"] .card-a {
  top: 0;
  transform: translateX(0) rotate(-2.5deg);
}

body[data-page="home"] .card-b {
  top: 34px;
  left: 24px;
  transform: translateX(0) rotate(2deg);
}

body[data-page="home"] .card-c {
  top: 68px;
  left: 48px;
  transform: translateX(0) rotate(-1deg);
}

body[data-page="home"] .training-signal {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: end;
  gap: 8px;
  height: 42px;
}

body[data-page="home"] .training-signal span {
  flex: 1;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, rgba(240, 232, 255, 0.96), rgba(127, 73, 255, 0.4));
  height: 12px;
  opacity: 0.88;
}

body[data-page="home"] .training-signal span:nth-child(2) { height: 22px; }
body[data-page="home"] .training-signal span:nth-child(3) { height: 34px; }
body[data-page="home"] .training-signal span:nth-child(4) { height: 18px; }
body[data-page="home"] .training-signal span:nth-child(5) { height: 28px; }

body[data-page="projects"] .project-demo-section {
  padding-top: clamp(24px, 4vw, 60px);
}

body[data-page="projects"] .project-demo-shell {
  margin-top: 30px;
}

body[data-page="projects"] .demo-app {
  --demo-bg: #0d1017;
  --demo-bg-soft: #111620;
  --demo-surface: rgba(255, 255, 255, 0.032);
  --demo-surface-strong: rgba(255, 255, 255, 0.05);
  --demo-border: rgba(255, 255, 255, 0.08);
  --demo-border-strong: rgba(173, 139, 255, 0.3);
  --demo-text: rgba(248, 249, 255, 0.96);
  --demo-muted: rgba(187, 194, 217, 0.68);
  --demo-accent: #8f5cff;
  --demo-accent-soft: rgba(143, 92, 255, 0.18);
  --demo-accent-line: rgba(210, 187, 255, 0.92);
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid var(--demo-border);
  background:
    radial-gradient(circle at 16% 10%, rgba(143, 92, 255, 0.14), transparent 22%),
    radial-gradient(circle at 86% 84%, rgba(143, 92, 255, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0)),
    var(--demo-bg);
  box-shadow:
    0 30px 70px rgba(2, 4, 10, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body[data-page="projects"] .demo-app::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 68px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0));
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

body[data-page="projects"] .demo-window-bar,
body[data-page="projects"] .demo-app-body {
  position: relative;
  z-index: 1;
}

body[data-page="projects"] .demo-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 20px;
}

body[data-page="projects"] .demo-window-dots {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body[data-page="projects"] .demo-window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

body[data-page="projects"] .demo-window-range {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body[data-page="projects"] .demo-window-range span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--demo-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--demo-muted);
  font-family: "Space Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body[data-page="projects"] .demo-window-range .is-active {
  color: var(--demo-text);
  border-color: rgba(143, 92, 255, 0.34);
  background: rgba(143, 92, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(143, 92, 255, 0.08);
}

body[data-page="projects"] .demo-app-body {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 740px;
}

body[data-page="projects"] .demo-app-sidebar {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 20px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
}

body[data-page="projects"] .demo-app-main {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 20px;
}

body[data-page="projects"] .demo-app-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px 6px;
}

body[data-page="projects"] .demo-app-brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #efe6ff, var(--demo-accent));
  box-shadow: 0 0 18px rgba(143, 92, 255, 0.42);
}

body[data-page="projects"] .demo-user-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--demo-border);
  background: rgba(255, 255, 255, 0.03);
}

body[data-page="projects"] .demo-user-avatar {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(143, 92, 255, 0.24), rgba(143, 92, 255, 0.12));
  color: var(--demo-text);
  font-family: "Space Mono", monospace;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

body[data-page="projects"] .demo-user-card strong,
body[data-page="projects"] .demo-user-card span {
  margin: 0;
}

body[data-page="projects"] .demo-user-card strong {
  color: var(--demo-text);
  font-size: 0.92rem;
  line-height: 1.2;
}

body[data-page="projects"] .demo-user-card span {
  color: var(--demo-muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

body[data-page="projects"] .demo-app-label,
body[data-page="projects"] .demo-app-brand strong,
body[data-page="projects"] .demo-app-topbar-copy strong,
body[data-page="projects"] .demo-app-toolbar-note,
body[data-page="projects"] .demo-sidebar-kicker,
body[data-page="projects"] .demo-pane-kicker,
body[data-page="projects"] .demo-screen-head p,
body[data-page="projects"] .demo-screen-head span,
body[data-page="projects"] .demo-list-row strong,
body[data-page="projects"] .demo-list-row span,
body[data-page="projects"] .demo-list-row em,
body[data-page="projects"] .demo-board-col strong,
body[data-page="projects"] .demo-board-col span,
body[data-page="projects"] .demo-kpi-card strong,
body[data-page="projects"] .demo-kpi-card span,
body[data-page="projects"] .demo-flow-node span,
body[data-page="projects"] .demo-flow-node strong,
body[data-page="projects"] .demo-flow-node p,
body[data-page="projects"] .demo-activity-strip span {
  margin: 0;
}

body[data-page="projects"] .demo-app-label,
body[data-page="projects"] .demo-sidebar-kicker,
body[data-page="projects"] .demo-pane-kicker,
body[data-page="projects"] .demo-screen-head span,
body[data-page="projects"] .demo-flow-node span {
  color: rgba(216, 194, 255, 0.86);
  font-family: "Space Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body[data-page="projects"] .demo-app-brand strong,
body[data-page="projects"] .demo-app-topbar-copy strong {
  display: block;
  color: var(--demo-text);
  font-size: 0.96rem;
  letter-spacing: 0.03em;
}

body[data-page="projects"] .demo-app-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

body[data-page="projects"] .demo-app-topbar-copy {
  display: grid;
  gap: 6px;
}

body[data-page="projects"] .demo-app-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

body[data-page="projects"] .demo-app-toolbar-note {
  color: var(--demo-muted);
  font-size: 0.88rem;
  line-height: 1.58;
}

body[data-page="projects"] .demo-app-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body[data-page="projects"] .demo-app-tab {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--demo-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--demo-text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

body[data-page="projects"] .demo-app-tab:hover,
body[data-page="projects"] .demo-app-tab:focus-visible,
body[data-page="projects"] .demo-app-tab.is-active {
  transform: translateY(-1px);
  border-color: var(--demo-border-strong);
  background: rgba(143, 92, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(143, 92, 255, 0.08);
  outline: none;
}

body[data-page="projects"] .demo-sidebar-panel,
body[data-page="projects"] .demo-screen {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--demo-border);
  background: var(--demo-surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body[data-page="projects"] .demo-sidebar-stack {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

body[data-page="projects"] .demo-sidebar-stack span,
body[data-page="projects"] .demo-sidebar-stat span {
  color: var(--demo-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

body[data-page="projects"] .demo-sidebar-stack .is-current {
  color: var(--demo-text);
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(143, 92, 255, 0.12);
}

body[data-page="projects"] .demo-sidebar-stat {
  display: grid;
  gap: 4px;
  padding-top: 12px;
}

body[data-page="projects"] .demo-sidebar-stat + .demo-sidebar-stat {
  border-top: 1px solid var(--demo-border);
  margin-top: 12px;
}

body[data-page="projects"] .demo-sidebar-stat strong {
  color: var(--demo-text);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

body[data-page="projects"] .demo-pane {
  display: none;
  gap: 16px;
  align-content: start;
  animation: demoPaneFade 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-page="projects"] .demo-pane.is-active {
  display: grid;
}

body[data-page="projects"] .demo-pane-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

body[data-page="projects"] .demo-pane-header h3 {
  margin: 6px 0 0;
  max-width: 16ch;
  font-family: "Teko", sans-serif;
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  line-height: 0.94;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--demo-text);
}

body[data-page="projects"] .demo-pane-badges,
body[data-page="projects"] .demo-activity-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body[data-page="projects"] .demo-pane-badges span,
body[data-page="projects"] .demo-activity-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--demo-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--demo-text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease;
}

body[data-page="projects"] .demo-pane-badges span {
  opacity: 1;
}

body[data-page="projects"] .demo-activity-strip span {
  opacity: 0.48;
}

body[data-page="projects"] .demo-activity-strip span.is-live,
body[data-page="projects"] .demo-activity-strip span.is-idle-live,
body[data-page="projects"] .demo-pane-badges span.is-live,
body[data-page="projects"] .demo-pane-badges span.is-idle-live {
  opacity: 1;
  transform: translateY(-1px);
  border-color: var(--demo-border-strong);
  background: rgba(143, 92, 255, 0.12);
}

body[data-page="projects"] .demo-kpi-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.95fr) repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body[data-page="projects"] .demo-kpi-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--demo-border);
  background: rgba(255, 255, 255, 0.03);
  opacity: 0.82;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 240ms ease,
    transform 240ms ease,
    border-color 240ms ease,
    background 240ms ease,
    box-shadow 240ms ease;
}

body[data-page="projects"] .demo-kpi-card--ring {
  grid-template-columns: auto 1fr;
  align-items: center;
}

body[data-page="projects"] .demo-ring {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(13, 16, 23, 1) 53%, transparent 54%),
    conic-gradient(var(--demo-accent-line) calc(var(--demo-ring, 70) * 1%), rgba(255, 255, 255, 0.07) 0);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 22px rgba(143, 92, 255, 0.18);
  animation: demoRingDrift 4.6s ease-in-out infinite;
}

body[data-page="projects"] .demo-ring::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 999px;
  background: var(--demo-bg-soft);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

body[data-page="projects"] .demo-ring-value {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
  color: var(--demo-text);
  font-family: "Teko", sans-serif;
  font-size: 2rem;
  letter-spacing: 0.03em;
}

body[data-page="projects"] .demo-kpi-meta {
  display: grid;
  gap: 4px;
}

body[data-page="projects"] .demo-kpi-meta strong {
  color: var(--demo-text);
  font-size: 1rem;
  line-height: 1.1;
  text-transform: uppercase;
}

body[data-page="projects"] .demo-kpi-meta span {
  color: var(--demo-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body[data-page="projects"] .demo-kpi-bar {
  position: relative;
  height: 4px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
}

body[data-page="projects"] .demo-kpi-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--demo-fill, 50) * 1%);
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(143, 92, 255, 0.9), rgba(226, 214, 255, 0.9));
  transform-origin: left center;
  animation: demoBarPulse 3.6s ease-in-out infinite;
}

body[data-page="projects"] .demo-kpi-card strong {
  color: var(--demo-text);
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

body[data-page="projects"] .demo-kpi-card span {
  color: var(--demo-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

body[data-page="projects"] .demo-kpi-card.is-live,
body[data-page="projects"] .demo-kpi-card.is-idle-live {
  opacity: 1;
  transform: translate3d(0, -1px, 0);
  border-color: var(--demo-border-strong);
  background: rgba(143, 92, 255, 0.12);
  box-shadow: 0 14px 26px rgba(4, 6, 12, 0.18);
}

body[data-page="projects"] .demo-pane-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
}

body[data-page="projects"] .demo-screen {
  display: grid;
  gap: 14px;
}

body[data-page="projects"] .demo-screen-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

body[data-page="projects"] .demo-screen-head p {
  color: var(--demo-text);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

body[data-page="projects"] .demo-list {
  display: grid;
  gap: 10px;
}

body[data-page="projects"] .demo-list-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--demo-border);
  background: rgba(255, 255, 255, 0.02);
  opacity: 0.72;
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

body[data-page="projects"] .demo-row-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.02);
}

body[data-page="projects"] .demo-row-dot.is-blue { background: #60a5fa; }
body[data-page="projects"] .demo-row-dot.is-violet { background: #9f7bff; }
body[data-page="projects"] .demo-row-dot.is-cyan { background: #6fe7ff; }
body[data-page="projects"] .demo-row-dot.is-pink { background: #ff8ecb; }
body[data-page="projects"] .demo-row-dot.is-lime { background: #c9ff6b; }

body[data-page="projects"] .demo-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(143, 92, 255, 0.22);
  background: rgba(143, 92, 255, 0.08);
  color: var(--demo-text);
  font-family: "Space Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-page="projects"] .demo-list-row strong {
  color: var(--demo-text);
  font-size: 0.88rem;
}

body[data-page="projects"] .demo-list-row span,
body[data-page="projects"] .demo-list-row em {
  color: var(--demo-muted);
  font-size: 0.82rem;
  font-style: normal;
}

body[data-page="projects"] .demo-list-row.is-live,
body[data-page="projects"] .demo-list-row.is-idle-live,
body[data-page="projects"] .demo-board-col.is-live,
body[data-page="projects"] .demo-board-col.is-idle-live {
  opacity: 1;
  border-color: var(--demo-border-strong);
  background: rgba(143, 92, 255, 0.1);
  box-shadow: 0 12px 20px rgba(6, 8, 14, 0.16);
}

body[data-page="projects"] .demo-column-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

body[data-page="projects"] .demo-board-col {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 128px;
  padding: 14px 12px;
  border-radius: 16px;
  border: 1px solid var(--demo-border);
  background: rgba(255, 255, 255, 0.02);
  opacity: 0.68;
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

body[data-page="projects"] .demo-board-col strong {
  color: var(--demo-text);
  font-size: 0.9rem;
}

body[data-page="projects"] .demo-board-col span {
  color: var(--demo-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

body[data-page="projects"] .demo-workflow {
  position: relative;
  min-height: 308px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
  padding: 16px 6px 10px;
}

body[data-page="projects"] .demo-workflow::before {
  content: "";
  position: absolute;
  inset: 16px 4px 12px;
  border-radius: 24px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.42;
}

body[data-page="projects"] .demo-flow-link {
  position: absolute;
  top: 50%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(143, 92, 255, 0.12), rgba(226, 214, 255, 0.88), rgba(143, 92, 255, 0.12));
  opacity: 0.26;
  transition:
    transform 340ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease;
}

body[data-page="projects"] .demo-flow-link::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #f2ebff;
  transform: translate(-50%, -50%) scale(0.7);
  box-shadow: 0 0 14px rgba(143, 92, 255, 0.48);
  opacity: 0;
}

body[data-page="projects"] .demo-flow-link.is-live,
body[data-page="projects"] .demo-flow-link.is-idle-live {
  opacity: 1;
}

body[data-page="projects"] .demo-flow-link.is-live::after {
  opacity: 1;
  animation: demoLinkTravel 720ms cubic-bezier(0.22, 1, 0.36, 1) 1 forwards;
}

body[data-page="projects"] .demo-flow-link.is-idle-live::after {
  opacity: 1;
  animation: demoLinkTravel 1.25s linear infinite;
}

body[data-page="projects"] .demo-workflow .demo-flow-link:nth-of-type(1) {
  left: 16.2%;
  width: 11.3%;
}

body[data-page="projects"] .demo-workflow .demo-flow-link:nth-of-type(2) {
  left: 36.5%;
  width: 11.3%;
}

body[data-page="projects"] .demo-workflow .demo-flow-link:nth-of-type(3) {
  left: 56.8%;
  width: 11.3%;
}

body[data-page="projects"] .demo-workflow .demo-flow-link:nth-of-type(4) {
  left: 77.1%;
  width: 11.3%;
}

body[data-page="projects"] .demo-flow-node {
  --node-offset: 0px;
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 136px;
  padding: 18px 12px 16px;
  border-radius: 22px;
  border: 1px solid var(--demo-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(9, 13, 22, 0.52);
  opacity: 0.72;
  transform: translate3d(0, var(--node-offset), 0) scale(0.96);
  transition:
    opacity 280ms ease,
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 280ms ease,
    box-shadow 280ms ease,
    background 280ms ease;
  animation: demoNodeFloat 5.6s ease-in-out infinite;
}

body[data-page="projects"] .demo-flow-node:nth-of-type(1) { --node-offset: -16px; animation-delay: 0s; }
body[data-page="projects"] .demo-flow-node:nth-of-type(2) { --node-offset: 12px; animation-delay: 0.24s; }
body[data-page="projects"] .demo-flow-node:nth-of-type(3) { --node-offset: -10px; animation-delay: 0.46s; }
body[data-page="projects"] .demo-flow-node:nth-of-type(4) { --node-offset: 14px; animation-delay: 0.7s; }
body[data-page="projects"] .demo-flow-node:nth-of-type(5) { --node-offset: -14px; animation-delay: 0.95s; }

body[data-page="projects"] .demo-node-glyph {
  display: grid;
  grid-template-columns: repeat(2, 10px);
  gap: 4px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(143, 92, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: transform 280ms ease, background 280ms ease, border-color 280ms ease;
}

body[data-page="projects"] .demo-node-glyph span {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: rgba(229, 218, 255, 0.32);
}

body[data-page="projects"] .demo-flow-node strong {
  color: var(--demo-text);
  font-size: 0.9rem;
  line-height: 1.25;
  text-transform: uppercase;
}

body[data-page="projects"] .demo-flow-node p {
  color: var(--demo-muted);
  font-size: 0.76rem;
  line-height: 1.46;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body[data-page="projects"] .demo-flow-node.is-live,
body[data-page="projects"] .demo-flow-node.is-idle-live {
  opacity: 1;
  transform: translate3d(0, calc(var(--node-offset) - 2px), 0) scale(1);
  border-color: rgba(222, 207, 255, 0.38);
  background: linear-gradient(145deg, rgba(143, 92, 255, 0.18), rgba(255, 255, 255, 0.04));
  box-shadow:
    0 18px 34px rgba(7, 10, 18, 0.18),
    0 0 0 1px rgba(143, 92, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body[data-page="projects"] .demo-flow-node.is-live .demo-node-glyph,
body[data-page="projects"] .demo-flow-node.is-idle-live .demo-node-glyph {
  transform: rotate(4deg) scale(1.04);
  background: rgba(143, 92, 255, 0.14);
  border-color: rgba(230, 221, 255, 0.18);
}

body[data-page="projects"] .demo-flow-node.is-live .demo-node-glyph span,
body[data-page="projects"] .demo-flow-node.is-idle-live .demo-node-glyph span {
  animation: demoGlyphPulse 820ms ease-in-out infinite;
}

body[data-page="projects"] .demo-flow-node.is-live::after {
  content: "";
  position: absolute;
  inset: auto -18px -22px auto;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(143, 92, 255, 0.24), rgba(143, 92, 255, 0));
  pointer-events: none;
}

body[data-page="projects"] .demo-flow-node.is-idle-live::after {
  content: "";
  position: absolute;
  inset: auto -14px -18px auto;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(143, 92, 255, 0.16), rgba(143, 92, 255, 0));
  pointer-events: none;
}

@keyframes demoPaneFade {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes demoRingDrift {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.04),
      0 0 22px rgba(143, 92, 255, 0.18);
  }
  50% {
    transform: scale(1.02);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.04),
      0 0 28px rgba(143, 92, 255, 0.28);
  }
}

@keyframes demoBarPulse {
  0%,
  100% {
    opacity: 0.84;
    transform: scaleX(0.98);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes demoNodeFloat {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -6px;
  }
}

@keyframes demoGlyphPulse {
  0%,
  100% {
    opacity: 0.52;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

@keyframes demoLinkTravel {
  0% {
    left: 0;
    transform: translate(-50%, -50%) scale(0.72);
  }
  18% {
    opacity: 1;
  }
  100% {
    left: 100%;
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}

body[data-page="home"] .service-visual-card.reveal .diagnostic-beam,
body[data-page="home"] .service-visual-card.reveal .diagnostic-node,
body[data-page="home"] .service-visual-card.reveal .diagnostic-grid span,
body[data-page="home"] .service-visual-card.reveal .lane-dot,
body[data-page="home"] .service-visual-card.reveal .automation-bars span,
body[data-page="home"] .service-visual-card.reveal .training-card,
body[data-page="home"] .service-visual-card.reveal .training-signal span {
  will-change: transform, opacity;
}

body[data-page="home"] .service-visual-card.reveal.is-visible .diagnostic-beam {
  opacity: 1;
  animation: diagnosticSweep 3.8s ease-in-out infinite;
}

body[data-page="home"] .service-visual-card.reveal.is-visible .diagnostic-grid span {
  animation: diagnosticPulse 2.8s ease-in-out infinite;
}

body[data-page="home"] .service-visual-card.reveal.is-visible .diagnostic-grid span:nth-child(odd) {
  animation-delay: 0.2s;
}

body[data-page="home"] .service-visual-card.reveal.is-visible .diagnostic-node {
  opacity: 1;
  animation: diagnosticNodePulse 2.4s ease-in-out infinite;
}

body[data-page="home"] .service-visual-card.reveal.is-visible .node-two {
  animation-delay: 0.35s;
}

body[data-page="home"] .service-visual-card.reveal.is-visible .node-three {
  animation-delay: 0.7s;
}

body[data-page="home"] .service-visual-card.reveal.is-visible .lane-dot {
  animation: automationFlow 3.6s cubic-bezier(0.33, 1, 0.68, 1) infinite;
}

body[data-page="home"] .service-visual-card.reveal.is-visible .lane-mid .lane-dot {
  animation-delay: 0.45s;
}

body[data-page="home"] .service-visual-card.reveal.is-visible .lane-bottom .lane-dot {
  animation-delay: 0.9s;
}

body[data-page="home"] .service-visual-card.reveal.is-visible .automation-bars span {
  animation: automationBar 1.9s ease-in-out infinite;
}

body[data-page="home"] .service-visual-card.reveal.is-visible .automation-bars span:nth-child(2) {
  animation-delay: 0.18s;
}

body[data-page="home"] .service-visual-card.reveal.is-visible .automation-bars span:nth-child(3) {
  animation-delay: 0.34s;
}

body[data-page="home"] .service-visual-card.reveal.is-visible .automation-bars span:nth-child(4) {
  animation-delay: 0.5s;
}

body[data-page="home"] .service-visual-card.reveal.is-visible .training-card {
  animation: trainingCardFloat 4s ease-in-out infinite;
}

body[data-page="home"] .service-visual-card.reveal.is-visible .card-b {
  animation-delay: 0.25s;
}

body[data-page="home"] .service-visual-card.reveal.is-visible .card-c {
  animation-delay: 0.5s;
}

body[data-page="home"] .service-visual-card.reveal.is-visible .training-signal span {
  animation: trainingSignal 1.8s ease-in-out infinite;
}

body[data-page="home"] .service-visual-card.reveal.is-visible .training-signal span:nth-child(2) {
  animation-delay: 0.14s;
}

body[data-page="home"] .service-visual-card.reveal.is-visible .training-signal span:nth-child(3) {
  animation-delay: 0.28s;
}

body[data-page="home"] .service-visual-card.reveal.is-visible .training-signal span:nth-child(4) {
  animation-delay: 0.42s;
}

body[data-page="home"] .service-visual-card.reveal.is-visible .training-signal span:nth-child(5) {
  animation-delay: 0.56s;
}

@keyframes diagnosticSweep {
  0%,
  100% {
    transform: translateX(-32%);
  }
  50% {
    transform: translateX(206%);
  }
}

@keyframes diagnosticPulse {
  0%,
  100% {
    opacity: 0.26;
    transform: scale(1);
  }
  50% {
    opacity: 0.92;
    transform: scale(1.18);
  }
}

@keyframes diagnosticNodePulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 18px rgba(127, 73, 255, 0.28);
  }
  50% {
    transform: scale(1.2);
    box-shadow: 0 0 26px rgba(127, 73, 255, 0.48);
  }
}

@keyframes automationFlow {
  0% {
    transform: translate(0, -50%) scale(0.9);
    opacity: 0.3;
  }
  12% {
    opacity: 1;
  }
  78% {
    opacity: 1;
  }
  100% {
    transform: translate(230px, -50%) scale(1);
    opacity: 0.2;
  }
}

@keyframes automationBar {
  0%,
  100% {
    transform: scaleY(0.72);
    opacity: 0.68;
  }
  50% {
    transform: scaleY(1.18);
    opacity: 1;
  }
}

@keyframes trainingCardFloat {
  0%,
  100% {
    transform: translateY(0) rotate(var(--card-rot, 0deg));
  }
  50% {
    transform: translateY(-6px) rotate(var(--card-rot, 0deg));
  }
}

@keyframes trainingSignal {
  0%,
  100% {
    transform: scaleY(0.68);
    opacity: 0.58;
  }
  50% {
    transform: scaleY(1.18);
    opacity: 1;
  }
}

body[data-page="home"] .card-a { --card-rot: -2.5deg; }
body[data-page="home"] .card-b { --card-rot: 2deg; }
body[data-page="home"] .card-c { --card-rot: -1deg; }

:root[data-theme="light"] body[data-page="home"] .service-visual-card li,
:root[data-theme="light"] body[data-page="home"] .service-visual-card .card-result strong {
  color: #171a24;
}

:root[data-theme="light"] body[data-page="home"] .service-visual-stage {
  background:
    radial-gradient(circle at 18% 18%, rgba(127, 73, 255, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(127, 73, 255, 0.05), rgba(255, 255, 255, 0.92));
}

:root[data-theme="light"] body[data-page="home"] .automation-lane,
:root[data-theme="light"] body[data-page="home"] .training-card {
  background: rgba(255, 255, 255, 0.88);
}

:root[data-theme="light"] body[data-page="home"] .home-award-copy strong,
:root[data-theme="light"] body[data-page="home"] .hero-home-proof p,
:root[data-theme="light"] body[data-page="home"] .hero-home-pills span,
:root[data-theme="light"] body[data-page="home"] .home-metric-value,
:root[data-theme="light"] body[data-page="home"] .home-metric-card h3,
:root[data-theme="light"] body[data-page="home"] .home-testimonial-quote,
:root[data-theme="light"] body[data-page="home"] .home-testimonial-results span,
:root[data-theme="light"] body[data-page="home"] .home-testimonial-author strong {
  color: #171a24;
}

:root[data-theme="light"] body[data-page="home"] .home-testimonial-dot {
  background: rgba(23, 26, 36, 0.16);
}

:root[data-theme="light"] body[data-page="home"] .home-testimonial-dot:hover,
:root[data-theme="light"] body[data-page="home"] .home-testimonial-dot:focus-visible {
  background: rgba(23, 26, 36, 0.32);
}

:root[data-theme="light"] body[data-page="home"] .home-location-map {
  background:
    radial-gradient(circle at 24% 20%, rgba(127, 73, 255, 0.16), rgba(127, 73, 255, 0) 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 243, 255, 0.94));
}

:root[data-theme="light"] body[data-page="home"] .home-location-map-chip,
:root[data-theme="light"] body[data-page="home"] .home-location-fact,
:root[data-theme="light"] body[data-page="home"] .home-location-badge {
  background: rgba(255, 255, 255, 0.88);
}

:root[data-theme="light"] body[data-page="home"] .home-location-fact strong,
:root[data-theme="light"] body[data-page="home"] .home-location-fact a,
:root[data-theme="light"] body[data-page="home"] .home-location-body h2,
:root[data-theme="light"] body[data-page="home"] .home-location-badge,
:root[data-theme="light"] body[data-page="home"] .home-location-map-chip {
  color: #171a24;
}

@media (max-width: 1180px) {
  body[data-page="about"] .about-bio-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .home-profile-cta-shell {
    grid-template-columns: 1fr;
  }

  body[data-page="projects"] .demo-app-body,
  body[data-page="projects"] .demo-pane-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="projects"] .demo-app-body {
    min-height: auto;
  }

  body[data-page="projects"] .demo-app-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  body[data-page="projects"] .demo-sidebar-panel {
    min-height: 100%;
  }

  body[data-page="home"] .home-metric-grid,
  body[data-page="home"] .service-visual-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="home"] .home-testimonial-quote {
    max-width: 24ch;
  }

  body[data-page="home"] .home-location-card {
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .home-location-map {
    min-height: 240px;
  }
}

@media (max-width: 900px) {
  body[data-page="about"] .about-bio-media {
    max-width: 680px;
    width: 100%;
    margin-inline: auto;
  }

  body[data-page="about"] .about-bio-copy {
    padding: 18px;
  }

  body[data-page="home"] .hero-home-simple {
    min-height: auto;
    padding-top: 22px;
  }

  body[data-page="home"] .hero-home-shell {
    gap: 14px;
  }

  body[data-page="home"] .home-award {
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
  }

  body[data-page="home"] .hero-tool-cloud.home-award {
    justify-content: center;
  }

  body[data-page="home"] .hero-home-title {
    max-width: 100%;
    font-size: clamp(3rem, 14vw, 4.9rem);
  }

  body[data-page="home"] .hero-home-proof {
    display: grid;
    gap: 10px;
    justify-items: start;
  }

  body[data-page="home"] .hero-home-proof p {
    justify-content: flex-start;
  }

  body[data-page="home"] .hero-home-pills,
  body[data-page="home"] .hero-home-stack-row {
    justify-content: flex-start;
  }

  body[data-page="home"] .hero-home-actions {
    display: grid;
    width: 100%;
  }

  body[data-page="home"] .hero-home-actions .btn {
    width: 100%;
  }

  body[data-page="home"] .home-metric-grid,
  body[data-page="home"] .service-visual-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .home-testimonials-carousel {
    padding: 20px;
  }

  body[data-page="home"] .home-testimonials-topline,
  body[data-page="home"] .home-testimonials-footer {
    flex-direction: column;
    justify-content: center;
  }

  body[data-page="home"] .home-testimonial-quote {
    max-width: 100%;
  }

  body[data-page="home"] .home-testimonial-results {
    justify-content: center;
  }

  body[data-page="home"] .home-location-card {
    padding: 18px;
  }

  body[data-page="home"] .home-location-head {
    flex-direction: column;
    justify-content: center;
  }

  body[data-page="home"] .home-location-map {
    min-height: 220px;
  }

  body[data-page="home"] .home-location-actions {
    display: grid;
    width: 100%;
  }

  body[data-page="home"] .home-location-actions .btn {
    width: 100%;
  }

  body[data-page="home"] .home-profile-cta-shell,
  body[data-page="home"] .home-profile-cta-copy,
  body[data-page="home"] .home-profile-cta-side,
  body[data-page="projects"] .demo-app,
  body[data-page="projects"] .demo-pane,
  body[data-page="projects"] .demo-pane-header {
    text-align: center;
    justify-items: center;
  }

  body[data-page="home"] .home-profile-cta-copy h2 {
    max-width: 100%;
  }

  body[data-page="home"] .home-profile-cta-side {
    justify-items: center;
    justify-content: center;
  }

  body[data-page="projects"] .demo-app-topbar,
  body[data-page="projects"] .demo-app-toolbar,
  body[data-page="projects"] .demo-app-tabs,
  body[data-page="projects"] .demo-pane-badges,
  body[data-page="projects"] .demo-activity-strip,
  body[data-page="projects"] .demo-window-bar {
    justify-content: center;
  }

  body[data-page="projects"] .demo-app-toolbar {
    width: 100%;
    align-items: center;
  }

  body[data-page="projects"] .demo-app-toolbar .btn {
    width: 100%;
  }

  body[data-page="projects"] .demo-app-sidebar {
    grid-template-columns: 1fr;
  }

  body[data-page="projects"] .demo-kpi-grid,
  body[data-page="projects"] .demo-pane-grid,
  body[data-page="projects"] .demo-column-board,
  body[data-page="projects"] .demo-workflow {
    grid-template-columns: 1fr;
  }

  body[data-page="projects"] .demo-workflow {
    gap: 12px;
    min-height: auto;
  }

  body[data-page="projects"] .demo-flow-link {
    display: none;
  }

  body[data-page="projects"] .demo-flow-node {
    text-align: center;
    --node-offset: 0px;
    animation: none;
  }

  body[data-page="projects"] .demo-list-row,
  body[data-page="projects"] .demo-board-col,
  body[data-page="projects"] .demo-kpi-card {
    justify-items: center;
  }

  body[data-page="projects"] .demo-user-card,
  body[data-page="projects"] .demo-app-brand {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 640px) {
  body[data-page="about"] .about-bio-copy h2 {
    font-size: clamp(1.7rem, 10.5vw, 2.45rem);
  }

  body[data-page="home"] .hero-home-title {
    font-size: clamp(2.7rem, 13.4vw, 4.2rem);
  }

  body[data-page="home"] .hero-home-lead {
    font-size: 0.98rem;
  }

  body[data-page="home"] .hero-home-pills {
    gap: 8px;
  }

  body[data-page="home"] .hero-home-pills span {
    min-height: 34px;
    padding-inline: 13px;
    font-size: 0.72rem;
    white-space: normal;
  }

  body[data-page="home"] .home-metric-card {
    padding: 18px;
  }

  body[data-page="home"] .service-visual-card {
    padding: 18px;
  }

  body[data-page="home"] .service-visual-stage {
    height: 200px;
  }

  body[data-page="home"] .home-testimonials-proof,
  body[data-page="home"] .home-testimonials-note {
    font-size: 0.9rem;
  }

  body[data-page="home"] .home-testimonial-quote {
    font-size: clamp(1.52rem, 8vw, 2.25rem);
    line-height: 1.06;
  }

  body[data-page="home"] .home-testimonial-results span {
    min-height: 34px;
    padding-inline: 12px;
    font-size: 0.7rem;
    white-space: normal;
  }

  body[data-page="home"] .home-location-body h2 {
    font-size: clamp(1.72rem, 11vw, 2.5rem);
  }

  body[data-page="home"] .home-location-lead {
    font-size: 0.92rem;
  }

  body[data-page="home"] .home-location-fact {
    padding: 13px 14px;
  }

  body[data-page="home"] .home-location-fact strong,
  body[data-page="home"] .home-location-fact a {
    font-size: 0.96rem;
  }

  body[data-page="projects"] .demo-app {
    padding: 0;
    border-radius: 28px;
  }

  body[data-page="projects"] .demo-window-bar {
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
  }

  body[data-page="projects"] .demo-app-topbar {
    gap: 14px;
  }

  body[data-page="projects"] .demo-app-brand strong {
    font-size: 1rem;
  }

  body[data-page="projects"] .demo-app-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  body[data-page="projects"] .demo-app-tab {
    width: 100%;
  }

  body[data-page="projects"] .demo-pane-header h3 {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }

  body[data-page="projects"] .demo-screen,
  body[data-page="projects"] .demo-sidebar-panel {
    padding: 16px;
  }

  body[data-page="projects"] .demo-screen-head {
    flex-direction: column;
    align-items: center;
  }

  body[data-page="projects"] .demo-user-card {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  body[data-page="projects"] .demo-list-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  body[data-page="projects"] .demo-workflow {
    padding: 6px 0;
  }

  body[data-page="projects"] .demo-flow-node {
    padding: 14px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .hero-tool-cloud span,
  body[data-page="projects"] .demo-ring,
  body[data-page="projects"] .demo-kpi-bar span,
  body[data-page="projects"] .demo-flow-node,
  body[data-page="projects"] .demo-flow-link::after,
  body[data-page="projects"] .demo-node-glyph span,
  body[data-page="home"] .service-visual-card.reveal.is-visible .diagnostic-beam,
  body[data-page="home"] .service-visual-card.reveal.is-visible .diagnostic-grid span,
  body[data-page="home"] .service-visual-card.reveal.is-visible .diagnostic-node,
  body[data-page="home"] .service-visual-card.reveal.is-visible .lane-dot,
  body[data-page="home"] .service-visual-card.reveal.is-visible .automation-bars span,
  body[data-page="home"] .service-visual-card.reveal.is-visible .training-card,
  body[data-page="home"] .service-visual-card.reveal.is-visible .training-signal span,
  body[data-page="home"] .home-testimonials-track {
    animation: none;
    transition: none;
  }
}

@keyframes fabOrbFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.42;
  }
  50% {
    transform: translate3d(6px, -10px, 0) scale(1.08);
    opacity: 0.78;
  }
}

@keyframes fabOrbFloatAlt {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.28;
  }
  50% {
    transform: translate3d(-8px, -12px, 0) scale(1.14);
    opacity: 0.58;
  }
}

@media (max-width: 900px) {
  body[data-page-mode="multi"] .page-shell {
    padding-top: calc(var(--header-h) + 22px);
  }

  body[data-page-mode="multi"] .site-header {
    z-index: 136;
    --fab-progress: 0;
    position: fixed;
    top: 10px;
    left: 12px;
    right: auto;
    bottom: auto;
    width: calc(100vw - 24px);
    height: 64px;
    min-height: 64px;
    padding: 0 12px 0 14px;
    border: 1px solid var(--surface-border-soft);
    border-radius: 24px;
    background: rgba(8, 12, 20, 0.78);
    box-shadow: 0 18px 46px rgba(2, 4, 10, 0.36);
    backdrop-filter: blur(16px) saturate(1.06);
    -webkit-backdrop-filter: blur(16px) saturate(1.06);
    overflow: hidden;
    isolation: isolate;
    transform-origin: 50% 50%;
    backface-visibility: hidden;
    will-change: left, top, width, height, min-height, padding-left, padding-right, border-radius, transform, box-shadow, backdrop-filter;
    contain: layout style paint;
    transition:
      background 280ms cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 280ms cubic-bezier(0.22, 1, 0.36, 1),
      border-color 280ms cubic-bezier(0.22, 1, 0.36, 1),
      backdrop-filter 280ms cubic-bezier(0.22, 1, 0.36, 1),
      -webkit-backdrop-filter 280ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  :root[data-theme="light"] body[data-page-mode="multi"] .site-header {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 16px 42px rgba(67, 43, 124, 0.12);
  }

  body[data-page-mode="multi"] .site-header::before,
  body[data-page-mode="multi"] .site-header::after,
  body[data-page-mode="multi"] .site-header .strip-left::after {
    display: none;
  }

  body[data-page-mode="multi"] .site-header .strip-left {
    position: relative;
    min-height: 64px;
    transition: opacity 180ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: width, opacity, transform;
  }

  body[data-page-mode="multi"] .site-header .logo-link,
  body[data-page-mode="multi"] .site-header .header-right,
  body[data-page-mode="multi"] .site-header .theme-toggle,
  body[data-page-mode="multi"] .site-header .mobile-menu-toggle {
    transition:
      background 220ms cubic-bezier(0.22, 1, 0.36, 1),
      border-color 220ms cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity 180ms ease,
      transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: width, opacity, transform;
  }

  body[data-page-mode="multi"] .site-header .header-right {
    min-height: 64px;
    gap: 10px;
  }

  body[data-page-mode="multi"] .site-header .logo-link {
    width: 104px;
    min-width: 104px;
  }

  body[data-page-mode="multi"] .site-header .theme-toggle {
    transform-origin: center;
  }

  body[data-page-mode="multi"] .site-header .mobile-menu-toggle {
    width: 42px;
    height: 42px;
  }

  body[data-page-mode="multi"] .site-header.is-mobile-fab {
    cursor: pointer;
    backdrop-filter: blur(20px) saturate(1.12);
    -webkit-backdrop-filter: blur(20px) saturate(1.12);
  }

  body[data-page-mode="multi"] .site-header.is-mobile-fab .mobile-menu-toggle {
    border-color: rgba(198, 177, 255, 0.2);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  }

  :root[data-theme="light"] body[data-page-mode="multi"] .site-header.is-mobile-fab .mobile-menu-toggle {
    background: rgba(127, 73, 255, 0.06);
    box-shadow: inset 0 0 0 1px rgba(127, 73, 255, 0.05);
  }

  body[data-page-mode="multi"] .site-header.is-mobile-fab.is-mobile-nav-open .mobile-menu-toggle {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
  }

  body[data-page-mode="multi"] .mobile-nav {
    transition:
      opacity 260ms cubic-bezier(0.22, 1, 0.36, 1),
      visibility 260ms cubic-bezier(0.22, 1, 0.36, 1),
      backdrop-filter 260ms cubic-bezier(0.22, 1, 0.36, 1);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  body[data-page-mode="multi"] .mobile-nav-panel {
    padding-bottom: 110px;
    opacity: 0;
    transform: translate3d(0, 20px, 0) scale(0.98);
    transition:
      transform 360ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity 260ms ease;
  }

  body[data-page-mode="multi"] .mobile-nav-panel > * {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
    transition:
      transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity 220ms ease;
  }

  body[data-page-mode="multi"] .mobile-nav-links a {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition:
      transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity 220ms ease;
  }

  body[data-page-mode="multi"] .mobile-nav.is-open .mobile-nav-panel {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }

  body[data-page-mode="multi"] .mobile-nav.is-open .mobile-nav-panel > * {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  body[data-page-mode="multi"] .mobile-nav.is-open .mobile-nav-links a {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  body[data-page-mode="multi"] .mobile-nav.is-open .mobile-nav-kicker {
    transition-delay: 40ms;
  }

  body[data-page-mode="multi"] .mobile-nav.is-open .mobile-nav-links a:nth-child(1) {
    transition-delay: 70ms;
  }

  body[data-page-mode="multi"] .mobile-nav.is-open .mobile-nav-links a:nth-child(2) {
    transition-delay: 100ms;
  }

  body[data-page-mode="multi"] .mobile-nav.is-open .mobile-nav-links a:nth-child(3) {
    transition-delay: 130ms;
  }

  body[data-page-mode="multi"] .mobile-nav.is-open .mobile-nav-links a:nth-child(4) {
    transition-delay: 160ms;
  }

  body[data-page-mode="multi"] .mobile-nav.is-open .mobile-nav-meta {
    transition-delay: 190ms;
  }

  body[data-page-mode="multi"] .mobile-nav {
    --mobile-nav-origin-x: calc(100vw - 34px);
    --mobile-nav-origin-y: calc(100vh - 34px);
    background: rgba(4, 6, 12, 0.18);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }

  body[data-page-mode="multi"] .mobile-nav-panel {
    min-height: 100dvh;
    padding: 0;
    background: transparent;
  }

  body[data-page-mode="multi"] .mobile-nav-kicker,
  body[data-page-mode="multi"] .mobile-nav-meta p {
    display: none;
  }

  body[data-page-mode="multi"] .mobile-nav-links,
  body[data-page-mode="multi"] .mobile-nav-meta {
    display: contents;
  }

  body[data-page-mode="multi"] .mobile-nav-links a,
  body[data-page-mode="multi"] .mobile-nav-email,
  body[data-page-mode="multi"] .mobile-nav-cookie-btn {
    position: fixed;
    left: var(--mobile-nav-origin-x);
    top: var(--mobile-nav-origin-y);
    z-index: 146;
    width: fit-content;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(185, 159, 255, 0.26);
    background: rgba(9, 13, 22, 0.88);
    box-shadow:
      0 16px 34px rgba(1, 3, 10, 0.26),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) translate3d(0, 0, 0) scale(0.74);
    transform-origin: center;
    transition:
      transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity 220ms ease,
      background 220ms ease,
      border-color 220ms ease;
  }

  body[data-page-mode="multi"] .mobile-nav-links a {
    justify-content: center;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 999px;
    font-family: "Space Mono", monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
  }

  body[data-page-mode="multi"] .mobile-nav-email,
  body[data-page-mode="multi"] .mobile-nav-cookie-btn {
    font-family: "Manrope", sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: #eef3ff;
    white-space: nowrap;
  }

  body[data-page-mode="multi"] .mobile-nav-cookie-btn {
    cursor: pointer;
  }

  body[data-page-mode="multi"] .mobile-nav.is-open .mobile-nav-links a,
  body[data-page-mode="multi"] .mobile-nav.is-open .mobile-nav-email,
  body[data-page-mode="multi"] .mobile-nav.is-open .mobile-nav-cookie-btn {
    opacity: 1;
    pointer-events: auto;
  }

  body[data-page-mode="multi"] .mobile-nav.is-origin-top .mobile-nav-links a:nth-child(1) {
    --menu-bubble-x: -108px;
    --menu-bubble-y: 24px;
  }

  body[data-page-mode="multi"] .mobile-nav.is-origin-top .mobile-nav-links a:nth-child(2) {
    --menu-bubble-x: -132px;
    --menu-bubble-y: 80px;
  }

  body[data-page-mode="multi"] .mobile-nav.is-origin-top .mobile-nav-links a:nth-child(3) {
    --menu-bubble-x: -122px;
    --menu-bubble-y: 136px;
  }

  body[data-page-mode="multi"] .mobile-nav.is-origin-top .mobile-nav-links a:nth-child(4) {
    --menu-bubble-x: -92px;
    --menu-bubble-y: 192px;
  }

  body[data-page-mode="multi"] .mobile-nav.is-origin-top .mobile-nav-email {
    --menu-bubble-x: -132px;
    --menu-bubble-y: 248px;
  }

  body[data-page-mode="multi"] .mobile-nav.is-origin-top .mobile-nav-cookie-btn {
    --menu-bubble-x: -106px;
    --menu-bubble-y: 304px;
  }

  body[data-page-mode="multi"] .mobile-nav.is-origin-bottom .mobile-nav-links a:nth-child(1) {
    --menu-bubble-x: -110px;
    --menu-bubble-y: -28px;
  }

  body[data-page-mode="multi"] .mobile-nav.is-origin-bottom .mobile-nav-links a:nth-child(2) {
    --menu-bubble-x: -136px;
    --menu-bubble-y: -84px;
  }

  body[data-page-mode="multi"] .mobile-nav.is-origin-bottom .mobile-nav-links a:nth-child(3) {
    --menu-bubble-x: -126px;
    --menu-bubble-y: -140px;
  }

  body[data-page-mode="multi"] .mobile-nav.is-origin-bottom .mobile-nav-links a:nth-child(4) {
    --menu-bubble-x: -94px;
    --menu-bubble-y: -196px;
  }

  body[data-page-mode="multi"] .mobile-nav.is-origin-bottom .mobile-nav-email {
    --menu-bubble-x: -138px;
    --menu-bubble-y: -252px;
  }

  body[data-page-mode="multi"] .mobile-nav.is-origin-bottom .mobile-nav-cookie-btn {
    --menu-bubble-x: -108px;
    --menu-bubble-y: -308px;
  }

  body[data-page-mode="multi"] .mobile-nav-links a,
  body[data-page-mode="multi"] .mobile-nav-email,
  body[data-page-mode="multi"] .mobile-nav-cookie-btn {
    transform: translate(-50%, -50%) translate3d(0, 0, 0) scale(0.74);
  }

  body[data-page-mode="multi"] .mobile-nav.is-open .mobile-nav-links a,
  body[data-page-mode="multi"] .mobile-nav.is-open .mobile-nav-email,
  body[data-page-mode="multi"] .mobile-nav.is-open .mobile-nav-cookie-btn {
    transform: translate(-50%, -50%) translate3d(var(--menu-bubble-x, 0), var(--menu-bubble-y, 0), 0) scale(1);
  }

  body[data-page-mode="multi"] .mobile-nav.is-open .mobile-nav-links a:nth-child(1) {
    transition-delay: 40ms;
  }

  body[data-page-mode="multi"] .mobile-nav.is-open .mobile-nav-links a:nth-child(2) {
    transition-delay: 80ms;
  }

  body[data-page-mode="multi"] .mobile-nav.is-open .mobile-nav-links a:nth-child(3) {
    transition-delay: 120ms;
  }

  body[data-page-mode="multi"] .mobile-nav.is-open .mobile-nav-links a:nth-child(4) {
    transition-delay: 160ms;
  }

  body[data-page-mode="multi"] .mobile-nav.is-open .mobile-nav-email {
    transition-delay: 200ms;
  }

  body[data-page-mode="multi"] .mobile-nav.is-open .mobile-nav-cookie-btn {
    transition-delay: 230ms;
  }

  .cookie-manage-btn {
    display: none !important;
  }
}

@media (max-width: 900px) {
  body[data-page-mode="multi"] .mobile-nav-panel,
  body[data-page-mode="multi"] .mobile-nav-links,
  body[data-page-mode="multi"] .mobile-nav-meta,
  body[data-page-mode="multi"] .mobile-nav-links a,
  body[data-page-mode="multi"] .site-main,
  body[data-page-mode="multi"] .site-main .section-head,
  body[data-page-mode="multi"] .site-main .page-hero-grid > div,
  body[data-page-mode="multi"] .site-main .page-side-card,
  body[data-page-mode="multi"] .site-main .content-panel,
  body[data-page-mode="multi"] .site-main .contact-panel,
  body[data-page-mode="multi"] .site-main .feature-card,
  body[data-page-mode="multi"] .site-main .page-cta-band,
  body[data-page-mode="multi"] .site-main .page-link-grid a,
  body[data-page-mode="multi"] .site-main .method-playfield,
  body[data-page-mode="multi"] .site-main .positioning-copy,
  body[data-page-mode="multi"] .site-main .positioning-playfield,
  body[data-page-mode="multi"] .site-main .cta-playfield,
  body[data-page-mode="multi"] .site-main .timeline,
  body[data-page-mode="multi"] .site-main .step,
  body[data-page-mode="multi"] .footer-rich,
  body.legal-page .legal-wrap,
  body.legal-page .legal-hero,
  body.legal-page .legal-card,
  body[data-page="home"] .hero-home-shell,
  body[data-page="home"] .home-award,
  body[data-page="home"] .home-award-copy,
  body[data-page="home"] .hero-home-proof,
  body[data-page="home"] .hero-home-stack,
  body[data-page="home"] .home-metric-card,
  body[data-page="home"] .service-visual-card {
    text-align: center;
  }

  body[data-page-mode="multi"] .mobile-nav-panel,
  body[data-page-mode="multi"] .mobile-nav-links,
  body[data-page-mode="multi"] .mobile-nav-meta,
  body[data-page-mode="multi"] .site-main .section-head,
  body[data-page-mode="multi"] .site-main .page-hero-grid > div,
  body[data-page-mode="multi"] .site-main .page-side-card,
  body[data-page-mode="multi"] .site-main .content-panel,
  body[data-page-mode="multi"] .site-main .contact-panel,
  body[data-page-mode="multi"] .site-main .feature-card,
  body[data-page-mode="multi"] .site-main .page-cta-band,
  body[data-page-mode="multi"] .site-main .page-link-grid a,
  body[data-page-mode="multi"] .site-main .method-playfield,
  body[data-page-mode="multi"] .site-main .positioning-copy,
  body[data-page-mode="multi"] .site-main .positioning-playfield,
  body[data-page-mode="multi"] .site-main .cta-playfield,
  body[data-page="home"] .hero-home-shell,
  body[data-page="home"] .home-award,
  body[data-page="home"] .home-award-copy,
  body[data-page="home"] .hero-home-proof,
  body[data-page="home"] .hero-home-stack,
  body[data-page="home"] .home-metric-card,
  body[data-page="home"] .service-visual-card,
  body.legal-page .legal-wrap,
  body.legal-page .legal-hero,
  body.legal-page .legal-card {
    justify-items: center;
  }

  body[data-page-mode="multi"] .mobile-nav-links a,
  body[data-page-mode="multi"] .site-main .page-actions,
  body[data-page-mode="multi"] .site-main .chip-list,
  body[data-page-mode="multi"] .footer-nav,
  body[data-page-mode="multi"] .site-main .positioning-tags,
  body[data-page-mode="multi"] .site-main .cta-actions,
  body[data-page="home"] .home-award,
  body[data-page="home"] .hero-home-proof p,
  body[data-page="home"] .hero-home-pills,
  body[data-page="home"] .hero-home-actions,
  body[data-page="home"] .hero-home-stack-row {
    justify-content: center;
  }

  body[data-page-mode="multi"] .mobile-nav-links a {
    text-align: center;
  }

  body[data-page-mode="multi"] .footer-rich {
    justify-items: center;
  }

  body[data-page-mode="multi"] .footer-nav {
    justify-content: center;
  }

  body[data-page-mode="multi"] .page-side-list,
  body[data-page-mode="multi"] .mini-list,
  body[data-page-mode="multi"] .contact-list,
  body[data-page="home"] .service-visual-card ul,
  body[data-page-mode="multi"] .cards .card ul {
    justify-items: center;
  }

  body[data-page-mode="multi"] .page-side-list li,
  body[data-page-mode="multi"] .mini-list li,
  body[data-page-mode="multi"] .contact-list li,
  body[data-page="home"] .service-visual-card li,
  body[data-page-mode="multi"] .cards .card li {
    padding-left: 0;
    text-align: center;
  }

  body[data-page-mode="multi"] .page-side-list li::before,
  body[data-page-mode="multi"] .mini-list li::before,
  body[data-page-mode="multi"] .contact-list li::before,
  body[data-page="home"] .service-visual-card li::before,
  body[data-page-mode="multi"] .cards .card li::before {
    position: static;
    display: block;
    margin: 0 auto 8px;
  }

  body[data-page-mode="multi"] .timeline {
    padding-left: 0;
    justify-items: center;
  }

  body[data-page-mode="multi"] .timeline-line,
  body[data-page-mode="multi"] .step::before {
    display: none;
  }

  body[data-page-mode="multi"] .method-pings p,
  body[data-page-mode="multi"] .cta-play-status {
    justify-content: center;
  }

  body[data-page-mode="multi"] .cta-play-slots p {
    justify-content: center;
    text-align: center;
  }

  body[data-page-mode="multi"] .step-index {
    margin-inline: auto;
  }

  body[data-page="home"] .home-award {
    max-width: 100%;
  }

  body[data-page="home"] .hero-tool-cloud.home-award {
    justify-content: center;
  }

  body[data-page="home"] .home-award-copy {
    justify-items: center;
    text-align: center;
  }

  body[data-page="home"] .hero-home-proof {
    justify-items: center;
  }

  body[data-page="home"] .hero-home-proof p {
    justify-content: center;
  }

  body[data-page="home"] .hero-home-pills,
  body[data-page="home"] .hero-home-stack-row {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page-mode="multi"] .site-header::after,
  body[data-page-mode="multi"] .site-header,
  body[data-page-mode="multi"] .site-header .strip-left,
  body[data-page-mode="multi"] .site-header .logo-link,
  body[data-page-mode="multi"] .site-header .header-right,
  body[data-page-mode="multi"] .site-header .theme-toggle,
  body[data-page-mode="multi"] .site-header .mobile-menu-toggle,
  body[data-page-mode="multi"] .mobile-nav,
  body[data-page-mode="multi"] .mobile-nav-panel,
  body[data-page-mode="multi"] .mobile-nav-panel > *,
  body[data-page-mode="multi"] .mobile-nav-links a {
    transition: none !important;
    animation: none !important;
  }
}

/* projectgraph1 overrides */
body[data-page="projects"] .demo-sidebar-stack .is-current {
  position: relative;
  overflow: hidden;
  padding-left: 34px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body[data-page="projects"] .demo-sidebar-stack .is-current::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 14px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(234, 226, 255, 0.96);
  transform: translateY(-50%);
  box-shadow: 0 0 0 0 rgba(143, 92, 255, 0.34);
  animation: demoLiveDot 2.45s ease-in-out infinite;
}

body[data-page="projects"] .demo-sidebar-stack .is-current::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  transform: translateX(-120%);
  animation: demoScreenSweep 5.8s ease-in-out infinite;
  pointer-events: none;
}

body[data-page="projects"] .demo-screen,
body[data-page="projects"] .demo-kpi-card,
body[data-page="projects"] .demo-status-pill {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

body[data-page="projects"] .demo-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 26%, rgba(255, 255, 255, 0.06) 48%, transparent 70%);
  transform: translateX(-135%);
  opacity: 0.34;
  pointer-events: none;
  animation: demoScreenSweep 7.4s ease-in-out infinite;
}

body[data-page="projects"] .demo-kpi-card::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 44%;
  height: 1px;
  background: linear-gradient(90deg, rgba(143, 92, 255, 0), rgba(214, 196, 255, 0.88), rgba(143, 92, 255, 0));
  opacity: 0.72;
  transform: translateX(-120%);
  animation: demoCardLine 4.8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  pointer-events: none;
}

body[data-page="projects"] .demo-status-pill {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  animation: demoPillBreathe 3.8s ease-in-out infinite;
}

body[data-page="projects"] .demo-status-pill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: translateX(-120%);
  opacity: 0.42;
  animation: demoScreenSweep 5.4s ease-in-out infinite;
  pointer-events: none;
}

body[data-page="projects"] .demo-workflow-graph {
  position: relative;
  display: block;
  min-height: 360px;
  padding: 18px 12px 14px;
}

body[data-page="projects"] .demo-workflow-graph::before {
  inset: 12px 8px 10px;
  border-radius: 26px;
  opacity: 0.34;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(143, 92, 255, 0.07), rgba(143, 92, 255, 0));
  background-size: 34px 34px, 34px 34px, auto;
}

body[data-page="projects"] .demo-workflow-graph::after {
  content: "";
  position: absolute;
  inset: 28px 64px 18px 56px;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 50%, rgba(143, 92, 255, 0.12), rgba(143, 92, 255, 0));
  opacity: 0.58;
  filter: blur(24px);
  pointer-events: none;
}

body[data-page="projects"] .demo-flow-network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

body[data-page="projects"] .demo-workflow-graph .demo-flow-link {
  position: static;
  top: auto;
  left: auto;
  width: auto;
  height: auto;
  display: block;
  fill: none;
  stroke: rgba(226, 214, 255, 0.26);
  stroke-width: 2.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 8 12;
  stroke-dashoffset: 72;
  opacity: 0.38;
  filter: drop-shadow(0 0 10px rgba(143, 92, 255, 0.08));
  background: none;
  transition:
    stroke 220ms ease,
    opacity 220ms ease,
    filter 220ms ease;
  vector-effect: non-scaling-stroke;
}

body[data-page="projects"] .demo-workflow-graph .demo-flow-link::after {
  display: none;
}

body[data-page="projects"] .demo-workflow-graph .demo-flow-link.is-live,
body[data-page="projects"] .demo-workflow-graph .demo-flow-link.is-idle-live {
  stroke: rgba(242, 235, 255, 0.98);
  opacity: 1;
  filter: drop-shadow(0 0 12px rgba(143, 92, 255, 0.26));
}

body[data-page="projects"] .demo-workflow-graph .demo-flow-link.is-live {
  animation: demoPathFlow 0.9s linear infinite;
}

body[data-page="projects"] .demo-workflow-graph .demo-flow-link.is-idle-live {
  animation: demoPathFlow 1.45s linear infinite;
}

body[data-page="projects"] .demo-workflow-graph .demo-flow-node {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 112px;
  min-height: 122px;
  padding: 16px 10px 14px;
  gap: 7px;
  border-radius: 22px;
  opacity: 0.74;
  transform: translate3d(-50%, -50%, 0) scale(0.96);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.022)),
    rgba(10, 14, 24, 0.68);
  box-shadow: 0 14px 24px rgba(3, 5, 10, 0.16);
  will-change: transform, opacity, box-shadow;
  animation: demoNodeFloatGraph 6.2s ease-in-out infinite;
}

body[data-page="projects"] .demo-workflow-graph .demo-flow-node.is-live,
body[data-page="projects"] .demo-workflow-graph .demo-flow-node.is-idle-live {
  transform: translate3d(-50%, -50%, 0) scale(1.02);
}

body[data-page="projects"] .demo-workflow-graph .demo-node-trigger { left: 11%; top: 50%; animation-delay: 0s; }
body[data-page="projects"] .demo-workflow-graph .demo-node-condition { left: 33%; top: 50%; animation-delay: 0.28s; }
body[data-page="projects"] .demo-workflow-graph .demo-node-top { left: 56%; top: 28%; animation-delay: 0.52s; }
body[data-page="projects"] .demo-workflow-graph .demo-node-bottom { left: 56%; top: 72%; animation-delay: 0.74s; }
body[data-page="projects"] .demo-workflow-graph .demo-node-merge { left: 79%; top: 50%; animation-delay: 0.94s; }
body[data-page="projects"] .demo-workflow-graph .demo-node-action { left: 92%; top: 50%; animation-delay: 1.14s; }

body[data-page="projects"] .demo-workflow-graph .demo-node-condition,
body[data-page="projects"] .demo-workflow-graph .demo-node-merge {
  border-color: rgba(173, 139, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(143, 92, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(10, 14, 24, 0.72);
}

body[data-page="projects"] .demo-workflow-graph .demo-node-glyph {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 16px;
  background: rgba(143, 92, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

body[data-page="projects"] .demo-workflow-graph .demo-node-glyph span {
  display: none;
}

body[data-page="projects"] .demo-workflow-graph .demo-node-glyph::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: rgba(229, 218, 255, 0.72);
  box-shadow:
    -10px -10px 0 rgba(229, 218, 255, 0.48),
    0 -10px 0 rgba(229, 218, 255, 0.68),
    10px -10px 0 rgba(229, 218, 255, 0.36),
    -10px 0 0 rgba(229, 218, 255, 0.74),
    10px 0 0 rgba(229, 218, 255, 0.5),
    -10px 10px 0 rgba(229, 218, 255, 0.34),
    0 10px 0 rgba(229, 218, 255, 0.62),
    10px 10px 0 rgba(229, 218, 255, 0.8);
  transition: transform 220ms ease, filter 220ms ease, opacity 220ms ease;
}

body[data-page="projects"] .demo-workflow-graph .demo-flow-node.is-live .demo-node-glyph,
body[data-page="projects"] .demo-workflow-graph .demo-flow-node.is-idle-live .demo-node-glyph {
  transform: none;
}

body[data-page="projects"] .demo-workflow-graph .demo-flow-node.is-live .demo-node-glyph::before,
body[data-page="projects"] .demo-workflow-graph .demo-flow-node.is-idle-live .demo-node-glyph::before {
  animation: demoGlyphMatrix 820ms ease-in-out infinite;
}

body[data-page="projects"] .demo-workflow-graph .demo-flow-node strong {
  font-size: 0.95rem;
  line-height: 1.06;
  letter-spacing: 0.04em;
}

body[data-page="projects"] .demo-workflow-graph .demo-flow-node p {
  font-size: 0.7rem;
  line-height: 1.38;
}

@keyframes demoScreenSweep {
  0% {
    transform: translateX(-135%);
    opacity: 0;
  }
  16% {
    opacity: 0.22;
  }
  50% {
    opacity: 0.44;
  }
  100% {
    transform: translateX(145%);
    opacity: 0;
  }
}

@keyframes demoCardLine {
  0% {
    transform: translateX(-140%);
    opacity: 0;
  }
  18% {
    opacity: 0.58;
  }
  50% {
    opacity: 0.88;
  }
  100% {
    transform: translateX(280%);
    opacity: 0;
  }
}

@keyframes demoPillBreathe {
  0%,
  100% {
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.03),
      0 0 0 0 rgba(143, 92, 255, 0.12);
  }
  50% {
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.05),
      0 0 0 6px rgba(143, 92, 255, 0.06);
  }
}

@keyframes demoLiveDot {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(143, 92, 255, 0.36);
    transform: translateY(-50%) scale(1);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(143, 92, 255, 0);
    transform: translateY(-50%) scale(1.08);
  }
}

@keyframes demoGlyphMatrix {
  0%,
  100% {
    opacity: 0.76;
    transform: scale(1);
    filter: none;
  }
  50% {
    opacity: 1;
    transform: scale(1.16);
    filter: drop-shadow(0 0 10px rgba(143, 92, 255, 0.34));
  }
}

@keyframes demoPathFlow {
  from {
    stroke-dashoffset: 72;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes demoNodeFloatGraph {
  0%,
  100% {
    transform: translate3d(-50%, -50%, 0) scale(0.96);
  }
  50% {
    transform: translate3d(-50%, calc(-50% - 6px), 0) scale(0.985);
  }
}

@media (max-width: 1180px) {
  body[data-page="projects"] .demo-workflow-graph .demo-flow-node {
    width: 104px;
  }
}

@media (max-width: 900px) {
  body[data-page="projects"] .demo-workflow-graph {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    min-height: auto;
    padding: 6px 0;
  }

  body[data-page="projects"] .demo-workflow-graph::after,
  body[data-page="projects"] .demo-flow-network {
    display: none;
  }

  body[data-page="projects"] .demo-workflow-graph .demo-flow-node {
    position: relative;
    left: auto !important;
    top: auto !important;
    width: 100%;
    min-height: 112px;
    transform: none !important;
    animation: none;
  }

  body[data-page="projects"] .demo-workflow-graph .demo-node-merge,
  body[data-page="projects"] .demo-workflow-graph .demo-node-action {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  body[data-page="projects"] .demo-workflow-graph {
    grid-template-columns: 1fr;
  }

  body[data-page="projects"] .demo-workflow-graph .demo-node-merge,
  body[data-page="projects"] .demo-workflow-graph .demo-node-action {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="projects"] .demo-sidebar-stack .is-current::before,
  body[data-page="projects"] .demo-sidebar-stack .is-current::after,
  body[data-page="projects"] .demo-screen::after,
  body[data-page="projects"] .demo-kpi-card::after,
  body[data-page="projects"] .demo-status-pill,
  body[data-page="projects"] .demo-status-pill::after,
  body[data-page="projects"] .demo-workflow-graph .demo-flow-link,
  body[data-page="projects"] .demo-workflow-graph .demo-node-glyph::before,
  body[data-page="projects"] .demo-workflow-graph .demo-flow-node {
    animation: none !important;
    transition: none !important;
  }
}
/* onepage1 home sections */
body[data-page="home"] .about-bio-section {
  padding-top: clamp(18px, 4vw, 42px);
}

body[data-page="home"] .about-bio-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.94fr) minmax(0, 1.06fr);
  gap: clamp(18px, 3vw, 30px);
  align-items: center;
}

body[data-page="home"] .about-bio-grid-intro {
  grid-template-columns: 1fr;
  justify-items: center;
}

body[data-page="home"] .about-bio-media {
  margin: 0;
  overflow: hidden;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--surface-border-accent);
  background: var(--surface-gradient-accent);
  box-shadow: var(--shadow);
}

body[data-page="home"] .about-bio-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

body[data-page="home"] .about-bio-grid-intro .about-bio-media {
  width: min(100%, 460px);
}

body[data-page="home"] .about-bio-copy {
  display: grid;
  gap: 14px;
  padding: clamp(20px, 2.8vw, 28px);
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--surface-border-accent);
  background: var(--surface-gradient-accent);
  box-shadow: var(--shadow);
}

body[data-page="home"] .about-bio-copy h2,
body[data-page="home"] .about-bio-copy p {
  margin: 0;
}

body[data-page="home"] .about-bio-copy h2 {
  font-family: "Teko", sans-serif;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 0.96;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

body[data-page="home"] .about-bio-copy p:not(.section-kicker) {
  color: var(--muted);
  font-size: clamp(0.95rem, 1.05vw, 1.02rem);
  line-height: 1.72;
}

body[data-page="home"] .about-bio-copy-intro {
  width: min(100%, 820px);
  justify-items: center;
  text-align: center;
}

body[data-page="home"] .about-bio-copy-intro .chip-list {
  justify-content: center;
}

@media (hover: hover) and (pointer: fine) and (min-width: 901px) {
  body[data-page="home"] .about-bio-media,
  body[data-page="home"] .about-bio-copy {
    transition:
      transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 240ms cubic-bezier(0.22, 1, 0.36, 1),
      border-color 240ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  body[data-page="home"] .about-bio-media:hover,
  body[data-page="home"] .about-bio-copy:hover {
    transform: translate3d(0, -4px, 0);
    border-color: rgba(127, 73, 255, 0.32);
    box-shadow: 0 24px 56px rgba(10, 11, 18, 0.18);
  }

  :root[data-theme="light"] body[data-page="home"] .about-bio-media:hover,
  :root[data-theme="light"] body[data-page="home"] .about-bio-copy:hover {
    box-shadow: 0 18px 42px rgba(59, 43, 124, 0.12);
  }
}

@media (max-width: 1180px) {
  body[data-page="home"] .about-bio-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  body[data-page="home"] .about-bio-media {
    max-width: 680px;
    width: 100%;
    margin-inline: auto;
  }

  body[data-page="home"] .about-bio-copy {
    padding: 18px;
  }
}

@media (max-width: 640px) {
  body[data-page="home"] .about-bio-copy h2 {
    font-size: clamp(1.7rem, 10.5vw, 2.45rem);
  }
}

/* ================================================================
   AUTOM8TE — MODERNISATION VISUELLE v2
   ================================================================ */

/* ─── Fond — orbes ambiants ───────────────────────────────────── */
body {
  background-image:
    radial-gradient(ellipse 100% 55% at 68% -6%, rgba(127, 73, 255, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 72% 58% at -8% 72%, rgba(100, 56, 220, 0.055) 0%, transparent 62%),
    linear-gradient(180deg, #070912 0%, #06080f 45%, #05060b 100%);
}

:root[data-theme="light"] body {
  background-image:
    radial-gradient(ellipse 100% 55% at 68% -6%, rgba(127, 73, 255, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 72% 58% at -8% 72%, rgba(100, 56, 220, 0.03) 0%, transparent 62%),
    var(--page-bg);
}

/* ─── Section kicker — indicateur ligne ──────────────────────── */
.section-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.section-kicker::before,
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1.5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7f49ff, #be96ff);
  flex-shrink: 0;
}

/* ─── Hero — texte accent en dégradé ─────────────────────────── */
body[data-page="home"] .hero-home-accent {
  background: linear-gradient(138deg, #d4b8ff 0%, #9f5fff 46%, #6e28d8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

:root[data-theme="light"] body[data-page="home"] .hero-home-accent {
  background: linear-gradient(138deg, #4e18c0 0%, #7f49ff 55%, #a07aff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Hero title — tracking légèrement serré ─────────────────── */
body[data-page="home"] .hero-home-title {
  letter-spacing: -0.067em;
}

/* ─── Métriques — valeurs en dégradé ─────────────────────────── */
body[data-page="home"] .home-metric-value {
  background: linear-gradient(138deg, #ede2ff 0%, #c09aff 35%, #7f49ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

:root[data-theme="light"] body[data-page="home"] .home-metric-value {
  background: linear-gradient(138deg, #3e0eb0 0%, #7f49ff 55%, #a87dff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Métriques — trait supérieur en dégradé ─────────────────── */
body[data-page="home"] .home-metric-card {
  position: relative;
  overflow: hidden;
}

body[data-page="home"] .home-metric-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent 0%, rgba(175, 136, 255, 0.6) 38%, rgba(175, 136, 255, 0.6) 62%, transparent 100%);
  pointer-events: none;
}

/* ================================================================
   METRIC CARDS — Hover animations (one per card, via :nth-child)
   ================================================================ */

/* ─── Card 1 "3 étapes" : triple rebond + barre de progression ── */
body[data-page="home"] .home-metric-card:nth-child(1)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2.5px;
  width: 0;
  background: linear-gradient(90deg, #7f49ff, #c4a0ff);
  border-radius: 0 2px 0 0;
  transition: width 0.55s cubic-bezier(0.4, 0, 0.2, 1) 0.05s;
  pointer-events: none;
}

@media (hover: hover) {
  body[data-page="home"] .home-metric-card:nth-child(1):hover::after {
    width: 100%;
  }

  body[data-page="home"] .home-metric-card:nth-child(1):hover .home-metric-value {
    animation: metric-triple-bounce 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  }
}

@keyframes metric-triple-bounce {
  0%   { transform: translateY(0) scale(1); }
  18%  { transform: translateY(-10px) scale(1.13); }
  36%  { transform: translateY(0)    scale(1); }
  54%  { transform: translateY(-6px) scale(1.07); }
  70%  { transform: translateY(0)    scale(1); }
  84%  { transform: translateY(-3px) scale(1.03); }
  100% { transform: translateY(0)    scale(1); }
}

/* ─── Card 2 "1 contact" : ripple/sonar depuis le centre ──────── */
body[data-page="home"] .home-metric-card:nth-child(2)::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1.5px solid rgba(127, 73, 255, 0);
  transform: translate(-50%, -50%) scale(0.4);
  pointer-events: none;
}

@media (hover: hover) {
  body[data-page="home"] .home-metric-card:nth-child(2):hover::after {
    animation: metric-sonar 1.1s ease-out forwards;
  }

  body[data-page="home"] .home-metric-card:nth-child(2):hover .home-metric-value {
    animation: metric-pulse 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  }
}

@keyframes metric-sonar {
  0%   { border-color: rgba(127, 73, 255, 0.65); transform: translate(-50%, -50%) scale(0.4); }
  100% { border-color: rgba(127, 73, 255, 0);    transform: translate(-50%, -50%) scale(5); }
}

@keyframes metric-pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.18); }
  100% { transform: scale(1); }
}

/* ─── Card 3 "Moins" : sweep horizontal (tâches effacées) ──────── */
body[data-page="home"] .home-metric-card:nth-child(3)::after {
  content: '';
  position: absolute;
  top: 0;
  left: -70%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(127, 73, 255, 0.05) 40%,
    rgba(127, 73, 255, 0.11) 50%,
    rgba(127, 73, 255, 0.05) 60%,
    transparent 100%
  );
  pointer-events: none;
}

@media (hover: hover) {
  body[data-page="home"] .home-metric-card:nth-child(3):hover::after {
    animation: metric-wipe 0.55s ease-in-out forwards;
  }

  body[data-page="home"] .home-metric-card:nth-child(3):hover .home-metric-value {
    animation: metric-slide-off 0.45s cubic-bezier(0.4, 0, 0.2, 1) both;
  }
}

@keyframes metric-wipe {
  0%   { left: -70%; }
  100% { left: 130%; }
}

@keyframes metric-slide-off {
  0%   { transform: translateX(0);    opacity: 1; }
  45%  { transform: translateX(-8px); opacity: 0.6; }
  100% { transform: translateX(-4px); opacity: 1; }
}

/* ─── Card 4 "Plus" : rayon de lumière diagonal ──────────────── */
body[data-page="home"] .home-metric-card:nth-child(4)::after {
  content: '';
  position: absolute;
  top: -60%;
  left: -85%;
  width: 42%;
  height: 220%;
  background: linear-gradient(
    110deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 38%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.04) 62%,
    transparent 100%
  );
  transform: skewX(-14deg);
  pointer-events: none;
}

@media (hover: hover) {
  body[data-page="home"] .home-metric-card:nth-child(4):hover::after {
    animation: metric-light-beam 0.6s ease-in-out forwards;
  }

  body[data-page="home"] .home-metric-card:nth-child(4):hover .home-metric-value {
    animation: metric-glow 0.75s ease forwards;
  }
}

@keyframes metric-light-beam {
  0%   { left: -85%; }
  100% { left: 130%; }
}

@keyframes metric-glow {
  0%   { text-shadow: none; }
  45%  { text-shadow: 0 0 28px rgba(165, 123, 255, 0.7), 0 0 56px rgba(127, 73, 255, 0.35); }
  100% { text-shadow: 0 0 14px rgba(165, 123, 255, 0.22); }
}

/* ─── Card-tag (01 / 02 / 03) — dégradé ─────────────────────── */
.card-tag {
  background: linear-gradient(138deg, #ceb5ff 0%, #9a5fff 52%, #6e28d8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-size: 1.5rem;
}

body[data-page="home"] .service-visual-card .card-tag {
  font-size: 1.35rem;
}

:root[data-theme="light"] .card-tag {
  background: linear-gradient(138deg, #4816bc 0%, #7f49ff 55%, #a480ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Cards projets — highlight intérieur supérieur ─────────── */
.card {
  box-shadow: var(--shadow), inset 0 1px 0 rgba(185, 159, 255, 0.08);
}

.card:hover {
  box-shadow: 0 28px 68px rgba(5, 7, 16, 0.3), inset 0 1px 0 rgba(185, 159, 255, 0.18);
  border-color: rgba(175, 145, 255, 0.28);
}

:root[data-theme="light"] .card {
  box-shadow: var(--shadow), inset 0 1px 0 rgba(127, 73, 255, 0.06);
}

/* ─── Bouton primaire — dégradé renforcé + brillance ─────────── */
.btn-primary {
  background: linear-gradient(135deg, #5b1de2 0%, #7f49ff 52%, #a070ff 100%);
  box-shadow:
    0 0 0 1px rgba(185, 159, 255, 0.32),
    0 12px 30px rgba(127, 73, 255, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #671ef0 0%, #8c58ff 52%, #ad80ff 100%);
  box-shadow:
    0 0 0 1px rgba(185, 159, 255, 0.44),
    0 18px 40px rgba(127, 73, 255, 0.54),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

/* ─── Service cards — highlight + hover amélioré ────────────── */
body[data-page="home"] .service-visual-card {
  box-shadow: var(--shadow), inset 0 1px 0 rgba(185, 159, 255, 0.08);
  transition:
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 240ms ease,
    border-color 240ms ease;
}

body[data-page="home"] .service-visual-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 68px rgba(5, 7, 16, 0.28), inset 0 1px 0 rgba(185, 159, 255, 0.18);
  border-color: rgba(175, 145, 255, 0.36);
}

/* ─── Service stage diagnostic — animation de scan ──────────── */
body[data-page="home"] .stage-diagnostic .diagnostic-beam {
  animation: diagBeamSlide 3.4s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@keyframes diagBeamSlide {
  0%   { left: -36%; opacity: 0; }
  8%   { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 108%; opacity: 0; }
}

/* ─── Service stage diagnostic — nœuds apparaissent ─────────── */
body[data-page="home"] .stage-diagnostic .diagnostic-node {
  animation: diagNodeReveal 3.4s ease-in-out infinite;
}

body[data-page="home"] .stage-diagnostic .node-one { animation-delay: 0.6s; }
body[data-page="home"] .stage-diagnostic .node-two { animation-delay: 1.1s; }
body[data-page="home"] .stage-diagnostic .node-three { animation-delay: 1.6s; }

@keyframes diagNodeReveal {
  0%, 5%   { opacity: 0; transform: scale(0.5); }
  15%, 85% { opacity: 1; transform: scale(1); }
  95%, 100%{ opacity: 0; transform: scale(0.5); }
}

/* ─── Service stage automation — dot animé sur les lanes ─────── */
body[data-page="home"] .lane-top .lane-dot    { animation: laneDotSlide 2.9s ease-in-out infinite 0s; }
body[data-page="home"] .lane-mid .lane-dot    { animation: laneDotSlide 2.9s ease-in-out infinite 0.96s; }
body[data-page="home"] .lane-bottom .lane-dot { animation: laneDotSlide 2.9s ease-in-out infinite 1.92s; }

@keyframes laneDotSlide {
  0%   { left: 68px;              opacity: 0; }
  7%   { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: calc(100% - 30px); opacity: 0; }
}

/* ─── Service stage training — cartes flottantes ────────────── */
body[data-page="home"] .training-card.card-a { animation: trainingFloat 4.8s ease-in-out infinite 0s; }
body[data-page="home"] .training-card.card-b { animation: trainingFloat 4.8s ease-in-out infinite 0.6s; }
body[data-page="home"] .training-card.card-c { animation: trainingFloat 4.8s ease-in-out infinite 1.2s; }

@keyframes trainingFloat {
  0%, 100% { transform: translateY(0) rotate(-2.5deg); }
  50%       { transform: translateY(-5px) rotate(-1.5deg); }
}

body[data-page="home"] .training-card.card-b {
  animation-name: trainingFloatB;
}

@keyframes trainingFloatB {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50%       { transform: translateY(-4px) rotate(2.8deg); }
}

/* ─── Témoignages — citation plus large ──────────────────────── */
body[data-page="home"] .home-testimonial-quote {
  font-size: clamp(1.55rem, 2.9vw, 2.7rem);
  line-height: 1.06;
  max-width: 22ch;
  letter-spacing: -0.044em;
}

/* ─── Section head h2 — max-width plus aéré ─────────────────── */
.section-head h2 {
  max-width: 22ch;
}

/* ─── About intro — layout 2 colonnes sur desktop ───────────── */
body[data-page="home"] .about-bio-grid-intro {
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  justify-items: start;
}

body[data-page="home"] .about-bio-grid-intro .about-bio-media {
  width: 100%;
  max-width: none;
}

body[data-page="home"] .about-bio-copy-intro {
  width: 100%;
  justify-items: start;
  text-align: left;
}

body[data-page="home"] .about-bio-copy-intro .chip-list {
  justify-content: flex-start;
}

@media (max-width: 1180px) {
  body[data-page="home"] .about-bio-grid-intro {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  body[data-page="home"] .about-bio-grid-intro .about-bio-media {
    max-width: 440px;
    width: 100%;
  }

  body[data-page="home"] .about-bio-copy-intro {
    width: min(100%, 820px);
    justify-items: center;
    text-align: center;
  }

  body[data-page="home"] .about-bio-copy-intro .chip-list {
    justify-content: center;
  }
}

/* ─── About — cadre photo amélioré ───────────────────────────── */
body[data-page="home"] .about-bio-media {
  box-shadow: var(--shadow), 0 0 0 4px rgba(127, 73, 255, 0.06);
}

/* ─── Contact panel — email mis en valeur ────────────────────── */
body[data-page-mode="multi"] .contact-panel h3 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.4rem, 2.8vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-transform: lowercase;
  color: var(--text);
}

/* ─── Hero pills — glassmorphism ─────────────────────────────── */
body[data-page="home"] .hero-home-pills span {
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

/* ─── Footer — bordure supérieure en dégradé ─────────────────── */
.footer {
  position: relative;
  border-top: none;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(127, 73, 255, 0.25) 35%, rgba(175, 136, 255, 0.3) 50%, rgba(127, 73, 255, 0.25) 65%, transparent 100%);
  pointer-events: none;
}

/* ─── Prefers-reduced-motion — désactiver les nouvelles anim. ── */
@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .stage-diagnostic .diagnostic-beam,
  body[data-page="home"] .stage-diagnostic .diagnostic-node,
  body[data-page="home"] .lane-top .lane-dot,
  body[data-page="home"] .lane-mid .lane-dot,
  body[data-page="home"] .lane-bottom .lane-dot,
  body[data-page="home"] .training-card {
    animation: none !important;
  }
}

/* ─── Photos "qui suis-je" — sans encadrement ────────────────── */
body[data-page="home"] .about-bio-media {
  border: none;
  background: transparent;
  box-shadow: none;
}

body[data-page="home"] .about-bio-media:hover {
  border: none;
  box-shadow: none;
}

@media (hover: hover) and (pointer: fine) and (min-width: 901px) {
  body[data-page="home"] .about-bio-media:hover {
    border: none;
    box-shadow: none;
  }
}

/* ─── Témoignages — grille 3 colonnes ───────────────────────── */
body[data-page="home"] .home-testimonials-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

body[data-page="home"] .home-testimonials-grid .home-testimonial-card {
  display: grid;
  gap: 18px;
  padding: 26px;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--surface-border-accent);
  background: var(--surface-gradient-accent);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(185, 159, 255, 0.08);
  transition:
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 240ms ease,
    border-color 240ms ease;
}

@media (hover: hover) and (pointer: fine) {
  body[data-page="home"] .home-testimonials-grid .home-testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 28px 60px rgba(5, 7, 16, 0.28), inset 0 1px 0 rgba(185, 159, 255, 0.18);
    border-color: rgba(175, 145, 255, 0.36);
  }
}

/* Citation — taille adaptée à la grille */
body[data-page="home"] .home-testimonials-grid .home-testimonial-quote {
  margin: 0;
  color: var(--text);
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  line-height: 1.55;
  letter-spacing: -0.015em;
  font-weight: 700;
  max-width: none;
}

/* Guillemet décoratif */
body[data-page="home"] .home-testimonials-grid .home-testimonial-quote::before {
  content: """;
  display: block;
  font-family: Georgia, serif;
  font-size: 3rem;
  line-height: 0.8;
  color: var(--violet);
  opacity: 0.5;
  margin-bottom: 10px;
}

@media (max-width: 900px) {
  body[data-page="home"] .home-testimonials-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  body[data-page="home"] .home-testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ─── Témoignages grille — reset héritage carousel ──────────── */
body[data-page="home"] .home-testimonials-grid .home-testimonial-card {
  flex: none;
  min-width: 0;
  width: 100%;
}

/* ================================================================
   DEMO APP — Immersive SaaS interface
   v=20260330-demo1
   ================================================================ */

/* ---- Section wrapper ---- */
.demo-section-wrap {
  padding: 0;
  margin: 0;
}

/* ---- App chrome ---- */
.demo-app {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(127, 73, 255, 0.18);
  background: #0d0e17;
  box-shadow:
    0 0 0 1px rgba(127,73,255,0.08),
    0 24px 80px rgba(0,0,0,0.7),
    0 0 60px rgba(127,73,255,0.06);
  display: flex;
  flex-direction: column;
  height: 640px;
  position: relative;
}

/* ---- Topbar ---- */
.demo-topbar {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(13,14,23,0.95);
  border-bottom: 1px solid rgba(127,73,255,0.14);
  height: 52px;
  flex-shrink: 0;
  padding: 0 16px;
  backdrop-filter: blur(8px);
}

.demo-topbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: #7f49ff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 16px;
}

.demo-topbar-brand-icon {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #7f49ff, #a855f7);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.demo-topbar-divider {
  width: 1px;
  height: 28px;
  background: rgba(127,73,255,0.18);
  margin: 0 14px;
  flex-shrink: 0;
}

/* ---- Tabs ---- */
.demo-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.demo-tabs::-webkit-scrollbar { display: none; }

.demo-tab {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(245,247,252,0.5);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
  border: 1px solid transparent;
  background: transparent;
  user-select: none;
  flex-shrink: 0;
}

.demo-tab:hover {
  color: rgba(245,247,252,0.85);
  background: rgba(127,73,255,0.07);
}

.demo-tab--active {
  color: #f5f7fc;
  background: rgba(127,73,255,0.15);
  border-color: rgba(127,73,255,0.25);
}

.demo-live-badge {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.1em;
  color: #4ade80;
  background: rgba(74,222,128,0.1);
  border: 1px solid rgba(74,222,128,0.3);
  border-radius: 20px;
  padding: 3px 9px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.demo-live-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse-live 1.4s infinite;
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.75); }
}

/* ---- Body (sidebar + main) ---- */
.demo-body {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* ---- Sidebar ---- */
.demo-sidebar {
  width: 180px;
  flex-shrink: 0;
  background: rgba(8,9,16,0.9);
  border-right: 1px solid rgba(127,73,255,0.10);
  display: flex;
  flex-direction: column;
  padding: 16px 0 0;
  overflow: hidden;
}

.demo-sidenav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 10px;
}

.demo-sidenav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(245,247,252,0.45);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}

.demo-sidenav-item:hover {
  color: rgba(245,247,252,0.8);
  background: rgba(127,73,255,0.07);
}

.demo-sidenav-item--active {
  color: #f5f7fc;
  background: rgba(127,73,255,0.13);
}

.demo-sidenav-icon {
  font-size: 14px;
  width: 20px;
  text-align: center;
  opacity: 0.75;
}

.demo-sidenav-item--active .demo-sidenav-icon {
  opacity: 1;
}

.demo-sidebar-user {
  margin-top: auto;
  border-top: 1px solid rgba(127,73,255,0.10);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.demo-sidebar-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7f49ff, #4a9eff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.demo-sidebar-userinfo {
  overflow: hidden;
}

.demo-sidebar-name {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(245,247,252,0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-sidebar-role {
  font-size: 10px;
  color: rgba(245,247,252,0.35);
}

/* ---- Main content ---- */
.demo-main {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: rgba(127,73,255,0.2) transparent;
}

.demo-main::-webkit-scrollbar { width: 4px; }
.demo-main::-webkit-scrollbar-thumb { background: rgba(127,73,255,0.2); border-radius: 2px; }

/* ---- Panels ---- */
.demo-panel {
  display: none;
  padding: 22px 24px;
  height: 100%;
  box-sizing: border-box;
  flex-direction: column;
  gap: 18px;
}

.demo-panel--active {
  display: flex;
}

/* ---- Panel header ---- */
.demo-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.demo-panel-title {
  font-size: 15px;
  font-weight: 700;
  color: #f5f7fc;
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-panel-title-icon {
  font-size: 16px;
}

.demo-panel-subtitle {
  font-size: 11.5px;
  color: rgba(245,247,252,0.4);
  margin-top: 2px;
}

/* ---- Replay button ---- */
.demo-replay-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #7f49ff;
  background: rgba(127,73,255,0.1);
  border: 1px solid rgba(127,73,255,0.22);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.demo-replay-btn:hover {
  background: rgba(127,73,255,0.2);
  border-color: rgba(127,73,255,0.4);
  color: #a07dff;
}

/* ---- Stats row ---- */
.demo-stats-row {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.demo-stat {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(127,73,255,0.10);
  border-radius: 10px;
  padding: 13px 16px;
  min-width: 0;
}

.demo-stat-value {
  font-size: 22px;
  font-weight: 800;
  font-family: 'Space Mono', monospace;
  color: #f5f7fc;
  line-height: 1;
  margin-bottom: 4px;
}

.demo-stat-value .demo-stat-unit {
  font-size: 13px;
  font-weight: 600;
  color: rgba(245,247,252,0.5);
  margin-left: 1px;
}

.demo-stat-label {
  font-size: 11px;
  color: rgba(245,247,252,0.4);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- Workflow wrap ---- */
.demo-workflow-wrap {
  flex-shrink: 0;
  background: rgba(5,6,11,0.6);
  border: 1px solid rgba(127,73,255,0.12);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.demo-workflow-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 6px;
  border-bottom: 1px solid rgba(127,73,255,0.08);
}

.demo-workflow-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(245,247,252,0.3);
}

.demo-workflow-status {
  font-size: 10.5px;
  color: #4ade80;
  display: flex;
  align-items: center;
  gap: 5px;
}

.demo-workflow-status::before {
  content: '';
  width: 5px;
  height: 5px;
  background: #4ade80;
  border-radius: 50%;
}

/* ---- Canvas ---- */
.demo-workflow-canvas-wrap {
  position: relative;
  height: 230px;
  overflow: hidden;
}

.demo-workflow-canvas {
  position: absolute;
  inset: 0;
  /* Dot grid */
  background-image: radial-gradient(circle, rgba(127,73,255,0.18) 1px, transparent 1px);
  background-size: 24px 24px;
}

.demo-workflow-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

/* ---- Nodes (earlier section — superseded by rules below) ---- */
/* Rules now defined in the workflow canvas section */

/* SVG edge labels */
.wf-edge-label {
  font-size: 9.5px;
  fill: rgba(245,247,252,0.35);
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
}

/* Execution dot */
.wf-exec-dot {
  filter: drop-shadow(0 0 4px #7f49ff);
}

/* ---- Exec log ---- */
.demo-execlog {
  flex: 1;
  min-height: 80px;
  max-height: 180px;
  overflow-y: auto;
  background: rgba(5,6,11,0.7);
  border: 1px solid rgba(127,73,255,0.10);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: 'Space Mono', monospace;
  scrollbar-width: thin;
  scrollbar-color: rgba(127,73,255,0.15) transparent;
}

.demo-execlog::-webkit-scrollbar { width: 3px; }
.demo-execlog::-webkit-scrollbar-thumb { background: rgba(127,73,255,0.2); border-radius: 2px; }

.demo-execlog-line {
  display: flex;
  gap: 12px;
  font-size: 10.5px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s;
}

.demo-execlog-line--in {
  opacity: 1;
  transform: none;
}

.demo-execlog-time {
  color: rgba(127,73,255,0.6);
  white-space: nowrap;
  flex-shrink: 0;
}

.demo-execlog-text {
  color: rgba(245,247,252,0.7);
}

.demo-execlog-line--ok .demo-execlog-time { color: rgba(74,222,128,0.55); }
.demo-execlog-line--done .demo-execlog-text { color: #f5f7fc; font-weight: 700; }

/* ---- Kanban ---- */
.demo-kanban {
  flex: 1;
  display: flex;
  gap: 10px;
  min-height: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(127,73,255,0.15) transparent;
}

.demo-kanban::-webkit-scrollbar { height: 4px; }
.demo-kanban::-webkit-scrollbar-thumb { background: rgba(127,73,255,0.2); border-radius: 2px; }

.demo-kanban-col {
  flex: 1;
  min-width: 160px;
  max-width: 220px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(127,73,255,0.09);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  scrollbar-width: none;
}

.demo-kanban-col::-webkit-scrollbar { display: none; }

.demo-kanban-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(245,247,252,0.5);
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(127,73,255,0.08);
  flex-shrink: 0;
}

.demo-kanban-col-count {
  background: rgba(127,73,255,0.12);
  border-radius: 12px;
  padding: 1px 7px;
  font-size: 10px;
  color: rgba(245,247,252,0.5);
}

.demo-kanban-card {
  background: rgba(18,19,32,0.85);
  border: 1px solid rgba(127,73,255,0.12);
  border-radius: 8px;
  padding: 9px 11px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
}

.demo-kanban-card:hover {
  border-color: rgba(127,73,255,0.3);
  transform: translateY(-1px);
}

.demo-kanban-card-id {
  font-size: 9.5px;
  font-family: 'Space Mono', monospace;
  color: rgba(127,73,255,0.6);
  margin-bottom: 4px;
}

.demo-kanban-card-title {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(245,247,252,0.9);
  margin-bottom: 6px;
  line-height: 1.35;
}

.demo-kanban-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.demo-kanban-card-tag {
  font-size: 9.5px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.demo-kanban-card-tag--blue {
  background: rgba(74,158,255,0.12);
  color: #4a9eff;
}

.demo-kanban-card-tag--yellow {
  background: rgba(250,204,21,0.12);
  color: #facc15;
}

.demo-kanban-card-tag--green {
  background: rgba(74,222,128,0.12);
  color: #4ade80;
}

.demo-kanban-card-tag--gray {
  background: rgba(245,247,252,0.08);
  color: rgba(245,247,252,0.45);
}

.demo-kanban-card-date {
  font-size: 9.5px;
  color: rgba(245,247,252,0.3);
  margin-left: auto;
}

/* ---- Assistant layout ---- */
.demo-assistant-layout {
  display: flex;
  gap: 14px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* ---- Chat ---- */
.demo-chat {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: rgba(5,6,11,0.5);
  border: 1px solid rgba(127,73,255,0.12);
  border-radius: 12px;
  overflow: hidden;
}

.demo-chat-header {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(127,73,255,0.08);
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(245,247,252,0.7);
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(127,73,255,0.15) transparent;
}

.demo-chat-messages::-webkit-scrollbar { width: 3px; }
.demo-chat-messages::-webkit-scrollbar-thumb { background: rgba(127,73,255,0.2); border-radius: 2px; }

.demo-chat-msg {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 88%;
}

.demo-chat-msg--user {
  align-self: flex-end;
  align-items: flex-end;
}

.demo-chat-msg--assistant {
  align-self: flex-start;
  align-items: flex-start;
}

.demo-chat-bubble {
  padding: 9px 13px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.55;
}

.demo-chat-msg--user .demo-chat-bubble {
  background: rgba(127,73,255,0.22);
  border: 1px solid rgba(127,73,255,0.3);
  color: #f5f7fc;
  border-bottom-right-radius: 4px;
}

.demo-chat-msg--assistant .demo-chat-bubble {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(127,73,255,0.10);
  color: rgba(245,247,252,0.85);
  border-bottom-left-radius: 4px;
}

.demo-chat-msg--thinking .demo-chat-bubble {
  opacity: 0.6;
  font-style: italic;
  letter-spacing: 0.12em;
  animation: thinking-pulse 1s infinite alternate;
}

@keyframes thinking-pulse {
  from { opacity: 0.4; }
  to { opacity: 0.8; }
}

.demo-chat-input-row {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid rgba(127,73,255,0.08);
}

.demo-chat-input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(127,73,255,0.15);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: #f5f7fc;
  font-family: 'Manrope', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.demo-chat-input::placeholder {
  color: rgba(245,247,252,0.3);
}

.demo-chat-input:focus {
  border-color: rgba(127,73,255,0.4);
}

.demo-chat-send {
  width: 36px;
  height: 36px;
  background: rgba(127,73,255,0.8);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}

.demo-chat-send:hover {
  background: rgba(127,73,255,1);
}

/* ---- Sources panel ---- */
.demo-sources-panel {
  width: 34%;
  flex-shrink: 0;
  background: rgba(5,6,11,0.5);
  border: 1px solid rgba(127,73,255,0.12);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.demo-sources-header {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(127,73,255,0.08);
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(245,247,252,0.7);
}

.demo-sources-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  scrollbar-width: thin;
  scrollbar-color: rgba(127,73,255,0.15) transparent;
}

.demo-source-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(127,73,255,0.09);
  border-radius: 8px;
  padding: 9px 11px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.demo-source-item:hover {
  border-color: rgba(127,73,255,0.25);
}

.demo-source-name {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(245,247,252,0.85);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.demo-source-icon {
  font-size: 12px;
  opacity: 0.7;
}

.demo-source-score-bar {
  height: 3px;
  background: rgba(127,73,255,0.12);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}

.demo-source-score-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #7f49ff, #a855f7);
  transition: width 0.8s cubic-bezier(0.34,1.56,0.64,1);
}

.demo-source-score-text {
  font-size: 10px;
  font-family: 'Space Mono', monospace;
  color: rgba(127,73,255,0.7);
  font-weight: 700;
}

.demo-source-meta {
  font-size: 10px;
  color: rgba(245,247,252,0.3);
  margin-top: 3px;
}

/* ================================================================
   LIQUID MOBILE NAV
   ================================================================ */

/* ---- Stage (the goo layer) ---- */
.liq-stage {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9990;
  overflow: hidden;
}

.liq-blobs {
  position: absolute;
  inset: 0;
  filter: url(#goo-liq);
}

/* Header blob — mirrors the real header */
.liq-header-blob {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: #7f49ff;
  transform-origin: top center;
  transform: scaleY(1);
  opacity: 1;
  transition: none;
}

/* Left stream */
.liq-stream-l {
  position: absolute;
  top: 0;
  left: 0;
  width: 38px;
  height: 0;
  background: #7f49ff;
  border-radius: 0 0 20px 20px;
}

/* Right stream */
.liq-stream-r {
  position: absolute;
  top: 0;
  right: 0;
  width: 38px;
  height: 0;
  background: #7f49ff;
  border-radius: 0 0 20px 20px;
}

/* Drips */
.liq-drip {
  position: absolute;
  width: 28px;
  height: 28px;
  background: #7f49ff;
  border-radius: 50%;
  opacity: 0;
}

.liq-drip-1 { left: 5px; top: 20%; }
.liq-drip-2 { right: 5px; top: 35%; }
.liq-drip-3 { left: 5px; top: 55%; }

/* Merge ball */
.liq-ball {
  position: absolute;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  right: 20px;
  width: 54px;
  height: 54px;
  background: #7f49ff;
  border-radius: 50%;
  transform: scale(0);
  opacity: 0;
}

/* ================================================================
   ANIMATION KEYFRAMES — nav-is-collapsed
   ================================================================ */

/* Header shrinks and dissolves into stream */
@keyframes liq-header-out {
  0%   { transform: scaleY(1);   opacity: 1; }
  60%  { transform: scaleY(0.12); opacity: 1; }
  100% { transform: scaleY(0);   opacity: 0; }
}

/* Streams grow from top downward */
@keyframes liq-stream-grow {
  0%   { height: 0; }
  100% { height: 100vh; }
}

/* Drip falls */
@keyframes liq-drip-fall {
  0%   { transform: translateY(0);    opacity: 0.9; }
  100% { transform: translateY(100vh); opacity: 0.7; }
}

/* Ball pops in */
@keyframes liq-ball-in {
  0%   { transform: scale(0);   opacity: 0; }
  70%  { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1);   opacity: 1; }
}

/* Reverse: streams shrink */
@keyframes liq-stream-shrink {
  0%   { height: 100vh; }
  100% { height: 0; }
}

/* Ball shrinks out */
@keyframes liq-ball-out {
  0%   { transform: scale(1);   opacity: 1; }
  100% { transform: scale(0);   opacity: 0; }
}

/* Header comes back */
@keyframes liq-header-in {
  0%   { transform: scaleY(0);   opacity: 0; }
  100% { transform: scaleY(1);   opacity: 1; }
}

/* ================================================================
   COLLAPSED STATE
   ================================================================ */

body.nav-is-collapsed .liq-header-blob {
  animation: liq-header-out 500ms cubic-bezier(0.4,0,0.2,1) forwards;
}

body.nav-is-collapsed .liq-stream-l {
  animation: liq-stream-grow 700ms cubic-bezier(0.4,0,0.2,1) 200ms forwards;
}

body.nav-is-collapsed .liq-stream-r {
  animation: liq-stream-grow 700ms cubic-bezier(0.4,0,0.2,1) 260ms forwards;
}

body.nav-is-collapsed .liq-drip-1 {
  animation: liq-drip-fall 600ms cubic-bezier(0.4,0,0.2,1) 300ms both;
}

body.nav-is-collapsed .liq-drip-2 {
  animation: liq-drip-fall 700ms cubic-bezier(0.4,0,0.2,1) 380ms both;
}

body.nav-is-collapsed .liq-drip-3 {
  animation: liq-drip-fall 650ms cubic-bezier(0.4,0,0.2,1) 440ms both;
}

body.nav-is-collapsed .liq-ball {
  animation: liq-ball-in 400ms cubic-bezier(0.34,1.56,0.64,1) 860ms forwards;
}

/* ================================================================
   VISIBLE (reverse) STATE
   ================================================================ */

body.nav-is-visible .liq-header-blob {
  animation: liq-header-in 350ms cubic-bezier(0.4,0,0.2,1) 300ms forwards;
}

body.nav-is-visible .liq-stream-l {
  animation: liq-stream-shrink 500ms cubic-bezier(0.4,0,0.2,1) forwards;
}

body.nav-is-visible .liq-stream-r {
  animation: liq-stream-shrink 500ms cubic-bezier(0.4,0,0.2,1) 40ms forwards;
}

body.nav-is-visible .liq-ball {
  animation: liq-ball-out 300ms cubic-bezier(0.4,0,0.2,1) forwards;
}

body.nav-is-visible .liq-drip-1,
body.nav-is-visible .liq-drip-2,
body.nav-is-visible .liq-drip-3 {
  opacity: 0;
  transition: opacity 0.2s;
}

/* ================================================================
   FAB BUTTON
   ================================================================ */

.liq-fab {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  right: 20px;
  z-index: 9995;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #7f49ff;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  box-shadow:
    0 0 0 0 rgba(127,73,255,0.4),
    0 4px 20px rgba(127,73,255,0.5);
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.35s cubic-bezier(0.34,1.56,0.64,1),
              transform 0.35s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.2s;
  pointer-events: none;
}

.liq-fab:hover {
  box-shadow:
    0 0 0 0 rgba(127,73,255,0.4),
    0 6px 28px rgba(127,73,255,0.7);
}

/* Hamburger lines */
.liq-fab span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

body.nav-is-collapsed .liq-fab {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

body.nav-is-visible .liq-fab {
  opacity: 0;
  transform: scale(0);
  pointer-events: none;
}

/* Hide all liquid elements on desktop */
@media (min-width: 901px) {
  .liq-stage,
  .liq-fab {
    display: none !important;
  }
}

/* ================================================================
   DEMO RESPONSIVE
   ================================================================ */

@media (max-width: 900px) {
  .demo-app {
    height: 560px;
    border-radius: 12px;
  }

  .demo-sidebar {
    width: 48px;
    overflow: hidden;
  }

  .demo-sidenav-item span:not(.demo-sidenav-icon),
  .demo-sidebar-userinfo {
    display: none;
  }

  .demo-sidenav-item {
    justify-content: center;
    padding: 9px 0;
  }

  .demo-sidebar-user {
    justify-content: center;
    padding: 10px 0;
  }

  .demo-topbar-brand span:last-child {
    display: none;
  }
}

@media (max-width: 768px) {
  .demo-app {
    height: auto;
    max-height: 680px;
    border-radius: 10px;
  }

  .demo-sidebar {
    display: none;
  }

  .demo-panel {
    padding: 14px 14px;
    gap: 12px;
  }

  .demo-stats-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .demo-stat {
    flex: 1 1 calc(50% - 4px);
    min-width: 100px;
  }

  .demo-assistant-layout {
    flex-direction: column;
  }

  .demo-sources-panel {
    width: 100%;
    max-height: 200px;
  }

  .demo-topbar {
    padding: 0 10px;
    height: 46px;
  }

  .demo-tab {
    font-size: 11px;
    padding: 5px 10px;
  }

  .demo-workflow-canvas-wrap {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .demo-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .demo-stat {
    flex: none;
  }

  .demo-live-badge {
    display: none;
  }

  .demo-kanban {
    gap: 7px;
  }

  .demo-kanban-col {
    min-width: 140px;
  }
}

/* ================================================================
   DEMO v2 — Compatibility + new class names  (20260331)
   ================================================================ */

/* ── Demo section outer wrapper ─────────────────────────────── */
.demo-section { padding-top: 0; }
.demo-section .section-head { margin-bottom: 32px; }

/* ── App shell ───────────────────────────────────────────────── */
.demo-app {
  width: 100%;
  height: 640px;
  background: rgba(8,9,18,0.95);
  border: 1px solid rgba(127,73,255,0.18);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 0 0 1px rgba(127,73,255,0.06),
    0 24px 80px rgba(0,0,0,0.6),
    0 0 60px rgba(127,73,255,0.06);
  position: relative;
}

/* ── Topbar ──────────────────────────────────────────────────── */
.demo-topbar {
  height: 52px;
  background: rgba(10,11,22,0.97);
  border-bottom: 1px solid rgba(127,73,255,0.12);
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  padding: 0 16px;
}

.demo-topbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 150px;
  flex-shrink: 0;
}

.demo-brand-icon {
  font-size: 17px;
  line-height: 1;
}

.demo-brand-name {
  font-size: 13px;
  font-weight: 700;
  color: #f5f7fc;
  letter-spacing: -0.01em;
}

.demo-brand-sub {
  font-weight: 400;
  color: rgba(245,247,252,0.4);
  font-size: 12px;
}

.demo-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

.demo-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(245,247,252,0.45);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}

.demo-tab:hover {
  color: rgba(245,247,252,0.75);
  background: rgba(127,73,255,0.07);
}

.demo-tab--active {
  color: #f5f7fc;
  background: rgba(127,73,255,0.14);
  border-color: rgba(127,73,255,0.24);
}

.demo-tab-icon { font-size: 13px; }

.demo-live-badge {
  font-size: 10px;
  font-weight: 700;
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.08em;
  color: #4ade80;
  background: rgba(74,222,128,0.1);
  border: 1px solid rgba(74,222,128,0.2);
  border-radius: 6px;
  padding: 3px 8px;
  flex-shrink: 0;
}

/* ── Body row ────────────────────────────────────────────────── */
.demo-body {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* ── Sidebar ─────────────────────────────────────────────────── */
.demo-sidebar {
  width: 170px;
  flex-shrink: 0;
  background: rgba(6,7,15,0.95);
  border-right: 1px solid rgba(127,73,255,0.10);
  display: flex;
  flex-direction: column;
  padding: 14px 10px 0;
  gap: 3px;
}

.demo-sidenav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.demo-sidenav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(245,247,252,0.4);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}

.demo-sidenav-item:hover {
  color: rgba(245,247,252,0.75);
  background: rgba(127,73,255,0.07);
}

.demo-sidenav-item--active {
  color: #f5f7fc;
  background: rgba(127,73,255,0.14);
}

.demo-sidebar-user {
  margin-top: auto;
  border-top: 1px solid rgba(127,73,255,0.08);
  padding: 10px 8px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.demo-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg,#7f49ff,#4a9eff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.demo-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.demo-user-name {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(245,247,252,0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-user-role {
  font-size: 9.5px;
  color: rgba(245,247,252,0.35);
}

/* ── Main area ───────────────────────────────────────────────── */
.demo-main {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(127,73,255,0.18) transparent;
}

.demo-main::-webkit-scrollbar { width: 4px; }
.demo-main::-webkit-scrollbar-thumb { background: rgba(127,73,255,0.2); border-radius: 2px; }

/* ── Panels ──────────────────────────────────────────────────── */
.demo-panel {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
  box-sizing: border-box;
}

.demo-panel[hidden] { display: none; }

.demo-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.demo-panel-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #f5f7fc;
  margin: 0;
}

.demo-replay-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #9d72ff;
  background: rgba(127,73,255,0.09);
  border: 1px solid rgba(127,73,255,0.2);
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}

.demo-replay-btn:hover {
  background: rgba(127,73,255,0.18);
  color: #c4a0ff;
}

/* ── Stats ───────────────────────────────────────────────────── */
.demo-stats-row {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.demo-stat {
  flex: 1;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(127,73,255,0.10);
  border-radius: 10px;
  padding: 12px 14px;
  min-width: 0;
}

.demo-stat--warn {
  border-color: rgba(250,204,21,0.2);
  background: rgba(250,204,21,0.04);
}

.demo-stat--ok {
  border-color: rgba(74,222,128,0.2);
  background: rgba(74,222,128,0.04);
}

.demo-stat-val {
  font-size: 22px;
  font-weight: 800;
  font-family: 'Space Mono', monospace;
  color: #f5f7fc;
  line-height: 1;
  display: block;
  margin-bottom: 4px;
}

.demo-stat--warn .demo-stat-val { color: #facc15; }
.demo-stat--ok  .demo-stat-val  { color: #4ade80; }

.demo-stat-label {
  font-size: 10.5px;
  color: rgba(245,247,252,0.38);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

/* ── Workflow canvas ─────────────────────────────────────────── */
.demo-wf-area {
  flex-shrink: 0;
  border: 1px solid rgba(127,73,255,0.12);
  border-radius: 10px;
  overflow: hidden;
}

.demo-wf-area-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(10,11,20,0.9);
  border-bottom: 1px solid rgba(127,73,255,0.09);
}

.demo-wf-label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(200,190,255,0.35);
  margin: 0;
  padding: 0;
}

.demo-wf-status {
  font-size: 10px;
  color: #4ade80;
  display: flex;
  align-items: center;
  gap: 5px;
}

.demo-wf-status::before {
  content: '';
  width: 5px; height: 5px;
  background: #4ade80;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Canvas toolbar (decorative n8n footer) */
.demo-wf-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 6px 10px;
  background: rgba(10,11,20,0.9);
  border-top: 1px solid rgba(127,73,255,0.08);
}

.demo-wf-zoom {
  font-size: 9.5px;
  font-family: 'Space Mono', monospace;
  color: rgba(200,190,255,0.3);
  padding: 3px 7px;
  border: 1px solid rgba(200,190,255,0.10);
  border-radius: 5px;
}

.demo-wf-zbtn {
  width: 20px; height: 20px;
  background: rgba(200,190,255,0.05);
  border: 1px solid rgba(200,190,255,0.10);
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  color: rgba(200,190,255,0.3);
  cursor: default;
  user-select: none;
}

.wf-canvas {
  position: relative;
  height: 220px;
  overflow: hidden;
  /* n8n dot grid */
  background-image: radial-gradient(circle, rgba(127,73,255,0.12) 1px, transparent 1px);
  background-size: 22px 22px;
  background-color: #0a0b14;
}

/* ── Workflow nodes — n8n style (rendered by JS) ─────────────── */
.wf-node {
  position: absolute;
  height: 56px;
  width: 150px;
  background: #16172a;
  border: 1px solid rgba(200,190,255,0.14);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.45), 0 0 0 0 transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
  overflow: hidden;
}

.wf-node--active {
  border-color: var(--node-accent, #7f49ff) !important;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--node-accent,#7f49ff) 22%, transparent),
              0 4px 20px rgba(0,0,0,0.5),
              0 0 18px color-mix(in srgb, var(--node-accent,#7f49ff) 28%, transparent) !important;
}

.wf-node--done {
  border-color: rgba(200,190,255,0.22);
}

/* Left accent strip */
.wf-node-accent {
  width: 4px;
  align-self: stretch;
  background: var(--node-accent, #7f49ff);
  flex-shrink: 0;
  border-radius: 10px 0 0 10px;
}

/* Icon box */
.wf-node-iconbox {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--node-accent, #7f49ff) 14%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  margin: 0 8px 0 9px;
  border: 1px solid color-mix(in srgb, var(--node-accent, #7f49ff) 22%, transparent);
}

.wf-node--active .wf-node-iconbox {
  background: color-mix(in srgb, var(--node-accent, #7f49ff) 25%, transparent);
}

/* Body text */
.wf-node-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.wf-node-label {
  font-size: 10.5px;
  font-weight: 600;
  color: #e8e4ff;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wf-node-count {
  font-size: 9px;
  font-family: 'Space Mono', monospace;
  color: rgba(200,190,255,0.35);
  line-height: 1;
}

.wf-node--done .wf-node-count {
  color: rgba(74,222,128,0.7);
}

/* Status dot */
.wf-node-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(200,190,255,0.2);
  flex-shrink: 0;
  margin-right: 10px;
  border: 1px solid rgba(200,190,255,0.3);
  transition: background 0.2s, box-shadow 0.2s;
}

.wf-node--active .wf-node-dot {
  background: var(--node-accent, #7f49ff);
  box-shadow: 0 0 6px var(--node-accent, #7f49ff);
  animation: node-dot-pulse 0.7s ease;
}

.wf-node--done .wf-node-dot {
  background: #4ade80;
  border-color: #4ade80;
}

@keyframes node-dot-pulse {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.7); }
}

/* ── Exec log ────────────────────────────────────────────────── */
.demo-execlog {
  flex-shrink: 0;
  background: rgba(5,6,11,0.7);
  border: 1px solid rgba(127,73,255,0.10);
  border-radius: 10px;
  overflow: hidden;
  font-family: 'Space Mono', monospace;
}

.demo-execlog-row {
  display: grid;
  grid-template-columns: 1fr 60px 50px;
  gap: 8px;
  padding: 7px 14px;
  font-size: 11px;
  align-items: center;
  border-bottom: 1px solid rgba(127,73,255,0.06);
}

.demo-execlog-row:last-child { border-bottom: none; }

.demo-execlog-row--head {
  background: rgba(127,73,255,0.07);
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(245,247,252,0.3);
}

.demo-execlog-row--ok {
  color: rgba(245,247,252,0.72);
}

.demo-execlog-row span:last-child {
  color: rgba(245,247,252,0.35);
  text-align: right;
}

.badge-ok {
  font-size: 9.5px;
  font-weight: 700;
  color: #4ade80;
  background: rgba(74,222,128,0.1);
  border-radius: 4px;
  padding: 1px 5px;
  text-align: center;
}

/* ── Kanban ──────────────────────────────────────────────────── */
.demo-kanban {
  display: flex;
  gap: 10px;
  flex: 1;
  min-height: 200px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(127,73,255,0.15) transparent;
}

.demo-kanban::-webkit-scrollbar { height: 3px; }
.demo-kanban::-webkit-scrollbar-thumb { background: rgba(127,73,255,0.2); border-radius: 2px; }

.demo-kanban-col {
  flex: 1;
  min-width: 155px;
  max-width: 210px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(127,73,255,0.09);
  border-radius: 10px;
  padding: 10px 9px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow-y: auto;
  scrollbar-width: none;
}

.demo-kanban-col::-webkit-scrollbar { display: none; }

.demo-kanban-col-title {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(245,247,252,0.4);
  margin: 0 0 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.demo-kanban-col-title span {
  background: rgba(127,73,255,0.12);
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 10px;
  color: rgba(245,247,252,0.45);
  font-weight: 600;
}

.demo-kanban-card {
  background: rgba(12,13,26,0.85);
  border: 1px solid rgba(127,73,255,0.12);
  border-radius: 8px;
  padding: 9px 10px;
  cursor: default;
  transition: border-color 0.2s, transform 0.15s;
  flex-shrink: 0;
}

.demo-kanban-card:hover {
  border-color: rgba(127,73,255,0.28);
  transform: translateY(-1px);
}

.demo-kanban-card--new  { border-color: rgba(127,73,255,0.25); }
.demo-kanban-card--wait { border-color: rgba(250,204,21,0.18); }
.demo-kanban-card--done { opacity: 0.65; }

.demo-kcard-title {
  font-size: 11px;
  font-weight: 600;
  color: rgba(245,247,252,0.9);
  margin: 0 0 4px;
  line-height: 1.35;
}

.demo-kcard-meta {
  font-size: 10px;
  color: rgba(245,247,252,0.35);
  margin: 0 0 5px;
}

.demo-kcard-tag {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.demo-kcard-tag--new  { background: rgba(127,73,255,0.15); color: #a07dff; }
.demo-kcard-tag--ok   { background: rgba(74,222,128,0.1);  color: #4ade80; }
.demo-kcard-tag--wait { background: rgba(250,204,21,0.1);  color: #facc15; }

.demo-kcard-progress {
  height: 3px;
  background: rgba(127,73,255,0.12);
  border-radius: 2px;
  margin-top: 7px;
  overflow: hidden;
}

.demo-kcard-progress-fill {
  height: 100%;
  background: linear-gradient(90deg,#7f49ff,#a855f7);
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.34,1.56,0.64,1);
}

/* ── Chat panel ──────────────────────────────────────────────── */
.demo-panel--chat { flex-direction: column; }

.demo-live-dot {
  font-size: 11px;
  color: #4ade80;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.demo-live-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  display: inline-block;
  animation: live-pulse 1.6s ease-in-out infinite;
}

@keyframes live-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(74,222,128,0.5); }
  50%      { box-shadow: 0 0 0 5px rgba(74,222,128,0); }
}

.demo-assistant-layout {
  display: flex;
  gap: 14px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* Chat */
.demo-chat {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: rgba(5,6,11,0.55);
  border: 1px solid rgba(127,73,255,0.12);
  border-radius: 12px;
  overflow: hidden;
}

.demo-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(127,73,255,0.12) transparent;
}

.demo-chat-messages::-webkit-scrollbar { width: 3px; }
.demo-chat-messages::-webkit-scrollbar-thumb { background: rgba(127,73,255,0.2); border-radius: 2px; }

.demo-chat-msg {
  padding: 9px 13px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.55;
  max-width: 88%;
}

.demo-chat-msg.ai {
  align-self: flex-start;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(127,73,255,0.12);
  color: rgba(245,247,252,0.82);
  border-bottom-left-radius: 4px;
}

.demo-chat-msg.user {
  align-self: flex-end;
  background: rgba(127,73,255,0.22);
  border: 1px solid rgba(127,73,255,0.3);
  color: #f5f7fc;
  border-bottom-right-radius: 4px;
}

.demo-chat-msg.thinking {
  align-self: flex-start;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(127,73,255,0.08);
  border-bottom-left-radius: 4px;
  font-style: italic;
  opacity: 0.6;
}

.demo-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  height: 16px;
}

.demo-dots i {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(245,247,252,0.5);
  animation: dot-bounce 1s ease-in-out infinite;
  font-style: normal;
}

.demo-dots i:nth-child(2) { animation-delay: 0.18s; }
.demo-dots i:nth-child(3) { animation-delay: 0.36s; }

@keyframes dot-bounce {
  0%,80%,100% { transform: translateY(0); }
  40%          { transform: translateY(-5px); }
}

.demo-chat-form {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid rgba(127,73,255,0.08);
}

.demo-chat-input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(127,73,255,0.15);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: #f5f7fc;
  font-family: 'Manrope', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.demo-chat-input::placeholder { color: rgba(245,247,252,0.28); }
.demo-chat-input:focus { border-color: rgba(127,73,255,0.4); }

.demo-chat-send {
  width: 36px;
  height: 36px;
  background: rgba(127,73,255,0.85);
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}

.demo-chat-send:hover { background: #7f49ff; }

/* Sources */
.demo-sources {
  width: 220px;
  flex-shrink: 0;
  background: rgba(5,6,11,0.55);
  border: 1px solid rgba(127,73,255,0.12);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.demo-sources-title {
  padding: 10px 14px 8px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(245,247,252,0.3);
  border-bottom: 1px solid rgba(127,73,255,0.08);
  margin: 0;
}

.demo-source-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(127,73,255,0.06);
  transition: background 0.15s;
  cursor: default;
}

.demo-source-item:last-of-type { border-bottom: none; }

.demo-source-item--hi .demo-source-name { color: rgba(245,247,252,0.9); }

.demo-source-item:hover { background: rgba(127,73,255,0.05); }

.demo-source-icon { font-size: 14px; flex-shrink: 0; }

.demo-source-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.demo-source-name {
  font-size: 10.5px;
  font-weight: 500;
  color: rgba(245,247,252,0.6);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-source-bar {
  height: 3px;
  background: rgba(127,73,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}

.demo-source-fill {
  height: 100%;
  background: linear-gradient(90deg,#7f49ff,#a855f7);
  border-radius: 2px;
}

.demo-source-score {
  font-size: 10px;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  color: rgba(127,73,255,0.7);
  flex-shrink: 0;
}

.demo-source-item--hi .demo-source-score { color: #9d72ff; }

.demo-sources-footer {
  margin-top: auto;
  padding: 8px 12px;
  border-top: 1px solid rgba(127,73,255,0.07);
  font-size: 9.5px;
  color: rgba(245,247,252,0.25);
}

/* ================================================================
   LIQUID NAV — liq-nav-collapsed (matches demo.js class name)
   ================================================================ */

body.liq-nav-collapsed .liq-header-blob {
  animation: liq-header-out 500ms cubic-bezier(0.4,0,0.2,1) forwards;
}

body.liq-nav-collapsed .liq-stream-l {
  animation: liq-stream-grow 700ms cubic-bezier(0.4,0,0.2,1) 200ms forwards;
}

body.liq-nav-collapsed .liq-stream-r {
  animation: liq-stream-grow 700ms cubic-bezier(0.4,0,0.2,1) 260ms forwards;
}

body.liq-nav-collapsed .liq-drip-1 {
  animation: liq-drip-fall 600ms cubic-bezier(0.4,0,0.2,1) 300ms both;
}

body.liq-nav-collapsed .liq-drip-2 {
  animation: liq-drip-fall 700ms cubic-bezier(0.4,0,0.2,1) 380ms both;
}

body.liq-nav-collapsed .liq-drip-3 {
  animation: liq-drip-fall 650ms cubic-bezier(0.4,0,0.2,1) 440ms both;
}

body.liq-nav-collapsed .liq-ball {
  animation: liq-ball-in 400ms cubic-bezier(0.34,1.56,0.64,1) 860ms forwards;
}

body.liq-nav-collapsed .liq-fab {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* Reverse state */
body:not(.liq-nav-collapsed) .liq-header-blob {
  animation: none;
  transform: scaleY(1);
  opacity: 1;
}

/* ================================================================
   DEMO RESPONSIVE (v2)
   ================================================================ */

@media (max-width: 1024px) {
  .demo-sidebar { width: 140px; }
}

@media (max-width: 900px) {
  .demo-app { height: 580px; border-radius: 12px; }

  .demo-sidebar { width: 44px; padding: 10px 6px 0; }
  .demo-sidenav-item span:not(svg):not(.demo-sidenav-icon) { display: none; }
  .demo-user-info { display: none; }
  .demo-sidenav-item { justify-content: center; padding: 8px; }
  .demo-sidebar-user { justify-content: center; padding: 8px 0 10px; }
  .demo-brand-name span { display: none; }
  .demo-tab { font-size: 11.5px; padding: 5px 10px; }
  .demo-tab-icon { display: none; }
}

@media (max-width: 768px) {
  .demo-app { height: auto; min-height: 560px; max-height: 700px; }
  .demo-sidebar { display: none; }
  .demo-panel { padding: 14px; gap: 12px; }
  .demo-stats-row { flex-wrap: wrap; gap: 8px; }
  .demo-stat { flex: 1 1 calc(50% - 4px); min-width: 90px; }
  .demo-assistant-layout { flex-direction: column; }
  .demo-sources { width: 100%; max-height: 180px; flex-direction: row; }
  .demo-sources-title { writing-mode: horizontal-tb; }
  .wf-canvas { height: 195px; }
}

@media (max-width: 480px) {
  .demo-stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .demo-stat { flex: none; }
  .demo-live-badge { display: none; }
  .demo-tabs { gap: 1px; }
  .demo-tab { padding: 5px 7px; font-size: 11px; }
  .demo-topbar-brand { min-width: 90px; }
}

/* ================================================================
   MOB FAB NAV — v20260331-clean
   Remplace l'animation liquide par un menu FAB premium
   ================================================================ */

/* Neutralise tous les anciens blobs (au cas où) */
.liq-stage,
.liq-blobs,
.liq-header-blob,
.liq-stream-l,
.liq-stream-r,
.liq-drip,
.liq-drip-1,
.liq-drip-2,
.liq-drip-3,
.liq-ball,
.liq-fab {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ── Header scroll compact (mobile) ─────────────────────── */
@media (max-width: 900px) {
  .site-header {
    transition: transform 380ms cubic-bezier(0.4, 0, 0.2, 1),
                opacity   320ms cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 300ms;
  }

  body.header-scrolled .site-header {
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
  }
}

/* ── FAB button ──────────────────────────────────────────── */
.mob-fab {
  /* Hidden by default */
  position: fixed;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  right: 20px;
  z-index: 9000;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8a54ff 0%, #6c2fff 100%);
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;

  /* Start state: invisible + scaled down */
  opacity: 0;
  transform: scale(0.5) translateY(10px);
  transition:
    opacity    320ms cubic-bezier(0.34, 1.56, 0.64, 1),
    transform  320ms cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 200ms ease,
    background 200ms ease;

  box-shadow:
    0 4px 18px rgba(127, 73, 255, 0.45),
    0 0 0 0 rgba(127, 73, 255, 0.3);
}

/* Visible state (class added by JS) */
.mob-fab.mob-fab--visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.mob-fab:hover {
  background: linear-gradient(135deg, #9d6bff 0%, #7a3fff 100%);
  box-shadow:
    0 6px 26px rgba(127, 73, 255, 0.6),
    0 0 0 0 rgba(127, 73, 255, 0.2);
}

.mob-fab:active {
  transform: scale(0.93) translateY(0);
}

/* Pulse ring on open state */
.mob-fab.mob-fab--open {
  background: linear-gradient(135deg, #5a2dcc 0%, #7f49ff 100%);
  box-shadow:
    0 6px 26px rgba(127, 73, 255, 0.5),
    0 0 0 5px rgba(127, 73, 255, 0.15);
}

/* Hamburger bars */
.mob-fab-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1),
              opacity   200ms ease,
              width     250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* X transform when open */
.mob-fab.mob-fab--open .mob-fab-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mob-fab.mob-fab--open .mob-fab-bar:nth-child(2) {
  opacity: 0;
  width: 0;
}
.mob-fab.mob-fab--open .mob-fab-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hide on desktop */
@media (min-width: 901px) {
  .mob-fab {
    display: none !important;
  }
}

/* ================================================================
   FAB REMOVED — v20260331-nofab
   Supprime le FAB violet et le slide du header
   ================================================================ */

/* Annule le header-scrolled slide */
@media (max-width: 900px) {
  body.header-scrolled .site-header {
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

/* Cache complètement le FAB */
.mob-fab {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ================================================================
   SERVICES v3 — Modern interactive cards  (20260331)
   ================================================================ */

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

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

/* ── Propriété CSS animable pour l'angle du contour (Card 01) ── */
@property --svc-border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* Card */
.svc-card {
  background: rgba(10,11,22,0.92);
  border: 1px solid rgba(127,73,255,0.14);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

/* Hover générique */
@media (hover: hover) {
  .svc-card:hover {
    transform: translateY(-4px);
  }
}

/* ─────────────────────────────────────────────
   CARD 01 — Filet lumineux qui court sur le bord
   Technique : conic-gradient @property + mask
   → seul le filet de 1.5px est visible, jamais l'intérieur
───────────────────────────────────────────── */
.svc-card[data-svc="audit"]::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1.5px;
  background: conic-gradient(
    from var(--svc-border-angle),
    transparent    0%,
    #7f49ff       18%,
    #c084fc       28%,
    #e879f9       33%,
    transparent   45%,
    transparent  100%
  );
  /* Masque : garde uniquement la zone de padding (le filet du bord) */
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.35s ease;
}

@media (hover: hover) {
  .svc-card[data-svc="audit"]:hover {
    border-color: rgba(127,73,255,0.2);
    box-shadow: 0 16px 48px rgba(0,0,0,0.4), inset 0 1px 0 rgba(200,170,255,0.06);
  }
  .svc-card[data-svc="audit"]:hover::before {
    opacity: 1;
    animation: svc-border-trace 2.8s linear infinite;
  }
}

@keyframes svc-border-trace {
  to { --svc-border-angle: 360deg; }
}

/* ─────────────────────────────────────────────
   CARD 02 — Soulèvement + lueur violet bloom
───────────────────────────────────────────── */
@media (hover: hover) {
  .svc-card[data-svc="automate"]:hover {
    transform: translateY(-14px);
    border-color: rgba(127,73,255,0.5);
    box-shadow:
      0 40px 80px rgba(0,0,0,0.55),
      0 0  0   1.5px rgba(127,73,255,0.55),
      0 0  28px      rgba(127,73,255,0.30),
      0 0  60px      rgba(127,73,255,0.15),
      0 0 110px      rgba(127,73,255,0.06);
  }
}

/* ─────────────────────────────────────────────
   CARD 03 — Pulsation de contour (battement)
───────────────────────────────────────────── */
@media (hover: hover) {
  .svc-card[data-svc="train"]:hover {
    border-color: rgba(127,73,255,0.5);
    animation: svc-card-heartbeat 1.8s ease-in-out infinite;
  }
}

@keyframes svc-card-heartbeat {
  0%, 100% {
    transform: translateY(-4px);
    box-shadow:
      0 0  0   1px rgba(127,73,255,0.35),
      0 0  14px    rgba(127,73,255,0.12),
      0 20px 50px  rgba(0,0,0,0.35);
  }
  45% {
    transform: translateY(-6px);
    box-shadow:
      0 0  0   2px rgba(127,73,255,0.70),
      0 0  28px    rgba(127,73,255,0.35),
      0 0  55px    rgba(127,73,255,0.15),
      0 24px 60px  rgba(0,0,0,0.40);
  }
  65% {
    transform: translateY(-4px);
    box-shadow:
      0 0  0   1px rgba(127,73,255,0.35),
      0 0  16px    rgba(127,73,255,0.12),
      0 20px 50px  rgba(0,0,0,0.35);
  }
  80% {
    transform: translateY(-5px);
    box-shadow:
      0 0  0   1.5px rgba(127,73,255,0.55),
      0 0  22px     rgba(127,73,255,0.22),
      0 0  45px     rgba(127,73,255,0.10),
      0 22px 55px   rgba(0,0,0,0.38);
  }
}

/* Visual area */
.svc-visual {
  height: 180px;
  background: rgba(5,6,11,0.7);
  border-bottom: 1px solid rgba(127,73,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 20px 20px 0 0; /* préserve les coins haut de la carte */
}

.svc-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(127,73,255,0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.6;
  pointer-events: none;
}

/* Body */
.svc-body {
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.svc-num {
  font-size: 10px;
  font-weight: 800;
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.1em;
  color: rgba(127,73,255,0.55);
  text-transform: uppercase;
}

.svc-body h3 {
  font-size: 18px;
  font-weight: 800;
  color: #f5f7fc;
  line-height: 1.25;
  margin: 0;
}

.svc-lead {
  font-size: 13px;
  color: rgba(245,247,252,0.55);
  margin: 0;
  line-height: 1.5;
}

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

.svc-list li {
  font-size: 12.5px;
  color: rgba(245,247,252,0.7);
  padding-left: 16px;
  position: relative;
}

.svc-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(127,73,255,0.6);
}

.svc-result {
  font-size: 12px;
  color: rgba(127,73,255,0.8);
  font-weight: 600;
  margin: 4px 0 0;
  padding: 8px 12px;
  background: rgba(127,73,255,0.07);
  border-radius: 8px;
  border-left: 2px solid rgba(127,73,255,0.4);
}

/* ── Visual 01 — Audit screen ─────────────────────────────── */
.svc-audit-screen {
  width: 88%;
  background: rgba(8,9,20,0.95);
  border: 1px solid rgba(127,73,255,0.18);
  border-radius: 10px;
  padding: 14px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.svc-audit-row {
  display: grid;
  grid-template-columns: 1fr 1fr 36px;
  gap: 8px;
  align-items: center;
}

.svc-audit-label {
  font-size: 9px;
  color: rgba(245,247,252,0.5);
  font-family: 'Space Mono', monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.svc-audit-bar {
  height: 5px;
  background: rgba(127,73,255,0.12);
  border-radius: 3px;
  overflow: hidden;
}

.svc-audit-bar span {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #7f49ff, #a855f7);
  width: 0;
  /* L'animation est déclenchée par JS via .svc-audit--playing */
}

/* Quand JS ajoute la classe, les barres s'animent avec stagger */
.svc-audit-screen.svc-audit--playing .svc-audit-bar span {
  animation: svc-bar-fill 1.1s cubic-bezier(0.25,1,0.5,1) forwards;
}

.svc-audit-screen.svc-audit--playing .svc-audit-row:nth-child(1) .svc-audit-bar span { animation-delay: 0s;    }
.svc-audit-screen.svc-audit--playing .svc-audit-row:nth-child(2) .svc-audit-bar span { animation-delay: 0.13s; }
.svc-audit-screen.svc-audit--playing .svc-audit-row:nth-child(3) .svc-audit-bar span { animation-delay: 0.26s; }
.svc-audit-screen.svc-audit--playing .svc-audit-row:nth-child(4) .svc-audit-bar span { animation-delay: 0.39s; }

@keyframes svc-bar-fill {
  from { width: 0; }
  to   { width: var(--w, 70%); }
}

.svc-audit-bar--warn span { background: linear-gradient(90deg, #f87171, #fb923c); }
.svc-audit-bar--ok  span { background: linear-gradient(90deg, #4ade80, #22c55e); }

/* Compteur de pourcentage : fondu lors du reset */
.svc-audit-pct {
  transition: opacity 0.2s;
}
.svc-audit-screen:not(.svc-audit--playing) .svc-audit-pct {
  opacity: 0;
}

.svc-audit-pct {
  font-size: 9px;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  color: rgba(127,73,255,0.7);
  text-align: right;
}
.svc-audit-pct--warn { color: rgba(248,113,113,0.8); }
.svc-audit-pct--ok   { color: rgba(74,222,128,0.8);  }

.svc-audit-scan {
  position: absolute;
  top: 0; left: -100%; right: -100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(127,73,255,0.5), transparent);
  animation: svc-scan 2.5s ease-in-out infinite;
}

@keyframes svc-scan {
  0%   { transform: translateX(-100%); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}

/* ── Visual 02 — Flow ─────────────────────────────────────── */
/* ── Visual 02 — Flow diagram (CSS Grid, no overlap) ──────── */
.svc-flow {
  display: grid;
  grid-template-columns: 1fr 28px 1fr 28px 1fr;
  grid-template-rows: auto 28px auto;
  width: 100%;
  align-items: center;
  justify-items: stretch;
  padding: 0 2px;
}

/* ── Row 1 placement ── */
.svc-fn-a  { grid-column: 1; grid-row: 1; }
.svc-fe-h1 { grid-column: 2; grid-row: 1; }
.svc-fn-b  { grid-column: 3; grid-row: 1; }
.svc-fe-h2 { grid-column: 4; grid-row: 1; }
.svc-fn-c  { grid-column: 5; grid-row: 1; }

/* ── Row 2: vertical connector (col 3 only) ── */
.svc-flow-vcon {
  grid-column: 3;
  grid-row: 2;
  justify-self: center;
  align-self: stretch;
  width: 2px;
  background: linear-gradient(to bottom, rgba(127,73,255,0.35), rgba(127,73,255,0.15));
  position: relative;
  overflow: visible;
}

/* ── Row 3 placement ── */
.svc-fn-d  { grid-column: 3; grid-row: 3; }
.svc-fe-h3 { grid-column: 4; grid-row: 3; }
.svc-fn-e  { grid-column: 5; grid-row: 3; }

/* ── Nodes ── */
.svc-flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(10,11,22,0.98);
  border: 1.5px solid rgba(127,73,255,0.22);
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  min-height: 62px;
}

.svc-card:hover .svc-flow-node {
  border-color: rgba(127,73,255,0.48);
  box-shadow: 0 0 16px rgba(127,73,255,0.12);
}

/* Central "Automatique" node — highlighted */
.svc-fn-b {
  border-color: rgba(127,73,255,0.45);
  background: rgba(127,73,255,0.09);
  box-shadow: 0 0 18px rgba(127,73,255,0.1);
}

.svc-card:hover .svc-fn-b {
  border-color: rgba(127,73,255,0.7);
  box-shadow: 0 0 22px rgba(127,73,255,0.22);
}

/* Fichier client — green tint */
.svc-fn-d {
  border-color: rgba(74,222,128,0.22);
}
.svc-card:hover .svc-fn-d { border-color: rgba(74,222,128,0.5); }

/* Alerte équipe — orange tint */
.svc-fn-e {
  border-color: rgba(251,146,60,0.22);
}
.svc-card:hover .svc-fn-e { border-color: rgba(251,146,60,0.45); }

.svc-fn-icon { font-size: 17px; line-height: 1; }

.svc-flow-node span:last-child {
  font-size: 8.5px;
  font-weight: 700;
  color: rgba(245,247,252,0.6);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ── Horizontal edges ── */
.svc-flow-edge {
  width: 100%;
  height: 2px;
  background: rgba(127,73,255,0.22);
  position: relative;
  overflow: visible;
  align-self: center;
}

/* ── Animated dot (horizontal) ── */
.svc-flow-dot {
  position: absolute;
  top: 50%;
  left: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9d72ff;
  transform: translateY(-50%);
  box-shadow: 0 0 7px rgba(127,73,255,0.8);
  animation: svc-dot-h 2.2s ease-in-out infinite;
}

@keyframes svc-dot-h {
  0%   { left: -4px;           opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { left: calc(100% - 3px); opacity: 0; }
}

/* ── Animated dot (vertical) ── */
.svc-flow-dot-v {
  position: absolute;
  top: -4px;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9d72ff;
  transform: translateX(-50%);
  box-shadow: 0 0 7px rgba(127,73,255,0.8);
  animation: svc-dot-v 2.2s ease-in-out infinite 0.75s;
}

@keyframes svc-dot-v {
  0%   { top: -4px;             opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { top: calc(100% - 3px); opacity: 0; }
}

/* ── Visual 03 — Checklist (interactive) ─────────────────── */
.svc-checklist {
  width: 85%;
  background: rgba(8,9,20,0.95);
  border: 1px solid rgba(127,73,255,0.18);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

/* All-done glow on the card */
.svc-checklist.svc-check--complete {
  border-color: rgba(127,73,255,0.55);
  box-shadow: 0 0 22px rgba(127,73,255,0.18);
}

.svc-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(245,247,252,0.45);
  cursor: pointer;
  user-select: none;
  border-radius: 6px;
  padding: 3px 5px 3px 3px;
  transition: color 0.25s, background 0.2s;
}

/* Hover state */
@media (hover: hover) {
  .svc-check-item:hover {
    background: rgba(127,73,255,0.07);
    color: rgba(245,247,252,0.7);
  }
  .svc-check-item:hover .svc-check-box {
    border-color: rgba(127,73,255,0.6);
    box-shadow: 0 0 0 3px rgba(127,73,255,0.1);
  }
}

/* Focus ring for keyboard nav */
.svc-check-item:focus-visible {
  outline: 2px solid rgba(127,73,255,0.5);
  outline-offset: 2px;
}

.svc-check-box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid rgba(127,73,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: transparent;
  flex-shrink: 0;
  transition: background 0.25s, border-color 0.25s, color 0.15s, transform 0.15s;
}

.svc-check--done .svc-check-box {
  background: linear-gradient(135deg, #7f49ff, #a855f7);
  border-color: transparent;
  color: #fff;
}

.svc-check--done { color: rgba(245,247,252,0.85); }

/* Bounce pop when newly checked */
.svc-check--bounce .svc-check-box {
  animation: svc-box-bounce 0.38s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes svc-box-bounce {
  0%   { transform: scale(0.6); }
  60%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Uncheck shrink */
.svc-check--uncheck .svc-check-box {
  animation: svc-box-shrink 0.22s ease both;
}

@keyframes svc-box-shrink {
  0%   { transform: scale(1); }
  40%  { transform: scale(0.75); }
  100% { transform: scale(1); }
}

.svc-check--active .svc-check-box {
  border-color: #7f49ff;
  animation: svc-check-pulse 1.4s ease-in-out infinite;
}

.svc-check--active { color: rgba(245,247,252,0.65); }

@keyframes svc-check-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(127,73,255,0.4); }
  50%      { box-shadow: 0 0 0 5px rgba(127,73,255,0); }
}

/* Confetti burst on full completion */
.svc-check--complete-burst {
  animation: svc-burst 0.5s ease both;
}

@keyframes svc-burst {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.035); }
  100% { transform: scale(1); }
}

/* Progress bar */
.svc-check-progress {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.svc-check-progress-fill {
  flex: 1;
  height: 4px;
  background: rgba(127,73,255,0.12);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.svc-check-progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  width: var(--prog, 50%);
  background: linear-gradient(90deg, #7f49ff, #a855f7);
  border-radius: 2px;
  transition: width 0.45s cubic-bezier(0.4,0,0.2,1);
}

.svc-check-progress-label {
  font-size: 9px;
  font-family: 'Space Mono', monospace;
  color: rgba(127,73,255,0.6);
  white-space: nowrap;
  transition: color 0.3s;
}

.svc-checklist.svc-check--complete .svc-check-progress-label {
  color: rgba(127,73,255,0.9);
}

/* ================================================================
   TESTIMONIALS CAROUSEL v2  (20260331)
   ================================================================ */

.testi-carousel {
  position: relative;
  overflow: hidden;
  padding-bottom: 52px;
}

.testi-track {
  display: flex;
  gap: 16px;
  transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Card */
.testi-card {
  flex: 0 0 calc((100% - 32px) / 3);
  min-width: 0;
  background: rgba(10,11,22,0.95);
  border: 1px solid rgba(127,73,255,0.14);
  border-radius: 18px;
  padding: 26px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
  transition: border-color 0.3s, transform 0.3s;
}

.testi-card:hover {
  border-color: rgba(127,73,255,0.3);
  transform: translateY(-3px);
}

.testi-quote {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(245,247,252,0.88);
  font-weight: 600;
  margin: 0;
  position: relative;
  padding-top: 24px;
}

.testi-quote::before {
  content: '"';
  position: absolute;
  top: -4px;
  left: 0;
  font-size: 2.8rem;
  color: rgba(127,73,255,0.4);
  line-height: 1;
  font-family: Georgia, serif;
}

.testi-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.testi-tags span {
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  background: rgba(127,73,255,0.1);
  border: 1px solid rgba(127,73,255,0.18);
  color: rgba(200,180,255,0.8);
}

.testi-author {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(127,73,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.testi-author strong {
  font-size: 13px;
  font-weight: 700;
  color: #f5f7fc;
}

.testi-author span {
  font-size: 11.5px;
  color: rgba(245,247,252,0.4);
}

/* Controls */
.testi-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.testi-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(127,73,255,0.1);
  border: 1px solid rgba(127,73,255,0.2);
  color: rgba(200,180,255,0.8);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.testi-btn:hover {
  background: rgba(127,73,255,0.22);
  border-color: rgba(127,73,255,0.4);
  color: #f5f7fc;
}

.testi-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.testi-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(127,73,255,0.25);
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  padding: 0;
}

.testi-dot--active {
  background: #7f49ff;
  width: 22px;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(127,73,255,0.5);
}

@media (max-width: 1024px) {
  .testi-card { flex: 0 0 calc((100% - 16px) / 2); }
}

@media (max-width: 599px) {
  .testi-card { flex: 0 0 100%; }
}

/* ================================================================
   LOCATION BLOCK v2  (20260331)
   ================================================================ */

/* ================================================================
   CONTACT UNIFIÉ  —  cu-card
   ================================================================ */

.cu-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(10,11,22,0.96);
  border: 1px solid rgba(127,73,255,0.16);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,0.38);
}

@media (max-width: 820px) {
  .cu-card { grid-template-columns: 1fr; }
}

/* ── Colonne info (gauche) ── */
.cu-info {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

@media (max-width: 600px) {
  .cu-info { padding: 32px 24px; gap: 18px; }
}

.cu-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Badge "Disponible" */
.loc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #4ade80;
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.2);
  border-radius: 20px;
  padding: 4px 11px;
  white-space: nowrap;
}

.loc-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  animation: loc-badge-pulse 2s ease-in-out infinite;
}

@keyframes loc-badge-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(74,222,128,0.5); }
  50%      { box-shadow: 0 0 0 4px rgba(74,222,128,0); }
}

/* Email principal cliquable */
.cu-email {
  font-size: clamp(1.25rem, 2.8vw, 1.9rem);
  font-weight: 800;
  color: #f5f7fc;
  text-decoration: none;
  letter-spacing: -0.02em;
  line-height: 1.15;
  transition: color 0.22s;
}

.cu-email:hover { color: #a07fff; }

/* Séparateur */
.cu-sep {
  height: 1px;
  background: rgba(127,73,255,0.12);
  border-radius: 1px;
}

/* Faits de contact */
.cu-facts {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cu-fact {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.cu-fact-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(127,73,255,0.09);
  border: 1px solid rgba(127,73,255,0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(200,170,255,0.75);
  margin-top: 2px;
}

.cu-fact > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cu-fact-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: rgba(245,247,252,0.28);
}

.cu-fact strong {
  font-size: 13px;
  font-weight: 600;
  color: rgba(245,247,252,0.85);
  line-height: 1.4;
}

.cu-fact-link {
  font-size: 13px;
  font-weight: 600;
  color: #9d72ff;
  text-decoration: none;
  transition: color 0.2s;
}

.cu-fact-link:hover { color: #c4a0ff; }

/* Boutons d'action */
.cu-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.cu-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* ── Colonne carte (droite) ── */
.cu-map {
  position: relative;
  min-height: 320px;
  background: rgba(6,7,18,0.92);
  overflow: hidden;
  border-left: 1px solid rgba(127,73,255,0.1);
}

@media (max-width: 820px) {
  .cu-map {
    min-height: 220px;
    border-left: none;
    border-top: 1px solid rgba(127,73,255,0.1);
  }
}

/* Map grid/roads/pin — shared avec l'ancien loc-map-panel */
.loc-map-bg { position: absolute; inset: 0; }

.loc-grid-h, .loc-grid-v {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(127,73,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.loc-grid-v {
  background-image: linear-gradient(90deg, rgba(127,73,255,0.05) 1px, transparent 1px);
}

.loc-roads { position: absolute; inset: 0; }

.loc-road { position: absolute; background: rgba(127,73,255,0.12); }
.loc-road-h1 { top: 40%; left: 0; right: 0; height: 12px; border-radius: 6px; }
.loc-road-h2 { top: 65%; left: 10%; right: 10%; height: 8px; border-radius: 4px; }
.loc-road-v1 { left: 35%; top: 0; bottom: 0; width: 10px; border-radius: 5px; }
.loc-road-v2 { left: 65%; top: 15%; bottom: 15%; width: 7px; border-radius: 4px; }

.loc-pin-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loc-pin-pulse {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(127,73,255,0.15);
  animation: loc-pulse 2s ease-out infinite;
}

@keyframes loc-pulse {
  0%   { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2);   opacity: 0; }
}

.loc-pin {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 12px rgba(127,73,255,0.5));
}

/* Chip en bas de la carte */
.cu-map-chip {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10,11,22,0.88);
  border: 1px solid rgba(127,73,255,0.2);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(245,247,252,0.7);
  white-space: nowrap;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ================================================================
   PAGE FLOW CONNECTOR  —  progression n8n-style (≥1280px)
   ================================================================ */

.page-flow {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  height: 70vh;
  width: 32px;
  z-index: 300;
  pointer-events: none;
  display: none;          /* activé par JS uniquement sur grands écrans */
  user-select: none;
}

/* Track — filet gris */
.pf-track {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  top: 10px;
  bottom: 10px;
  background: rgba(127,73,255,0.10);
  border-radius: 2px;
  overflow: visible;
}

/* Remplissage violet */
.pf-fill {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 0%;
  background: linear-gradient(to bottom, #7f49ff, #a855f7 80%, #c084fc);
  border-radius: 2px;
  transition: height 0.12s linear;
}

/* Point voyageur qui court sur le filet */
.pf-traveler {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #e879f9;
  box-shadow: 0 0 8px 2px rgba(232,121,249,0.7);
  top: 0;
  transition: top 0.12s linear;
  z-index: 2;
}

/* Nœud (un par section) */
.pf-node {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(8,9,20,0.95);
  border: 1.5px solid rgba(127,73,255,0.22);
  cursor: pointer;
  pointer-events: auto;
  z-index: 3;
  transition: border-color 0.35s, background 0.35s, box-shadow 0.35s;
}

/* Nœud déjà passé */
.pf-node.is-passed {
  background: #7f49ff;
  border-color: #7f49ff;
  box-shadow: 0 0 0 2px rgba(127,73,255,0.15);
}

/* Nœud actif (section courante) */
.pf-node.is-active {
  background: #a855f7;
  border-color: #e879f9;
  box-shadow: 0 0 0 3px rgba(168,85,247,0.25), 0 0 12px rgba(168,85,247,0.55);
  animation: pf-pulse 2s ease-in-out infinite;
}

@keyframes pf-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(168,85,247,0.25), 0 0 12px rgba(168,85,247,0.55); }
  50%       { box-shadow: 0 0 0 5px rgba(168,85,247,0.12), 0 0 22px rgba(168,85,247,0.75); }
}

/* Label flottant à droite du nœud */
.pf-label {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 8.5px;
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(127,73,255,0.28);
  white-space: nowrap;
  pointer-events: none;
  transition: color 0.3s, opacity 0.3s;
}

.pf-node.is-passed .pf-label { color: rgba(127,73,255,0.5); }
.pf-node.is-active  .pf-label { color: rgba(192,132,252,0.85); }

/* ================================================================
   GLASS FAB NAV — Mobile scroll bubble menu
   ================================================================ */

/* ── Header smooth slide on mobile ─────────────────────── */
@media (max-width: 900px) {
  body[data-page-mode="multi"] #top {
    transition:
      transform 0.42s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.35s ease !important;
    will-change: transform, opacity;
  }
}

/* Header slides up & fades when FAB takes over */
.site-header.liquid-active {
  transform: translateY(-110%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ── Glass bubble FAB ───────────────────────────────────── */
.liquid-fab-btn {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 9000;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(18, 10, 40, 0.35);
  backdrop-filter: blur(28px) saturate(160%) brightness(1.1);
  -webkit-backdrop-filter: blur(28px) saturate(160%) brightness(1.1);
  box-shadow:
    0 6px 28px rgba(0, 0, 0, 0.32),
    0 1px 6px rgba(127, 73, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.5) translateY(16px);
  transition:
    opacity 0.35s ease,
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    visibility 0s 0.4s,
    background 0.25s ease,
    box-shadow 0.25s ease;
  pointer-events: none;
  -webkit-tap-highlight-color: transparent;
}

.liquid-fab-btn.liquid-fab--visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
  transition:
    opacity 0.35s ease,
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    visibility 0s 0s,
    background 0.25s ease,
    box-shadow 0.25s ease;
  pointer-events: auto;
}

.liquid-fab-btn:hover {
  background: rgba(127, 73, 255, 0.18);
  border-color: rgba(127, 73, 255, 0.25);
  box-shadow:
    0 8px 36px rgba(0, 0, 0, 0.38),
    0 2px 12px rgba(127, 73, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.liquid-fab-btn:active {
  transform: scale(0.9) !important;
  transition-duration: 0.1s !important;
}

/* Hamburger bars (fine strokes, premium feel) */
.liquid-fab-btn span {
  display: block;
  height: 1.5px;
  background: rgba(245, 247, 252, 0.9);
  border-radius: 2px;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.22s ease, width 0.3s ease;
  pointer-events: none;
}
.liquid-fab-btn span:nth-child(1) { width: 20px; }
.liquid-fab-btn span:nth-child(2) { width: 20px; }
.liquid-fab-btn span:nth-child(3) { width: 20px; }

/* Morph to X when open */
.liquid-fab-btn.liquid-fab--open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
  width: 20px;
}
.liquid-fab-btn.liquid-fab--open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
  width: 0;
}
.liquid-fab-btn.liquid-fab--open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
  width: 20px;
}

/* Nav opened via FAB: top padding adjusts since header is hidden */
body.fab-nav-open[data-page-mode="multi"] .mobile-nav-panel {
  padding-top: 52px;
}

/* ── Desktop: hide FAB, restore header ──────────────────── */
@media (min-width: 901px) {
  .liquid-fab-btn {
    display: none !important;
  }
  .site-header.liquid-active {
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

/* ════════════════════════════════════════════════════════════
   ── Mobile 3-D metric card stack (≤900px) ────────────────
   ════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {

  /* ── Section: full-width scroll track ─────────────────── */
  body[data-page="home"] .home-metrics.metric-stack-active {
    /* Break out of the .section 92vw/auto-margin constraint */
    width: 100vw;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    box-sizing: border-box;
    /* JS sets height via inline style */
  }

  /* ── Grid: sticky full-screen viewport ────────────────── */
  body[data-page="home"] .home-metrics.metric-stack-active .home-metric-grid {
    display: block;
    position: sticky;
    top: 0;
    width: 100%;
    height: 100svh;
    overflow: hidden;
    perspective: 1000px;
    perspective-origin: 50% 38%;
    grid-template-columns: unset;
    gap: 0;
  }

  /* ── Cards: absolutely stacked inside viewport ─────────── */
  body[data-page="home"] .home-metrics.metric-stack-active .home-metric-card,
  body[data-page="home"] .home-metrics.metric-stack-active .home-metric-card.reveal,
  body[data-page="home"] .home-metrics.metric-stack-active .home-metric-card.is-visible,
  body[data-page="home"] .home-metrics.metric-stack-active .home-metric-card.reveal.is-visible {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 44px 32px;
    border-radius: 0;
    min-height: unset;
    /* JS controls opacity + transform via inline style — CSS just sets neutral baseline */
    opacity: 0;
    transform: scale(1.1) translateZ(70px);
    filter: none;
    will-change: transform, opacity;
    backface-visibility: hidden;
    transition: none;
  }

  /* z-order */
  body[data-page="home"] .home-metrics.metric-stack-active .home-metric-card:nth-child(1) { z-index: 4; }
  body[data-page="home"] .home-metrics.metric-stack-active .home-metric-card:nth-child(2) { z-index: 3; }
  body[data-page="home"] .home-metrics.metric-stack-active .home-metric-card:nth-child(3) { z-index: 2; }
  body[data-page="home"] .home-metrics.metric-stack-active .home-metric-card:nth-child(4) { z-index: 1; }

  body[data-page="home"] .home-metrics.metric-stack-active .home-metric-card::before { display: none; }
  body[data-page="home"] .home-metrics.metric-stack-active .home-metric-card::after  { display: none !important; }

  /* Larger text on full-screen card */
  body[data-page="home"] .home-metrics.metric-stack-active .home-metric-value {
    font-size: clamp(4rem, 20vw, 6rem);
    line-height: 0.85;
    margin-bottom: 10px;
  }
  body[data-page="home"] .home-metrics.metric-stack-active .home-metric-card h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
  }
  body[data-page="home"] .home-metrics.metric-stack-active .home-metric-card > p:last-child {
    font-size: 0.97rem;
    line-height: 1.65;
    max-width: 32ch;
  }
}

/* ════════════════════════════════════════════════════════════════
   ── n8n-style Demo App (dan = demo autom8te n8n) ─────────────
   ════════════════════════════════════════════════════════════════ */

/* ── Override demo-app for new structure ─────────────────── */
.demo-app {
  height: 660px;
  display: flex;
  flex-direction: column;
}

/* ── Top bar ─────────────────────────────────────────────── */
.dan-topbar {
  display: flex;
  align-items: center;
  height: 48px;
  background: #0f1016;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 0 16px;
  gap: 10px;
  flex-shrink: 0;
  z-index: 10;
}

.dan-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #7f49ff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.dan-brand-icon {
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #7f49ff, #a855f7);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.dan-brand em {
  font-style: normal;
  color: rgba(245,247,252,0.35);
  font-weight: 400;
}

.dan-crumb {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.dan-crumb-back {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  color: rgba(245,247,252,0.4);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 7px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.dan-crumb-back:hover {
  color: rgba(245,247,252,0.85);
  background: rgba(255,255,255,0.06);
}

.dan-crumb-sep { color: rgba(245,247,252,0.18); font-size: 12px; }

.dan-crumb-wfname {
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(245,247,252,0.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.dan-crumb-tags { display: flex; gap: 5px; flex-shrink: 0; }

.dan-crumb-tag {
  font-size: 9.5px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(127,73,255,0.1);
  color: rgba(200,190,255,0.65);
  border: 1px solid rgba(127,73,255,0.18);
}

.dan-topbar-r {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.dan-exec-count {
  font-size: 10.5px;
  font-family: 'Space Mono', monospace;
  color: rgba(245,247,252,0.35);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 2px 10px;
}

.dan-publish-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 7px;
  background: rgba(250,204,21,0.1);
  border: 1px solid rgba(250,204,21,0.28);
  color: #facc15;
  cursor: pointer;
  transition: background 0.15s;
}

.dan-publish-btn:hover { background: rgba(250,204,21,0.2); }

.dan-publish-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #facc15;
  flex-shrink: 0;
}

/* ── Views ────────────────────────────────────────────────── */
.dan-view {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  animation: dan-fadein 0.2s ease both;
}
.dan-view[hidden] {
  display: none !important;
}

@keyframes dan-fadein {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Stats bar ───────────────────────────────────────────── */
.dan-stats-bar {
  display: flex;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.dan-stat-cell {
  flex: 1;
  padding: 11px 14px;
  border-right: 1px solid rgba(255,255,255,0.05);
  min-width: 0;
}

.dan-stat-cell:last-child { border-right: none; }

.dan-stat-num {
  font-size: 17px;
  font-weight: 800;
  font-family: 'Space Mono', monospace;
  color: #f0edff;
  line-height: 1;
  margin-bottom: 2px;
}

.dan-stat-desc {
  font-size: 9.5px;
  color: rgba(245,247,252,0.3);
  line-height: 1.35;
  margin-bottom: 2px;
}

.dan-stat-trend { font-size: 9px; font-family: 'Space Mono', monospace; }
.dan-trend-up   { color: #f87171; }
.dan-trend-down { color: #4ade80; }

/* ── Overview tabs ───────────────────────────────────────── */
.dan-ov-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 0 16px;
  flex-shrink: 0;
}

.dan-ov-tab {
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(245,247,252,0.35);
  padding: 9px 14px;
  cursor: pointer;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  margin-bottom: -1px;
}

.dan-ov-tab:hover { color: rgba(245,247,252,0.75); }

.dan-ov-tab--active {
  color: #e85d33;
  border-bottom-color: #e85d33;
}

/* ── Workflow list ───────────────────────────────────────── */
.dan-wf-list {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(127,73,255,0.15) transparent;
}

.dan-wf-list::-webkit-scrollbar { width: 3px; }
.dan-wf-list::-webkit-scrollbar-thumb { background: rgba(127,73,255,0.2); border-radius: 2px; }

.dan-wf-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.045);
  cursor: pointer;
  transition: background 0.15s;
}

.dan-wf-row:hover { background: rgba(255,255,255,0.025); }
.dan-wf-row:hover .dan-wf-row-name { color: #f0edff; }

.dan-wf-row-info { flex: 1; min-width: 0; }

.dan-wf-row-name {
  font-size: 13px;
  font-weight: 600;
  color: rgba(245,247,252,0.82);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s;
}

.dan-wf-row-meta {
  font-size: 10.5px;
  color: rgba(245,247,252,0.25);
}

.dan-wf-row-tags { display: flex; gap: 5px; flex-shrink: 0; }

.dan-wf-tag {
  font-size: 9.5px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
  color: rgba(245,247,252,0.38);
  border: 1px solid rgba(255,255,255,0.07);
  white-space: nowrap;
}

.dan-wf-row-scope {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  color: rgba(245,247,252,0.25);
  white-space: nowrap;
  flex-shrink: 0;
}

.dan-wf-row-status {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.dan-wf-status--active {
  background: rgba(74,222,128,0.1);
  color: #4ade80;
  border: 1px solid rgba(74,222,128,0.22);
}

/* ── Editor view ─────────────────────────────────────────── */
.dan-editor {
  position: relative;
}

.dan-editor-tabs {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  background: #0f1016;
  border: 1px solid rgba(255,255,255,0.08);
  border-top: none;
  border-radius: 0 0 10px 10px;
  padding: 0 4px;
  z-index: 10;
}

.dan-editor-tab {
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(245,247,252,0.35);
  padding: 6px 13px;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.15s;
}

.dan-editor-tab:hover { color: rgba(245,247,252,0.75); }
.dan-editor-tab--active { color: rgba(245,247,252,0.92); font-weight: 600; }

/* ── Canvas ──────────────────────────────────────────────── */
.dan-canvas-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
  background-color: #0b0c15;
  background-image: radial-gradient(circle, rgba(127,73,255,0.09) 1px, transparent 1px);
  background-size: 22px 22px;
}

.dan-canvas {
  position: absolute;
  inset: 0;
}

/* ── Square nodes ────────────────────────────────────────── */
.wf-sq-wrap {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.72) translateY(8px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  z-index: 2;
}

.wf-sq-wrap.wf-sq--in {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.wf-sq-node {
  width: 60px;
  height: 60px;
  background: #1c1e2e;
  border: 1.5px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  position: relative;
  transition: border-color 0.22s, box-shadow 0.22s, transform 0.18s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.wf-sq-wrap:hover .wf-sq-node {
  border-color: rgba(127,73,255,0.55);
  box-shadow: 0 0 0 2px rgba(127,73,255,0.14), 0 4px 18px rgba(0,0,0,0.5);
  transform: translateY(-2px) scale(1.06);
}

.wf-sq-node--running {
  border-color: var(--nc, #7f49ff) !important;
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--nc, #7f49ff) 22%, transparent),
    0 0 22px color-mix(in srgb, var(--nc, #7f49ff) 30%, transparent) !important;
  animation: wf-sq-pulse 0.55s ease;
}

.wf-sq-node--done {
  border-color: rgba(74,222,128,0.45) !important;
}

@keyframes wf-sq-pulse {
  0%  { transform: scale(1); }
  45% { transform: scale(1.14); }
  100%{ transform: scale(1); }
}

.wf-sq-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #1c1e2e;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  font-size: 8px;
  font-family: 'Space Mono', monospace;
  color: rgba(245,247,252,0.35);
  padding: 1px 5px;
  line-height: 14px;
  min-width: 18px;
  text-align: center;
}

.wf-sq-node--done .wf-sq-badge {
  background: rgba(74,222,128,0.12);
  color: #4ade80;
  border-color: rgba(74,222,128,0.28);
}

.wf-sq-icon { line-height: 1; display: block; }

.wf-sq-label {
  font-size: 9.5px;
  font-weight: 500;
  color: rgba(245,247,252,0.42);
  text-align: center;
  white-space: nowrap;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.18s;
}

.wf-sq-wrap:hover .wf-sq-label { color: rgba(245,247,252,0.78); }

/* ── Canvas toolbar ──────────────────────────────────────── */
.dan-canvas-toolbar {
  position: absolute;
  bottom: 55px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1px;
  background: #111219;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 4px 6px;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0,0,0,0.45);
}

.dan-canvas-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 6px;
  color: rgba(245,247,252,0.35);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.dan-canvas-btn:hover {
  background: rgba(255,255,255,0.07);
  color: rgba(245,247,252,0.75);
}

.dan-canvas-btn--active {
  background: rgba(255,255,255,0.07);
  color: rgba(245,247,252,0.7);
}

.dan-zoom-val {
  font-size: 10.5px;
  font-family: 'Space Mono', monospace;
  color: rgba(245,247,252,0.3);
  padding: 0 7px;
  min-width: 38px;
  text-align: center;
}

/* ── Execute button ──────────────────────────────────────── */
.dan-execute-btn {
  position: absolute;
  bottom: 10px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: #e85d33;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(232,93,51,0.38);
  transition: background 0.18s, transform 0.14s, box-shadow 0.18s;
}

.dan-execute-btn:hover {
  background: #f0663d;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(232,93,51,0.48);
}

.dan-execute-btn:disabled {
  background: rgba(232,93,51,0.5);
  cursor: default;
  transform: none;
}
