:root {
  --ink: #121510;
  --muted: #62685f;
  --paper: #f7f4eb;
  --panel: #fffdf6;
  --green: #4b7f00;
  --green-dark: #173d25;
  --blue: #2454d6;
  --clay: #aa3515;
  --sand: #eadfca;
  --line: rgba(18, 21, 16, 0.12);
  --shadow: 0 24px 80px rgba(27, 37, 21, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Avenir Next", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(75, 127, 0, 0.2), transparent 34rem),
    radial-gradient(circle at 80% 10%, rgba(36, 84, 214, 0.14), transparent 28rem),
    linear-gradient(135deg, #fbf8ef 0%, #eef2e6 48%, #f8efe6 100%);
}

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

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 16px 0 42px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 246, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 40px rgba(23, 61, 37, 0.08);
}

.brand,
.topbar-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  font-weight: 850;
  letter-spacing: -0.04em;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  box-shadow: inset 0 -8px 16px rgba(0, 0, 0, 0.18);
}

.topbar-links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.topbar-links .pill-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  background: var(--green-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(320px, 0.97fr);
  gap: 42px;
  align-items: center;
  min-height: 680px;
  padding: 24px 0 72px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(3.4rem, 8vw, 7.6rem);
  line-height: 0.86;
  letter-spacing: -0.085em;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2.1rem, 4vw, 4.3rem);
  line-height: 0.95;
  letter-spacing: -0.065em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}

.hero-lead {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.52;
}

.hero-actions,
.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-actions {
  margin: 32px 0 28px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.primary-action {
  color: #fff;
  background: var(--green);
  box-shadow: 0 16px 34px rgba(75, 127, 0, 0.24);
}

.secondary-action {
  border: 1px solid var(--line);
  color: var(--green-dark);
  background: rgba(255, 253, 246, 0.74);
}

.trust-row span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 253, 246, 0.62);
  font-size: 0.86rem;
  font-weight: 800;
}

.hero-visual {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(23, 61, 37, 0.12);
  border-radius: 999px;
  transform: rotate(-18deg);
}

.orbit-one {
  width: 92%;
  height: 70%;
}

.orbit-two {
  width: 68%;
  height: 92%;
  transform: rotate(24deg);
}

.app-window {
  position: relative;
  width: min(520px, 100%);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(255, 253, 246, 0.96), rgba(232, 237, 220, 0.92));
  box-shadow: var(--shadow);
}

.window-header {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.window-header span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--sand);
}

.window-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
}

.metric-card,
.timeline-card,
.feature-card,
.preview-card,
.signup-section,
.market-proof {
  border: 1px solid var(--line);
  background: rgba(255, 253, 246, 0.8);
}

.metric-card,
.timeline-card {
  min-height: 132px;
  padding: 18px;
  border-radius: 24px;
}

.metric-card p,
.metric-card small {
  color: var(--muted);
}

.metric-card strong {
  display: block;
  font-size: 2.2rem;
  line-height: 1;
  letter-spacing: -0.06em;
}

.metric-card.main {
  grid-row: span 2;
  min-height: 278px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(23, 61, 37, 0.92), rgba(75, 127, 0, 0.84)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.25), transparent 16rem);
}

.metric-card.main p,
.metric-card.main small {
  color: rgba(255, 255, 255, 0.72);
}

.metric-card.blue strong {
  color: var(--blue);
}

.metric-card.clay strong {
  color: var(--clay);
  font-size: clamp(1.45rem, 2.6vw, 2.2rem);
  letter-spacing: -0.075em;
  white-space: nowrap;
}

.timeline-card {
  grid-column: span 2;
  position: relative;
  min-height: 130px;
  overflow: hidden;
}

.timeline-line {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 62px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--blue), var(--clay));
}

.timeline-dot {
  position: absolute;
  top: 50px;
  width: 32px;
  height: 32px;
  border: 6px solid var(--panel);
  border-radius: 999px;
  background: var(--green-dark);
}

.timeline-dot.one {
  left: 20%;
}

.timeline-dot.two {
  left: 50%;
}

.timeline-dot.three {
  left: 78%;
}

