/* ==== NextGen Voice AI — Stylesheet ==== */
:root {
  --ivory: #F4F1EA;
  --ivory-2: #EAE5D8;
  --navy: #050B1F;
  --navy-2: #0E1A3A;
  --navy-3: #1B2D5A;
  --ink: #0B1F3A;
  --ink-soft: #2C3E5A;
  --ink-mute: #6B7A92;
  --line: #1A1A1A;
  --line-soft: rgba(11, 31, 58, 0.12);
  --line-on-dark: rgba(245, 241, 234, 0.14);
  --on-dark: #F5F1EA;
  --on-dark-mute: #A8B4C8;
  /* Logo-bright palette */
  --accent: #FF7A1A;        /* arancio caldo del logo */
  --accent-2: #FFC266;      /* highlight */
  --magenta: #E03BFF;       /* magenta neon */
  --electric: #2F8CFF;      /* azzurro elettrico */
  --cyan: #29E0FF;          /* ciano luminoso del logo */
  --good: #1F8F6B;
  --warn: #B8860B;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 22px;

  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1280px;
  --pad-x: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--accent); color: #fff; }

/* ============ TYPE ============ */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.serif-it { font-family: var(--serif); font-style: italic; font-weight: 400; }
.mono { font-family: var(--mono); }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: currentColor;
  display: inline-block;
}
.dark .eyebrow { color: var(--on-dark-mute); }

