:root {
  --black: #050706;
  --black-2: #0b1110;
  --graphite: #111817;
  --paper: #f5f5f2;
  --paper-2: #ebece7;
  --white: #ffffff;
  --muted: #9ca6a0;
  --dark-muted: #58635e;
  --line: rgba(255, 255, 255, 0.14);
  --dark-line: rgba(5, 7, 6, 0.12);
  --coral: #ff5166;
  --cyan: #11c7be;
  --olive: #788414;
  --gold: #d8a61f;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif;
  color: var(--white);
  background: var(--black);
  letter-spacing: 0;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

#inicio,
#esencial,
#plataforma,
#trazabilidad,
#universo,
#demo {
  scroll-margin-top: 76px;
}

button {
  font: inherit;
}

.global-nav {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 160px 1fr auto auto;
  align-items: center;
  gap: 22px;
  min-height: 56px;
  padding: 0 42px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(5, 7, 6, 0.62);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: saturate(160%) blur(20px);
  white-space: nowrap;
}

.global-nav.scrolled {
  background: rgba(5, 7, 6, 0.86);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  height: 34px;
  overflow: hidden;
  font-size: 0.92rem;
  font-weight: 800;
}

.brand img {
  width: 24px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.28));
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 0.82rem;
  min-width: 0;
}

.desktop-nav a {
  opacity: 0.78;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  opacity: 1;
  outline: none;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 13px;
  color: var(--black);
  background: var(--white);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.menu-button {
  display: none;
  width: 36px;
  height: 36px;
  padding: 0;
  color: currentColor;
  background: transparent;
  border: 0;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 6px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: min(92svh, 900px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  padding: 96px 48px 58px;
  background:
    radial-gradient(circle at 64% 54%, rgba(17, 199, 190, 0.2), transparent 29%),
    linear-gradient(180deg, rgba(5, 7, 6, 0.58), rgba(5, 7, 6, 0.9) 72%, var(--black));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(5, 7, 6, 0.98) 0%, rgba(5, 7, 6, 0.82) 36%, rgba(5, 7, 6, 0.1) 76%);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.7;
  mix-blend-mode: screen;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(780px, 100%);
  margin-bottom: 6vh;
}

.intro,
.section-heading p,
.chapter-copy > p:first-child,
.demo > div > p {
  margin: 0 0 18px;
  color: var(--coral);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(4.4rem, 8.6vw, 9.8rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 700px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.18rem, 1.75vw, 1.7rem);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button.primary {
  color: var(--white);
  background: var(--coral);
}

.button.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  filter: brightness(0.88) saturate(0.94);
}

.statement {
  position: relative;
  display: grid;
  place-items: center;
  min-height: auto;
  padding: clamp(96px, 13vw, 190px) 28px clamp(82px, 10vw, 150px);
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 20%, rgba(17, 199, 190, 0.12), transparent 26%),
    linear-gradient(180deg, var(--black), #07100f 48%, var(--black));
}

.statement::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background: url("assets/generated-data-wave.png") center right / cover;
  mask-image: linear-gradient(90deg, transparent, #000 56%, transparent);
}

.statement-inner {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
}

.statement p {
  margin: 0;
  color: var(--white);
  font-size: clamp(2.35rem, 5.6vw, 6.25rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: 0;
}

.statement p::first-line {
  color: rgba(255, 255, 255, 0.46);
}

.immersive-strip {
  position: relative;
  min-height: min(70svh, 680px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  padding: 48px;
  background: var(--black);
}

.immersive-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(5, 7, 6, 0.1), rgba(5, 7, 6, 0.9) 78%),
    linear-gradient(90deg, rgba(5, 7, 6, 0.92), transparent 62%);
}

.immersive-strip figure {
  position: absolute;
  inset: 0;
  z-index: -2;
  margin: 0;
}

.immersive-strip figure::after,
.chapter-visual::after,
.universe-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 7, 6, 0.02), rgba(5, 7, 6, 0.22)),
    radial-gradient(circle at 82% 18%, rgba(17, 199, 190, 0.11), transparent 32%),
    radial-gradient(circle at 18% 82%, rgba(255, 81, 102, 0.09), transparent 30%);
  mix-blend-mode: screen;
}

.immersive-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(1.08) brightness(0.86);
}

