:root {
  --bg: #331607;
  --panel: rgba(92, 42, 13, 0.78);
  --panel-strong: rgba(76, 31, 8, 0.9);
  --panel-soft: rgba(255, 188, 112, 0.12);
  --line: rgba(255, 213, 161, 0.34);
  --line-strong: rgba(255, 223, 177, 0.52);
  --text: #fff8ef;
  --muted: #f2d4b3;
  --accent: #ffb347;
  --accent-strong: #ff7a1a;
  --green: #ffe08a;
  --green-soft: rgba(255, 224, 138, 0.16);
  --warning: #ffd56c;
  --shadow: 0 24px 70px rgba(60, 21, 2, 0.28);
  --radius-md: 22px;
  --radius-sm: 16px;
  --max: 1280px;
  --hero-panel-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  font-family: "Manrope", Arial, sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(31, 14, 5, 0.18) 0%, rgba(117, 48, 11, 0.34) 48%, rgba(61, 22, 6, 0.42) 100%),
    url("./assets/images/sfondo-caddrag.png") center top / cover fixed no-repeat;
  background-color: #4b2109;
}

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

body::before {
  background:
    linear-gradient(90deg, rgba(41, 17, 5, 0.32), transparent 22%, transparent 78%, rgba(41, 17, 5, 0.26)),
    linear-gradient(180deg, rgba(31, 12, 4, 0.02), rgba(47, 17, 4, 0.24));
}

body::after {
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.035), transparent 38%),
    repeating-linear-gradient(130deg, rgba(255, 224, 138, 0.035) 0 1px, transparent 1px 24px);
  opacity: 0.42;
}

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;
}

.site-shell {
  z-index: 1;
}

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(82, 34, 9, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.simple-topbar {
  position: relative;
}

.brand {
  min-width: 0;
  flex: 0 0 auto;
  display: grid;
  gap: 1px;
}

.brand-logo {
  width: clamp(132px, 14vw, 188px);
  height: 38px;
  object-fit: contain;
  object-position: left center;
}

.brand-mark {
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.72rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--text);
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.68rem;
  white-space: nowrap;
}

.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;
}

.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(82, 34, 9, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: none;
  pointer-events: auto;
}

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

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

.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: #2a1004;
  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;
}

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

.hero,
.module-overview-grid,
.feature-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;
}

.hero-clean {
  padding-top: clamp(280px, 30vh, 390px);
  min-height: auto;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  justify-items: center;
}

.hero-clean .hero-copy {
  width: min(100%, var(--hero-panel-width));
  max-width: var(--hero-panel-width);
  min-height: 300px;
  padding: 26px clamp(24px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 183, 105, 0.24), rgba(130, 55, 16, 0.48) 46%, rgba(255, 243, 224, 0.16)),
    rgba(96, 38, 9, 0.5);
  backdrop-filter: blur(18px) saturate(1.18);
  box-shadow: 0 22px 68px rgba(54, 20, 4, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.hero-gif-board {
  width: min(100%, var(--hero-panel-width));
  max-width: var(--hero-panel-width);
  justify-self: center;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, max-content);
  align-content: start;
  gap: 10px;
  padding: 10px;
  min-height: auto;
  align-self: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(108, 45, 12, 0.76), rgba(70, 27, 7, 0.78));
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.hero-gif-tile {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  min-height: 0;
  aspect-ratio: 500 / 334;
  border: 1px solid rgba(255, 203, 145, 0.24);
  border-radius: 6px;
  background: rgba(245, 238, 228, 0.92);
}

.hero-gif-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
}

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

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

h1 {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(2.1rem, 5.2vw, 4.2rem);
  line-height: 1;
}

.hero-clean h1 {
  width: auto;
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
  font-size: 3.35rem;
}

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,
.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;
}

.hero-clean .lead {
  max-width: 760px;
  margin: 14px auto 0;
  line-height: 1.58;
}

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

