/* ==========================================================================
   24/7AGENT PREMIUM DESIGN SYSTEM (HUMAN-LED AI WORKFORCE - FONT +2PX SPEC)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@500;600;700;800&family=JetBrains+Mono:wght@400;500;700;800&display=swap');

:root {
  /* Color Palette - Premium Enterprise Slate & Emerald Neon */
  --bg-slate: #0A0A0C;
  --bg-card: #0E0E12;
  --bg-card-hover: #14141A;
  --bg-hud: #060608;
  --bg-header: rgba(10, 10, 12, 0.85);

  --border-dark: #222226;
  --border-active: #10B981;
  --border-glow-emerald: rgba(16, 185, 129, 0.35);

  --neon-emerald: #10B981;
  --neon-emerald-hover: #14D493;
  --neon-emerald-glow: rgba(16, 185, 129, 0.25);
  --neon-cyan: #00F0FF;
  --neon-cyan-glow: rgba(0, 240, 255, 0.2);
  --neon-indigo: #6366F1;
  --neon-purple: #8B5CF6;
  --neon-amber: #F59E0B;
  --neon-rose: #F43F5E;

  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  --font-heading: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Strict 8px Grid Spacing Rules */
  --space-8: 8px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-64: 64px;
  --section-gap-desktop: 120px;
  --section-gap-mobile: 80px;

  /* Card Radius Spec: 6px */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  font-size: 18px; /* Increased base font size by +2px (was 16px) */
}

body {
  background-color: var(--bg-slate);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1.05rem; /* +2px font increase across body */
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(99, 102, 241, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(16, 185, 129, 0.05) 0%, transparent 45%);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-24);
}

.section {
  margin-bottom: var(--section-gap-desktop);
  position: relative;
}

.section-dark {
  background: rgba(6, 6, 8, 0.85);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  padding: 80px 0;
}

.section-soft {
  background: rgba(14, 14, 18, 0.4);
  padding: 80px 0;
}

/* Typography & Headings (+2px Spec) */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 14px; /* +2px */
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neon-emerald);
  margin-bottom: var(--space-24);
  background: rgba(16, 185, 129, 0.08);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.section-heading {
  text-align: center;
  max-width: 840px;
  margin: 0 auto var(--space-64);
}

.section-heading h2 {
  font-size: 38px; /* +2px */
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin-bottom: var(--space-16);
}

.section-heading h2 span {
  background: linear-gradient(135deg, #fff 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-heading p {
  font-size: 20px; /* +2px */
  color: var(--text-secondary);
  line-height: 1.6;
}

/* SEZIONE 1: Header e Navigazione Sticky Glass */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-dark);
  transition: var(--transition-fast);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: var(--space-24);
}

.brand-box {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--neon-indigo) 0%, var(--neon-emerald) 100%);
  color: #fff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 16px; /* +2px */
  letter-spacing: -0.05em;
  box-shadow: 0 0 15px var(--neon-emerald-glow);
  flex-shrink: 0;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 24px; /* +2px */
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-subtag {
  font-size: 11px; /* +2px */
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-24);
  flex-shrink: 1;
}

.main-nav a {
  font-size: 15px; /* +2px */
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  transition: var(--transition-fast);
  padding: 6px 0;
  white-space: nowrap;
}

.main-nav a:hover {
  color: #fff;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--neon-emerald);
  transition: all 0.25s ease;
  transform: translateX(-50%);
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-right-group {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  flex-shrink: 0;
}

.system-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--neon-emerald);
  font-family: var(--font-mono);
  font-size: 13px; /* +2px */
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--neon-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--neon-emerald);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0.4; transform: scale(0.9); }
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: var(--radius-sm);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: var(--transition-fast);
}

/* Microinterazione Bottoni (border-radius: 6px, emerald glow, 3px rightward translation arrow) */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-size: 16px; /* +2px */
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
  min-height: 52px;
  white-space: nowrap;
}

/* Compact Small Button Spec for Left-Aligned Secondary CTA */
.button-compact-sm {
  font-size: 13px !important;
  padding: 8px 16px !important;
  min-height: 38px !important;
  font-weight: 700 !important;
  border-radius: var(--radius-sm) !important;
}

