:root {
  /* ====== BRAND TOKENS ====== */
  --c-blue: #4A90E2;
  --c-blue-light: #7FB1E8;
  --c-blue-dark: #2C6FB8;
  --c-orange: #E87C2A;
  --c-orange-light: #F89B4D;
  --c-cap: #0F1419;
  --c-bg-0: #06090D;
  --c-bg-1: #0A0E13;
  --c-bg-2: #11161D;
  --c-cream: #FAF7F0;
  --c-cream-soft: rgba(250, 247, 240, 0.78);
  --c-cream-mute: rgba(250, 247, 240, 0.56);
  --c-cream-faint: rgba(250, 247, 240, 0.36);

  /* ====== GLASS LAYER (FG functional) ====== */
  --g-blur-rest: 20px;
  --g-blur-hover: 28px;
  --g-bg-light: rgba(250, 247, 240, 0.04);
  --g-bg-mid: rgba(10, 14, 19, 0.55);
  --g-border: rgba(250, 247, 240, 0.08);
  --g-border-hover: rgba(250, 247, 240, 0.16);

  /* ====== MOTION ====== */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --t-hover: 200ms;
  --t-trans: 320ms;
  --t-state: 480ms;
  --t-intent: 800ms;

  /* ====== TYPE SCALE 1.250 ====== */
  --fs-xs: 13px;
  --fs-sm: 15px;
  --fs-base: 16px;
  --fs-md: 18px;
  --fs-lg: 20px;
  --fs-xl: 25px;
  --fs-2xl: 31px;
  --fs-3xl: 39px;
  --fs-4xl: 49px;
  --fs-5xl: 61px;
  --fs-hero: clamp(3rem, 5vw + 1rem, 5.6rem);

  /* ====== Z LAYERS ====== */
  --z-bg: 0;
  --z-content: 10;
  --z-nav: 50;
  --z-cursor: 100;

  /* ====== REACTIVE TOKENS (set by TS) ====== */
  --light-hue: 210;
  --light-pulse: 0.5;
  --light-intensity: 1.0;
  --reveal: 1.0;
  --target-x: 0.5;
  --target-y: 0.5;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
*::selection { background: var(--c-orange); color: white; }

html {
  /* Background grafite uniforme su <html> (img.bg-image fixed si vede sopra) */
  background: #1a1f26;
}
body {
  /* Trasparente: lascia visibile img.bg-image dietro */
  background: transparent !important;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--c-cream);
  overflow-x: hidden;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

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

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--c-bg-0); }
::-webkit-scrollbar-thumb { background: rgba(250,247,240,0.08); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(250,247,240,0.16); }

:focus-visible {
  outline: 2px solid var(--c-orange);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', system-ui;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

/* ====== BACKGROUND IMAGE responsive 3-tier — <img> + media queries ====== */
/* v0.4.8: bg-image è ora fallback no-WebGL only (default hidden). */
/* Lo shader engine è il motore di rendering primario per il logo. */
img.bg-image {
  display: none; /* hidden by default — JS lo riattiva solo su WebGL fail */
  position: fixed !important;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  object-position: center center;
  z-index: 0 !important;
  pointer-events: none;
  user-select: none;
  filter: saturate(1.05) brightness(0.95);
  background: #1a1f26;
  /* Default desktop 1280px+: contain (vedi tutta scrivania) */
  object-fit: contain;
}
/* Tablet 720-1279px: cover con focus center (sticker visibile, no bande) */
@media (min-width: 720px) and (max-width: 1279px) {
  img.bg-image {
    object-fit: cover;
    object-position: center 35%;
  }
}
/* Mobile portrait <720px: cover full, sticker dominante */
@media (max-width: 719px) {
  img.bg-image {
    object-fit: cover;
    object-position: center 30%;
  }
}
/* Ultrawide 1920px+: contain con piccolo zoom (immagine non perduta) */
@media (min-width: 1920px) {
  img.bg-image {
    object-fit: contain;
    transform: scale(1.05);
  }
}
/* Overlay vignette MOLTO leggero (solo bordi esterni) */
.bg-overlay {
  position: fixed; inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 110% at center, transparent 65%, rgba(6,9,13,0.50) 100%),
    linear-gradient(180deg, transparent 0%, transparent 60%, rgba(6,9,13,0.30) 100%);
}

/* ====== BACKGROUND CANVAS (z=2, liquid effects screen-blended sopra img bg) ====== */
#bg-canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 2;
  display: block;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.30;  /* MOLTO ridotta: immagine è protagonista, liquid solo accent leggero */
}

/* ====== SKIP LINK ====== */
.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 1000;
  padding: 10px 18px; background: var(--c-orange); color: white;
  border-radius: 8px; font-weight: 600; font-size: var(--fs-sm);
}
.skip-link:focus { top: 16px; }

/* ====== CONTAINER ====== */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; position: relative; z-index: var(--z-content); }
@media (min-width: 768px) { .container { padding: 0 48px; } }

/* ====== NAV (top, glass strong) ====== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav);
  padding: 14px 0;
  background: rgba(6, 9, 13, 0.6);
  backdrop-filter: blur(var(--g-blur-rest)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--g-blur-rest)) saturate(1.4);
  border-bottom: 1px solid var(--g-border);
  transition: background var(--t-trans) var(--ease);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Outfit'; font-weight: 700; font-size: var(--fs-md);
  letter-spacing: -0.02em;
}
.nav-brand .accent { color: var(--c-blue); }
/* v0.4.11 — TLD .cloud: presente, leggibile, soft (Visual Harmonizer hierarchy) */
.nav-brand .brand-tld {
  font-weight: 400;
  opacity: 0.78;
  margin-left: 1px;
  letter-spacing: -0.01em;
}
.liquid-footer-brand .brand-tld {
  font-weight: 400;
  opacity: 0.78;
  margin-left: 1px;
}
.nav-brand-mark { width: 32px; height: 32px; }
.nav-links { display: none; gap: 32px; list-style: none; }
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-links a {
  font-size: var(--fs-sm); font-weight: 500; color: var(--c-cream-soft);
  position: relative; padding: 4px 0;
  transition: color var(--t-hover) var(--ease);
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: var(--c-orange);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-trans) var(--ease);
}
.nav-links a:hover { color: var(--c-cream); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; gap: 8px; align-items: center; }

/* ====== BUTTONS ====== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px;
  font-size: var(--fs-sm); font-weight: 600;
  white-space: nowrap;
  transition: transform var(--t-hover) var(--ease), background var(--t-hover) var(--ease), box-shadow var(--t-hover) var(--ease), color var(--t-hover) var(--ease);
  position: relative;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--c-orange);
  color: white;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.18) inset,
    0 8px 24px rgba(232,124,42,0.4),
    0 1px 2px rgba(0,0,0,0.3);
}
.btn-primary:hover {
  background: var(--c-orange-light);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.22) inset,
    0 12px 32px rgba(232,124,42,0.5),
    0 1px 2px rgba(0,0,0,0.3);
}
.btn-ghost {
  background: var(--g-bg-light);
  border: 1px solid var(--g-border);
  color: var(--c-cream);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(250,247,240,0.07); border-color: var(--g-border-hover); }
.btn-lg { padding: 14px 28px; font-size: var(--fs-md); }
.btn-icon { width: 16px; height: 16px; }

/* ====== HERO ====== */
.hero {
  position: relative;
  /* v0.4.9: ridotto padding top per compaction cinematica + space optimization */
  min-height: 100vh;
  padding: 90px 0 60px;
  display: flex; align-items: center;
}

/* Logo SOLE: anchor magnetico al centro */
.hero-logo {
  position: absolute;
  left: 50%; top: 36%;
  transform: translate(-50%, -50%) translateZ(0);
  width: 300px; height: 300px;
  z-index: var(--z-content);
  pointer-events: none;
  filter: drop-shadow(0 8px 40px hsla(var(--light-hue), 70%, 50%, 0.4));
  animation: solarFloat 8s ease-in-out infinite;
}
@keyframes solarFloat {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50%      { transform: translate(-50%, -50%) translateY(-12px); }
}
@media (max-width: 720px) {
  .hero-logo { width: 200px; height: 200px; top: 32%; }
}

/* Hero copy on glass platform */
.hero-content {
  position: relative; z-index: var(--z-content);
  text-align: center;
  margin-top: 0;
  display: flex; flex-direction: column; align-items: center;
}

