*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: #2b3440;
  background: #f8fafb;
}

a {
  color: #0c334b;
}

mark {
  padding: 0;
  background: transparent;
  color: #6b7684;
}

/* Buttons */

.button {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  border: 2px solid #16202a;
  background: #16202a;
  color: #ffffff;
  font-family: "K2D", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s;
}

.button:hover {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
}

.button:focus-visible,
a:focus-visible {
  outline: 3px solid #2f7fb5;
  outline-offset: 3px;
}

/* Navigation */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px clamp(16px, 6vw, 96px);
  background: rgba(248, 250, 251, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(22, 32, 42, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  color: #16202a;
}

.nav-img {
  width: 44px;
  height: 44px;
  flex: none;
  display: block;
}

.brand-name {
  font-family: "K2D", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-cta {
  flex: none;
  padding: 9px 20px;
  font-size: 0.95rem;
}

/* Hero */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - 69px);
  min-height: calc(100svh - 69px);
  padding: 64px clamp(16px, 6vw, 96px);
  background-color: #f8fafb;
  background-image: url("./assets/heroimage@2x.png");
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: auto min(100%, 62.5vw);
}

.hero-text {
  position: relative;
  width: min(100%, 38vw);
  min-width: 420px;
}

.hero-art {
  display: none;
}

.company-label {
  margin: 0 0 16px;
  font-family: "K2D", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #55606e;
}

h1 {
  margin: 0;
  font-family: "K2D", sans-serif;
  font-weight: 700;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.15;
  color: #111a22;
  text-wrap: balance;
}

.hero-body {
  margin: 24px 0 0;
  max-width: 46ch;
  font-size: 1.12rem;
  font-weight: 400;
  line-height: 1.7;
  color: #3a4553;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin: 32px 0 0;
}

.meta-link {
  font-size: 1rem;
  font-weight: 500;
  color: #3a4553;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Footer */

.site-footer {
  background: #0c1a24;
  color: #dbe2e9;
  padding: 56px clamp(16px, 6vw, 96px) 28px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1fr;
  gap: 40px;
}

.site-footer p,
.site-footer address {
  margin: 0;
  font-style: normal;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
}

.site-footer .footer-title {
  margin-bottom: 12px;
  font-family: "K2D", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffffff;
}

.site-footer a {
  color: #dbe2e9;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer a:hover {
  color: #ffffff;
}

.site-footer .footer-copy {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.88rem;
  color: #a9b4c0;
}

/* Tablet and phone: text first, illustration below */

@media (max-width: 1099px) {
  .hero {
    display: block;
    min-height: 0;
    padding: 48px clamp(16px, 5vw, 40px) 0;
    background-image: none;
  }

  .hero-text {
    width: 100%;
    min-width: 0;
    max-width: 640px;
  }

  .hero-art {
    display: block;
    width: min(100%, 520px);
    margin: 40px auto 0;
    aspect-ratio: 720 / 760;
    background: url("./assets/heroimage-mobile@2x.png") center bottom / 100% auto no-repeat;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer {
    padding-top: 44px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .brand-name {
    display: none;
  }

  .hero-body {
    font-size: 1.06rem;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
