:root{
  --bg:#05070f;
  --bg2:#05070f; /* più omogeneo */
  --text:#f2f4ff;
  --muted:#aab0d6;
  --muted2: rgba(170, 176, 214, 0.72);

  --panel: rgba(255,255,255,0.045);
  --panel2: rgba(255,255,255,0.06);
  --panelBorder: rgba(255,255,255,0.10);

  --primary:#7c7cff;
  --primary2:#9aa3ff;
  --green:#4ade80;

  --radius:18px;
  --radius2:24px;
  --shadow: 0 26px 70px rgba(0,0,0,0.38);

  --max:1180px;
}

*{ box-sizing:border-box; margin:0; padding:0; }
html,body{ height:100%; }
a{ color:inherit; text-decoration:none; }
body{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1000px 520px at 70% 0%, rgba(124,124,255,0.12), transparent 62%),
              radial-gradient(900px 500px at 10% 20%, rgba(74,222,128,0.08), transparent 65%),
              linear-gradient(180deg, var(--bg), var(--bg2));
  line-height: 1.6;
  overflow-x:hidden;
}

/* Background aura (più soft, meno stacchi) */
.bg-aura{
  position: fixed;
  inset: -35%;
  z-index: -2;
  background: linear-gradient(120deg,
    rgba(124,124,255,0.12),
    rgba(124,124,255,0.08),
    rgba(74,222,128,0.06),
    rgba(124,124,255,0.10)
  );
  background-size: 320% 320%;
  animation: auraMove 46s ease-in-out infinite;
  filter: blur(90px);
  opacity: 0.55;
  transform: translateZ(0);
}
@keyframes auraMove{
  0%{ background-position: 0% 50%; transform: scale(1) rotate(0deg); }
  50%{ background-position: 100% 50%; transform: scale(1.03) rotate(0.6deg); }
  100%{ background-position: 0% 50%; transform: scale(1) rotate(0deg); }
}

/* Layout */
.wrap{ max-width: var(--max); margin: 0 auto; padding: 28px 18px 72px; }
.container{ width: min(92vw, var(--max)); margin: 0 auto; }

/* Brand chip */
.brand-chip{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.brand-chip:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.22);
}
.brand-mark{
  width: 18px; height: 18px;
  border-radius: 8px;
  background:
    radial-gradient(8px 8px at 30% 30%, rgba(255,255,255,0.95), rgba(255,255,255,0) 60%),
    linear-gradient(135deg, rgba(124,124,255,0.95), rgba(154,163,255,0.75));
  box-shadow: 0 10px 30px rgba(124,124,255,0.22);
  border: 1px solid rgba(255,255,255,0.14);
}
.brand-text{
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Header (index) */
.site-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  margin-bottom: 64px;
}
.site-nav{
  display:flex;
  align-items:center;
  gap: 18px;
  flex-wrap: wrap;
}
.site-nav a{
  font-size: 14px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 12px;
  transition: background .2s ease, color .2s ease;
}
.site-nav a:hover{
  color: var(--text);
  background: rgba(255,255,255,0.05);
}
.site-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content:flex-end;
}

/* Topbar (prezzi) */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5,7,15,0.55);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 14px 0;
}
.nav-pills{
  display:flex;
  gap: 10px;
  align-items:center;
  justify-content:center;
  flex-wrap: wrap;
}
.nav-link{
  font-size: 13px;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.nav-link:hover{
  color: var(--text);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-1px);
}
.top-actions{
  display:flex;
  gap:10px;
  flex-wrap: wrap;
  justify-content:flex-end;
}

/* Buttons (premium base) */
.btn{
  position: relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, filter .18s ease;
  white-space: nowrap;
  user-select: none;
  text-decoration: none !important;
  outline: none;
  overflow: hidden; /* importante: lo shine resta dentro */
}
.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.22);
}
.btn:active{ transform: translateY(0px) scale(0.99); }

/* Primary */
.btn-primary{
  border-color: rgba(124,124,255,0.45);
  background: linear-gradient(120deg, rgba(124,124,255,0.95), rgba(154,163,255,0.90));
  color: #05070f;
  box-shadow: 0 12px 40px rgba(124,124,255,0.18);
  font-weight: 700;
}
.btn-primary:hover{
  filter: brightness(1.02);
  box-shadow: 0 16px 54px rgba(124,124,255,0.22);
}

/* Ghost */
.btn-ghost{
  background: rgba(255,255,255,0.035);
  border-color: rgba(255,255,255,0.14);
  color: var(--text);
}

/* Sizes */
.btn-xl{ padding: 14px 22px; font-size: 15px; }
.btn-full{ width: 100%; margin-top: 12px; }

/* Shine (white reflective sweep, INSIDE the button) */
.btn-shine::after{
  content:"";
  position:absolute;
  top: -40%;
  left: -60%;
  width: 55%;
  height: 180%;
  background: linear-gradient(90deg,
    rgba(255,255,255,0),
    rgba(255,255,255,0.35),
    rgba(255,255,255,0)
  );
  transform: skewX(-18deg);
  opacity: 0.0;
  pointer-events:none;
}

