:root {
  --bg: #08090d;
  --panel: #12141a;
  --panel-2: #191c24;
  --line: rgba(255, 255, 255, 0.09);
  --text: #edeff5;
  --muted: #9197a6;
  --gold: #e9c57e;
  --gold-2: #d3a558;
  --gold-soft: rgba(233, 197, 126, 0.13);
  --ok: #6fd39a;
  --radius: 22px;
  --max: 1120px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Inter", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(55% 40% at 50% -6%, rgba(233, 197, 126, 0.16), transparent 70%),
    radial-gradient(45% 35% at 95% 75%, rgba(88, 112, 190, 0.1), transparent 70%);
}

main,
.nav,
footer {
  position: relative;
  z-index: 1;
}

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

button,
input {
  font: inherit;
  color: inherit;
}

/* ── Header ─────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 14px clamp(18px, 4vw, 40px);
  background: rgba(8, 9, 13, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
}

.logo {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--gold);
}

.logo svg {
  width: 100%;
  height: 100%;
}

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 0.92rem;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--text);
}

/* ── Bottoni ────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  color: #1a1408;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  box-shadow: 0 10px 30px rgba(233, 197, 126, 0.18);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(233, 197, 126, 0.26);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--text);
  box-shadow: none;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.9rem;
}

.btn-full {
  width: 100%;
}

/* ── Hero ───────────────────────────────────────────────── */

.hero {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(62px, 11vw, 120px) 22px 40px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.7rem, 7.4vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
}

h1 .gold {
  background: linear-gradient(100deg, var(--gold), #fff0cc 55%, var(--gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  max-width: 620px;
  margin: 26px auto 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
}

.lead strong {
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-note strong {
  color: var(--text);
}

.pill {
  padding: 5px 12px;
  border: 1px solid rgba(233, 197, 126, 0.35);
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.chat-demo {
  width: min(560px, 100%);
  margin: 56px auto 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(25, 28, 36, 0.9), rgba(18, 20, 26, 0.9));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  text-align: left;
}

.bubble {
  max-width: 86%;
  margin: 0 0 10px;
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 0.94rem;
  line-height: 1.45;
}

.bubble.user {
  margin-left: auto;
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  color: #1a1408;
  border-bottom-right-radius: 5px;
}

.bubble.bot {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-bottom-left-radius: 5px;
}

.bubble:last-child {
  margin-bottom: 0;
}

/* ── Sezioni ────────────────────────────────────────────── */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 104px) 22px;
}

.section.alt {
  max-width: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.section.alt > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.section-head {
  max-width: 720px;
  margin-bottom: 42px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 13px;
  background: var(--gold-soft);
  font-size: 1.25rem;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ── Passi ──────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.step-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--gold);
  color: #1a1408;
  font-weight: 800;
}

.steps h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ── Prezzi ─────────────────────────────────────────────── */

.pricing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 860px;
}

.price-card {
  position: relative;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.price-card.featured {
  border-color: rgba(233, 197, 126, 0.45);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(233, 197, 126, 0.12), transparent 60%),
    var(--panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.tag {
  position: absolute;
  top: -12px;
  right: 24px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--gold);
  color: #1a1408;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.price-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--muted);
  font-weight: 600;
}

.price {
  margin: 0;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price small {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.sub {
  margin: 6px 0 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

.price-card ul {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.price-card li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  font-size: 0.93rem;
}

.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 800;
}

.price-card li strong {
  color: var(--text);
}

/* ── Founder ────────────────────────────────────────────── */

.founder {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.founder h2 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.founder-copy > p {
  color: var(--muted);
  font-size: 1.02rem;
}

.founder-copy strong {
  color: var(--text);
}

.checks {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding-left: 26px;
  color: var(--text);
  font-size: 0.95rem;
}

.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ok);
  font-weight: 800;
}

.counter {
  display: inline-block;
  margin: 6px 0 0;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  font-size: 0.88rem;
  color: var(--muted);
}

.counter strong {
  color: var(--gold);
}

.founder-box {
  padding: 26px;
  border: 1px solid rgba(233, 197, 126, 0.3);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(233, 197, 126, 0.1), transparent 65%),
    var(--panel);
}

.founder-form {
  display: grid;
  gap: 14px;
}

.founder-form label {
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--muted);
}

.founder-form label span {
  color: #6f7482;
}

.founder-form input[type="text"],
.founder-form input[type="email"] {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 9, 13, 0.65);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.founder-form input:focus {
  border-color: rgba(233, 197, 126, 0.6);
  box-shadow: 0 0 0 3px rgba(233, 197, 126, 0.12);
}

.consent {
  display: flex !important;
  grid-template-columns: none !important;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px !important;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--gold);
  flex: 0 0 auto;
}

.form-error {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(224, 96, 94, 0.4);
  border-radius: 10px;
  background: rgba(224, 96, 94, 0.1);
  color: #f0a3a1;
  font-size: 0.86rem;
}

.privacy {
  margin: 0;
  color: #6f7482;
  font-size: 0.76rem;
  line-height: 1.5;
}

.privacy a {
  color: var(--muted);
  text-decoration: underline;
}

.founder-done {
  text-align: center;
  padding: 10px 4px;
}

.done-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(111, 211, 154, 0.14);
  color: var(--ok);
  font-size: 1.5rem;
  font-weight: 800;
}

.founder-done h3 {
  margin: 0 0 8px;
  font-size: 1.4rem;
}

.founder-done p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ── FAQ ────────────────────────────────────────────────── */

.faq {
  max-width: 820px;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--gold);
  font-size: 1.2rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* ── Footer ─────────────────────────────────────────────── */

footer {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 48px 22px 60px;
  border-top: 1px solid var(--line);
  color: #6f7482;
  font-size: 0.82rem;
  text-align: center;
}

footer .brand {
  color: var(--text);
  font-size: 0.95rem;
}

footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 18px;
  margin-top: 8px;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .founder {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .pricing {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .nav-links {
    display: none;
  }

  .nav .btn-small {
    margin-left: auto;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 54px;
  }

  .chat-demo {
    margin-top: 38px;
  }
}

@media (max-width: 480px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .price-card,
  .card,
  .steps li,
  .founder-box {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
