:root {
  --bg: #020617;
  --bg-alt: #030712;
  --card: #020617;
  --accent: #4f46e5;
  --accent-soft: rgba(79, 70, 229, 0.18);
  --accent-secondary: #22c55e;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.32);
  --radius-lg: 18px;
  --radius-xl: 26px;
  --shadow-soft: 0 24px 70px rgba(15, 23, 42, 0.9);
  --max-width: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at top, rgba(30, 64, 175, 0.35), transparent 55%),
    radial-gradient(circle at bottom, rgba(34, 197, 94, 0.18), transparent 60%),
    #020617;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Announcement */
.announcement {
  background: linear-gradient(90deg, #22c55e, #4f46e5);
  color: #020617;
  font-size: 0.8rem;
  padding: 8px 0;
}
.announcement-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.announcement-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  cursor: pointer;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.88));
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0;
}
.logo svg {
  height: 80px;
  width: auto;
}

@media (max-width: 960px) {
  .logo svg {
    height: 60px;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.9rem;
  color: var(--muted);
}
.nav a {
  position: relative;
  padding: 4px 0;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #22c55e, #4f46e5);
  border-radius: 999px;
  transition: width 0.18s ease;
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { width: 100%; }

.btn {
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.85rem;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 500;
  white-space: nowrap;
}
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: rgba(148, 163, 184, 0.5);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(248, 250, 252, 0.9);
}
.btn-primary {
  background: linear-gradient(135deg, #4f46e5, #22c55e);
  color: #f9fafb;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.45);
}

/* Hero */
.hero {
  padding: 60px 0 70px;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a5b4fc;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #4f46e5);
  box-shadow: 0 0 0 6px rgba(79, 70, 229, 0.3);
}
.hero-title {
  font-size: clamp(2.2rem, 3vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}
.hero-title span.gradient {
  background: linear-gradient(120deg, #a5b4fc, #22c55e);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-subtitle {
  font-size: 0.98rem;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 18px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.pill-soft {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 0.78rem;
  padding: 4px 10px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pill-soft span.badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  background: rgba(34, 197, 94, 0.16);
  color: #bbf7d0;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.hero-note { font-size: 0.8rem; color: var(--muted); }

.hero-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin-top: 16px;
  font-size: 0.84rem;
  color: var(--muted);
}
.hero-benefits span.icon { margin-right: 4px; }

.hero-right { position: relative; perspective: 1400px; }
.mockup-shell {
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at top left, #1e293b, #020617 55%, #000 100%);
  padding: 14px 14px 18px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.4);
  transform: rotateY(-12deg) rotateX(5deg);
  transform-origin: center left;
}
.mockup-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.topbar-dots { display: flex; gap: 6px; }
.topbar-dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(148, 163, 184, 0.6);
}
.topbar-dots span:nth-child(1) { background: #ef4444; }
.topbar-dots span:nth-child(2) { background: #f59e0b; }
.topbar-dots span:nth-child(3) { background: #22c55e; }
.mockup-url {
  flex: 1;
  margin: 0 12px;
  background: rgba(15, 23, 42, 0.96);
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  padding: 4px 12px;
  font-size: 0.7rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.mockup-url span.dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #22c55e;
}

.mockup-body {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  margin-top: 6px;
}
.mockup-sidebar {
  background: rgba(15, 23, 42, 0.98);
  border-radius: 16px;
  padding: 12px 10px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  font-size: 0.76rem;
}
.mockup-sidebar h4 {
  font-size: 0.8rem;
  margin-bottom: 10px;
  color: #e5e7eb;
}
.sidebar-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  color: var(--muted);
}
.sidebar-item span.badge {
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.16);
  color: #bbf7d0;
}

.mockup-main {
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.3), transparent 55%);
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mockup-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  color: var(--muted);
}
.mockup-meta span.tag {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
}
.mockup-title {
  font-size: 0.98rem;
  font-weight: 600;
  margin-top: 4px;
}
.mockup-text {
  font-size: 0.8rem;
  color: var(--muted);
}
.mockup-player {
  margin-top: 10px;
  background: rgba(15, 23, 42, 0.98);
  border-radius: 12px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.5);
}
.play-btn {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #4ade80);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  color: #052e16;
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.6);
}
.timeline {
  height: 4px;
  border-radius: 999px;
  background: rgba(31, 41, 55, 0.9);
  position: relative;
  overflow: hidden;
}
.timeline-fill {
  position: absolute;
  inset: 0;
  width: 42%;
  background: linear-gradient(90deg, #22c55e, #4f46e5);
}
.time-label { font-size: 0.7rem; color: var(--muted); }

.mockup-floating-card {
  position: absolute;
  bottom: -24px;
  right: -4px;
  width: 240px;
  background: rgba(15, 23, 42, 0.98);
  border-radius: 18px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: var(--shadow-soft);
  font-size: 0.78rem;
}
.floating-label { font-size: 0.72rem; color: var(--muted); margin-bottom: 4px; }
.floating-title { font-size: 0.86rem; font-weight: 600; margin-bottom: 4px; }
.floating-text { font-size: 0.74rem; color: var(--muted); }

/* Sections */
section { padding: 46px 0; }
.section-header { max-width: 640px; margin-bottom: 26px; }
.section-kicker {
  font-size: 0.8rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: #818cf8; margin-bottom: 6px;
}
.section-title { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 6px; }
.section-subtitle { font-size: 0.92rem; color: var(--muted); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.step-card {
  background: rgba(15, 23, 42, 0.96);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 14px 14px 16px;
  font-size: 0.86rem;
  position: relative;
  overflow: hidden;
}
.step-index {
  width: 24px; height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  margin-bottom: 8px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.benefit-card {
  background: rgba(15, 23, 42, 0.96);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 14px 14px 16px;
  font-size: 0.86rem;
}
.benefit-title { font-weight: 600; margin-bottom: 4px; }
.benefit-card p { color: var(--muted); }

.personas-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.persona-card {
  background: rgba(15, 23, 42, 0.96);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 14px 14px 16px;
  font-size: 0.86rem;
}
.persona-role { font-size: 0.8rem; color: #a5b4fc; text-transform: uppercase; letter-spacing: 0.09em; margin-bottom: 4px; }
.persona-title { font-weight: 600; margin-bottom: 4px; }
.persona-card p { color: var(--muted); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.price-card {
  background: rgba(15, 23, 42, 0.96);
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 18px 18px 20px;
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.price-card--highlight {
  border-color: rgba(129, 140, 248, 0.9);
  box-shadow: var(--shadow-soft);
  background:
    radial-gradient(circle at top, rgba(79, 70, 229, 0.55), transparent 55%),
    rgba(15, 23, 42, 0.96);
}
.price-label { font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: #a5b4fc; }
.price-name { font-size: 1.02rem; font-weight: 700; }
.price-value { font-size: 1.4rem; font-weight: 700; margin-top: 4px; }
.price-period { font-size: 0.78rem; color: var(--muted); margin-left: 4px; }
.price-note { font-size: 0.8rem; color: var(--muted); }
.price-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 6px 0 10px;
  padding-left: 0;
}
.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.84rem;
  color: var(--muted);
}
.price-features li span.check { color: #4ade80; font-size: 0.85rem; margin-top: 1px; }
.price-card .btn { width: 100%; justify-content: center; margin-top: auto; }

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.tech-card {
  background: rgba(15, 23, 42, 0.96);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 14px 14px 16px;
  font-size: 0.86rem;
}
.tech-title { font-weight: 600; margin-bottom: 4px; }
.tech-card p { color: var(--muted); }

.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.96);
  overflow: hidden;
}
.faq-question {
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}
.faq-toggle { font-size: 1.1rem; color: var(--muted); }
.faq-answer {
  padding: 0 14px 10px;
  font-size: 0.86rem;
  color: var(--muted);
  display: none;
}
.faq-item.open .faq-answer { display: block; }

.cta-final {
  text-align: center;
  padding: 40px 0 50px;
}
.cta-final h2 { font-size: 1.6rem; margin-bottom: 10px; letter-spacing: -0.03em; }
.cta-final p { font-size: 0.94rem; color: var(--muted); max-width: 540px; margin: 0 auto 18px; }

footer {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  padding: 20px 0 30px;
  background: #020617;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--muted);
}
.footer-columns { display: flex; flex-wrap: wrap; gap: 40px; }
.footer-col-title { font-size: 0.8rem; font-weight: 600; margin-bottom: 6px; color: #e5e7eb; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 4px; }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-right { order: -1; }
  .mockup-shell { transform: none; }
  .mockup-floating-card { display: none; }
  
  /* Mockup su mobile: colonna singola */
  .mockup-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  
  .steps-grid,
  .benefits-grid,
  .personas-grid,
  .pricing-grid,
  .tech-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .hero { padding-top: 36px; }
  section { padding: 36px 0; }
  .hero-benefits { grid-template-columns: minmax(0, 1fr); }
  
  /* Ulteriori aggiustamenti mobile */
  .container { padding: 0 16px; }
  .hero-title { font-size: 1.8rem; }
  .mockup-shell { padding: 10px; }
  .mockup-sidebar { font-size: 0.72rem; }
}

/* Mobile Navigation */
.nav {
  display: flex;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.95));
  backdrop-filter: blur(12px);
  padding: 20px;
  flex-direction: column;
  gap: 16px;
  z-index: 999;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  padding: 12px 16px;
  border-radius: 8px;
  transition: background 0.2s;
}

.mobile-menu a:hover {
  background: rgba(79, 70, 229, 0.1);
}

@media (max-width: 960px) {
  .nav {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }
  
  /* Nascondi i bottoni Login + Start free trial su mobile */
  .header-inner > div:last-child {
    display: none !important;
  }
}

/* Modal Login Styles */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}
.modal.open {
  display: flex;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  cursor: pointer;
}
.modal-content {
  position: relative;
  background: linear-gradient(135deg, #020617 0%, #0f172a 100%);
  border-radius: 24px;
  padding: 40px;
  max-width: 460px;
  width: 90%;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9);
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: var(--muted);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
  color: #ef4444;
}
.modal-header {
  text-align: center;
  margin-bottom: 32px;
}
.modal-header .logo-mark {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-header h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--text);
}
.modal-header p {
  font-size: 0.88rem;
  color: var(--muted);
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text);
}
.form-group input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.5);
  color: var(--text);
  font-size: 0.94rem;
  transition: all 0.2s;
}
.form-group input:focus {
  outline: none;
  border-color: #4f46e5;
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}
.form-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
  color: #fca5a5;
  font-size: 0.85rem;
}
.btn-block {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 0.95rem;
}
.modal-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}
.modal-footer a {
  color: #a5b4fc;
  text-decoration: none;
  font-weight: 500;
}
.modal-footer a:hover {
  color: #4f46e5;
  text-decoration: underline;
}
@media (max-width: 540px) {
  .modal-content {
    padding: 28px 24px;
    max-width: 95%;
  }
  .modal-header h2 {
    font-size: 1.3rem;
  }
}
