:root {
  --green: #08a88e;
  --green-dark: #087463;
  --blue: #12385e;
  --ink: #3b3e3e;
  --muted: #68717b;
  --line: #dededf;
  --soft: #f6f7f8;
  --white: #fff;
  --shadow: 0 8px 30px rgba(18, 56, 94, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Rubik, Arial, Helvetica, sans-serif;
  font-size: 16.5px;
  font-weight: 300;
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(222, 222, 223, 0.9);
  background: rgba(255, 255, 255, 0.98);
}

.header-inner {
  display: grid;
  grid-template-columns: 175px 1fr auto;
  align-items: center;
  gap: 18px;
  max-width: 1200px;
  min-height: 72px;
  margin: 0 auto;
  padding: 0 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 175px;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 175px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-item {
  position: relative;
}

.nav-button,
.nav-link,
.sign-in {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 0;
  padding: 0 12px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.nav-button::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 7px;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  border-top: 5px solid var(--green);
}

.nav-button:hover,
.nav-button:focus,
.nav-link:hover,
.nav-link:focus,
.sign-in:hover,
.sign-in:focus {
  color: var(--green);
  outline: none;
}

.sign-in {
  justify-self: end;
  color: var(--green-dark);
  font-weight: 500;
}

.nav-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  display: none;
  min-width: 360px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(18, 56, 94, 0.16);
  transform: translateX(-50%);
}

.nav-item.open .nav-panel {
  display: block;
}

.product-panel {
  display: none;
  grid-template-columns: minmax(300px, 1fr) minmax(320px, 500px);
  gap: 18px;
  min-width: min(880px, calc(100vw - 32px));
}

.nav-item.open .product-panel {
  display: grid;
}

@media (min-width: 901px) {
  .nav-item:hover .nav-panel,
  .nav-item:focus-within .nav-panel {
    display: block;
  }

  .nav-item:hover .product-panel,
  .nav-item:focus-within .product-panel {
    display: grid;
  }
}

.panel-kicker {
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 9px 10px;
  color: var(--ink);
  text-decoration: none;
}

.panel-link:hover,
.panel-link:focus {
  background: #f1f8f6;
  outline: none;
}

.panel-link img {
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.panel-link strong,
.panel-link small {
  display: block;
}

.panel-link strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
}

.panel-link small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.3;
}

.panel-feature {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 14px;
  background: var(--soft);
}

.panel-feature img {
  display: block;
  width: 100%;
  height: auto;
}

.panel-feature p {
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.45;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  min-height: 42px;
  padding: 0 18px;
  color: var(--white);
  background: var(--green);
  font-weight: 500;
  text-decoration: none;
}

.button:hover,
.button:focus {
  background: var(--green-dark);
  outline: none;
}

.button.small {
  min-height: 36px;
  font-size: 14px;
}

.menu-toggle {
  display: none;
  justify-self: end;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

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

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  max-width: 1560px;
  min-height: 320px;
  margin: 0 auto;
  aspect-ratio: 2176 / 646;
  overflow: hidden;
  background: url("assets/home-banner.jpg") center right / cover no-repeat;
}

.hero-content {
  width: min(520px, 46%);
  margin: 0 0 clamp(18px, 3vw, 36px) clamp(18px, 4vw, 64px);
  padding: clamp(18px, 2.6vw, 28px) clamp(20px, 3vw, 34px);
  background: linear-gradient(135deg, rgba(8, 168, 142, 0.92) 0%, rgba(18, 56, 94, 0.9) 100%);
  box-shadow: 0 16px 38px rgba(18, 56, 94, 0.22);
}

h1 {
  max-width: 430px;
  margin: 0;
  color: var(--white);
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
}

.products {
  padding: 72px 20px 0;
}

.section-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 25px;
}

.products h2 {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 32px;
  padding-bottom: 12px;
  border-bottom: 1px dotted var(--line);
  color: var(--green);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.3;
  text-align: center;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card-large {
  grid-column: 1 / -1;
}

.product-card a {
  position: relative;
  display: block;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid #e7e7e8;
  border-radius: 8px;
  background-color: var(--soft);
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.xtract-card a {
  min-height: 430px;
  background-image: url("assets/xtract3d2-mockup.png");
  background-position: center;
}

.pointkit-card a {
  background-image: url("assets/pointkit-engineer-banner.jpg");
  background-position: top center;
}

.pointkit-view-card a {
  background-image: url("assets/pointkit-view-splash.png");
  background-position: center;
}

.product-card a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.22);
  transition: background-color 0.2s ease;
}