/* v0.4.9 — Hero Vertical Balance: text overlays cloud + bulb area of logo. */
/* Brand "InsightLearn.cloud" si posiziona nell'area di max impatto bagliore. */
.hero-content--overlay {
  /* Sale verso l'alto per sovrapporsi al logo (cloud zone) */
  margin-top: clamp(20px, 5vh, 60px);
  /* Subtle scrim sotto solo brand line per leggibilità garantita su nuvola bianca */
  position: relative;
}
.hero-content--overlay .hero-eyebrow {
  margin-bottom: 18px; /* compatto, lascia spazio al titolone sopra il logo */
}
/* "Apprendi con" — spostato in alto, sopra cloud */
.hero-pre {
  display: inline-block;
  font-weight: 300;
  letter-spacing: -0.025em;
  /* shadow per stacco da nuvola bianca dietro */
  text-shadow:
    0 2px 16px rgba(6, 9, 13, 0.85),
    0 1px 4px rgba(6, 9, 13, 0.7);
}
/* Brand "InsightLearn.cloud" — area max impatto shader, scolpito + bagliore */
.hero-brand {
  font-weight: 800;
  letter-spacing: -0.05em;
  background: linear-gradient(120deg,
    var(--c-orange) 0%,
    var(--c-orange-light) 50%,
    var(--c-orange) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradFlow 5s ease-in-out infinite;
  /* Doppio shadow: outer per stacco + inner orange glow per "scaldarsi col bulb" */
  filter:
    drop-shadow(0 4px 24px rgba(6, 9, 13, 0.9))
    drop-shadow(0 0 22px hsla(35, 90%, 55%, 0.55));
}
.hero-tld {
  font-weight: 400;
  font-size: 0.62em;
  letter-spacing: 0;
  color: var(--c-cream);
  -webkit-text-fill-color: var(--c-cream);
  filter: drop-shadow(0 2px 12px rgba(6, 9, 13, 0.85));
}
.hero-content--overlay .hero-sub {
  /* v0.4.10 (Visual Harmonizer): vetro satinato Masterclass — glass consistency */
  padding: 16px 24px;
  border-radius: 14px;
  /* Backdrop più forte per "vetro satinato che protegge il testo dalle turbolenze" */
  background: linear-gradient(180deg,
    rgba(6, 9, 13, 0.62),
    rgba(6, 9, 13, 0.45));
  backdrop-filter: blur(14px) saturate(1.45);
  -webkit-backdrop-filter: blur(14px) saturate(1.45);
  /* Border subtle per definire la "lastra" + inner highlight per profondità */
  border: 1px solid rgba(250, 247, 240, 0.09);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 8px 28px rgba(0, 0, 0, 0.35);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  /* Smooth transition se motion → glass dynamic ridotto */
  transition: backdrop-filter 320ms ease, background 320ms ease;
}
@media (prefers-reduced-transparency: reduce) {
  .hero-content--overlay .hero-sub {
    background: rgba(6, 9, 13, 0.92);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--g-bg-mid);
  backdrop-filter: blur(var(--g-blur-rest)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--g-blur-rest)) saturate(1.4);
  border: 1px solid var(--g-border);
  font-size: var(--fs-xs);
  color: var(--c-cream-soft);
  font-family: 'JetBrains Mono'; font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 32px;
  text-transform: uppercase;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 8px 20px rgba(0,0,0,0.3);
}
.hero-eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-orange);
  box-shadow: 0 0 10px var(--c-orange);
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.7); } }

.hero h1 {
  font-size: var(--fs-hero);
  letter-spacing: -0.045em;
  margin-bottom: 24px;
  font-weight: 300;
  max-width: 920px;
}
.hero h1 strong {
  font-weight: 700;
  background: linear-gradient(120deg, var(--c-orange) 0%, var(--c-orange-light) 50%, var(--c-orange) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradFlow 5s ease-in-out infinite;
}
@keyframes gradFlow { 0%, 100% { background-position: 0% center; } 50% { background-position: 100% center; } }

.hero-sub {
  font-size: var(--fs-md);
  color: var(--c-cream-soft);
  max-width: 580px;
  margin-bottom: 48px;
  line-height: 1.55;
}

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 64px; }

.hero-trust {
  display: inline-flex; align-items: center;
  padding: 12px 8px;
  background: var(--g-bg-mid);
  backdrop-filter: blur(var(--g-blur-rest)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--g-blur-rest)) saturate(1.4);
  border: 1px solid var(--g-border);
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 16px 40px rgba(0,0,0,0.4);
}
.hero-trust-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 4px 22px;
  position: relative;
}
.hero-trust-item:not(:last-child)::after {
  content: ''; position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 22px;
  background: linear-gradient(180deg, transparent, rgba(127,177,232,0.4), transparent);
}
.hero-trust-num {
  font-family: 'JetBrains Mono';
  font-weight: 600; font-size: var(--fs-sm);
  color: var(--c-orange);
}
.hero-trust-label { font-size: 11px; color: var(--c-cream-mute); }

/* ====== SECTION ====== */
section { padding: 140px 0; position: relative; z-index: var(--z-content); }
.section-head { margin-bottom: 64px; max-width: 720px; }
.section-head .eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono';
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--c-blue-light);
  margin-bottom: 16px;
  font-weight: 500;
}
.section-head h2 {
  font-size: clamp(2rem, 4vw + 0.5rem, 3.2rem);
  letter-spacing: -0.03em;
  font-weight: 700;
}
.section-head h2 .accent {
  background: linear-gradient(120deg, var(--c-orange), var(--c-orange-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}
.section-head .sub {
  margin-top: 16px;
  color: var(--c-cream-soft);
  font-size: var(--fs-md);
  max-width: 580px;
}

/* ====== ECOSYSTEM (orbital categories) ====== */
.ecosystem-wrap {
  position: relative;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 900px) {
  .ecosystem-wrap {
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
  }
}

.ecosystem-text { z-index: var(--z-content); position: relative; }
.ecosystem-text h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); margin-bottom: 16px; letter-spacing: -0.03em; }

/* Orbital container — relative positioning per arc CSS */
.orbital {
  position: relative;
  height: 460px;
  width: 100%;
  isolation: isolate;
}
.orbital-center {
  position: absolute; left: 50%; top: 50%;
  transform: translate(calc(-50% + var(--gravity-x, 0px)), calc(-50% + var(--gravity-y, 0px)));
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, hsla(var(--light-hue), 70%, 55%, 0.25), transparent 70%);
  filter: blur(20px);
  transition: transform 80ms linear;
}
.orbital-center::after {
  content: ''; position: absolute; inset: 30%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--c-orange), transparent 70%);
  filter: blur(8px);
  opacity: 0.6;
  animation: orbitalGlow 4s ease-in-out infinite;
}
@keyframes orbitalGlow { 0%, 100% { opacity: 0.5; transform: scale(1); } 50% { opacity: 0.85; transform: scale(1.15); } }

/* Orbital ring guide */
.orbital::before {
  content: '';
  position: absolute; left: 50%; top: 50%;
  width: 360px; height: 360px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(127, 177, 232, 0.12);
  border-radius: 50%;
  pointer-events: none;
}
.orbital::after {
  content: '';
  position: absolute; left: 50%; top: 50%;
  width: 460px; height: 460px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(127, 177, 232, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

.cat-orb {
  position: absolute;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  background: var(--g-bg-mid);
  backdrop-filter: blur(var(--g-blur-rest)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--g-blur-rest)) saturate(1.4);
  border: 1px solid var(--g-border);
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 12px 32px rgba(0,0,0,0.35);
  font-size: var(--fs-sm); font-weight: 600;
  font-family: 'Outfit';
  white-space: nowrap;
  cursor: pointer;
  transition: transform 320ms var(--ease), border-color 320ms var(--ease), box-shadow 320ms var(--ease);
  z-index: 5;
  --orb-x: 50%; --orb-y: 50%;
  --orb-scale: 1;
  --highlight-angle: 0deg;
  --highlight-strength: 0.4;
  left: var(--orb-x); top: var(--orb-y);
  transform: translate(-50%, -50%) scale(var(--orb-scale)) translateZ(0);
  will-change: transform;
  isolation: isolate;
  overflow: hidden;
}

/* SPECULAR HIGHLIGHT — luce calda riflessa dal logo, lato facing il sole */
.cat-orb::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: conic-gradient(
    from var(--highlight-angle),
    rgba(232, 124, 42, calc(var(--highlight-strength) * 0.55)) 0deg,
    rgba(248, 155, 77, calc(var(--highlight-strength) * 0.30)) 45deg,
    transparent 110deg,
    transparent 250deg,
    rgba(248, 155, 77, calc(var(--highlight-strength) * 0.20)) 315deg,
    rgba(232, 124, 42, calc(var(--highlight-strength) * 0.55)) 360deg
  );
  mix-blend-mode: screen;
  opacity: 0.85;
  pointer-events: none;
  transition: opacity 320ms var(--ease);
}
/* Inner sheen (top-rim glass shine) */
.cat-orb::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.10) 0%,
    rgba(255,255,255,0.02) 30%,
    transparent 60%
  );
  pointer-events: none;
}