/* On hover: single sweep */
@media (hover:hover){
  .btn-shine:hover::after{
    opacity: 0.9;
    animation: shineSweep 0.85s ease-out 1;
  }
}

/* Idle: gentle intermittent sweep (subtle) */
.btn-shine::after{
  animation: shineIdle 5.6s ease-in-out infinite;
}
@keyframes shineIdle{
  0%, 70%{ left: -60%; opacity: 0; }
  78%{ opacity: .55; }
  85%{ left: 120%; opacity: .0; }
  100%{ left: 120%; opacity: 0; }
}
@keyframes shineSweep{
  0%{ left:-60%; opacity:0; }
  10%{ opacity:.65; }
  100%{ left:120%; opacity:0; }
}

/* Hero */
.hero{ margin-bottom: 90px; position: relative; z-index: 1; }
.hero-center{ text-align:center; }
.hero-pricing{ padding: 38px 0 10px; }
.badge{
  display:inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--green);
  font-size: 13px;
  margin-bottom: 18px;
}
.badge-dot{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color: var(--muted);
}
.dot{
  width: 10px; height: 10px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(74,222,128,0.10);
}
h1{
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.07;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.grad{
  background: linear-gradient(120deg, var(--primary), var(--primary2));
  -webkit-background-clip:text;
  color: transparent;
}
.subtitle, .lead, .sub{
  color: var(--muted);
  font-size: 16px;
  max-width: 70ch;
}
.hero-center .subtitle{ margin: 0 auto; }

.subtitle-center{
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.actions{
  display:flex;
  gap: 12px;
  justify-content:center;
  flex-wrap:wrap;
  margin-top: 22px;
}
.actions-left{ justify-content:flex-start; }

/* Hero metrics */
.hero-metrics{
  margin-top: 28px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.metric{
  padding: 14px 16px;
  border-radius: var(--radius2);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(8px);
}
.metric-top{ font-weight: 700; }
.metric-sub{ color: var(--muted); font-size: 13px; margin-top: 2px; }

/* Sections */
section{ margin-bottom: 88px; }
.section-head{ text-align:center; margin-bottom: 42px; }
.section-head h2{ font-size: 32px; margin-bottom: 10px; }
.section-head p{ color: var(--muted); }

/* Cards and grids */
.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card{
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.card:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,0.055);
  border-color: rgba(255,255,255,0.16);
}
.card h3{ margin-bottom: 8px; }
.card p{ color: var(--muted); font-size: 14px; }

ul.clean{ list-style:none; margin-top: 14px; }
ul.clean li{ font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.fit{ max-width: 760px; margin: 0 auto; text-align:center; }

/* Pricing layout */
.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 22px;
  align-items: start;
}
.mini-points{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.pill{
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
}

.sidecard{
  border-radius: var(--radius2);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow);
  padding: 18px;
  position: relative;
  overflow: hidden;
}
.sidecard.premium::before{
  content:"";
  position:absolute;
  inset:-40%;
  background: radial-gradient(closest-side, rgba(124,124,255,0.16), transparent 60%),
              radial-gradient(closest-side, rgba(74,222,128,0.08), transparent 60%);
  filter: blur(55px);
  opacity: 0.65;
  animation: sideGlow 14s ease-in-out infinite;
}
@keyframes sideGlow{
  0%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(16px,-10px) scale(1.04); }
  100%{ transform: translate(0,0) scale(1); }
}
.sidecard *{ position: relative; }
.side-top{ display:flex; align-items:center; justify-content:space-between; gap: 10px; margin-bottom: 10px; }
.side-badge{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(124,124,255,0.12);
  border: 1px solid rgba(124,124,255,0.22);
  color: var(--text);
  font-weight: 700;
}
.side-title{ font-weight: 800; color: var(--text); }
.side-actions{ display:flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.side-foot{ margin-top: 14px; color: var(--muted); font-size: 12px; }

/* Steps */
.steps{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.step{
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 14px;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.step:hover{ transform: translateY(-2px); background: rgba(255,255,255,0.055); border-color: rgba(255,255,255,0.16); }
.step .n{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 32px; height: 32px;
  border-radius: 12px;
  background: rgba(124,124,255,0.16);
  border: 1px solid rgba(124,124,255,0.30);
  font-weight: 800;
  margin-bottom: 10px;
}

/* Pricing grid */
.pricing-grid{ display:grid; gap: 14px; }
.setup{
  border-radius: var(--radius2);
  background: linear-gradient(135deg, rgba(124,124,255,0.18), rgba(154,163,255,0.08));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow);
  padding: 18px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.setup-right{
  display:flex;
  flex-direction: column;
  align-items:flex-end;
  gap: 10px;
  min-width: 220px;
}
.desc{ color: var(--muted); font-size: 14px; max-width: 62ch; }
.price{ font-size: 30px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.small{ font-size: 13px; color: var(--muted); }

.plans{
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.plan{
  border-radius: var(--radius2);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 16px;
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
  min-height: 190px;
}
.plan:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.055);
}
.plan-featured{
  border-color: rgba(124,124,255,0.26);
  background: linear-gradient(180deg, rgba(124,124,255,0.10), rgba(255,255,255,0.04));
}
.tag{
  position:absolute;
  top: 12px; right: 12px;
  font-size: 11px;
  font-weight: 800;
  color: rgba(255,255,255,0.92);
  background: rgba(74,222,128,0.14);
  border: 1px solid rgba(74,222,128,0.22);
  padding: 6px 10px;
  border-radius: 999px;
}
.tag.best{
  background: rgba(124,124,255,0.14);
  border-color: rgba(124,124,255,0.24);
}
.mins{ color: var(--muted); font-weight: 700; font-size: 13px; margin-bottom: 12px; }
.p{ font-size: 24px; font-weight: 900; letter-spacing: -0.02em; }
.meta{ margin-top: 10px; color: var(--muted2); font-size: 12px; line-height: 1.35; }

.note{
  margin-top: 12px;
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--muted);
  font-size: 13px;
  display:flex;
  gap: 10px;
  align-items:flex-start;
}
.note strong{ color: var(--text); }
.note .icon{
  width: 26px; height: 26px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  display:flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 auto;
  font-weight: 900;
  color: rgba(255,255,255,0.9);
}

/* Policy & lists */
.policy{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.list{
  margin:0; padding:0; list-style:none;
  display:grid; gap: 10px;
}
.list li{
  display:flex; gap: 10px; align-items:flex-start;
  color: var(--muted);
  font-size: 13px;
}
.check{
  width: 22px; height: 22px;
  border-radius: 8px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(74,222,128,0.14);
  border: 1px solid rgba(74,222,128,0.20);
  color: rgba(255,255,255,0.92);
  font-weight: 900;
  flex: 0 0 auto;
  margin-top: 1px;
}

/* FAQ */
details{
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 12px 14px;
}
details + details{ margin-top: 10px; }
summary{
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  list-style: none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}
summary::-webkit-details-marker{ display:none; }
.answer{
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.chev{
  width: 26px; height: 26px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  display:flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 auto;
  transition: .2s ease;
  color: rgba(255,255,255,0.85);
  font-weight: 900;
}
details[open] .chev{ transform: rotate(180deg); }

/* CTA */
.cta{
  border-radius: 22px;
  padding: 36px 26px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow);
}
.cta::before{
  content:"";
  position:absolute;
  inset:-40%;
  background: radial-gradient(closest-side, rgba(124,124,255,0.16), transparent 60%),
              radial-gradient(closest-side, rgba(74,222,128,0.08), transparent 60%);
  filter: blur(55px);
  opacity: 0.65;
  animation: ctaPulse 16s ease-in-out infinite;
}
@keyframes ctaPulse{
  0%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(-14px,10px) scale(1.04); }
  100%{ transform: translate(0,0) scale(1); }
}
.cta *{ position: relative; z-index: 1; }

/* Footer */
.site-footer{
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.10);
}
.footer-row{
  display:flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: space-between;
  align-items:center;
  padding: 28px 18px 40px;
}
.footer-links{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-links a{
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--muted2);
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.footer-links a:hover{
  color: var(--text);
  border-color: rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
}
.footer-legal{
  font-size: 11px;
  opacity: .7;
  margin-top: 8px;
  line-height: 1.3;
}

/* Responsive */
@media (max-width: 980px){
  .site-header{ flex-direction: column; align-items: flex-start; gap: 12px; }
  .site-actions{ width: 100%; justify-content:flex-start; }

  .topbar-inner{ flex-direction: column; align-items: stretch; gap: 12px; }
  .nav-pills{ justify-content:flex-start; }
  .top-actions{ justify-content:flex-start; }

  .hero-grid{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr; }
  .plans{ grid-template-columns: 1fr; }
  .policy{ grid-template-columns: 1fr; }
  .setup-right{ align-items:flex-start; }
  .hero-metrics{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
}

/* Prezzi: riga centrata per Pro + Premium */
.plans-row{
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 340px));
  gap: 18px;
  justify-content: center;
  margin-top: 18px;
}

/* Prezzi: card enterprise sotto, centrata */
.plan-enterprise{
  max-width: 720px;
  margin: 18px auto 0;
}
/* ===== PATCH PREZZI (layout stabile) ===== */

/* La griglia dei piani deve essere fluida, non a 5 colonne fisse */
.plans{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

/* La riga Pro + Premium deve stare centrata e non attaccata a sinistra */
.plans-row{
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 340px));
  gap: 18px;
  justify-content: center;
  margin-top: 18px;
  width: 100%;
}

/* Su schermi piccoli: Pro e Premium uno sotto l'altro */
@media (max-width: 720px){
  .plans-row{
    grid-template-columns: 1fr;
  }
}

/* Enterprise sotto, centrata e più larga */
.plan-enterprise{
  max-width: 720px;
  margin: 18px auto 0;
}

/* Evita card "larghissime" per contenuti lunghi */
.plan{
  max-width: 100%;
}

