:root {
  --navy: #1c2d41;
  --navy-900: #07111e;
  --navy-800: #0d1b2b;
  --navy-700: #14263a;
  --orange: #ef6d22;
  --orange-600: #ff7a1a;
  --ink: #122033;
  --muted: #5d6b7a;
  --line: #dce4ed;
  --image-border: 0.5px solid rgba(239, 109, 34, 0.34);
  --surface: #f5f7fa;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(7, 17, 30, 0.18);
  --header-height: 82px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.5;
}

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

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

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 max(20px, calc((100vw - 1160px) / 2));
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(28, 45, 65, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 190px;
  height: 48px;
  padding: 0;
  border-radius: 8px;
  background: transparent;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  color: #31445a;
  font-size: 0.92rem;
  font-weight: 700;
}

.main-nav a {
  transition: color 160ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--orange);
}

.mobile-language-link {
  display: none;
}

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

.language-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
}

.language-switch a {
  min-width: 42px;
  padding: 6px 8px;
  border-radius: 999px;
  text-align: center;
}

.language-switch .active {
  color: var(--white);
  background: var(--navy);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button-primary {
  color: var(--white);
  background: var(--orange);
  box-shadow: 0 16px 32px rgba(239, 109, 34, 0.25);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--orange-600);
}

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy);
}

main {
  overflow: hidden;
}

section {
  padding: 112px 0;
}

.section-dark {
  color: var(--white);
  background: var(--navy-900);
}

.hero {
  position: relative;
  min-height: 760px;
  padding-top: calc(var(--header-height) + 86px);
  padding-bottom: 84px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 8% 18%, rgba(239, 109, 34, 0.2), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(255, 122, 26, 0.13), transparent 30%),
    linear-gradient(135deg, #07111e 0%, #0d1b2b 52%, #172d42 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(239, 109, 34, 0.7), transparent);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(420px, 1.06fr);
  align-items: center;
  gap: 46px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-kicker {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 800;
}

p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin-top: 0;
  letter-spacing: 0;
  line-height: 1.04;
}

h1 {
  max-width: 680px;
  margin-bottom: 24px;
  font-size: clamp(2.55rem, 4vw, 4rem);
  font-weight: 900;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(1.65rem, 2.65vw, 2.75rem);
  font-weight: 900;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.28rem, 2vw, 1.7rem);
  font-weight: 900;
}

.hero-lede {
  max-width: 660px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1.05rem, 2vw, 1.27rem);
}

.hero-lines {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 32px 0;
}

.hero-lines span {
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.hero-visual {
  margin: 0;
  padding: 14px;
  border: var(--image-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow);
}

.hero-visual img,
.hero-visual video {
  width: 100%;
  border-radius: 8px;
}

.hero-modal-media {
  aspect-ratio: 16 / 9;
  cursor: pointer;
  object-fit: cover;
}

.hero-modal-media:focus-visible {
  outline: 3px solid rgba(239, 109, 34, 0.62);
  outline-offset: 3px;
}

.hero-visual .hero-lines {
  margin: 14px 0 0;
}

.problem {
  color: var(--white);
  background:
    radial-gradient(circle at 12% 16%, rgba(239, 109, 34, 0.16), transparent 28%),
    linear-gradient(135deg, var(--navy-900), var(--navy));
}

.problem-grid,
.split,
.system-grid,
.value-grid,
.final-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 52px;
  align-items: start;
}

.problem-panel {
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 18px 45px rgba(18, 32, 51, 0.08);
}

.problem-panel p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.06rem;
}

.problem-panel strong {
  display: block;
  color: var(--white);
  font-size: 1.3rem;
  line-height: 1.25;
}

.task-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 46px;
}

.task-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 64px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  font-weight: 400;
  line-height: 1.25;
}

.task-strip span::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 16px;
  flex: 0 0 18px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 64 56' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M32 4 60 52H4L32 4Z' fill='none' stroke='%23ef6d22' stroke-width='5' stroke-linejoin='round'/%3E%3Cpath d='M32 20v15' stroke='%23ef6d22' stroke-width='5' stroke-linecap='round'/%3E%3Ccircle cx='32' cy='44' r='3' fill='%23ef6d22'/%3E%3C/svg%3E") center / contain no-repeat;
}

.wrong-os {
  color: var(--white);
  background:
    linear-gradient(180deg, var(--navy), var(--navy-900));
}

.section-copy p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.1rem;
}

.wrong-os .section-copy p {
  color: rgba(255, 255, 255, 0.74);
}

