*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
  background:#EEEEEC;
  color:#1A1A1A;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  line-height:1.5;
}
img{max-width:100%;}

/* ── Tokens ── */
:root{
  --bg:#EEEEEC;
  --white:#FFFFFF;
  --black:#111111;
  --text:#1A1A1A;
  --muted:#6B6B6B;
  --light:#9B9B9B;
  --purple:#7B3AED;
  --teal:#14B8A6;
  --pink:#EC4899;
  --orange:#F97316;
  --optimens:#1DA1C0;
  --grad:radial-gradient(ellipse 70% 90% at 5% 15%,#BEE8E0 0%,transparent 55%),
         radial-gradient(ellipse 55% 65% at 65% 5%,#D4C0EC 0%,transparent 55%),
         radial-gradient(ellipse 80% 80% at 100% 100%,#F4C4D4 0%,transparent 60%),
         linear-gradient(145deg,#D4EEE8 0%,#E0D0F0 45%,#F4D0DC 80%,#FAE0CC 100%);
  --r:16px;
  --r-sm:12px;
}

/* ── Wrap ── */
.wrap{max-width:1200px;margin:0 auto;padding:0 64px;}
@media(max-width:900px){.wrap{padding:0 32px;}}
@media(max-width:600px){.wrap{padding:0 20px;}}

/* ── Nav ── */
nav{
  position:fixed;top:0;left:0;right:0;z-index:100;
  background:rgba(238,238,236,0.92);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(0,0,0,0.06);
}
.nav-inner{
  display:flex;align-items:center;justify-content:space-between;
  height:60px;max-width:1200px;margin:0 auto;padding:0 64px;
}
@media(max-width:900px){.nav-inner{padding:0 32px;}}
@media(max-width:600px){.nav-inner{padding:0 20px;}}
.logo{display:flex;align-items:center;gap:8px;text-decoration:none;color:var(--text);}
.logo-star{display:block;width:22px;height:22px;}
.logo-name{font-size:15px;font-weight:700;letter-spacing:-0.2px;}
.btn-black{
  display:inline-flex;align-items:center;
  padding:10px 22px;
  background:var(--black);color:#fff;
  border-radius:100px;font-size:14px;font-weight:500;
  text-decoration:none;border:none;cursor:pointer;
  transition:opacity .15s;
}
.btn-black:hover{opacity:.85;}
.btn-black-lg{padding:14px 30px;font-size:15px;font-weight:600;}
.btn-outline-white{
  display:inline-flex;align-items:center;
  padding:12px 28px;
  background:transparent;color:#fff;
  border:1.5px solid rgba(255,255,255,0.5);
  border-radius:100px;font-size:15px;font-weight:500;
  text-decoration:none;cursor:pointer;
  transition:border-color .15s,background .15s;
}
.btn-outline-white:hover{border-color:#fff;background:rgba(255,255,255,0.08);}
a:focus-visible,button:focus-visible{outline:2px solid var(--purple);outline-offset:3px;border-radius:4px;}

/* ── Hero ── */
#hero{padding:120px 0 96px;background:var(--bg);text-align:center;}
@media(max-width:600px){#hero{padding-bottom:56px;}}
.hero-title{
  font-size:clamp(44px,5.5vw,72px);
  font-weight:800;letter-spacing:-0.035em;line-height:1.05;
  color:var(--text);margin-bottom:20px;
  text-wrap:balance;
}
.hero-sub{
  font-size:17px;color:var(--muted);max-width:46ch;
  margin:0 auto 40px;line-height:1.65;text-wrap:balance;
}
.hero-visual{
  max-width:1000px;margin:60px auto 0;padding:0 64px;
  position:relative;
}
@media(max-width:900px){.hero-visual{padding:0 32px;}}
.hero-photo{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:2000/1135;
  object-fit:cover;
  border-radius:20px 20px 0 0;
}

/* ── Gradient sections ── */
.grad-bg{background:var(--grad);}

/* ── Proof section ── */
#proof{padding:96px 0;}
.proof-title{
  font-size:clamp(32px,4vw,52px);font-weight:800;
  letter-spacing:-0.03em;line-height:1.1;
  color:var(--text);margin-bottom:16px;text-wrap:balance;
  max-width:18ch;
}
.proof-sub{font-size:16px;color:var(--muted);line-height:1.6;}
.proof-header{margin-bottom:56px;}
.proof-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;}
@media(max-width:1024px){.proof-cards{grid-template-columns:repeat(2,1fr);}}
@media(max-width:600px){.proof-cards{grid-template-columns:1fr;}}

.proof-card{
  background:#fff;border-radius:var(--r);
  overflow:hidden;display:flex;flex-direction:column;
}
.proof-img{display:block;width:100%;height:180px;object-fit:cover;}

.proof-card-body{padding:20px;flex:1;display:flex;flex-direction:column;gap:10px;}
.proof-card-title{font-size:17px;font-weight:700;}
.pc-purple{color:var(--purple);}
.pc-pink{color:var(--pink);}
.pc-orange{color:var(--orange);}
.pc-teal{color:var(--teal);}
.proof-card-text{font-size:13.5px;color:var(--muted);line-height:1.6;flex:1;}
.proof-card-source{font-size:13.5px;font-weight:700;color:var(--text);margin-top:auto;}

/* ── Feature sections ── */
.afeat{padding:96px 0;background:var(--bg);}
.afeat-inner{
  display:grid;grid-template-columns:1fr 1fr;
  gap:80px;align-items:center;
}
.afeat-inner.rev{direction:rtl;}
.afeat-inner.rev>*{direction:ltr;}
@media(max-width:860px){
  .afeat-inner,.afeat-inner.rev{grid-template-columns:1fr;direction:ltr;gap:48px;}
}
.afeat-title{
  font-size:clamp(28px,3.2vw,44px);font-weight:800;
  letter-spacing:-0.03em;line-height:1.1;
  color:var(--text);margin-bottom:20px;text-wrap:balance;
}
.afeat-body{font-size:16px;color:var(--muted);line-height:1.7;max-width:44ch;}

/* Phone mockup */
.phone-wrap{display:flex;justify-content:center;align-items:center;}
.phone-img{
  display:block;
  width:100%;
  max-width:300px;
  height:auto;
}

/* ── Features grid ── */
#feat-grid{padding:96px 0;background:var(--bg);}
.feat-head{text-align:center;margin-bottom:56px;}
.section-title{
  font-size:clamp(28px,3.5vw,46px);font-weight:800;
  letter-spacing:-0.03em;line-height:1.1;
  color:var(--text);text-wrap:balance;
}
.section-sub{font-size:16px;color:var(--muted);margin-top:14px;line-height:1.6;max-width:52ch;margin-left:auto;margin-right:auto;}
.fgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;}
@media(max-width:860px){.fgrid{grid-template-columns:repeat(2,1fr);}}
@media(max-width:520px){.fgrid{grid-template-columns:1fr;}}
.fitem{background:#fff;border-radius:var(--r);padding:28px 28px 32px;}
.ficon{display:block;width:28px;height:28px;margin-bottom:20px;color:var(--text);}
.ftitle{font-size:16px;font-weight:700;color:var(--text);margin-bottom:8px;}
.fdesc{font-size:14px;color:var(--muted);line-height:1.6;}

/* ── Pricing (dark) ── */
#pricing{
  padding:96px 0;
  background:var(--black);
  border-radius:24px;
  margin:0 24px;
}
@media(max-width:600px){#pricing{margin:0;border-radius:0;}}
#pricing .section-title{color:#fff;}
.pricing-head{text-align:center;margin-bottom:48px;}
.pricing-2col{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px;}
@media(max-width:700px){.pricing-2col{grid-template-columns:1fr;}}
.pricec{background:#fff;border-radius:var(--r);padding:32px;}
.picon{display:block;width:24px;height:24px;margin-bottom:20px;color:var(--text);}
.pcard-title{font-size:18px;font-weight:700;color:var(--text);margin-bottom:10px;}
.pcard-desc{font-size:14px;color:var(--muted);line-height:1.65;}
.quote-card{
  border-radius:var(--r);padding:40px 48px;
  background:var(--grad);
  text-align:center;
}
.quote-text{
  font-size:clamp(16px,1.6vw,20px);font-weight:700;
  color:var(--text);line-height:1.5;margin-bottom:20px;
  text-wrap:balance;max-width:60ch;margin-left:auto;margin-right:auto;
}
.quote-source{font-size:14px;color:var(--muted);letter-spacing:.3px;}
.pricing-cta{text-align:center;margin-top:40px;}

/* ── CTA section ── */
#cta{padding:96px 0;text-align:center;}
.cta-title{
  font-size:clamp(30px,4vw,52px);font-weight:800;
  letter-spacing:-0.03em;line-height:1.1;
  color:var(--text);margin-bottom:16px;text-wrap:balance;
}
.cta-sub{font-size:16px;color:var(--muted);max-width:44ch;margin:0 auto 52px;line-height:1.65;}

/* Countdown box */
.countdown-row{display:flex;margin-bottom:48px;}
.countdown-box{
  display:flex;align-items:center;justify-content:center;
  width:100%;min-height:159px;
  border:1.5px solid rgba(0,0,0,0.15);border-radius:16px;
  padding:16px 32px;
  background:rgba(255,255,255,0.5);
  backdrop-filter:blur(4px);
}
.countdown-text{
  display:inline-block;white-space:nowrap;
  font-size:clamp(26px,7vw,96px);
  font-weight:800;letter-spacing:-0.02em;line-height:1.18;
  background:linear-gradient(90deg,var(--teal) 0%,var(--purple) 33%,var(--pink) 66%,var(--orange) 100%);
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;
  background-clip:text;
  font-variant-numeric:tabular-nums;
}
@media(max-width:560px){
  .countdown-box{min-height:104px;padding:14px 12px;border-radius:14px;}
  .countdown-row{margin-bottom:36px;}
}

/* Step cards */
.steps{
  display:flex;align-items:flex-start;justify-content:center;
  gap:0;flex-wrap:wrap;margin-bottom:52px;
}
.step{display:flex;align-items:flex-start;gap:0;}
.step-card{
  background:#fff;border-radius:18px;
  padding:26px 22px;width:201px;min-height:220px;
  display:flex;flex-direction:column;gap:26px;
  flex-shrink:0;text-align:left;
}
.step-icon{display:block;width:26px;height:26px;color:var(--text);}
.step-label{font-size:15px;font-weight:700;color:var(--text);line-height:1.38;}
.step-arrow{
  display:flex;align-items:center;justify-content:center;
  width:40px;height:40px;
  background:var(--black);border-radius:50%;
  color:#fff;font-size:14px;font-weight:700;
  flex-shrink:0;align-self:center;
  margin:0 24px;
}
/* ── Percorso a strada (mobile) ── */
@media(max-width:860px){
  .step-arrow{display:none;}
  .steps{
    flex-direction:column;align-items:stretch;
    gap:20px;counter-reset:tappa;
    padding-left:4px;text-align:left;
  }
  .step{
    position:relative;
    padding-left:74px;
    counter-increment:tappa;
  }
  /* linea sottile tratteggiata fino alla tappa successiva */
  .step::after{
    content:'';position:absolute;z-index:0;
    left:32px;transform:translateX(-50%);
    top:30px;bottom:-32px;width:2px;
    background:repeating-linear-gradient(to bottom,
      rgba(0,0,0,.28) 0 6px, transparent 6px 13px);
  }
  .step:last-child::after{display:none;}
  /* cartello della tappa */
  .step::before{
    content:counter(tappa);
    position:absolute;z-index:1;
    left:32px;top:30px;transform:translate(-50%,-50%);
    width:30px;height:30px;border-radius:50%;
    background:#1F1F1F;color:#fff;
    display:flex;align-items:center;justify-content:center;
    font-size:13px;font-weight:700;
  }
  /* traguardo */
  .step:last-child::before{
    background:linear-gradient(135deg,var(--pink),var(--orange));
  }
  .step-card{
    width:100%;min-height:0;
    padding:18px 20px;gap:12px;
    flex-direction:row;align-items:center;
  }
  .step-icon{width:24px;height:24px;flex-shrink:0;}
  .step-label{font-size:14.5px;}
}
@media(max-width:420px){
  .step{padding-left:62px;}
  .step::after,.step::before{left:26px;}
  .step::before{width:28px;height:28px;font-size:12.5px;}
  .step-card{padding:16px 16px;}
}

/* ── Optimens section ── */
#optimens{padding:96px 0;background:#fff;}
.optimens-inner{display:flex;align-items:center;gap:60px;max-width:900px;margin:0 auto;}
@media(max-width:700px){.optimens-inner{flex-direction:column;gap:40px;text-align:center;}}
.optimens-logo{
  display:block;
  width:280px;height:280px;flex-shrink:0;
}
@media(max-width:820px){.optimens-logo{width:220px;height:220px;}}
.optimens-title{
  font-size:clamp(26px,3vw,40px);font-weight:800;
  letter-spacing:-0.025em;color:var(--text);margin-bottom:16px;
}
.optimens-desc{font-size:15px;color:var(--muted);line-height:1.7;max-width:44ch;}
.optimens-logo-link{display:block;flex-shrink:0;transition:opacity .15s;}
.optimens-logo-link:hover{opacity:.88;}
.optimens-link{color:var(--optimens);text-decoration:none;}
.optimens-link:hover{text-decoration:underline;}
.foot-optimens-name{color:#00B3E3;font-weight:600;text-decoration:none;}
.foot-optimens-name:hover{text-decoration:underline;}
.foot-copy a,.legal-body a[href^="https://optimens"]{color:inherit;text-decoration:underline;text-underline-offset:2px;}
.foot-copy a:hover{color:#FFFDFC;}

/* ── Footer (da Figma: frame 1728, contenuto 1200) ── */
footer{background:#030101;padding:96px 0;}
.foot-inner{max-width:1200px;margin:0 auto;padding:0 24px;display:flex;flex-direction:column;align-items:center;gap:36px;}
.foot-star{display:block;width:40px;height:40px;}
.foot-tagline{
  font-weight:700;font-size:48px;line-height:1.21;
  color:#FFFDFC;text-align:center;
  max-width:869px;letter-spacing:-0.01em;
}
@media(max-width:860px){.foot-tagline{font-size:34px;}}
@media(max-width:560px){.foot-tagline{font-size:27px;}}

/* Blocco wordmark: 1200x353 con ritaglio in basso (la Metis prosegue sotto la card) */
.foot-wordmark-block{position:relative;width:100%;}
.foot-wordmark-wrap{
  position:relative;width:100%;
  aspect-ratio:1200/353;
  overflow:hidden;
}
.foot-optimens-tag{
  position:absolute;z-index:2;top:0;right:2.08%;
  font-size:22px;line-height:30px;color:#FFFDFC;
  white-space:nowrap;
}
.foot-wordmark{
  position:absolute;left:2.08%;top:12.75%;
  width:95.83%;height:auto;display:block;
}
/* su schermi stretti il logotipo occupa tutta la larghezza: la dicitura va sopra */
@media(max-width:760px){
  .foot-optimens-tag{
    position:static;display:block;
    text-align:right;font-size:19px;
    margin:0 0 14px;
  }
}
@media(max-width:420px){.foot-optimens-tag{font-size:17px;}}

/* Card legale */
.foot-legal-card{
  width:100%;
  background:rgba(255,253,252,0.05);
  border:1px solid #333;
  border-radius:24px;
  padding:32px;
  display:flex;gap:48px;align-items:stretch;
}
.foot-legal-col{
  width:613px;flex-shrink:0;
  display:flex;flex-direction:column;justify-content:space-between;gap:32px;
  color:rgba(255,253,252,0.5);
}
.foot-legal-head{display:flex;flex-direction:column;gap:8px;}
.foot-legal-title{font-size:20px;font-weight:600;line-height:24px;}
.foot-legal-links{display:flex;flex-direction:column;gap:4px;}
.foot-legal-links a{
  font-size:16px;line-height:24px;color:inherit;text-decoration:none;
  transition:color .15s;width:fit-content;
}
.foot-legal-links a:hover{color:#FFFDFC;}
.foot-copy{font-size:16px;line-height:24px;}
.foot-divider{width:1px;background:#333;flex-shrink:0;}
.foot-eu{flex:1;min-width:0;display:flex;flex-direction:column;gap:24px;}
.foot-eu-logo{display:block;width:384px;max-width:100%;height:auto;}
.foot-eu-text{font-size:16px;line-height:24px;color:rgba(255,253,252,0.5);}

@media(max-width:1000px){
  .foot-legal-card{flex-direction:column;gap:32px;}
  .foot-legal-col{width:100%;}
  .foot-divider{width:100%;height:1px;}
}
@media(max-width:560px){
  footer{padding:64px 0;}
  .foot-legal-card{padding:24px;border-radius:18px;}
  .foot-legal-title{font-size:18px;}
  .foot-legal-links a,.foot-copy,.foot-eu-text{font-size:14px;line-height:22px;}
}

/* ── Pagine legali ── */
.legal-page{background:var(--bg);padding:140px 0 96px;}
.legal-page h1{
  font-size:clamp(32px,4vw,52px);font-weight:800;
  letter-spacing:-0.03em;line-height:1.1;margin-bottom:12px;text-wrap:balance;
}
.legal-updated{font-size:14px;color:var(--light);margin-bottom:48px;}
.legal-body{max-width:70ch;}
.legal-body h2{font-size:20px;font-weight:700;margin:40px 0 12px;letter-spacing:-0.01em;}
.legal-body p,.legal-body li{font-size:15px;color:var(--muted);line-height:1.75;}
.legal-body p{margin-bottom:14px;}
.legal-body ul{margin:0 0 14px 20px;}
.legal-body li{margin-bottom:6px;}
.legal-body a{color:var(--purple);}
.legal-back{display:inline-block;margin-top:48px;font-size:14px;color:var(--text);}
