:root {
  color-scheme: dark;
  --bg: #05080d;
  --panel: rgba(12, 18, 27, 0.84);
  --panel-solid: #0d141e;
  --line: rgba(182, 211, 235, 0.18);
  --text: #f5f8fb;
  --muted: #a9b7c6;
  --blue: #2f8bd8;
  --green: #68d391;
  --amber: #f0b94b;
  --orange: #d58443;
  --red: #d8614d;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 148px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 78%);
  z-index: -2;
}

#hero-scene {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -3;
  background: #05080d;
  opacity: 0.34;
}

#specifiche,
#moduli,
#pacchetti,
#download {
  scroll-margin-top: 148px;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 64px);
  background: rgba(5, 8, 13, 0.74);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.brand strong {
  display: block;
  font-size: 20px;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 15px;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--text);
}

.header-download,
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 800;
  border: 1px solid transparent;
}

.header-download,
.primary-action {
  background: var(--orange);
  color: #081016;
  box-shadow: 0 14px 42px rgba(213, 132, 67, 0.23);
}

.secondary-action {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.section-shell {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 90px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  padding: 82px 0 58px;
}

.hero-copy {
  max-width: 980px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(46px, 7vw, 92px);
  line-height: 0.96;
  max-width: 900px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.hero-lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 26px;
}

.release-strip {
  display: grid;
  grid-template-columns: auto auto auto auto;
  gap: 10px 14px;
  width: fit-content;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(5, 8, 13, 0.58);
}

.release-strip strong {
  color: var(--text);
}

.hero-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 10px;
}

.hero-detail-grid article,
.text-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 13, 20, 0.78);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
}

.hero-detail-grid article {
  padding: 22px;
}

.hero-detail-grid h2 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.14;
  letter-spacing: 0;
}

.hero-detail-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.text-section {
  padding: 32px;
  margin-bottom: 22px;
}

.hero-panel,
.spec-grid article,
.module-list article,
.pricing-grid article,
.flow-track div,
.final-cta {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.26);
}

.hero-panel {
  padding: 26px;
}

.signal-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
}

.signal {
  width: 11px;
  height: 11px;
  border-radius: 999px;
}

.signal-green {
  background: var(--green);
  box-shadow: 0 0 0 8px rgba(104, 211, 145, 0.12);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.hero-stats div {
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.hero-stats dt,
.mini-terminal span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-stats dd {
  margin: 7px 0 0;
  font-size: 22px;
  font-weight: 900;
}

.mini-terminal {
  padding: 18px;
  border-radius: 8px;
  background: #05080d;
  border: 1px solid rgba(104, 211, 145, 0.18);
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  color: #d7ffe6;
}

.product-feed {
  font-family: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.mini-terminal p {
  margin: 0;
}

.mini-terminal p + p {
  margin-top: 10px;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.64fr 1fr;
  gap: 34px;
  align-items: end;
  margin-bottom: 26px;
}

.section-heading.wide {
  display: block;
  max-width: 860px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 74px 0;
}

.spec-grid .section-heading {
  grid-column: 1 / -1;
}

.spec-grid article,
.module-list article,
.pricing-grid article {
  padding: 24px;
}

.spec-grid p,
.module-list p,
.pricing-grid li,
.flow-track span,
.site-footer {
  color: var(--muted);
  line-height: 1.5;
}

.module-section,
.pricing-section,
.flow-section,
.outcome-section {
  padding: 74px 0;
}

.module-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.module-list span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--amber);
  font-size: 14px;
  font-weight: 900;
}

.flow-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.flow-track div {
  min-height: 150px;
  padding: 24px;
}

.flow-track strong {
  display: block;
  margin-bottom: 12px;
  font-size: 26px;
}

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.outcome-grid article {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 18, 27, 0.78);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.22);
}

.outcome-grid strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: rgba(47, 139, 216, 0.18);
  color: var(--green);
  font-weight: 900;
}

.outcome-grid p,
.section-heading.wide > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
}

.pricing-heading {
  max-width: 980px;
}

.pricing-section {
  padding-top: 132px;
}

.pricing-notice {
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(104, 211, 145, 0.28);
  border-radius: 8px;
  background: rgba(12, 35, 24, 0.58);
  color: var(--muted);
  line-height: 1.55;
}

.pricing-notice strong {
  color: var(--text);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  align-items: stretch;
  margin-top: 28px;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.pricing-grid article.highlight {
  border-color: rgba(240, 185, 75, 0.68);
  background: linear-gradient(180deg, rgba(50, 39, 17, 0.88), rgba(15, 18, 23, 0.88));
}

.plan-top {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.plan-badge {
  justify-self: start;
  padding: 7px 10px;
  border: 1px solid rgba(182, 211, 235, 0.16);
  border-radius: 999px;
  background: rgba(182, 211, 235, 0.08);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.price {
  color: var(--green);
  font-size: 24px;
  font-weight: 900;
}

.pricing-card h4 {
  margin: 18px 0 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.plan-for {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.5;
}

.pricing-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pricing-grid li {
  position: relative;
  padding-left: 18px;
}

.pricing-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
  transform: translateY(-50%);
}

.pricing-grid .excluded-list li::before {
  background: var(--red);
}

.pricing-grid li + li {
  margin-top: 9px;
}

.comparison-panel {
  margin-top: 36px;
  padding: 26px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(10, 16, 24, 0.97), rgba(7, 11, 18, 0.95));
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.comparison-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 18px;
}

.comparison-head h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
}

.comparison-head p:not(.eyebrow) {
  width: min(520px, 100%);
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.feature-table-wrapper {
  overflow-x: auto;
  border: 1px solid rgba(182, 211, 235, 0.16);
  border-radius: 10px;
  background: rgba(4, 8, 13, 0.96);
}

.feature-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  table-layout: fixed;
}

.feature-table col.feature-name {
  width: 33%;
}

.feature-table th,
.feature-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(182, 211, 235, 0.11);
  border-left: 1px solid rgba(182, 211, 235, 0.09);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.32;
  text-align: left;
  vertical-align: middle;
}

.feature-table tr:last-child th,
.feature-table tr:last-child td {
  border-bottom: 0;
}

.feature-table th:first-child,
.feature-table td:first-child {
  border-left: 0;
}

.feature-table thead th {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(47, 139, 216, 0.16);
}

.feature-table tbody th {
  color: var(--text);
  font-weight: 800;
}

.feature-table tbody td {
  text-align: center;
  white-space: nowrap;
}

.feature-table .yes {
  color: #c5f7d6;
  font-weight: 800;
  background: rgba(104, 211, 145, 0.09);
}

.feature-table .partial {
  color: #ffe19a;
  font-weight: 800;
  background: rgba(240, 185, 75, 0.10);
}

.feature-table .no {
  color: #ffb8aa;
  font-weight: 800;
  background: rgba(216, 97, 77, 0.09);
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 60px;
  margin-bottom: 60px;
  padding: 34px;
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 30px 20px 44px;
  border-top: 1px solid var(--line);
}

@media (max-width: 1040px) {
  .nav-links {
    display: none;
  }

  .hero,
  .hero-detail-grid,
  .section-heading,
  .spec-grid,
  .module-list,
  .flow-track,
  .outcome-grid,
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-copy,
  .hero-detail-grid,
  .spec-grid .section-heading {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
    align-items: flex-start;
  }

  .header-download {
    display: none;
  }

  .hero,
  .hero-detail-grid,
  .section-heading,
  .spec-grid,
  .module-list,
  .flow-track,
  .outcome-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 54px;
  }

  .release-strip {
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .final-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}
