/* ═══════════════════════════════════════════════════════════════════════
   liara-page.css — pagina dedicata /liara (2026-06-09)
   Estratta dalla home / per dare a Liara una vetrina propria animata.
   Riusa tokens.css + chat.css per chat reale, aggiunge solo style hero/capabilities/bridge.
   ═══════════════════════════════════════════════════════════════════════ */

/* ───── HERO LIARA ─────────────────────────────────────────────────── */
.liara-hero {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 24px clamp(32px, 5vw, 48px);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(34, 197, 94, 0.08), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(99, 102, 241, 0.08), transparent 50%),
    var(--bg, #0b0b0d);
}

.liara-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.liara-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: orb-float 20s ease-in-out infinite;
}
.liara-orb--1 {
  width: 480px; height: 480px;
  top: -120px; left: -120px;
  background: radial-gradient(circle, #22c55e 0%, transparent 70%);
  animation-delay: 0s;
}
.liara-orb--2 {
  width: 420px; height: 420px;
  bottom: -100px; right: -80px;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
  animation-delay: 6s;
}
.liara-orb--3 {
  width: 320px; height: 320px;
  top: 40%; left: 50%;
  background: radial-gradient(circle, #ec4899 0%, transparent 70%);
  animation-delay: 12s;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -30px) scale(1.05); }
  66%      { transform: translate(-30px, 40px) scale(0.95); }
}

.liara-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.liara-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
  animation: badge-in 600ms cubic-bezier(.16,1,.3,1) both;
}

.liara-hero__pulse {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse-dot 2s ease-out infinite;
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0   rgba(34, 197, 94, 0.7); }
  70%  { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);   }
  100% { box-shadow: 0 0 0 0   rgba(34, 197, 94, 0);   }
}
@keyframes badge-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.liara-hero__title {
  font-size: clamp(32px, 5.5vw, 56px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--fg, #fff);
  animation: title-in 800ms 100ms cubic-bezier(.16,1,.3,1) both;
}
.liara-hero__accent {
  background: linear-gradient(135deg, #22c55e 0%, #6366f1 50%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: gradient-shift 8s ease-in-out infinite;
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% center; }
  50%      { background-position: 100% center; }
}
@keyframes title-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.liara-hero__lede {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
  color: var(--fg-muted, #a3a3a8);
  max-width: 720px;
  margin: 0 auto 16px;
  animation: title-in 800ms 200ms cubic-bezier(.16,1,.3,1) both;
}
.liara-hero__lede strong, .liara-hero__lede a { color: var(--fg, #fff); }
.liara-hero__lede a { text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 3px; }
.liara-hero__lede a:hover { text-decoration-color: #22c55e; }

.liara-hero__tech {
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg-subtle, #71717a);
  max-width: 680px;
  margin: 0 auto 32px;
  animation: title-in 800ms 300ms cubic-bezier(.16,1,.3,1) both;
}
.liara-hero__tech strong { color: #a3a3a8; font-weight: 600; }

/* Demo rotator — quick prompts che scorrono orizzontalmente per dare idea
   di cosa puoi chiedere. Pause on hover. */
.liara-hero__demo-rotator {
  margin: 28px 0 24px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  animation: title-in 800ms 400ms cubic-bezier(.16,1,.3,1) both;
}
.liara-hero__demo-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: track-slide 30s linear infinite;
}
.liara-hero__demo-rotator:hover .liara-hero__demo-track { animation-play-state: paused; }
@keyframes track-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 8px)); }
}
.liara-hero__demo-pill {
  flex-shrink: 0;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: var(--fg-muted, #a3a3a8);
  white-space: nowrap;
}
/* Duplicate i pill via CSS per loop continuo */
.liara-hero__demo-track::after {
  content: "";
}

.liara-hero__cta-hint {
  font-size: 13px;
  color: var(--fg-subtle, #71717a);
  margin: 16px 0 0;
  animation: cta-hint-bob 2s ease-in-out infinite, title-in 800ms 500ms cubic-bezier(.16,1,.3,1) both;
}
@keyframes cta-hint-bob {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50%      { transform: translateY(4px); opacity: 1; }
}

/* ───── CAPABILITIES ───────────────────────────────────────────────── */
.liara-capabilities {
  padding: clamp(48px, 6vw, 80px) 24px;
  max-width: 1120px;
  margin: 0 auto;
}
.liara-capabilities__head {
  text-align: center;
  margin-bottom: 40px;
}
.liara-capabilities__head h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.liara-capabilities__head p {
  font-size: 16px;
  color: var(--fg-muted, #a3a3a8);
  margin: 0;
  max-width: 640px;
  margin-inline: auto;
}

.liara-capabilities__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.liara-cap-card {
  padding: 24px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  transition: transform 240ms cubic-bezier(.2,.8,.2,1), border-color 240ms;
  animation: card-in 600ms 0ms cubic-bezier(.16,1,.3,1) both;
}
/* CSP-friendly stagger: no inline `style="--cap-delay:"` (would require
   style-src 'unsafe-inline'). Le classi --d0/--d1/--d2/--d3 applicano
   il delay scalato via CSS dedicato (regola per classe). */
.liara-cap-card.liara-cap-card--d0 { animation-delay: 0ms; }
.liara-cap-card.liara-cap-card--d1 { animation-delay: 120ms; }
.liara-cap-card.liara-cap-card--d2 { animation-delay: 240ms; }
.liara-cap-card.liara-cap-card--d3 { animation-delay: 360ms; }
.liara-cap-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 197, 94, 0.4);
}
.liara-cap-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(34, 197, 94, 0.1) 100%);
  opacity: 0;
  transition: opacity 240ms;
}
.liara-cap-card:hover::before { opacity: 1; }
@keyframes card-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.liara-cap-card__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.liara-cap-card__icon svg { width: 22px; height: 22px; }

