:root {
  /* Brand ArcaSafe - High-Key White & Composed Institutional Emerald */
  --as-green-primary: #008767;
  --as-green-brand: #1b8a6b;
  --as-green-mint: #3ea688;
  --as-green-bright: #009f7a;
  --as-green-tint: #e4f4ee;
  --as-green-surface: #f3faf7;
  --as-bg-light: #f7faf9;
  --as-white: #ffffff;

  /* Architectural Slate & Soft Pearl Surfaces (Replacing Heavy Dark/Black) */
  --as-anthracite: #16221e;
  --as-anthracite-soft: #2c3a35;
  --as-dark-deep: #0b221a;
  --as-dark-stage: #f0f7f4;
  --as-dark-card: #ffffff;
  --as-dark-border: #cfe2db;

  /* Text & Neutrals */
  --as-text-main: #16221e;
  --as-text-body: #42524d;
  --as-text-muted: #687873;
  --as-border-light: #d7e6e0;

  /* Composed Institutional Alert / Emergency IR H24 (No Neon) */
  --as-emergency: #c9352b;
  --as-emergency-soft: #fdf2f1;
  --as-gold: #008767;

  /* Typography */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Shadows & Transitions */
  --shadow-sm: 0 4px 16px rgba(15, 38, 30, 0.04);
  --shadow-md: 0 14px 34px rgba(15, 38, 30, 0.07);
  --shadow-lg: 0 22px 52px rgba(15, 38, 30, 0.09);
  --shadow-glow: 0 8px 26px rgba(0, 135, 103, 0.18);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--as-text-main);
  background-color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

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

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

.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ==========================================================================
   1. BUTTONS & SHARED CONTROLS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  transition: translate 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  translate: 0 -1px;
}

.btn-primary {
  background: var(--as-green-primary);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 135, 103, 0.22);
}

.btn-primary:hover {
  background: #006f54;
  box-shadow: 0 10px 24px rgba(0, 135, 103, 0.28);
}

.btn-outline {
  border: 1.5px solid #cfe0d9;
  background: #ffffff;
  color: var(--as-anthracite);
}

.btn-outline:hover {
  border-color: var(--as-green-primary);
  color: var(--as-green-primary);
  background: var(--as-green-surface);
}

.btn-dark-glass {
  background: #ffffff;
  border: 1.5px solid #cfe0d9;
  color: var(--as-anthracite);
  box-shadow: 0 4px 12px rgba(15, 38, 30, 0.05);
}

.btn-dark-glass:hover {
  background: var(--as-green-surface);
  border-color: var(--as-green-primary);
  color: var(--as-green-primary);
}

/* ==========================================================================
   2. HERO ECOSYSTEM STAGE (DEFAULT: HIGH-KEY WHITE STUDIO MODE)
   ========================================================================== */
.hero-ecosystem {
  position: relative;
  min-height: 100vh;
  padding-top: 86px; /* Prevents any overlap with fixed floating header */
  background: radial-gradient(circle at 38% 46%, #ffffff 0%, #f5faf8 58%, #ebf4f0 100%);
  color: var(--as-anthracite);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-bottom: 1px solid var(--as-border-light);
  transition: background 0.5s ease, color 0.4s ease;
}

/* Optional Dark Mode toggle */
.hero-ecosystem.stage-mode-dark {
  background: radial-gradient(circle at 38% 50%, #0e3327 0%, #071b14 55%, #04100c 100%);
  color: #ffffff;
}

/* --- STAGE 1: FULL-SCREEN FLOW / VEO INTRO VIDEO OVERLAY (ZERO OVERLAP ON AVATAR VIDEO) --- */
.flow-intro-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 105;
  background: #f4f9f7;
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.85s ease, scale 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.flow-intro-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  scale: 1.03;
}

/* Lock Stage 2 underneath while full-screen Intro Video is active so nothing bleeds through */
body:has(#flowIntroOverlay:not(.is-hidden)) {
  overflow: hidden;
}

.hero-ecosystem:has(#flowIntroOverlay:not(.is-hidden)) .hero-stage-bar,
.hero-ecosystem:has(#flowIntroOverlay:not(.is-hidden)) .hero-workspace,
.hero-ecosystem:has(#flowIntroOverlay:not(.is-hidden)) .hero-macro-dock {
  opacity: 0;
  pointer-events: none;
}

.flow-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

/* Keep 100% of the video crystal clear — no white bottom fog over the character */
.flow-video-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at 16% 84%,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0) 45%
  );
}

