/* =============================================================================
   Clanksy landing — Design system minimal
   ============================================================================= */

:root {
  --c-bg: #ffffff;
  --c-bg-soft: #fafaf9;
  --c-bg-tinted: #ecfdf5;
  --c-text: #0f172a;
  --c-text-soft: #475569;
  --c-text-muted: #94a3b8;
  --c-accent: #10b981;
  --c-accent-strong: #047857;
  --c-accent-soft: #d1fae5;
  --c-border: #e5e7eb;
  --c-rose: #f43f5e;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--c-border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 700;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-strong) 100%);
  color: white;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800;
}
.nav-links {
  display: flex; gap: 28px; align-items: center;
  font-size: 14px;
  color: var(--c-text-soft);
}
.nav-links a:hover { color: var(--c-text); }
.nav-cta {
  background: var(--c-text);
  color: white;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 13px; font-weight: 500;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--c-accent-strong); color: white; }
.lang-switch {
  display: flex; gap: 4px;
  font-size: 12px;
  color: var(--c-text-muted);
}
.lang-switch a {
  padding: 4px 8px; border-radius: 4px;
}
.lang-switch a.active {
  background: var(--c-accent-soft); color: var(--c-accent-strong); font-weight: 600;
}

/* Hero */
.hero {
  padding: 80px 0 60px;
  background: linear-gradient(180deg, var(--c-bg-tinted) 0%, var(--c-bg) 100%);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}
.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--c-accent-strong);
  background: var(--c-accent-soft);
  padding: 6px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--c-text);
  margin-bottom: 18px;
}
.h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--c-accent) 0%, var(--c-accent-strong) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@media (max-width: 860px) { .h1 { font-size: 36px; } }
.lead {
  font-size: 18px;
  color: var(--c-text-soft);
  margin-bottom: 32px;
  max-width: 540px;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-primary {
  background: var(--c-text);
  color: white;
  box-shadow: 0 4px 12px rgba(15,23,42,0.15);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15,23,42,0.25);
}
.btn-secondary {
  color: var(--c-text);
  background: white;
  border: 1px solid var(--c-border);
}
.btn-secondary:hover { background: var(--c-bg-soft); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-illu {
  position: relative;
}
.hero-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow:
    0 0 0 1px var(--c-border),
    0 24px 50px -20px rgba(15,23,42,0.18);
  transform: rotate(-1deg);
}
.hero-card-2 {
  position: absolute;
  top: 60px; right: -30px;
  background: white;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow:
    0 0 0 1px var(--c-border),
    0 12px 30px -12px rgba(15,23,42,0.18);
  transform: rotate(3deg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--c-text-soft);
}
@media (max-width: 860px) { .hero-card-2 { display: none; } }
.chat-bubble {
  margin-bottom: 8px;
  display: flex;
}
.chat-bubble.in { justify-content: flex-start; }
.chat-bubble.out { justify-content: flex-end; }
.chat-bubble .msg {
  max-width: 76%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
}
.chat-bubble.in .msg {
  background: #f1f5f9;
  color: var(--c-text);
  border-bottom-left-radius: 4px;
}
.chat-bubble.out .msg {
  background: var(--c-accent);
  color: white;
  border-bottom-right-radius: 4px;
}
.chat-time { font-size: 11px; color: var(--c-text-muted); padding: 0 6px 6px; }

/* Sezioni generiche */
.section { padding: 80px 0; }
.section-tinted { background: var(--c-bg-soft); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-eyebrow {
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--c-accent-strong);
  margin-bottom: 12px;
}
.section-title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
@media (max-width: 860px) { .section-title { font-size: 28px; } }
.section-sub {
  font-size: 17px;
  color: var(--c-text-soft);
  max-width: 600px;
  margin: 0 auto;
}

