:root {
  --bg: #04101d;
  --bg-2: #09172b;
  --panel: rgba(10, 21, 40, 0.72);
  --panel-2: rgba(9, 19, 37, 0.94);
  --card: rgba(255, 255, 255, 0.04);
  --line: rgba(138, 183, 255, 0.12);
  --text: #eef5ff;
  --muted: #9db4d5;
  --primary: #39ceff;
  --primary-2: #1b74ff;
  --success: #8af6c9;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --radius: 28px;
  --radius-md: 22px;
  --radius-sm: 18px;
  --max: 1220px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 15%, rgba(27, 116, 255, 0.22), transparent 25%),
    radial-gradient(circle at 84% 12%, rgba(57, 206, 255, 0.18), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(27, 116, 255, 0.15), transparent 36%),
    linear-gradient(180deg, #04101d 0%, #061222 40%, #081528 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible,
.btn:focus-visible {
  outline: 2px solid #7ed5ff;
  outline-offset: 2px;
}

.noscript-notice {
  width: min(calc(100% - 32px), var(--max));
  margin: 12px auto 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.92rem;
  color: #d5ebff;
  border: 1px solid rgba(114, 183, 255, 0.28);
  background: rgba(27, 116, 255, 0.14);
}

.container {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.section-spacing {
  padding: clamp(36px, 6vw, 64px) 0;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(4, 12, 24, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(0,0,0,0.25);
}

.brand-name {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 0.96rem;
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: rgba(126, 213, 255, 0.65);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-links a:hover {
  color: white;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 14px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: 180ms ease;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
}

.btn-secondary {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border-color: rgba(255,255,255,0.09);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.07);
}

.hero {
  padding-top: clamp(28px, 5vw, 58px);
}

.hero-grid,
.split-layout {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: clamp(22px, 3vw, 34px);
}

.hero-grid {
  align-items: start;
}

.split-layout {
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  color: #d5ebff;
  background: rgba(51, 114, 255, 0.12);
  border: 1px solid rgba(114, 183, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  margin-bottom: 18px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 14px rgba(138,246,201,0.9);
  flex: 0 0 auto;
}

h1 {
  margin: 0;
  font-size: clamp(2.7rem, 5.6vw, 5.5rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
  max-width: 760px;
  text-wrap: balance;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #bfdcff 48%, #49d8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.14rem);
  line-height: 1.7;
  max-width: 64ch;
  margin: 24px 0 28px;
}

.hero-actions,
.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.center { justify-content: center; }

.hero-stats,
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hero-stats { margin-top: 26px; }

.stat,
.card,
.feature-row,
.panel,
.mini,
.quote,
.final-cta,
.spotlight {
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.stat {
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255,255,255,0.04);
}

.stat strong {
  display: block;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.stat span {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.hero-card {
  position: relative;
  padding: clamp(20px, 2.2vw, 28px);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(11,24,48,0.88), rgba(8,18,35,0.95));
  border: 1px solid rgba(133, 180, 255, 0.14);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.05);
  overflow: hidden;
}

.hero-card-glow {
  position: absolute;
  inset: -10% auto auto 0;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(57,206,255,0.22), transparent 70%);
  pointer-events: none;
}

.interface-top,
.panel-label,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.hero-logo-round {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 12px 26px rgba(0,0,0,0.22);
}

.logo-box h3 {
  margin: 0;
  font-size: 1.24rem;
  letter-spacing: -0.03em;
}

.logo-box p,
.brand-panel p,
.section-desc,
.card p,
.feature-row span,
.spotlight p,
.check span,
.final-cta p,
.footer-inner {
  color: var(--muted);
}

.logo-box p {
  margin: 4px 0 0;
  font-size: 0.92rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(138,246,201,0.08);
  border: 1px solid rgba(138,246,201,0.18);
  color: #d8ffee;
  font-size: 0.9rem;
  white-space: nowrap;
}

.brand-panel {
  margin: 18px 0 14px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.04);
}

.hero-logo-wide {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  margin-bottom: 8px;
}

.brand-panel p {
  margin: 0;
  line-height: 1.65;
}

.live-panel {
  display: grid;
  gap: 14px;
}

.panel {
  background: rgba(255,255,255,0.035);
  border-radius: 22px;
  padding: 16px;
}

.panel-live {
  color: var(--success);
}

.conversation {
  display: grid;
  gap: 10px;
}

.bubble {
  padding: 12px 14px;
  border-radius: 18px;
  max-width: 92%;
  font-size: 0.94rem;
  line-height: 1.55;
}

.bubble.user {
  margin-left: auto;
  background: rgba(255,255,255,0.05);
}

.bubble.ai {
  background: linear-gradient(135deg, rgba(57,206,255,0.16), rgba(27,116,255,0.15));
  border: 1px solid rgba(85,194,255,0.18);
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mini,
.card,
.feature-row {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.035);
}

.mini strong,
.card h3,
.feature-row strong {
  display: block;
  margin: 0 0 6px;
}

.mini span,
.card p,
.feature-row span,
.check span {
  font-size: 0.95rem;
  line-height: 1.65;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-kicker {
  color: #81d1ff;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 10px;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.3rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.section-desc {
  max-width: 700px;
  font-size: 1.02rem;
  line-height: 1.75;
}

.section-actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

#vantaggi .section-head {
  display: block;
  margin-bottom: 20px;
}

#vantaggi .section-desc {
  margin: 12px 0 0;
  max-width: 72ch;
}

#controllo .section-head {
  display: block;
  margin-bottom: 20px;
}

#controllo .section-desc {
  margin: 12px 0 0;
  max-width: 72ch;
}