.section > .section-head .eyebrow,
.section > .section-head h2,
.section > .section-head p,
.section > .section-head-wide h2,
.section > .section-head-wide p {
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(35, 12, 3, 0.72);
}

.section > .section-head .eyebrow {
  color: rgba(255, 255, 255, 0.9);
}

.section > .section-head p,
.section > .section-head-wide p {
  color: rgba(255, 255, 255, 0.94);
}

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

.hero-actions {
  margin: 18px 0;
  justify-content: center;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.cad-window,
.module-overview-card,
.feature-card,
.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;
  min-height: 520px;
}

.cad-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
}

.cad-toolbar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
}

.cad-toolbar span:nth-child(2) {
  background: var(--green);
}

.cad-toolbar span:nth-child(3) {
  background: var(--warning);
}

.cad-toolbar strong {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.86rem;
}

.cad-stage {
  position: relative;
  min-height: 462px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 224, 138, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 224, 138, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 18% 22%, rgba(255, 178, 71, 0.22), transparent 28%),
    rgba(39, 15, 5, 0.76);
  background-size: 34px 34px, 34px 34px, auto, auto;
}

.cad-stage-real {
  display: grid;
  place-items: center;
  background: #f5c086;
}

.cad-stage-real img {
  width: 100%;
  height: 100%;
  min-height: 462px;
  object-fit: cover;
  object-position: center;
}

.photo-map-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 3px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 8px;
  background: rgba(91, 38, 10, 0.82);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

.photo-map-caption span {
  color: var(--muted);
  line-height: 1.45;
}

.terrain-line,
.pipe-line {
  position: absolute;
  inset: 0;
}

.terrain-line::before,
.pipe-line::before {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  height: 4px;
  border-radius: 999px;
  transform-origin: left center;
}

.terrain-line::before {
  top: 35%;
  background: linear-gradient(90deg, #ffb347, #fff8ef, #ff7a1a);
  transform: skewY(-7deg);
  opacity: 0.75;
}

.pipe-line::before {
  top: 61%;
  background: linear-gradient(90deg, #ffe08a, #ff7a1a);
  transform: skewY(-13deg);
  box-shadow: 0 0 34px rgba(101, 220, 255, 0.52);
}

.node {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 3px solid #2a1004;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 22px rgba(141, 241, 200, 0.62);
}

.node-a {
  left: 18%;
  top: 59%;
}

.node-b {
  left: 48%;
  top: 52%;
}

.node-c {
  left: 78%;
  top: 43%;
}

.profile-label {
  position: absolute;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(91, 38, 10, 0.84);
  color: var(--text);
  font-size: 0.78rem;
  white-space: nowrap;
}

.profile-label-a {
  left: 10%;
  top: 48%;
}

.profile-label-b {
  left: 36%;
  top: 39%;
}

.profile-label-c {
  right: 8%;
  top: 31%;
  color: var(--green);
}

.grid-card {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  grid-template-columns: 1fr repeat(3, auto);
  gap: 10px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(91, 38, 10, 0.84);
}

.grid-card span {
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

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

.ribbon-card,
.feature-card,
.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));
}

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

.media-section .section-head {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.media-section .section-head h2,
.media-section .section-head p {
  margin-left: auto;
  margin-right: auto;
}

.media-showcase,
.brochure-grid,
.download-resource-grid {
  display: grid;
  gap: 16px;
}

.media-showcase {
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  align-items: stretch;
}

.media-showcase-single {
  max-width: 980px;
  grid-template-columns: minmax(0, 1fr);
  margin-left: auto;
  margin-right: auto;
}

.product-visual,
.video-panel,
.brochure-card,
.download-vault,
.download-resource-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.product-visual {
  min-height: 390px;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(255, 248, 239, 0.08), rgba(255, 122, 26, 0.1)),
    var(--panel);
}

.product-visual img {
  width: min(100%, 520px);
  max-height: 430px;
  object-fit: contain;
}