.button-neon {
  background: var(--neon-emerald);
  color: #040d08;
  box-shadow: 0 0 20px var(--neon-emerald-glow);
}

.button-neon:hover {
  background: var(--neon-emerald-hover);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
  transform: translateY(-1px);
}

.button-neon .arrow-icon {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
}

.button-neon:hover .arrow-icon {
  transform: translateX(3px);
}

.button-outline-dark {
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  border: 1px solid var(--border-dark);
}

.button-outline-dark:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

.button-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.button-ghost:hover {
  color: #fff;
}

/* SEZIONE 2: Hero Section & Command HUD v2.4 (+2px Spec) */
.hero {
  padding-top: 170px;
  padding-bottom: 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-48);
  align-items: center;
}

.hero-title {
  font-size: 50px; /* +2px */
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin-bottom: var(--space-24);
}

.hero-title span {
  background: linear-gradient(135deg, var(--neon-emerald) 0%, var(--neon-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 21px; /* +2px */
  color: var(--text-secondary);
  margin-bottom: var(--space-32);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  margin-bottom: var(--space-32);
  flex-wrap: wrap;
}

.trust-bullets-row {
  display: flex;
  align-items: center;
  gap: var(--space-24);
  font-size: 15px; /* +2px */
  color: var(--text-muted);
  font-weight: 500;
  flex-wrap: wrap;
}

.trust-bullets-row span {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Command HUD v2.4 */
.command-hud-box {
  background: var(--bg-hud);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(16, 185, 129, 0.1);
  overflow: hidden;
  width: 100%;
}

.hud-header {
  background: #040406;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-dark);
}

.hud-brand-title {
  font-family: var(--font-mono);
  font-size: 13px; /* +2px */
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-live-tag {
  background: rgba(16, 185, 129, 0.15);
  color: var(--neon-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-family: var(--font-mono);
  font-size: 12px; /* +2px */
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
}

.hud-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 14px; /* +2px */
  min-height: 270px;
  max-height: 350px;
  overflow-y: auto;
}

.hud-log-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hud-log-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  border-left: 3px solid transparent;
}

.hud-log-line.tag-input { border-left-color: var(--neon-cyan); }
.hud-log-line.tag-process { border-left-color: var(--neon-indigo); }
.hud-log-line.tag-rule { border-left-color: var(--neon-amber); }
.hud-log-line.tag-human { border-left-color: var(--neon-rose); }
.hud-log-line.tag-success { border-left-color: var(--neon-emerald); }

.log-time { color: var(--text-muted); flex-shrink: 0; }
.log-tag { font-weight: 700; flex-shrink: 0; padding: 2px 6px; border-radius: 4px; font-size: 12px; }

.log-tag.input { background: rgba(0, 240, 255, 0.15); color: var(--neon-cyan); }
.log-tag.process { background: rgba(99, 102, 241, 0.15); color: var(--neon-indigo); }
.log-tag.rule { background: rgba(245, 158, 11, 0.15); color: var(--neon-amber); }
.log-tag.human { background: rgba(244, 63, 94, 0.15); color: var(--neon-rose); }
.log-tag.success { background: rgba(16, 185, 129, 0.15); color: var(--neon-emerald); }

.hud-footer-action {
  background: #08080c;
  padding: 16px 20px;
  border-top: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.hud-action-label {
  font-size: 14px; /* +2px */
  color: var(--text-secondary);
}

.hud-action-label strong { color: #fff; }

.button-hud-approve {
  background: var(--neon-emerald);
  color: #000;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 14px; /* +2px */
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.button-hud-approve:hover {
  background: var(--neon-emerald-hover);
  box-shadow: 0 0 15px var(--neon-emerald-glow);
}

/* SEZIONE 3: Vantaggi (+2px Spec) */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-24);
}

.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  padding: var(--space-32);
  transition: var(--transition-smooth);
}

.benefit-card:hover {
  border-color: var(--neon-emerald);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--neon-emerald-glow);
}

.benefit-svg-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--neon-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.benefit-svg-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--neon-emerald);
  stroke-width: 1.5;
  fill: none;
}

