@charset "UTF-8";
/* MainMind - Design System v4 (Pure White Studio + Futuristic 3D Neural Blue) */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --bg-subtle: #eef3fc;
  --glass: rgba(255, 255, 255, 0.78);
  --glass-strong: rgba(255, 255, 255, 0.92);
  --ink: #0f172a;
  --muted: #55627a;
  --dim: #7b88a1;
  --line: rgba(15, 23, 42, 0.09);
  --line-blue: rgba(0, 113, 227, 0.22);
  --blue: #0071e3;
  --blue-deep: #0b4fd6;
  --cyan: #00a8e8;
  --green: #0d9488;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  --shadow-sm: 0 8px 28px rgba(15, 35, 80, 0.06);
  --shadow-md: 0 20px 56px rgba(15, 35, 80, 0.10);
  --shadow-lg: 0 28px 80px rgba(15, 35, 80, 0.13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img, svg { max-width: 100%; display: block; }

.container { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; position: relative; z-index: 2; }

/* ==========================================================================
   HEADER - Ultra-clean Translucent White
   ========================================================================== */
header {
  height: 68px;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 70;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s;
}
header.scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: rgba(15, 23, 42, 0.10);
  box-shadow: 0 6px 24px rgba(15, 35, 80, 0.05);
}
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  font-size: 18.5px; font-weight: 700; letter-spacing: -0.04em; color: var(--ink);
  transition: color 0.22s var(--ease), opacity 0.22s var(--ease);
}
.brand-logo {
  display: block;
  width: auto;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease), filter 0.25s var(--ease);
}
.brand-logo--header {
  height: 21px;
  filter: drop-shadow(0 3px 8px rgba(0, 113, 227, 0.16));
}
.brand:hover .brand-logo--header {
  transform: translateY(-1px);
  filter: drop-shadow(0 5px 12px rgba(0, 113, 227, 0.28));
}
.brand--footer {
  gap: 9px;
  font-size: 16.5px;
  color: var(--ink);
  opacity: 0.86;
}
.brand-logo--footer {
  height: 17px;
}
.brand--footer:hover {
  opacity: 1;
  color: var(--blue);
}
.links { display: flex; align-items: center; gap: 28px; color: var(--muted); font-size: 13.5px; font-weight: 500; }
.links a { transition: color 0.22s var(--ease); position: relative; }
.links a:hover, .links a[aria-current="page"] { color: var(--blue); }
.links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px;
  background: linear-gradient(90deg, var(--blue-deep), var(--cyan)); border-radius: 2px;
}
.nav-cta {
  padding: 9px 18px;
  background: var(--ink);
  color: #ffffff;
  border-radius: 999px;
  font-size: 12.5px; font-weight: 600;
  transition: transform 0.22s var(--ease), background 0.22s, box-shadow 0.22s;
}
.nav-cta:hover {
  transform: translateY(-1px);
  background: var(--blue);
  box-shadow: 0 8px 22px rgba(0, 113, 227, 0.28);
}
.menu {
  display: none; border: 1px solid var(--line); background: #ffffff;
  color: var(--ink); width: 38px; height: 38px; border-radius: 10px; font-size: 19px; cursor: pointer;
}

/* ==========================================================================
   TYPOGRAPHY & BUTTONS
   ========================================================================== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 10.5px; font-weight: 700; color: var(--blue);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 10px rgba(0, 113, 227, 0.55);
}
.gradient-text {
  background: linear-gradient(95deg, #0b4fd6 0%, #0071e3 48%, #00a8e8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline;
  padding: 0.08em 0.22em 0.14em 0.06em;
  margin: -0.08em -0.22em -0.14em -0.06em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.actions { display: flex; justify-content: center; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em;
  cursor: pointer; border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, border-color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary {
  background: linear-gradient(135deg, #0071e3 0%, #0095e8 100%);
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(0, 113, 227, 0.28);
}
.btn.primary:hover { box-shadow: 0 14px 34px rgba(0, 113, 227, 0.38); }
.btn.secondary {
  background: #f1f4fa;
  border-color: rgba(15, 23, 42, 0.08);
  color: var(--ink);
}
.btn.secondary:hover { background: #e6ecf7; border-color: rgba(0, 113, 227, 0.22); }
.btn.sm { padding: 8px 15px; font-size: 12px; }

/* ==========================================================================
   PURE 3D LANDING PAGE EXPERIENCE (ONLY THE INTERACTIVE 3D BRAIN WORLD)
   ========================================================================== */