.cat-orb svg, .cat-orb span { position: relative; z-index: 2; }
.cat-orb svg {
  width: 18px; height: 18px; color: var(--c-blue-light);
  transition: color var(--t-hover) var(--ease);
  filter: drop-shadow(0 0 calc(var(--highlight-strength) * 4px) rgba(232,124,42,calc(var(--highlight-strength) * 0.6)));
}

/* MAGNETIC ATTRACTED state — pillola si ingrandisce + halo */
.cat-orb.attracted {
  --orb-scale: 1.18;
  --highlight-strength: 1.0;
  border-color: rgba(232, 124, 42, 0.55);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.10) inset,
    0 0 0 1px rgba(232,124,42,0.15),
    0 16px 50px rgba(232,124,42,0.45),
    0 0 80px rgba(232,124,42,0.30);
  z-index: 6;
  transition: transform 280ms var(--ease-soft), border-color 280ms var(--ease-soft), box-shadow 280ms var(--ease-soft);
}
.cat-orb.attracted svg { color: var(--c-orange-light); }

/* REPELLED state — leggera repulsione (transform applied via CSS var --orb-x/y from JS) */
.cat-orb.repelled {
  --orb-scale: 0.94;
  opacity: 0.7;
  transition: transform 320ms var(--ease), opacity 320ms var(--ease);
}

.cat-orb-meta {
  font-family: 'JetBrains Mono'; font-size: 11px;
  color: var(--c-cream-mute);
  margin-left: 4px;
  position: relative; z-index: 2;
}

/* BACKDROP CALM ZONE — area di calma visiva dietro testo descrittivo */
.calm-zone {
  position: relative;
  isolation: isolate;
  padding: 32px 28px;
  border-radius: 24px;
}
.calm-zone::before {
  content: '';
  position: absolute; inset: -8px -16px;
  z-index: -1;
  background: rgba(10, 14, 19, 0.35);
  backdrop-filter: blur(40px) saturate(1.6);
  -webkit-backdrop-filter: blur(40px) saturate(1.6);
  border-radius: 32px;
  border: 1px solid rgba(250, 247, 240, 0.06);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 32px 80px rgba(0,0,0,0.4);
  /* Soft mask: blur intenso al centro, fade ai bordi → liquid leggermente intravisto */
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at center, black 40%, rgba(0,0,0,0.85) 75%, rgba(0,0,0,0.6) 100%);
  mask-image: radial-gradient(ellipse 90% 90% at center, black 40%, rgba(0,0,0,0.85) 75%, rgba(0,0,0,0.6) 100%);
}

/* ====== COURSES ====== */
.courses-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.course {
  position: relative;
  background: var(--g-bg-mid);
  backdrop-filter: blur(var(--g-blur-rest)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--g-blur-rest)) saturate(1.4);
  border: 1px solid var(--g-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset;
  transition: transform var(--t-trans) var(--ease), border-color var(--t-trans) var(--ease), box-shadow var(--t-trans) var(--ease);
}
.course:hover {
  transform: translateY(-6px);
  border-color: rgba(232,124,42,0.3);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 24px 60px rgba(0,0,0,0.45);
}
.course-thumb {
  position: relative;
  height: 180px;
  background: linear-gradient(135deg, var(--c-blue-dark) 0%, var(--c-blue) 50%, var(--c-orange) 130%);
  overflow: hidden;
}
.course-thumb::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(255,255,255,0.06) 1px, transparent 1.5px),
    radial-gradient(circle at 75% 75%, rgba(255,255,255,0.04) 1px, transparent 1.5px);
  background-size: 24px 24px;
}
.course-thumb-icon { position: absolute; left: 24px; bottom: 24px; width: 44px; height: 44px; color: rgba(255,255,255,0.92); }
.course-thumb-tag {
  position: absolute; top: 16px; right: 16px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: white;
}
.course-body { padding: 24px; }
.course-cat {
  font-family: 'JetBrains Mono'; font-size: var(--fs-xs);
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--c-orange); font-weight: 500; margin-bottom: 8px;
}
.course-title {
  font-family: 'Outfit'; font-size: var(--fs-md);
  font-weight: 700; line-height: 1.3; margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.course-meta {
  display: flex; gap: 16px; align-items: center;
  font-size: var(--fs-sm); color: var(--c-cream-mute);
}
.course-meta strong { font-family: 'JetBrains Mono'; font-weight: 600; color: var(--c-cream); }
.course-rating { color: var(--c-orange); display: inline-flex; align-items: center; gap: 4px; }
.course-rating svg { width: 14px; height: 14px; }
.course-rating--new {
  color: var(--c-cream-mute); font-size: var(--fs-xs);
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600;
}

/* ====== PILLARS (Z-axis depth, Vercel-style glow) ====== */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.pillar {
  position: relative;
  padding: 40px 32px;
  background: linear-gradient(180deg, rgba(250,247,240,0.04), rgba(250,247,240,0.01));
  backdrop-filter: blur(var(--g-blur-rest)) saturate(1.4);
  border: 1px solid var(--g-border);
  border-radius: 24px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset;
  overflow: hidden;
  transition: transform var(--t-trans) var(--ease), border-color var(--t-trans) var(--ease);
}
.pillar::before {
  content: '';
  position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, hsla(var(--light-hue), 70%, 55%, 0.16) 0%, transparent 40%);
  opacity: 0; transition: opacity var(--t-trans) var(--ease);
  pointer-events: none;
}
.pillar:hover { transform: translateY(-4px); border-color: rgba(127,177,232,0.2); }
.pillar:hover::before { opacity: 1; }
.pillar-icon {
  width: 48px; height: 48px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(74,144,226,0.12);
  border: 1px solid rgba(74,144,226,0.18);
  color: var(--c-blue-light);
  margin-bottom: 24px;
  position: relative;
}
.pillar h3 { font-size: var(--fs-xl); margin-bottom: 12px; letter-spacing: -0.02em; }
.pillar p { color: var(--c-cream-soft); font-size: var(--fs-sm); line-height: 1.6; }

/* ====== AI DEMO CHAT ====== */
.ai-demo { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 900px) { .ai-demo { grid-template-columns: 1fr 1fr; gap: 80px; } }

/* v0.4.8.1 — Shadow scrim mask: gradient nero soft sotto il blocco testo per contrasto */
/* su sfondo nuvola bianca del logo. Soluzione "Masterclass readability". */
.ai-text {
  position: relative;
  isolation: isolate; /* nuovo stacking context per ::before sotto il testo */
  padding: 28px 32px 28px 28px;
}
.ai-text::before {
  content: '';
  position: absolute;
  inset: -16px -40px -16px -32px; /* sbordo morbido oltre il testo */
  z-index: -1;
  background:
    /* Scrim orizzontale: 60% nero a sinistra, 0% verso destra (centro pagina/logo) */
    linear-gradient(90deg,
      rgba(6, 9, 13, 0.62) 0%,
      rgba(6, 9, 13, 0.50) 35%,
      rgba(6, 9, 13, 0.20) 70%,
      rgba(6, 9, 13, 0.00) 100%),
    /* Vignette verticale soft per separare ulteriormente */
    radial-gradient(ellipse 90% 100% at 30% 50%,
      rgba(6, 9, 13, 0.30) 0%,
      rgba(6, 9, 13, 0.00) 70%);
  filter: blur(8px); /* edge soft "impercettibile" come da brief */
  border-radius: 12px;
  pointer-events: none;
}
.ai-text h3,
.ai-text p,
.ai-text li {
  /* Text-shadow professionale: blur 12px per stacco dal background grafico */
  text-shadow:
    0 2px 12px rgba(0, 0, 0, 0.55),
    0 1px 3px rgba(0, 0, 0, 0.45);
}
.ai-text h3 { font-size: var(--fs-2xl); margin-bottom: 16px; letter-spacing: -0.025em; }
.ai-text p { color: var(--c-cream-soft); margin-bottom: 24px; }
.ai-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.ai-features li { display: flex; align-items: center; gap: 12px; font-size: var(--fs-sm); color: var(--c-cream-soft); }
.ai-features li svg { width: 16px; height: 16px; color: var(--c-orange); flex-shrink: 0; }