.timeline-labels {
  position: absolute;
  inset: 88px 24px auto;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-block,
.preview-section,
.signup-section,
.market-proof,
.workflow-section {
  margin: 24px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.feature-grid,
.preview-grid,
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card,
.preview-card {
  min-height: 260px;
  padding: 24px;
  border-radius: 30px;
  box-shadow: 0 12px 38px rgba(27, 37, 21, 0.08);
}

.feature-card p,
.preview-card p,
.signup-copy p {
  color: var(--muted);
  line-height: 1.55;
}

.workflow-section {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 28px;
  align-items: start;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(23, 61, 37, 0.96);
  box-shadow: var(--shadow);
}

.workflow-copy h2 {
  margin-bottom: 0;
  color: #fff;
  font-size: clamp(2rem, 3.4vw, 3.6rem);
}

.workflow-copy .eyebrow {
  color: #b5db78;
}

.workflow-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-list li {
  min-height: 144px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
}

.workflow-list span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 999px;
  color: var(--green-dark);
  background: #d9efa8;
  font-size: 0.78rem;
  font-weight: 950;
}

.workflow-list strong,
.workflow-list p {
  display: block;
}

.workflow-list strong {
  margin-bottom: 5px;
  color: #fff;
}

.workflow-list p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  line-height: 1.4;
}

.feature-icon {
  display: inline-flex;
  margin-bottom: 36px;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(75, 127, 0, 0.12);
  font-size: 0.78rem;
  font-weight: 950;
}

.preview-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--panel);
}

.preview-card p strong {
  color: var(--ink);
}

.preview-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-weight: 900;
}

.bar-stack {
  display: grid;
  gap: 12px;
  margin: 34px 0;
}

.bar-stack span {
  width: var(--w);
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), #168476);
}

.line-chart {
  position: relative;
  height: 150px;
  margin: 16px 0 28px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 33%,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 25% 100%;
}

.line-chart span {
  position: absolute;
  width: 34%;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
  transform-origin: left center;
}

.line-chart span:nth-child(1) {
  left: 4%;
  top: 28%;
  transform: rotate(8deg);
}

.line-chart span:nth-child(2) {
  left: 31%;
  top: 38%;
  transform: rotate(13deg);
}

.line-chart span:nth-child(3) {
  left: 58%;
  top: 55%;
  transform: rotate(18deg);
}

.line-chart span:nth-child(4) {
  left: 78%;
  top: 72%;
  width: 18%;
  transform: rotate(20deg);
}

.quote-matrix {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin: 10px 0 42px;
}

.quote-matrix span {
  height: 44px;
  border-radius: 14px;
  background: rgba(75, 127, 0, 0.13);
}

.quote-matrix span:nth-child(3n + 2) {
  background: rgba(36, 84, 214, 0.14);
}

.quote-matrix span:nth-child(3n) {
  background: rgba(170, 53, 21, 0.14);
}

.market-proof,
.signup-section {
  padding: 28px;
  border-radius: 34px;
}

.proof-grid strong {
  display: block;
  min-height: 120px;
  padding: 22px;
  border-radius: 24px;
  color: #fff;
  background: var(--green-dark);
  font-size: 1.25rem;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.proof-grid strong:nth-child(2) {
  background: var(--blue);
}

.proof-grid strong:nth-child(3) {
  background: var(--clay);
}

.signup-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  margin-bottom: 56px;
  background:
    linear-gradient(135deg, rgba(255, 253, 246, 0.94), rgba(232, 237, 220, 0.92)),
    radial-gradient(circle at top left, rgba(75, 127, 0, 0.2), transparent 24rem);
  box-shadow: var(--shadow);
}

.signup-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.signup-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.signup-form .full {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(18, 21, 16, 0.16);
  border-radius: 18px;
  padding: 15px 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  font: inherit;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(75, 127, 0, 0.13);
}

.consent {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  flex-direction: row;
  gap: 10px;
  line-height: 1.35;
}

.consent input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin-top: 2px;
}

.privacy-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.form-status.success {
  color: var(--green);
}

.form-status.error {
  color: var(--clay);
}

/* I cerchi decorativi del mockup (.orbit) uscivano dallo schermo e facevano scorrere
   la pagina di lato su telefono e tablet. "clip" taglia senza creare un contenitore di scroll. */
html,
body {
  overflow-x: clip;
}

/* Quattro aree in evidenza (settembre 2026): 4 colonne su schermo largo, 2 sotto i 1100px. */
.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1100px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
    border-radius: 26px;
    flex-direction: column;
  }

  .topbar-links {
    width: 100%;
    justify-content: space-between;
  }

  .hero,
  .signup-section,
  .workflow-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .feature-grid,
  .preview-grid,
  .proof-grid,
  .signup-form,
  .workflow-list {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(3.2rem, 17vw, 5.4rem);
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 22px, 1180px);
  }

  .topbar-links {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 2px;
  }

  .hero-visual {
    min-height: 440px;
  }

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

  .metric-card.main,
  .timeline-card {
    grid-column: auto;
    grid-row: auto;
  }

  .signup-section,
  .market-proof {
    padding: 18px;
    border-radius: 26px;
  }
}