body.landing-3d {
  background: #ffffff;
}
.brain-story {
  position: relative;
  height: 540vh;
  background: #ffffff;
}
.brain-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  width: 100%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 48%, #ffffff 0%, #fafcff 58%, #eef4ff 100%);
}
.intro-hero {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 84px 28px 40px;
  pointer-events: none;
  will-change: opacity, transform, filter;
}
.intro-hero-inner {
  max-width: 980px;
  margin-inline: auto;
  animation: introReveal 0.9s var(--ease) both;
}
@keyframes introReveal {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.intro-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(0, 113, 227, 0.18);
  box-shadow: 0 6px 20px rgba(15, 35, 80, 0.05);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 24px;
}
.intro-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 10px rgba(0, 113, 227, 0.6);
}
.intro-hero h1 {
  font-size: clamp(44px, 7.2vw, 94px);
  line-height: 1.08;
  letter-spacing: -0.042em;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 22px;
  padding-inline: 0.08em;
}
.intro-sub {
  max-width: 620px;
  margin: 0 auto 38px;
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.55;
  color: var(--muted);
  font-weight: 450;
}
.intro-scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dim);
}
.intro-scroll-track {
  width: 2px;
  height: 40px;
  border-radius: 99px;
  background: rgba(15, 23, 42, 0.09);
  overflow: hidden;
  position: relative;
}
.intro-scroll-bar {
  display: block;
  width: 100%;
  height: 18px;
  border-radius: 99px;
  background: linear-gradient(180deg, #0b4fd6, #00a8e8);
  animation: introScrollDrop 1.7s var(--ease) infinite;
}
@keyframes introScrollDrop {
  0% { transform: translateY(-18px); opacity: 0; }
  30% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(40px); opacity: 0; }
}
#brainCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 6;
  cursor: grab;
  touch-action: pan-y;
}
#brainCanvas.dragging {
  cursor: grabbing;
}

/* 3D-projected clickable hotspots directly on the neural network model */
.brain-node-layer {
  position: absolute;
  inset: 0;
  z-index: 12;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.55s var(--ease);
}
.brain-node-layer.visible { opacity: 1; }
.spatial-node {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 113, 227, 0.30);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 8px 24px rgba(11, 79, 214, 0.14);
  cursor: pointer;
  transition: transform 0.24s var(--ease), border-color 0.24s, box-shadow 0.24s, background 0.24s, color 0.24s;
}
.spatial-node:hover {
  transform: translate(-50%, -50%) scale(1.07);
  border-color: var(--blue);
  box-shadow: 0 12px 30px rgba(0, 113, 227, 0.24);
  background: #ffffff;
}
.spatial-node.active {
  background: linear-gradient(135deg, #0b4fd6 0%, #0095e8 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 12px 32px rgba(0, 113, 227, 0.35);
  transform: translate(-50%, -50%) scale(1.09);
}
.spatial-node .pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.20);
  animation: nodePulse 2.2s ease-in-out infinite;
}
.spatial-node.active .pulse-dot {
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}
.spatial-node .node-plus {
  font-size: 13px; font-weight: 700; opacity: 0.65; margin-left: 2px;
}
@keyframes nodePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.32); }
}

