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

* {
  box-sizing: border-box;
}

body {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
  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;
}

main {
  flex: 1;
}

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

.resource-hero {
  display: grid;
  align-items: end;
  min-height: 460px;
  padding: 140px clamp(18px, 6vw, 88px) 70px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(7, 9, 13, 0.95), rgba(7, 9, 13, 0.75) 54%, rgba(7, 9, 13, 0.42)),
    var(--resource-hero-image, url("1b6ea0ff-95b7-45bd-adae-fc4d9b33f700.jpeg")) var(--resource-hero-x, calc(65% + 180px)) var(--resource-hero-y, 82%) / var(--resource-hero-size, cover) no-repeat,
    #080a0e;
}

@media (min-width: 900px) {
  .resource-hero:not(.contact-hero) {
    --resource-hero-size: calc(100% + 48px) auto;
  }
}

.resource-hero > div {
  max-width: 900px;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

.resource-hero h1,
.coming-soon h1 {
  margin-bottom: 18px;
  font-size: clamp(52px, 8vw, 112px);
  line-height: 0.9;
}

.resource-hero p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 19px;
  line-height: 1.55;
}

.resource-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: min(1180px, calc(100% - 36px));
  margin: -24px auto 0;
  position: relative;
  z-index: 2;
}

.resource-tabs a,
.resource-tabs button {
  border: 1px solid var(--line);
  padding: 13px 18px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  box-shadow: 0 18px 48px rgba(17, 19, 24, 0.08);
}

.resource-tabs a.active,
.resource-tabs a:hover,
.resource-tabs button.active,
.resource-tabs button:hover {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}

.resource-section,
.resource-panel {
  width: min(1180px, calc(100% - 36px));
  margin: 34px auto 80px;
}

.resource-panel {
  display: none;
}

.resource-panel.active {
  display: block;
}

.resource-directory {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(360px, 1fr);
  gap: clamp(28px, 8vw, 96px);
  border: 1px solid var(--line);
  padding: clamp(24px, 5vw, 56px);
  background: var(--white);
}

.directory-column h2 {
  margin-bottom: 18px;
  color: #2d3a4a;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.05;
}

.directory-column p {
  max-width: 480px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.directory-muted {
  border-right: 1px solid var(--line);
  padding-right: clamp(18px, 4vw, 52px);
}

.resource-list {
  margin: 0;
  padding-left: 28px;
  color: #2d3a4a;
  font-size: clamp(22px, 2.3vw, 30px);
  line-height: 1.42;
}

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

.resource-list a {
  color: #008bd6;
  text-decoration: none;
}

.resource-list a:hover {
  text-decoration: underline;
}

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

.resource-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  padding: 22px;
  background: var(--white);
  box-shadow: 0 18px 44px rgba(17, 19, 24, 0.06);
}

.resource-card h2 {
  margin-bottom: 12px;
  font-size: 23px;
  line-height: 1.1;
}

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

.resource-card span,
.resource-card a {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.coming-soon {
  min-height: calc(100vh - 110px);
  display: grid;
  place-items: center;
  padding: 140px 18px 80px;
  color: var(--white);
  text-align: center;
  background:
    linear-gradient(90deg, rgba(7, 9, 13, 0.95), rgba(7, 9, 13, 0.7)),
    url("assets/hero-robotics.png") center / cover no-repeat,
    #080a0e;
}

.coming-soon-inline {
  min-height: 420px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  padding: clamp(32px, 6vw, 80px);
  background: var(--white);
  text-align: center;
}

.coming-soon-inline h2 {
  margin: 0 0 16px;
  font-size: clamp(54px, 9vw, 128px);
  line-height: 0.9;
}

.coming-soon-inline p:not(.kicker) {
  color: var(--muted);
  font-size: 20px;
}

.contact-hero {
  position: relative;
  isolation: isolate;
  min-height: 430px;
  overflow: hidden;
  background: #080a0e;
}

.contact-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, #080a0e 0%, rgba(8, 10, 14, 0.96) 42%, rgba(8, 10, 14, 0.34) 72%, rgba(8, 10, 14, 0.08) 100%);
  pointer-events: none;
}

.contact-hero-image {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}

.contact-hero > div {
  position: relative;
  z-index: 1;
}

.contact-section {
  width: min(1180px, calc(100% - 36px));
  margin: -30px auto 80px;
  position: relative;
  z-index: 2;
}

.contact-primary {
  border: 1px solid var(--line);
  padding: clamp(24px, 4vw, 42px);
  background: var(--white);
  box-shadow: 0 18px 48px rgba(17, 19, 24, 0.08);
}

.contact-primary h2 {
  margin-bottom: 14px;
  font-size: clamp(32px, 5vw, 68px);
  line-height: 0.98;
  overflow-wrap: anywhere;
}

@media (max-width: 560px) {
  .contact-primary h2 {
    font-size: clamp(21px, 6.5vw, 32px);
  }
}

.contact-primary p {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.contact-button {
  display: inline-flex;
  margin-top: 12px;
  border: 1px solid var(--red);
  padding: 13px 18px;
  background: var(--red);
  color: var(--white);
  font-weight: 800;
}

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

.contact-card {
  border: 1px solid var(--line);
  padding: 22px;
  background: var(--white);
}

.contact-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.15;
}

.contact-card p {
  color: var(--muted);
  line-height: 1.55;
}

.contact-card a {
  color: var(--red);
  font-weight: 800;
}

.contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.coming-soon p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 20px;
}

.footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 38px clamp(18px, 6vw, 88px);
  color: rgba(255, 255, 255, 0.72);
  background: #0c0f14;
}

.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: 900px) {
  .contact-hero::after {
    background: linear-gradient(90deg, #080a0e 0%, rgba(8, 10, 14, 0.92) 55%, rgba(8, 10, 14, 0.28) 100%);
  }

  .page-header {
    position: absolute;
    align-items: flex-start;
    flex-direction: column;
  }

  .page-header nav {
    flex-wrap: wrap;
    gap: 14px 18px;
  }

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

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

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

  .directory-muted {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: 24px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