.flow-intro-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1440px;
  height: 100%;
  padding: 82px 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  pointer-events: none;
}

/* Hide bottom-right floating chatbot orb & make header ultra-translucent while full-screen intro video plays */
body:has(#flowIntroOverlay:not(.is-hidden)) #regulaiComicStage {
  opacity: 0 !important;
  pointer-events: none !important;
}

body:has(#flowIntroOverlay:not(.is-hidden)) .smart-header {
  background: rgba(255, 255, 255, 0.28) !important;
  backdrop-filter: blur(8px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(8px) saturate(140%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: none !important;
}

.flow-intro-clear-stage {
  flex: 1 1 auto;
  min-height: 50dvh;
  pointer-events: none;
}

/* Compact ultra-translucent HUD on bottom-left (over the window wall), leaving center/right face 100% free */
.flow-intro-dock {
  width: 100%;
  max-width: 450px;
  flex: 0 0 auto;
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-left: 3px solid var(--as-green-primary);
  border-radius: 20px;
  padding: 14px 18px 12px;
  box-shadow: 0 10px 28px rgba(8, 28, 21, 0.07);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.flow-intro-dock:hover {
  background: rgba(255, 255, 255, 0.56);
  border-color: rgba(0, 135, 103, 0.42);
  box-shadow: 0 14px 36px rgba(8, 28, 21, 0.12);
}

.flow-intro-dock-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.flow-intro-dock-copy {
  width: 100%;
}

.flow-intro-dock-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.flow-intro-dock-actions .btn {
  padding: 8px 14px;
  font-size: 0.8rem;
}

.flow-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(230, 245, 240, 0.68);
  border: 1px solid rgba(0, 135, 103, 0.28);
  color: var(--as-green-primary);
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.flow-title {
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 1.55vw, 1.42rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--as-anthracite);
  margin-bottom: 4px;
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.85);
}

.flow-title em {
  font-style: normal;
  color: var(--as-green-primary);
}

.flow-subtitle {
  font-size: 0.82rem;
  color: #162822;
  line-height: 1.38;
  margin-bottom: 0;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.8);
}

.flow-intro-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(0, 135, 103, 0.16);
  padding-top: 8px;
}

.flow-progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.flow-progress-bar {
  flex: 1;
  height: 3px;
  background: rgba(8, 28, 21, 0.14);
  border-radius: 999px;
  overflow: hidden;
}

.flow-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--as-green-primary);
  transition: width 0.15s linear;
}

.flow-progress-label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  color: #243b33;
  white-space: nowrap;
}

.flow-progress-hint {
  display: none;
}

/* --- STAGE 2: CENTRAL FULL-BODY AVATAR + 3D ORBIT + HOVER ONLINE CARD --- */
.hero-stage-bar {
  position: relative;
  z-index: 20;
  padding-top: 6px;
  padding-bottom: 4px;
}

.hero-stage-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-headline-compact {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--as-green-primary);
}

.hero-stage-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.85vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--as-anthracite);
}

.stage-mode-dark .hero-stage-title {
  color: #ffffff;
}

.hero-stage-title span {
  color: var(--as-green-primary);
}

.stage-mode-dark .hero-stage-title span {
  color: #58c2a6;
}

.stage-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.stage-ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid #cfe0d9;
  color: var(--as-text-body);
  box-shadow: 0 2px 8px rgba(15, 38, 30, 0.04);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.stage-ctrl-btn:hover,
.stage-ctrl-btn.is-active {
  background: var(--as-green-primary);
  border-color: var(--as-green-primary);
  color: #ffffff;
}

.stage-mode-dark .stage-ctrl-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(88, 194, 166, 0.3);
  color: rgba(255, 255, 255, 0.9);
}

/* Main two-column interactive workspace: Left/Center = Avatar + Orbit, Right = Live Service Card */
.hero-workspace {
  position: relative;
  z-index: 15;
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(360px, 0.92fr);
  align-items: stretch;
  gap: 24px;
  padding-top: 8px;
  padding-bottom: 14px;
}

/* Left/Center Orbital Stage (High-Key White Studio by default) */
.orbital-stage {
  position: relative;
  width: 100%;
  height: 546px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid #cfe2db;
  background: radial-gradient(circle at 50% 45%, #ffffff 0%, #f1f8f5 68%, #e3f0ea 100%);
  box-shadow: 0 18px 46px rgba(15, 38, 30, 0.07), inset 0 0 40px rgba(0, 135, 103, 0.04);
  user-select: none;
}

.stage-mode-dark .orbital-stage {
  background: #061711;
  border-color: rgba(88, 194, 166, 0.24);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42), inset 0 0 80px rgba(0, 159, 122, 0.14);
}

