/* ============ Font (Inter variable, self-hosted) ============ */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ============ Reset minimo ============ */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }

/* ============ Token ============ */
:root {
  --bg: #0B0B0D;
  --surface: #151518;
  --surface-2: #1D1D21;
  --lime: #CDFF00;
  --lime-dim: rgba(205, 255, 0, 0.12);
  --ink: #F5F5F7;
  --muted: #9C9CA4;
  --hairline: rgba(255, 255, 255, 0.08);
  --radius: 20px;
}

html, body { background: var(--bg); }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ---------- Nav (pill flottante, staccata dal bordo alto) ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  padding: 16px 24px 8px;
}
.admin-bar .nav { top: 32px; }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 58px;
  max-width: 960px; margin: 0 auto;
  padding: 0 10px 0 22px;
  background: rgba(21, 21, 24, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--hairline);
  border-radius: 100px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.logo-dot {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--lime); display: grid; place-items: center; flex-shrink: 0;
}
.logo-dot svg { width: 15px; height: 15px; }
.nav-links { display: flex; gap: 28px; font-size: 14.5px; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--lime); color: #0B0B0D; font-weight: 600; font-size: 14px;
  padding: 9px 18px; border-radius: 100px; transition: transform 0.15s ease;
}
.nav-cta:hover { transform: scale(1.04); }
@media (max-width: 760px) { .nav-links { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 40px;
}
.hero::before {
  content: "";
  position: absolute; inset: -200px -20% auto;
  height: 700px;
  background:
    radial-gradient(600px 400px at 75% 30%, rgba(205, 255, 0, 0.10), transparent 70%),
    radial-gradient(500px 500px at 20% 10%, rgba(30, 80, 20, 0.25), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center;
}
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid rgba(205, 255, 0, 0.55);
  border-radius: 100px; padding: 7px 16px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--lime); margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--lime); flex-shrink: 0;
}
h1 {
  font-size: clamp(40px, 6vw, 64px); font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.05; text-wrap: balance; margin-bottom: 20px;
}
h1 .accent { color: var(--lime); }
.hero-sub {
  font-size: 18px; color: var(--muted); max-width: 46ch; margin-bottom: 26px;
}
.hero-sub strong { color: var(--ink); font-weight: 600; }

.hero-bullets { display: grid; gap: 10px; margin-bottom: 32px; }
.hero-bullets li { display: flex; align-items: flex-start; gap: 10px; font-size: 15.5px; }
.hero-bullets .check {
  width: 20px; height: 20px; border-radius: 50%; background: var(--lime-dim);
  display: grid; place-items: center; flex-shrink: 0; margin-top: 3px;
}
.hero-bullets .check svg { width: 11px; height: 11px; }

.cta-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: #000; border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px; padding: 10px 20px 10px 16px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.store-badge:hover { transform: scale(1.03); border-color: rgba(255, 255, 255, 0.5); }
.store-badge svg { width: 26px; height: 26px; flex-shrink: 0; }
.store-badge .badge-text { display: flex; flex-direction: column; line-height: 1.2; color: #fff; }
.store-badge .badge-text small { font-size: 10.5px; color: rgba(255, 255, 255, 0.7); }
.store-badge .badge-text span { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.cta-note { font-size: 13px; color: var(--muted); }
.cta-secondary { font-size: 14.5px; color: var(--muted); border-bottom: 1px solid var(--hairline); padding-bottom: 1px; }
.cta-secondary:hover { color: var(--lime); border-color: var(--lime); }

/* Colonna visual della hero e degli showcase */
.phone-wrap { position: relative; display: flex; justify-content: center; }
.phone-wrap::before {
  content: "";
  position: absolute; inset: 10% 5%;
  background: radial-gradient(closest-side, rgba(205, 255, 0, 0.16), transparent);
  filter: blur(30px);
}

/* Carosello hero: 3 PNG 300x600 a misura originale, crossfade */
.hero-carousel {
  position: relative;
  width: 300px; height: 600px;
}
.hero-carousel img {
  position: absolute; inset: 0;
  width: 300px; height: 600px;
  opacity: 0;
  transition: opacity 0.9s ease;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55));
}
.hero-carousel img.active { opacity: 1; }