.product-card a:hover,
.product-card a:focus {
  border-color: #b8bfc4;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  outline: none;
  transform: translateY(-4px);
}

.product-card a:hover::before,
.product-card a:focus::before {
  background: rgba(255, 255, 255, 0.12);
}

.product-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 4px;
  min-height: 104px;
  padding: 16px 18px;
  color: var(--white);
  background: rgba(11, 150, 123, 0.86);
  text-align: center;
}

.product-copy strong {
  color: var(--white);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
}

.product-copy small {
  color: #f3f3f4;
  font-size: 16.5px;
  font-weight: 300;
  line-height: 1.6;
}

.footer {
  position: relative;
  margin-top: 96px;
  color: var(--white);
  background-image: url("assets/footer-gridlines.svg"), linear-gradient(180deg, var(--green) 0%, var(--blue) 100%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: clamp(32px, 6vw, 84px);
  max-width: 1200px;
  margin: 0 auto;
  padding: 54px 32px 44px;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 6px;
}

.footer-column h2 {
  margin: 0 0 7px;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.footer-column a {
  width: fit-content;
  padding: 3px 0;
  color: var(--white);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.25;
  text-decoration: none;
  text-transform: capitalize;
  transition: color 0.2s ease, background-color 0.2s ease, padding 0.2s ease;
  white-space: nowrap;
}

.footer-column a:hover,
.footer-column a:focus {
  padding-right: 5px;
  padding-left: 5px;
  color: var(--white);
  background: var(--green);
  outline: none;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px max(32px, calc((100vw - 1200px) / 2 + 32px));
  background: rgba(31, 35, 46, 0.7);
}

.footer-bottom img {
  display: block;
  width: 90px;
  height: auto;
}

.footer-bottom p {
  margin: 0;
  color: var(--white);
  font-size: 15px;
  text-align: right;
}

@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: auto auto;
    padding: 0 14px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav,
  .sign-in {
    display: none;
  }

  .site-header.nav-open .main-nav,
  .site-header.nav-open .sign-in {
    display: flex;
  }

  .site-header.nav-open .main-nav {
    grid-column: 1 / -1;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 10px 0 12px;
  }

  .site-header.nav-open .sign-in {
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: center;
    margin: 0 0 14px;
    background: #eef5f7;
  }

  .nav-button,
  .nav-link {
    justify-content: space-between;
    width: 100%;
  }

  .nav-panel,
  .product-panel {
    position: static;
    display: none;
    min-width: 0;
    width: 100%;
    margin: 6px 0 12px;
    box-shadow: none;
    transform: none;
  }

  .nav-item.open .product-panel,
  .nav-item.open .compact-panel {
    display: block;
  }

  .panel-feature {
    display: none;
  }

  .hero {
    min-height: 360px;
    aspect-ratio: auto;
    background-position: 58% center;
  }

  .hero-content {
    width: min(480px, calc(100% - 40px));
    margin: 0 0 22px 18px;
    padding: 18px 22px;
  }

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

  .product-card-large a,
  .product-card a {
    min-height: 300px;
  }

  .footer-inner {
    gap: 24px;
  }

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

  .footer-bottom p {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .brand,
  .brand img {
    width: 145px;
  }

  .hero {
    min-height: 380px;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.82) 44%, rgba(255, 255, 255, 0.22) 74%, rgba(255, 255, 255, 0) 100%), url("assets/home-banner.jpg");
    background-position: center bottom;
  }

  .hero-content {
    width: calc(100% - 30px);
    margin: 0 15px 15px;
    padding: 16px 18px;
  }

  h1 {
    max-width: 320px;
    font-size: 22px;
  }

  .products {
    padding: 52px 14px 0;
  }

  .section-inner {
    padding: 0;
  }

  .products h2 {
    margin-bottom: 22px;
    font-size: 28px;
  }

  .product-grid {
    gap: 18px;
  }

  .product-card-large a,
  .product-card a {
    min-height: 280px;
  }

  .product-copy {
    min-height: 0;
    padding: 14px 15px;
  }

  .product-copy strong {
    font-size: 22px;
  }

  .product-copy small {
    font-size: 15px;
  }

  .footer {
    margin-top: 72px;
  }

  .footer-inner {
    padding: 40px 22px 34px;
  }
}