/* Full-body avatar digital backdrop */
.avatar-stage-figure {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.avatar-fullbody-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transition: opacity 0.5s ease, scale 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  animation: avatarFloat 7s ease-in-out infinite;
}

.stage-mode-dark .avatar-fullbody-img {
  object-fit: cover;
}

@keyframes avatarFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -5px; }
}

/* Interactive Digital Particle & Neural Pulse Canvas */
.stage-digital-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
}

/* SVG Synaptic Beam Overlay connecting Avatar <-> Orbiting Nodes */
.stage-synapse-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 8;
}

.synapse-orbit-ellipse {
  fill: none;
  stroke: rgba(0, 135, 103, 0.22);
  stroke-width: 1.2;
  stroke-dasharray: 5 7;
}

.synapse-beam {
  fill: none;
  stroke: rgba(0, 135, 103, 0.22);
  stroke-width: 1.5;
  stroke-dasharray: 4 6;
  transition: stroke 0.25s ease, stroke-width 0.25s ease, opacity 0.25s ease;
}

.synapse-beam.is-active {
  stroke: var(--as-green-primary);
  stroke-width: 2.4;
  stroke-dasharray: none;
}

.synapse-beam.is-regulai-web {
  stroke: rgba(0, 135, 103, 0.45);
  stroke-width: 1.6;
  stroke-dasharray: 5 5;
  opacity: 0.85;
}

/* Central Core Identity Badge near Avatar feet */
.avatar-core-badge {
  position: absolute;
  left: 50%;
  bottom: 14px;
  translate: -50% 0;
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #c5ddd5;
  backdrop-filter: blur(12px);
  color: var(--as-anthracite);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(15, 38, 30, 0.08);
}

.stage-mode-dark .avatar-core-badge {
  background: rgba(6, 21, 16, 0.86);
  border-color: rgba(88, 194, 166, 0.42);
  color: #e4fff6;
}

.avatar-core-badge strong {
  color: var(--as-green-primary);
}

.stage-mode-dark .avatar-core-badge strong {
  color: #58c2a6;
}

/* Stage Helper Prompt top-left */
.stage-hint-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #cfe2db;
  backdrop-filter: blur(10px);
  color: var(--as-text-body);
  font-size: 0.72rem;
  font-weight: 500;
  box-shadow: 0 4px 14px rgba(15, 38, 30, 0.06);
}

.stage-mode-dark .stage-hint-pill {
  background: rgba(6, 21, 16, 0.76);
  border-color: rgba(88, 194, 166, 0.32);
  color: rgba(255, 255, 255, 0.88);
}

.stage-hint-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--as-green-primary);
}

/* --- ORBITING MACRO-CATEGORY NODES (CLEAN WHITE CAPSULES, ZERO NEON/GOLD) --- */
.orbit-nodes-layer {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

.orbit-node {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1.5px solid #c9dfd7;
  color: var(--as-anthracite);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 26px rgba(15, 38, 30, 0.09);
  cursor: pointer;
  transition:
    background-color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    color 0.22s ease;
  will-change: translate, scale, opacity;
}

.stage-mode-dark .orbit-node {
  background: rgba(8, 28, 21, 0.88);
  border-color: rgba(88, 194, 166, 0.42);
  color: #ffffff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.42);
}

.orbit-node:hover,
.orbit-node:focus-visible,
.orbit-node.is-active {
  background: var(--as-green-primary);
  border-color: #006e54;
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 135, 103, 0.15), 0 14px 32px rgba(0, 135, 103, 0.28);
  outline: none;
}

/* Flagship Node: RegulAI (Composed Institutional Emerald, No Yellow) */
.orbit-node--regulai {
  background: #f2faf7;
  border: 2px solid var(--as-green-primary);
  box-shadow: 0 10px 28px rgba(0, 135, 103, 0.16);
}

.orbit-node--regulai:hover,
.orbit-node--regulai.is-active {
  background: var(--as-green-primary);
  border-color: #006e54;
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 135, 103, 0.18), 0 14px 34px rgba(0, 135, 103, 0.32);
}

.orbit-node-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--as-green-tint);
  border: 1px solid #b8dfd1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--as-green-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
}

.orbit-node:hover .orbit-node-icon,
.orbit-node.is-active .orbit-node-icon {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.65);
  color: #ffffff;
}

