:root{
  --bg:#ffffff;
  --bg2:#f7fafc;
  --ink:#0b1220;
  --muted:#5a667a;
  --line:#dce6ee;

  --ceph:#23c7d6;
  --ceph2:#2d6cdf;

  --r:16px;
  --max:1120px;
  --shadow: 0 14px 40px rgba(11,18,32,0.10);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial;
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 15% 10%, rgba(35,199,214,0.16), transparent 60%),
    radial-gradient(900px 520px at 85% 18%, rgba(45,108,223,0.10), transparent 62%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}

.wrap{ max-width: var(--max); margin:0 auto; padding: 0 22px; }

.hdr{
  background: rgba(255,255,255,0.86);
  border-bottom: 1px solid rgba(220,230,238,0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hdrInner{
  padding: 18px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.brand{
  display:flex; align-items:center; gap:10px;
  text-decoration:none; color: var(--ink);
  font-weight: 600;
}
.mark{
  width:10px; height:10px; border-radius:999px;
  background: radial-gradient(circle at 30% 30%, var(--ceph), var(--ceph2));
  box-shadow: 0 0 0 4px rgba(35,199,214,0.16);
}
.ghostBtn{
  text-decoration:none; color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.75);
  padding: 9px 12px;
  border-radius: 999px;
}
.ghostBtn:hover{ background: rgba(255,255,255,0.98); }

.hero{ padding: 44px 0 44px; }
.heroGrid{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items:start;
}

.pill{
  display:inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(35,199,214,0.35);
  background: rgba(35,199,214,0.08);
  color: #0c5560;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
}
h1{
  margin:0 0 12px;
  font-size: clamp(38px, 4.6vw, 62px);
  letter-spacing:-0.03em;
  line-height:1.06;
}
.lead{
  margin:0 0 16px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  max-width: 70ch;
}

.proof{ display:grid; gap: 12px; margin-top: 14px; }
.proofItem{
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px;
  box-shadow: 0 10px 26px rgba(11,18,32,0.06);
}
.pTitle{ font-weight: 650; margin-bottom: 4px; }
.pText{ color: var(--muted); font-size: 14px; line-height: 1.55; }

.quote{
  margin-top: 16px;
  border-radius: var(--r);
  border: 1px solid rgba(35,199,214,0.45);
  background: linear-gradient(90deg, rgba(35,199,214,0.08), rgba(45,108,223,0.04));
  padding: 16px;
}
.qMain{ margin:0 0 10px; font-weight: 650; letter-spacing:-0.01em; }
.qSub{ margin:0; color: var(--muted); font-size: 14px; }

.ctaRow{ margin-top: 16px; display:flex; gap: 10px; flex-wrap:wrap; }

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.82);
  color: var(--ink);
  text-decoration:none;
  font-weight: 600;
  cursor:pointer;
}
.btn:hover{ background: rgba(255,255,255,0.98); }
.primary{
  border-color: rgba(35,199,214,0.55);
  background: linear-gradient(90deg, rgba(35,199,214,0.22), rgba(45,108,223,0.10));
}
.full{ width: 100%; }

.formCard{
  background: rgba(255,255,255,0.90);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px;
  box-shadow: var(--shadow);
}
.formHead h2{ margin:0; font-size: 18px; letter-spacing:-0.01em; }
.formHead p{ margin: 6px 0 0; }
.muted{ color: var(--muted); }

