:root {
  --bg: #0b0b0f;
  --surface: #16161d;
  --surface-2: #1e1e28;
  --border: #2a2a35;
  --text: #f6f6f9;
  --muted: #9a9aa8;
  --accent: #7c4dff;
  --accent-2: #a78bff;
  --radius: 18px;
  --maxw: 1120px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* Glow di sfondo */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 78% 8%, rgba(124, 77, 255, 0.28), transparent 60%),
    radial-gradient(45% 40% at 8% 22%, rgba(167, 139, 255, 0.16), transparent 60%);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.grad {
  background: linear-gradient(110deg, #c9b8ff 0%, var(--accent) 55%, #5a32c8 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-weight: 650; font-size: 15px; padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s;
  will-change: transform;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 26px rgba(124, 77, 255, 0.45); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(124, 77, 255, 0.6); }
.btn-ghost { background: rgba(255,255,255,0.04); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); transform: translateY(-2px); }

/* Header */
header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 11, 15, 0.6);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 20px; letter-spacing: -.4px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { color: var(--muted); font-size: 15px; font-weight: 550; transition: color .15s; }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-links .btn { padding: 10px 20px; }

/* Hero */
.hero { padding: 84px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  color: var(--accent-2); background: rgba(124, 77, 255, 0.12);
  border: 1px solid rgba(124, 77, 255, 0.3); padding: 7px 14px; border-radius: 999px;
}
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04; font-weight: 800; letter-spacing: -1.5px; margin: 22px 0 0; }
.hero .lead { color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); max-width: 520px; margin: 22px 0 34px; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .trust { color: var(--muted); font-size: 13.5px; margin-top: 22px; display: flex; align-items: center; gap: 8px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #33d17a; box-shadow: 0 0 0 4px rgba(51,209,122,.15); }

/* Colonna card di tendenza nella hero: pila ordinata e leggermente sfalsata */
.hero-cards { display: flex; flex-direction: column; gap: 18px; }
.float-card { width: 100%; max-width: 340px; animation: float 7s ease-in-out infinite; }
.float-card:nth-child(1) { align-self: flex-end; animation-delay: 0s; }
.float-card:nth-child(2) { align-self: flex-start; animation-delay: 1.2s; }
.float-card:nth-child(3) { align-self: flex-end; animation-delay: 2.4s; }
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }

/* Poll card */
.poll {
  display: block; overflow: hidden;
  background: linear-gradient(180deg, rgba(30,30,40,0.9), rgba(22,22,29,0.9));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 16px;
  backdrop-filter: blur(8px); box-shadow: 0 18px 40px rgba(0,0,0,0.4);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.poll:hover { transform: translateY(-4px); border-color: rgba(124,77,255,0.5); box-shadow: 0 24px 50px rgba(124,77,255,0.22); }
.poll-top { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.poll-poster { width: 42px; height: 60px; border-radius: 9px; object-fit: cover; background: var(--surface-2); flex: none; }
.poll-show { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.poll-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 3px; }
.tag { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor; }
.poll-q { font-size: 15.5px; font-weight: 650; line-height: 1.35; color: var(--text); }
.poll-cta { margin-top: 13px; font-size: 13px; font-weight: 700; color: var(--accent-2); display: flex; align-items: center; gap: 6px; }

/* Sezioni */
.section { padding: 72px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 50px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -.8px; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 17px; }
.eyebrow { color: var(--accent-2); font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
  transition: transform .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(124,77,255,0.4); }
.feature .ico {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: rgba(124, 77, 255, 0.14); color: var(--accent-2);
}
.feature h3 { font-size: 18.5px; margin-bottom: 8px; letter-spacing: -.3px; }
.feature p { color: var(--muted); font-size: 15px; }

/* Griglia tendenza */
.trend-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* CTA finale */
.cta-band {
  text-align: center;
  background: linear-gradient(135deg, rgba(124,77,255,0.16), rgba(124,77,255,0.04));
  border: 1px solid rgba(124,77,255,0.28); border-radius: 28px; padding: 56px 24px;
}
.cta-band h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.6px; }
.cta-band p { color: var(--muted); margin: 12px auto 28px; max-width: 460px; }

/* Footer */
footer { border-top: 1px solid rgba(255,255,255,0.06); padding: 40px 0; color: var(--muted); font-size: 14px; }
.foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.foot a:hover { color: var(--text); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Pagina testuale (privacy) */
.doc { padding: 56px 0 80px; max-width: 780px; }
.doc h1 { font-size: 36px; font-weight: 800; margin-bottom: 8px; letter-spacing: -.6px; }
.doc .updated { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.doc h2 { font-size: 20px; margin: 30px 0 10px; }
.doc p, .doc li { color: #cfcfd6; font-size: 16px; }
.doc ul { padding-left: 22px; margin: 8px 0; }
.doc a { color: var(--accent-2); }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-cards { display: none; }
  .features, .trend-grid { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 620px) {
  .hero { padding: 56px 0 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .float-card { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
}