.chat {
  position: relative; /* v0.4.12: anchor per .ai-disclosure absolute */
  padding: 24px;
  background: var(--g-bg-mid);
  backdrop-filter: blur(var(--g-blur-rest)) saturate(1.4);
  border: 1px solid var(--g-border);
  border-radius: 24px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 24px 60px rgba(0,0,0,0.45);
}
.chat-header { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--g-border); margin-bottom: 16px; }
.chat-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c-blue), var(--c-orange));
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-family: 'Outfit'; font-size: var(--fs-sm);
  box-shadow: 0 4px 12px rgba(74,144,226,0.4);
}
.chat-name { font-weight: 600; font-size: var(--fs-sm); }
.chat-status { font-size: var(--fs-xs); color: var(--c-cream-mute); display: flex; align-items: center; gap: 6px; }
.chat-status::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #22C55E; box-shadow: 0 0 8px #22C55E;
}
.chat-messages { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.msg {
  padding: 12px 16px; border-radius: 14px;
  max-width: 85%; font-size: var(--fs-sm); line-height: 1.5;
}
.msg.bot { background: rgba(74,144,226,0.12); align-self: flex-start; }
.msg.user { background: rgba(232,124,42,0.16); align-self: flex-end; }
.msg.bot strong { color: var(--c-blue-light); }
.chat-input {
  display: flex; gap: 8px; align-items: center;
  padding: 12px 16px;
  background: rgba(250,247,240,0.04);
  border: 1px solid var(--g-border); border-radius: 12px;
}
.chat-input input { flex: 1; background: none; border: none; outline: none; color: var(--c-cream); font: inherit; font-size: var(--fs-sm); }
.chat-input input::placeholder { color: var(--c-cream-mute); }
.chat-send {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--c-orange); color: white;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-hover) var(--ease);
}
.chat-send:hover { background: var(--c-orange-light); }
.chat-send svg { width: 14px; height: 14px; }

/* ====== PRICING (Vercel-style glow on featured) ====== */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; max-width: 1080px; margin: 0 auto; }
.tier {
  position: relative;
  padding: 40px 32px;
  background: var(--g-bg-mid);
  backdrop-filter: blur(var(--g-blur-rest)) saturate(1.4);
  border: 1px solid var(--g-border);
  border-radius: 24px;
  display: flex; flex-direction: column; gap: 24px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset;
  transition: transform var(--t-trans) var(--ease), border-color var(--t-trans) var(--ease);
}
.tier:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.16); }
.tier.featured {
  border-color: rgba(232,124,42,0.5);
  background: linear-gradient(180deg, rgba(232,124,42,0.08), rgba(10,14,19,0.55));
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 0 60px rgba(232,124,42,0.18), 0 24px 60px rgba(0,0,0,0.45);
}
.tier.featured::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, var(--c-orange), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
}
.tier-badge {
  position: absolute; top: -12px; left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px; border-radius: 999px;
  background: var(--c-orange); color: white;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  box-shadow: 0 4px 12px rgba(232,124,42,0.5);
}
.tier-name { font-family: 'Outfit'; font-size: var(--fs-md); font-weight: 600; color: var(--c-cream-soft); }
.tier-price { display: flex; align-items: baseline; gap: 4px; font-family: 'Outfit'; }
.tier-price .amount { font-size: var(--fs-3xl); font-weight: 700; letter-spacing: -0.03em; }
.tier-price .period { font-size: var(--fs-sm); color: var(--c-cream-mute); }
.tier-features { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.tier-features li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: var(--fs-sm); color: var(--c-cream-soft);
}
.tier-features li::before {
  content: ''; flex-shrink: 0;
  width: 18px; height: 18px;
  background: rgba(34,197,94,0.16);
  border-radius: 50%;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322C55E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 11px 11px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ====== TESTIMONIALS ====== */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.testimonial {
  padding: 32px;
  background: var(--g-bg-mid);
  backdrop-filter: blur(var(--g-blur-rest)) saturate(1.4);
  border: 1px solid var(--g-border);
  border-radius: 20px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset;
}
.testimonial-quote { font-family: 'Outfit'; font-size: var(--fs-lg); font-weight: 500; line-height: 1.4; margin-bottom: 24px; letter-spacing: -0.015em; }
.testimonial-quote::before { content: '"'; display: block; font-size: 48px; color: var(--c-orange); line-height: 0.4; margin-bottom: 16px; font-family: 'Outfit'; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: white; font-family: 'Outfit'; font-size: var(--fs-sm); }
.testimonial-name { font-weight: 600; font-size: var(--fs-sm); }
.testimonial-role { font-size: var(--fs-xs); color: var(--c-cream-mute); }

/* ====== CTA FINAL ====== */
.cta-final {
  padding: 80px 40px;
  background: var(--g-bg-mid);
  backdrop-filter: blur(var(--g-blur-rest)) saturate(1.4);
  border: 1px solid var(--g-border);
  border-radius: 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 32px 80px rgba(0,0,0,0.5);
}
.cta-final::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 0%, hsla(var(--light-hue), 70%, 55%, 0.18), transparent 60%),
    radial-gradient(circle at 50% 100%, rgba(232,124,42,0.18), transparent 60%);
  pointer-events: none;
}
.cta-final h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin-bottom: 16px; letter-spacing: -0.035em; }
.cta-final p { color: var(--c-cream-soft); font-size: var(--fs-md); max-width: 540px; margin: 0 auto 32px; }

/* ====== FOOTER v0.4.8.1 — Always-on-top liquid bar, Priority Layering ====== */
/* Z-index: shader canvas=2 < content=10 < nav=50 < FOOTER=200 (anchor primo piano) */
footer.liquid-footer {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 200;
  padding: 10px 24px;
  /* Glass solido satinato: bg più opaco + blur più forte + saturate alto */
  background: rgba(6, 9, 13, 0.78); /* era 0.42 — ora "vetro scuro satinato" */
  backdrop-filter: blur(32px) saturate(1.7) brightness(0.9);
  -webkit-backdrop-filter: blur(32px) saturate(1.7) brightness(0.9);
  border-top: 1px solid rgba(250, 247, 240, 0.10);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.35); /* depth shadow, no copertura brusca */
  /* Sempre visibile (galleggia in primo piano) — variante "hint" aggiunta da scroll */
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 420ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
              background 420ms ease,
              backdrop-filter 420ms ease;
}
/* visible/hint: ora il footer è SEMPRE visibile; intent-reveal modula intensità glass */
/* visible = scroll bottom 85%+ → glass più opaco (lettura ottimale) */
footer.liquid-footer.visible {
  background: rgba(6, 9, 13, 0.88);
  backdrop-filter: blur(36px) saturate(1.8) brightness(0.88);
  -webkit-backdrop-filter: blur(36px) saturate(1.8) brightness(0.88);
}
/* hint = scroll 60-85% → glass leggermente meno opaco (transizione morbida) */
footer.liquid-footer.hint {
  background: rgba(6, 9, 13, 0.72);
}
.liquid-footer-row {
  /* Full-width (richiesta 2026-07-14): brand+© a filo sinistro, nav al centro,
     social a filo destro. Con max-width centrato (1240px) i 3 blocchi sforavano
     e il meta andava a capo sotto il brand. */
  max-width: none; margin: 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.liquid-footer-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Outfit'; font-weight: 700;
  font-size: var(--fs-sm); color: var(--c-cream);
  white-space: nowrap;
}
.liquid-footer-brand img { width: 22px; height: 22px; }
.liquid-footer-nav {
  display: flex; align-items: center; gap: 18px;
  flex-wrap: wrap;
  list-style: none; margin: 0; padding: 0;
}
.liquid-footer-nav a {
  font-size: var(--fs-xs);
  color: var(--c-cream-mute);
  letter-spacing: 0.02em;
  transition: color 200ms var(--ease);
  white-space: nowrap;
}
.liquid-footer-nav a:hover { color: var(--c-orange); }
.liquid-footer-meta {
  display: flex; align-items: center; gap: 14px;
  font-family: 'JetBrains Mono'; font-size: 11px;
  color: var(--c-cream-mute);
  /* riserva lo spazio del FAB chatbot (fixed, ultimi ~82px a destra) */
  margin-right: 90px;
}
.liquid-footer-social { display: flex; gap: 6px; }
.liquid-footer-social a {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: rgba(250,247,240,0.04);
  border: 1px solid rgba(250,247,240,0.08);
  transition: all 200ms var(--ease);
  color: var(--c-cream-mute);
}
.liquid-footer-social a:hover {
  background: rgba(232,124,42,0.15);
  border-color: rgba(232,124,42,0.4);
  color: var(--c-orange);
}
.liquid-footer-social svg { width: 13px; height: 13px; }