.form{ margin-top: 12px; display:grid; gap: 12px; }
.row2{ display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.field span{
  display:block;
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
input, textarea{
  width:100%;
  min-width:0;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.98);
  color: var(--ink);
  font-size: 15px;
  outline:none;
}
input:focus, textarea:focus{
  border-color: rgba(35,199,214,0.75);
  box-shadow: 0 0 0 4px rgba(35,199,214,0.14);
}

.optional{
  border: 1px dashed rgba(90,102,122,0.35);
  background: rgba(247,250,252,0.8);
  border-radius: 12px;
  padding: 10px;
}
.optional summary{ cursor:pointer; font-weight:700; color: rgba(11,18,32,0.80); }

.sent{
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(35,199,214,0.35);
  background: rgba(35,199,214,0.10);
  color: #0c5560;
  font-weight: 600;
}

.meta{ margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.meta a{ color: var(--ink); }

.hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

.ftr{
  border-top: 1px solid rgba(220,230,238,0.9);
  background: rgba(255,255,255,0.86);
  padding: 18px 0 26px;
}
.ftrInner{
  display:flex;
  justify-content:space-between;
  gap: 10px;
  flex-wrap:wrap;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px){
  .heroGrid{ grid-template-columns: 1fr; }
  .row2{ grid-template-columns: 1fr; }
}

/* Fine-tuning alignment */
.heroRight { margin-top: 18px; }
@media (max-width: 980px){
  .heroRight { margin-top: 0; }
}

/* Below fold (telemetry + why) */
.below{ padding: 18px 0 38px; }
.belowGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items:start;
}
.panel{
  background: rgba(255,255,255,0.86);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px;
  box-shadow: 0 10px 26px rgba(11,18,32,0.06);
}
.panel h2{ margin:0 0 6px; font-size: 18px; letter-spacing:-0.01em; }
.hint{ margin:10px 0 0; color: var(--muted); font-size: 13px; }

.stats{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.stat{
  border: 1px solid rgba(220,230,238,0.9);
  background: rgba(247,250,252,0.7);
  border-radius: 12px;
  padding: 10px;
}
.sK{ font-size: 12px; color: var(--muted); font-weight: 700; }
.sV{ margin-top: 4px; font-size: 14px; font-weight: 650; }

.linkBtn{
  margin-top: 12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(35,199,214,0.55);
  background: rgba(35,199,214,0.10);
  color: var(--ink);
  text-decoration:none;
  font-weight: 650;
}
.linkBtn:hover{ background: rgba(35,199,214,0.16); }

.why{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.whyItem{
  border: 1px solid rgba(220,230,238,0.9);
  background: rgba(247,250,252,0.7);
  border-radius: 12px;
  padding: 10px;
}
.wT{ font-weight: 650; }
.wD{ margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.45; }

.whyMore{
  margin-top: 12px;
  border: 1px dashed rgba(90,102,122,0.35);
  background: rgba(247,250,252,0.7);
  border-radius: 12px;
  padding: 10px;
}
.whyMore summary{ cursor:pointer; font-weight: 750; color: rgba(11,18,32,0.78); }

@media (max-width: 980px){
  .belowGrid{ grid-template-columns: 1fr; }
  .stats{ grid-template-columns: 1fr; }
  .why{ grid-template-columns: 1fr; }
}

/* Grafana panels section (symmetry) */
.gsec{ padding: 10px 0 44px; }
.ghead{ margin: 0 0 12px; }
.ghead h2{ margin:0 0 6px; font-size: 20px; letter-spacing:-0.01em; }

.ggrid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.gcard{
  background: rgba(255,255,255,0.90);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 12px;
  box-shadow: 0 10px 26px rgba(11,18,32,0.06);
  display:flex;
  flex-direction: column;
  min-height: 340px;
}

.gcard h3{
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: -0.01em;
}

.gcard iframe{
  width: 100%;
  flex: 1 1 auto;
  min-height: 280px;
  border: 0;
  border-radius: 12px;
  background: #fff;
}

.gfoot{ margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.gfoot a{ color: var(--ink); }

@media (max-width: 980px){
  .ggrid{ grid-template-columns: 1fr; }
  .gcard{ min-height: 320px; }
}

/* Grafana rendered panels (PNG) */
.gcard { min-height: unset; }
.gimgLink{ display:block; text-decoration:none; color: inherit; }
.gcard img{
  width: 100%;
  height: auto;
  display:block;
  border-radius: 12px;
  border: 1px solid rgba(220,230,238,0.9);
  background: #fff;
}

/* Telemetry snapshots (images) */
.gimgLink{ display:block; text-decoration:none; color: inherit; }
.gcard img{
  width: 100%;
  height: auto;
  display:block;
  border-radius: 12px;
  border: 1px solid rgba(220,230,238,0.9);
  background: #fff;
}

/* Telemetry tiles alignment fixes */
.ggrid{
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.gcard{
  display:flex;
  flex-direction: column;
}

.gcard h3{
  min-height: 38px; /* allinea le card anche se un titolo va su 2 righe */
}

/* Force identical visual height for all telemetry images */
.gcard img{
  width: 100%;
  aspect-ratio: 16 / 6;
  height: auto;
  object-fit: cover;
  object-position: center;
}

/* Vertical flow: consistent section rhythm */
.hero{ padding: 44px 0 28px; }
.gsec{ padding: 28px 0 28px; }
.wsec{ padding: 0 0 44px; }

/* Remove any legacy two-column wrapper if still present somewhere */
.below, .belowGrid{ all: unset; }

/* Force vertical flow: sections span full width even inside any grid parent */
.gsec, .wsec{
  display: block;
  width: 100%;
  grid-column: 1 / -1;
  justify-self: stretch;
}

.gsec{ padding: 28px 0 18px; }
.wsec{ padding: 18px 0 44px; }

/* Telemetry tiles: equal columns + equal card height */
.ggrid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.gcard{
  height: 100%;
  display: flex;
  flex-direction: column;
}

.gcard h3{
  min-height: 44px; /* uniforma card anche se un titolo va su 2 righe */
}

/* Image frame: identical size across tiles */
.gimg{
  width: 100%;
  aspect-ratio: 16 / 6;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(220,230,238,0.9);
  background: #fff;
}

.gimg img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

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