.benefit-card h3 {
  font-size: 21px; /* +2px */
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.benefit-card p {
  font-size: 17px; /* +2px */
  color: var(--text-secondary);
  line-height: 1.6;
}

/* SEZIONE 4: Tabella Comparativa (+2px Spec) */
.comparison-table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th,
.comparison-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-dark);
  vertical-align: top;
  font-size: 17px; /* +2px */
}

.comparison-table th {
  font-family: var(--font-heading);
  font-size: 17px; /* +2px */
  font-weight: 700;
  color: var(--text-secondary);
  background: #08080B;
}

.comparison-table th.col-247agent {
  background: rgba(16, 185, 129, 0.08);
  border-left: 2px solid var(--neon-emerald);
  border-right: 2px solid var(--neon-emerald);
  border-top: 2px solid var(--neon-emerald);
  color: #fff;
  position: relative;
}

.comparison-table td.col-247agent {
  background: rgba(16, 185, 129, 0.04);
  border-left: 2px solid var(--neon-emerald);
  border-right: 2px solid var(--neon-emerald);
  color: #fff;
  font-weight: 600;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:last-child td.col-247agent {
  border-bottom: 2px solid var(--neon-emerald);
}

.table-badge-certified {
  background: var(--neon-emerald);
  color: #000;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-left: 8px;
}

.mobile-comparison-selector {
  display: none;
  gap: 8px;
  margin-bottom: 20px;
}

.mobile-comp-btn {
  flex: 1;
  padding: 12px;
  font-size: 15px; /* +2px */
  font-weight: 700;
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.mobile-comp-btn.active {
  background: var(--neon-emerald);
  color: #000;
  border-color: var(--neon-emerald);
}

/* SEZIONE 5: Catalogo Agenti (+2px Spec) */
.agent-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-24);
}

.agent-showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  padding: var(--space-32);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-smooth);
}

.agent-showcase-card:hover {
  border-color: var(--neon-emerald);
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.6), 0 0 25px var(--neon-emerald-glow);
}

.agent-num-badge {
  font-family: var(--font-mono);
  font-size: 34px; /* +2px */
  font-weight: 800;
  color: rgba(255, 255, 255, 0.15);
  position: absolute;
  top: 24px;
  right: 28px;
}

.agent-macro-area {
  font-size: 13px; /* +2px */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--neon-cyan);
  margin-bottom: 12px;
}

.agent-showcase-card h3 {
  font-size: 24px; /* +2px */
  color: #fff;
  margin-bottom: 12px;
}

.agent-focus {
  font-size: 16px; /* +2px */
  color: var(--text-muted);
  margin-bottom: 20px;
  font-style: italic;
}

.agent-tasks-list {
  list-style: none;
  margin-bottom: 24px;
  flex: 1;
}

.agent-tasks-list li {
  font-size: 17px; /* +2px */
  color: var(--text-secondary);
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.agent-tasks-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--neon-emerald);
  font-weight: 800;
}

.agent-roi-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 24px;
}

.agent-roi-box span {
  font-size: 13px; /* +2px */
  color: var(--text-muted);
  text-transform: uppercase;
  display: block;
}

.agent-roi-box strong {
  font-size: 19px; /* +2px */
  color: var(--neon-emerald);
}

/* SEZIONE 6: Integrazioni (+2px Spec) */
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.integration-item {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
  transition: var(--transition-fast);
  position: relative;
}

.integration-item:hover {
  border-color: var(--neon-cyan);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.integration-logo {
  font-family: var(--font-heading);
  font-size: 22px; /* +2px */
  font-weight: 800;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.integration-item:hover .integration-logo {
  color: #fff;
  text-shadow: 0 0 10px var(--neon-cyan-glow);
}

.integration-category {
  font-size: 13px; /* +2px */
  color: var(--text-muted);
  margin-top: 6px;
}

.integration-badge-hover {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--neon-cyan);
  color: #000;
  font-size: 11px; /* +2px */
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  opacity: 0;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.integration-item:hover .integration-badge-hover {
  opacity: 1;
  bottom: -12px;
}

/* SEZIONE 7: Governance (+2px Spec) */
.governance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.governance-card-shell {
  background: var(--bg-card);
  border: 1px solid var(--border-glow-emerald);
  border-radius: var(--radius-sm);
  padding: var(--space-32);
  box-shadow: 0 0 30px var(--neon-emerald-glow);
}

.shield-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-dark);
}