h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; }
.h-display {
  font-family: var(--sans);
  font-size: clamp(44px, 7.4vw, 108px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.98;
}
.h-display .em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }
.h-section {
  font-size: clamp(34px, 5vw, 68px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.02;
}
.h-section .em { font-family: var(--serif); font-style: italic; font-weight: 400;
  background: linear-gradient(110deg, var(--accent), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.h-card { font-size: clamp(20px, 2vw, 26px); font-weight: 500; letter-spacing: -0.01em; line-height: 1.15; }
.lede { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-soft); max-width: 60ch; line-height: 1.5; }
.dark .lede { color: var(--on-dark-mute); }

/* ============ LAYOUT ============ */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}
section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.section--dark {
  background: var(--navy);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
}
.section--dark::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 500px at 90% 20%, rgba(224, 59, 255, 0.18), transparent 55%),
    radial-gradient(600px 500px at 10% 90%, rgba(41, 224, 255, 0.18), transparent 55%),
    radial-gradient(700px 500px at 50% 50%, rgba(255, 122, 26, 0.12), transparent 60%);
  pointer-events: none;
}
.section--dark > .container { position: relative; z-index: 2; }
.section--dark .h-section, .section--dark .h-card { color: var(--on-dark); }
.section--dark .h-section .em {
  background: linear-gradient(110deg, var(--accent-2), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 11, 31, 0.7);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid var(--line-on-dark);
  color: var(--on-dark);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 104px;
}
.nav-brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 600; letter-spacing: -0.01em; font-size: 16px;
  color: var(--on-dark);
}
.logo-mark-img {
  transition: transform .35s ease, filter .35s ease;
  filter: saturate(1.05) drop-shadow(0 0 12px rgba(255, 122, 26, 0.25));
}
.nav-brand:hover .logo-mark-img { transform: scale(1.03); filter: saturate(1.2) drop-shadow(0 0 18px rgba(255, 122, 26, 0.45)) drop-shadow(0 0 28px rgba(224, 59, 255, 0.3)); }
@keyframes logo-glow {
  0%   { opacity: 0.95; }
  100% { opacity: 1; }
}
.nav-brand .brand-text { display: flex; flex-direction: column; line-height: 1; gap: 2px; white-space: nowrap; }
.nav-brand .brand-text-compact { padding-bottom: 4px; }
.nav-brand .brand-text-compact small {
  font-family: var(--mono); font-size: 10px; color: var(--on-dark-mute);
  letter-spacing: 0.18em; text-transform: uppercase;
}
.nav-brand .brand-text small {
  font-family: var(--mono); font-size: 9.5px; color: var(--on-dark-mute);
  letter-spacing: 0.14em; text-transform: uppercase;
}
.nav-links { display: flex; gap: 24px; align-items: center; flex: 1; justify-content: center; }
.nav-links a { font-size: 14px; color: var(--on-dark-mute); transition: color .15s; white-space: nowrap; }
.nav-links a:hover { color: var(--on-dark); }
.nav-cta {
  display: flex; align-items: center; gap: 10px;
}
.nav-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 13px;
  padding: 8px 12px; border: 1px solid var(--line-on-dark);
  border-radius: 100px;
  transition: all .2s;
  color: var(--on-dark);
}
.nav-phone:hover { border-color: var(--on-dark); }
.nav-phone .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: #34D399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.nav-burger {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line-on-dark);
  background: transparent; border-radius: 100px;
  align-items: center; justify-content: center;
  color: var(--on-dark);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 100px;
  font-size: 15px; font-weight: 500;
  border: 1px solid transparent;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--magenta) 100%);
  color: #fff;
  border: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(255, 91, 31, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(200, 64, 255, 0.35);
}
.btn-primary::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--magenta) 0%, var(--accent) 100%);
  opacity: 0;
  transition: opacity .3s;
  z-index: -1;
}
.btn-primary:hover::after { opacity: 1; }
.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line-soft);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-on-dark {
  background: var(--on-dark); color: var(--navy);
  border-color: var(--on-dark);
}
.btn-on-dark:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-ghost-dark {
  background: transparent; color: var(--on-dark);
  border-color: var(--line-on-dark);
}
.btn-ghost-dark:hover { border-color: var(--on-dark); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-sm { padding: 9px 16px; font-size: 13px; }

/* ============ HERO V2 — DARK CINEMATIC ============ */
.hero {
  padding: clamp(60px, 8vw, 120px) 0 clamp(80px, 10vw, 140px);
  position: relative;
  background: var(--navy);
  color: var(--on-dark);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: -10%;
  background:
    radial-gradient(900px 600px at 80% 10%, rgba(255, 122, 26, 0.55), transparent 55%),
    radial-gradient(700px 500px at 10% 30%, rgba(224, 59, 255, 0.45), transparent 55%),
    radial-gradient(700px 500px at 30% 80%, rgba(41, 224, 255, 0.40), transparent 55%),
    radial-gradient(600px 600px at 70% 100%, rgba(47, 140, 255, 0.42), transparent 55%);
  filter: blur(14px) saturate(120%);
  /* animation disabled: blur+animated-transform = flicker on many GPUs */
  animation: none;
  pointer-events: none;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(245, 241, 234, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 241, 234, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 30%, transparent 90%);
  pointer-events: none;
}
@keyframes mesh-drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-3%, 2%) scale(1.05); }
  100% { transform: translate(2%, -2%) scale(1.02); }
}
.hero > .container { position: relative; z-index: 2; }
.hero h1 { color: var(--on-dark); margin-bottom: 28px; }
.hero h1 .em {
  background: linear-gradient(110deg, var(--accent-2) 0%, var(--accent) 28%, var(--magenta) 55%, var(--cyan) 80%, var(--electric) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s ease-in-out infinite;
  filter: saturate(120%);
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero .lede { color: var(--on-dark-mute); }
.hero .eyebrow { color: var(--accent-2); }
.hero .eyebrow::before { background: var(--accent); }
.hero .kicker-row { color: var(--on-dark-mute); border-top: 1px solid var(--line-on-dark); padding-top: 24px; }
.hero .kicker-row .dot-sep { background: var(--on-dark-mute); }
.hero .btn-ghost {
  color: var(--on-dark);
  border-color: var(--line-on-dark);
}
.hero .btn-ghost:hover { border-color: var(--on-dark); background: rgba(245, 241, 234, 0.04); }
.hero .btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--magenta) 100%);
  border: none;
  color: #fff;
  box-shadow: 0 8px 32px rgba(255, 91, 31, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.hero .btn-primary:hover {
  background: linear-gradient(135deg, var(--magenta) 0%, var(--accent) 100%);
  box-shadow: 0 12px 40px rgba(200, 64, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.hero-meta {
  border-top: 1px solid var(--line-on-dark);
  border-bottom: 1px solid var(--line-on-dark);
}
.hero-meta > div { border-right: 1px solid var(--line-on-dark); }
.hero-meta .num {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-meta .lbl { color: var(--on-dark-mute); }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: end;
}
.hero .lede { margin-bottom: 36px; max-width: 56ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: clamp(56px, 7vw, 92px);
}
.hero-meta > div {
  padding: 22px 26px;
}
.hero-meta > div:last-child { border-right: none; }
.hero .hero-meta > div { border-right: 1px solid var(--line-on-dark); }
.hero .hero-meta > div:last-child { border-right: none; }
.hero-meta .num {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(38px, 4.4vw, 60px); line-height: 1; letter-spacing: -0.02em;
  display: block; margin-bottom: 8px;
}
.hero-meta .lbl {
  font-size: 13px; color: var(--ink-mute); max-width: 22ch;
}

/* ============ HERO LIVE PANEL ============ */
.live-panel {
  position: relative;
  background: rgba(11, 26, 58, 0.5);
  color: var(--on-dark);
  border-radius: var(--r-lg);
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line-on-dark);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.live-panel::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(255, 91, 31, 0.18), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(200, 64, 255, 0.18), transparent 60%);
  pointer-events: none;
}
.live-panel > * { position: relative; }
.live-head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 11px;
  color: var(--on-dark-mute); letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 18px;
}
.live-head .dot {
  display: inline-flex; gap: 6px; align-items: center;
}
.live-head .dot::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #34D399; box-shadow: 0 0 10px #34D399;
  animation: pulse-soft 1.6s ease-in-out infinite;
}
@keyframes pulse-soft {
  50% { opacity: 0.45; }
}
.live-call-row {
  display: grid; grid-template-columns: 48px 1fr auto;
  gap: 14px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--line-on-dark);
  transition: padding-left .3s;
}
.live-call-row:hover { padding-left: 8px; }
.live-call-row:last-child { border-bottom: none; }
.avatar {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 15px;
  background: rgba(245, 241, 234, 0.08);
  border: 1px solid var(--line-on-dark);
}
.live-name { font-weight: 500; font-size: 15px; }
.live-meta-row {
  display: flex; gap: 10px; font-family: var(--mono);
  font-size: 11px; color: var(--on-dark-mute); margin-top: 3px;
}
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 100px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid var(--line-on-dark);
}
.tag.live {
  color: #34D399;
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.08);
  animation: tag-pulse 2s ease-in-out infinite;
}
@keyframes tag-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
  50% { box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.15); }
}
.tag.routed { color: var(--accent-2); border-color: rgba(255, 177, 115, 0.4); background: rgba(255, 177, 115, 0.06); }
.tag.scheduled { color: #93C5FD; border-color: rgba(147, 197, 253, 0.4); background: rgba(147, 197, 253, 0.06); }

.waveform {
  display: flex; align-items: center; gap: 3px;
  height: 24px;
}
.waveform span {
  display: inline-block;
  width: 3px;
  background: var(--accent-2);
  border-radius: 2px;
  animation: wv 1.2s ease-in-out infinite;
}
@keyframes wv {
  0%, 100% { height: 4px; }
  50% { height: 20px; }
}

/* ============ SECTIONS GENERIC ============ */
.section-head {
  display: grid; grid-template-columns: 1fr; gap: 24px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section-head .right { max-width: 56ch; }

/* ============ FEATURES ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
}
.feature {
  padding: clamp(28px, 3vw, 44px);
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: 16px;
  background: var(--ivory);
  transition: background .3s, transform .3s;
  position: relative;
  overflow: hidden;
}
.feature::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--magenta), var(--cyan), var(--electric));
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s ease;
}
.feature:hover { background: var(--ivory-2); }
.feature:hover::before { transform: scaleX(1); }
.feature:hover .feature-icon {
  background: linear-gradient(135deg, var(--accent), var(--magenta));
  color: #fff;
  transform: rotate(-4deg) scale(1.05);
}
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--ink); color: var(--ivory);
  display: flex; align-items: center; justify-content: center;
  transition: all .35s ease;
}
.bubble.ai {
  background: linear-gradient(135deg, var(--on-dark) 0%, #FFE4D2 100%);
  color: var(--navy);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: 0 4px 16px rgba(255, 91, 31, 0.15);
}
.feature-num {
  font-family: var(--mono); font-size: 12px; color: var(--ink-mute);
  letter-spacing: 0.1em;
}
.feature-title { font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.feature p { color: var(--ink-soft); font-size: 15px; line-height: 1.5; margin: 0; }
.feature ul { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 8px; }
.feature ul li {
  font-size: 14px; color: var(--ink-soft);
  display: flex; gap: 10px; align-items: flex-start;
}
.feature ul li::before {
  content: "→"; color: var(--accent); font-family: var(--mono); flex-shrink: 0;
}

/* ============ DEMO ============ */
.demo-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 3vw, 48px);
  align-items: stretch;
}
.demo-stage {
  background: rgba(245, 241, 234, 0.04);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--r-lg);
  padding: clamp(28px, 3vw, 44px);
  display: flex; flex-direction: column; gap: 24px;
  position: relative;
  overflow: hidden;
  min-height: 480px;
}
.demo-orb-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  flex: 1; justify-content: center;
}
.demo-orb-field {
  position: relative;
  width: 320px; height: 320px;
  display: flex; align-items: center; justify-content: center;
}
.orb-stars {
  position: absolute; inset: 0; pointer-events: none;
  border-radius: 50%;
}
/* Field A: small white sparks */
.stars-a {
  background-image:
    radial-gradient(1.5px 1.5px at 20% 18%, #fff 50%, transparent 100%),
    radial-gradient(1px 1px at 82% 22%, #fff 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 14% 78%, #fff 50%, transparent 100%),
    radial-gradient(1px 1px at 90% 84%, #fff 50%, transparent 100%),
    radial-gradient(1px 1px at 50% 8%, #fff 50%, transparent 100%),
    radial-gradient(1.2px 1.2px at 8% 50%, #fff 50%, transparent 100%),
    radial-gradient(1px 1px at 95% 50%, #fff 50%, transparent 100%),
    radial-gradient(1.2px 1.2px at 70% 92%, #fff 50%, transparent 100%);
  animation: stars-twinkle-a 3.2s ease-in-out infinite;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.9));
}
/* Field B: slightly larger cyan sparks */
.stars-b {
  background-image:
    radial-gradient(2px 2px at 28% 30%, #b6f0ff 60%, transparent 100%),
    radial-gradient(1.5px 1.5px at 76% 72%, #aaeaff 60%, transparent 100%),
    radial-gradient(1.5px 1.5px at 12% 38%, #c8f4ff 60%, transparent 100%),
    radial-gradient(2px 2px at 88% 30%, #d0f6ff 60%, transparent 100%),
    radial-gradient(1.2px 1.2px at 60% 14%, #e6faff 60%, transparent 100%),
    radial-gradient(1.5px 1.5px at 40% 88%, #b6f0ff 60%, transparent 100%);
  animation: stars-twinkle-b 4.4s ease-in-out infinite 0.6s;
  filter: drop-shadow(0 0 5px rgba(180, 235, 255, 0.85));
}
/* Field C: warm magenta/orange sparks */
.stars-c {
  background-image:
    radial-gradient(2px 2px at 18% 60%, #ffb8e6 65%, transparent 100%),
    radial-gradient(1.5px 1.5px at 88% 64%, #ffc299 60%, transparent 100%),
    radial-gradient(2px 2px at 52% 96%, #ffaee0 60%, transparent 100%),
    radial-gradient(1.5px 1.5px at 6% 22%, #ffd0a0 60%, transparent 100%),
    radial-gradient(1.2px 1.2px at 94% 8%, #ffb8e6 60%, transparent 100%);
  animation: stars-twinkle-c 5.5s ease-in-out infinite 1.2s;
  filter: drop-shadow(0 0 6px rgba(255, 160, 220, 0.8));
}
@keyframes stars-twinkle-a {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.05); }
}
@keyframes stars-twinkle-b {
  0%, 100% { opacity: 0.4; transform: scale(0.95) rotate(0deg); }
  50%      { opacity: 0.95; transform: scale(1.06) rotate(2deg); }
}
@keyframes stars-twinkle-c {
  0%, 100% { opacity: 0.5; transform: scale(1) rotate(0deg); }
  50%      { opacity: 0.9; transform: scale(1.04) rotate(-2deg); }
}
.demo-orb {
  width: 200px; height: 200px;
  border-radius: 50%;
  position: relative;
  background:
    radial-gradient(circle at 26% 24%, #FFFFFF 0%, #FFE6B3 6%, #FFB347 16%, #FF7A1A 30%, #FF3DB8 52%, #B23BFF 70%, #2F8CFF 88%, #1A0B3A 100%);
  box-shadow:
    inset 0 0 60px rgba(255, 220, 180, 0.35),
    0 0 0 1px rgba(255, 230, 200, 0.25),
    0 0 60px rgba(255, 180, 80, 0.55),
    0 0 120px rgba(255, 122, 26, 0.7),
    0 0 200px rgba(224, 59, 255, 0.55),
    0 0 280px rgba(41, 140, 255, 0.4);
  transition: transform .4s ease, box-shadow .4s ease;
  animation: orb-idle 6s ease-in-out infinite;
  filter: saturate(1.15);
}
@keyframes orb-idle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.02) rotate(2deg); }
}
.demo-orb.speaking {
  animation: orb-pulse 1.4s ease-in-out infinite;
}
@keyframes orb-pulse {
  0%, 100% { transform: scale(1); box-shadow: inset 0 0 60px rgba(255, 220, 180, 0.35), 0 0 0 1px rgba(255, 230, 200, 0.25), 0 0 60px rgba(255, 180, 80, 0.55), 0 0 120px rgba(255, 122, 26, 0.7), 0 0 200px rgba(224, 59, 255, 0.55), 0 0 280px rgba(41, 140, 255, 0.4); }
  50% { transform: scale(1.06); box-shadow: inset 0 0 80px rgba(255, 230, 190, 0.5), 0 0 0 1px rgba(255, 240, 210, 0.4), 0 0 90px rgba(255, 200, 100, 0.85), 0 0 170px rgba(255, 122, 26, 0.95), 0 0 260px rgba(224, 59, 255, 0.8), 0 0 360px rgba(41, 140, 255, 0.55); }
}
.demo-orb::before {
  content: ""; position: absolute; inset: -16px;
  border-radius: 50%;
  border: 1.5px solid rgba(180, 220, 255, 0.55);
  transform: rotate(-28deg) scaleY(0.32);
  pointer-events: none;
  box-shadow: 0 0 18px rgba(180, 220, 255, 0.5);
}
.demo-orb::after {
  content: ""; position: absolute; inset: -8px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 200, 230, 0.55);
  transform: rotate(18deg) scaleY(0.42);
  pointer-events: none;
  box-shadow: 0 0 14px rgba(255, 180, 220, 0.4);
}
.demo-status {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-2);
  display: flex; gap: 8px; align-items: center;
}
.demo-controls { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.demo-script {
  background: rgba(11, 31, 58, 0.55);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--r-lg);
  padding: clamp(20px, 2.4vw, 32px);
  display: flex; flex-direction: column; gap: 14px;
  min-height: 480px;
  position: relative;
  overflow: hidden;
}
.demo-script-head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; color: var(--on-dark-mute);
  letter-spacing: 0.1em; text-transform: uppercase;
  padding-bottom: 14px; border-bottom: 1px solid var(--line-on-dark);
}
.transcript {
  flex: 1; overflow-y: auto;
  display: flex; flex-direction: column; gap: 14px;
  padding-right: 6px;
}
.transcript::-webkit-scrollbar { width: 6px; }
.transcript::-webkit-scrollbar-thumb { background: rgba(245, 241, 234, 0.18); border-radius: 3px; }
.bubble {
  padding: 12px 16px; border-radius: 14px;
  max-width: 88%;
  font-size: 14px; line-height: 1.5;
  animation: bubble-in .35s ease;
}
@keyframes bubble-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.bubble.ai {
  background: var(--on-dark); color: var(--navy);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: 0 4px 16px rgba(255, 91, 31, 0.12);
}
.bubble.human {
  background: rgba(245, 241, 234, 0.08); color: var(--on-dark);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.bubble .role {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; opacity: 0.55; margin-bottom: 4px;
}

.scenario-pills {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.scenario-pill {
  padding: 8px 14px;
  background: transparent; color: var(--on-dark);
  border: 1px solid var(--line-on-dark);
  border-radius: 100px; font-size: 12px;
  font-family: var(--mono); letter-spacing: 0.04em;
  transition: all .2s;
}
.scenario-pill:hover { border-color: var(--on-dark); }
.scenario-pill.active {
  background: linear-gradient(135deg, var(--accent), var(--magenta));
  border-color: transparent; color: #fff;
  box-shadow: 0 4px 16px rgba(255, 91, 31, 0.3);
}

/* ============ INTEGRATIONS ============ */
.integration-marquee {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
}
.integration {
  aspect-ratio: 5 / 3;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 500; letter-spacing: -0.01em;
  position: relative;
  transition: all .3s;
  overflow: hidden;
}
.integration::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(400px 300px at 50% 50%, rgba(255, 91, 31, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity .35s;
}
.integration:hover { background: var(--ivory-2); transform: scale(1.02); z-index: 2; }
.integration:hover::after { opacity: 1; }
.integration > * { position: relative; z-index: 1; }
.integration .logo-circle {
  width: 38px; height: 38px; border-radius: 9px;
  background: var(--ink); color: var(--ivory);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 14px; font-weight: 600;
  margin-right: 12px;
  transition: transform .3s;
}
.integration:hover .logo-circle { transform: rotate(-6deg) scale(1.08); }
.integration .logo-circle.accent { background: linear-gradient(135deg, var(--accent), var(--magenta)); }
.integration .logo-circle.navy { background: linear-gradient(135deg, var(--navy-2), var(--electric)); }
.integration .corner-tag {
  position: absolute; top: 12px; right: 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  color: var(--ink-mute); text-transform: uppercase;
}

/* ============ TESTIMONIALS ============ */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-on-dark);
  border-left: 1px solid var(--line-on-dark);
}
.testimonial {
  padding: clamp(28px, 3vw, 40px);
  border-right: 1px solid var(--line-on-dark);
  border-bottom: 1px solid var(--line-on-dark);
  display: flex; flex-direction: column; gap: 24px;
  min-height: 360px;
}
.testimonial blockquote {
  margin: 0; font-family: var(--serif); font-style: italic;
  font-size: clamp(20px, 2vw, 26px); line-height: 1.3;
  letter-spacing: -0.01em;
  flex: 1;
}
.testimonial blockquote::before {
  content: "“"; font-size: 1.4em; line-height: 0;
  vertical-align: -0.18em; color: var(--accent); margin-right: 4px;
}
.testimonial-meta {
  display: flex; gap: 14px; align-items: center;
  padding-top: 20px; border-top: 1px solid var(--line-on-dark);
}
.testimonial-meta .avatar {
  width: 44px; height: 44px;
  background: rgba(245, 241, 234, 0.08);
}
.testimonial-meta .who { font-size: 14px; line-height: 1.3; }
.testimonial-meta .who small {
  display: block; color: var(--on-dark-mute); font-size: 12px; margin-top: 2px;
}
.testimonial-stat {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent-2);
}

/* ============ FAQ ============ */
.faq-list {
  border-top: 1px solid var(--line-soft);
}
.faq-item {
  border-bottom: 1px solid var(--line-soft);
  transition: background .25s;
}
.faq-item:hover { background: rgba(255, 91, 31, 0.03); }
.faq-q {
  width: 100%;
  background: transparent; border: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 28px 0;
  text-align: left;
  font-family: var(--sans); font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 500; letter-spacing: -0.01em; color: var(--ink);
}
.faq-q .num { font-family: var(--mono); font-size: 12px; color: var(--ink-mute); margin-right: 14px; }
.faq-q .toggle {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; flex-shrink: 0;
}
.faq-item[data-open="true"] .toggle {
  background: linear-gradient(135deg, var(--accent), var(--magenta));
  color: #fff; border-color: transparent;
  transform: rotate(45deg);
  box-shadow: 0 4px 14px rgba(255, 91, 31, 0.3);
}
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease;
}
.faq-item[data-open="true"] .faq-a { max-height: 400px; }
.faq-a-inner {
  padding: 0 0 28px 0;
  color: var(--ink-soft); font-size: 16px; line-height: 1.55;
  max-width: 70ch;
}

/* ============ CONTACT ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
.contact-form {
  display: flex; flex-direction: column; gap: 18px;
  background: var(--ivory);
  padding: clamp(28px, 3vw, 44px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line-soft);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); }
.field input, .field select, .field textarea {
  background: transparent;
  border: none; border-bottom: 1px solid var(--line-soft);
  padding: 10px 0; font-family: inherit; font-size: 16px;
  color: var(--ink); outline: none; transition: border-color .2s;
  border-radius: 0;
}
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--ink); }
.field textarea { resize: vertical; min-height: 80px; }
.form-row-checkboxes {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.checkpill {
  font-family: var(--mono); font-size: 12px;
  padding: 8px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 100px;
  cursor: pointer;
  user-select: none;
  transition: all .2s;
}
.checkpill input { display: none; }
.checkpill:has(input:checked) { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.consent { font-size: 12px; color: var(--ink-mute); display: flex; gap: 10px; align-items: flex-start; }
.consent input { margin-top: 3px; }

.contact-aside { display: flex; flex-direction: column; gap: 28px; }
.contact-block { padding-bottom: 24px; border-bottom: 1px solid var(--line-soft); }
.contact-block:last-child { border-bottom: none; }
.contact-block .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 8px; }
.contact-block .val { font-size: clamp(20px, 2vw, 28px); font-weight: 500; letter-spacing: -0.01em; }
.contact-block .val a { transition: color .2s; }
.contact-block .val a:hover { color: var(--accent); }
.contact-block .sub { color: var(--ink-soft); font-size: 14px; margin-top: 4px; }

/* ============ CONTACT SUCCESS PANEL ============ */
.contact-success {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  padding: clamp(32px, 4vw, 56px);
  border-radius: 20px;
  background:
    radial-gradient(420px 220px at 0% 0%, rgba(255, 122, 26, 0.10), transparent 70%),
    radial-gradient(420px 220px at 100% 100%, rgba(224, 59, 255, 0.10), transparent 70%),
    #fff;
  border: 1.5px solid;
  border-color: rgba(255, 122, 26, 0.35);
  box-shadow: 0 18px 60px rgba(255, 122, 26, 0.10), 0 4px 16px rgba(0, 0, 0, 0.04);
  min-height: 320px;
  animation: contact-success-in .45s cubic-bezier(.2,.7,.2,1);
}
@keyframes contact-success-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.contact-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin-bottom: 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--magenta) 100%);
  box-shadow: 0 12px 32px rgba(255, 91, 31, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.contact-success-icon svg path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: contact-check-draw .6s .15s ease-out forwards; }
.contact-success-icon svg circle { stroke-dasharray: 200; stroke-dashoffset: 200; animation: contact-check-draw .6s ease-out forwards; }
@keyframes contact-check-draw { to { stroke-dashoffset: 0; } }
.contact-success-title {
  font-family: var(--serif, "Instrument Serif"), serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  background: linear-gradient(110deg, var(--accent) 0%, var(--magenta) 60%, var(--electric) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.contact-success-text {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 14px;
  max-width: 52ch;
}
.contact-success-text strong { color: var(--ink); font-weight: 600; }
.contact-success-sub {
  font-size: 15px;
  color: var(--ink-mute);
  margin: 0;
}
.contact-success-sub a {
  color: var(--ink);
  border-bottom: 1px dashed var(--accent);
  transition: color .2s;
}
.contact-success-sub a:hover { color: var(--accent); }

/* ============ FOOTER ============ */
.footer {
  background: var(--navy);
  color: var(--on-dark);
  padding: 80px 0 30px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 400px at 30% 0%, rgba(255, 122, 26, 0.18), transparent 60%),
    radial-gradient(600px 400px at 80% 0%, rgba(224, 59, 255, 0.16), transparent 60%),
    radial-gradient(500px 400px at 55% 100%, rgba(41, 224, 255, 0.14), transparent 60%);
  pointer-events: none;
}
.footer > .container { position: relative; z-index: 2; }
.footer-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px; border-bottom: 1px solid var(--line-on-dark);
}
.footer-col h5 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--on-dark-mute);
  font-weight: 500; margin: 0 0 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--on-dark); font-size: 14px; opacity: 0.85; transition: opacity .2s; }
.footer-col a:hover { opacity: 1; color: var(--accent-2); }
.footer-brand { display: flex; flex-direction: column; gap: 18px; max-width: 36ch; }
.footer-brand .lede { color: var(--on-dark-mute); font-size: 14px; }
.footer-bottom {
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px; color: var(--on-dark-mute);
  letter-spacing: 0.06em;
  flex-wrap: wrap; gap: 12px;
}

/* ============ HUGE SECTION (CTA Strip) ============ */
.cta-strip {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--navy);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 600px at 80% 50%, rgba(255, 122, 26, 0.32), transparent 55%),
    radial-gradient(700px 500px at 20% 80%, rgba(224, 59, 255, 0.30), transparent 55%),
    radial-gradient(600px 500px at 60% 20%, rgba(41, 224, 255, 0.24), transparent 55%),
    radial-gradient(600px 400px at 50% 0%, rgba(47, 140, 255, 0.24), transparent 55%);
  filter: blur(10px) saturate(120%);
  animation: mesh-drift 20s ease-in-out infinite alternate;
  pointer-events: none;
}
.cta-strip > .container { position: relative; z-index: 2; }
.cta-strip .lede { color: var(--on-dark-mute); }
.cta-strip .btn-ghost {
  color: var(--on-dark);
  border-color: var(--line-on-dark);
}
.cta-strip .btn-ghost:hover { border-color: var(--on-dark); background: rgba(245, 241, 234, 0.04); }
.cta-strip-inner {
  text-align: left;
  display: grid; grid-template-columns: 1.5fr 1fr;
  gap: 40px; align-items: end;
}
.cta-mega {
  font-family: var(--sans);
  font-size: clamp(48px, 8vw, 130px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
}
.cta-mega .em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  background: linear-gradient(110deg, var(--accent), var(--magenta) 50%, var(--cyan) 80%, var(--electric));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: saturate(120%);
}

/* ============ MISC HELPERS ============ */
.divider {
  height: 1px; background: var(--line-soft);
  margin: 0;
}
.section--dark .divider { background: var(--line-on-dark); }

.kicker-row {
  display: flex; gap: 28px; flex-wrap: wrap; align-items: center;
  margin-top: 36px;
  font-family: var(--mono); font-size: 12px; color: var(--ink-mute);
  letter-spacing: 0.06em;
}
.kicker-row .dot-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-mute); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 13px; }
}
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-cta .btn { display: none; }
  .nav-cta .nav-phone { padding: 8px 10px; }
  .nav-cta .nav-phone span.label { display: none; }

  .features-grid { grid-template-columns: 1fr; }
  .integration-marquee { grid-template-columns: repeat(2, 1fr); }
  .testimonials { grid-template-columns: 1fr; }
  .demo-wrap { grid-template-columns: 1fr; }
  .demo-stage, .demo-script { min-height: auto; }
  .demo-script { min-height: 300px; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .cta-strip-inner { grid-template-columns: 1fr; }
  .hero-meta { grid-template-columns: 1fr; }
  .hero-meta > div { border-right: none; border-bottom: 1px solid var(--line-soft); }
  .hero-meta > div:last-child { border-bottom: none; }
}

