/* Bro — landing page assistente AI (palette blu) */
:root {
  --bg: #050b1f;
  --bg-2: #0a1430;
  --panel: #0e1a3d;
  --panel-2: #12214c;
  --line: rgba(120, 160, 255, .16);
  --text: #e8eeff;
  --muted: #9aa9d1;
  --blue: #2f6bff;
  --blue-2: #1d4fd8;
  --cyan: #38bdf8;
  --ice: #bfe3ff;
  --ok: #34d399;
  --no: #f87171;
  --radius: 16px;
  --max: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0; position: relative; }
.center { text-align: center; }
.gradient-text {
  background: linear-gradient(90deg, #7fb2ff 0%, var(--cyan) 50%, #a5f3fc 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(47, 107, 255, .14); border: 1px solid rgba(47, 107, 255, .35);
  color: var(--ice); font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  margin-bottom: 22px;
}
.tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(56,189,248,.25); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(56,189,248,0); } }
.section-head { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* Bottoni */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 12px;
  font-family: inherit; font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--blue) 0%, #4f8bff 100%); color: #fff; box-shadow: 0 10px 30px rgba(47,107,255,.35); }
.btn-primary:hover { box-shadow: 0 14px 40px rgba(47,107,255,.5); }
.btn-outline { border-color: var(--line); color: var(--text); background: rgba(255,255,255,.03); }
.btn-outline:hover { border-color: rgba(127,178,255,.5); background: rgba(255,255,255,.06); }
.btn-block { width: 100%; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .25s ease, border-color .25s ease; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(5, 11, 31, .85); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.4rem; }
.logo img { width: 36px; height: 36px; }
.logo small { font-family: var(--font); font-size: .7rem; font-weight: 500; color: var(--muted); margin-left: 4px; letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav a:hover { color: #fff; }
.nav .btn { padding: 10px 20px; color: #fff; font-size: .92rem; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: 8px; }

/* Hero */
.hero { padding: 160px 0 100px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 900px;
  background:
    radial-gradient(600px 400px at 20% 30%, rgba(47,107,255,.35), transparent 60%),
    radial-gradient(500px 380px at 80% 20%, rgba(56,189,248,.22), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(160,190,255,.14) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 560px; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 32px; color: var(--muted); font-size: .9rem; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { color: var(--cyan); flex: none; }

/* Finestra chat demo */
.chat {
  position: relative;
  background: linear-gradient(180deg, rgba(18,33,76,.92), rgba(10,20,48,.92));
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(47,107,255,.08), 0 0 80px rgba(47,107,255,.18);
  overflow: hidden;
}
.chat-top { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
.chat-top img { width: 34px; height: 34px; }
.chat-top strong { font-family: var(--display); display: block; font-size: 1rem; line-height: 1.2; }
.chat-top em { font-style: normal; font-size: .78rem; color: var(--ok); display: inline-flex; align-items: center; gap: 6px; }
.chat-top em::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.chat-body { padding: 20px 18px; display: grid; gap: 12px; min-height: 380px; align-content: start; }
.msg { max-width: 88%; padding: 11px 15px; border-radius: 14px; font-size: .93rem; line-height: 1.5; opacity: 0; transform: translateY(8px); animation: msgIn .45s ease forwards; }
.msg.user { justify-self: end; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.msg.bot { background: var(--panel-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.task { background: rgba(56,189,248,.07); border: 1px dashed rgba(56,189,248,.35); font-size: .85rem; color: var(--ice); font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.msg.task div { display: flex; gap: 8px; align-items: center; }
.msg.task .ok { color: var(--ok); }
@keyframes msgIn { to { opacity: 1; transform: none; } }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: .25; } }
.chat-input { display: flex; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line); }
.chat-input span { flex: 1; padding: 10px 14px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.chat-input b { width: 40px; border-radius: 10px; background: var(--blue); display: grid; place-items: center; }

/* Loghi integrazioni */
.strip { padding: 34px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.015); }
.strip p { text-align: center; color: var(--muted); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; }
.strip li { font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: #c8d4f5; opacity: .8; }

/* Problema */
.problems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.problem { padding: 30px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.problem .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(248,113,113,.1); color: var(--no); margin-bottom: 18px; }
.problem p { color: var(--muted); margin: 0; font-size: .97rem; }

/* Feature */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  position: relative; padding: 30px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  transition: transform .2s ease, border-color .2s ease;
  overflow: hidden;
}
.feature::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56,189,248,.6), transparent);
  opacity: 0; transition: opacity .3s ease;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(127,178,255,.35); }
.feature:hover::before { opacity: 1; }
.feature .ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(47,107,255,.15); color: #8db8ff; margin-bottom: 18px; }
.feature p { color: var(--muted); margin: 0; font-size: .96rem; }

/* Step */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step { padding: 34px 30px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); position: relative; }
.step::before {
  counter-increment: s; content: counter(s);
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 20px;
  font-family: var(--display); font-weight: 700; font-size: 1.15rem;
  background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff;
}
.step p { color: var(--muted); margin: 0; font-size: .97rem; }

/* Casi d'uso */
.usecases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.usecase { padding: 26px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.usecase h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.usecase h3 span { font-size: 1.3rem; }
.usecase ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--muted); font-size: .92rem; }
.usecase li { padding-left: 18px; position: relative; }
.usecase li::before { content: "→"; position: absolute; left: 0; color: var(--cyan); }

/* Tabella confronto */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: .95rem; }
th { font-family: var(--display); font-weight: 600; color: var(--muted); font-size: .9rem; }
th.bro-col, td.bro-col { background: rgba(47,107,255,.1); }
th.bro-col { color: #fff; }
tr:last-child td { border-bottom: 0; }
td .y { color: var(--ok); font-weight: 700; }
td .n { color: var(--no); font-weight: 700; }
td .m { color: #fbbf24; font-weight: 700; }

/* Piani */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { padding: 34px 30px; border-radius: 20px; border: 1px solid var(--line); background: var(--bg-2); display: flex; flex-direction: column; }
.plan.featured { background: linear-gradient(180deg, rgba(47,107,255,.22), rgba(10,20,48,1) 60%); border-color: rgba(127,178,255,.5); position: relative; }
.plan.featured .badge { position: absolute; top: -13px; left: 30px; background: linear-gradient(90deg, var(--blue), var(--cyan)); color: #fff; font-size: .75rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; letter-spacing: .04em; }
.plan h3 { font-size: 1.4rem; margin-bottom: 6px; }
.plan .for { color: var(--muted); font-size: .93rem; min-height: 3em; }
.plan .price { font-family: var(--display); font-size: 1.6rem; font-weight: 700; margin: 10px 0 22px; }
.plan .price small { font-family: var(--font); font-size: .85rem; font-weight: 500; color: var(--muted); display: block; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; font-size: .94rem; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { flex: none; color: var(--cyan); margin-top: 4px; }
.guarantee { margin-top: 30px; padding: 22px 26px; border-radius: var(--radius); border: 1px dashed rgba(56,189,248,.4); background: rgba(56,189,248,.05); display: flex; gap: 16px; align-items: center; }
.guarantee p { margin: 0; color: var(--muted); }
.guarantee strong { color: #fff; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); padding: 0 24px; transition: border-color .2s ease; }
.faq details[open] { border-color: rgba(127,178,255,.4); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--cyan); line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* CTA + form */
.cta-box {
  border-radius: 28px; padding: 64px;
  background:
    radial-gradient(500px 300px at 100% 0%, rgba(56,189,248,.25), transparent 60%),
    linear-gradient(135deg, #0d2a8a 0%, #1d4fd8 60%, #2f6bff 100%);
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start;
  box-shadow: 0 30px 80px rgba(29,79,216,.35);
}
.cta-box h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.cta-box p { color: #dbe7ff; font-size: 1.08rem; }
.cta-box ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; color: #e6eeff; }
.cta-box li { display: flex; gap: 10px; }
.form { background: #fff; color: #0b1636; border-radius: 20px; padding: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 5px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 700; color: #1a2a5c; }
.field input, .field select, .field textarea {
  font: inherit; font-size: .95rem; padding: 11px 13px; border-radius: 10px;
  border: 1px solid #ccd6ee; background: #f7f9ff; color: #0b1636;
}
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47,107,255,.18); }
.check { grid-column: 1 / -1; display: flex; gap: 10px; font-size: .84rem; color: #4a5679; }
.check input { margin-top: 4px; accent-color: var(--blue); }
.check a { color: var(--blue-2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { grid-column: 1 / -1; }
.form-status { grid-column: 1 / -1; margin: 0; font-size: .92rem; font-weight: 600; }
.form-status.ok { color: #047857; }
.form-status.err { color: #b91c1c; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: .88rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .msg { opacity: 1; transform: none; transition: none; animation: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1040px) {
  .hero-grid, .cta-box { grid-template-columns: 1fr; }
  .features, .problems, .steps, .plans { grid-template-columns: repeat(2, 1fr); }
  .usecases { grid-template-columns: repeat(2, 1fr); }
  .chat { max-width: 560px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: rgba(5,11,31,.98); padding: 8px 24px 24px; border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; border-bottom: 0; }
  .site-header { background: rgba(5, 11, 31, .9); backdrop-filter: blur(14px); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .section { padding: 80px 0; }
  .hero { padding: 120px 0 70px; }
  .features, .problems, .steps, .plans, .usecases { grid-template-columns: 1fr; }
  .cta-box { padding: 34px 20px; border-radius: 20px; }
  .form { grid-template-columns: 1fr; padding: 22px; }
  .guarantee { flex-direction: column; align-items: flex-start; }
}
