/* =============================================================================
   ARIANNA — AI Voice Software · Landing page
   Brand Concept 3 — Charcoal #0F1115 / Indigo #6366F1 → #9D7EF5 / Alabaster
   ============================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Sora:wght@500;600;700;800&display=swap');

:root {
  --bg: #FAFAFC;
  --surface: #ffffff;
  --surface-2: #F2F4F8;
  --border: #E4E7EE;
  --text: #0F1115;
  --muted: #6B7280;
  --indigo: #6366F1;
  --indigo-light: #9D7EF5;
  --gradient: linear-gradient(135deg, #6366F1 0%, #9D7EF5 100%);
  --gradient-soft: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(157,126,245,0.08));
  --charcoal: #0F1115;
  --charcoal-soft: #1A1D24;
  --shadow-sm: 0 1px 2px rgba(15,17,21,0.04), 0 4px 12px rgba(15,17,21,0.06);
  --shadow-md: 0 2px 6px rgba(15,17,21,0.06), 0 12px 32px rgba(15,17,21,0.10);
  --shadow-lg: 0 8px 24px rgba(99,102,241,0.18), 0 24px 60px rgba(15,17,21,0.16);
  --radius: 12px;
  --radius-lg: 18px;
  --font-sans: 'Inter', -apple-system, system-ui, sans-serif;
  --font-display: 'Sora', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: 20px; letter-spacing: -0.01em; }
p { margin: 0; color: var(--muted); }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 14px rgba(99,102,241,0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(99,102,241,0.45); }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost {
  background: transparent;
  color: var(--text);
}
.btn-ghost:hover { background: rgba(99,102,241,0.08); color: var(--indigo); }

/* === NAV === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(15,17,21,0.0);
  backdrop-filter: blur(0px);
  transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled {
  background: rgba(15,17,21,0.85);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-brand { display: flex; align-items: center; }
.nav-logo { height: 32px; width: auto; }
.nav-links {
  display: flex;
  gap: 26px;
  margin-left: 16px;
}
.nav-links a {
  color: rgba(250,250,252,0.78);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: #fff; }
.nav-cta {
  margin-left: auto;
  display: flex;
  gap: 10px;
}
.nav .btn-ghost { color: rgba(250,250,252,0.85); }
.nav .btn-ghost:hover { background: rgba(255,255,255,0.10); color: #fff; }
.nav-burger {
  display: none;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 0 80px;
  background: linear-gradient(180deg, var(--charcoal) 0%, #16181F 100%);
  color: #FAFAFC;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  animation: float 20s infinite ease-in-out;
}
.blob-1 { top: -10%; left: -5%; width: 500px; height: 500px; background: var(--indigo); }
.blob-2 { top: 30%; right: -10%; width: 600px; height: 600px; background: var(--indigo-light); animation-delay: -7s; }
.blob-3 { bottom: -20%; left: 30%; width: 450px; height: 450px; background: #4F46E5; animation-delay: -14s; }
@keyframes 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); }
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-content { z-index: 2; }
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(250,250,252,0.85);
  margin-bottom: 24px;
}
.badge-pill .dot {
  width: 6px; height: 6px;
  background: var(--indigo-light);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--indigo-light);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.4); }
}
.hero h1 {
  font-size: clamp(36px, 5.4vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
  color: #FAFAFC;
}
.grad-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(250,250,252,0.78);
  margin-bottom: 32px;
  max-width: 520px;
}
.hero-sub strong { color: #FAFAFC; font-weight: 600; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-trust {
  display: flex; gap: 24px; flex-wrap: wrap;
  font-size: 13px;
  color: rgba(250,250,252,0.65);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust i { color: var(--indigo-light); }

/* Hero visual: phone mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  z-index: 1;
}
.phone-mockup {
  width: 320px;
  height: 580px;
  background: linear-gradient(180deg, #1A1D24, #0F1115);
  border-radius: 36px;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    0 30px 80px rgba(99,102,241,0.30),
    inset 0 1px 0 rgba(255,255,255,0.10);
  padding: 16px;
  position: relative;
  z-index: 2;
}
.phone-mockup::before {
  content: '';
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 6px;
  background: #000;
  border-radius: 999px;
}
.phone-screen {
  width: 100%; height: 100%;
  background: #0a0c10;
  border-radius: 26px;
  padding: 28px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}
.call-header {
  text-align: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.call-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: #f87171; font-weight: 600;
  margin-bottom: 4px;
}
.rec-dot {
  width: 8px; height: 8px; background: #ef4444;
  border-radius: 50%; animation: pulse-dot 1.5s infinite;
}
.call-from { font-family: var(--font-display); font-size: 14px; color: #fff; }
.bubbles {
  flex: 1;
  display: flex; flex-direction: column; gap: 8px;
  overflow-y: auto;
  font-size: 12px;
}
.bubble {
  padding: 8px 11px;
  border-radius: 14px;
  max-width: 80%;
  line-height: 1.4;
}
.bubble.bot {
  background: var(--gradient);
  color: #fff;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  display: flex; flex-direction: column; gap: 2px;
}
.bubble.bot strong {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
  font-family: var(--font-display);
}
.bubble.user {
  background: rgba(255,255,255,0.08);
  color: #f4f4f5;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.bubble.typing {
  display: flex; flex-direction: row; gap: 4px;
  padding: 12px 14px;
}
.bubble.typing span {
  width: 6px; height: 6px;
  background: rgba(255,255,255,0.7);
  border-radius: 50%;
  animation: typing 1.4s infinite;
}
.bubble.typing span:nth-child(2) { animation-delay: 0.15s; }
.bubble.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}
.call-footer {
  display: flex;
  justify-content: space-around;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.metric {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
}
.metric strong {
  font-family: var(--font-display);
  font-size: 14px; color: var(--indigo-light); font-weight: 600;
}
.metric span { font-size: 9px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.08em; }

.floating-card {
  position: absolute;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 12px 16px;
  border-radius: var(--radius);
  display: flex; align-items: center; gap: 12px;
  font-size: 13px;
  color: #fff;
  z-index: 3;
  animation: float-card 5s infinite ease-in-out;
}
.floating-card i {
  width: 36px; height: 36px;
  background: var(--gradient);
  border-radius: 8px;
  display: grid; place-items: center;
  color: #fff;
  font-size: 14px;
}
.floating-card div { display: flex; flex-direction: column; line-height: 1.2; }
.floating-card strong { font-family: var(--font-display); font-weight: 600; font-size: 13px; }
.floating-card span { font-size: 11px; color: rgba(255,255,255,0.6); }
.card-stt { top: 8%; left: -10%; }
.card-llm { top: 45%; right: -18%; animation-delay: -1.5s; }
.card-tts { bottom: 12%; left: -8%; animation-delay: -3s; }
@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* === TRUST BAR === */
.trust-bar {
  background: var(--charcoal);
  color: rgba(250,250,252,0.6);
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.trust-label {
  text-align: center;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(250,250,252,0.45);
  margin-bottom: 18px;
}
.trust-logos {
  display: flex; flex-wrap: wrap;
  justify-content: center;
  gap: 36px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: rgba(250,250,252,0.7);
}
.trust-logos span { display: inline-flex; align-items: center; gap: 8px; }
.trust-logos i { color: var(--indigo-light); }

/* === GENERIC SECTION === */
section { padding: 100px 0; }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.eyebrow {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--indigo);
  font-weight: 600;
  margin-bottom: 14px;
}
.section-head h2 { margin-bottom: 16px; }
.section-head p {
  font-size: 17px;
  color: var(--muted);
}