@media (max-width: 560px) {
  .demo-orb { width: 150px; height: 150px; }
  .demo-orb-field { width: 240px; height: 240px; }
  .scenario-pills { justify-content: center; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1; justify-content: center; }
}

/* ============ PIPELINE ============ */
.pipeline-section { background: var(--ivory); }
.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 56px;
  background: linear-gradient(180deg, transparent 0%, rgba(11, 31, 58, 0.03) 100%);
  background-image:
    linear-gradient(rgba(11, 31, 58, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 31, 58, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  padding: 32px 24px;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  position: relative;
}
.pipeline-stage {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 22px 18px;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.pipeline-stage:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(11, 31, 58, 0.10); }
.pipeline-num {
  display: inline-block;
  font-family: var(--mono); font-size: 12px;
  padding: 4px 8px; border-radius: 6px;
  font-weight: 600; letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.stage-blue    .pipeline-num { background: rgba(47, 140, 255, 0.12); color: #2F8CFF; }
.stage-magenta .pipeline-num { background: rgba(224, 59, 255, 0.12); color: #B23BCC; }
.stage-amber   .pipeline-num { background: rgba(255, 122, 26, 0.14); color: #C9560F; }
.stage-violet  .pipeline-num { background: rgba(139, 92, 246, 0.14); color: #6D3FCB; }
.stage-teal    .pipeline-num { background: rgba(41, 200, 178, 0.14); color: #1F8F6B; }
.pipeline-title {
  font-family: var(--sans); font-size: 17px; font-weight: 600;
  color: var(--ink); margin-bottom: 10px; letter-spacing: -0.01em;
}
.pipeline-desc { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }
.pipeline-arrow {
  position: absolute; right: -16px; top: 38px;
  font-size: 18px; color: var(--ink-mute);
  z-index: 2;
}
@media (max-width: 980px) {
  .pipeline-grid { grid-template-columns: 1fr 1fr; }
  .pipeline-arrow { display: none; }
}
@media (max-width: 560px) {
  .pipeline-grid { grid-template-columns: 1fr; padding: 18px; }
}

/* ============ ARCHITETTURA ============ */
.architettura-section { padding: clamp(80px, 9vw, 140px) 0; }
.arch-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 56px;
}
.arch-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 24px;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
  display: flex; flex-direction: column; gap: 12px;
}
.arch-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 122, 26, 0.45);
  box-shadow: 0 12px 32px rgba(15, 12, 10, 0.06);
  background: #ffffff;
}
.arch-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(255, 122, 26, 0.18), rgba(224, 59, 255, 0.16));
  border: 1px solid rgba(255, 200, 170, 0.25);
  border-radius: 10px;
  color: var(--accent-2);
  margin-bottom: 4px;
}
.arch-title { font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.arch-desc { font-size: 14px; color: var(--ink-mute); line-height: 1.6; flex: 1; }
.arch-tag {
  align-self: flex-start;
  font-family: var(--mono); font-size: 11px;
  background: rgba(11, 31, 58, 0.04);
  border: 1px solid var(--line-soft);
  padding: 5px 9px; border-radius: 6px;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
}
@media (max-width: 980px) { .arch-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .arch-grid { grid-template-columns: 1fr; } }

/* ============ DIFFERENZIATORI ============ */
.diff-section { background: var(--ivory-2); padding: clamp(80px, 9vw, 140px) 0; }
.diff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; }
.diff-card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 26px 26px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.diff-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(11, 31, 58, 0.08); }
.diff-magenta { border-left-color: #E03BFF; }
.diff-violet  { border-left-color: #6D3FCB; }
.diff-amber   { border-left-color: #FF7A1A; }
.diff-teal    { border-left-color: #1F8F6B; }
.diff-title { font-size: 19px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.diff-desc { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; }
.diff-compare {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-top: 6px; font-family: var(--mono); font-size: 12px;
}
.diff-before {
  background: rgba(255, 80, 80, 0.10); color: #B33A3A;
  padding: 5px 10px; border-radius: 6px; text-decoration: line-through;
}
.diff-arrow { color: var(--ink-mute); }
.diff-after {
  background: rgba(31, 143, 107, 0.12); color: #1F8F6B;
  padding: 5px 10px; border-radius: 6px;
}
@media (max-width: 760px) { .diff-grid { grid-template-columns: 1fr; } }

/* ============ VOICE FLOW EDITOR ============ */
.flow-section { padding: clamp(80px, 9vw, 140px) 0; }

/* Tabs — use-case selector */
.vf-tabs {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.vf-tab {
  position: relative;
  font-family: var(--sans, "Inter Tight"), system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  padding: 14px 24px;
  border-radius: 14px;
  background: rgba(245, 241, 234, 0.06);
  border: 1.5px solid rgba(245, 241, 234, 0.18);
  color: var(--on-dark);
  cursor: pointer;
  transition: transform .18s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.vf-tab::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 122, 26, 0);
  transition: box-shadow .25s ease, background .25s ease, transform .25s ease;
}
.vf-tab:nth-child(1)::before { background: var(--accent); }
.vf-tab:nth-child(2)::before { background: var(--magenta); }
.vf-tab:nth-child(3)::before { background: var(--cyan); }
.vf-tab:hover {
  background: rgba(245, 241, 234, 0.10);
  border-color: rgba(255, 122, 26, 0.55);
  transform: translateY(-1px);
}
.vf-tab.active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--magenta) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow:
    0 12px 32px rgba(255, 91, 31, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.10) inset,
    0 1px 0 rgba(255, 255, 255, 0.25) inset;
  transform: translateY(-1px);
}
.vf-tab.active::before {
  background: #fff !important;
  box-shadow: 0 0 12px 2px rgba(255, 255, 255, 0.6);
  transform: scale(1.15);
}
.vf-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
@media (max-width: 560px) {
  .vf-tabs { gap: 10px; }
  .vf-tab { padding: 12px 18px; font-size: 14px; }
}
.vf-scenario-meta { margin: 18px 0 16px; max-width: 720px; }
.vf-scenario-title { font-size: 17px; color: var(--on-dark); font-weight: 600; }
.vf-scenario-blurb { font-size: 14px; color: var(--on-dark-mute); margin-top: 4px; line-height: 1.6; }

/* Canvas wrapper */
.vf-canvas {
  position: relative;
  height: 600px;
  border: 1px solid var(--line-on-dark);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(8, 5, 20, 0.6);
}
.vf-viewport {
  position: absolute; inset: 0;
  cursor: grab;
  overflow: hidden;
}
.vf-viewport:active { cursor: grabbing; }
.vf-canvas-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(245, 241, 234, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 241, 234, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.vf-stage {
  position: absolute;
  top: 0; left: 0;
  transform-origin: 0 0;
}
.vf-edges {
  position: absolute; top: 0; left: 0;
  pointer-events: none;
  overflow: visible;
}
.vf-edge {
  fill: none;
  stroke: rgba(168, 180, 200, 0.5);
  stroke-width: 1.6;
  stroke-dasharray: 5 5;
  animation: vf-flow-dash 2.4s linear infinite;
}
@keyframes vf-flow-dash { to { stroke-dashoffset: -100; } }
.vf-edge-label-bg { fill: rgba(20, 14, 40, 0.95); stroke: rgba(168, 180, 200, 0.3); stroke-width: 1; }
.vf-edge-label { fill: var(--on-dark-mute); font-family: var(--mono); font-size: 10px; }

/* Nodes */
.vf-node {
  position: absolute;
  background: rgba(20, 14, 40, 0.92);
  border: 1.5px solid rgba(245, 241, 234, 0.16);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 12.5px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  color: var(--on-dark);
  cursor: grab;
  user-select: none;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.vf-node:hover { box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55); }
.vf-node:active { cursor: grabbing; }
.vf-start       { border-color: #6BD9A4; box-shadow: 0 0 0 1px rgba(107, 217, 164, 0.18), 0 12px 32px rgba(0, 0, 0, 0.4); background: rgba(14, 36, 26, 0.92); }
.vf-ia          { border-color: #E03BFF; box-shadow: 0 0 0 1px rgba(224, 59, 255, 0.18), 0 12px 32px rgba(0, 0, 0, 0.4); background: rgba(28, 14, 40, 0.92); }
.vf-tool        { border-color: #FF7A1A; box-shadow: 0 0 0 1px rgba(255, 122, 26, 0.18), 0 12px 32px rgba(0, 0, 0, 0.4); background: rgba(40, 22, 14, 0.92); }
.vf-trasferisci { border-color: #2F8CFF; box-shadow: 0 0 0 1px rgba(47, 140, 255, 0.18), 0 12px 32px rgba(0, 0, 0, 0.4); background: rgba(14, 26, 40, 0.92); }
.vf-richiama    { border-color: #F4A05A; box-shadow: 0 0 0 1px rgba(244, 160, 90, 0.18), 0 12px 32px rgba(0, 0, 0, 0.4); background: rgba(38, 26, 14, 0.92); }
.vf-condition   { border-color: #FFD23A; box-shadow: 0 0 0 1px rgba(255, 210, 58, 0.18), 0 12px 32px rgba(0, 0, 0, 0.4); background: rgba(36, 30, 10, 0.92); }
.vf-chiudi      { border-color: #FF7BA8; box-shadow: 0 0 0 1px rgba(255, 123, 168, 0.18), 0 12px 32px rgba(0, 0, 0, 0.4); background: rgba(40, 14, 26, 0.92); }

.vf-node-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 6px; padding-bottom: 6px;
  border-bottom: 1px solid rgba(245, 241, 234, 0.1);
}
.vf-node-icon { font-size: 13px; }
.vf-node-tag {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--on-dark-mute);
}
.vf-node-flag {
  margin-left: auto;
  font-family: var(--mono); font-size: 9.5px;
  background: rgba(255, 122, 26, 0.18);
  color: #FFB081;
  padding: 2px 6px; border-radius: 4px;
  letter-spacing: .06em;
}
.vf-node-title { font-weight: 600; font-size: 13px; line-height: 1.3; margin-bottom: 4px; }
.vf-node-desc { font-size: 12px; color: var(--on-dark-mute); line-height: 1.45; }
.vf-node-label { font-weight: 600; font-size: 13px; line-height: 1.3; }
.vf-node-sub { font-size: 11.5px; color: var(--on-dark-mute); margin-top: 2px; font-family: var(--mono); }
.vf-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.vf-chips span {
  background: rgba(224, 59, 255, 0.18);
  color: #F5C2FF;
  padding: 3px 8px; border-radius: 4px;
  font-size: 10.5px; font-family: var(--mono);
}

/* Controls */
.vf-controls {
  position: absolute; top: 14px; right: 14px;
  display: flex; gap: 6px; align-items: center;
  background: rgba(8, 5, 20, 0.9);
  border: 1px solid var(--line-on-dark);
  border-radius: 999px;
  padding: 4px;
  z-index: 5;
}
.vf-ctrl {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(245, 241, 234, 0.06);
  border: none;
  color: var(--on-dark);
  cursor: pointer;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.vf-ctrl:hover { background: rgba(255, 122, 26, 0.2); }
.vf-zoom-readout {
  font-family: var(--mono); font-size: 11px;
  color: var(--on-dark-mute);
  padding: 0 8px;
  min-width: 38px; text-align: center;
}

/* Toolbar */
.vf-toolbar {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; flex-wrap: wrap;
  background: rgba(8, 5, 20, 0.9);
  border: 1px solid var(--line-on-dark);
  border-radius: 999px;
  padding: 6px 8px;
  z-index: 5;
}
.vf-tool, .vf-publish {
  font-family: var(--mono); font-size: 11px;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(245, 241, 234, 0.06);
  color: var(--on-dark-mute);
  cursor: default;
}
.vf-publish {
  background: linear-gradient(135deg, var(--accent), var(--magenta));
  color: #fff; font-weight: 600;
}
.vf-hint {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--mono); font-size: 10.5px;
  color: var(--on-dark-mute);
  background: rgba(8, 5, 20, 0.85);
  border: 1px solid var(--line-on-dark);
  border-radius: 6px;
  padding: 5px 10px;
  pointer-events: none;
  z-index: 4;
}

@media (max-width: 720px) {
  .vf-canvas { height: 480px; }
  .vf-hint { display: none; }
  .vf-toolbar { display: none; }
}

/* === Legacy (unused by new VoiceFlow) === */
.flow-canvas-legacy {
  position: relative;
  margin-top: 56px;
  height: 600px;
  background: rgba(245, 241, 234, 0.03);
  border: 1px solid var(--line-on-dark);
  border-radius: 16px;
  overflow: hidden;
}
.flow-canvas-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(245, 241, 234, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 241, 234, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.flow-lines {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}
.flow-lines path {
  fill: none;
  stroke: rgba(168, 180, 200, 0.4);
  stroke-width: 1.5;
  stroke-dasharray: 5 4;
  animation: flow-dash 6s linear infinite;
}
@keyframes flow-dash { to { stroke-dashoffset: -90; } }
.flow-node {
  position: absolute;
  background: rgba(20, 14, 40, 0.85);
  backdrop-filter: blur(6px);
  border-radius: 10px;
  padding: 14px 16px;
  min-width: 200px; max-width: 260px;
  font-size: 12.5px;
  color: var(--on-dark);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}
.node-ia      { border: 1.5px solid #E03BFF; box-shadow: 0 0 0 1px rgba(224, 59, 255, 0.15), 0 12px 32px rgba(0, 0, 0, 0.4); }
.node-ia-blue { border: 1.5px solid #2F8CFF; box-shadow: 0 0 0 1px rgba(47, 140, 255, 0.15), 0 12px 32px rgba(0, 0, 0, 0.4); }
.node-tool    { border: 1.5px solid #FF7A1A; box-shadow: 0 0 0 1px rgba(255, 122, 26, 0.15), 0 12px 32px rgba(0, 0, 0, 0.4); background: rgba(40, 22, 14, 0.85); }
.node-condition { border: 1.5px solid #FFD23A; box-shadow: 0 0 0 1px rgba(255, 210, 58, 0.15), 0 12px 32px rgba(0, 0, 0, 0.4); background: rgba(40, 34, 10, 0.85); }
.flow-node-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px; padding-bottom: 8px;
  border-bottom: 1px solid rgba(245, 241, 234, 0.1);
}
.flow-node-icon { font-size: 14px; }
.flow-node-icon-tool { color: #FF7A1A; }
.flow-node-type {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--on-dark-mute);
}
.flow-node-body { line-height: 1.5; color: var(--on-dark); }
.flow-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.flow-chips span {
  background: rgba(224, 59, 255, 0.18);
  color: #F5C2FF;
  padding: 3px 8px; border-radius: 4px;
  font-size: 11px; font-family: var(--mono);
}
.flow-chips.chips-blue span { background: rgba(47, 140, 255, 0.20); color: #B6DEFF; }
.flow-yesno { display: flex; gap: 14px; margin-top: 8px; font-family: var(--mono); font-size: 11.5px; }
.flow-yesno .yes { color: #6BD9A4; }
.flow-yesno .no  { color: #FF7BA8; }

.n1 { top: 40px;  left: 30px;  }
.n2 { top: 60px;  left: 380px; }
.n3 { top: 230px; left: 230px; max-width: 200px; }
.n4 { top: 230px; left: 500px; max-width: 220px; }
.n5 { top: 410px; left: 150px; max-width: 280px; }

.flow-toolbar {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; flex-wrap: wrap;
  background: rgba(10, 6, 24, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-on-dark);
  border-radius: 999px;
  padding: 6px 8px;
}
.flow-tool, .flow-publish {
  font-family: var(--mono); font-size: 11px;
  padding: 7px 12px; border-radius: 999px;
  color: var(--on-dark-mute);
  background: rgba(245, 241, 234, 0.05);
  cursor: default;
}
.flow-publish {
  background: linear-gradient(135deg, var(--accent), var(--magenta));
  color: #fff; font-weight: 600;
  box-shadow: 0 4px 16px rgba(255, 122, 26, 0.4);
}
@media (max-width: 980px) {
  .flow-canvas { height: 520px; }
  .flow-node { min-width: 160px; max-width: 200px; padding: 10px 12px; font-size: 11.5px; }
  .n1 { top: 20px;  left: 16px;  }
  .n2 { top: 40px;  left: 56%; }
  .n3 { top: 220px; left: 16px;  max-width: 160px; }
  .n4 { top: 220px; left: 50%;   max-width: 170px; }
  .n5 { top: 400px; left: 16px;  max-width: 220px; }
}
@media (max-width: 640px) {
  .flow-canvas { height: 760px; }
  .flow-node { position: static; max-width: none; min-width: 0; margin: 12px 16px; }
  .flow-canvas .flow-lines { display: none; }
  .n1, .n2, .n3, .n4, .n5 { top: auto; left: auto; }
  .flow-canvas { padding-top: 18px; padding-bottom: 80px; }
}
.mobile-sheet {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ivory);
  display: flex; flex-direction: column;
  padding: 20px var(--pad-x);
  transform: translateY(-100%);
  transition: transform .3s ease;
  overflow: hidden;
}
.mobile-sheet[data-open="true"] { transform: translateY(0); }
.mobile-sheet-head { display: flex; justify-content: space-between; align-items: center; height: 48px; }
.mobile-sheet nav { display: flex; flex-direction: column; gap: 0; margin-top: 24px; }
.mobile-sheet nav a {
  font-size: 32px; font-weight: 500; letter-spacing: -0.02em;
  padding: 14px 0; border-bottom: 1px solid var(--line-soft);
}
.mobile-sheet .footer-actions { margin-top: auto; padding-top: 24px; display: flex; flex-direction: column; gap: 10px; }

/* ============ SCROLL REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.4s; }
.reveal-stagger.in > *:nth-child(7) { transition-delay: 0.47s; }
.reveal-stagger.in > *:nth-child(8) { transition-delay: 0.54s; }
.reveal-stagger.in > *:nth-child(9) { transition-delay: 0.61s; }
.reveal-stagger.in > *:nth-child(10) { transition-delay: 0.68s; }
.reveal-stagger.in > *:nth-child(11) { transition-delay: 0.75s; }
.reveal-stagger.in > *:nth-child(12) { transition-delay: 0.82s; }

/* Marquee strip */
.brand-strip {
  background: var(--ivory);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 22px 0;
  overflow: hidden;
  position: relative;
}
.brand-strip::before, .brand-strip::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2;
  pointer-events: none;
}
.brand-strip::before { left: 0; background: linear-gradient(90deg, var(--ivory), transparent); }
.brand-strip::after { right: 0; background: linear-gradient(-90deg, var(--ivory), transparent); }
.brand-strip-track {
  display: flex; gap: 56px; align-items: center;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.brand-strip-item {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-mute);
  display: inline-flex; align-items: center; gap: 12px;
  white-space: nowrap;
}
.brand-strip-item .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--magenta));
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
  .hero::before, .cta-strip::before, .demo-orb, .brand-strip-track, .h-display .em { animation: none; }
}