/* ====== v0.4.13 — FLUID CHATBOT (Ollama) — Morphing UI + Speech-to-Liquid ====== */

/* Floating Liquid Chat (morphing dal logo) */
.liquid-chat {
  position: fixed; right: 20px; bottom: 62px;
  z-index: 220; /* sopra footer 200, sotto consent 300 */
  width: min(380px, calc(100vw - 40px));
  max-height: min(560px, calc(100vh - 140px));
  display: flex; flex-direction: column;
  /* Bordi ultra-arrotondati asimmetrici (morphing) — no angoli retti */
  border-radius: 28px 28px 28px 14px;
  background: linear-gradient(180deg,
    rgba(6, 9, 13, 0.78),
    rgba(6, 9, 13, 0.62));
  backdrop-filter: blur(36px) saturate(1.55);
  -webkit-backdrop-filter: blur(36px) saturate(1.55);
  border: 1px solid rgba(250, 247, 240, 0.10);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55),
              0 0 60px rgba(232, 124, 42, 0.15),
              0 1px 0 rgba(255, 255, 255, 0.06) inset;
  /* Default: chiusa (morphed via clip-path → punto sul pulsante FAB) */
  transform: translate(120px, 60px) scale(0.05);
  transform-origin: 100% 100%;
  opacity: 0;
  pointer-events: none;
  filter: blur(8px);
  transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1),
              opacity 620ms ease,
              filter 620ms ease,
              border-radius 620ms cubic-bezier(0.22, 1, 0.36, 1);
}
.liquid-chat.open {
  transform: translate(0, 0) scale(1);
  opacity: 1;
  filter: blur(0);
  pointer-events: auto;
}
/* v0.5.0 Intent Observer: Soft Dissolve — click outside chat = lento ritorno al fluido */
.liquid-chat.dissolving {
  transform: translate(8px, 12px) scale(1.04);
  opacity: 0;
  filter: blur(14px);
  pointer-events: none;
  transition: transform 540ms cubic-bezier(0.4, 0, 0.2, 1),
              opacity 540ms ease,
              filter 540ms ease;
}

.liquid-chat-header {
  padding: 14px 18px 12px;
  border-bottom: 1px solid rgba(250,247,240,0.08);
  display: flex; align-items: center; gap: 10px;
}
.liquid-chat-avatar {
  position: relative;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4A90E2 0%, #2C6FB8 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Outfit'; font-weight: 700; font-size: 12px;
  color: white;
  flex-shrink: 0;
}
/* Avatar pulse luminoso sync con generation tokens (v0.4.10 logic) */
.liquid-chat-avatar::after {
  content: ''; position: absolute; inset: -3px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,144,226,0.55) 0%, transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}
.liquid-chat.generating .liquid-chat-avatar::after {
  animation: chatGenPulse 1.2s ease-in-out infinite;
}
@keyframes chatGenPulse {
  0%, 100% { opacity: 0; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.18); }
}

/* v0.6.2 Visual Harmonizer — Thinking pulse: First Token Latency feedback.
   Lampadina pulsa LENTAMENTE (2.4s, vs 1.2s generating) in sincrono col
   shader settle pulse (settlePulseT=0.6 lato JS) per indicare "sto pensando". */
.liquid-chat.thinking .liquid-chat-avatar::after {
  animation: chatThinkingPulse 2.4s ease-in-out infinite;
  background: radial-gradient(circle,
    rgba(232, 124, 42, 0.65) 0%,
    rgba(232, 124, 42, 0.18) 40%,
    transparent 75%);
}
@keyframes chatThinkingPulse {
  0%, 100% { opacity: 0.20; transform: scale(0.95); }
  50%      { opacity: 0.85; transform: scale(1.28); }
}
/* Thinking message placeholder (mostra "InsightLearn.cloud sta pensando…") */
.liquid-chat.thinking .liquid-chat-msg--bot:last-child::before {
  content: 'sta pensando…';
  display: block;
  font-size: 11px;
  font-family: 'JetBrains Mono';
  color: rgba(232, 124, 42, 0.8);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  animation: thinkingDots 1.6s ease-in-out infinite;
}
@keyframes thinkingDots {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1.0; }
}
.liquid-chat-title {
  /* v0.5.0 Visual Harmonizer: same family as hero h1 ('Outfit') per continuità lusso */
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.012em;
  color: var(--c-cream);
}
.liquid-chat-status {
  font-size: 10px;
  color: var(--c-cream-mute);
  font-family: 'JetBrains Mono';
}
.liquid-chat-close {
  margin-left: auto;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(250,247,240,0.06);
  border: 1px solid rgba(250,247,240,0.10);
  color: var(--c-cream-mute);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 200ms ease, color 200ms ease;
}
.liquid-chat-close:hover { background: rgba(232,124,42,0.18); color: var(--c-orange); }

/* AI Act Disclosure micro-text dentro chat (Context Sentinel obbligatorio) */
.liquid-chat-disclosure {
  padding: 8px 18px;
  font-size: 10px;
  font-family: 'JetBrains Mono';
  color: rgba(111, 177, 240, 0.82);
  background: linear-gradient(90deg, rgba(74,144,226,0.10), rgba(74,144,226,0.04));
  border-bottom: 1px solid rgba(74,144,226,0.18);
  letter-spacing: 0.02em;
  line-height: 1.5;
}
.liquid-chat-disclosure-dot {
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: #6FB1F0;
  box-shadow: 0 0 6px #6FB1F0;
  margin-right: 5px;
  animation: aiDotPulse 2.4s ease-in-out infinite;
}

.liquid-chat-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(250,247,240,0.12) transparent;
}
.liquid-chat-body::-webkit-scrollbar { width: 6px; }
.liquid-chat-body::-webkit-scrollbar-thumb { background: rgba(250,247,240,0.12); border-radius: 999px; }

.liquid-chat-msg {
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 16px;
  /* v0.5.0 micro-typography: stessa font family hero ('Inter' base) */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  word-wrap: break-word;
}
.liquid-chat-msg--user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--c-orange), var(--c-orange-light));
  color: white;
  border-bottom-right-radius: 6px;
}
.liquid-chat-msg--bot {
  align-self: flex-start;
  background: rgba(250,247,240,0.06);
  border: 1px solid rgba(250,247,240,0.08);
  color: var(--c-cream);
  border-bottom-left-radius: 6px;
  /* v0.4.13 Speech-to-Liquid: nuovo testo arriva "nella nebbia" + diventa solido */
}
/* Speech-to-Liquid: token spans appaiono blurred poi diventano solidi */
.liquid-chat-msg--bot .tok {
  display: inline;
  filter: blur(4px);
  opacity: 0.35;
  transition: filter 480ms ease, opacity 480ms ease;
}
.liquid-chat-msg--bot .tok.settled {
  filter: blur(0);
  opacity: 1;
}

.liquid-chat-input-wrap {
  padding: 10px 14px 14px;
  border-top: 1px solid rgba(250,247,240,0.08);
  display: flex; gap: 8px;
}
.liquid-chat-input {
  flex: 1;
  padding: 9px 14px;
  border-radius: 14px;
  background: rgba(250,247,240,0.06);
  border: 1px solid rgba(250,247,240,0.10);
  color: var(--c-cream);
  font-family: 'Inter';
  font-size: 13px;
  outline: none;
  transition: border-color 200ms ease, background 200ms ease;
}
.liquid-chat-input:focus {
  border-color: rgba(232,124,42,0.5);
  background: rgba(250,247,240,0.08);
}
.liquid-chat-send {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c-orange), var(--c-orange-light));
  border: none; cursor: pointer;
  color: white;
  display: flex; align-items: center; justify-content: center;
  transition: transform 200ms ease;
}
.liquid-chat-send:hover { transform: scale(1.05); }

