/* ───────── RESET & BASE ───────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #f7faff;
  color: #071b4d;
}

a { text-decoration: none; color: inherit; }

/* ───────── TOPBAR ───────── */
.topbar {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 78px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(25,55,120,.06);
  position: sticky;
  top: 0;
  z-index: 9;
}

.logo img { width: 60px; height: auto; display: block; }

nav { display: flex; gap: 44px; font-weight: 700; font-size: 16px; }
nav a { color: #071b4d; }

/* ───────── BUTTONS ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, #3867ff, #6847f5);
  color: white;
  box-shadow: 0 18px 34px rgba(65,104,245,.24);
}

.btn-top { padding: 18px 28px; border-radius: 26px; }

/* ───────── HERO ───────── */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.03fr .97fr;
  gap: 44px;
  min-height: 760px;
  padding: 70px 86px 36px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('img/hero-soft-bg.jpg') center / cover no-repeat;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 54%;
  height: 100%;
  background:
    linear-gradient(90deg, rgba(255,255,255,0), rgba(232,242,255,.9)),
    url('img/illustration-home-wifi.png') right 56% / 520px auto no-repeat;
  opacity: .45;
  z-index: -1;
}

.eyebrow {
  display: inline-flex;
  gap: 20px;
  align-items: center;
  padding: 9px 18px;
  border: 1px solid #dbe7ff;
  border-radius: 999px;
  background: rgba(255,255,255,.75);
  color: #315df0;
  font-weight: 800;
  margin-bottom: 34px;
}

.hero h1 {
  font-size: 58px;
  line-height: 1.12;
  margin: 0 0 24px;
  letter-spacing: -2px;
}