.orbit-node-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.15;
}

.orbit-node-tag {
  font-size: 0.61rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--as-green-primary);
}

.orbit-node:hover .orbit-node-tag,
.orbit-node.is-active .orbit-node-tag {
  color: rgba(255, 255, 255, 0.88);
}

.orbit-node-title {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

/* --- RIGHT PANEL: INTERACTIVE "SCHEDA ONLINE" (CRISP WHITE EDITORIAL CARD) --- */
.service-live-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #cfe2db;
  border-radius: var(--radius-xl);
  padding: 22px 24px;
  box-shadow: 0 18px 46px rgba(15, 38, 30, 0.07);
  display: flex;
  flex-direction: column;
  gap: 11px;
  height: 546px;
  color: var(--as-anthracite);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.stage-mode-dark .service-live-card {
  background: rgba(10, 33, 25, 0.9);
  border-color: rgba(88, 194, 166, 0.34);
  color: #ffffff;
}

.service-live-card.is-regulai-card {
  border-color: var(--as-green-primary);
  box-shadow: 0 18px 48px rgba(0, 135, 103, 0.11);
}

.live-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.live-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--as-green-tint);
  border: 1px solid #bddfd3;
  color: var(--as-green-primary);
  font-family: var(--font-display);
  font-size: 0.69rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.live-card-index {
  font-family: var(--font-display);
  font-size: 0.74rem;
  color: var(--as-text-muted);
}

.live-card-title {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--as-anthracite);
}

.stage-mode-dark .live-card-title {
  color: #ffffff;
}

.live-card-desc {
  font-size: 0.86rem;
  color: var(--as-text-body);
  line-height: 1.48;
}

.stage-mode-dark .live-card-desc {
  color: rgba(255, 255, 255, 0.82);
}

/* Convergence banner inside the live card (Soft Sage, No Yellow) */
.live-card-convergence {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: var(--as-green-surface);
  border: 1px solid #c5e3d8;
  font-size: 0.77rem;
  line-height: 1.4;
  color: var(--as-text-main);
}

.stage-mode-dark .live-card-convergence {
  background: rgba(0, 159, 122, 0.16);
  border-color: rgba(88, 194, 166, 0.35);
  color: #f3fff9;
}

.live-card-convergence strong {
  color: var(--as-green-primary);
  font-family: var(--font-display);
}

.live-subservices-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 0.71rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--as-text-muted);
  border-bottom: 1px solid var(--as-border-light);
  padding-bottom: 5px;
}

.live-subservices-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
}

.live-subservice-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--as-bg-light);
  border: 1px solid #e1ede8;
  transition: background-color 0.18s ease, border-color 0.18s ease, translate 0.18s ease;
}

.stage-mode-dark .live-subservice-item {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.live-subservice-item:hover {
  background: var(--as-green-tint);
  border-color: var(--as-green-primary);
  translate: 2px 0;
}

.subservice-main-link {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
}

.subservice-name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--as-anthracite);
}

.stage-mode-dark .subservice-name {
  color: #ffffff;
}

.subservice-meta {
  font-size: 0.73rem;
  color: var(--as-text-muted);
}

.stage-mode-dark .subservice-meta {
  color: rgba(255, 255, 255, 0.65);
}

.subservice-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.subservice-pdf-pill {
  padding: 3px 8px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #bddfd3;
  color: var(--as-green-primary);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
}

.subservice-pdf-pill:hover {
  background: var(--as-green-primary);
  color: #ffffff;
}

.live-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--as-border-light);
}

.live-card-footer .btn {
  flex: 1;
  padding: 10px 14px;
  font-size: 0.82rem;
}

/* Quick Macro-Category Selector Dock below workspace */
.hero-macro-dock {
  position: relative;
  z-index: 20;
  width: calc(100% - 116px);
  border-top: 1px solid var(--as-border-light);
  border-right: 1px solid var(--as-border-light);
  border-top-right-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  padding: 10px 0;
}

.stage-mode-dark .hero-macro-dock {
  background: rgba(4, 16, 12, 0.72);
  border-top-color: rgba(88, 194, 166, 0.18);
}

.macro-dock-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  padding-right: 24px;
}

.dock-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--as-text-body);
  background: #ffffff;
  border: 1px solid #d2e3dc;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.stage-mode-dark .dock-pill {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.dock-pill:hover,
.dock-pill.is-active {
  background: var(--as-green-primary);
  border-color: var(--as-green-primary);
  color: #ffffff;
}