.strip-copy {
  width: min(820px, 100%);
  padding: 0 0 3vh;
}

.strip-copy p {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.strip-copy h2 {
  margin: 0;
  font-size: clamp(3rem, 5.6vw, 6.2rem);
  line-height: 0.96;
}

.strip-copy span {
  display: block;
  max-width: 660px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1.04rem, 1.35vw, 1.28rem);
  line-height: 1.55;
}

.highlights {
  padding: clamp(84px, 9vw, 138px) 0 clamp(92px, 9vw, 150px);
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(5, 7, 6, 0.96), rgba(5, 7, 6, 0.88)),
    url("assets/generated-data-wave.png") center / cover;
  overflow: hidden;
}

.section-heading {
  width: min(1180px, calc(100% - 56px));
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading p {
  color: var(--cyan);
}

.section-heading h2,
.chapter-copy h2,
.universe h2,
.specs h2,
.demo h2 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.highlight-track {
  width: min(1180px, calc(100% - 56px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.highlight-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  border-radius: 26px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.highlight-card::after {
  position: absolute;
  inset: auto 24px 24px auto;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  opacity: 0.58;
  background: radial-gradient(circle, currentColor 0 2px, transparent 3px);
  background-size: 16px 16px;
  mask-image: radial-gradient(circle, #000, transparent 68%);
}

.highlight-card span {
  font-size: 0.84rem;
  font-weight: 900;
  opacity: 0.72;
}

.highlight-card h3 {
  margin: auto 0 18px;
  font-size: clamp(1.44rem, 1.75vw, 2.12rem);
  line-height: 1.04;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.highlight-card p {
  margin: 0;
  max-width: none;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.highlight-card.dark {
  color: var(--white);
  background:
    radial-gradient(circle at 78% 22%, rgba(17, 199, 190, 0.3), transparent 35%),
    rgba(11, 17, 16, 0.76);
}

.highlight-card.green {
  color: var(--white);
  background:
    linear-gradient(150deg, rgba(120, 132, 20, 0.64), rgba(13, 44, 33, 0.72));
}

.highlight-card.light {
  color: var(--white);
  background:
    radial-gradient(circle at 20% 16%, rgba(255, 255, 255, 0.18), transparent 26%),
    rgba(255, 255, 255, 0.08);
}

.highlight-card.coral {
  color: var(--white);
  background:
    radial-gradient(circle at 22% 20%, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(145deg, #ff5166, #841426);
}

.chapter {
  display: grid;
  grid-template-columns: minmax(320px, 0.55fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
  min-height: auto;
  padding: clamp(90px, 9vw, 150px) max(28px, calc((100vw - 1260px) / 2));
  overflow: hidden;
}

.chapter-copy {
  position: sticky;
  top: 132px;
  align-self: start;
}

.chapter-copy > p:first-child {
  color: var(--cyan);
}

.chapter-copy > p:last-child {
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1.05rem, 1.45vw, 1.36rem);
  line-height: 1.6;
}

.chapter-visual {
  position: relative;
  margin: 0;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.42);
}

.chapter-visual img {
  width: 100%;
  min-height: clamp(320px, 34vw, 520px);
  object-fit: cover;
  filter: saturate(0.92) contrast(1.08) brightness(0.88);
}

.reveal-pending {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 680ms ease, transform 680ms ease;
}

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

.highlight-card:nth-child(2),
.module-card:nth-child(3n + 2) {
  transition-delay: 90ms;
}

.highlight-card:nth-child(3),
.module-card:nth-child(3n) {
  transition-delay: 170ms;
}

.platform {
  background:
    linear-gradient(180deg, var(--black), #08100f 48%, var(--black-2)),
    radial-gradient(circle at 78% 26%, rgba(17, 199, 190, 0.14), transparent 28%),
    var(--black);
}

.traceability {
  grid-template-columns: 1fr;
  min-height: auto;
  padding-top: 132px;
}

.traceability .chapter-copy {
  position: static;
  width: min(980px, 100%);
}

.traceability .chapter-visual.full img {
  min-height: auto;
}

.product {
  background:
    linear-gradient(180deg, var(--black-2), #080b0a 50%, var(--black)),
    radial-gradient(circle at 15% 24%, rgba(255, 81, 102, 0.14), transparent 30%),
    var(--black-2);
}

.product .chapter-copy > p:first-child {
  color: var(--gold);
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(38px, 5vw, 72px) max(28px, calc((100vw - 1260px) / 2));
  background:
    linear-gradient(180deg, rgba(5, 7, 6, 0.9), rgba(5, 7, 6, 0.94)),
    url("assets/generated-platform-core.png") center / cover,
    radial-gradient(circle at 50% 0%, rgba(17, 199, 190, 0.1), transparent 34%),
    var(--black);
}

.feature-row article {
  min-height: 300px;
  padding: 44px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  backdrop-filter: blur(14px);
}

.feature-row span {
  color: var(--coral);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.feature-row h3 {
  margin: 42px 0 18px;
  max-width: 460px;
  font-size: clamp(1.9rem, 2.8vw, 3.2rem);
  line-height: 1;
}

.feature-row p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.universe {
  padding: clamp(92px, 9vw, 140px) 0;
  color: var(--white);
  background:
    radial-gradient(circle at 50% 18%, rgba(17, 199, 190, 0.13), transparent 28%),
    var(--black);
}

.universe .section-heading p {
  color: var(--cyan);
}

.universe .section-heading {
  color: var(--white);
}

.universe-hero {
  position: relative;
  width: min(1180px, calc(100% - 56px));
  margin: 44px auto 36px;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid var(--line);
  box-shadow: 0 42px 130px rgba(0, 0, 0, 0.52);
  background: var(--graphite);
}

.universe-hero img {
  width: 100%;
  aspect-ratio: 16 / 8.4;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.08) brightness(0.88);
}

.module-controls {
  width: min(1180px, calc(100% - 56px));
  margin: 38px auto 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.module-controls button {
  min-height: 42px;
  padding: 0 16px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.module-controls button.active {
  color: var(--black);
  background: var(--white);
}

.module-grid {
  width: min(1180px, calc(100% - 56px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.module-card {
  min-height: 272px;
  padding: 24px;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.045));
  border: 1px solid var(--line);
  border-radius: 22px;
  backdrop-filter: blur(16px);
}

.module-card .number {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.module-card h3 {
  margin: 42px 0 14px;
  font-size: 1.32rem;
  line-height: 1.12;
}

.module-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  line-height: 1.55;
  font-size: 0.96rem;
}

.module-card p strong {
  color: var(--white);
}

.specs {
  padding: clamp(88px, 9vw, 136px) 28px;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(5, 7, 6, 0.98), rgba(7, 16, 15, 0.93) 55%, rgba(5, 7, 6, 0.98)),
    url("assets/generated-module-universe.png") center / cover;
}

.specs-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.specs h2 {
  max-width: 900px;
}

.specs dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 54px 0 0;
  background: transparent;
}

.specs dl > div {
  min-height: 230px;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
}

.specs dt {
  margin: 0 0 38px;
  color: var(--coral);
  font-weight: 900;
}

.specs dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.demo {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 44px;
  align-items: end;
  padding: 132px max(28px, calc((100vw - 1180px) / 2));
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(5, 7, 6, 0.9), rgba(5, 7, 6, 0.28) 62%, rgba(5, 7, 6, 0.68)),
    linear-gradient(0deg, rgba(5, 7, 6, 0.92), rgba(5, 7, 6, 0.08) 44%),
    url("assets/generated-closing-mill.png") center / cover;
  min-height: min(74svh, 760px);
}

.demo > div > p {
  color: var(--gold);
}

.demo h2 {
  max-width: 880px;
}

.demo-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(5, 7, 6, 0.58);
  border: 1px solid var(--line);
  box-shadow: 0 32px 90px rgba(5, 7, 6, 0.34);
  backdrop-filter: blur(20px);
}

.demo-card .button {
  width: 100%;
}

.demo-card a:not(.button),
.demo-card span {
  padding: 10px 0;
  color: var(--white);
  font-weight: 750;
  border-bottom: 1px solid var(--line);
}

.demo-card span {
  color: rgba(255, 255, 255, 0.64);
  border-bottom: 0;
}

body.modal-open {
  overflow: hidden;
}

.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.demo-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.demo-modal__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 18%, rgba(17, 199, 190, 0.18), transparent 28%),
    rgba(5, 7, 6, 0.78);
  backdrop-filter: blur(18px);
}

.demo-dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: min(86svh, 860px);
  overflow: auto;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(13, 20, 19, 0.96), rgba(5, 7, 6, 0.96)),
    url("assets/generated-module-universe.png") center / cover;
  box-shadow: 0 40px 130px rgba(0, 0, 0, 0.56);
}

.demo-dialog > p {
  margin: 0 0 14px;
  color: var(--coral);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.demo-dialog h2 {
  margin: 0 0 28px;
  max-width: 600px;
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.demo-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}

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

.demo-form label {
  display: grid;
  gap: 8px;
}

.demo-form span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  font-weight: 800;
}

.demo-form input,
.demo-form textarea {
  width: 100%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 14px 15px;
  outline: none;
}

.demo-form textarea {
  resize: vertical;
}

.demo-form input:focus,
.demo-form textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(17, 199, 190, 0.13);
}

.form-wide {
  grid-column: 1 / -1;
}

.footer {
  position: relative;
  overflow: hidden;
  padding: 74px max(28px, calc((100vw - 1180px) / 2)) 28px;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(5, 7, 6, 0.96), rgba(5, 7, 6, 0.99)),
    url("assets/generated-data-wave.png") center bottom / cover;
  border-top: 1px solid var(--line);
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 10%, rgba(255, 81, 102, 0.18), transparent 26%),
    radial-gradient(circle at 86% 28%, rgba(17, 199, 190, 0.14), transparent 30%);
}

.footer-inner,
.footer-bottom {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.4fr);
  gap: clamp(42px, 7vw, 96px);
  align-items: start;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-size: 1.08rem;
  font-weight: 900;
}

.footer-logo img {
  width: 30px;
  height: 42px;
  object-fit: contain;
}

.footer-brand p {
  max-width: 390px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.65;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.footer-links h2 {
  margin: 0 0 18px;
  color: var(--coral);
  font-size: 0.78rem;
  line-height: 1;
  text-transform: uppercase;
}

.footer-links a,
.footer-links span {
  display: block;
  width: fit-content;
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.45;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-bottom a:hover,
.footer-bottom a:focus-visible {
  color: var(--white);
  outline: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 58px;
  padding-top: 22px;
  color: rgba(255, 255, 255, 0.48);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.legal-page {
  min-height: 100svh;
  background:
    linear-gradient(180deg, rgba(5, 7, 6, 0.9), rgba(5, 7, 6, 1)),
    url("assets/generated-module-universe.png") center top / cover;
}

.legal-nav {
  position: sticky;
}

.legal-main {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 118px 0 86px;
}

.legal-hero {
  margin-bottom: 42px;
}

.legal-hero p {
  margin: 0 0 18px;
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.legal-hero h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.96;
}

.legal-hero span {
  display: block;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.58);
}

.legal-content {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 28px;
  background: rgba(5, 7, 6, 0.68);
  backdrop-filter: blur(20px);
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.36);
  overflow: hidden;
}

.legal-content article + article {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.legal-content h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 1.34rem;
}

.legal-content p,
.legal-content li {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.7;
}

.legal-content p {
  margin: 0;
}

.legal-content ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.legal-content strong,
.legal-content a {
  color: var(--white);
}

.legal-back {
  margin-top: 36px;
}

@media (max-width: 1080px) {
  .global-nav {
    grid-template-columns: 1fr auto auto;
    padding: 0 24px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .global-nav.menu-open .desktop-nav {
    position: fixed;
    inset: 56px 0 auto;
    display: grid;
    justify-content: stretch;
    gap: 0;
    padding: 18px 24px 26px;
    background: rgba(5, 7, 6, 0.96);
    border-bottom: 1px solid var(--line);
  }

  .global-nav.menu-open .desktop-nav a {
    padding: 16px 0;
    font-size: 1.1rem;
  }

  .chapter,
  .demo {
    grid-template-columns: 1fr;
  }

  .chapter-copy {
    position: static;
  }

  .feature-row,
  .module-grid {
    grid-template-columns: 1fr 1fr;
  }

  .highlight-track {
    grid-template-columns: 1fr 1fr;
  }

  .specs dl {
    grid-template-columns: 1fr 1fr;
  }

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

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

@media (max-width: 740px) {
  .global-nav {
    padding: 0 16px;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    min-height: 78svh;
    padding: 94px 20px 34px;
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(5, 7, 6, 0.48), rgba(5, 7, 6, 0.94) 54%, var(--black));
  }

  .hero-image-wrap img {
    object-position: 62% center;
  }

  .hero-copy {
    width: min(340px, calc(100vw - 64px));
    max-width: min(340px, calc(100vw - 64px));
    margin-bottom: 0;
    min-width: 0;
  }

  .hero h1 {
    font-size: clamp(2.72rem, 11.6vw, 3.35rem);
    line-height: 0.96;
  }

  .hero-lead {
    margin-top: 20px;
    max-width: 100%;
    font-size: 0.98rem;
    overflow-wrap: break-word;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: min(340px, calc(100vw - 64px));
    padding-right: 0;
  }

  .statement {
    padding: 72px 20px 66px;
  }

  .statement p {
    font-size: clamp(2.15rem, 10.5vw, 3.4rem);
  }

  .immersive-strip {
    min-height: auto;
    padding: 104px 20px 74px;
  }

  .immersive-strip::after {
    background:
      linear-gradient(180deg, rgba(5, 7, 6, 0.08), rgba(5, 7, 6, 0.93) 68%),
      linear-gradient(90deg, rgba(5, 7, 6, 0.76), transparent 76%);
  }

  .immersive-strip img {
    object-position: 58% center;
    filter: saturate(0.84) contrast(1.02) brightness(0.58);
  }

  .strip-copy {
    padding-bottom: 0;
  }

  .strip-copy h2 {
    font-size: clamp(2.36rem, 11.5vw, 3.25rem);
    line-height: 1;
  }

  .strip-copy span {
    margin-top: 18px;
    font-size: 1rem;
  }

  .highlights {
    padding: 84px 0 94px;
  }

  .section-heading,
  .module-controls,
  .module-grid {
    width: calc(100% - 32px);
  }

  .highlight-track {
    width: calc(100% - 32px);
    grid-template-columns: 1fr;
  }

  .highlight-card {
    min-height: 310px;
    border-radius: 22px;
    padding: 24px;
  }

  .demo-modal {
    padding: 12px;
  }

  .demo-dialog {
    width: min(350px, calc(100vw - 24px));
    max-height: 90svh;
    padding: 26px;
    border-radius: 22px;
  }

  .demo-dialog h2 {
    font-size: 2.35rem;
  }

  .demo-close {
    top: 12px;
    right: 12px;
  }

  .demo-form {
    grid-template-columns: 1fr;
  }

  .chapter {
    gap: 30px;
    min-height: auto;
    padding: 70px 16px;
  }

  .chapter-visual {
    border-radius: 22px;
  }

  .chapter-visual img {
    min-height: 240px;
    aspect-ratio: 4 / 3;
  }

  .traceability .chapter-visual {
    overflow: hidden;
  }

  .traceability .chapter-visual img {
    width: 100%;
    max-width: 100%;
    min-height: 260px;
    object-fit: cover;
    object-position: center;
  }

  .feature-row,
  .module-grid,
  .specs dl {
    grid-template-columns: 1fr;
  }

  .universe {
    padding: 84px 0;
  }

  .universe-hero {
    width: calc(100% - 32px);
    margin-top: 26px;
    border-radius: 22px;
  }

  .universe-hero img {
    aspect-ratio: 4 / 3;
    object-position: center;
  }

  .feature-row article {
    min-height: 240px;
    padding: 30px 22px;
  }

  .specs {
    padding: 84px 16px;
  }

  .demo {
    padding: 72px 16px;
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(5, 7, 6, 0.72), rgba(5, 7, 6, 0.94) 48%, rgba(5, 7, 6, 0.98)),
      url("assets/generated-closing-mill.png") center / cover;
  }

  .footer {
    padding: 54px 16px 24px;
  }

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

  .footer-bottom {
    flex-direction: column;
    margin-top: 38px;
  }

  .legal-main {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    padding-top: 96px;
  }

  .legal-content {
    border-radius: 22px;
  }

  .legal-content p,
  .legal-content li,
  .legal-content a {
    overflow-wrap: anywhere;
  }

  .legal-hero h1 {
    font-size: 2.55rem;
    line-height: 1.02;
  }
}

@media (max-width: 520px) {
  .demo-modal {
    justify-items: start;
  }

  .demo-dialog {
    margin-left: 12px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