.liara-cap-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--fg, #fff);
  position: relative;
  z-index: 1;
}
.liara-cap-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-muted, #a3a3a8);
  margin: 0 0 14px;
  position: relative;
  z-index: 1;
}
.liara-cap-card__tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 11px;
  color: var(--fg-subtle, #71717a);
  font-family: ui-monospace, monospace;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
}

/* ───── CHAT SECTION ───────────────────────────────────────────────── */
.liara-chat-section {
  padding: 0 24px clamp(48px, 6vw, 80px);
  max-width: 1120px;
  margin: 0 auto;
}
.liara-chat-section__head {
  text-align: center;
  padding: 40px 0 32px;
}
.liara-chat-section__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #4ade80;
  margin-bottom: 12px;
}
.liara-chat-section__head h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.liara-chat-section__head p {
  font-size: 16px;
  color: var(--fg-muted, #a3a3a8);
  margin: 0;
  max-width: 640px;
  margin-inline: auto;
}

.liara-chat-main {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* ───── BRIDGE FlowForge ───────────────────────────────────────────── */
.liara-bridge {
  padding: clamp(48px, 6vw, 80px) 24px;
  background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.06));
}
.liara-bridge__inner {
  max-width: 960px;
  margin: 0 auto;
}
.liara-bridge__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #a78bfa;
  margin-bottom: 12px;
}
.liara-bridge h2 {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  line-height: 1.2;
}
.liara-bridge p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg-muted, #a3a3a8);
  margin: 0 0 24px;
  max-width: 720px;
}
.liara-bridge p strong { color: var(--fg, #fff); }

.liara-bridge__features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.liara-bridge__features li {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
  color: var(--fg-muted, #a3a3a8);
}
.liara-bridge__features li strong { color: var(--fg, #fff); font-weight: 600; }

.liara-bridge__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ───── FOOTER LIARA ───────────────────────────────────────────────── */
.liara-foot {
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 40px 24px 24px;
}
.liara-foot__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}
.liara-foot__col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--fg-subtle, #71717a);
}
.liara-foot__col strong {
  color: var(--fg, #fff);
  font-size: 14px;
  margin-bottom: 4px;
}
.liara-foot__col p { margin: 0; line-height: 1.5; }
.liara-foot__col a {
  color: var(--fg-muted, #a3a3a8);
  text-decoration: none;
}
.liara-foot__col a:hover { color: #4ade80; }

.liara-foot__legal {
  max-width: 1120px;
  margin: 24px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  font-size: 12px;
  color: var(--fg-subtle, #71717a);
}
.liara-foot__legal a {
  color: var(--fg-subtle, #71717a);
  text-decoration: none;
  margin: 0 2px;
}
.liara-foot__legal a:hover { color: #4ade80; }

/* ───── REDUCED MOTION ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .liara-orb, .liara-hero__pulse, .liara-hero__demo-track, .liara-hero__cta-hint, .liara-hero__accent {
    animation: none !important;
  }
  .liara-hero__demo-rotator { mask-image: none; -webkit-mask-image: none; }
  .liara-cap-card, .liara-hero__title, .liara-hero__lede, .liara-hero__tech, .liara-hero__cta-hint, .liara-hero__badge {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ───── DUPLICATE DEMO PILL VIA JS NON NEEDED: usa CSS animation con
       contenuto già duplicato manualmente o usa transform double */
.liara-hero__demo-track > .liara-hero__demo-pill { will-change: transform; }