.video-panel {
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(280px, 1fr) auto;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.video-panel video {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: block;
  object-fit: contain;
  background: #4a1e08;
}

.video-copy,
.brochure-card > div {
  padding: 18px;
}

.video-copy p,
.brochure-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.brochure-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.brochure-card {
  overflow: hidden;
}

.brochure-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  background: #f5c086;
}

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

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

.list-panel {
  max-width: 980px;
}

.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;
}

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

.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(255, 215, 156, 0.32);
  background: linear-gradient(180deg, rgba(255, 224, 138, 0.96), rgba(255, 147, 61, 0.94));
  box-shadow: var(--shadow);
  color: #2a1004;
  overflow: hidden;
}

.price-section .pricing-panel-locked::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(48, 18, 5, 0.16);
  pointer-events: none;
}

.pricing-panel-head {
  position: relative;
  z-index: 0;
  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(42, 16, 4, 0.82);
}

.pricing-table-wrap {
  overflow-x: auto;
  border-radius: 20px;
  border: 1px solid rgba(42, 16, 4, 0.16);
  background: rgba(255, 248, 239, 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(42, 16, 4, 0.14);
  text-align: center;
  color: #2a1004;
  white-space: nowrap;
}

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

.pricing-table tbody th {
  text-align: left;
  background: rgba(255, 248, 239, 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(42, 16, 4, 0.2);
  background: rgba(255, 255, 255, 0.62);
  color: #2a1004;
}

.price-section .pricing-panel-locked .pricing-locked-content {
  filter: blur(2px);
  opacity: 0.78;
  pointer-events: none;
  user-select: none;
}

.price-section .pricing-panel-locked .pricing-private-summary {
  filter: blur(1.5px);
  opacity: 0.72;
  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(91, 38, 10, 0.92), rgba(136, 55, 13, 0.88));
  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;
}

.price-section .pricing-panel-unlocked::before {
  display: none;
}

.pricing-panel-unlocked .pricing-locked-content,
.pricing-panel-unlocked .pricing-private-summary {
  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);
}

.contact-grid .form-card {
  border: 1px solid rgba(255, 154, 55, 0.46);
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(255, 229, 196, 0.96)),
    linear-gradient(135deg, rgba(255, 179, 71, 0.18), rgba(255, 122, 26, 0.16));
  color: #2a1004;
  backdrop-filter: none;
}

.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;
}

.contact-grid .field span,
.contact-grid .checkbox-field span {
  color: rgba(42, 16, 4, 0.86);
  font-weight: 800;
}

.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;
}

.contact-grid .field input,
.contact-grid .field select,
.contact-grid .field textarea {
  border-color: rgba(42, 16, 4, 0.18);
  background: rgba(255, 255, 255, 0.88);
  color: #2a1004;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.contact-grid .field input::placeholder,
.contact-grid .field textarea::placeholder {
  color: rgba(42, 16, 4, 0.48);
}

.contact-grid .field input:focus,
.contact-grid .field select:focus,
.contact-grid .field textarea:focus {
  border-color: rgba(255, 122, 26, 0.78);
  box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.16);
}

.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);
}

.contact-grid .form-status {
  color: rgba(42, 16, 4, 0.72);
}

.contact-grid .form-status.is-success {
  color: #0c7a4b;
  font-weight: 800;
}

.contact-grid .form-status.is-error {
  color: #b42318;
  font-weight: 800;
}

.puzzle-captcha-contact {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(35, 12, 3, 0.48);
  backdrop-filter: blur(11px);
}

.puzzle-captcha-contact[hidden] {
  display: none;
}

.puzzle-captcha-dialog {
  width: min(100%, 420px);
  padding: 18px;
  border: 1px solid rgba(255, 154, 55, 0.42);
  border-radius: 22px;
  background: rgba(255, 252, 247, 0.98);
  box-shadow: 0 30px 80px rgba(35, 12, 3, 0.34);
}

.puzzle-captcha-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.puzzle-captcha-head strong {
  color: #2a1004;
}