#come-funziona .section-head {
  display: block;
  margin-bottom: 20px;
}

#come-funziona .section-desc {
  margin: 12px 0 0;
  max-width: 72ch;
}

.card {
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: auto -30px -55px auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(57,206,255,0.16), transparent 70%);
  pointer-events: none;
}

.icon,
.step-number {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(57,206,255,0.16), rgba(27,116,255,0.16));
  border: 1px solid rgba(85,194,255,0.18);
  font-size: 1.2rem;
}

.step-number {
  font-weight: 800;
  font-size: 1rem;
}

.feature-stack {
  display: grid;
  gap: 14px;
}

.feature-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}

.spotlight {
  padding: 26px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 80% 15%, rgba(57,206,255,0.18), transparent 26%),
    linear-gradient(180deg, rgba(11,24,48,0.9), rgba(8,18,35,0.95));
}

.spotlight h3 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 2vw, 2.3rem);
  letter-spacing: -0.04em;
}

.spotlight p {
  line-height: 1.8;
  margin: 0 0 22px;
}

.checklist {
  display: grid;
  gap: 12px;
}

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.check i {
  font-style: normal;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: rgba(138,246,201,0.12);
  border: 1px solid rgba(138,246,201,0.18);
  color: #b8ffe0;
  margin-top: 1px;
}

.quote {
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(10,20,39,0.95), rgba(10,18,34,0.96));
  text-align: center;
  font-size: clamp(1.3rem, 2vw, 2rem);
  line-height: 1.45;
  letter-spacing: -0.03em;
}

.quote strong {
  color: #4ed6ff;
}

.final-cta {
  padding: 36px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 16% 20%, rgba(27,116,255,0.22), transparent 24%),
    radial-gradient(circle at 84% 20%, rgba(57,206,255,0.2), transparent 24%),
    linear-gradient(180deg, rgba(12,25,49,0.95), rgba(9,18,36,0.98));
  box-shadow: var(--shadow);
  text-align: center;
}

.final-cta h2 {
  margin-bottom: 12px;
}

.final-cta p {
  margin: 0 auto 24px;
  max-width: 760px;
  line-height: 1.8;
  font-size: 1.03rem;
}