/* === FEATURES === */
.features { background: var(--bg); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}
.feature::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(99,102,241,0.30);
}
.feature:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--gradient-soft);
  display: grid; place-items: center;
  color: var(--indigo);
  font-size: 22px;
  margin-bottom: 18px;
}
.feature h3 { margin-bottom: 10px; }
.feature p { font-size: 14.5px; line-height: 1.6; }

/* === HOW IT WORKS === */
.how {
  background: var(--charcoal);
  color: #FAFAFC;
  position: relative;
}
.how .section-head h2 { color: #FAFAFC; }
.how .section-head p { color: rgba(250,250,252,0.65); }
.how-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 16px;
  align-items: stretch;
}
.step {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex; flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.step:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(99,102,241,0.40);
}
.step-num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--indigo-light);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.step h3 { margin-bottom: 10px; color: #fff; }
.step > p { font-size: 14.5px; color: rgba(250,250,252,0.7); margin-bottom: 18px; }
.step ul {
  list-style: none; padding: 0; margin: auto 0 0;
  display: flex; flex-direction: column; gap: 8px;
}
.step ul li {
  font-size: 13px;
  color: rgba(250,250,252,0.85);
  display: flex; align-items: center; gap: 8px;
}
.step ul li i { color: var(--indigo-light); font-size: 12px; }
.step-arrow {
  display: grid; place-items: center;
  color: rgba(255,255,255,0.35);
  font-size: 18px;
}

/* === USE CASES === */
.use-cases { background: var(--bg); }
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.case {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex; flex-direction: column;
}
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.case-icon {
  width: 60px; height: 60px;
  background: var(--gradient);
  border-radius: 16px;
  display: grid; place-items: center;
  color: #fff; font-size: 24px;
  margin-bottom: 22px;
  box-shadow: 0 8px 20px rgba(99,102,241,0.30);
}
.case h3 { margin-bottom: 12px; }
.case > p { font-size: 14.5px; line-height: 1.6; margin-bottom: 24px; }
.case-stat {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.case-stat strong {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--indigo);
  display: block;
  letter-spacing: -0.02em;
  line-height: 1;
}
.case-stat span { font-size: 13px; color: var(--muted); }

/* === STATS === */
.stats {
  background: linear-gradient(180deg, var(--bg) 0%, #F2F4F8 100%);
  padding: 80px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 22px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat .stat-value {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  color: var(--indigo);
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat .stat-suffix {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--indigo-light);
  margin-left: 4px;
}
.stat p { font-size: 14px; margin-top: 10px; color: var(--muted); }

/* === WHY === */
.why { background: var(--bg); padding-top: 80px; }
.why-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.why-text h2 { margin-bottom: 18px; }
.why-text > p { font-size: 16px; line-height: 1.7; margin-bottom: 22px; color: var(--muted); }
.why-text strong { color: var(--text); font-weight: 600; }
.why-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.why-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px;
  color: var(--text);
}
.why-list i { color: var(--indigo); font-size: 16px; }

.why-visual {
  display: flex; justify-content: center;
}
.server-box {
  background: var(--charcoal);
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  width: 100%; max-width: 360px;
  box-shadow: var(--shadow-lg);
  position: relative;
  text-align: center;
}
.dc-flag {
  width: 60px; height: 60px;
  margin: 0 auto 12px;
  background: var(--gradient);
  border-radius: 16px;
  display: grid; place-items: center;
  color: #fff;
  font-size: 26px;
  box-shadow: 0 8px 22px rgba(99,102,241,0.40);
}
.dc-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: #FAFAFC;
  line-height: 1.2;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.server-box::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: var(--gradient);
  z-index: -1;
  opacity: 0.6;
  filter: blur(12px);
}
.server-rack {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  margin-bottom: 8px;
  color: rgba(250,250,252,0.92);
  font-family: 'JetBrains Mono', monospace, var(--font-sans);
  font-size: 13px;
  font-weight: 500;
}
.rack-led {
  width: 8px; height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-led 2.5s infinite;
}
@keyframes pulse-led { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
.server-label {
  margin-top: 14px;
  text-align: center;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(250,250,252,0.5);
}

/* === CTA BAND === */
.cta-band { padding: 80px 0; background: var(--bg); }
.cta-card {
  background: var(--gradient);
  border-radius: 24px;
  padding: 60px 50px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(99,102,241,0.35);
}
.cta-card::before, .cta-card::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
}
.cta-card::before { top: -50%; left: -10%; width: 400px; height: 400px; background: #fff; }
.cta-card::after { bottom: -50%; right: -10%; width: 400px; height: 400px; background: #4F46E5; }
.cta-card h2 {
  position: relative;
  color: #fff;
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 14px;
}
.cta-card p {
  position: relative;
  color: rgba(255,255,255,0.92);
  font-size: 17px;
  margin-bottom: 32px;
}
.cta-buttons {
  position: relative;
  display: inline-flex; gap: 14px; flex-wrap: wrap;
  justify-content: center;
}
.cta-card .btn-primary {
  background: #fff;
  color: var(--indigo);
  box-shadow: 0 4px 14px rgba(0,0,0,0.20);
}
.cta-card .btn-primary:hover { background: var(--charcoal); color: #fff; }
.cta-card .btn-ghost {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.20);
}
.cta-card .btn-ghost:hover { background: rgba(255,255,255,0.20); }

/* === FAQ === */
.faq { background: var(--bg); }
.faq-container { max-width: 820px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item[open] { border-color: rgba(99,102,241,0.35); box-shadow: var(--shadow-sm); }
.faq-item summary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--indigo);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { content: '–'; }
.faq-item p {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
}

/* === FOOTER === */
.footer {
  background: var(--charcoal);
  color: rgba(250,250,252,0.7);
  padding: 70px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo { height: 36px; width: auto; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.6; max-width: 320px; margin-bottom: 18px; }
.social { display: flex; gap: 10px; }
.social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  display: grid; place-items: center;
  color: rgba(250,250,252,0.7);
  transition: all 0.2s;
}
.social a:hover { background: var(--gradient); color: #fff; border-color: transparent; transform: translateY(-2px); }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.footer-col a {
  display: block;
  padding: 5px 0;
  font-size: 14px;
  color: rgba(250,250,252,0.65);
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--indigo-light); }
.footer-bottom {
  padding: 22px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(250,250,252,0.5);
}
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.45;
}
.footer-vat {
  font-size: 12px;
  color: rgba(250,250,252,0.40);
  letter-spacing: 0.01em;
}
.made-in i { color: #f87171; }

/* === SCROLL REVEAL === */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: calc(var(--i, 0) * 60ms);
}
[data-reveal].in {
  opacity: 1;
  transform: none;
}

/* === RESPONSIVE === */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-cta .btn-ghost { display: none; }
  .hero { padding: 110px 0 60px; min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .how-steps { grid-template-columns: 1fr; }
  .step-arrow { transform: rotate(90deg); justify-self: center; }
  .cases-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .why-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-bottom .container { flex-direction: column; gap: 8px; align-items: center; }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .hero h1 { font-size: 36px; }
  .cta-card { padding: 40px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .mesh-blob, .floating-card, .rec-dot, .badge-pill .dot, .rack-led, .bubble.typing span { animation: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =============================================================================
   CONTACT MODAL — futuristico: backdrop blur, gradient border, glassmorphism,
   animazioni shimmer, glow su focus, success state con check animato.
   ============================================================================= */

.contact-modal {
  position: fixed; inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.contact-modal.open {
  display: flex;
  animation: modalFadeIn 0.25s ease;
}
@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }

.contact-backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 17, 21, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  cursor: pointer;
}

.contact-dialog {
  position: relative;
  display: grid;
  grid-template-columns: 320px 1fr;
  width: 100%;
  max-width: 920px;
  max-height: calc(100vh - 48px);
  background: rgba(20, 22, 30, 0.95);
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(99, 102, 241, 0.25),
    0 8px 32px rgba(0, 0, 0, 0.5);
  animation: modalSlideUp 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
/* Bordo gradient animato (futuristico) */
.contact-dialog::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(99,102,241,0.6) 0%, rgba(157,126,245,0.3) 50%, rgba(99,102,241,0.6) 100%);
  background-size: 200% 200%;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: borderShift 6s ease infinite;
}
@keyframes borderShift {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
}
@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.contact-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  color: rgba(250, 250, 252, 0.85);
  font-size: 16px;
  cursor: pointer;
  display: grid; place-items: center;
  z-index: 5;
  transition: background 0.15s ease, transform 0.15s ease;
}
.contact-close:hover { background: rgba(255, 255, 255, 0.16); transform: rotate(90deg); }

/* === Aside (left panel — gradient indigo) === */
.contact-aside {
  position: relative;
  background: linear-gradient(170deg, #0F1115 0%, #1A1D24 100%);
  padding: 38px 28px;
  display: flex;
  flex-direction: column;
  color: #FAFAFC;
  overflow: hidden;
}
.contact-aside-bg { position: absolute; inset: 0; pointer-events: none; }
.aside-blob {
  position: absolute;
  bottom: -20%; left: -30%;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(157, 126, 245, 0.55), transparent 70%);
  filter: blur(40px);
  animation: float 12s ease-in-out infinite;
}
.aside-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at top right, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at top right, black 20%, transparent 70%);
}
.contact-aside-content { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%; }
.aside-logo { height: 32px; width: auto; margin-bottom: 28px; }
.contact-aside h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: #FAFAFC;
}
.contact-aside p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(250,250,252,0.72);
  margin-bottom: 24px;
}
.aside-bullets {
  list-style: none; padding: 0; margin: auto 0 0;
  display: flex; flex-direction: column; gap: 10px;
}
.aside-bullets li {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px;
  color: rgba(250, 250, 252, 0.88);
}
.aside-bullets i {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  background: rgba(99, 102, 241, 0.20);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #9D7EF5;
  border-radius: 7px;
  font-size: 10px;
}