.wrong-os-visual {
  margin: 0;
  padding: 12px;
  border: var(--image-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 22px 54px rgba(7, 17, 30, 0.24);
}

.wrong-os-visual img {
  width: 100%;
  border-radius: 8px;
}

.system {
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(239, 109, 34, 0.1), transparent 30%),
    var(--white);
}

.system-grid {
  grid-template-columns: 1fr;
  gap: 34px;
}

.system-copy {
  max-width: 820px;
}

.system-copy p {
  color: var(--muted);
  font-size: 1.1rem;
}

.system-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.system-steps article {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  min-height: 184px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(239, 109, 34, 0.1), transparent 42%),
    var(--white);
  box-shadow: 0 18px 44px rgba(18, 32, 51, 0.08);
  overflow: hidden;
}

.system-steps article::after {
  content: "";
  position: absolute;
  inset: auto 20px 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--orange), rgba(239, 109, 34, 0));
}

.system-steps span {
  grid-row: 1 / span 2;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--orange);
  font-weight: 900;
  box-shadow: 0 14px 26px rgba(239, 109, 34, 0.22);
}

.system-steps h3 {
  grid-column: 2;
  margin-bottom: 10px;
  font-size: 1.28rem;
}

.system-steps p {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
}

.section-heading {
  max-width: 810px;
  margin-bottom: 42px;
  text-align: center;
}

.section-heading .eyebrow {
  margin-left: auto;
  margin-right: auto;
}

.agents {
  background: var(--surface);
}

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

.agent-card {
  overflow: hidden;
  border: var(--image-border);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 42px rgba(18, 32, 51, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.agent-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 52px rgba(18, 32, 51, 0.14);
}

.agent-card.featured {
  border-color: rgba(239, 109, 34, 0.42);
  box-shadow: 0 28px 62px rgba(239, 109, 34, 0.12);
}

.agent-media {
  position: relative;
  height: 318px;
  overflow: hidden;
  background: var(--navy-900);
  cursor: pointer;
}

.agent-media:focus-visible {
  outline: 3px solid rgba(239, 109, 34, 0.62);
  outline-offset: -3px;
}

.agent-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.agent-media::after {
  display: none;
}

.agent-modal-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 32px);
  min-height: 44px;
  margin: 16px 16px 0;
  padding: 0 16px;
  border: 1px solid rgba(239, 109, 34, 0.42);
  border-radius: 7px;
  color: var(--white);
  background: var(--orange);
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.agent-modal-button:hover,
.agent-modal-button:focus-visible {
  background: var(--orange-600);
  box-shadow: 0 14px 28px rgba(239, 109, 34, 0.18);
  outline: none;
  transform: translateY(-1px);
}

.agent-body {
  padding: 26px;
}

.agent-label {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--orange);
  font-weight: 900;
}

.agent-body p {
  color: var(--muted);
}

.agent-body strong {
  display: block;
  color: var(--navy);
  line-height: 1.35;
}

.capacity {
  background: var(--white);
}

.split.reversed {
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  align-items: center;
}

.capacity-column {
  max-width: 760px;
}

.capacity-box {
  padding: 40px;
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(239, 109, 34, 0.95), rgba(239, 109, 34, 0.68)),
    var(--orange);
  box-shadow: var(--shadow);
}

.capacity-box h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.35vw, 2.25rem);
}

.capacity-box h2 + h2 {
  margin-top: 24px;
  color: var(--navy-900);
}

.capacity-copy {
  margin-top: 28px;
}

.capacity-visual {
  margin: 0;
  padding: 14px;
  border: var(--image-border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.capacity-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 14px 14px 14px 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  font-weight: 800;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 20px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
}

.flow {
  color: var(--ink);
  background:
    linear-gradient(180deg, var(--white), var(--surface));
}

.flow-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.flow-board article {
  min-height: 242px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 38px rgba(18, 32, 51, 0.07);
}

.flow-board span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 28px;
  border-radius: 50%;
  color: var(--white);
  background: var(--orange);
  font-weight: 900;
}

.flow-board h3 {
  font-size: 1.2rem;
}

.flow-board p {
  margin: 0;
  color: var(--muted);
}

.flow-proof {
  margin-top: 40px;
  padding: 14px;
  border: var(--image-border);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 18px 42px rgba(18, 32, 51, 0.08);
}

.flow-proof img,
.flow-proof video {
  width: 100%;
  border-radius: 8px;
}

.value {
  background: #eff0f3;
}

.value-visual {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.value-visual img {
  width: 100%;
  border-radius: 0;
}

.final-cta {
  background:
    radial-gradient(circle at 88% 20%, rgba(239, 109, 34, 0.2), transparent 24%),
    linear-gradient(135deg, var(--navy-900), var(--navy));
}

.final-cta p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.12rem;
}

