*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --night:#1c2134; --night-2:#242b44; --night-3:#2e3757;
  --brand:#4e86f7; --brand-d:#3a70e0; --ok:#00C48C; --amber:#F59E0B; --red:#EF4444;
  --blue-l:#F0F5FF; --text:#1A2B4A; --text-2:#4A5E7A; --text-3:#8A9BB0;
  --border:#DDE5F0; --white:#FFFFFF; --surface:#F7F9FC; --radius:10px; --radius-lg:18px;
}
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400; color: var(--text); background: var(--white);
  line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(28,33,52,.96); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding: 0 40px; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 32px; height: 32px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.logo-mark img { width: 32px; height: 32px; display: block; border-radius: 8px; }
.logo-name { font-size: 18px; font-weight: 700; color: var(--white); letter-spacing: -.3px; }
.logo-name span { color: var(--brand); }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { color: rgba(255,255,255,.7); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--white); }
.nav-cta { background: var(--brand); color: var(--night) !important; padding: 8px 18px; border-radius: 8px; font-weight: 600 !important; transition: background .2s !important; }
.nav-cta:hover { background: var(--brand-d) !important; }

/* HERO */
.hero {
  background: var(--night); padding: 130px 40px 80px; min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  max-width: 1200px; margin: 0 auto;
}
.hero-left { max-width: 540px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(78,134,247,.12); border: 1px solid rgba(78,134,247,.25);
  color: var(--brand); font-size: 12px; font-weight: 600;
  padding: 5px 12px; border-radius: 20px; margin-bottom: 28px; letter-spacing: .02em;
}
.hero-tag::before { content: ''; width: 6px; height: 6px; background: var(--brand); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.hero h1 { font-size: clamp(30px, 4vw, 52px); font-weight: 800; color: var(--white); line-height: 1.15; letter-spacing: -.04em; margin-bottom: 22px; }
.hero h1 .accent { color: var(--brand); }
.hero-sub { font-size: 17px; font-weight: 300; color: rgba(255,255,255,.65); line-height: 1.7; margin-bottom: 38px; max-width: 460px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary { background: var(--brand); color: var(--night); padding: 14px 28px; border-radius: var(--radius); font-weight: 700; font-size: 15px; text-decoration: none; transition: background .2s, transform .15s; display: inline-block; }
.btn-primary:hover { background: var(--brand-d); transform: translateY(-1px); }
.btn-ghost { color: rgba(255,255,255,.75); padding: 14px 24px; border-radius: var(--radius); font-weight: 500; font-size: 15px; text-decoration: none; border: 1px solid rgba(255,255,255,.15); transition: border-color .2s, color .2s; display: inline-block; }
.btn-ghost:hover { border-color: rgba(255,255,255,.4); color: var(--white); }
.hero-note { margin-top: 18px; font-size: 12px; color: rgba(255,255,255,.45); }
.hero-note a:hover { text-decoration: underline; }

/* HERO PREVIEW */
.hero-right { position: relative; }
.app-preview { background: #162849; border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-lg); padding: 24px; box-shadow: 0 40px 80px rgba(0,0,0,.4); }
.preview-bar { display: flex; align-items: center; gap: 7px; margin-bottom: 20px; }
.preview-dot { width: 10px; height: 10px; border-radius: 50%; }
.pd-r { background: #FF5F57; } .pd-y { background: #FFBD2E; } .pd-g { background: #28CA42; }
.preview-title { margin-left: 8px; font-size: 12px; color: rgba(255,255,255,.3); font-weight: 500; }
.preview-label { font-size: 10px; font-weight: 600; color: rgba(255,255,255,.3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.scad-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 8px; margin-bottom: 8px; opacity: 0; animation: rowIn .4s ease forwards; }
.scad-row:nth-child(3) { animation-delay: .3s; }
.scad-row:nth-child(4) { animation-delay: .6s; }
.scad-row:nth-child(5) { animation-delay: .9s; }
.scad-row:nth-child(6) { animation-delay: 1.2s; }
@keyframes rowIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }
.scad-row.red { background: rgba(239,68,68,.12); }
.scad-row.amber { background: rgba(245,158,11,.1); }
.scad-row.green { background: rgba(0,196,140,.08); }
.scad-row.neutral { background: rgba(255,255,255,.04); }
.scad-name { font-size: 12px; color: rgba(255,255,255,.8); font-weight: 500; }
.scad-client { font-size: 10px; color: rgba(255,255,255,.35); margin-top: 2px; }
.scad-date { font-size: 11px; font-weight: 600; }
.scad-row.red .scad-date { color: #F87171; }
.scad-row.amber .scad-date { color: #FCD34D; }
.scad-row.green .scad-date { color: var(--ok); }
.scad-row.neutral .scad-date { color: rgba(255,255,255,.4); }
.scad-badge { font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 4px; }
.scad-row.red .scad-badge { background: rgba(239,68,68,.25); color: #F87171; }
.scad-row.amber .scad-badge { background: rgba(245,158,11,.2); color: #FCD34D; }
.scad-row.green .scad-badge { background: rgba(0,196,140,.2); color: var(--ok); }
.scad-row.neutral .scad-badge { background: rgba(255,255,255,.07); color: rgba(255,255,255,.35); }
.preview-footer { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.06); display: flex; justify-content: space-between; font-size: 11px; color: rgba(255,255,255,.25); }

/* TRUST */
.trust { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 22px 40px; }
.trust-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.trust-label { font-size: 12px; font-weight: 600; color: var(--text-3); white-space: nowrap; }
.trust-items { display: flex; gap: 32px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-2); font-weight: 500; }
.trust-item svg { color: var(--brand); flex-shrink: 0; }

/* PROBLEMA */
.problem { padding: 90px 40px; background: var(--white); }
.problem-inner { max-width: 760px; margin: 0 auto; }
.section-eyebrow { font-size: 12px; font-weight: 600; color: var(--brand); letter-spacing: .06em; margin-bottom: 16px; }
.problem h2 { font-size: clamp(24px, 3vw, 40px); font-weight: 700; line-height: 1.25; color: var(--text); margin-bottom: 24px; letter-spacing: -.03em; }
.problem p { font-size: 16px; font-weight: 300; color: var(--text-2); line-height: 1.8; margin-bottom: 18px; }
.problem-highlight { background: #FFF8F0; border-left: 3px solid var(--amber); padding: 16px 20px; border-radius: 0 8px 8px 0; font-size: 15px; font-weight: 500; color: var(--text); margin-top: 28px; }

/* FEATURES */
.features { padding: 90px 40px; background: var(--surface); }
.features-inner { max-width: 1200px; margin: 0 auto; }
.features-header { max-width: 560px; margin-bottom: 56px; }
.features h2 { font-size: clamp(24px, 3vw, 38px); font-weight: 700; line-height: 1.25; letter-spacing: -.03em; color: var(--text); margin-bottom: 14px; }
.features-sub { font-size: 15px; color: var(--text-2); font-weight: 300; line-height: 1.7; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feat-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; transition: border-color .2s, box-shadow .2s; }
.feat-card:hover { border-color: var(--brand); box-shadow: 0 4px 24px rgba(78,134,247,.1); }
.feat-icon { width: 44px; height: 44px; background: rgba(78,134,247,.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.feat-icon svg { width: 22px; height: 22px; stroke: var(--brand); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feat-card h3 { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.feat-card p { font-size: 14px; font-weight: 300; color: var(--text-2); line-height: 1.7; }

/* COME FUNZIONA */
.how { padding: 90px 40px; background: var(--white); }
.how-inner { max-width: 900px; margin: 0 auto; }
.how h2 { font-size: clamp(24px, 3vw, 38px); font-weight: 700; letter-spacing: -.03em; color: var(--text); margin-bottom: 52px; }
.steps { display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 24px; padding-bottom: 40px; position: relative; }
.step:last-child { padding-bottom: 0; }
.step:last-child .step-line { display: none; }
.step:not(:last-child) .step-line { position: absolute; left: 27px; top: 56px; bottom: 0; width: 2px; background: var(--border); }
.step-num { width: 56px; height: 56px; background: var(--night); color: var(--white); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; flex-shrink: 0; position: relative; z-index: 1; }
.step-content { padding-top: 14px; }
.step-content h3 { font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.step-content p { font-size: 14px; font-weight: 300; color: var(--text-2); line-height: 1.7; }

/* LOGICA DI CALCOLO */
.types { padding: 90px 40px; background: var(--night); }
.types-inner { max-width: 1200px; margin: 0 auto; }
.types h2 { font-size: clamp(24px, 3vw, 38px); font-weight: 700; letter-spacing: -.03em; color: var(--white); margin-bottom: 12px; }
.types-sub { font-size: 15px; color: rgba(255,255,255,.55); font-weight: 300; margin-bottom: 48px; max-width: 680px; }
.types-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.type-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-lg); padding: 26px; min-width: 0; }
.type-badge { display: inline-block; font-size: 10px; font-weight: 700; padding: 4px 10px; border-radius: 20px; margin-bottom: 16px; letter-spacing: .04em; }
.tb-blue { background: rgba(59,130,246,.2); color: #93C5FD; }
.tb-red { background: rgba(239,68,68,.2); color: #FCA5A5; }
.tb-purple { background: rgba(139,92,246,.2); color: #C4B5FD; }
.tb-teal { background: rgba(0,196,140,.15); color: var(--ok); }
.type-card h3 { font-size: 15px; font-weight: 600; color: var(--white); margin-bottom: 8px; line-height: 1.4; }
.type-desc { font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.6; margin-bottom: 16px; font-weight: 300; }
.type-scad { display: flex; flex-direction: column; gap: 10px; }
.ts-item { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: rgba(255,255,255,.7); line-height: 1.5; }
.ts-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; margin-top: 7px; }
.ts-dot.g { background: var(--ok); } .ts-dot.a { background: var(--amber); } .ts-dot.r { background: var(--red); }
.type-shot { display: block; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); background: #0f1424; }
.type-shot img { display: block; width: 100%; height: auto; }

/* PRICING */
.pricing { padding: 90px 40px; background: var(--white); }
.pricing-inner { max-width: 900px; margin: 0 auto; }
.pricing-header { margin-bottom: 48px; }
.pricing h2 { font-size: clamp(24px, 3vw, 38px); font-weight: 700; letter-spacing: -.03em; color: var(--text); margin-bottom: 12px; }
.pricing-sub { font-size: 15px; color: var(--text-2); font-weight: 300; }
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.price-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; position: relative; transition: border-color .2s, box-shadow .2s; }
.price-card:hover { border-color: var(--brand); box-shadow: 0 8px 32px rgba(78,134,247,.1); }
.price-card.featured { border-color: var(--brand); background: var(--night); }
.featured-label { position: absolute; top: -12px; left: 24px; background: var(--brand); color: var(--night); font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 20px; letter-spacing: .04em; }
.price-plan { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.price-card.featured .price-plan { color: rgba(255,255,255,.5); }
.price-amount { font-size: 42px; font-weight: 800; color: var(--text); line-height: 1; letter-spacing: -.04em; margin-bottom: 4px; }
.price-amount sup { font-size: 20px; font-weight: 600; vertical-align: super; }
.price-amount sub { font-size: 14px; font-weight: 400; color: var(--text-3); }
.price-desc { font-size: 13px; color: var(--text-3); margin-bottom: 28px; font-weight: 300; }
.price-features { list-style: none; margin-bottom: 28px; }
.price-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-2); padding: 7px 0; border-bottom: 1px solid var(--border); font-weight: 300; }
.price-card.featured .price-features li { color: rgba(255,255,255,.7); border-bottom-color: rgba(255,255,255,.08); }
.price-features li:last-child { border-bottom: none; }
.price-features li.no, .price-features li.no .check { color: var(--text-3); }
.check { color: var(--brand); font-size: 14px; flex-shrink: 0; margin-top: 2px; }
.price-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.po { border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 16px; }
.po.best { border-color: var(--brand); background: rgba(78,134,247,.12); }
.po-amount { font-size: 30px; font-weight: 800; color: var(--white); letter-spacing: -.04em; line-height: 1; }
.po-amount sup { font-size: 15px; font-weight: 600; vertical-align: super; }
.po-amount sub { font-size: 13px; font-weight: 400; color: rgba(255,255,255,.5); }
.po-note { font-size: 12px; color: rgba(255,255,255,.55); margin-top: 8px; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn-price-primary { display: block; width: 100%; background: var(--brand); color: var(--night); text-align: center; padding: 14px; border-radius: var(--radius); font-weight: 700; font-size: 15px; text-decoration: none; transition: background .2s; }
.btn-price-primary:hover { background: var(--brand-d); }
.btn-row .btn-price-primary { font-size: 14px; padding: 14px 10px; }
.btn-price-ghost { display: block; width: 100%; background: transparent; border: 1.5px solid var(--border); color: var(--text); text-align: center; padding: 14px; border-radius: var(--radius); font-weight: 600; font-size: 15px; text-decoration: none; transition: border-color .2s; }
.btn-price-ghost:hover { border-color: var(--text-2); }
.btn-price-ghost-dark { display: block; text-align: center; padding: 14px 10px; border: 1.5px solid rgba(255,255,255,.25); color: var(--white); border-radius: var(--radius); font-weight: 600; font-size: 14px; text-decoration: none; }
.btn-price-ghost-dark:hover { border-color: rgba(255,255,255,.6); }
.price-help { margin-top: 32px; font-size: 14px; color: var(--text-2); max-width: 640px; line-height: 1.7; }

/* FAQ */
.faq { padding: 90px 40px; background: var(--surface); }
.faq-inner { max-width: 720px; margin: 0 auto; }
.faq h2 { font-size: clamp(22px, 3vw, 34px); font-weight: 700; letter-spacing: -.03em; color: var(--text); margin-bottom: 44px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-q { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.faq-a { font-size: 14px; font-weight: 300; color: var(--text-2); line-height: 1.75; }

/* CTA FINALE */
.cta-final { background: var(--night); padding: 100px 40px; text-align: center; }
.cta-final h2 { font-size: clamp(26px, 4vw, 48px); font-weight: 800; letter-spacing: -.04em; color: var(--white); line-height: 1.15; margin: 0 auto 20px; max-width: 640px; }
.cta-final p { font-size: 16px; color: rgba(255,255,255,.5); font-weight: 300; margin-bottom: 36px; }

/* FOOTER */
footer { background: #0A1628; padding: 40px; border-top: 1px solid rgba(255,255,255,.06); }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,.35); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-links a { font-size: 12px; color: rgba(255,255,255,.4); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: rgba(255,255,255,.75); }
.footer-social { display: flex; gap: 14px; align-items: center; }
.footer-links .footer-social a { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; color: rgba(255,255,255,.6); }
.footer-social a:hover { color: var(--white); border-color: rgba(255,255,255,.5); }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }

/* RESPONSIVE */
@media (max-width: 900px) {
  nav { padding: 0 16px; }
  .nav-links { gap: 14px; }
  .nav-links li:not(:nth-last-child(-n+2)) { display: none; }
  .nav-cta { padding: 7px 12px; }
  .hero { grid-template-columns: 1fr; padding: 100px 20px 60px; gap: 40px; min-height: 0; }
  .hero-right { display: none; }
  .feat-grid { grid-template-columns: 1fr; }
  .types-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .problem, .features, .how, .types, .pricing, .faq, .cta-final { padding: 60px 20px; }
  .trust { padding: 20px; }
  .trust-inner { gap: 16px; }
  .trust-items { gap: 16px 24px; }
  footer { padding: 32px 20px; }
}
@media (max-width: 600px) {
  .price-options, .btn-row { grid-template-columns: 1fr; }
  .price-card { padding: 24px 20px; }
  .step { grid-template-columns: 44px 1fr; gap: 16px; }
  .step-num { width: 44px; height: 44px; font-size: 17px; }
  .step:not(:last-child) .step-line { left: 21px; top: 44px; }
  .hero-actions .btn-primary, .hero-actions .btn-ghost { width: 100%; text-align: center; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .scad-row { animation: none; opacity: 1; }
  .hero-tag::before { animation: none; }
  .btn-primary:hover { transform: none; }
}