/* === Form panel (right) === */
.contact-form-wrap {
  background: rgba(15, 17, 21, 0.6);
  padding: 38px 36px;
  overflow-y: auto;
  max-height: calc(100vh - 48px);
  position: relative;
}
.contact-head { margin-bottom: 26px; }
.contact-head .eyebrow {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--indigo-light);
  font-weight: 600;
  margin-bottom: 10px;
}
.contact-head h2 {
  font-size: 24px;
  color: #FAFAFC;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.contact-head p {
  font-size: 14px;
  color: rgba(250, 250, 252, 0.65);
  margin: 0;
}

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; position: relative; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.field label {
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(250, 250, 252, 0.78);
  display: inline-flex; align-items: center; gap: 7px;
}
.field label i {
  color: var(--indigo-light);
  font-size: 11px;
  width: 14px;
}
.field .req { color: #f87171; font-weight: 600; }
.field .opt { color: rgba(250,250,252,0.4); font-weight: 400; font-size: 11px; }

.field input,
.field textarea {
  font-family: var(--font-sans);
  font-size: 14px;
  width: 100%;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  color: #FAFAFC;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  outline: none;
}
.field textarea {
  resize: vertical;
  min-height: 70px;
  line-height: 1.5;
}
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(250, 250, 252, 0.30);
}
.field input:focus,
.field textarea:focus {
  border-color: rgba(99, 102, 241, 0.65);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.18);
}
.field.has-error input,
.field.has-error textarea {
  border-color: rgba(248, 113, 113, 0.65);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.18);
}

.field-err {
  display: none;
  font-size: 12px;
  color: #fca5a5;
  margin-top: 2px;
}
.field.has-error .field-err {
  display: block;
  animation: errorShake 0.35s ease;
}
@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

.field-hint {
  font-size: 12px;
  color: rgba(250, 250, 252, 0.5);
  margin: -4px 0 0;
  display: inline-flex; align-items: center; gap: 6px;
}
.field-hint i { color: var(--indigo-light); }

/* Honeypot — invisibile per umani, perfettamente raggiungibile dai bot */
.hp-field {
  position: absolute !important;
  left: -10000px;
  top: -10000px;
  opacity: 0;
  pointer-events: none;
  height: 0; width: 0;
}

.contact-submit {
  margin-top: 6px;
  display: flex; flex-direction: column; gap: 10px;
}
.contact-submit .btn {
  position: relative;
  width: 100%;
  justify-content: center;
  overflow: hidden;
}
.contact-submit .btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transition: left 0.6s ease;
}
.contact-submit .btn:hover::before { left: 100%; }

.btn-loader {
  display: none;
  gap: 4px;
  align-items: center;
  justify-content: center;
}
.btn-loader span {
  width: 6px; height: 6px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  animation: btnDotPulse 1.2s infinite;
}
.btn-loader span:nth-child(2) { animation-delay: 0.18s; }
.btn-loader span:nth-child(3) { animation-delay: 0.36s; }
@keyframes btnDotPulse {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.85); }
  40% { opacity: 1; transform: scale(1.15); }
}
.contact-submit .btn.is-loading .btn-label { display: none; }
.contact-submit .btn.is-loading .btn-loader { display: inline-flex; }
.contact-submit .btn.is-loading { pointer-events: none; }

.privacy-note {
  font-size: 11.5px;
  color: rgba(250, 250, 252, 0.45);
  text-align: center;
  margin: 4px 0 0;
  line-height: 1.5;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.privacy-note i { color: var(--indigo-light); }

/* === Success state === */
.contact-success {
  text-align: center;
  padding: 30px 0 10px;
  animation: modalFadeIn 0.4s ease;
}
.success-icon {
  display: grid; place-items: center;
  margin: 0 auto 20px;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.30);
}
.success-icon svg path,
.success-icon svg circle {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawCheck 0.9s ease forwards 0.1s;
}
.success-icon svg path { animation-delay: 0.5s; }
@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}
.contact-success h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: #FAFAFC;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.contact-success p {
  font-size: 14px;
  color: rgba(250, 250, 252, 0.7);
  margin: 0 0 22px;
  max-width: 320px;
  margin-left: auto; margin-right: auto;
}
.contact-success .btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #FAFAFC;
  border-color: rgba(255, 255, 255, 0.12);
}
.contact-success .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* === Body lock when modal open === */
body.no-scroll {
  overflow: hidden;
}