/* FAB summon button (apre la chat) — emerge come metaball luminosa */
.liquid-chat-fab {
  position: fixed;
  right: 20px; bottom: 62px;
  z-index: 210;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-orange), var(--c-orange-light));
  color: white;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(232, 124, 42, 0.45),
              0 0 28px rgba(232, 124, 42, 0.35),
              0 1px 0 rgba(255, 255, 255, 0.18) inset;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
              opacity 260ms ease,
              box-shadow 260ms ease;
  animation: fabBreath 4s ease-in-out infinite;
}
.liquid-chat-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(232, 124, 42, 0.6),
              0 0 40px rgba(232, 124, 42, 0.45);
}
.liquid-chat-fab.hidden {
  opacity: 0;
  transform: scale(0.5);
  pointer-events: none;
}
@keyframes fabBreath {
  0%, 100% { box-shadow: 0 8px 24px rgba(232, 124, 42, 0.45), 0 0 28px rgba(232, 124, 42, 0.35), 0 1px 0 rgba(255,255,255,0.18) inset; }
  50%      { box-shadow: 0 8px 24px rgba(232, 124, 42, 0.55), 0 0 44px rgba(232, 124, 42, 0.55), 0 1px 0 rgba(255,255,255,0.22) inset; }
}
.liquid-chat-fab svg { width: 22px; height: 22px; }

/* Contextual Summon tooltip (Zero-Click — selezione/settle vicino al cursor) */
.liquid-summon {
  position: fixed;
  z-index: 250;
  padding: 10px 14px;
  border-radius: 14px 14px 14px 4px;
  background: linear-gradient(180deg, rgba(6,9,13,0.88), rgba(6,9,13,0.76));
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(232,124,42,0.4);
  color: var(--c-cream);
  font-size: 12px;
  font-family: 'Inter';
  box-shadow: 0 12px 36px rgba(0,0,0,0.5);
  max-width: 240px;
  opacity: 0;
  transform: translateY(-4px) scale(0.92);
  pointer-events: none;
  transition: opacity 260ms ease, transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}
.liquid-summon.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.liquid-summon-action {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--c-orange), var(--c-orange-light));
  color: white;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

/* ====== v0.4.12 — GDPR + AI Act COMPLIANCE LIQUID UI (staging) ====== */

/* Z-index: shader=2 < content=10 < nav=50 < footer=200 < CONSENT=300 < MODAL=400 */

/* Consent banner: emerge dal basso con backdrop-filter profondo */
.liquid-consent {
  position: fixed; left: 50%; bottom: 16px;
  transform: translate(-50%, calc(100% + 32px));
  z-index: 300;
  max-width: 920px; width: calc(100% - 32px);
  padding: 18px 22px;
  border-radius: 18px;
  background: linear-gradient(180deg,
    rgba(6, 9, 13, 0.78),
    rgba(6, 9, 13, 0.66));
  backdrop-filter: blur(40px) saturate(1.6) brightness(0.92);
  -webkit-backdrop-filter: blur(40px) saturate(1.6) brightness(0.92);
  border: 1px solid rgba(250, 247, 240, 0.10);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5),
              0 1px 0 rgba(255, 255, 255, 0.06) inset;
  opacity: 0;
  pointer-events: none;
  transition: transform 540ms cubic-bezier(0.22, 1, 0.36, 1),
              opacity 540ms cubic-bezier(0.22, 1, 0.36, 1);
}
.liquid-consent.show {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}
.liquid-consent.dissolving {
  /* Quando user accetta: dissolve nel fluido (Fluid Dynamicist) */
  transform: translate(-50%, -8px) scale(0.96);
  opacity: 0;
  filter: blur(8px);
  transition: transform 720ms ease, opacity 720ms ease, filter 720ms ease;
}
.liquid-consent-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
.liquid-consent-text {
  flex: 1 1 320px;
  font-size: var(--fs-sm);
  color: var(--c-cream-soft);
  line-height: 1.55;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.liquid-consent-text strong {
  color: var(--c-cream);
  font-weight: 600;
}
.liquid-consent-text .badge-eu {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 8px; border-radius: 999px;
  background: rgba(74, 144, 226, 0.18);
  border: 1px solid rgba(74, 144, 226, 0.4);
  font-size: 10px; font-weight: 600;
  color: #6FB1F0;
  font-family: 'JetBrains Mono'; letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-right: 6px;
}
.liquid-consent-text a.privacy-link {
  color: var(--c-orange); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.liquid-consent-text a.privacy-link:hover { color: var(--c-orange-light); }

/* Pillole interattive (NO tasti rigidi — reagiscono al magnetic pull) */
.liquid-consent-pills {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.consent-pill {
  position: relative;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 600;
  font-family: 'Outfit';
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid rgba(250, 247, 240, 0.12);
  background: rgba(250, 247, 240, 0.04);
  color: var(--c-cream);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
              background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
  white-space: nowrap;
  user-select: none;
}
.consent-pill:hover {
  background: rgba(250, 247, 240, 0.10);
  border-color: rgba(250, 247, 240, 0.22);
  transform: translateY(-1px);
}
.consent-pill--accept {
  background: linear-gradient(120deg, var(--c-orange), var(--c-orange-light));
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(232, 124, 42, 0.35);
}
.consent-pill--accept:hover {
  background: linear-gradient(120deg, var(--c-orange-light), var(--c-orange));
  box-shadow: 0 8px 24px rgba(232, 124, 42, 0.5);
}
.consent-pill--reject {
  color: var(--c-cream-mute);
}

/* AI Disclosure indicator (AI Act compliance — discreet pulsing badge) */
.ai-disclosure {
  position: absolute; top: -10px; right: -10px;
  z-index: 5;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(6, 9, 13, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(74, 144, 226, 0.5);
  font-family: 'JetBrains Mono';
  font-size: 10px; font-weight: 600;
  color: #6FB1F0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease;
}
.ai-disclosure-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #6FB1F0;
  box-shadow: 0 0 8px #6FB1F0;
  animation: aiDotPulse 2.4s ease-in-out infinite;
}
@keyframes aiDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.7); }
}
.ai-disclosure:hover {
  background: rgba(74, 144, 226, 0.18);
  border-color: rgba(74, 144, 226, 0.8);
}
/* Tooltip transparency su settle hover (revealed via JS) */
.ai-disclosure-tip {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 280px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(6, 9, 13, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(74, 144, 226, 0.3);
  font-size: 11px; line-height: 1.5;
  color: var(--c-cream-soft);
  text-transform: none; letter-spacing: 0;
  font-family: 'Inter';
  font-weight: 400;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 280ms ease, transform 280ms ease;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.ai-disclosure.settled .ai-disclosure-tip {
  opacity: 1;
  transform: translateY(0);
}

/* Transparency Modal (vetrosa, esplica AI senza profilazione) */
.liquid-modal {
  position: fixed; inset: 0; z-index: 400;
  display: flex; align-items: center; justify-content: center;
  background: rgba(6, 9, 13, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none;
  transition: opacity 320ms ease;
}
.liquid-modal.open { opacity: 1; pointer-events: auto; }
.liquid-modal-card {
  max-width: 540px; width: calc(100% - 32px);
  padding: 32px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(6, 9, 13, 0.88), rgba(6, 9, 13, 0.78));
  backdrop-filter: blur(40px) saturate(1.6);
  -webkit-backdrop-filter: blur(40px) saturate(1.6);
  border: 1px solid rgba(250, 247, 240, 0.10);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.6),
              0 1px 0 rgba(255, 255, 255, 0.05) inset;
  transform: scale(0.96);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.liquid-modal.open .liquid-modal-card { transform: scale(1); }
.liquid-modal h3 {
  font-family: 'Outfit'; font-size: var(--fs-xl); font-weight: 700;
  margin-bottom: 14px; letter-spacing: -0.02em;
}
.liquid-modal p {
  color: var(--c-cream-soft); font-size: var(--fs-sm); line-height: 1.6;
  margin-bottom: 14px;
}
.liquid-modal ul { padding-left: 18px; margin-bottom: 18px; }
.liquid-modal li { color: var(--c-cream-soft); font-size: var(--fs-xs); line-height: 1.6; margin-bottom: 6px; }
.liquid-modal-close {
  margin-top: 8px;
  padding: 9px 18px; border-radius: 999px;
  background: rgba(250, 247, 240, 0.08);
  border: 1px solid rgba(250, 247, 240, 0.16);
  color: var(--c-cream); font-size: var(--fs-xs); font-weight: 600;
  cursor: pointer;
  transition: all 200ms ease;
}
.liquid-modal-close:hover {
  background: rgba(250, 247, 240, 0.14);
  border-color: rgba(250, 247, 240, 0.28);
}

/* v0.4.11 — Audio toggle button (Audio Alchemist + Context Sentinel opt-in) */
.audio-toggle {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: rgba(250,247,240,0.04);
  border: 1px solid rgba(250,247,240,0.08);
  color: var(--c-cream-mute);
  cursor: pointer;
  transition: all 200ms var(--ease);
  padding: 0;
}
.audio-toggle:hover {
  background: rgba(232,124,42,0.12);
  border-color: rgba(232,124,42,0.35);
  color: var(--c-orange);
}
.audio-toggle svg { width: 14px; height: 14px; display: block; }
.audio-toggle .ico-on  { display: none; }
.audio-toggle .ico-off { display: block; }
.audio-toggle[data-on="1"] {
  background: rgba(232,124,42,0.18);
  border-color: rgba(232,124,42,0.5);
  color: var(--c-orange);
}
.audio-toggle[data-on="1"] .ico-on  { display: block; }
.audio-toggle[data-on="1"] .ico-off { display: none; }
@media (max-width: 720px) {
  footer.liquid-footer { padding: 10px 12px; }
  .liquid-footer-row { gap: 12px; justify-content: center; }
  .liquid-footer-meta { display: none; }
  .liquid-footer-nav { gap: 12px; font-size: 11px; }
}

/* ====== REVEAL ANIMATIONS ====== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ====== REDUCED MOTION ====== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ====================================================================== */
/* v0.6.3 — LiquidShaderRoot Layout (cross-route persistence) + STAGING   */
/* ====================================================================== */

.lp-root-shell {
  position: relative;
  min-height: 100vh;
  background: #06090D;
  color: var(--c-cream);
  isolation: isolate;
}

.lp-bg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  display: block;
}

.lp-root-body {
  position: relative;
  z-index: 10;
  min-height: 100vh;
}

/* STAGING watermark — fluido, opaco di default (utente in moto), scompare al settle */
.lp-staging-watermark {
  position: fixed;
  top: 84px;
  right: 16px;
  z-index: 250;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(232, 124, 42, 0.18), rgba(232, 124, 42, 0.10));
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid rgba(232, 124, 42, 0.55);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  color: var(--c-orange);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  pointer-events: none;
  user-select: none;
  box-shadow: 0 6px 24px rgba(232, 124, 42, 0.25);
  /* Default: visibile durante motion (Context Sentinel motion-detector v0.4.10) */
  opacity: 0.92;
  transform: translateY(0) scale(1);
  transition: opacity 540ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 540ms cubic-bezier(0.22, 1, 0.36, 1);
}