.puzzle-captcha-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.puzzle-captcha-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(42, 16, 4, 0.16);
  border-radius: 999px;
  background: rgba(255, 242, 226, 0.92);
  color: #6b2a06;
  font: 900 1rem / 1 "Space Grotesk", Arial, sans-serif;
  cursor: pointer;
}

.puzzle-captcha-contact p {
  margin: 0;
  color: #a33a08;
  font-size: 0.86rem;
  text-align: center;
}

.puzzle-captcha-board {
  --puzzle-target: 100px;
  position: relative;
  width: 100%;
  height: 150px;
  margin: 14px 0;
  overflow: hidden;
  border: 1px solid rgba(42, 16, 4, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 248, 239, 0.26), rgba(255, 179, 71, 0.1)),
    var(--puzzle-image) center / cover no-repeat,
    repeating-linear-gradient(0deg, rgba(42, 16, 4, 0.1) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(90deg, rgba(42, 16, 4, 0.1) 0 1px, transparent 1px 12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.puzzle-captcha-gap,
.puzzle-captcha-piece {
  position: absolute;
  top: 58px;
  width: 54px;
  height: 54px;
  border-radius: 14px 19px 14px 19px;
}

.puzzle-captcha-gap {
  left: var(--puzzle-target);
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: rgba(42, 16, 4, 0.24);
  box-shadow: inset 0 0 0 999px rgba(42, 16, 4, 0.12), 0 10px 24px rgba(35, 12, 3, 0.24);
}

.puzzle-captcha-piece {
  left: 12px;
  background-image:
    linear-gradient(135deg, rgba(255, 248, 239, 0.26), rgba(255, 179, 71, 0.1)),
    var(--puzzle-image);
  background-repeat: no-repeat;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 22px rgba(35, 12, 3, 0.32);
  transition: box-shadow 0.18s ease;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.puzzle-captcha-piece:active,
.puzzle-captcha-slider:active {
  cursor: grabbing;
}

.puzzle-captcha-piece::after {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  pointer-events: none;
}

.puzzle-captcha-slider-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 58px;
  margin-bottom: 12px;
  padding: 0 16px 0 60px;
  overflow: hidden;
  border: 1px solid rgba(42, 16, 4, 0.14);
  border-radius: 999px;
  background: linear-gradient(135deg, #fff8ef, #ffe1bd);
  color: #6b2a06;
  font-weight: 900;
  text-align: center;
}

.puzzle-captcha-slider {
  position: absolute;
  left: 12px;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--accent-strong);
  box-shadow: 0 8px 22px rgba(255, 122, 26, 0.18);
  font-size: 2rem;
  line-height: 1;
  text-align: center;
  cursor: grab;
  touch-action: none;
  user-select: none;
  transform: translateY(-50%);
}

.puzzle-captcha-slider:focus-visible {
  outline: 3px solid rgba(255, 122, 26, 0.34);
  outline-offset: 3px;
}

.puzzle-captcha-slider-wrap strong {
  position: relative;
  z-index: 1;
  width: 100%;
  font-size: 0.92rem;
}

.puzzle-captcha-contact.is-solved {
  background: rgba(35, 12, 3, 0.36);
}

.puzzle-captcha-contact.is-solved .puzzle-captcha-piece {
  box-shadow: 0 0 0 4px rgba(12, 122, 75, 0.18), 0 14px 26px rgba(35, 12, 3, 0.28);
}

.puzzle-captcha-contact.is-error {
  background: rgba(35, 12, 3, 0.52);
}

.puzzle-captcha-contact.is-error .puzzle-captcha-dialog {
  box-shadow: 0 30px 80px rgba(35, 12, 3, 0.34), 0 0 0 2px rgba(180, 35, 24, 0.18);
}

.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;
}

.download-vault {
  position: relative;
  overflow: hidden;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(255, 224, 138, 0.13), rgba(255, 122, 26, 0.1)),
    var(--panel);
}

.download-vault-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 16px;
}

.download-vault-head h2,
.download-vault-head .eyebrow {
  margin-bottom: 0;
}