/* === Responsive modal === */
@media (max-width: 760px) {
  .contact-modal { padding: 12px; }
  /* Layout flex-column: aside fissa in alto, form scrollabile sotto.
     La dialog stessa NON scrolla (così il bottone chiudi resta visibile in alto). */
  .contact-dialog {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    max-height: calc(100vh - 24px);
  }
  .contact-aside {
    flex-shrink: 0;
    padding: 22px 24px 20px;
  }
  .aside-logo { height: 28px; margin-bottom: 14px; }
  .contact-aside h3 { font-size: 18px; margin-bottom: 6px; }
  .contact-aside p { font-size: 13px; margin-bottom: 0; }
  .aside-bullets { display: none; }
  /* Il form-wrap diventa il vero scroll container interno. */
  .contact-form-wrap {
    flex: 1 1 auto;
    min-height: 0;
    padding: 22px 22px 28px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-height: none;
  }
  .contact-head { margin-bottom: 18px; }
  .contact-head h2 { font-size: 20px; }
  .field-row { grid-template-columns: 1fr; }
}

/* =============================================================================
   ===  ESTENSIONI v2  =========================================================
   Nuove sezioni (workflow a mappe, piattaforma, simulatore, integrazioni,
   sicurezza, timeline) + rifiniture grafiche. Caricato dopo il resto del
   file: le regole qui sotto vincono sugli equivalenti precedenti.
   ============================================================================= */

/* === UTILITY: skip link, barra di progresso, torna su === */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--charcoal);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 10px 0;
  font-size: 14px;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 60;
  background: transparent;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gradient);
  box-shadow: 0 0 12px rgba(99,102,241,0.6);
  transition: width 0.1s linear;
}

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 45;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 15px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--gradient); color: #fff; border-color: transparent; }

/* === NAV: tag "novità", link attivo, menu mobile === */
.nav-tag {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gradient);
  color: #fff;
  vertical-align: 1px;
}
.nav-links a.active { color: #fff; }
.nav-links a { position: relative; }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
}

/* === HERO: mini-stats, waveform, chip fase, 4ª floating card === */
.hero-mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
}
.hero-mini-stats > div {
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.09);
  backdrop-filter: blur(6px);
  min-width: 132px;
}
.hero-mini-stats dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(250,250,252,0.52);
  margin-bottom: 4px;
}
.hero-mini-stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: #fff;
}

.waveform {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  height: 22px;
  padding: 0 14px 10px;
}
.waveform span {
  flex: 1;
  min-width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--indigo-light), var(--indigo));
  opacity: 0.75;
  animation: waveBar 1.1s ease-in-out infinite;
}
.waveform span:nth-child(3n) { animation-delay: -0.2s; }
.waveform span:nth-child(3n+1) { animation-delay: -0.5s; }
.waveform span:nth-child(4n) { animation-delay: -0.8s; }
@keyframes waveBar {
  0%, 100% { height: 18%; }
  50% { height: 100%; }
}