.final-card {
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.final-card p {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 900;
}

.final-card .button {
  width: 100%;
  margin-top: 14px;
}

.faq {
  background: var(--surface);
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 900px;
}

.faq-item {
  border: 1px solid rgba(239, 109, 34, 0.24);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(18, 32, 51, 0.06);
  overflow: hidden;
}

.faq-question {
  position: relative;
  width: 100%;
  min-height: 68px;
  padding: 20px 62px 20px 22px;
  border: 0;
  color: var(--navy);
  background: transparent;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}

.faq-question::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 22px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--white);
  background: var(--orange);
  font-size: 1.2rem;
  line-height: 1;
  transform: translateY(-50%);
}

.faq-question[aria-expanded="true"]::after {
  content: "-";
}

.faq-question:hover,
.faq-question:focus-visible {
  color: var(--orange);
  outline: none;
}

.faq-answer {
  padding: 0 22px 22px;
}

.faq-answer p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.faq-answer a {
  color: var(--orange);
  font-weight: 700;
  text-decoration-color: rgba(239, 109, 34, 0.45);
  text-underline-offset: 3px;
}

.faq-answer a:hover,
.faq-answer a:focus-visible {
  color: var(--orange-600);
  text-decoration-color: currentColor;
}

.comparison {
  background: var(--white);
}

.comparison-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(239, 109, 34, 0.55);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(18, 32, 51, 0.08);
}

.comparison-table {
  width: 100%;
  min-width: 840px;
  border-collapse: collapse;
  background: var(--white);
}

.comparison-table th,
.comparison-table td {
  padding: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  vertical-align: top;
  font-size: 1rem;
  line-height: 1.45;
}

.comparison-table thead th {
  color: var(--white);
  font-size: 1.02rem;
  font-weight: 900;
  text-align: left;
}

.comparison-table thead th:first-child {
  color: var(--navy);
  background: var(--surface);
}

.comparison-table tbody th {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  background: var(--surface);
  font-weight: 900;
}

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

.comparison-table__negative {
  color: rgba(255, 255, 255, 0.9);
  background: var(--navy);
}

.comparison-table__positive {
  color: var(--white);
  background: var(--orange);
}

.comparison-icon {
  display: inline-grid;
  flex: 0 0 48px;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--white);
  background: var(--orange);
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1;
}

.comparison-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.comparison-conclusion {
  width: 100%;
  margin-top: 30px;
  padding: 30px;
  border: 1px solid rgba(239, 109, 34, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(239, 109, 34, 0.12), rgba(239, 109, 34, 0)),
    var(--navy);
  box-shadow: 0 18px 46px rgba(18, 32, 51, 0.16);
}

.comparison-conclusion p {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.12rem;
  line-height: 1.6;
}

.comparison-conclusion p:last-child {
  color: var(--white);
  font-weight: 800;
  margin-bottom: 0;
}

.comparison-conclusion .button {
  display: flex;
  width: fit-content;
  margin: 24px auto 0;
}

.site-footer {
  padding: 48px 0;
  color: rgba(255, 255, 255, 0.72);
  background: var(--navy-900);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.footer-logo {
  width: 190px;
  margin-bottom: 16px;
}

.site-footer p {
  margin: 0;
  font-size: 0.95rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  font-size: 0.92rem;
  font-weight: 700;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--orange);
}