/* Problem cards */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px) { .problem-grid { grid-template-columns: 1fr; } }
.problem-card {
  padding: 28px;
  background: white;
  border-radius: 14px;
  border: 1px solid var(--c-border);
}
.problem-icon {
  font-size: 24px;
  margin-bottom: 14px;
}
.problem-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--c-text);
}
.problem-desc {
  font-size: 14px;
  color: var(--c-text-soft);
  line-height: 1.6;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  display: flex; gap: 18px;
  padding: 28px;
  background: white;
  border-radius: 14px;
  border: 1px solid var(--c-border);
  transition: border-color 0.2s, transform 0.2s;
}
.feature:hover {
  border-color: var(--c-accent);
  transform: translateY(-2px);
}
.feature-icon-box {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--c-accent-soft);
  color: var(--c-accent-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.feature-text h3 {
  font-size: 16px; font-weight: 600;
  margin-bottom: 6px;
  color: var(--c-text);
}
.feature-text p {
  font-size: 14px; color: var(--c-text-soft); line-height: 1.6;
}

/* How it works */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
@media (max-width: 860px) { .how-grid { grid-template-columns: 1fr; } }
.how-step {
  text-align: center;
  position: relative;
}
.how-num {
  width: 56px; height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--c-text);
  color: white;
  font-size: 22px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.how-step h3 {
  font-size: 18px; font-weight: 600;
  margin-bottom: 10px;
}
.how-step p {
  font-size: 14.5px;
  color: var(--c-text-soft);
  line-height: 1.6;
}

/* Why us / differentiators */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; gap: 32px; } }
.why-list { list-style: none; padding: 0; }
.why-list li {
  padding: 16px 0 16px 36px;
  position: relative;
  font-size: 15.5px;
  color: var(--c-text);
  border-bottom: 1px solid var(--c-border);
  line-height: 1.6;
}
.why-list li:last-child { border-bottom: none; }
.why-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 14px;
  width: 24px; height: 24px;
  background: var(--c-accent);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: bold;
}
.why-list strong { color: var(--c-text); }

.competitor-table {
  background: white;
  border-radius: 14px;
  border: 1px solid var(--c-border);
  overflow: hidden;
  font-size: 14px;
}
.competitor-table .row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  padding: 14px 18px;
  border-bottom: 1px solid var(--c-border);
}
.competitor-table .row:last-child { border-bottom: none; }
.competitor-table .row.head {
  background: var(--c-bg-soft);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--c-text-muted);
}
.competitor-table .check { color: var(--c-accent); font-weight: bold; }
.competitor-table .nope { color: var(--c-rose); }
.competitor-table .you {
  background: var(--c-bg-tinted);
  font-weight: 600;
}

/* FAQ */
.faq {
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--c-border);
}
.faq-item summary {
  padding: 22px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--c-text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 24px;
  color: var(--c-text-muted);
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item .answer {
  padding: 0 0 22px;
  color: var(--c-text-soft);
  font-size: 14.5px;
  line-height: 1.65;
}

/* Final CTA */
.final-cta {
  background: var(--c-text);
  color: white;
  padding: 80px 0;
  text-align: center;
}
.final-cta .section-title { color: white; }
.final-cta .section-sub { color: rgba(255,255,255,0.7); }
.final-cta .btn-primary {
  background: var(--c-accent);
  margin-top: 32px;
}
.final-cta .btn-primary:hover {
  background: var(--c-accent-strong);
}

/* Form */
.form-card {
  max-width: 540px;
  margin: 40px auto 0;
  background: white;
  color: var(--c-text);
  padding: 36px 32px;
  border-radius: 16px;
  text-align: left;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.4);
}
.form-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.form-card p {
  font-size: 14px; color: var(--c-text-soft);
  margin-bottom: 22px;
}
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--c-text);
}
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid var(--c-border);
  font-size: 14px;
  font-family: inherit;
  color: var(--c-text);
  background: white;
  transition: border-color 0.15s;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px var(--c-accent-soft);
}
.form-card .btn-primary {
  width: 100%;
  justify-content: center;
}
.form-success {
  background: var(--c-accent-soft);
  color: var(--c-accent-strong);
  padding: 16px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  margin-top: 12px;
  display: none;
}
.form-error {
  background: #fef2f2;
  color: #b91c1c;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
  margin-top: 12px;
  display: none;
}

/* Footer */
.footer {
  background: var(--c-bg-soft);
  padding: 40px 0 32px;
  border-top: 1px solid var(--c-border);
  font-size: 13px;
  color: var(--c-text-muted);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
.footer a:hover { color: var(--c-text); }