.lp-staging-watermark-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-orange);
  box-shadow: 0 0 8px var(--c-orange);
  animation: stagingWatermarkPulse 1.6s ease-in-out infinite;
}

.lp-staging-watermark-version {
  opacity: 0.65;
  font-size: 9px;
  margin-left: 2px;
}

@keyframes stagingWatermarkPulse {
  0%, 100% { opacity: 0.6; transform: scale(0.85); }
  50%      { opacity: 1.0; transform: scale(1.10); }
}

/* Settle hide: quando motion-detector rileva idle (--liquid-motion ~ 0)
   → watermark fade a opacity 0.08, scale 0.9. Si ripresenta su nuova activity. */
:root[style*="--liquid-motion: 0.0"] .lp-staging-watermark,
:root[style*="--liquid-motion: 0.00"] .lp-staging-watermark,
:root[style*="--liquid-motion: 0.001"] .lp-staging-watermark,
:root[style*="--liquid-motion: 0.01"] .lp-staging-watermark,
:root[style*="--liquid-motion: 0.02"] .lp-staging-watermark,
:root[style*="--liquid-motion: 0.03"] .lp-staging-watermark,
:root[style*="--liquid-motion: 0.04"] .lp-staging-watermark,
:root[style*="--liquid-motion: 0.05"] .lp-staging-watermark {
  opacity: 0.08;
  transform: translateY(-3px) scale(0.92);
}

/* Hover/focus override: watermark sempre visibile su interazione esplicita */
.lp-staging-watermark:hover {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  cursor: default;
}

@media (max-width: 720px) {
  .lp-staging-watermark { top: 70px; right: 8px; padding: 4px 9px; font-size: 9px; }
  .lp-staging-watermark-version { display: none; }
}

/* prefers-reduced-motion: watermark stabile, nessuna animation */
@media (prefers-reduced-motion: reduce) {
  .lp-staging-watermark { opacity: 0.7; transform: none; transition: none; }
  .lp-staging-watermark-dot { animation: none; }
}

/* ====================================================================== */
/* v0.6.4 — Portal sub-pages (Courses, Pricing, Instructors)              */
/* ====================================================================== */

.lp-page {
  position: relative;
  z-index: 10;
  max-width: 1240px;
  margin: 0 auto;
  padding: 100px 24px 120px;
  color: var(--c-cream);
}

.lp-page-head {
  text-align: center;
  margin-bottom: 64px;
}
.lp-page-eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono';
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-orange);
  background: rgba(232, 124, 42, 0.10);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(232, 124, 42, 0.3);
  margin-bottom: 18px;
}
.lp-page-title {
  font-family: 'Outfit', system-ui;
  font-size: clamp(2rem, 4vw + 0.5rem, 3.6rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 auto 18px;
  max-width: 920px;
  text-shadow: 0 2px 12px rgba(6, 9, 13, 0.7);
}
.lp-accent {
  font-weight: 800;
  background: linear-gradient(120deg, var(--c-orange), var(--c-orange-light), var(--c-orange));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradFlow 5s ease-in-out infinite;
}
.lp-page-sub {
  max-width: 620px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-cream-soft);
  padding: 14px 22px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(6, 9, 13, 0.62), rgba(6, 9, 13, 0.45));
  backdrop-filter: blur(14px) saturate(1.45);
  -webkit-backdrop-filter: blur(14px) saturate(1.45);
  border: 1px solid rgba(250, 247, 240, 0.09);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* ====== Courses grid ====== */
.lp-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.lp-course-card {
  display: flex;
  flex-direction: column;
  background: var(--g-bg-mid);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid var(--g-border);
  border-radius: 18px;
  padding: 18px;
  text-decoration: none;
  color: inherit;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
              border-color 220ms ease, box-shadow 220ms ease;
  cursor: pointer;
}
.lp-course-card:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 124, 42, 0.45);
  box-shadow: 0 16px 40px rgba(232, 124, 42, 0.15);
}
.lp-course-thumb {
  font-size: 40px;
  line-height: 1;
  margin-bottom: 10px;
}
.lp-course-cat {
  font-size: 11px;
  font-family: 'JetBrains Mono';
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-cream-mute);
}
.lp-course-title {
  font-family: 'Outfit';
  font-size: 18px;
  font-weight: 700;
  margin: 6px 0 8px;
  letter-spacing: -0.02em;
}
.lp-course-desc {
  font-size: 13px;
  color: var(--c-cream-soft);
  line-height: 1.5;
  margin-bottom: 14px;
  flex: 1;
}
.lp-course-meta {
  display: flex;
  gap: 14px;
  font-size: 11px;
  color: var(--c-cream-mute);
  margin-top: auto;
  flex-wrap: wrap;
}
.lp-course-rating { color: var(--c-orange); }
.lp-course-skeleton { opacity: 0.4; }