/* ==========================================================================
   2B. NEW SECTION: ECOSISTEMA CLIENTI, PARTNER TECNOLOGICI & CERTIFICAZIONI
   ========================================================================== */
.trust-ecosystem-section {
  padding: 64px 0;
  background: #ffffff;
  border-bottom: 1px solid var(--as-border-light);
}

.trust-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.trust-certs-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.trust-cert-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 14px;
  background: var(--as-bg-light);
  border: 1px solid var(--as-border-light);
}

.trust-cert-pill img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.trust-cert-pill div {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.trust-cert-pill strong {
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: var(--as-anthracite);
}

.trust-cert-pill span {
  font-size: 0.68rem;
  color: var(--as-text-muted);
}

.trust-tier-box {
  background: var(--as-bg-light);
  border: 1px solid var(--as-border-light);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  margin-bottom: 20px;
}

.trust-tier-box:last-child {
  margin-bottom: 0;
}

.trust-tier-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #dfece7;
}

.trust-tier-label h3 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--as-green-primary);
}

.trust-tier-label span {
  font-size: 0.8rem;
  color: var(--as-text-muted);
}

.logos-bento-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

. logos-bento-grid--partners {
  grid-template-columns: repeat(4, 1fr);
}

.logo-showcase-card {
  background: #ffffff;
  border: 1px solid #e1ede8;
  border-radius: 14px;
  padding: 14px 16px;
  min-height: 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: translate 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.logo-showcase-card:hover {
  translate: 0 -2px;
  border-color: var(--as-green-primary);
  box-shadow: var(--shadow-sm);
}

.logo-showcase-card img {
  max-height: 38px;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(18%) contrast(1.02);
   opacity: 0.92;
  transition: filter 0.22s ease, opacity 0.22s ease, scale 0.22s ease;
}

.logo-showcase-card:hover img {
  filter: grayscale(0%) contrast(1);
  opacity: 1;
  scale: 1.04;
}

.logo-showcase-tag {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--as-text-muted);
  text-align: center;
}

/* ==========================================================================
   3. SECTION: REGULAI CONVERGENCE (HIGH-KEY WHITE & PEARL-SAGE)
   ========================================================================== */
.section {
  padding: 88px 0;
}

.section-header {
  max-width: 820px;
  margin-bottom: 48px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--as-green-tint);
  color: var(--as-green-primary);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--as-anthracite);
  margin-bottom: 14px;
}

.section-title span {
  color: var(--as-green-primary);
}

.section-lead {
  font-size: 1.05rem;
  color: var(--as-text-body);
  line-height: 1.65;
}

.regulai-convergence-section {
  background: linear-gradient(180deg, #ffffff 0%, var(--as-bg-light) 100%);
  border-bottom: 1px solid var(--as-border-light);
}

.convergence-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  gap: 32px;
  align-items: stretch;
}

/* Light Pearl-Sage Story Card instead of pitch-black */
.convergence-story-card {
  background: linear-gradient(145deg, #f2faf7 0%, #e4f3ed 100%);
  color: var(--as-anthracite);
  border: 1px solid #c5e2d8;
  border-radius: var(--radius-xl);
  padding: 38px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
}

.convergence-logo-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.convergence-logo-row img {
  height: 38px;
  width: auto;
}

.convergence-quote {
  font-family: var(--font-display);
  font-size: 1.48rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 14px;
  color: var(--as-anthracite);
}

.convergence-quote em {
  font-style: normal;
  color: var(--as-green-primary);
}

.convergence-p {
  color: var(--as-text-body);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.convergence-pillars-mini {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 26px;
}

.conv-mini-item {
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid #cfe3dc;
  box-shadow: 0 2px 8px rgba(15, 38, 30, 0.03);
}

.conv-mini-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--as-green-primary);
  margin-bottom: 2px;
}

.conv-mini-item span {
  font-size: 0.78rem;
  color: var(--as-text-body);
}

/* Interactive Matrix on the right of Convergence Section */
.convergence-interactive-box {
  background: #ffffff;
  border: 1px solid var(--as-border-light);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.norm-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.norm-selector-btn {
  padding: 8px 15px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.81rem;
  font-weight: 700;
  background: var(--as-bg-light);
  border: 1px solid #cfe0d9;
  color: var(--as-anthracite);
  transition: all 0.2s ease;
}

.norm-selector-btn:hover,
.norm-selector-btn.is-active {
  background: var(--as-green-primary);
  border-color: var(--as-green-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 135, 103, 0.2);
}

.norm-detail-panel {
  background: var(--as-green-surface);
  border: 1px solid #c5e5da;
  border-radius: var(--radius-md);
  padding: 22px;
}

.norm-detail-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--as-anthracite);
  margin-bottom: 6px;
}