.footer-cookie-button {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.footer-cookie-button:hover,
.footer-cookie-button:focus-visible {
  color: var(--orange);
  outline: none;
}

.cookie-consent {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  width: min(520px, calc(100% - 40px));
  color: var(--ink);
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent__content {
  padding: 22px;
  border: 1px solid rgba(239, 109, 34, 0.34);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 26px 80px rgba(7, 17, 30, 0.24);
}

.cookie-consent__title {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 900;
}

.cookie-consent p:not(.cookie-consent__title) {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.cookie-consent__settings {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.cookie-consent__settings[hidden] {
  display: none;
}

.cookie-consent__settings label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 800;
}

.cookie-consent__settings input {
  width: 18px;
  height: 18px;
  accent-color: var(--orange);
}

.cookie-consent__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 800;
}

.cookie-consent__links a:hover,
.cookie-consent__links a:focus-visible {
  color: var(--orange);
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.cookie-button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 7px;
  font-size: 0.86rem;
  font-weight: 900;
  cursor: pointer;
}

.cookie-button[hidden] {
  display: none;
}

.cookie-button-primary {
  border: 1px solid var(--orange);
  color: var(--white);
  background: var(--orange);
}

.cookie-button-secondary {
  border: 1px solid rgba(28, 45, 65, 0.16);
  color: var(--navy);
  background: var(--white);
}

.cookie-button:hover,
.cookie-button:focus-visible {
  outline: 2px solid rgba(239, 109, 34, 0.34);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(7, 17, 30, 0.82);
  backdrop-filter: blur(10px);
}

.image-modal[hidden] {
  display: none;
}

.image-modal__panel {
  position: relative;
  width: min(1120px, 100%);
  max-height: calc(100vh - 56px);
  display: grid;
  place-items: center;
  padding: 18px;
  border: var(--image-border);
  border-radius: 10px;
  background: var(--navy-900);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.image-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  color: var(--white);
  background: rgba(7, 17, 30, 0.88);
  font-weight: 900;
  cursor: pointer;
}

.image-modal__close:hover,
.image-modal__close:focus-visible {
  background: var(--orange);
  outline: none;
}

.image-modal__image,
.image-modal__video {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 92px);
  object-fit: contain;
  border-radius: 8px;
}

.image-modal__video {
  background: #000;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .comparison-table-wrap {
    overflow: visible;
    border: 0;
    box-shadow: none;
  }

  .comparison-table,
  .comparison-table thead,
  .comparison-table tbody,
  .comparison-table tr,
  .comparison-table th,
  .comparison-table td {
    display: block;
    min-width: 0;
    width: 100%;
  }

  .comparison-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .comparison-table tbody tr {
    margin-bottom: 18px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 16px 38px rgba(18, 32, 51, 0.1);
  }

  .comparison-table tbody th,
  .comparison-table td {
    padding: 18px;
  }

  .comparison-table td::before {
    display: block;
    margin-bottom: 8px;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .comparison-table td.comparison-table__negative::before {
    content: "Contratar a 3 personas";
  }

  .comparison-table td.comparison-table__positive::before {
    content: "Implantar Laia OS";
  }

  .comparison-conclusion {
    padding: 22px;
  }
}

@media (max-width: 1080px) {
  .main-nav {
    gap: 16px;
    font-size: 0.86rem;
  }

  .hero-grid,
  .problem-grid,
  .split,
  .system-grid,
  .value-grid,
  .final-grid,
  .split.reversed {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 32px;
  }

  .hero-visual {
    max-width: 760px;
  }

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

  .system-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 72px;
  }

  .site-header {
    padding: 0 18px;
    gap: 10px;
  }

  .header-actions {
    justify-content: flex-end;
    margin-left: auto;
    gap: 8px;
  }

  .brand {
    width: 154px;
    height: 42px;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 14px 20px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
  }

  .main-nav.open {
    display: grid;
  }

  .main-nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(28, 45, 65, 0.08);
  }

  .main-nav .mobile-language-link {
    display: block;
    margin-top: 6px;
    padding: 14px 0 0;
    border-bottom: 0;
    border-top: 1px solid rgba(239, 109, 34, 0.22);
    color: var(--orange);
    font-weight: 900;
  }

  .menu-toggle {
    display: block;
  }

  .header-actions > .button {
    display: inline-flex;
    width: auto;
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.72rem;
    white-space: nowrap;
    box-shadow: 0 10px 20px rgba(239, 109, 34, 0.18);
  }

  section {
    padding: 82px 0;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 56px);
  }

  .hero-lines,
  .task-strip,
  .system-steps,
  .check-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .language-switch {
    display: none;
  }

  h1 {
    font-size: clamp(2.3rem, 11.5vw, 3.1rem);
  }

  h2 {
    font-size: clamp(1.55rem, 7.5vw, 2.1rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .site-header .header-actions > .button {
    width: auto;
    min-height: 36px;
    padding: 0 10px;
    font-size: 0.68rem;
  }

  .hero-visual,
  .flow-proof {
    padding: 8px;
    margin-left: -8px;
    margin-right: -8px;
  }

  .agent-grid,
  .flow-board {
    grid-template-columns: 1fr;
  }

  .agent-media {
    height: 340px;
  }

  .problem-panel,
  .capacity-box,
  .final-card {
    padding: 24px;
  }

  .footer-grid {
    display: grid;
    align-items: start;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .cookie-consent {
    right: 14px;
    bottom: 14px;
    width: calc(100% - 28px);
  }

  .cookie-consent__actions,
  .cookie-button {
    width: 100%;
  }

  .image-modal {
    padding: 12px;
  }

  .image-modal__panel {
    padding: 10px;
    max-height: calc(100vh - 24px);
  }

  .image-modal__image,
  .image-modal__video {
    max-height: calc(100vh - 46px);
  }
}