/* Chip categorie flottanti nella hero */
.hero-chip {
  --tilt: 0deg;
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(29, 29, 33, 0.92);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 100px; padding: 10px 18px;
  font-size: 14px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  transform: rotate(var(--tilt));
  animation: floaty 6s ease-in-out infinite;
}
.hero-chip.c1 { top: 5%; left: -34%; --tilt: -3deg; animation-duration: 5.5s; }
.hero-chip.c2 { top: 42%; right: -30%; --tilt: 2.5deg; animation-delay: 1.3s; animation-duration: 6.8s; }
.hero-chip.c3 { bottom: 8%; left: -26%; --tilt: -2deg; animation-delay: 2.1s; animation-duration: 6.2s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(var(--tilt)); }
  50% { transform: translateY(-10px) rotate(var(--tilt)); }
}
@media (max-width: 640px) { .hero-chip { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero-chip { animation: none; } }

/* ---------- Sezioni ---------- */
section { padding: 76px 0; }
.section-head { max-width: 620px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
h2 {
  font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.025em;
  line-height: 1.15; text-wrap: balance; margin-bottom: 14px;
}
.section-sub { font-size: 16.5px; color: var(--muted); }
.section-sub strong { color: var(--ink); font-weight: 600; }

/* ---------- Demo vocale ---------- */
.demo-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 40px;
  display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center;
}
@media (max-width: 720px) { .demo-card { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
.mic-button {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--lime); display: grid; place-items: center;
  position: relative; flex-shrink: 0;
}
.mic-button svg { width: 34px; height: 34px; }
.mic-button::before, .mic-button::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--lime); opacity: 0;
  animation: pulse 2.4s ease-out infinite;
}
.mic-button::after { animation-delay: 1.2s; }
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.8); opacity: 0; }
}
.demo-flow { display: grid; gap: 18px; }
.transcript {
  font-size: clamp(18px, 2.6vw, 24px); font-weight: 600; letter-spacing: -0.01em;
  min-height: 1.5em;
}
.transcript .cursor {
  display: inline-block; width: 2px; height: 1.05em; background: var(--lime);
  vertical-align: text-bottom; margin-left: 2px;
  animation: blink 0.9s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.demo-chips { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 720px) { .demo-chips { justify-content: center; } }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface-2); border: 1px solid var(--hairline);
  border-radius: 100px; padding: 8px 16px; font-size: 14.5px; font-weight: 600;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.chip.show { opacity: 1; transform: none; }
.chip .k { color: var(--muted); font-weight: 500; }
.chip.saved { border-color: rgba(205, 255, 0, 0.4); color: var(--lime); }
.demo-note { font-size: 13.5px; color: var(--muted); }

