:root {
    --ink: #142833;
    --ink-soft: #3A4C55;
    --paper: #EFF2ED;
    --paper-raised: #FFFFFF;
    --rust: #BB4430;
    --rust-dark: #9A3624;
    --teal: #1F7A5C;
    --teal-dark: #175E46;
    --border: #D8DED8;
    --border-strong: #B7C0B8;
    --font-display: 'Space Grotesk', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
    --font-body: 'Inter', sans-serif;
  }

  * { box-sizing: border-box; }

  html { scroll-behavior: smooth; }

  body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
  }

  img, svg { display: block; max-width: 100%; }

  a { color: inherit; }

  :focus-visible {
    outline: 3px solid var(--teal);
    outline-offset: 3px;
  }

  @media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  }

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

  /* ---------- Header ---------- */
  header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(239, 242, 237, 0.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
  }

  .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    text-decoration: none;
    color: var(--ink);
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
  }

  .nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.95rem;
    font-weight: 500;
  }

  .nav-links a {
    text-decoration: none;
    color: var(--ink-soft);
    transition: color 0.15s ease;
  }
  .nav-links a:hover { color: var(--rust); }

  .nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ink);
    color: var(--paper);
    padding: 10px 20px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    transition: background 0.15s ease;
  }
  .nav-cta:hover { background: var(--rust); }

  .nav-toggle { display: none; }

  @media (max-width: 760px) {
    .nav-links { display: none; }
    .nav-toggle {
      display: inline-flex;
      background: none;
      border: 1px solid var(--border-strong);
      border-radius: 3px;
      padding: 8px 10px;
    }
  }

  /* ---------- Hero ---------- */
  .hero {
    padding: 88px 0 100px;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
  }

  @media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero { padding: 56px 0 64px; }
  }

  .eyebrow-line {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--teal-dark);
    background: rgba(31, 122, 92, 0.08);
    border: 1px solid rgba(31, 122, 92, 0.25);
    padding: 6px 12px;
    border-radius: 3px;
    margin-bottom: 26px;
  }

  h1 {
    font-family: var(--font-display);
    font-size: clamp(2.3rem, 4.4vw, 3.4rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin: 0 0 22px;
    font-weight: 700;
  }

  .hero-lede {
    font-size: 1.14rem;
    color: var(--ink-soft);
    max-width: 46ch;
    margin: 0 0 34px;
  }

  .cta-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 34px;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  }
  .btn:active { transform: translateY(1px); }

  .btn-primary {
    background: var(--rust);
    color: #fff;
  }
  .btn-primary:hover { background: var(--rust-dark); }

  .btn-secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--border-strong);
  }
  .btn-secondary:hover { border-color: var(--ink); }

  .hero-trust {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 0.86rem;
    color: var(--ink-soft);
  }
  .hero-trust span { display: flex; align-items: center; gap: 7px; }
  .hero-trust svg { width: 16px; height: 16px; color: var(--teal); flex-shrink: 0; }

  /* ---------- Receipt mockup ---------- */
  .receipt-stage {
    position: relative;
    display: flex;
    justify-content: center;
    animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  @keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .receipt {
    width: 300px;
    background: var(--paper-raised);
    box-shadow: 0 30px 60px -20px rgba(20, 40, 51, 0.35);
    padding: 26px 24px 30px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--ink);
    position: relative;
    transform: rotate(-2deg);
  }

  .receipt::before,
  .receipt::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 12px;
    background:
      radial-gradient(circle at 8px 6px, transparent 6px, var(--paper) 6.5px) repeat-x;
    background-size: 16px 12px;
  }
  .receipt::before { top: -6px; }
  .receipt::after { bottom: -6px; transform: scaleY(-1); }

  .receipt-brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    margin-bottom: 4px;
    letter-spacing: 0.02em;
  }
  .receipt-sub {
    text-align: center;
    color: var(--ink-soft);
    font-size: 0.72rem;
    margin-bottom: 16px;
  }

  .receipt-hr {
    border: none;
    border-top: 1px dashed var(--border-strong);
    margin: 14px 0;
  }

  .receipt-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 7px;
  }
  .receipt-line .qty { color: var(--ink-soft); width: 22px; flex-shrink: 0; }
  .receipt-line .name { flex: 1; }
  .receipt-line .price { font-weight: 600; }

  .receipt-total {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 14px;
  }

  .receipt-stamp {
    position: absolute;
    top: 108px;
    right: -18px;
    width: 92px;
    transform: rotate(9deg);
    color: var(--teal);
    opacity: 0.9;
  }

  .receipt-float-tag {
    position: absolute;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 8px 12px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 12px 24px -8px rgba(20, 40, 51, 0.4);
  }
  .tag-bt { top: 20px; left: -34px; }
  .tag-bt svg { width: 14px; height: 14px; color: #6FE3B8; }

  /* ---------- Sections shared ---------- */
  section { padding: 84px 0; }
  .section-border-top { border-top: 1px solid var(--border); }

  .section-head {
    max-width: 62ch;
    margin-bottom: 52px;
  }

  .section-kicker {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--rust);
    margin-bottom: 12px;
  }

  h2 {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    letter-spacing: -0.015em;
    margin: 0 0 14px;
    font-weight: 600;
  }

  .section-desc { color: var(--ink-soft); font-size: 1.05rem; margin: 0; }

  /* ---------- Come funziona ---------- */
  .steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    background: var(--paper-raised);
  }

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

  .step {
    padding: 36px 30px;
    position: relative;
  }
  .step:not(:last-child) { border-right: 1px solid var(--border); }
  @media (max-width: 820px) {
    .step:not(:last-child) { border-right: none; border-bottom: 1px solid var(--border); }
  }

  .step-num {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--teal-dark);
    margin-bottom: 18px;
  }

  .step h3 {
    font-family: var(--font-display);
    font-size: 1.18rem;
    margin: 0 0 10px;
    font-weight: 600;
  }

  .step p {
    color: var(--ink-soft);
    font-size: 0.95rem;
    margin: 0;
  }

  /* ---------- Features ---------- */
  .features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--border);
    border: 1px solid var(--border);
  }

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

  .feature {
    background: var(--paper-raised);
    padding: 32px 28px;
  }

  .feature-icon {
    width: 34px;
    height: 34px;
    color: var(--rust);
    margin-bottom: 20px;
  }

  .feature h3 {
    font-family: var(--font-display);
    font-size: 1.06rem;
    margin: 0 0 8px;
    font-weight: 600;
  }

  .feature p {
    color: var(--ink-soft);
    font-size: 0.92rem;
    margin: 0;
  }

  /* ---------- Hardware ---------- */
  .hardware-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    background: var(--paper-raised);
  }

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

  .hardware-item {
    padding: 36px 34px;
    display: flex;
    flex-direction: column;
  }
  .hardware-item + .hardware-item { border-left: 1px solid var(--border); }
  @media (max-width: 720px) {
    .hardware-item + .hardware-item { border-left: none; border-top: 1px solid var(--border); }
  }

  .hardware-icon {
    width: 36px;
    height: 36px;
    color: var(--teal-dark);
    margin-bottom: 22px;
  }

  .hardware-item h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin: 0 0 10px;
    font-weight: 600;
  }

  .hardware-item p {
    color: var(--ink-soft);
    font-size: 0.95rem;
    margin: 0 0 20px;
  }

  .hardware-badge {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--rust-dark);
    background: rgba(187, 68, 48, 0.08);
    border: 1px solid rgba(187, 68, 48, 0.25);
    padding: 6px 12px;
    border-radius: 3px;
    margin-bottom: 22px;
  }

  .hardware-item .btn { margin-top: auto; align-self: flex-start; }

  /* ---------- Confronto ---------- */
  .compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    background: var(--paper-raised);
  }

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

  .compare-col { padding: 34px 32px; }
  .compare-col + .compare-col { border-left: 1px solid var(--border); }
  @media (max-width: 720px) {
    .compare-col + .compare-col { border-left: none; border-top: 1px solid var(--border); }
  }

  .compare-col.is-us { background: rgba(31, 122, 92, 0.05); }

  .compare-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.08rem;
    margin: 0 0 22px;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .compare-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: var(--font-mono);
    font-size: 0.88rem;
  }

  .compare-list li {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px dashed var(--border-strong);
    color: var(--ink-soft);
  }
  .compare-list li:first-child { border-top: none; }

  .compare-list svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
  .compare-col.is-us .compare-list svg { color: var(--teal); }
  .compare-col:not(.is-us) .compare-list svg { color: var(--rust); }

  /* ---------- CTA final ---------- */
  .cta-final {
    background: var(--ink);
    color: var(--paper);
    border-radius: 6px;
    padding: 56px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
  }

  .cta-final h2 { color: #fff; margin-bottom: 8px; }
  .cta-final p { color: rgba(239, 242, 237, 0.75); margin: 0; max-width: 42ch; }

  .cta-final .btn-primary { background: var(--rust); }
  .cta-final .btn-secondary { border-color: rgba(239, 242, 237, 0.35); color: var(--paper); }
  .cta-final .btn-secondary:hover { border-color: #fff; }

  /* ---------- Footer ---------- */
  footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
    font-size: 0.85rem;
    color: var(--ink-soft);
  }
  .footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
  }
  .footer-links { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
  .footer-links a { text-decoration: none; color: var(--ink-soft); }
  .footer-links a:hover { color: var(--rust); }
