:root {
  --bg: #061525;
  --panel: rgba(7, 28, 48, 0.82);
  --panel-strong: rgba(5, 18, 34, 0.94);
  --panel-soft: rgba(255, 255, 255, 0.055);
  --line: rgba(136, 220, 255, 0.2);
  --line-strong: rgba(136, 220, 255, 0.38);
  --text: #eff9ff;
  --muted: #b7cde0;
  --accent: #65dcff;
  --accent-strong: #0cb4ee;
  --green: #8df1c8;
  --green-soft: rgba(141, 241, 200, 0.14);
  --warning: #ffd56c;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius-md: 22px;
  --radius-sm: 16px;
  --max: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 2%, rgba(101, 220, 255, 0.28), transparent 28%),
    radial-gradient(circle at 88% 14%, rgba(0, 118, 190, 0.34), transparent 24%),
    radial-gradient(circle at 50% 92%, rgba(141, 241, 200, 0.12), transparent 26%),
    linear-gradient(180deg, #071a2d 0%, #09243c 42%, #071525 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: 0;
  background-image:
    linear-gradient(rgba(136, 220, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(136, 220, 255, 0.06) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 96%);
}

body::after {
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(4, 17, 31, 0.48), rgba(5, 21, 37, 0.72)),
    radial-gradient(circle at 18% 0%, rgba(101, 220, 255, 0.16), transparent 32%),
    url("./assets/images/sfondo-idracad-2-clean.png") center center / cover no-repeat;
  opacity: 0.68;
  filter: saturate(1.04) contrast(1.02);
}

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

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-shell,
main,
footer,
header {
  position: relative;
}

main,
footer,
header {
  z-index: 1;
}

.topbar {
  width: min(calc(100% - 32px), var(--max));
  margin: 18px auto 0;
  padding: 8px 12px;
  position: sticky;
  top: 14px;
  z-index: 10;
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(5, 18, 34, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.simple-topbar {
  position: relative;
}

.brand {
  min-width: 0;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: clamp(106px, 9vw, 148px);
  height: 54px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.28));
}

.nav {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  white-space: nowrap;
  font-size: 0.88rem;
}

.nav a:hover {
  border-color: var(--line);
  color: var(--text);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: auto;
}

.section {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 68px 0;
}

.section-tight {
  padding-top: 12px;
}

section[id] {
  scroll-margin-top: 140px;
}

.button {
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: #041018;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-weight: 800;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.button-small {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.8rem;
  box-shadow: none;
  white-space: nowrap;
}

