/* ====== Tokens ====== */
:root{
  --ink:#1d1d1f; --muted:#6e6e73; --bg:#ffffff; --panel:#f5f5f7;
  --line:#e6e6e8; --blue:#0071e3; --shadow:0 10px 30px rgba(0,0,0,.06);
}
:root.dark{
  --ink:#f5f5f7; --muted:#a1a1a6; --bg:#0b0b0b; --panel:#141415;
  --line:#222226; --blue:#0a84ff; --shadow:0 10px 30px rgba(0,0,0,.4);
}

/* ====== Base ====== */
*{box-sizing:border-box;margin:0;padding:0}
html,body{
  background:var(--bg);
  color:var(--ink);
  font:16px/1.55 -apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",Arial,sans-serif
}
a{color:var(--blue);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;height:auto;display:block}

/* ====== Header / Nav ====== */
.nav{
  position:sticky;
  top:0;
  z-index:100;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 28px;
  background:rgba(245,245,247,.85);
  backdrop-filter:saturate(180%) blur(16px);
  border-bottom:1px solid var(--line);
}
:root.dark .nav{background:rgba(20,20,21,.7)}
.brand{font-weight:800;letter-spacing:.3px}
.menu{list-style:none;display:flex;gap:22px;align-items:center}
.menu a{color:var(--ink)}
.menu a:hover{color:var(--blue)}
.mode{
  border:1px solid var(--line);
  background:transparent;
  color:var(--ink);
  padding:6px 10px;
  border-radius:999px;
  cursor:pointer;
}

/* ====== Hero ====== */
.hero{
  position:relative;
  isolation:isolate;
  text-align:center;
  padding:110px 8% 90px;
  overflow:hidden;
  max-width:1400px;
  margin:0 auto;
}
.logo{width:120px;margin:0 auto 14px}
.hero h1{
  font-size:46px;
  font-weight:900;
  letter-spacing:-.02em;
  max-width:950px;
  margin:0 auto 14px;
}
.sub{color:var(--muted);font-size:21px;margin:10px 0 8px}
.pill{
  display:inline-block;
  margin:10px 0 20px;
  padding:6px 12px;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--muted)
}
.cta-row{
  display:flex;
  gap:16px;
  justify-content:center;
  align-items:center;
  margin-top:8px
}
.btn{
  display:inline-block;
  background:var(--blue);
  color:#fff;
  border-radius:12px;
  padding:14px 22px;
  font-weight:700;
  box-shadow:var(--shadow)
}
.btn:hover{filter:brightness(.95)}
.link{font-weight:600}

/* gradient/glass backdrop */
.hero-bg{
  position:absolute;
  inset:-20% -10% auto -10%;
  height:70%;
  background:radial-gradient(60% 60% at 50% 35%, rgba(0,113,227,.10), transparent 60%),
             radial-gradient(40% 40% at 20% 10%, rgba(0,113,227,.18), transparent 70%),
             radial-gradient(40% 40% at 80% 10%, rgba(0,113,227,.14), transparent 70%);
  filter:saturate(120%) blur(20px);
  z-index:-1;
}

/* ====== Sections ====== */
.section{
  max-width:1400px;
  margin:0 auto;
  padding:70px 8%;
  text-align:center;
}
.section h2{font-size:30px;margin-bottom:22px}

/* Features tiles */
.cols{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:18px;
  margin-top:6px
}
.tile{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:16px;
  padding:26px;
  text-align:left;
  box-shadow:var(--shadow)
}
.tile h3{font-size:18px;margin-bottom:6px}
.tile p{color:var(--muted)}

/* Divider & small text */
.divider{
  border:0;
  border-top:1px solid var(--line);
  margin:0 auto;
  max-width:1400px
}
.muted{color:var(--muted)}
.small{font-size:14px}
.micro{font-size:12px}

/* Pricing */
.billing-toggle{
  display:flex;
  gap:10px;
  justify-content:center;
  margin:10px 0 22px
}
.chip{
  border:1px solid var(--line);
  background:transparent;
  color:var(--ink);
  padding:8px 14px;
  border-radius:999px;
  cursor:pointer
}
.chip.active{background:var(--panel)}
.plans{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:18px;
  margin-top:6px;
  max-width:1400px;
  margin-left:auto;
  margin-right:auto;
  padding:0 8%;
}
.plan{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:16px;
  padding:26px;
  text-align:left;
  box-shadow:var(--shadow)
}
.plan.focus{outline:2px solid rgba(0,113,227,.25)}
.plan h3{font-size:20px;margin-bottom:6px}
.plan .price{font-size:28px;color:var(--blue);margin:6px 0 10px}
.plan ul{
  list-style:none;
  color:var(--muted);
  display:grid;
  gap:6px;
  margin-bottom:14px
}
.ghost{
  display:inline-block;
  border:1px solid var(--line);
  border-radius:10px;
  padding:12px 16px;
  font-weight:600;
  color:var(--ink)
}
.ghost:hover{background:var(--panel)}

/* Beta form */
.beta{
  max-width:520px;
  margin:8px auto 0;
  display:grid;
  gap:14px;
  text-align:left
}
.beta label span{
  display:block;
  font-weight:600;
  margin-bottom:6px
}
.beta input{
  width:100%;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:12px;
  background:transparent;
  color:var(--ink)
}
.beta input::placeholder{color:var(--muted)}

/* Footer */
.foot{text-align:center;color:var(--muted);padding:40px 20px}

/* Smooth scroll */
html{scroll-behavior:smooth}

/* ====== Responsive tweaks ====== */
@media (max-width:520px){
  .hero h1{font-size:36px}
  .sub{font-size:18px}
  .hero, .section{padding-left:6%;padding-right:6%}
}

/* ====== Navbar (nuova intestazione) ====== */
header {
  background-color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  padding: 15px 8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo img {height: 45px;}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  height: 3px;
  background-color: #333;
  border-radius: 2px;
}

/* Menu popup */
.popup-menu {
  display: flex;
  gap: 25px;
}
.popup-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.2s ease;
}
.popup-menu a:hover,
.popup-menu a.active {
  color: #0066ff;
}

/* Mobile */
@media (max-width: 768px) {
  .hamburger {display: flex;}
  .popup-menu {
    position: absolute;
    top: 65px;
    right: 15px;
    background: #fff;
    flex-direction: column;
    width: 200px;
    padding: 15px;
    gap: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 6px;
    display: none;
  }
}