.norm-detail-desc {
  font-size: 0.91rem;
  color: var(--as-text-body);
  margin-bottom: 16px;
}

.norm-feeds-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.norm-feed-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--as-border-light);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--as-anthracite);
}

.norm-feed-chip span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--as-green-primary);
  flex-shrink: 0;
}

/* ==========================================================================
   4. SECTION: FULL CATALOG & 4 ICT PILLARS
   ========================================================================== */
.catalog-section {
  background: var(--as-bg-light);
  border-bottom: 1px solid var(--as-border-light);
}

.pillars-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 40px;
}

.pillar-card {
  background: #ffffff;
  border: 1px solid var(--as-border-light);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: translate 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.pillar-card:hover {
  translate: 0 -3px;
  border-color: var(--as-green-primary);
  box-shadow: var(--shadow-md);
}

.pillar-num {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--as-green-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.pillar-title {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--as-anthracite);
  margin-bottom: 6px;
}

.pillar-text {
  font-size: 0.86rem;
  color: var(--as-text-body);
}

.catalog-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.catalog-tab-btn {
  padding: 9px 17px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.83rem;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid var(--as-border-light);
  color: var(--as-text-body);
  transition: all 0.2s ease;
}

.catalog-tab-btn:hover,
.catalog-tab-btn.is-active {
  background: var(--as-green-primary);
  border-color: var(--as-green-primary);
  color: #ffffff;
}

.catalog-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.catalog-item-card {
  background: #ffffff;
  border: 1px solid var(--as-border-light);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: translate 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.catalog-item-card:hover {
  translate: 0 -3px;
  border-color: var(--as-green-primary);
  box-shadow: var(--shadow-md);
}

.catalog-item-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--as-green-primary);
}

.catalog-item-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--as-anthracite);
  margin-top: 5px;
  margin-bottom: 5px;
}

.catalog-item-desc {
  font-size: 0.87rem;
  color: var(--as-text-body);
}

.catalog-item-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--as-border-light);
}

.catalog-link-primary {
  font-family: var(--font-display);
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--as-green-primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.catalog-link-primary:hover {
  color: var(--as-anthracite);
}

.catalog-link-pdf {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--as-green-surface);
  color: var(--as-green-primary);
  border: 1px solid #bfe3d6;
}

.catalog-link-pdf:hover {
  background: var(--as-green-primary);
  color: #ffffff;
}

/* ==========================================================================
   5. SECTION: FOCUS SPECIALIZZAZIONE IBM POWER-i (AS400) — HIGH-KEY WHITE/PEARL
   ========================================================================== */
.ibmi-section {
  background: linear-gradient(180deg, #ffffff 0%, #f1f8f5 100%);
  color: var(--as-anthracite);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--as-border-light);
}

.ibmi-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 40px;
  align-items: center;
}

