:root {
  --bg: #0b0e14;
  --panel: #131722;
  --panel-2: #1a1f2e;
  --line: #262c3d;
  --text: #e6e9f0;
  --muted: #8a93a8;
  --accent: #2962ff;
  --accent-2: #4d82ff;
  --up: #26a69a;
  --down: #ef5350;
  --radius: 14px;
  --maxw: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* barra in alto */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(11, 14, 20, 0.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.2px; }
.brand svg { width: 26px; height: 26px; }
.brand img { width: auto; height: 22px; object-fit: contain; }
.nav nav { display: flex; align-items: center; gap: 26px; color: var(--muted); font-size: 14.5px; }
.nav nav a:hover { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--text); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:hover { background: #222939; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.lg { padding: 14px 26px; font-size: 16px; border-radius: 12px; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* hero */
.hero { position: relative; padding: 88px 0 56px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -200px -10% auto -10%; height: 560px; pointer-events: none;
  background: radial-gradient(60% 60% at 50% 0%, rgba(41, 98, 255, 0.28), transparent 70%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 13px; background: var(--panel); }
h1 { font-size: clamp(34px, 5.4vw, 56px); line-height: 1.08; letter-spacing: -0.02em; margin: 18px 0 18px; }
h1 em { font-style: normal; color: var(--accent-2); }
.lead { color: var(--muted); font-size: 18px; max-width: 520px; margin: 0 0 30px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.note { color: var(--muted); font-size: 13.5px; margin-top: 14px; }

.chart-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.chart-top { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); padding: 2px 4px 10px; }
.chart-top b { color: var(--text); font-weight: 600; }
.chart-top .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--up); }
.chart-card svg { width: 100%; height: auto; display: block; }

/* sezioni */
section { padding: 72px 0; }
section.alt { background: var(--panel); border-block: 1px solid var(--line); }
h2 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 12px; }
.sub { color: var(--muted); max-width: 640px; margin: 0 0 40px; font-size: 17px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
section.alt .card { background: var(--bg); }
.card .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(41, 98, 255, 0.14); color: var(--accent-2); margin-bottom: 14px; }
.card .ico svg { width: 21px; height: 21px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { position: relative; padding: 24px 24px 24px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 12px; }
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

details { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 16px 20px; margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::after { content: "+"; color: var(--muted); font-size: 20px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; font-size: 15px; }

.final { text-align: center; }
.final .sub { margin-inline: auto; }

footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 13.5px; }
footer .row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer p { margin: 0 0 8px; max-width: 760px; }
footer a:hover { color: var(--text); }

/* pagine di accesso */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; position: relative; }
.auth::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 40% at 50% 0%, rgba(41, 98, 255, 0.22), transparent 70%); }
.auth-box { position: relative; width: 100%; max-width: 410px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 30px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.auth-box .brand { justify-content: center; margin-bottom: 18px; }
.auth-box h1 { font-size: 24px; margin: 0 0 6px; text-align: center; letter-spacing: -0.01em; }
.auth-box .hint { text-align: center; color: var(--muted); font-size: 14.5px; margin: 0 0 22px; }
label { display: block; font-size: 13.5px; color: var(--muted); margin: 14px 0 6px; }
input[type="email"], input[type="password"] {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: inherit; font-size: 16px;
}
input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(41, 98, 255, 0.25); }
.auth-box .btn { width: 100%; margin-top: 22px; }
.err { min-height: 20px; margin-top: 14px; color: var(--down); font-size: 14px; text-align: center; }
.switch { text-align: center; margin-top: 18px; color: var(--muted); font-size: 14.5px; }
.switch a { color: var(--accent-2); font-weight: 600; }
.legal { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 14px; }

@media (max-width: 880px) {
  .hero { padding-top: 56px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .grid, .steps { grid-template-columns: 1fr; }
  .nav nav a.hide-m { display: none; }
  section { padding: 52px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
