/* Palette presa dal logo e dall'app PKKM AI */
:root {
  --bg: #15181b;
  --surface: #1b1f23;
  --surface-2: #22272c;
  --surface-3: #2b3137;
  --border: #2d3439;
  --text: #e8eeea;
  --muted: #8e9b94;
  --faint: #5c6862;
  --green-dark: #118558;
  --green: #30b772;
  --green-light: #4ad27e;
  --gradient: linear-gradient(135deg, var(--green-dark), var(--green-light));
  --radius: 16px;
  --shadow-glow: 0 10px 40px -10px rgba(48, 183, 114, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.glow {
  position: fixed;
  inset: -20% auto auto -10%;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle, rgba(48, 183, 114, 0.18), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

.container { width: min(1160px, 100% - 48px); margin-inline: auto; }

/* ---- Pulsanti ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  border-radius: 12px;
  padding: 12px 22px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 44px -8px rgba(74, 210, 126, 0.6); }
.btn-ghost { background: var(--surface-2); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface-3); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---- Navigazione ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(21, 24, 27, 0.75);
  border-bottom: 1px solid rgba(45, 52, 57, 0.6);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand img { height: 26px; }
.nav-links { display: flex; gap: 32px; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }

/* ---- Hero ---- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
  padding: 84px 0 56px;
}
.pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--green-light);
  font-size: 13px;
  font-weight: 600;
}
h1 {
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 22px 0 20px;
}
.gradient { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; color: var(--muted); max-width: 520px; margin: 0 0 32px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hint { margin-top: 16px; font-size: 13px; color: var(--faint); }

.shot-frame {
  position: relative;
  border-radius: 18px;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(74, 210, 126, 0.7), rgba(45, 52, 57, 0.6) 40%, rgba(17, 133, 88, 0.6));
  box-shadow: 0 40px 100px -30px rgba(48, 183, 114, 0.45), 0 20px 50px rgba(0, 0, 0, 0.5);
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
  transition: transform .4s ease;
}
.shot-frame:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.shot-frame img { border-radius: 17px; }

/* ---- Numeri ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.stats div { background: var(--surface); padding: 26px 20px; text-align: center; }
.stats strong { display: block; font-size: 30px; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { color: var(--muted); font-size: 14px; }

/* ---- Sezioni ---- */
.section { padding: 96px 0 0; }
h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.02em; margin: 0 0 12px; text-align: center; }
.section-lead { text-align: center; color: var(--muted); margin: 0 auto 44px; max-width: 600px; font-size: 17px; }
h3 { margin: 0 0 8px; font-size: 18px; }
.muted { color: var(--muted); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .2s ease, transform .2s ease;
}
.grid { display: grid; gap: 20px; }
.features { grid-template-columns: repeat(3, 1fr); }
.features .card:hover, .models .card:hover { border-color: var(--green); transform: translateY(-3px); }
.features p, .models p { color: var(--muted); margin: 0; font-size: 15px; }
.icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  font-size: 22px;
  border-radius: 12px;
  background: rgba(74, 210, 126, 0.1);
  border: 1px solid rgba(74, 210, 126, 0.25);
  margin-bottom: 18px;
}
.icon svg { width: 22px; height: 22px; fill: none; stroke: var(--green-light); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Passi ---- */
.steps { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.steps li span {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--gradient); color: #fff; font-weight: 700;
  margin-bottom: 18px;
}
.steps p { color: var(--muted); margin: 0; font-size: 15px; }

/* ---- Modelli ---- */
.models { grid-template-columns: repeat(3, 1fr); }
.model-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.model-task { color: var(--green-light) !important; font-weight: 600; margin: 2px 0 12px !important; }
.tag { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 7px; letter-spacing: .04em; }
.tag-base { background: var(--surface-3); color: var(--green-light); }
.tag-pro { background: var(--gradient); color: #fff; }
.tag-soon { background: var(--surface-3); color: var(--muted); }
.model.soon { opacity: .75; }

/* ---- Prezzi ---- */
.billing-toggle {
  display: flex;
  width: fit-content;
  margin: -16px auto 32px;
  padding: 4px;
  gap: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.billing-toggle button {
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 9px;
  padding: 9px 22px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.billing-toggle button.active { background: var(--surface-3); color: var(--text); }
.billing-toggle .save { background: var(--gradient); color: #fff; font-size: 11px; padding: 2px 7px; border-radius: 6px; }
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 400px)); justify-content: center; gap: 24px; }
.price { position: relative; padding: 36px; display: flex; flex-direction: column; }
.price.featured { border: 1.5px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--gradient) border-box; box-shadow: var(--shadow-glow); }
.badge { position: absolute; top: 20px; right: 20px; background: var(--gradient); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 8px; }
.amount { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 4px; }
.amount strong { font-size: 46px; letter-spacing: -0.02em; }
.amount span { color: var(--muted); }
.price ul { list-style: none; padding: 0; margin: 24px 0 30px; flex: 1; }
.price li { padding: 7px 0 7px 30px; position: relative; }
.price li::before {
  content: ""; position: absolute; left: 0; top: 11px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(74, 210, 126, .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234ad27e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.price em { color: var(--faint); font-style: normal; }
.fineprint { text-align: center; color: var(--faint); font-size: 13px; margin-top: 22px; }

/* ---- Requisiti ---- */
.requirements { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; padding: 40px; align-items: start; }
.requirements h2 { text-align: left; }
.requirements dl { margin: 0; display: grid; gap: 2px; }
.requirements dl div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.requirements dl div:last-child { border-bottom: 0; }
.requirements dt { color: var(--muted); font-weight: 500; }
.requirements dd { margin: 0; }

/* ---- FAQ ---- */
.faq { max-width: 780px; }
.faq h2 { margin-bottom: 36px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; padding: 0 22px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green-light); font-size: 22px; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 18px; }

/* ---- CTA finale e footer ---- */
.final-cta { padding-bottom: 96px; }
.cta-card {
  text-align: center;
  padding: 64px 32px;
  background: radial-gradient(circle at 50% 0%, rgba(48, 183, 114, .22), transparent 70%), var(--surface);
}
.cta-card .muted { margin: 0 0 28px; font-size: 17px; }
.footer { border-top: 1px solid var(--border); padding: 32px 0; color: var(--faint); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.footer-logo { height: 20px; opacity: .8; }
.footer p { margin: 0; }

/* ---- Animazione all'ingresso ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---- Telefono e tablet ---- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 56px; text-align: center; }
  .lead { margin-inline: auto; }
  .cta { justify-content: center; }
  .shot-frame { transform: none; }
  .features, .models, .steps { grid-template-columns: 1fr 1fr; }
  .requirements { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .features, .models, .steps, .pricing { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .requirements { padding: 26px; }
  .requirements dl div { grid-template-columns: 1fr; gap: 2px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .btn-lg { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .shot-frame { transform: none; }
}

/* ---- Pagina 404 ---- */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; }
.notfound-card { max-width: 460px; padding: 48px; }
.notfound-logo { height: 30px; margin: 0 auto 26px; }
.notfound-btn { margin-top: 12px; }

/* ---- Impronta del setup ---- */
.checksum code { font-size: 11px; word-break: break-all; color: var(--muted); }