.ibmi-Suite-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.ibmi-card {
  background: #ffffff;
  border: 1px solid var(--as-border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.2s ease, border-color 0.2s ease, translate 0.2s ease, box-shadow 0.2s ease;
}

.ibmi-card:hover {
  border-color: var(--as-green-primary);
  box-shadow: var(--shadow-md);
  translate: 0 -2px;
}

.ibmi-card-tag {
  font-family: var(--font-display);
  font-size: 0.71rem;
  font-weight: 700;
  color: var(--as-green-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ibmi-card h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 4px 0 6px;
  color: var(--as-anthracite);
}

.ibmi-card p {
  font-size: 0.84rem;
  color: var(--as-text-body);
  margin-bottom: 10px;
}

.ibmi-card a {
  font-family: var(--font-display);
  font-size: 0.79rem;
  font-weight: 700;
  color: var(--as-green-primary);
}

/* ==========================================================================
   6. SECTION: COMPETENZE CERTIFICATE (ISO 17065) & ARCASAFE ACADEMY
   ========================================================================== */
.authority-section {
  background: #ffffff;
  border-bottom: 1px solid var(--as-border-light);
}

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

.authority-card {
  background: var(--as-bg-light);
  border: 1px solid var(--as-border-light);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.authority-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--as-green-tint);
  color: var(--as-green-primary);
  font-family: var(--font-display);
  font-size: 0.73rem;
  font-weight: 700;
}

.authority-card h3 {
  font-family: var(--font-display);
  font-size: 1.24rem;
  color: var(--as-anthracite);
}

.authority-card p {
  font-size: 0.91rem;
  color: var(--as-text-body);
}

/* Shared Collaborator Portrait Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.team-grid--7 {
  grid-template-columns: repeat(7, 1fr);
}

.team-member-card {
  background: #ffffff;
  border: 1px solid var(--as-border-light);
  border-radius: 18px;
  padding: 18px 12px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: translate 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.team-member-card:hover {
  translate: 0 -4px;
  border-color: var(--as-green-primary);
  box-shadow: var(--shadow-md);
}

.team-avatar-ring {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  margin: 0 auto 12px;
  padding: 4px;
  background: linear-gradient(135deg, var(--as-green-primary), var(--as-green-mint));
  box-shadow: 0 8px 18px rgba(0, 135, 103, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.team-avatar-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: #ffffff;
  filter: grayscale(100%) contrast(1.04);
  transition: filter 0.25s ease, scale 0.25s ease;
}

.team-member-card:hover .team-avatar-ring img {
  filter: grayscale(0%) contrast(1);
  scale: 1.04;
}

.team-member-card.is-ai-creator .team-avatar-ring {
  background: transparent;
  box-shadow: none;
  padding: 0;
  border-radius: 16px;
}

.team-member-card.is-ai-creator .team-avatar-ring img {
  filter: none;
  object-fit: contain;
  border-radius: 16px;
}

.team-role-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--as-green-surface);
  color: var(--as-green-primary);
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 1140px) {
  .team-grid,
  .team-grid--7 {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

/* ==========================================================================
   7. PARTNER PORTAL & PRONTO INTERVENTO IR H24 + HIGH-KEY FOOTER
   ========================================================================== */
.cta-split-section {
  padding: 68px 0;
  background: var(--as-bg-light);
  border-bottom: 1px solid var(--as-border-light);
}

.cta-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.partner-box {
  background: linear-gradient(135deg, #f2faf7 0%, #e4f3ed 100%);
  color: var(--as-anthracite);
  border: 1px solid #c5e2d8;
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  box-shadow: var(--shadow-sm);
}

.emergency-box {
  background: #ffffff;
  border: 1.5px solid #e6c5c2;
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  box-shadow: var(--shadow-sm);
}

.emergency-phone-big {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.3vw, 1.95rem);
  font-weight: 700;
  color: var(--as-emergency);
}

/* High-Key Clean Architectural Footer */
.site-footer {
  background: #f4f8f6;
  color: var(--as-text-body);
  padding: 60px 0 34px;
  font-size: 0.88rem;
  border-top: 1px solid var(--as-border-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--as-border-light);
}

.footer-brand-pill {
  display: inline-flex;
  background: #ffffff;
  border: 1px solid var(--as-border-light);
  padding: 10px 18px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.footer-brand-pill img {
  height: 32px;
  width: auto;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--as-anthracite);
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--as-green-primary);
}

/* Institutional Certifications Strip in Footer (a piè di pagina) */
.footer-certifications-bar {
  margin-top: 28px;
  padding: 22px 26px;
  background: #ffffff;
  border: 1px solid var(--as-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.footer-cert-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf4f1;
}

.footer-cert-title {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--as-green-primary);
}

.footer-cert-sub {
  font-size: 0.78rem;
  color: var(--as-text-muted);
}

.footer-cert-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  align-items: stretch;
}

.footer-cert-item {
  background: #f8fbfa;
  border: 1px solid #e1ede8;
  border-radius: 12px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  transition: border-color 0.2s ease, translate 0.2s ease, box-shadow 0.2s ease;
}

.footer-cert-item:hover {
  border-color: var(--as-green-primary);
  background: #ffffff;
  translate: 0 -2px;
  box-shadow: 0 6px 16px rgba(15, 38, 30, 0.06);
}

.footer-cert-item img {
  height: 44px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.footer-cert-item svg {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.footer-cert-name {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--as-anthracite);
  line-height: 1.2;
}

.footer-cert-meta {
  font-size: 0.64rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--as-text-muted);
  line-height: 1.15;
}

@media (max-width: 1120px) {
  .footer-cert-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

.footer-bottom {
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--as-text-muted);
}

/* Responsive adjustments (Tablet <= 1120px & Smartphone <= 640px) */
html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}

