:root {
  --red: #e31b2f;
  --ink: #111318;
  --muted: #6b7280;
  --line: #e5e7eb;
  --paper: #f7f7f5;
  --white: #ffffff;
}

@media (max-width: 760px) {
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

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

.page-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(7, 9, 13, 0.86), rgba(7, 9, 13, 0));
}

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

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

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.page-header nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 600;
}

.page-header nav a:hover,
.page-header nav button:hover {
  color: var(--white);
}

.page-header nav button {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: inherit;
  cursor: pointer;
}

.nav-item {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  z-index: 5;
  display: grid;
  min-width: 180px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(12, 15, 20, 0.96);
  opacity: 0;
  transform: translateX(-50%) translateY(-6px);
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease;
}

.dropdown-menu a {
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
}

.dropdown-menu a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.dropdown-menu.empty {
  min-height: 40px;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.robots-hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(92vh, 860px);
  padding: clamp(64px, 9vw, 118px) clamp(18px, 6vw, 88px);
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(8, 10, 14, 0.96) 0%, rgba(8, 10, 14, 0.78) 42%, rgba(8, 10, 14, 0.22) 100%),
    linear-gradient(180deg, rgba(8, 10, 14, 0.08), rgba(8, 10, 14, 0.58)),
    url("7dd593ed-5473-434e-8527-a3331d864cab.jpeg") 30% center / 118% auto no-repeat,
    #080a0e;
}

.robots-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.72) 46%, transparent 100%);
  pointer-events: none;
}

.robots-hero::after {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 8px;
  background: var(--red);
  content: "";
  pointer-events: none;
}

.robots-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.kicker {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.robots-hero h1 {
  margin: 0;
  max-width: 880px;
  font-size: clamp(52px, 8vw, 112px);
  line-height: 0.88;
}

.robots-hero-copy > p {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 20px;
  line-height: 1.55;
}

.hero-specs {
  display: inline-grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 1px;
  margin-top: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.hero-specs span,
.hero-specs strong {
  min-height: 48px;
  padding: 14px 16px;
  background: rgba(8, 10, 14, 0.62);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-specs strong {
  color: var(--white);
}

.hero-specs span {
  color: rgba(255, 255, 255, 0.66);
}

.robot-browser {
  display: grid;
  grid-template-columns: minmax(230px, 310px) minmax(0, 1fr);
  gap: 18px;
  padding: clamp(44px, 7vw, 88px) clamp(18px, 6vw, 88px);
  background:
    radial-gradient(circle at 10% 0%, rgba(227, 27, 47, 0.1), transparent 30%),
    linear-gradient(180deg, #f7f7f5, #eef1f5);
}

.robot-rail {
  align-self: start;
  position: sticky;
  top: 20px;
  padding: 22px;
  border: 1px solid rgba(17, 19, 24, 0.08);
  background: var(--white);
  box-shadow: 0 18px 42px rgba(17, 19, 24, 0.08);
}

.robot-controls {
  display: grid;
  gap: 8px;
}

.robot-controls button {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 56px;
  padding: 10px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--paper);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.robot-controls button:hover {
  transform: translateX(2px);
  border-color: rgba(227, 27, 47, 0.42);
}

.robot-controls strong {
  color: var(--red);
  font-size: 18px;
}

.robot-controls span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.robot-controls button.active {
  border-color: var(--red);
  background: var(--red);
}

.robot-controls button.active strong,
.robot-controls button.active span {
  color: var(--white);
}

.robot-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.84fr) minmax(240px, 0.7fr);
  min-height: 620px;
  border: 1px solid rgba(17, 19, 24, 0.08);
  background: var(--white);
  box-shadow: 0 20px 52px rgba(17, 19, 24, 0.1);
}

.robot-photo {
  min-height: 620px;
  background: #080a0e;
}

.robot-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.robot-panel > .robot-photo,
.robot-panel > .robot-info {
  min-width: 0;
}

.robot-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 60px);
  container-type: inline-size;
}

.robot-info h2 {
  margin: 0 0 34px;
  color: var(--ink);
  font-size: clamp(36px, 18cqw, 112px);
  line-height: 0.84;
  overflow-wrap: anywhere;
}

.robot-info dl {
  display: grid;
  gap: 1px;
  margin: 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.robot-info dl div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  background: var(--white);
}

.robot-info dt,
.robot-info dd {
  margin: 0;
  padding: 15px;
}

.robot-info dt {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.robot-info dd {
  color: #343944;
  font-weight: 800;
}

.footer {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 6vw, 88px) 36px;
  color: rgba(255, 255, 255, 0.7);
  border-top: 0;
  background:
    linear-gradient(90deg, rgba(227, 27, 47, 0.08), rgba(7, 9, 13, 0) 34%),
    linear-gradient(180deg, #11151d 0%, #07090d 74%),
    #07090d;
}

.footer::before {
  position: absolute;
  top: 0;
  left: clamp(18px, 6vw, 88px);
  width: 72px;
  height: 3px;
  content: "";
  background: var(--red);
}

.footer strong,
.footer span {
  display: block;
}

.footer strong {
  color: var(--white);
  margin-bottom: 6px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 700;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-bottom: 2px solid rgba(227, 27, 47, 0.65);
  color: rgba(255, 255, 255, 0.88);
  transition: border-color 160ms ease, color 160ms ease;
}

.footer-links a:hover {
  color: var(--white);
  border-color: var(--red);
}

@media (max-width: 920px) {
  .page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-header nav {
    display: none;
  }

  .robots-hero {
    min-height: auto;
    background-position: 66% center;
  }

  .robot-browser,
  .robot-panel {
    grid-template-columns: 1fr;
  }

  .robot-rail {
    position: static;
  }

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

  .robot-photo {
    min-height: 520px;
  }
}

@media (max-width: 560px) {
  .robots-hero h1 {
    font-size: clamp(46px, 15vw, 64px);
  }

  .robots-hero {
    background:
      linear-gradient(90deg, rgba(8, 10, 14, 0.96) 0%, rgba(8, 10, 14, 0.78) 62%, rgba(8, 10, 14, 0.34) 100%),
      linear-gradient(180deg, rgba(8, 10, 14, 0.14), rgba(8, 10, 14, 0.62)),
      url("7dd593ed-5473-434e-8527-a3331d864cab.jpeg") 28% center / 126% auto no-repeat,
      #080a0e;
  }

  .hero-specs {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero-specs span,
  .hero-specs strong {
    min-height: 42px;
  }

  .robot-controls {
    grid-template-columns: 1fr;
  }

  .robot-photo {
    min-height: 420px;
  }

  .robot-info dl div {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