/* ====== Pricing tiers ====== */
.lp-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}
.lp-tier {
  position: relative;
  padding: 32px 28px;
  background: var(--g-bg-mid);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid var(--g-border);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 240ms ease, border-color 240ms ease;
}
.lp-tier:hover { transform: translateY(-2px); border-color: rgba(250,247,240,0.18); }
.lp-tier--featured {
  border-color: rgba(232, 124, 42, 0.55);
  box-shadow: 0 16px 56px rgba(232, 124, 42, 0.20);
}
.lp-tier-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--c-orange), var(--c-orange-light));
  color: white;
  font-family: 'JetBrains Mono';
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lp-tier-name { font-family: 'Outfit'; font-size: 22px; font-weight: 700; margin: 0; }
.lp-tier-price { display: flex; align-items: baseline; gap: 6px; }
.lp-tier-amount {
  font-family: 'Outfit';
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--c-cream);
}
.lp-tier-period { font-size: 13px; color: var(--c-cream-mute); }
.lp-tier-desc { font-size: 13px; color: var(--c-cream-soft); padding: 0; background: none; backdrop-filter: none; border: 0; box-shadow: none; max-width: none; margin: 0; }
.lp-tier-features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.lp-tier-features li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--c-cream-soft); }
.lp-tier-check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.18);
  color: #22C55E;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
}
.lp-tier-cta {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(250, 247, 240, 0.06);
  border: 1px solid rgba(250, 247, 240, 0.16);
  color: var(--c-cream);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 220ms ease;
  margin-top: auto;
}
.lp-tier-cta--primary {
  background: linear-gradient(135deg, var(--c-orange), var(--c-orange-light));
  border-color: transparent;
  color: white;
  box-shadow: 0 8px 24px rgba(232, 124, 42, 0.35);
}
.lp-tier-cta:hover { transform: translateY(-1px); }

/* ====== Instructors ====== */
.lp-instructor-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-bottom: 64px;
}
.lp-instructor-stat {
  text-align: center;
  padding: 24px;
  background: var(--g-bg-mid);
  backdrop-filter: blur(12px);
  border: 1px solid var(--g-border);
  border-radius: 16px;
  transition: border-color 220ms ease;
}
.lp-instructor-stat:hover { border-color: rgba(232,124,42,0.4); }
.lp-stat-num {
  font-family: 'Outfit';
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--c-orange), var(--c-orange-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lp-stat-label { font-size: 12px; color: var(--c-cream-mute); margin-top: 4px; }

.lp-section-title {
  font-family: 'Outfit';
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 28px;
  text-align: center;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(6, 9, 13, 0.6);
}
.lp-instructors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-bottom: 64px;
}
.lp-instructor-card {
  text-align: center;
  padding: 28px 22px;
  background: var(--g-bg-mid);
  backdrop-filter: blur(14px);
  border: 1px solid var(--g-border);
  border-radius: 20px;
  transition: transform 240ms ease, border-color 240ms ease;
}
.lp-instructor-card:hover { transform: translateY(-3px); border-color: rgba(232,124,42,0.4); }
.lp-instructor-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  color: white;
  font-family: 'Outfit';
  font-weight: 700;
  font-size: 22px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.lp-instructor-name { font-family: 'Outfit'; font-size: 17px; font-weight: 700; margin: 0; }
.lp-instructor-role { font-size: 11px; color: var(--c-cream-mute); }
.lp-instructor-bio { font-size: 12px; color: var(--c-cream-soft); line-height: 1.5; margin: 12px 0; padding: 8px 12px; border-radius: 10px; background: rgba(6,9,13,0.4); backdrop-filter: blur(6px); border: 0; box-shadow: none; max-width: none; text-shadow: none; }
.lp-instructor-meta { display: flex; gap: 12px; justify-content: center; font-size: 11px; color: var(--c-cream-mute); flex-wrap: wrap; }
.lp-instructor-rating { color: var(--c-orange); }

.lp-cta-final {
  text-align: center;
  padding: 48px 32px;
  border-radius: 28px;
  background: var(--g-bg-mid);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(232, 124, 42, 0.35);
}
.lp-cta-final h3 { font-family: 'Outfit'; font-size: 28px; margin: 0 0 12px; letter-spacing: -0.02em; }
.lp-cta-final p { color: var(--c-cream-soft); margin-bottom: 24px; padding: 12px 18px; }

.lp-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 24px;
  color: var(--c-cream-mute);
  background: rgba(6, 9, 13, 0.4);
  border-radius: 16px;
  border: 1px dashed rgba(250, 247, 240, 0.12);
}
.lp-page-foot {
  margin-top: 64px;
  text-align: center;
  font-size: 12px;
  color: var(--c-cream-mute);
  padding: 14px 22px;
  background: rgba(232,124,42,0.08);
  border-radius: 12px;
  border: 1px solid rgba(232,124,42,0.25);
}
.lp-page-foot code {
  background: rgba(0,0,0,0.4);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono';
}

/* ====== v1.5.0 CALM ZONE — Scrim + Text Shadow (FIX 2) ====== */
.calm-zone {
  position: relative;
  isolation: isolate;
  padding: 40px 36px;
  border-radius: 28px;
}
.calm-zone::before {
  content: '';
  position: absolute;
  inset: -10px -16px;
  z-index: -2;
  border-radius: 34px;
  background: rgba(8, 12, 18, var(--calm-alpha, 0.42));
  backdrop-filter: blur(var(--calm-blur, 18px)) saturate(1.6) brightness(0.90);
  -webkit-backdrop-filter: blur(var(--calm-blur, 18px)) saturate(1.6) brightness(0.90);
  border: 1px solid rgba(250, 247, 240, var(--calm-border, 0.07));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 24px 60px rgba(0, 0, 0, 0.42);
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at center, black 28%, rgba(0,0,0,0.94) 58%, rgba(0,0,0,0.65) 80%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 90% at center, black 28%, rgba(0,0,0,0.94) 58%, rgba(0,0,0,0.65) 80%, transparent 100%);
  transition: backdrop-filter 0.55s ease, background 0.55s ease;
}
.calm-zone::after {
  content: '';
  position: absolute;
  inset: -14px -20px -14px -28px;
  z-index: -1;
  border-radius: 36px;
  background:
    linear-gradient(90deg,
      rgba(6, 9, 13, 0.62) 0%,
      rgba(6, 9, 13, 0.46) 28%,
      rgba(6, 9, 13, 0.18) 62%,
      rgba(6, 9, 13, 0.00) 100%
    ),
    radial-gradient(ellipse 82% 100% at 22% 50%,
      rgba(6, 9, 13, 0.28) 0%,
      rgba(6, 9, 13, 0.00) 68%
    );
  filter: blur(9px);
  pointer-events: none;
}
.calm-zone h3,
.calm-zone p,
.calm-zone a {
  text-shadow:
    0 2px 14px rgba(0, 0, 0, 0.70),
    0 1px  4px rgba(0, 0, 0, 0.55);
}
.calm-zone-settle-dot {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-orange);
  opacity: 0;
  box-shadow: 0 0 8px var(--c-orange);
  transition: opacity 0.5s;
  pointer-events: none;
  z-index: 2;
}
.calm-zone.settled .calm-zone-settle-dot {
  opacity: 0.65;
  animation: calmDotPulse 2.4s ease-in-out infinite;
}
@keyframes calmDotPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%       { opacity: 0.8; transform: scale(1.35); }
}

/* ====== v1.5.0 LIQUID FOOTER — Priority Layering (FIX 1) ====== */
footer.liquid-footer {
  z-index: 200 !important;
  opacity: 1 !important;
  transform: none !important;
  padding: 10px 24px !important;
  background: rgba(6, 9, 13, 0.78) !important;
  backdrop-filter: blur(32px) saturate(1.7) brightness(0.88) !important;
  -webkit-backdrop-filter: blur(32px) saturate(1.7) brightness(0.88) !important;
  pointer-events: auto !important;
  color: rgba(250,247,240,0.7) !important;
}
footer.liquid-footer.visible {
  background: rgba(6, 9, 13, 0.90) !important;
  backdrop-filter: blur(40px) saturate(1.8) brightness(0.86) !important;
  -webkit-backdrop-filter: blur(40px) saturate(1.8) brightness(0.86) !important;
}
footer.liquid-footer.hint {
  background: rgba(6, 9, 13, 0.70) !important;
  backdrop-filter: blur(28px) saturate(1.6) brightness(0.90) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.6) brightness(0.90) !important;
}

/* ====== v1.5.0 CAT ORB LABEL WARMTH ====== */
.cat-orb-label {
  color: rgb(
    calc(250 + var(--tw, 0) * 5),
    calc(247 - var(--tw, 0) * 87),
    calc(240 - var(--tw, 0) * 168)
  );
}