/* UNOBTRUSIVE CORNER STAGE HUD (Never covers the center 3D model) */
.hud-stage-dock {
  position: absolute;
  left: 28px;
  bottom: 26px;
  z-index: 20;
  width: min(390px, calc(100vw - 120px));
  pointer-events: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.hud-stage-dock.ui-ready {
  opacity: 1;
  transform: none;
}
.hud-stage-dock:not(.ui-ready) .hud-stage-card {
  pointer-events: none;
}
.hud-stage-card {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  padding: 16px 20px 18px;
  box-shadow: var(--shadow-sm);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), padding 0.3s;
}
.hud-stage-card.collapsed {
  padding: 11px 16px;
}
.hud-stage-card.collapsed .hud-stage-body {
  display: none;
}
.hud-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.hud-toggle {
  border: 1px solid rgba(15, 23, 42, 0.09);
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  width: 26px; height: 26px;
  border-radius: 8px;
  font-size: 14px; line-height: 1;
  display: grid; place-items: center;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.hud-toggle:hover { color: var(--blue); border-color: var(--line-blue); }
.hud-stage-body { margin-top: 8px; }
.hud-stage-body h1,
.hud-stage-body h2 {
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.24;
  letter-spacing: -0.025em;
  margin: 0 0 7px;
  color: var(--ink);
}
.hud-stage-body p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}
.hud-stage-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 13px;
}
.stage-panel { display: none; }
.stage-panel.active { display: block; animation: fadeUp 0.42s var(--ease) both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* CONTEXTUAL 3D NODE POPUP (Opens cleanly on right edge when clicking a 3D node) */
.node-popup {
  position: absolute;
  top: 88px;
  right: 72px;
  z-index: 25;
  width: min(350px, calc(100vw - 40px));
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(0, 113, 227, 0.22);
  border-radius: 22px;
  padding: 20px 22px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateX(18px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.node-popup.open {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}
.popup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.popup-close {
  width: 28px; height: 28px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  font-size: 16px;
  display: grid; place-items: center;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.popup-close:hover { color: var(--ink); border-color: var(--line-blue); background: var(--bg-soft); }
.node-popup h3 {
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.035em;
  margin: 0 0 8px;
}
.node-popup p {
  font-size: 13px;
  line-height: 1.58;
  color: var(--muted);
  margin: 0 0 14px;
}
.popup-facts {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}
.popup-fact {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid rgba(15, 23, 42, 0.05);
}
.popup-fact b { display: block; font-size: 12px; color: var(--blue-deep); margin-bottom: 2px; }
.popup-fact span { font-size: 11.5px; color: var(--muted); line-height: 1.4; display: block; }
.popup-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.popup-nav {
  display: inline-flex;
  gap: 6px;
}
.popup-nav button {
  width: 30px; height: 30px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.popup-nav button:hover { border-color: var(--blue); color: var(--blue); }

/* RIGHT VERTICAL STAGE RAIL */
.stage-rail {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 18;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stage-btn {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  background: transparent;
  border: 0;
  color: var(--dim);
  cursor: pointer;
  padding: 5px 4px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.22s;
}
.stage-btn span.lbl {
  opacity: 0;
  transform: translateX(6px);
  background: rgba(255, 255, 255, 0.88);
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: opacity 0.22s, transform 0.22s;
}
.stage-btn:hover span.lbl,
.stage-btn.active span.lbl {
  opacity: 1;
  transform: translateX(0);
}
.stage-btn.active span.lbl { color: var(--blue); border-color: var(--line-blue); }
.stage-btn .pip {
  width: 9px; height: 9px; border-radius: 999px;
  background: rgba(15, 23, 42, 0.16);
  transition: all 0.3s var(--ease);
}
.stage-btn.active .pip {
  height: 26px;
  background: linear-gradient(180deg, #0b4fd6, #00a8e8);
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.35);
}

/* 3D CAMERA CONTROLS (Bottom-right) & INTERACTION HINT (Bottom-center) */
.camera-controls {
  position: absolute;
  right: 24px;
  bottom: 26px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 23, 42, 0.09);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.camera-controls.ui-ready {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.cam-btn {
  width: 32px; height: 32px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px; font-weight: 600;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.cam-btn:hover { background: var(--bg-subtle); color: var(--blue); }

.interact-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.interact-hint.ui-ready { opacity: 1; }
.interact-hint.faded { opacity: 0; }

/* ==========================================================================
   INNER PAGES - CLEAN WHITE APPLE-PRO EDITORIAL LAYOUT
   ========================================================================== */
.page-hero {
  position: relative;
  padding: 138px 0 76px;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, #eef5ff 0%, #ffffff 70%);
  border-bottom: 1px solid var(--line);
}
.page-hero canvas.mini-neural {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.84; pointer-events: none;
}
.page-hero h1 {
  font-size: clamp(36px, 5.4vw, 64px);
  letter-spacing: -0.036em;
  line-height: 1.14;
  max-width: 880px;
  margin: 16px auto 16px;
  padding-inline: 0.08em;
}
.page-hero p { max-width: 620px; margin: 0 auto; color: var(--muted); font-size: 18px; line-height: 1.6; }

.section { padding: 104px 0; position: relative; }
.stage {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.center { text-align: center; }
.section-head { max-width: 740px; margin: 0 auto 54px; text-align: center; }
.section-head h2 {
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.07;
  letter-spacing: -0.05em;
  margin: 14px 0 14px;
}
.section-head p { color: var(--muted); font-size: 17px; line-height: 1.65; max-width: 600px; margin: 0 auto; }

.statement {
  font-size: clamp(28px, 4.6vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.05em;
  max-width: 900px;
  margin: 16px auto 0;
  font-weight: 700;
}
.statement span { color: var(--dim); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.two-col h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: -0.05em; margin: 14px 0 16px; }
.copy { color: var(--muted); line-height: 1.75; font-size: 16px; margin-bottom: 22px; }

/* Animated Decision Flow Stage */
.product-stage {
  min-height: 380px;
  border-radius: 26px;
  background: linear-gradient(145deg, #f3f7ff 0%, #ffffff 100%);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  position: relative;
  overflow: visible;
  padding: 46px 40px;
  box-shadow: var(--shadow-sm);
}
.decision-flow {
  width: min(100%, 490px);
  display: grid;
  grid-template-columns: 1fr 44px 1fr;
  align-items: center;
  gap: 14px;
  overflow: visible;
}
.flow-stack { display: grid; gap: 16px; overflow: visible; }
.flow-node {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 15px;
  padding: 15px 17px;
  text-align: left;
  box-shadow: 0 6px 20px rgba(15, 35, 80, 0.05);
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.flow-node.active {
  z-index: 2;
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.09), 0 12px 28px rgba(0, 113, 227, 0.14);
}
.flow-node small {
  font-size: 9.5px; color: var(--blue);
  text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700;
}
.flow-node b { display: block; font-size: 13.5px; margin-top: 5px; color: var(--ink); }
.flow-node em { font-style: normal; font-size: 11px; color: var(--green); display: block; margin-top: 5px; font-weight: 600; }
.flow-arrow {
  text-align: center; color: var(--blue); font-size: 23px;
  animation: arrowPulse 1.8s ease-in-out infinite;
}
@keyframes arrowPulse { 50% { transform: translateX(5px); opacity: 0.45; } }

/* Cards / Steps / Pillars */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillars-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step {
  padding: 30px 26px 32px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.step:hover { border-color: var(--line-blue); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-num { font-size: 11px; font-weight: 700; color: var(--blue); letter-spacing: 0.14em; }
.step h3 { font-size: 21px; letter-spacing: -0.035em; margin: 16px 0 10px; }
.step p { font-size: 14.5px; color: var(--muted); line-height: 1.68; margin: 0; }

/* Interactive Simulator (on simulazione.html) */
.simulator {
  max-width: 1020px;
  margin: 0 auto;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.sim-head {
  padding: 20px 26px;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 15px;
  background: #fafcff;
}
.sim-head b { font-size: 14px; }
.live {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 600; color: var(--green);
}
.live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
}
.sim-body { display: grid; grid-template-columns: 260px 1fr; min-height: 380px; }
.sim-tabs {
  background: var(--bg-soft);
  padding: 18px;
  border-right: 1px solid var(--line);
  display: grid; align-content: start; gap: 7px;
}
.sim-tab {
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  padding: 12px 14px;
  border-radius: 11px;
  color: var(--muted);
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.sim-tab:hover { color: var(--ink); background: rgba(0, 113, 227, 0.06); }
.sim-tab.active {
  background: #e7f1ff;
  border-color: rgba(0, 113, 227, 0.22);
  color: var(--blue-deep);
  font-weight: 600;
}
.sim-content { padding: 32px; }
.sim-content h3 { font-size: 24px; letter-spacing: -0.04em; margin: 0 0 6px; }
.sim-content > p { color: var(--muted); font-size: 14px; margin: 0; }
.chat { margin-top: 24px; display: grid; gap: 13px; }
.message {
  max-width: 84%;
  padding: 14px 17px;
  border-radius: 16px;
  background: var(--bg-soft);
  border: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 13.5px; line-height: 1.65; color: var(--ink);
  animation: msgIn 0.35s var(--ease) both;
}
.message.right {
  justify-self: end;
  background: #e9f3ff;
  border-color: rgba(0, 113, 227, 0.18);
  color: #0b2b6b;
}
.system {
  border-left: 2.5px solid var(--blue);
  background: #f5f9ff;
  padding: 11px 15px;
  border-radius: 0 11px 11px 0;
  color: var(--blue-deep);
  font-size: 12.5px; font-weight: 600;
  animation: msgIn 0.45s var(--ease) 0.1s both;
}
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.sim-footer {
  display: flex; gap: 34px; flex-wrap: wrap;
  padding: 18px 26px;
  background: #fafcff;
  border-top: 1px solid var(--line);
}
.metric b { display: block; font-size: 25px; letter-spacing: -0.04em; color: var(--blue); }
.metric span { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary {
  font-size: 16px; font-weight: 600; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 21px; color: var(--blue); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); font-size: 14.5px; line-height: 1.75; max-width: 720px; margin: 12px 0 0; }

/* CTA Banner */
.cta {
  padding: 76px 32px;
  text-align: center;
  background: linear-gradient(145deg, #0b1630 0%, #0f2454 100%);
  color: #ffffff;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
}
.cta .eyebrow { color: #7dd3fc; }
.cta .eyebrow .dot { background: #38bdf8; }
.cta h2 { font-size: clamp(30px, 4.6vw, 52px); letter-spacing: -0.05em; margin: 14px auto; max-width: 740px; line-height: 1.07; }
.cta p { color: #bfd1ee; max-width: 560px; margin: 0 auto 26px; line-height: 1.65; }

/* Feature rows */
.feature { padding: 56px 0; }
.feature-visual {
  min-height: 310px; border-radius: 24px;
  background: var(--bg-soft); border: 1px solid var(--line);
  display: grid; place-items: center; padding: 36px 32px;
  overflow: visible;
}
.feature-visual .product-stage {
  width: 100%; min-height: 240px; border: 0;
  background: transparent; box-shadow: none;
  padding: 16px; overflow: visible;
}
.feature-copy h2 { font-size: clamp(28px, 3.6vw, 38px); letter-spacing: -0.045em; margin: 12px 0 14px; }
.feature-copy p { color: var(--muted); line-height: 1.75; }
.pill-list { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 18px; }
.pill-list span {
  font-size: 11.5px; font-weight: 600; padding: 8px 14px; border-radius: 999px;
  background: #eef4ff; border: 1px solid rgba(0, 113, 227, 0.16); color: var(--blue-deep);
}

/* Contact Form */
.contact-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.form-card {
  padding: 32px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 11.5px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 11px;
  background: #ffffff;
  color: var(--ink);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.14);
}
.field textarea { min-height: 110px; resize: vertical; }
.consent { display: flex; gap: 9px; align-items: flex-start; font-size: 12px; color: var(--muted); line-height: 1.5; }
.consent input { width: auto; margin-top: 3px; accent-color: var(--blue); }
.form-status { font-size: 13px; margin-top: 12px; }

.legal { max-width: 840px; }
.legal h2 { font-size: 21px; margin-top: 36px; }
.legal p, .legal li { color: var(--muted); line-height: 1.8; font-size: 14.5px; }

/* Footer (Inner Pages) */
footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 52px 0 30px;
  color: var(--muted);
}
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; }
.footer-links a:hover { color: var(--blue); }
.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 30px; padding-top: 20px;
  font-size: 11px; color: var(--dim);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1020px) {
  .pillars-4 { grid-template-columns: repeat(2, 1fr); }
  .interact-hint { display: none; }
}
@media (max-width: 820px) {
  .links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(20px);
    padding: 22px 26px 28px; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 18px;
    box-shadow: var(--shadow-md);
  }
  .links.open { display: flex; }
  .menu { display: grid; place-items: center; }
  .nav-cta { display: none; }
  .two-col, .contact-layout, .steps, .sim-body { grid-template-columns: 1fr; gap: 30px; }
  .sim-tabs { grid-template-columns: 1fr 1fr; border-right: 0; border-bottom: 1px solid var(--line); }
  .hud-stage-dock { left: 16px; bottom: 16px; width: calc(100vw - 140px); }
  .camera-controls { right: 14px; bottom: 16px; }
  .stage-rail { right: 10px; }
  .stage-btn span.lbl { display: none; }
  .node-popup { right: 16px; top: 80px; width: calc(100vw - 32px); }
  .section { padding: 80px 0; }
}
@media (max-width: 540px) {
  .container { width: calc(100% - 32px); }
  .brand { font-size: 17px; gap: 9px; }
  .brand-logo--header { height: 18px; }
  .pillars-4, .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .hud-stage-dock { width: calc(100vw - 32px); bottom: 64px; }
  .camera-controls { left: 50%; right: auto; transform: translate(-50%, 14px); bottom: 14px; }
  .camera-controls.ui-ready { transform: translate(-50%, 0); }
  .spatial-node { font-size: 11px; padding: 6px 11px 6px 8px; }
  .decision-flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Simulation Disclaimer & Footer Email Link */
.sim-disclaimer {
  max-width: 1020px;
  margin: 16px auto 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--dim);
  text-align: center;
}
.footer-bottom a {
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s var(--ease);
}
.footer-bottom a:hover {
  color: var(--blue);
}