.download-vault-head img {
  width: 82px;
  height: 62px;
  object-fit: contain;
  flex: 0 0 auto;
}

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

.download-resource-card {
  min-height: 190px;
  padding: 16px;
  display: grid;
  align-content: start;
  gap: 10px;
  color: var(--text);
  box-shadow: none;
}

.download-resource-card span {
  width: fit-content;
  padding: 6px 9px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: #2a1004;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
}

.download-resource-card small {
  color: var(--muted);
  line-height: 1.55;
}

.pricing-panel-locked .download-vault-content {
  filter: blur(5px);
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
}

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

.download-lock-overlay {
  position: absolute;
  inset: auto 18px 18px 18px;
  z-index: 2;
  max-width: 620px;
  margin: 0 auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(91, 38, 10, 0.92), rgba(136, 55, 13, 0.88));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
}

.download-lock-overlay h3,
.download-lock-overlay p {
  margin: 0 0 10px;
}

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

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

.footer-product-logo {
  width: 78px;
  height: 58px;
  object-fit: contain;
  margin-bottom: 12px;
}

.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: 1fr 1.25fr 0.68fr;
}

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

.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;
  color: var(--muted);
  align-items: start;
}

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

.footer-company-list a {
  color: var(--text);
  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;
}

.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,
  .support-grid,
  .media-showcase,
  .download-resource-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

  h1 {
    max-width: 15ch;
  }

  .hero-clean {
    padding-top: 180px;
    min-height: 500px;
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-clean .hero-copy {
    width: 100%;
    max-width: 100%;
    padding: 30px;
    min-height: auto;
  }

  .hero-clean h1 {
    max-width: 20ch;
    font-size: 2.95rem;
  }

  .hero-gif-board {
    width: 100%;
    max-width: 100%;
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .topbar {
    position: relative;
    top: auto;
    width: min(calc(100% - 36px), 430px);
    padding: 9px 10px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "brand language"
      "actions actions"
      "nav nav";
    align-items: center;
    gap: 7px;
    border-radius: 14px;
    overflow: hidden;
  }

  .brand {
    width: auto;
    grid-area: brand;
    align-self: center;
  }

  .brand-logo {
    width: 94px;
    height: 30px;
  }

  .brand-subtitle {
    display: none;
  }

  .topbar-actions {
    grid-area: actions;
    width: auto;
    margin-left: 0;
    justify-content: flex-start;
    gap: 7px;
  }

  .topbar-actions .button {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 0 11px;
    font-size: 0.8rem;
  }

  .language-dock {
    width: auto;
    position: static;
    grid-area: language;
    left: auto;
    justify-self: end;
    justify-content: flex-end;
    margin: 0 18px 0 0;
    transform: none;
    max-width: 100%;
  }

  .language-switcher {
    border-radius: 14px;
    padding: 3px;
    max-width: 100%;
  }

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

  .nav {
    grid-area: nav;
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
    gap: 5px;
    padding-bottom: 0;
  }

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

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

  .hero,
  .hero-gif-board,
  .module-overview-grid,
  .feature-grid,
  .support-grid,
  .media-showcase,
  .brochure-grid,
  .download-resource-grid,
  .form-grid,
  .footer-grid,
  .ribbon {
    grid-template-columns: 1fr;
  }

  .cad-window {
    min-height: 420px;
  }

  .cad-stage {
    min-height: 360px;
  }

  .cad-stage-real img {
    min-height: 360px;
  }

  .video-panel video {
    min-height: 240px;
  }

  .hero-clean h1 {
    max-width: 100%;
    font-size: 2.3rem;
  }

  .hero-clean .hero-copy {
    width: 100%;
    padding: 24px 18px;
    text-align: center;
  }

  .hero-clean {
    padding-top: 92px;
  }

  .hero-gif-board {
    gap: 8px;
    padding: 8px;
  }

  .download-vault-head {
    display: grid;
  }

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

  .profile-label-b {
    left: 28%;
  }

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

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

  .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;
  }
}