.topbar-auth-status {
  max-width: min(280px, 34vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.language-dock {
  width: auto;
  position: static;
  z-index: 1;
  display: flex;
  justify-content: center;
  flex: 0 0 auto;
  margin-left: -4px;
  margin-right: 6px;
  pointer-events: auto;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(5, 18, 34, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: none;
  pointer-events: auto;
}

.language-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.language-option.is-active {
  color: #041018;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
}

.button-secondary {
  color: var(--text);
  background: transparent;
  border-color: var(--line);
  box-shadow: none;
}

.button.is-disabled {
  opacity: 0.56;
  cursor: default;
  pointer-events: none;
}

.hero,
.module-overview-grid,
.feature-grid,
.seo-grid,
.support-grid,
.contact-grid,
.form-grid,
.footer-grid {
  display: grid;
  gap: 16px;
}

.hero {
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  align-items: center;
  padding-top: 30px;
}

.eyebrow,
.button,
h1,
h2,
h3,
.brand-mark,
.feature-icon {
  font-family: "Space Grotesk", Arial, sans-serif;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  line-height: 0.98;
}

h1 span,
.form-status.is-success {
  color: var(--accent);
}

h2 {
  margin: 0 0 16px;
  max-width: 25ch;
  font-size: clamp(1.35rem, 3vw, 2.25rem);
  line-height: 1.12;
}

h3 {
  margin: 0 0 12px;
  font-size: 1.16rem;
  line-height: 1.08;
}

.lead,
.section-head p,
.feature-card p,
.seo-card p,
.faq-item p,
.support-card p,
.ribbon-card span,
.module-overview-card li,
.footer p,
.legal-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.lead {
  max-width: 62ch;
  font-size: 0.98rem;
}

.section-head-wide h2,
.section-head-wide p {
  max-width: 760px;
}

.hero-actions,
.form-actions,
.pricing-lock-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin: 22px 0;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.chip-list li {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.9rem;
}

.cad-window,
.module-overview-card,
.feature-card,
.seo-card,
.faq-item,
.support-card,
.form-card,
.ribbon-card,
.legal-panel,
.list-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  border-radius: var(--radius-md);
}

.cad-window {
  overflow: hidden;
  padding: 10px;
}

.cad-stage {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(3, 14, 27, 0.44);
}

.cad-stage img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

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

.ribbon-card,
.feature-card,
.seo-card,
.faq-item,
.support-card,
.module-overview-card,
.form-card,
.legal-panel,
.list-panel {
  padding: 20px;
}

.ribbon-card strong {
  display: block;
  margin-bottom: 6px;
}

.module-overview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.module-overview-card ul {
  margin: 0;
  padding-left: 18px;
}

.module-overview-card li + li {
  margin-top: 8px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.seo-section {
  padding-top: 26px;
}

.seo-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.faq-section {
  padding-top: 28px;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feature-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 800;
}

.price-section {
  padding-top: 8px;
}

.pricing-panel {
  position: relative;
  padding: 20px;
  border-radius: 26px;
  border: 1px solid rgba(116, 218, 255, 0.28);
  background: linear-gradient(180deg, rgba(166, 233, 255, 0.96), rgba(85, 177, 224, 0.94));
  box-shadow: var(--shadow);
  color: #06233a;
  overflow: hidden;
}

.pricing-panel-head {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.pricing-panel-head strong {
  font-size: clamp(1.2rem, 2vw, 1.7rem);
}

.pricing-private-summary p,
.pricing-notes p {
  margin: 0;
  color: rgba(6, 35, 58, 0.82);
}

.pricing-table-wrap {
  overflow-x: auto;
  border-radius: 20px;
  border: 1px solid rgba(6, 35, 58, 0.16);
  background: rgba(241, 251, 255, 0.72);
}

.pricing-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(6, 35, 58, 0.14);
  text-align: center;
  color: #06233a;
  white-space: nowrap;
}

.pricing-table thead th {
  font-size: 0.86rem;
  text-transform: uppercase;
  background: rgba(241, 251, 255, 0.76);
}

.pricing-table tbody th {
  text-align: left;
  background: rgba(241, 251, 255, 0.48);
}

.pricing-notes {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pricing-notes .button-secondary {
  border-color: rgba(6, 35, 58, 0.2);
  background: rgba(255, 255, 255, 0.62);
  color: #06233a;
}

.pricing-panel-locked .pricing-locked-content {
  filter: blur(6px);
  opacity: 0.62;
  pointer-events: none;
  user-select: none;
}

.pricing-panel-locked .pricing-private-summary {
  filter: blur(8px);
  opacity: 0.34;
  pointer-events: none;
  user-select: none;
}

.pricing-lock-overlay {
  position: absolute;
  inset: auto 18px 18px 18px;
  z-index: 2;
  display: grid;
  gap: 10px;
  max-width: 620px;
  margin: 0 auto;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: linear-gradient(135deg, rgba(5, 18, 34, 0.94), rgba(10, 63, 92, 0.9));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
  color: var(--text);
}

.pricing-lock-overlay .eyebrow,
.pricing-lock-overlay h3,
.pricing-lock-overlay p {
  margin: 0;
}

.pricing-lock-overlay p:not(.eyebrow) {
  color: var(--muted);
}

.pricing-panel-unlocked .pricing-lock-overlay {
  display: none;
}

.pricing-panel-unlocked .pricing-locked-content,
.pricing-panel-unlocked .pricing-private-summary {
  filter: none;
  opacity: 1;
  pointer-events: auto;
  user-select: auto;
}

.reserved-download-section {
  padding-top: 18px;
}

.reserved-download-panel {
  position: relative;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.reserved-download-content {
  display: grid;
  gap: 14px;
  transition: filter 180ms ease, opacity 180ms ease;
}

.download-resource-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.055);
}

.download-resource-card h3,
.download-resource-card p {
  margin: 0;
}

.download-resource-card h3 {
  margin-bottom: 6px;
}

.download-resource-card p:not(.download-resource-type) {
  color: var(--muted);
  line-height: 1.6;
}

.download-resource-type,
.download-resource-status {
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.download-resource-type {
  margin-bottom: 8px;
}

.download-resource-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  white-space: nowrap;
}

.reserved-download-panel-locked .reserved-download-content {
  filter: blur(6px);
  opacity: 0.62;
  pointer-events: none;
  user-select: none;
}

.reserved-download-lock-overlay {
  position: absolute;
  inset: auto 18px 18px 18px;
  z-index: 2;
  display: grid;
  gap: 10px;
  max-width: 640px;
  margin: 0 auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(5, 18, 34, 0.94), rgba(10, 63, 92, 0.9));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
  color: var(--text);
}

.reserved-download-lock-overlay .eyebrow,
.reserved-download-lock-overlay h3,
.reserved-download-lock-overlay p {
  margin: 0;
}

.reserved-download-lock-overlay p:not(.eyebrow) {
  color: var(--muted);
}

.reserved-download-panel-unlocked .reserved-download-lock-overlay {
  display: none;
}

.reserved-download-panel-unlocked .reserved-download-content {
  filter: none;
  opacity: 1;
  pointer-events: auto;
  user-select: auto;
}

.support-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.contact-grid {
  grid-template-columns: minmax(0, 1fr);
}

.support-section .form-card {
  width: 100%;
  max-width: 980px;
  margin-inline: auto;
  padding: 24px;
  border-color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.94);
  color: #102235;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.12);
}

.support-section .form-card .field span,
.support-section .form-card .checkbox-field span,
.support-section .form-card .form-status {
  color: rgba(16, 34, 53, 0.74);
}

.support-section .form-card .field input,
.support-section .form-card .field select,
.support-section .form-card .field textarea {
  border-color: rgba(16, 34, 53, 0.14);
  background: rgba(255, 255, 255, 0.98);
  color: #102235;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.support-section .form-card .field input::placeholder,
.support-section .form-card .field textarea::placeholder {
  color: rgba(16, 34, 53, 0.44);
}

.support-section .form-card .button {
  box-shadow: none;
}

.support-section .form-card .form-status.is-success {
  color: #0d8b65;
}

.support-section .form-card .form-status.is-error {
  color: #b42318;
  font-weight: 800;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field,
.checkbox-field {
  display: grid;
  gap: 8px;
}

.field-full {
  grid-column: 1 / -1;
}

.field span,
.checkbox-field span {
  color: var(--muted);
  font-size: 0.9rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  outline: none;
}

.field textarea {
  resize: vertical;
}

.checkbox-field {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  margin: 16px 0;
}

.form-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--muted);
}

.download-login-note {
  max-width: 620px;
  margin: -10px 0 20px;
  color: rgba(231, 245, 255, 0.88);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.55;
}

.footer {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto 24px;
}

.footer-panel {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  padding: 24px;
}

.footer-grid {
  grid-template-columns: 1.2fr 1fr 0.7fr;
}

.footer-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 800;
}