@media (max-width: 1120px) {
  .hero-workspace {
    grid-template-columns: 1fr;
    padding-right: 0;
  }
  .hero-macro-dock {
    width: 100%;
    border-right: none;
    border-top-right-radius: 0;
  }
  .dock-inner {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .dock-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .dock-pills::-webkit-scrollbar {
    display: none;
  }
  .dock-pill {
    flex-shrink: 0;
  }
  .orbital-stage {
    height: 520px;
  }
  .service-live-card {
    min-height: auto;
    height: auto;
  }
  .convergence-grid,
  .ibmi-grid,
  .cta-split-grid {
    grid-template-columns: 1fr;
  }
  .pillars-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .logos-bento-grid,
  .trust-logo-grid--clients,
  .trust-logo-grid--partners {
    grid-template-columns: repeat(3, 1fr);
  }
  .catalog-bento-grid,
  .authority-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 12px;
  }
  .hero-ecosystem {
    padding-top: 72px;
  }
  .flow-intro-content {
    padding: 68px 10px 10px;
    justify-content: flex-end;
  }
  .flow-intro-clear-stage {
    flex: 1 1 auto;
    min-height: 62dvh;
  }
  .flow-intro-dock {
    flex: 0 0 auto;
    max-width: 100%;
    padding: 10px 12px 9px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.36);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
  }
  .flow-intro-dock-main {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 8px;
  }
  .flow-intro-dock-copy {
    flex: 0 0 auto !important;
    width: 100%;
    max-width: 100%;
  }
  .flow-kicker {
    font-size: 0.58rem;
    padding: 2px 8px;
    margin-bottom: 4px;
  }
  .flow-title {
    font-size: clamp(1.02rem, 4.4vw, 1.24rem);
    line-height: 1.15;
    margin-bottom: 3px;
  }
  .flow-subtitle {
    font-size: 0.73rem;
    line-height: 1.32;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .flow-intro-dock-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1.35fr 0.85fr;
    gap: 7px;
  }
  .flow-intro-dock-actions .btn {
    padding: 7px 10px;
    font-size: 0.74rem;
    justify-content: center;
  }
  .flow-intro-bottom {
    padding-top: 6px;
    gap: 8px;
  }
  .flow-progress-hint {
    display: none;
  }
  .hero-stage-bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .stage-controls {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    gap: 5px;
    flex-wrap: wrap;
  }
  .stage-ctrl-btn {
    padding: 5px 9px;
    font-size: 0.68rem;
    gap: 4px;
    white-space: nowrap;
  }
  .orbital-stage {
    height: 430px;
    border-radius: 20px;
  }
  .stage-hint-pill {
    display: none !important;
  }
  .orbit-node {
    width: calc(50% - 10px);
    max-width: 168px;
    padding: 6px 7px 6px 5px;
    gap: 5px;
    border-radius: 13px;
  }
  .orbit-node-icon {
    width: 22px;
    height: 22px;
    font-size: 0.6rem;
    flex-shrink: 0;
  }
  .orbit-node-text {
    min-width: 0;
    overflow: hidden;
  }
  .orbit-node-tag {
    font-size: 0.45rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .orbit-node-title {
    font-size: 0.63rem;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .avatar-core-badge {
    bottom: 10px;
    padding: 5px 10px;
    font-size: 0.56rem;
    max-width: calc(100% - 20px);
    white-space: nowrap;
    text-align: center;
  }
  .service-live-card {
    padding: 18px 14px;
    border-radius: 20px;
  }
  .live-card-title {
    font-size: 1.22rem;
  }
  .live-card-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .live-card-footer .btn {
    width: 100%;
    justify-content: center;
  }
  .logos-bento-grid,
  .trust-logo-grid--clients,
  .trust-logo-grid--partners {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }
  .trust-logo-card {
    height: 76px;
    padding: 12px;
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .team-member-card {
    padding: 14px 10px !important;
  }
  .team-avatar-ring {
    width: 64px !important;
    height: 64px !important;
  }
  .pillars-strip,
  .catalog-bento-grid,
  .authority-grid,
  .ibmi-Suite-cards,
  .footer-grid,
  .norm-feeds-grid {
    grid-template-columns: 1fr;
  }
  .section-block {
    padding: 48px 0;
  }
  .section-title {
    font-size: clamp(1.52rem, 6vw, 2rem);
  }
  .partner-box,
  .emergency-box {
    padding: 20px 16px;
    border-radius: 18px;
  }
  .emergency-phone-big {
    font-size: 1.45rem;
  }
  .footer-certifications-bar {
    padding: 16px 12px;
  }
}