.shield-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 15px; /* +2px */
  color: var(--neon-emerald);
  font-weight: 700;
}

.audit-stamp-badge {
  background: rgba(16, 185, 129, 0.15);
  color: var(--neon-emerald);
  border: 1px solid var(--neon-emerald);
  font-family: var(--font-mono);
  font-size: 13px; /* +2px */
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
}

/* SEZIONE 8: Autonomia (+2px Spec) */
.autonomy-timeline-wrap {
  max-width: 920px;
  margin: 0 auto;
}

.autonomy-slider-control {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  padding: var(--space-32);
  margin-bottom: 40px;
}

.autonomy-level-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.autonomy-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  padding: 24px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.autonomy-step-card:hover,
.autonomy-step-card.active {
  border-color: var(--neon-indigo);
  background: rgba(99, 102, 241, 0.1);
}

.autonomy-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 14px;
  font-size: 16px; /* +2px */
}

.autonomy-step-card.active .autonomy-num {
  background: var(--neon-indigo);
}

.autonomy-step-card h4 {
  font-size: 18px; /* +2px */
  color: #fff;
  margin-bottom: 8px;
}

.autonomy-step-card p {
  font-size: 15px; /* +2px */
  color: var(--text-secondary);
}

/* SEZIONE 9: Assessment Operativo (+2px Spec) */
.builder-shell-247 {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  padding: var(--space-32);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.builder-progress-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}

.progress-step-pill {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  transition: var(--transition-fast);
}

.progress-step-pill.active {
  background: var(--neon-emerald);
}

.wizard-panel-247 {
  display: none;
}

.wizard-panel-247.active {
  display: block;
}

.form-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.choice-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.choice-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-dark);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 16px; /* +2px */
}

.choice-box:hover, .choice-box:has(input:checked) {
  border-color: var(--neon-emerald);
  background: rgba(16, 185, 129, 0.1);
  color: #fff;
}

.choice-box input[type="checkbox"],
.choice-box input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--neon-emerald);
}

label span.label-text {
  font-size: 16px; /* +2px */
  color: #fff;
  margin-bottom: 6px;
  display: block;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  background: #060608;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: #fff;
  outline: none;
  transition: var(--transition-fast);
  width: 100%;
  font-size: 17px !important; /* +2px */
  min-height: 48px;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--neon-emerald);
  box-shadow: 0 0 10px var(--neon-emerald-glow);
}

/* Dynamic Technical Report Output Card (+2px Spec) */
.technical-report-card {
  background: #060608;
  border: 1px solid var(--border-glow-emerald);
  border-radius: var(--radius-sm);
  padding: var(--space-32);
  font-family: var(--font-body);
}

.report-badge-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-dark);
}