.footer-brand-mark {
  width: min(190px, 100%);
  min-height: 86px;
  margin: 0 0 14px;
  padding: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.footer-brand-mark img {
  width: 100%;
  height: auto;
  max-height: 84px;
  object-fit: contain;
}

.footer-company-list,
.footer-legal-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-company-list li {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  color: var(--muted);
}

.footer-company-list span {
  color: var(--text);
  font-weight: 700;
}

.footer-company-list a {
  overflow-wrap: anywhere;
}

.footer-partner-chip {
  display: inline-flex;
  margin-top: 16px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
}

.footer-partner-chip img {
  max-width: 130px;
  max-height: 56px;
  object-fit: contain;
}

.footer-bottom {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.footer-bottom p {
  margin: 0;
}

.legal-page h1 {
  max-width: none;
  margin-bottom: 22px;
}

.legal-panel {
  max-width: 850px;
}

.legal-panel p {
  margin: 0 0 14px;
}

.list-panel ul {
  margin: 0;
  padding-left: 18px;
}

.list-panel li {
  color: var(--muted);
  line-height: 1.7;
}

.list-panel li + li {
  margin-top: 8px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .hero,
  .module-overview-grid,
  .feature-grid,
  .seo-grid,
  .faq-list,
  .support-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-copy {
    grid-column: 1 / -1;
  }

  .hero-visual {
    grid-column: 1 / -1;
  }

  h1 {
    max-width: 18ch;
  }
}

@media (max-width: 760px) {
  .topbar {
    position: relative;
    top: auto;
    width: min(calc(100% - 24px), 430px);
    margin-top: 14px;
    padding: 10px;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    border-radius: 14px;
  }

  .brand {
    width: auto;
    flex: 1 1 82px;
    order: 1;
  }

  .brand-logo {
    width: clamp(68px, 22vw, 92px);
    height: 42px;
  }

  .language-dock {
    width: auto;
    position: static;
    left: auto;
    justify-content: flex-end;
    margin: 0;
    transform: none;
    order: 2;
    flex: 0 1 auto;
  }

  .topbar-actions {
    width: 100%;
    margin-left: 0;
    order: 3;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }

  .nav {
    width: 100%;
    order: 4;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 7px;
    overflow: visible;
  }

  .language-switcher {
    border-radius: 14px;
    padding: 3px;
  }

  .language-option {
    min-height: 28px;
    padding: 0 7px;
    font-size: 0.68rem;
  }

  .nav a {
    padding: 7px 9px;
    font-size: 0.78rem;
    background: rgba(255, 255, 255, 0.055);
  }

  .topbar-actions .button {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.78rem;
  }

  .topbar-auth-status {
    max-width: 100%;
  }

  .section {
    width: min(calc(100% - 24px), var(--max));
    padding: 48px 0;
  }

  h1 {
    max-width: 14ch;
    font-size: 2.55rem;
    line-height: 1;
  }

  .hero,
  .module-overview-grid,
  .feature-grid,
  .seo-grid,
  .faq-list,
  .support-grid,
  .form-grid,
  .footer-grid,
  .ribbon {
    grid-template-columns: 1fr;
  }

  .pricing-lock-overlay {
    position: relative;
    inset: auto;
    margin-top: 16px;
  }

  .reserved-download-lock-overlay {
    position: relative;
    inset: auto;
    margin-top: 16px;
  }

  .download-resource-card {
    grid-template-columns: 1fr;
  }

  .pricing-panel-locked .pricing-locked-content {
    filter: blur(4px);
  }

  .footer-bottom {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    transition: none;
  }
}
