/* Assistify landing — design system
   Verde WhatsApp come accento, hero scuro con mesh gradient, card glass,
   tipografia Sora (display) + Inter (testo). Mobile-first. */

:root {
  --green: #25d366;
  --green-dark: #128c5e;
  --green-deep: #075e54;
  --ink: #0b1a14;
  --ink-2: #13271f;
  --paper: #f7faf8;
  --card: #ffffff;
  --text: #2a3b33;
  --muted: #5e7268;
  --line: rgba(11, 26, 20, 0.08);
  --radius: 18px;
  --shadow: 0 10px 40px rgba(11, 26, 20, 0.1);
  --shadow-lg: 0 24px 80px rgba(11, 26, 20, 0.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, .display { font-family: "Sora", "Inter", sans-serif; letter-spacing: -0.02em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ── Nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11, 26, 20, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s;
}
.nav.scrolled { background: rgba(11, 26, 20, 0.92); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-family: "Sora"; font-weight: 700; color: #fff; font-size: 18px; }
.nav-logo img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: rgba(255, 255, 255, 0.78); font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: #fff; }
.nav-links .lang { opacity: 0.6; font-size: 13px; }
.nav-cta {
  background: var(--green); color: #06281a !important; font-weight: 700;
  padding: 9px 18px; border-radius: 999px; font-size: 14px;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); transition: transform 0.15s, box-shadow 0.3s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45); }
@media (max-width: 760px) { .nav-links a:not(.nav-cta):not(.lang) { display: none; } }

/* ── Hero ── */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: radial-gradient(1200px 700px at 75% -10%, rgba(37, 211, 102, 0.28), transparent 60%),
    radial-gradient(900px 600px at -10% 40%, rgba(18, 140, 94, 0.35), transparent 55%),
    linear-gradient(175deg, var(--ink) 0%, var(--ink-2) 60%, #0e3327 100%);
  padding: 140px 0 90px;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  color: #86efb5; background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.3);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero h1 { font-size: clamp(34px, 5.2vw, 58px); line-height: 1.08; font-weight: 800; }
.hero h1 .accent {
  background: linear-gradient(90deg, #4ade80, #25d366, #86efb5);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sub { margin-top: 20px; font-size: clamp(16px, 1.6vw, 19px); color: rgba(255, 255, 255, 0.82); max-width: 560px; }
.hero-ctas { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; align-items: center; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--green); color: #06281a; font-weight: 800; font-size: 16px;
  padding: 15px 30px; border-radius: 999px;
  box-shadow: 0 10px 34px rgba(37, 211, 102, 0.4);
  transition: transform 0.15s, box-shadow 0.3s;
}
.btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 16px 44px rgba(37, 211, 102, 0.55); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  color: #fff; font-weight: 600; font-size: 15px;
  padding: 14px 24px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.25);
  transition: background 0.2s;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.hero-note { margin-top: 14px; font-size: 13px; color: rgba(255, 255, 255, 0.55); }

/* Social proof strip */
.proof { display: flex; gap: 36px; margin-top: 44px; flex-wrap: wrap; }
.proof div strong { display: block; font-family: "Sora"; font-size: 26px; color: #fff; }
.proof div span { font-size: 13px; color: rgba(255, 255, 255, 0.55); }

/* ── Phone mockup ── */
.phone-col { display: flex; justify-content: center; }
.phone {
  width: 320px; border-radius: 42px; padding: 12px;
  background: linear-gradient(160deg, #1c2b24, #0c1712);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.08);
  transform: rotate(2deg);
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: rotate(2deg) translateY(0); } 50% { transform: rotate(2deg) translateY(-10px); } }
.phone-screen { border-radius: 32px; overflow: hidden; background: #ece5dd; display: flex; flex-direction: column; height: 560px; }
.chat-header { background: var(--green-deep); color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
.chat-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #25d366, #128c5e); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: #fff; }
.chat-header .name { font-size: 14px; font-weight: 700; line-height: 1.2; }
.chat-header .status { font-size: 11px; color: #9fe8c0; }
.chat-body { flex: 1; padding: 14px 10px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; background: #efe7dd; }
.bubble {
  max-width: 82%; padding: 8px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.4;
  color: #111b21; /* l'hero è color:#fff — senza questo il testo delle bolle sparisce */
  display: none; /* le bolle non ancora "arrivate" NON occupano spazio */
  box-shadow: 0 1px 1px rgba(0,0,0,0.08); position: relative;
}
.bubble.show { display: block; animation: bubbleIn 0.4s ease both; }
.bubble.typing.show { display: inline-flex; width: fit-content; }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.bubble.in { background: #fff; align-self: flex-start; border-top-left-radius: 4px; }
.bubble.out { background: #d9fdd3; align-self: flex-end; border-top-right-radius: 4px; }
.bubble .meta { display: flex; align-items: center; gap: 4px; justify-content: flex-end; margin-top: 3px; font-size: 10px; color: #8696a0; }
.bubble .badge { display: inline-block; font-size: 9px; font-weight: 700; color: #7c3aed; background: #ede9fe; border-radius: 999px; padding: 1px 7px; margin-bottom: 4px; }
.ticks { color: #53bdeb; font-weight: 700; letter-spacing: -2px; }
.typing { display: inline-flex; gap: 4px; padding: 10px 14px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #9aa6a0; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.2s; }
.typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%,80%,100% { opacity: 0.25; } 40% { opacity: 1; } }

/* ── Sections ── */
section { padding: 88px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 54px; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-dark); }
.section-head h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; color: var(--ink); margin-top: 10px; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 17px; }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card .ico {
  width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; background: linear-gradient(135deg, rgba(37,211,102,0.16), rgba(18,140,94,0.1));
  border: 1px solid rgba(37, 211, 102, 0.25); margin-bottom: 16px;
}
.card h3 { font-size: 17px; color: var(--ink); margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--muted); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px 26px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -18px; left: 22px;
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--green); color: #06281a; font-family: "Sora"; font-weight: 800; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}
.step h3 { font-size: 17px; color: var(--ink); margin: 6px 0 8px; }
.step p { font-size: 14.5px; color: var(--muted); }

/* Dark band (canale ufficiale / dual channel) */
.band {
  background: linear-gradient(145deg, var(--ink), #0e3327); color: #fff;
  border-radius: 26px; padding: 54px 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
@media (max-width: 820px) { .band { grid-template-columns: 1fr; padding: 40px 28px; } }
.band h2 { font-size: clamp(24px, 3vw, 34px); }
.band p { color: rgba(255, 255, 255, 0.75); margin-top: 12px; font-size: 15.5px; }
.band ul { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.band li { display: flex; gap: 10px; font-size: 15px; color: rgba(255,255,255,0.9); }
.band li::before { content: "✓"; color: var(--green); font-weight: 800; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 1000px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .plans { grid-template-columns: 1fr; } }
.plan {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; display: flex; flex-direction: column; position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.plan.featured { border: 2px solid var(--green); box-shadow: 0 18px 60px rgba(37, 211, 102, 0.22); }
.plan .tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--green); color: #06281a; font-size: 11px; font-weight: 800; letter-spacing: 0.06em;
  padding: 4px 14px; border-radius: 999px; text-transform: uppercase;
}
.plan h3 { font-size: 16px; color: var(--ink); }
.plan .price { font-family: "Sora"; font-size: 38px; font-weight: 800; color: var(--ink); margin: 10px 0 2px; }
.plan .price small { font-size: 14px; font-weight: 500; color: var(--muted); }
.plan .per { font-size: 12.5px; color: var(--muted); margin-bottom: 16px; }
.plan ul { list-style: none; display: grid; gap: 8px; font-size: 13.5px; color: var(--text); flex: 1; }
.plan li { display: flex; gap: 8px; align-items: baseline; }
.plan li::before { content: "✓"; color: var(--green-dark); font-weight: 800; font-size: 12px; }
.plan .cta {
  margin-top: 22px; text-align: center; font-weight: 700; font-size: 14px;
  padding: 12px; border-radius: 12px; border: 1.5px solid var(--green-dark); color: var(--green-dark);
  transition: background 0.2s, color 0.2s;
}
.plan .cta:hover { background: var(--green-dark); color: #fff; }
.plan.featured .cta { background: var(--green); border-color: var(--green); color: #06281a; }
.plan.featured .cta:hover { filter: brightness(1.08); }
.plans-note { text-align: center; margin-top: 22px; font-size: 13.5px; color: var(--muted); }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::after { content: "+"; font-size: 20px; color: var(--green-dark); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; font-size: 14.5px; color: var(--muted); }

/* Final CTA */
.final {
  text-align: center; color: #fff; border-radius: 26px; padding: 70px 30px;
  background: radial-gradient(800px 400px at 50% -20%, rgba(37, 211, 102, 0.35), transparent 60%),
    linear-gradient(160deg, var(--ink), #0e3327);
}
.final h2 { font-size: clamp(26px, 3.6vw, 42px); font-weight: 800; }
.final p { color: rgba(255, 255, 255, 0.72); margin: 14px auto 30px; max-width: 520px; font-size: 16px; }

/* Footer */
footer { padding: 46px 0 60px; font-size: 13.5px; color: var(--muted); }
.foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.foot a { color: var(--green-dark); font-weight: 600; }
.foot a:hover { text-decoration: underline; }
.foot .brand { display: flex; align-items: center; gap: 8px; font-family: "Sora"; font-weight: 700; color: var(--ink); }
.foot .brand img { width: 24px; height: 24px; border-radius: 6px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s, transform 0.7s; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .bubble { opacity: 1 !important; transform: none !important; transition: none !important; }
  .phone { animation: none; }
}