/* ---------- Numeri ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
}
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 34px 20px; text-align: center; border-left: 1px solid var(--hairline); }
.stat:first-child { border-left: none; }
@media (max-width: 720px) { .stat:nth-child(3) { border-left: none; } .stat:nth-child(n+3) { border-top: 1px solid var(--hairline); } }
.stat b {
  display: block; font-size: clamp(30px, 4vw, 42px); font-weight: 800;
  letter-spacing: -0.03em; color: var(--lime);
  font-variant-numeric: tabular-nums;
}
.stat span { font-size: 13.5px; color: var(--muted); }

/* ---------- Categorie ---------- */
.cat-cloud { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 760px; margin: 0 auto; }
.cat {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 100px; padding: 11px 20px; font-size: 15px; font-weight: 600;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.cat:hover { border-color: rgba(205, 255, 0, 0.5); transform: translateY(-2px); }
.cat.custom { border-style: dashed; border-color: rgba(205, 255, 0, 0.4); color: var(--lime); background: transparent; }

/* ---------- Come funziona ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 30px 28px;
}
.step-num {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--lime); color: #0B0B0D;
  font-weight: 800; font-size: 16px; margin-bottom: 18px;
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--muted); }

/* ---------- Funzioni ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.feature {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 28px;
}
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--lime-dim); display: grid; place-items: center; margin-bottom: 18px;
}
.feature-icon svg { width: 21px; height: 21px; }
.feature h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 7px; }
.feature p { font-size: 14px; color: var(--muted); }
.feature.wide {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 24px;
}
.feature.wide .feature-icon { margin-bottom: 0; flex-shrink: 0; }
@media (max-width: 600px) { .feature.wide { flex-direction: column; align-items: flex-start; } }

.showcase {
  margin-top: 56px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
}
@media (max-width: 760px) { .showcase { grid-template-columns: 1fr; } }
.showcase-item { text-align: center; }
.showcase-item .phone-wrap { margin-bottom: 22px; }
.showcase-img {
  width: 300px; height: 600px;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55));
}
.showcase-item h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }
.showcase-item p { font-size: 14.5px; color: var(--muted); max-width: 38ch; margin: 0 auto; }

/* ---------- Prezzi ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1060px; margin: 0 auto; align-items: stretch; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; max-width: 460px; } .plan.pro { order: -1; } }
.plan {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 34px 30px;
  display: flex; flex-direction: column;
}
.plan.pro { border-color: rgba(205, 255, 0, 0.5); position: relative; }
.plan-badge {
  position: absolute; top: -12px; left: 30px;
  background: var(--lime); color: #0B0B0D;
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 100px;
}
.plan-name { font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.plan.pro .plan-name { color: var(--lime); }
.plan-price { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.plan-price small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan-alt { font-size: 13.5px; color: var(--muted); margin-top: 4px; margin-bottom: 22px; }
.plan-list { display: grid; gap: 10px; margin-bottom: 28px; flex-grow: 1; }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.plan-list .check {
  width: 18px; height: 18px; border-radius: 50%; background: var(--lime-dim);
  display: grid; place-items: center; flex-shrink: 0; margin-top: 3px;
}
.plan-list .check svg { width: 10px; height: 10px; }
.plan-cta {
  text-align: center; font-weight: 700; font-size: 15px;
  padding: 13px; border-radius: 100px;
  border: 1px solid var(--hairline);
  transition: transform 0.15s ease;
}
.plan-cta:hover { transform: scale(1.02); }
.plan.pro .plan-cta { background: var(--lime); color: #0B0B0D; border-color: transparent; }
.pricing-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 24px; }

/* ---------- FAQ ---------- */
.faq { max-width: 720px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 16px; overflow: hidden;
}
.faq summary {
  padding: 20px 24px; font-weight: 600; font-size: 15.5px;
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 22px; font-weight: 400; color: var(--lime);
  transition: transform 0.2s ease; flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 20px; font-size: 14.5px; color: var(--muted); }

/* ---------- CTA finale ---------- */
.final {
  text-align: center;
  background:
    radial-gradient(500px 300px at 50% 0%, rgba(205, 255, 0, 0.08), transparent 70%);
  border-top: 1px solid var(--hairline);
}
.final .cta-row { justify-content: center; margin-top: 30px; }
.final-sub { max-width: 42ch; margin: 0 auto; }
.final-note { margin-top: 16px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 36px 0; font-size: 13.5px; color: var(--muted);
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--ink); }

/* ---------- Pagine interne (Privacy, Assistenza) ---------- */
.page-main { padding: 48px 0 90px; }
.page-article { max-width: 720px; margin: 0 auto; }
.page-article h1 {
  font-size: clamp(32px, 5vw, 44px); font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.1; margin-bottom: 18px;
}
.page-article h2 {
  font-size: 23px; font-weight: 700; letter-spacing: -0.015em;
  margin: 40px 0 12px;
}
.page-article h3 {
  font-size: 17px; font-weight: 700; letter-spacing: -0.01em;
  margin: 26px 0 8px; color: var(--ink);
}
.page-article p, .page-article li {
  font-size: 15.5px; color: var(--muted); margin-bottom: 14px;
}
.page-article li { margin-bottom: 8px; }
.page-article strong { color: var(--ink); font-weight: 600; }
.page-article em { color: var(--ink); }
.page-article a { color: var(--lime); border-bottom: 1px solid rgba(205, 255, 0, 0.35); }
.page-article a:hover { border-color: var(--lime); }
.page-article ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .mic-button::before, .mic-button::after, .transcript .cursor { animation: none; }
  .chip { opacity: 1; transform: none; }
}
