:root {
  --sage: #8ca09c;
  --sage-dark: #78918c;
  --sage-soft: #a8bbb7;
  --blue: #07579e;
  --link-blue: #003cff;
  --muted: #a6a6a6;
  --text: #171717;
  --button: #b7d9fb;
  --page: #ffffff;
  --max: 1536px;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  background: var(--page);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.topbar {
  height: 106px;
  background: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 86px;
}

.brand img {
  display: block;
  width: 205px;
  height: auto;
  max-height: 82px;
  object-fit: contain;
}

main {
  min-height: calc(100vh - 106px);
  display: flex;
  flex-direction: column;
}

.hero {
  position: relative;
  min-height: 565px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  padding: 64px 24px 118px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 1120px);
  text-align: center;
}

h1 {
  margin: 0;
  color: var(--sage-dark);
  font-size: clamp(52px, 5.2vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.welcome {
  margin: 18px 0 0;
  font-size: clamp(25px, 2.2vw, 35px);
  line-height: 1.02;
  font-weight: 700;
}

.divider {
  width: 200px;
  height: 2px;
  margin: 34px auto 35px;
  background: var(--sage-soft);
}

.machine h2 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(37px, 3.5vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.machine p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: clamp(28px, 3vw, 47px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.primary-button {
  margin: 48px auto 0;
  width: min(390px, 90vw);
  min-height: 82px;
  padding: 18px 30px;
  border-radius: 999px;
  background: var(--button);
  color: #111;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(26, 86, 139, 0.08);
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.primary-button:hover {
  transform: translateY(-2px);
  background: #a9d1f8;
  box-shadow: 0 14px 30px rgba(26, 86, 139, 0.14);
}

.primary-button:focus-visible,
.footer-block a:focus-visible,
.brand:focus-visible {
  outline: 3px solid #0b64ad;
  outline-offset: 4px;
}

.arrow {
  font-size: 1.25em;
  margin-top: -1px;
}

.waves {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: -72px;
  transform: translateX(-50%);
  width: max(1540px, 112vw);
  height: auto;
  opacity: .58;
  pointer-events: none;
  user-select: none;
}

.portal-footer {
  margin-top: auto;
  background: #fff;
  padding: 7px 40px 52px;
  position: relative;
  z-index: 3;
}

.footer-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1px 1.25fr 1px 1.1fr;
  gap: 42px;
  align-items: center;
}

.footer-separator {
  width: 1px;
  height: 110px;
  background: var(--sage-soft);
}

.footer-block {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emerson-block {
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.footer-kicker {
  margin: 0;
  font-size: 18px;
}

.emerson-logo {
  width: 150px;
  height: auto;
  object-fit: contain;
}

.contact-block,
.web-block {
  gap: 22px;
  justify-content: flex-start;
}

.footer-icon {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  stroke: var(--sage-soft);
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.globe { stroke-width: 2.8; }

.footer-block h3 {
  margin: 0 0 10px;
  font-size: 23px;
  line-height: 1.1;
  font-weight: 800;
}

.footer-block a {
  color: var(--link-blue);
  font-size: 21px;
  text-underline-offset: 3px;
}

@media (max-width: 1000px) {
  .hero {
    min-height: 600px;
    padding-top: 58px;
  }

  .waves {
    width: 1700px;
    bottom: -20px;
    opacity: .45;
  }

  .footer-grid {
    gap: 26px;
  }

  .footer-icon {
    flex-basis: 58px;
    width: 58px;
    height: 58px;
  }

  .footer-block h3 { font-size: 20px; }
  .footer-block a { font-size: 18px; }
}

@media (max-width: 760px) {
  .topbar { height: 82px; }

  .brand {
    height: 68px;
  }

  .brand img {
    width: 165px;
    max-height: 64px;
  }

  main {
    min-height: calc(100vh - 82px);
  }

  .hero {
    min-height: 620px;
    padding: 46px 18px 160px;
  }

  h1 {
    font-size: clamp(45px, 14vw, 64px);
  }

  .welcome {
    margin-top: 16px;
    font-size: clamp(22px, 6.3vw, 30px);
  }

  .divider {
    width: 145px;
    margin: 28px auto;
  }

  .machine h2 {
    font-size: clamp(34px, 9.5vw, 47px);
  }

  .machine p {
    margin-top: 10px;
    font-size: clamp(22px, 6.6vw, 31px);
  }

  .primary-button {
    margin-top: 40px;
    min-height: 68px;
    width: min(350px, 92vw);
    font-size: 20px;
  }

  .waves {
    width: 1320px;
    bottom: -15px;
    opacity: .42;
  }

  .portal-footer {
    padding: 18px 24px 34px;
  }

  .footer-grid {
    width: min(100%, 460px);
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-separator {
    width: 100%;
    height: 1px;
    margin: 22px 0;
  }

  .footer-block {
    min-height: auto;
    justify-content: center;
  }

  .contact-block,
  .web-block {
    justify-content: flex-start;
  }
}

@media (max-width: 430px) {
  .hero {
    min-height: 580px;
    padding-top: 38px;
  }

  .welcome br {
    display: none;
  }

  .waves {
    width: 1150px;
    bottom: 0;
  }

  .footer-icon {
    flex-basis: 52px;
    width: 52px;
    height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .primary-button { transition: none; }
}
