:root {
  --bg: #f6f5ff;
  --surface: #ffffff;
  --surface-2: #eeedfd;
  --text: #1e1b4b;
  --muted: #565379;
  --accent: #6366f1;
  --accent-strong: #4f46e5;
  --accent-soft: #e0e0ff;
  --border: #dddcf5;
  --shadow: 0 10px 30px -12px rgba(49, 46, 129, 0.25);
  --radius: 18px;
  --max: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0e1f;
    --surface: #18172e;
    --surface-2: #211f3d;
    --text: #ecebff;
    --muted: #aeacd3;
    --accent: #8b8ef8;
    --accent-strong: #a5a8fb;
    --accent-soft: #2b2a55;
    --border: #2e2c50;
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-strong); }
img { max-width: 100%; height: auto; display: block; }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.brand img { width: 28px; height: 28px; }
.site-nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}
.site-nav a:hover { color: var(--text); }
.lang-switch {
  display: flex;
  gap: 4px;
  font-size: 13px;
}
.lang-switch a {
  padding: 4px 8px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
}
.lang-switch a[aria-current="true"] {
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: var(--accent-strong); transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-small { padding: 8px 14px; font-size: 14px; border-radius: 10px; box-shadow: none; }

/* Hero */
.hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(ellipse 60% 50% at 10% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent),
    radial-gradient(ellipse 50% 60% at 100% 30%, color-mix(in srgb, #c084fc 14%, transparent), transparent);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent-strong);
}
.lead {
  font-size: 19px;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 34em;
}
.proof {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}
.hero-shot {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* Sections */
section { padding: 72px 0; }
section h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 32px;
}
.alt { background: var(--surface-2); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}
/* Raggi concentrici: riquadro 32 = numero 10 + padding 22 */
.steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 22px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  margin-bottom: 12px;
}
.steps h3, .features h3 { margin: 0 0 6px; font-size: 19px; }
.steps p, .features p { margin: 0; color: var(--muted); }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.features article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.checks {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}
.checks li {
  position: relative;
  padding-left: 32px;
}
.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.privacy-band {
  background: var(--text);
  color: var(--bg);
  border-radius: 28px;
  padding: 48px;
}
.privacy-band h2 { margin-bottom: 12px; }
.privacy-band p { color: color-mix(in srgb, var(--bg) 80%, transparent); max-width: 40em; margin: 0 0 20px; }
.privacy-band a { color: var(--bg); font-weight: 600; }

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '-'; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

.support { text-align: center; }
.support p { color: var(--muted); margin: 0 auto 24px; max-width: 36em; }

/* Legal pages */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 20px 80px;
}
.doc h1 { font-size: clamp(30px, 4vw, 42px); margin: 0 0 6px; letter-spacing: -0.01em; }
.doc .updated { color: var(--muted); margin: 0 0 32px; font-size: 15px; }
.doc h2 { font-size: 21px; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 22px; }

/* Uninstall */
.reasons { display: grid; gap: 10px; margin: 24px 0; }
.reasons a {
  display: block;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}
.reasons a:hover { border-color: var(--accent); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 40px;
  font-size: 14px;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
}
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer p { margin: 0; }

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .site-nav { display: none; }
  .lang-switch { margin-left: auto; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .steps, .features { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 40px; }
  section { padding: 56px 0; }
  .privacy-band { padding: 32px 24px; border-radius: 20px; }
  .site-header .btn-small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Avviso novità nell'hero e link di approfondimento */
.news {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.news span {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.news:hover { background: color-mix(in srgb, var(--accent) 20%, transparent); }
.more-link { display: inline-block; margin-top: 18px; font-weight: 600; }
.cta-row { margin-top: 28px; }