.report-metric-row {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.report-metric-row small {
  font-size: 13px; /* +2px */
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
}

.report-metric-row strong {
  font-size: 18px; /* +2px */
  color: #fff;
}

.report-metric-row strong.accent-emerald {
  color: var(--neon-emerald);
  font-size: 22px; /* +2px */
}

/* SEZIONE 10: FAQ Accordion & Footer (+2px Spec) */
.faq-accordion-wrapper {
  max-width: 840px;
  margin: 0 auto 60px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item-247 {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  padding: var(--space-32);
  cursor: pointer;
  transition: var(--transition-fast);
}

.faq-item-247:hover {
  border-color: var(--neon-emerald);
}

.faq-item-247 summary {
  font-weight: 700;
  color: #fff;
  font-size: 20px; /* +2px */
  outline: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item-247 p {
  color: var(--text-secondary);
  margin-top: 14px;
  font-size: 17px; /* +2px */
  line-height: 1.6;
}

/* Site Footer (+2px Spec) */
.site-footer {
  background: #040406;
  border-top: 1px solid var(--border-dark);
  padding: 60px 0 30px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 17px; /* +2px */
}

.footer-links a:hover {
  color: var(--neon-emerald);
}

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 15px; /* +2px */
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* High-Tech ROI Calculator Console (+2px Spec) */
.calc-console-wrapper {
  max-width: 860px;
  margin: 0 auto;
  background: linear-gradient(160deg, #090e1b 0%, #0d1427 100%);
  border: 1px solid var(--border-glow-cyan);
  border-radius: var(--radius-sm);
  padding: var(--space-32);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px var(--neon-cyan-glow);
  position: relative;
  width: 100%;
}

.calc-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-dark);
  gap: 12px;
}

.calc-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 15px; /* +2px */
  color: var(--text-muted);
}

.calc-form-stacked {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 36px;
}

.calc-row-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  padding: 20px;
  transition: var(--transition-fast);
}

.calc-row-item:hover {
  border-color: var(--neon-indigo);
  background: rgba(99, 102, 241, 0.06);
}

.calc-label-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 18px; /* +2px */
  color: #fff;
  font-weight: 600;
}

.calc-value-badge {
  font-family: var(--font-mono);
  font-size: 17px; /* +2px */
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.1);
  padding: 4px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 240, 255, 0.25);
}

.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  cursor: pointer;
  min-height: 8px !important;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 15px var(--neon-cyan);
  cursor: pointer;
  transition: var(--transition-fast);
}

.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.calc-results-stacked {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--border-dark);
}

.calc-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  transition: var(--transition-fast);
}

.calc-metric-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.calc-metric-info span {
  font-size: 18px; /* +2px */
  font-weight: 600;
  color: #fff;
}

.calc-metric-info small {
  font-size: 15px; /* +2px */
  color: var(--text-muted);
}

.calc-metric-num {
  font-family: var(--font-heading);
  font-size: 28px; /* +2px */
  font-weight: 800;
  white-space: nowrap;
}

.calc-metric-num.neutral { color: #fff; }
.calc-metric-num.cyan { color: var(--neon-cyan); text-shadow: 0 0 15px rgba(0, 240, 255, 0.3); }
.calc-metric-num.emerald { color: var(--neon-emerald); text-shadow: 0 0 15px rgba(16, 185, 129, 0.3); }
.calc-metric-num.violet { color: var(--neon-purple); text-shadow: 0 0 20px rgba(139, 92, 246, 0.4); }

.calc-result-row.highlight-emerald {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.08);
}

.calc-result-row.highlight-banner {
  border-color: rgba(99, 102, 241, 0.5);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.15) 100%);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.2);
}

/* RESPONSIVE RULES */
@media (max-width: 1200px) {
  .main-nav { gap: 14px; }
  .main-nav a { font-size: 14px; }
}

@media (max-width: 1024px) {
  .hero-grid,
  .governance-grid,
  .builder-shell-247 { grid-template-columns: 1fr; gap: 36px; }
  .benefits-grid,
  .agent-showcase-grid,
  .autonomy-level-cards-grid { grid-template-columns: 1fr 1fr; }
  .integrations-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .system-status-pill { display: none; }
}

@media (max-width: 768px) {
  .section { margin-bottom: var(--section-gap-mobile); }
  .hero-title { font-size: 34px; }
  .section-heading h2 { font-size: 28px; }
  .main-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6, 6, 8, 0.98);
    backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 32px 24px;
    gap: 20px;
    z-index: 999;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .benefits-grid,
  .agent-showcase-grid,
  .autonomy-level-cards-grid,
  .integrations-grid { grid-template-columns: 1fr; }
  .form-grid-2col,
  .choice-grid-2col { grid-template-columns: 1fr; }
  .comparison-table-wrapper { display: none; }
  .mobile-comparison-selector { display: flex; }
  .footer-grid { flex-direction: column; align-items: flex-start; gap: 24px; }
}