.phase-chip {
  margin: 0 14px 10px;
  padding: 7px 11px;
  border-radius: 10px;
  background: rgba(99,102,241,0.14);
  border: 1px solid rgba(157,126,245,0.3);
  font-size: 11px;
  color: rgba(250,250,252,0.72);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
}
.phase-chip i { color: var(--indigo-light); font-size: 10px; }
.phase-chip strong { color: #fff; font-family: var(--font-display); font-size: 11.5px; }

.card-flow { bottom: 36%; right: -14%; animation: float-card 6s infinite ease-in-out; animation-delay: -4.5s; }

/* === TRUST BAR: marquee scorrevole === */
.marquee {
  position: relative;
  overflow: hidden;
  margin-top: 18px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
.marquee-group span { display: inline-flex; align-items: center; gap: 8px; }
.marquee-group i { color: var(--indigo); }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* === SECTION HEAD su fondo scuro === */
.section-head--light h2 { color: #FAFAFC; }
.section-head--light p { color: rgba(250,250,252,0.66); }
.section-head--light strong { color: #fff; font-weight: 600; }
.eyebrow--new {
  background: rgba(157,126,245,0.16);
  border: 1px solid rgba(157,126,245,0.34);
  color: #C4B5FD;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.eyebrow--new { padding: 6px 13px; border-radius: 999px; letter-spacing: 0.14em; }

/* =============================================================================
   WORKFLOW A MAPPE
   ============================================================================= */
.workflow {
  position: relative;
  background: linear-gradient(180deg, #0F1115 0%, #15171F 55%, #0F1115 100%);
  color: #FAFAFC;
  overflow: hidden;
}
.workflow .container { position: relative; z-index: 2; }
.wf-bg { position: absolute; inset: 0; pointer-events: none; }
.wf-blob {
  position: absolute;
  top: -18%; left: 50%;
  transform: translateX(-50%);
  width: 820px; height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.30), transparent 68%);
  filter: blur(70px);
}
.wf-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 85% 65% at 50% 35%, #000, transparent);
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 35%, #000, transparent);
}

/* --- Il pannello canvas --- */
.fmap {
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.10);
  background: linear-gradient(180deg, rgba(26,29,36,0.92), rgba(16,18,24,0.92));
  box-shadow: 0 30px 80px rgba(0,0,0,0.45), 0 0 0 1px rgba(99,102,241,0.08);
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.fmap-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.025);
  flex-wrap: wrap;
}
.fmap-toolbar-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  color: #fff;
}
.fmap-toolbar-title i { color: var(--indigo-light); }
.fmap-campaign {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(99,102,241,0.16);
  border: 1px solid rgba(157,126,245,0.26);
  color: #C4B5FD;
}
.fmap-toolbar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.fmap-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(250,250,252,0.72);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
}
.fmap-btn i { font-size: 10px; }
.fmap-btn--primary { background: var(--gradient); color: #fff; border-color: transparent; }

.fmap-body { display: grid; grid-template-columns: minmax(0,1fr) 290px; }
.fmap-stage {
  position: relative;
  padding: 18px;
  background-image: radial-gradient(rgba(255,255,255,0.075) 1px, transparent 1px);
  background-size: 22px 22px;
  overflow-x: auto;
  overflow-y: hidden;
}
.fmap-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 1040 / 580;
}
.fmap-edges { position: absolute; inset: 0; width: 100%; height: 100%; }
.fm-edge {
  fill: none;
  stroke: #8B8FF5;
  stroke-width: 2;
  opacity: 0.85;
  vector-effect: non-scaling-stroke;
}
.fm-edge--muted { stroke: #6B7280; opacity: 0.65; }
.fm-edge--dashed { stroke: #6B7280; stroke-dasharray: 5 5; opacity: 0.55; }

/* --- Nodi --- */
.fm-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 20.2%;
  min-width: 170px;
  padding: 11px 13px 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, #212530, #191C24);
  border: 1px solid rgba(255,255,255,0.11);
  box-shadow: 0 10px 26px rgba(0,0,0,0.38);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.fm-node:hover {
  transform: translateY(-3px);
  border-color: rgba(157,126,245,0.5);
  box-shadow: 0 16px 36px rgba(99,102,241,0.26);
  z-index: 5;
}
.fm-node header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}
.fm-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}
.fm-node p {
  font-size: 11.5px;
  line-height: 1.45;
  color: rgba(250,250,252,0.6);
  margin: 0;
}
.fm-badge {
  font-size: 8.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  border-radius: 5px;
  white-space: nowrap;
}
.fm-badge--start { background: rgba(99,102,241,0.22); color: #A5B4FC; border: 1px solid rgba(99,102,241,0.4); }
.fm-badge--end   { background: rgba(255,255,255,0.08); color: rgba(250,250,252,0.6); border: 1px solid rgba(255,255,255,0.14); }
.fm-badge--rag   { background: rgba(20,184,166,0.16); color: #5EEAD4; border: 1px solid rgba(20,184,166,0.35); }
.fm-badge--action{ background: rgba(245,158,11,0.16); color: #FCD34D; border: 1px solid rgba(245,158,11,0.34); }

.fm-node--start { border-color: rgba(99,102,241,0.42); }
.fm-node--selected {
  border-color: var(--indigo-light);
  box-shadow: 0 0 0 3px rgba(157,126,245,0.18), 0 16px 38px rgba(99,102,241,0.3);
}
.fm-node--end { border-left: 3px solid #34D399; }
.fm-node--end-muted { border-left: 3px solid #6B7280; }

.fm-collect { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.fm-collect span {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9.5px;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(99,102,241,0.14);
  border: 1px solid rgba(99,102,241,0.26);
  color: #C7D2FE;
}
.fm-outcome {
  margin-top: 8px;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(250,250,252,0.55);
}
.fm-outcome i { font-size: 10px; }
.fm-outcome--ok { color: #6EE7B7; }

.fm-handles { position: absolute; inset: 0; pointer-events: none; }
.fm-handles span {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #0F1115;
  border: 2px solid var(--indigo-light);
  top: 50%;
}
.fm-handles span:first-child { left: -5px; transform: translateY(-50%); }
.fm-handles span:last-child { right: -5px; transform: translateY(-50%); }
.fm-node--end .fm-handles span,
.fm-node--end-muted .fm-handles span { left: -5px; right: auto; }

/* --- Etichette archi --- */
.fm-elabel {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  background: rgba(15,17,21,0.92);
  border: 1px solid rgba(99,102,241,0.4);
  color: #C7D2FE;
  z-index: 3;
}
.fm-elabel i { font-size: 9px; opacity: 0.85; }
.fm-elabel--muted {
  border-color: rgba(255,255,255,0.16);
  color: rgba(250,250,252,0.55);
}

/* --- Sidebar dettaglio fase --- */
.fmap-side {
  border-left: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.fmap-side-head { display: flex; flex-direction: column; gap: 3px; }
.fmap-side-eyebrow {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(250,250,252,0.42);
  font-weight: 600;
}
.fmap-side-head strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
  color: #fff;
}
.fmap-side-field { display: flex; flex-direction: column; gap: 7px; }
.fmap-side-field label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: rgba(250,250,252,0.44);
}
.fmap-side-box {
  padding: 9px 11px;
  border-radius: 9px;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(250,250,252,0.7);
}
.fmap-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.fmap-chips span {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(250,250,252,0.5);
}
.fmap-chips span.on {
  background: rgba(99,102,241,0.2);
  border-color: rgba(157,126,245,0.45);
  color: #C7D2FE;
}
.fmap-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  color: rgba(250,250,252,0.66);
}
.fmap-toggle .sw {
  flex: 0 0 auto;
  width: 28px; height: 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  position: relative;
  transition: background 0.2s;
}
.fmap-toggle .sw::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}
.fmap-toggle .sw.on { background: var(--gradient); }
.fmap-toggle .sw.on::after { transform: translateX(12px); }
.fmap-rule, .fmap-action {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(0,0,0,0.26);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 11px;
  color: rgba(250,250,252,0.68);
}
.fmap-rule em {
  font-style: normal;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--indigo-light);
}
.fmap-rule b {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #fff;
  font-weight: 600;
}
.fmap-rule i { font-size: 9px; color: rgba(250,250,252,0.4); }
.fmap-action i { color: #FCD34D; font-size: 11px; }

/* --- Legenda + caption --- */
.fmap-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 13px 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.2);
  font-size: 11.5px;
  color: rgba(250,250,252,0.6);
}
.fmap-legend-label {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-weight: 700;
  color: rgba(250,250,252,0.38);
}
.fmap-legend span:not(.fmap-legend-label) { display: inline-flex; align-items: center; gap: 6px; }
.fmap-legend i { color: var(--indigo-light); font-size: 10px; }
.fmap-caption {
  margin-top: 12px;
  font-size: 12px;
  color: rgba(250,250,252,0.4);
  display: flex;
  align-items: center;
  gap: 7px;
  justify-content: center;
}

/* --- Card dei vantaggi del workflow --- */
.wf-grid-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.wf-card {
  padding: 26px 24px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.09);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.wf-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(157,126,245,0.36);
}
.wf-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: var(--gradient);
  color: #fff;
  font-size: 17px;
  box-shadow: 0 6px 18px rgba(99,102,241,0.34);
}
.wf-card h3 { color: #fff; margin-bottom: 10px; font-size: 18px; }
.wf-card p { font-size: 14px; line-height: 1.62; color: rgba(250,250,252,0.62); }

.wf-note {
  margin-top: 36px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(99,102,241,0.14), rgba(157,126,245,0.08));
  border: 1px solid rgba(157,126,245,0.26);
}
.wf-note i { color: #FCD34D; font-size: 18px; margin-top: 2px; }
.wf-note p { font-size: 14.5px; line-height: 1.65; color: rgba(250,250,252,0.72); }
.wf-note strong { color: #fff; font-weight: 600; }

/* =============================================================================
   FEATURES — gruppi tematici
   ============================================================================= */
.feat-group { margin: 54px 0 26px; }
.features .feat-group:first-of-type { margin-top: 0; }
.feat-group-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  margin-bottom: 8px;
}
.feat-group-num {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 9px;
  border-radius: 7px;
  background: var(--gradient-soft);
  border: 1px solid rgba(99,102,241,0.22);
  color: var(--indigo);
}
.feat-group-desc { font-size: 15px; }
.feature--accent {
  background: linear-gradient(160deg, rgba(99,102,241,0.07), rgba(157,126,245,0.03));
  border-color: rgba(99,102,241,0.3);
}
.feature--accent .feature-icon { box-shadow: 0 8px 22px rgba(99,102,241,0.34); }
.feature a { color: var(--indigo); font-weight: 600; border-bottom: 1px solid rgba(99,102,241,0.3); }
.feature a:hover { border-bottom-color: var(--indigo); }
.feat-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  background: var(--gradient);
  color: #fff;
  vertical-align: 2px;
}

/* =============================================================================
   PIATTAFORMA — sala di controllo con tab
   ============================================================================= */
.platform { background: var(--surface-2); }
.pf-wrap { max-width: 1060px; margin: 0 auto; }
.pf-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 6px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  width: fit-content;
  margin: 0 auto 22px;
}
.pf-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.pf-tab i { font-size: 12px; }
.pf-tab:hover { background: var(--gradient-soft); color: var(--indigo); }
.pf-tab.is-active { background: var(--gradient); color: #fff; box-shadow: 0 4px 14px rgba(99,102,241,0.3); }

.pf-screen {
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, #1A1D24, #12141A);
  box-shadow: 0 28px 70px rgba(15,17,21,0.32);
  overflow: hidden;
  color: #FAFAFC;
}
.pf-panel { padding: 20px 22px 24px; animation: pfFade 0.3s ease; }
.pf-panel[hidden] { display: none; }
@keyframes pfFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.pf-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.pf-panel-head h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.pf-panel-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 11.5px; color: rgba(250,250,252,0.44); }
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 0 4px rgba(52,211,153,0.18);
  animation: pulse-dot 1.6s infinite;
}