.hero h1 strong { color: #4168f5; }

.sub {
  font-size: 21px;
  line-height: 1.55;
  color: #31436d;
  max-width: 650px;
}

.value-row {
  display: flex;
  gap: 26px;
  margin: 44px 0;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-right: 25px;
  border-right: 1px solid #dce5fa;
}

.value-item:last-child { border-right: 0; }
.value-item img { width: 64px; height: 64px; }
.value-item strong { font-size: 16px; }
.value-item span { color: #536483; font-size: 14px; }

.cta-row {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-top: 8px;
}

.main-cta { padding: 24px 42px; font-size: 22px; border-radius: 18px; }

.proof { display: flex; gap: 16px; align-items: center; color: #51617f; }

.faces { display: flex; }
.faces img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  margin-left: -11px;
  border: 3px solid white;
}
.faces img:first-child { margin-left: 0; }

/* ───────── CHAT CARD ───────── */
.chat-card {
  align-self: start;
  background: rgba(255,255,255,.88);
  border: 1px solid #e5edff;
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(35,68,130,.16);
  padding: 24px;
  min-height: 610px;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #e2e9f8;
  padding-bottom: 18px;
}

.chat-head img { width: 88px; height: 88px; }
.chat-head h2 { font-size: 30px; margin: 0; }
.chat-head h2 span {
  font-size: 16px;
  background: #4168f5;
  color: white;
  border-radius: 50%;
  padding: 2px 5px;
}
.chat-head p { margin: 4px 0; color: #5c6b8f; }

.online { margin-left: auto; color: #405174; font-weight: 700; }
.online i {
  display: inline-block;
  width: 9px;
  height: 9px;
  background: #12b886;
  border-radius: 50%;
  margin-right: 8px;
}

.chat-body { padding: 22px 0; }

.msg { display: flex; gap: 14px; margin: 14px 0; }
.msg.bot img { width: 44px; height: 44px; flex: 0 0 auto; }
.msg p {
  margin: 0;
  background: #f0f5ff;
  border-radius: 16px;
  padding: 16px 20px;
  line-height: 1.55;
}
.msg small { display: block; color: #70809f; margin-top: 8px; }
.msg.user { justify-content: flex-end; }
.msg.user p {
  background: #dfeaff;
  min-width: 120px;
  text-align: center;
  font-weight: 700;
}

.typing {
  width: 70px;
  background: #edf3ff;
  border-radius: 999px;
  padding: 10px 16px;
  display: flex;
  gap: 6px;
  margin-left: 58px;
}
.typing span {
  width: 8px;
  height: 8px;
  background: #4168f5;
  border-radius: 50%;
}

.input-fake {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #d9e5fb;
  border-radius: 999px;
  padding: 12px 12px 12px 22px;
  color: #8290ac;
  cursor: pointer;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.input-fake:hover {
  border-color: #4168f5;
  box-shadow: 0 0 0 3px rgba(65,104,245,.1);
}
.input-fake button {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 0;
  background: #e8ebff;
  color: #4168f5;
  font-size: 20px;
}

/* ───────── CARDS ───────── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 86px 10px;
}

.cards article {
  display: flex;
  gap: 22px;
  background: rgba(255,255,255,.86);
  border: 1px solid #e8eefb;
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 18px 48px rgba(35,68,130,.08);
}

.cards img { width: 76px; height: 76px; }

.cards h3, .trust-strip strong {
  margin: 0 0 8px;
  font-size: 20px;
}

.cards p, .trust-strip span, .faq p {
  margin: 0;
  color: #51617f;
  line-height: 1.5;
}

/* ───────── TRUST STRIP ───────── */
.trust-strip {
  margin: 10px 86px 40px;
  background: rgba(255,255,255,.78);
  border: 1px solid #e8eefb;
  border-radius: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  box-shadow: 0 18px 48px rgba(35,68,130,.07);
}

.trust-strip div {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  padding: 22px 26px;
  border-right: 1px solid #e8eefb;
}
.trust-strip div:last-child { border-right: 0; }
.trust-strip img { width: 54px; height: 54px; grid-row: span 2; }

/* ───────── FAQ ───────── */
.faq {
  margin: 0 86px 60px;
  background: white;
  border: 1px solid #e8eefb;
  border-radius: 22px;
  padding: 34px;
  box-shadow: 0 18px 48px rgba(35,68,130,.07);
}

.faq h2 { font-size: 34px; margin: 0 0 20px; }
.faq details { border-top: 1px solid #e8eefb; padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 800; font-size: 18px; }

/* ───────── FOOTER ───────── */
.footer {
  background: white;
  border-top: 1px solid #e8eefb;
  padding: 44px 86px;
  text-align: left;
}

.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
}

.footerLogo {
  font-size: 22px;
  font-weight: 900;
  color: #071b4d;
  letter-spacing: -0.5px;
  display: block;
  margin-bottom: 12px;
}

.muted { color: #536483; }
.small { font-size: 13px; line-height: 1.65; }

.link { color: #4168f5; font-weight: 700; }
.link:hover { text-decoration: underline; }

.footerLinks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 110px;
  flex-shrink: 0;
}

/* ───────── CTA STACK (micro-copy sotto bottone) ───────── */
.cta-stack { display: flex; flex-direction: column; gap: 10px; }

.cta-note {
  margin: 0;
  font-size: 13px;
  color: #536483;
  line-height: 1.5;
}

/* ───────── CTA BOTTOM ───────── */
.cta-bottom {
  margin: 0 86px 60px;
  background: linear-gradient(135deg, #f0f5ff, #e8eeff);
  border: 1px solid #d4e0ff;
  border-radius: 24px;
  padding: 52px 56px;
}

.cta-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-bottom__text h2 {
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 10px;
  letter-spacing: -0.5px;
}

.cta-bottom__text h2 strong { color: #4168f5; }

.cta-bottom__text p {
  margin: 0;
  color: #536483;
  font-size: 16px;
}

.cta-bottom__action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ───────── STICKY CTA MOBILE ───────── */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 20px 20px;
  background: linear-gradient(to top, rgba(247,250,255,1) 60%, rgba(247,250,255,0));
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s, transform .25s;
}

.sticky-cta--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sticky-cta__btn {
  width: 100%;
  padding: 18px 24px;
  font-size: 18px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(65,104,245,.35);
}

/* ───────── RESPONSIVE ───────── */
@media (max-width: 980px) {

  /* Topbar */
  .topbar {
    height: auto;
    padding: 16px 20px;
    gap: 12px;
  }
  .logo img { width: 60px; }
  nav { display: none; }
  .btn-top { padding: 12px 18px; font-size: 14px; white-space: nowrap; }

  /* Hero */
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 36px 20px 40px;
    gap: 32px;
  }
  .hero::after { display: none; }

  .eyebrow {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    margin-bottom: 24px;
  }

  .hero h1 {
    font-size: 36px;
    letter-spacing: -1px;
    margin-bottom: 16px;
  }

  .sub { font-size: 17px; }

  .value-row {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 28px 0;
  }

  .value-item {
    border-right: 0;
    border-bottom: 1px solid #dce5fa;
    padding: 16px 0;
  }
  .value-item:last-child { border-bottom: 0; }
  .value-item img { width: 52px; height: 52px; }

  .cta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .main-cta {
    width: 100%;
    padding: 20px 32px;
    font-size: 19px;
    justify-content: center;
  }

  .proof { align-self: center; }

  /* Chat card */
  .chat-card {
    min-height: auto;
    padding: 18px;
  }
  .chat-head img { width: 60px; height: 60px; }
  .chat-head h2 { font-size: 22px; }

  /* Cards */
  .cards {
    grid-template-columns: 1fr;
    padding: 0 16px 10px;
    gap: 10px;
  }

  /* Trust strip */
  .trust-strip {
    margin: 10px 16px 34px;
    grid-template-columns: 1fr 1fr;
  }
  .trust-strip div {
    border-right: 0;
    border-bottom: 1px solid #e8eefb;
    padding: 18px 16px;
  }
  .trust-strip div:nth-child(odd) { border-right: 1px solid #e8eefb; }
  .trust-strip div:nth-child(3),
  .trust-strip div:nth-child(4) { border-bottom: 0; }

  /* FAQ */
  .faq {
    margin: 0 16px 40px;
    padding: 24px 20px;
  }
  .faq h2 { font-size: 26px; }
  .faq summary { font-size: 16px; }

  /* CTA bottom */
  .cta-bottom {
    margin: 0 16px 40px;
    padding: 32px 24px;
  }
  .cta-bottom__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
  .cta-bottom__text h2 { font-size: 24px; }
  .cta-bottom__action { width: 100%; align-items: flex-start; }
  .cta-bottom__action .main-cta { width: 100%; justify-content: center; }

  /* Sticky CTA */
  .sticky-cta { display: block; }

  /* Footer */
  .footer { padding: 36px 20px 40px; }
  .footer__inner {
    flex-direction: column;
    gap: 24px;
  }
  .footerLinks {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px 20px;
    min-width: auto;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip div:nth-child(odd) { border-right: 0; }
  .trust-strip div:nth-child(3) { border-bottom: 1px solid #e8eefb; }
}