footer {
  padding: 30px 0 50px;
  color: var(--muted);
  font-size: 0.92rem;
}

.demo-modal-open {
  overflow: hidden;
}

.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
}

.demo-modal.is-open {
  display: grid;
  place-items: center;
}

.demo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 8, 16, 0.72);
  backdrop-filter: blur(2px);
}

.demo-modal__panel {
  position: relative;
  width: min(94vw, 560px);
  background: linear-gradient(180deg, rgba(11,24,48,0.96), rgba(8,18,35,0.98));
  border: 1px solid rgba(133, 180, 255, 0.18);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.demo-modal__panel h3 {
  margin: 0;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

.demo-modal__panel p {
  margin: 8px 0 18px;
  color: var(--muted);
}

.demo-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
}

.demo-modal__close:hover {
  background: rgba(255,255,255,0.1);
}

.demo-form {
  display: grid;
  gap: 12px;
}

.demo-field {
  display: grid;
  gap: 6px;
}

.demo-field span,
.demo-form__hint {
  font-size: 0.86rem;
  color: var(--muted);
}

.demo-field input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  padding: 11px 12px;
  font: inherit;
}

.demo-field input::placeholder {
  color: #b8c9df;
}

.demo-field input:focus-visible {
  outline: 2px solid #7ed5ff;
  outline-offset: 1px;
}

.demo-form__error {
  min-height: 18px;
  color: #ffb3b3;
  font-size: 0.9rem;
}

.demo-form__ok {
  min-height: 18px;
  color: #b8ffe0;
  font-size: 0.9rem;
}

.demo-submit {
  width: 100%;
}

.hidden {
  display: none !important;
}

.demo-call-panel {
  width: min(95vw, 720px);
}

.demo-live {
  margin-top: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  overflow: hidden;
}

.demo-live__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
}

.demo-live__status {
  color: #b8ffe0;
  font-size: 0.8rem;
}

.demo-live__list {
  max-height: 300px;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.demo-live__bubble {
  max-width: 92%;
  padding: 8px 10px;
  border-radius: 10px;
  line-height: 1.45;
  font-size: 0.92rem;
}

.demo-live__bubble small {
  display: block;
  opacity: 0.75;
  margin-bottom: 3px;
}

.demo-live__bubble.user {
  align-self: flex-start;
  background: rgba(59, 130, 246, 0.28);
  border: 1px solid rgba(96, 165, 250, 0.35);
}

.demo-live__bubble.ai {
  align-self: flex-end;
  background: rgba(16, 185, 129, 0.28);
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.footer-inner {
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

.no-js .fade-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1080px) {
  .hero-grid,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 22px;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .nav .btn {
    width: auto;
    padding: 10px 14px;
    font-size: 0.9rem;
  }

  .grid-3,
  .hero-stats,
  .panel-grid {
    grid-template-columns: 1fr;
  }

  .container {
    width: min(calc(100% - 24px), var(--max));
  }

  h1 {
    font-size: clamp(2.35rem, 9vw, 4rem);
  }

  .interface-top {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .status-pill {
    margin-left: auto;
  }

  .brand-panel p {
    line-height: 1.55;
  }

  .btn {
    width: 100%;
  }

  .hero-actions .btn,
  .cta-row .btn {
    width: auto;
    flex: 1 1 220px;
  }
}

@media (max-width: 560px) {
  .nav-inner {
    padding: 14px 0;
    gap: 10px;
  }

  .hero {
    padding-top: 36px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .nav .btn {
    padding: 9px 12px;
    font-size: 0.86rem;
  }

  .hero-card,
  .spotlight,
  .quote,
  .final-cta {
    padding: 20px;
  }

  .bubble {
    max-width: 100%;
  }

  .lead {
    line-height: 1.6;
  }

  .hero-actions .btn,
  .cta-row .btn {
    width: 100%;
    flex-basis: 100%;
  }
}