/* --- Tabella generica --- */
.pf-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.pf-table th {
  text-align: left;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: rgba(250,250,252,0.38);
  padding: 0 10px 9px 0;
  white-space: nowrap;
}
.pf-table td {
  padding: 10px 10px 10px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: rgba(250,250,252,0.72);
  vertical-align: middle;
}
.pf-table tr.is-selected td { background: rgba(99,102,241,0.08); }
.pf-table code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  color: #fff;
}
.pf-msg { color: rgba(250,250,252,0.5); font-style: italic; }

.pf-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.pf-state::before { content: ''; width: 6px; height: 6px; border-radius: 50%; }
.pf-state--talk { background: rgba(52,211,153,0.14); color: #6EE7B7; }
.pf-state--talk::before { background: #34D399; }
.pf-state--dial { background: rgba(251,191,36,0.14); color: #FCD34D; }
.pf-state--dial::before { background: #FBBF24; }

/* --- Badge esito: colore SEMPRE accompagnato da icona + testo --- */
.pf-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid transparent;
}
.pf-badge i { font-size: 10px; }
.pf-badge--ok      { background: rgba(52,211,153,0.13); color: #6EE7B7; border-color: rgba(52,211,153,0.3); }
.pf-badge--warn    { background: rgba(251,191,36,0.13); color: #FCD34D; border-color: rgba(251,191,36,0.3); }
.pf-badge--neutral { background: rgba(255,255,255,0.06); color: rgba(250,250,252,0.6); border-color: rgba(255,255,255,0.12); }
.pf-badge--crit    { background: rgba(248,113,113,0.13); color: #FCA5A5; border-color: rgba(248,113,113,0.3); }

/* --- Transcript live --- */
.pf-transcript {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.07);
}
.pf-transcript-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 11px;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: rgba(250,250,252,0.38);
}
.pf-phase {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(99,102,241,0.16);
  border: 1px solid rgba(157,126,245,0.3);
  color: #C7D2FE;
}
.pf-line {
  font-size: 12.5px;
  line-height: 1.55;
  padding: 5px 0;
  color: rgba(250,250,252,0.74);
}
.pf-line b {
  display: inline-block;
  min-width: 62px;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-right: 8px;
  vertical-align: 1px;
}
.pf-line--ai b { color: var(--indigo-light); }
.pf-line--user b { color: rgba(250,250,252,0.42); }
.pf-collected, .pf-collected-label { font-size: 11px; }
.pf-collected {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.pf-collected-label {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: rgba(250,250,252,0.38);
  margin-right: 2px;
}
.pf-collected span:not(.pf-collected-label) {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(250,250,252,0.6);
}
.pf-collected span.on {
  background: rgba(99,102,241,0.18);
  border-color: rgba(157,126,245,0.42);
  color: #C7D2FE;
}

/* --- KPI: stat tiles --- */
.pf-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.pf-tile {
  padding: 14px 15px;
  border-radius: 13px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pf-tile-label {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-weight: 700;
  color: rgba(250,250,252,0.4);
}
.pf-tile strong {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.pf-delta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
}
.pf-delta i { font-size: 9px; }
.pf-delta--up { color: #6EE7B7; }
.pf-delta--flat { color: rgba(250,250,252,0.44); }

/* --- KPI: grafici --- */
.pf-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pf-chart {
  margin: 0;
  padding: 16px;
  border-radius: 14px;
  background: rgba(0,0,0,0.26);
  border: 1px solid rgba(255,255,255,0.07);
}
.pf-chart figcaption {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(250,250,252,0.72);
  margin-bottom: 14px;
}

/* Barre verticali: una sola serie, un solo colore, estremità arrotondate 4px,
   gap 2px fra le barre, griglia recessiva. */
.pf-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 132px;
  padding-top: 6px;
  position: relative;
  background-image: repeating-linear-gradient(
    to top,
    rgba(255,255,255,0.055) 0 1px,
    transparent 1px 25%
  );
}
.pf-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  height: 100%;
  gap: 6px;
}
.pf-bar > span {
  display: block;
  height: var(--h);
  border-radius: 4px 4px 0 0;
  background: rgba(99,102,241,0.55);
  box-shadow: inset 0 0 0 1px rgba(157,126,245,0.3);
  transition: background 0.2s;
}
.pf-bar:hover > span { background: rgba(99,102,241,0.8); }
.pf-bar.is-peak > span { background: var(--gradient); box-shadow: 0 0 14px rgba(99,102,241,0.4); }
.pf-bar small {
  text-align: center;
  font-size: 9.5px;
  color: rgba(250,250,252,0.4);
  letter-spacing: 0.04em;
}

/* Barre orizzontali: etichetta testuale sempre presente (identità mai solo colore) */
.pf-hbars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.pf-hbars li {
  display: grid;
  grid-template-columns: 96px minmax(0,1fr) 36px;
  align-items: center;
  gap: 10px;
}
.pf-hbar-label { font-size: 11px; color: rgba(250,250,252,0.6); }
.pf-hbar {
  display: block;
  height: 9px;
  border-radius: 4px;
  background: rgba(255,255,255,0.055);
  overflow: hidden;
}
.pf-hbar i {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: 4px;
  background: rgba(99,102,241,0.55);
}
.pf-hbar.is-peak i { background: var(--gradient); }
.pf-hbars b {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: rgba(250,250,252,0.78);
  text-align: right;
}

/* --- Calendario --- */
.pf-cal { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.pf-cal-col {
  padding: 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 150px;
}
.pf-cal-day {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: rgba(250,250,252,0.42);
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.pf-appt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 9px;
  border-radius: 9px;
  background: rgba(99,102,241,0.14);
  border-left: 3px solid var(--indigo);
  font-size: 11.5px;
  color: rgba(250,250,252,0.82);
}
.pf-appt b { font-family: var(--font-display); font-size: 12px; color: #fff; }
.pf-appt small { font-size: 9.5px; color: rgba(250,250,252,0.5); }
.pf-appt--new { background: rgba(52,211,153,0.14); border-left-color: #34D399; }
.pf-appt--moved { background: rgba(251,191,36,0.12); border-left-color: #FBBF24; }
.pf-appt--canceled {
  background: rgba(255,255,255,0.04);
  border-left-color: #6B7280;
  opacity: 0.6;
}
.pf-appt--canceled b { text-decoration: line-through; color: rgba(250,250,252,0.6); }
.pf-cal-col--blocked { background: rgba(255,255,255,0.015); border-style: dashed; }
.pf-blocked {
  margin: auto 0;
  text-align: center;
  font-size: 11px;
  color: rgba(250,250,252,0.38);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.pf-blocked i { font-size: 14px; }

.pf-footnote {
  margin-top: 14px;
  font-size: 11.5px;
  color: rgba(250,250,252,0.44);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}
.pf-footnote i { margin-top: 2px; color: var(--indigo-light); }
.pf-disclaimer {
  margin-top: 12px;
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
}

/* =============================================================================
   TIMELINE ONBOARDING (dentro la sezione "Come funziona", fondo scuro)
   ============================================================================= */
.timeline {
  margin-top: 72px;
  padding: 36px 32px 32px;
  border-radius: 22px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.09);
}
.timeline-head { text-align: center; margin-bottom: 36px; }
.timeline-head h3 { color: #fff; font-size: 24px; }
.timeline-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  position: relative;
}
.timeline-steps::before {
  content: '';
  position: absolute;
  top: 7px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: linear-gradient(90deg, rgba(99,102,241,0.65), rgba(157,126,245,0.25));
}
.timeline-steps li { position: relative; padding-top: 30px; }
.tl-dot {
  position: absolute;
  top: 0; left: 0;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.18);
}
.tl-dot--end { background: #34D399; box-shadow: 0 0 0 4px rgba(52,211,153,0.2); }
.timeline-steps strong {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  color: #fff;
  margin-bottom: 6px;
}
.timeline-steps p { font-size: 13.5px; line-height: 1.6; color: rgba(250,250,252,0.6); }

/* =============================================================================
   SIMULATORE
   ============================================================================= */
.sim { background: var(--bg); }
.sim-row {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 60px;
  align-items: center;
}
.sim-text h2 { margin-bottom: 18px; }
.sim-text > p { font-size: 16px; line-height: 1.7; margin-bottom: 18px; }
.sim-text strong { color: var(--text); font-weight: 600; }
.sim-list { list-style: none; padding: 0; margin: 24px 0 28px; display: flex; flex-direction: column; gap: 10px; }
.sim-list li { display: flex; align-items: center; gap: 11px; font-size: 14.5px; color: var(--text); }
.sim-list i { color: var(--indigo); font-size: 15px; }

.sim-window {
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, #1A1D24, #12141A);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 26px 64px rgba(15,17,21,0.3);
  color: #FAFAFC;
}
.sim-window-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.025);
}
.sim-dots { display: inline-flex; gap: 5px; }
.sim-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.16); }
.sim-title { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: #fff; }
.sim-flag {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(251,191,36,0.14);
  border: 1px solid rgba(251,191,36,0.3);
  color: #FCD34D;
}
.sim-statebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  font-size: 11.5px;
  color: rgba(250,250,252,0.6);
  background: rgba(99,102,241,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sim-statebar i { color: var(--indigo-light); font-size: 10px; margin-right: 5px; }
.sim-statebar strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #fff; }
.sim-turn { font-size: 10.5px; color: rgba(250,250,252,0.4); }
.sim-chat { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.sim-msg {
  max-width: 88%;
  padding: 9px 12px;
  border-radius: 13px;
  font-size: 12.5px;
  line-height: 1.55;
}
.sim-msg b {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-weight: 700;
  margin-bottom: 4px;
}
.sim-msg--bot {
  align-self: flex-start;
  background: rgba(99,102,241,0.14);
  border: 1px solid rgba(157,126,245,0.22);
  border-bottom-left-radius: 5px;
  color: rgba(250,250,252,0.82);
}
.sim-msg--bot b { color: var(--indigo-light); }
.sim-msg--you {
  align-self: flex-end;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.09);
  border-bottom-right-radius: 5px;
  color: rgba(250,250,252,0.74);
}
.sim-msg--you b { color: rgba(250,250,252,0.4); }
.sim-collected {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.sim-collected-label {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: rgba(250,250,252,0.38);
}
.sim-collected .chip {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(250,250,252,0.52);
}
.sim-collected .chip.on {
  background: rgba(99,102,241,0.18);
  border-color: rgba(157,126,245,0.42);
  color: #C7D2FE;
}
.sim-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 16px 16px;
  padding: 11px 14px;
  border-radius: 11px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.09);
  font-size: 12.5px;
  color: rgba(250,250,252,0.34);
}
.sim-input i { color: var(--indigo-light); }

/* =============================================================================
   STATS — banda scura
   ============================================================================= */
.stats {
  position: relative;
  background: linear-gradient(135deg, #0F1115 0%, #1A1D29 50%, #0F1115 100%);
  color: #FAFAFC;
  overflow: hidden;
  border-top: 0;
}
.stats .container { position: relative; z-index: 2; }
.stats-bg { position: absolute; inset: 0; pointer-events: none; }
.stats-blob {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 900px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.26), transparent 70%);
  filter: blur(80px);
}
.stats-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.stats-head h2 { color: #fff; }
.stats .stat {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: none;
}
.stats .stat:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.07);
  border-color: rgba(157,126,245,0.34);
  box-shadow: 0 16px 40px rgba(99,102,241,0.2);
}
.stats .stat p { color: rgba(250,250,252,0.6); }

/* =============================================================================
   INTEGRAZIONI
   ============================================================================= */
.integrations { background: var(--surface-2); }
.integ-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 1000px;
  margin: 0 auto;
}
.integ {
  display: flex;
  gap: 18px;
  padding: 26px 26px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.integ:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(99,102,241,0.3);
}
.integ-icon {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--gradient-soft);
  border: 1px solid rgba(99,102,241,0.2);
  color: var(--indigo);
  font-size: 18px;
}
.integ h3 { font-size: 18px; margin-bottom: 9px; }
.integ p { font-size: 14px; line-height: 1.62; }

/* =============================================================================
   WHY — riga badge conformità
   ============================================================================= */
.compliance-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}
.compliance-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.compliance-row i { color: var(--indigo); font-size: 12px; }

/* =============================================================================
   SICUREZZA & GOVERNANCE
   ============================================================================= */
.security {
  position: relative;
  background: linear-gradient(180deg, #0F1115, #15171F);
  color: #FAFAFC;
  overflow: hidden;
}
.security .container { position: relative; z-index: 2; }
.sec-bg { position: absolute; inset: 0; pointer-events: none; }
.sec-blob {
  position: absolute;
  bottom: -25%; right: -10%;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(157,126,245,0.22), transparent 68%);
  filter: blur(80px);
}
.sec-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000, transparent);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000, transparent);
}
.sec-grid-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.sec-card {
  padding: 24px 20px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.09);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.sec-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(157,126,245,0.34);
}
.sec-card > i {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  margin-bottom: 14px;
  background: rgba(99,102,241,0.16);
  border: 1px solid rgba(99,102,241,0.28);
  color: var(--indigo-light);
  font-size: 15px;
}
.sec-card h3 { color: #fff; font-size: 16px; margin-bottom: 9px; }
.sec-card p { font-size: 13.5px; line-height: 1.6; color: rgba(250,250,252,0.6); }

/* =============================================================================
   CTA + FAQ + FOOTER — rifiniture
   ============================================================================= */
.cta-note {
  margin-top: 22px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.78);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.faq-cta {
  margin-top: 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.faq-cta p { font-size: 15px; }
.footer-mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(250,250,252,0.86);
}
.footer-mail i { color: var(--indigo-light); }
.footer-mail:hover { color: #fff; }

/* Select nel form di contatto — stesso trattamento degli input */
.field select {
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: #FAFAFC;
  font-family: var(--font-sans);
  font-size: 14px;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239D7EF5' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 38px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field select:focus {
  outline: none;
  border-color: var(--indigo-light);
  box-shadow: 0 0 0 3px rgba(157,126,245,0.18);
}
.field select option { background: #1A1D24; color: #FAFAFC; }

/* =============================================================================
   MENU MOBILE (sostituisce gli stili inline che prima erano nel JS)
   ============================================================================= */
@media (max-width: 980px) {
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 14px 24px 20px;
    background: rgba(15,17,21,0.97);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 18px 40px rgba(0,0,0,0.4);
  }
  .nav-links.open a {
    padding: 11px 0;
    font-size: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .nav-links.open a:last-child { border-bottom: 0; }
  .nav-links.open a.active::after { display: none; }
}

/* =============================================================================
   RESPONSIVE — nuove sezioni
   ============================================================================= */
@media (max-width: 1080px) {
  .wf-grid-cards { grid-template-columns: repeat(2, 1fr); }
  .sec-grid-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1000px) {
  .fmap-body { grid-template-columns: 1fr; }
  .fmap-side { border-left: 0; border-top: 1px solid rgba(255,255,255,0.08); }
}
@media (max-width: 980px) {
  .hero-mini-stats > div { flex: 1 1 140px; min-width: 0; }
  .sim-row { grid-template-columns: 1fr; gap: 40px; }
  .integ-grid { grid-template-columns: 1fr; }
  .timeline { padding: 30px 22px 26px; }
  .timeline-steps { grid-template-columns: repeat(2, 1fr); gap: 26px 22px; }
  .timeline-steps::before { display: none; }
  .pf-charts { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  /* La mappa resta leggibile: si scorre in orizzontale invece di schiacciarsi */
  .fmap-canvas { min-width: 980px; }
  .pf-cal { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .pf-tabs { width: 100%; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .pf-tab { flex: 0 0 auto; padding: 9px 14px; font-size: 13px; }
  .pf-tiles { grid-template-columns: repeat(2, 1fr); }
  .pf-hide-sm { display: none; }
  .pf-table { font-size: 12px; }
  .pf-cal { grid-template-columns: repeat(2, 1fr); }
  .pf-panel { padding: 16px 14px 20px; }
  .pf-hbars li { grid-template-columns: 82px minmax(0,1fr) 32px; gap: 8px; }
  .fmap-toolbar-actions .fmap-btn:not(.fmap-btn--primary) { display: none; }
}
@media (max-width: 680px) {
  .wf-grid-cards { grid-template-columns: 1fr; }
  .sec-grid-cards { grid-template-columns: 1fr; }
  .timeline-steps { grid-template-columns: 1fr; gap: 22px; }
  .integ { flex-direction: column; gap: 14px; }
  .marquee-group { gap: 26px; padding-right: 26px; font-size: 13px; }
  .stats-head { margin-bottom: 34px; }
  .compliance-row span { font-size: 11.5px; padding: 6px 11px; }
  .to-top { right: 14px; bottom: 14px; width: 42px; height: 42px; }
}
@media (max-width: 560px) {
  .pf-cal { grid-template-columns: 1fr; }
  .pf-cal-col { min-height: 0; }
  .hero-mini-stats { gap: 8px; }
  .hero-mini-stats dd { font-size: 17px; }
  .fmap-legend { gap: 7px 13px; font-size: 11px; }
}

/* =============================================================================
   RISPETTO DELLE PREFERENZE DI MOVIMENTO
   ============================================================================= */
@media (prefers-reduced-motion: reduce) {
  .marquee-track,
  .waveform span,
  .live-dot,
  .stats-blob,
  .wf-blob,
  .sec-blob { animation: none !important; }
  .marquee-track { transform: none; }
  .pf-panel { animation: none; }
  .scroll-progress span { transition: none; }
  .to-top { transition: none; }
}

/* =============================================================================
   FOCUS VISIBILE — accessibilità da tastiera
   ============================================================================= */
.btn:focus-visible,
.pf-tab:focus-visible,
.to-top:focus-visible,
.faq-item summary:focus-visible,
.nav-links a:focus-visible,
.footer-col a:focus-visible,
.social a:focus-visible {
  outline: 2px solid var(--indigo-light);
  outline-offset: 3px;
  border-radius: 8px;
}

/* =============================================================================
   CORREZIONI HERO (dopo verifica a schermo)
   ============================================================================= */
/* Contenuto centrato verticalmente: niente vuoto in fondo sugli schermi alti */
.hero { display: flex; align-items: center; }
.hero-inner { width: 100%; }

/* Il waveform vive già dentro il padding di .phone-screen: niente padding doppio.
   Altezza di base visibile anche a animazione ferma. */
.waveform {
  height: 26px;
  padding: 0;
  margin: 0;
  gap: 3px;
}
.waveform span { height: 42%; }
.phase-chip { margin: 0; }

/* Le quattro card fluttuanti non si sovrappongono più fra loro */
.card-stt  { top: 4%;    left: -10%;  }
.card-llm  { top: 30%;   right: -16%; }
.card-tts  { bottom: 14%; left: -8%;  }
.card-flow { bottom: 2%;  right: -12%; top: auto; }
/* Barre del waveform sottili e centrate, non blocchi */
.waveform { justify-content: center; gap: 4px; }
.waveform span { flex: 0 0 3px; max-width: 3px; min-width: 3px; }
/* La card "Workflow a mappe" non copre più i metrics del telefono */
.card-flow { bottom: -2%; right: -18%; }

/* Mappa: canvas più largo e nodi più stretti, così le etichette delle
   condizioni stanno negli spazi fra una fase e l'altra senza coprirle. */
.fmap-canvas { aspect-ratio: 1200 / 580; }
.fm-node { width: 15.9%; min-width: 162px; }
@media (max-width: 1000px) { .fmap-canvas { min-width: 1120px; } }
/* Etichette delle condizioni più compatte: entrano nei varchi fra le fasi */
.fm-elabel { font-size: 9.5px; padding: 2px 7px; gap: 4px; letter-spacing: -0.005em; }
.fm-elabel i { font-size: 8px; }
/* Barre più sottili: la lunghezza porta il dato, non lo spessore */
.pf-bars { gap: 10px; justify-content: space-between; }
.pf-bar { max-width: 38px; margin: 0 auto; }
/* Timeline: il filo si ferma all'ultimo pallino invece di sforare */
.timeline-steps::before { display: none; }
.timeline-steps li::after {
  content: '';
  position: absolute;
  top: 7px;
  left: 26px;
  right: -22px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(99,102,241,0.6), rgba(157,126,245,0.3));
}
.timeline-steps li:last-child::after { display: none; }
@media (max-width: 980px) {
  .timeline-steps li:nth-child(2n)::after { display: none; }
}
@media (max-width: 680px) {
  .timeline-steps li::after { display: none; }
}
/* Fra 980 e 1200px la colonna del telefono si stringe: le card rientrano
   dentro al viewport invece di essere tagliate dal bordo dell'hero. */
@media (max-width: 1200px) {
  .card-stt  { left: -2%; }
  .card-tts  { left: 0; }
  .card-llm  { right: -2%; }
  .card-flow { right: -4%; }
}
/* Caption della mappa: su due righe l'icona resta allineata alla prima riga */
.fmap-caption { align-items: flex-start; text-align: left; }
.fmap-caption i { margin-top: 4px; flex: 0 0 auto; }
