:root {
  --background: #f5f8fb;
  --surface: #eaf1f6;
  --text: #1d252b;
  --muted: #5f6b73;
  --quiet: #7b8790;
  --line: #d7e0e6;
  --accent: #628815;
  --accent-dark: #405f05;
  --accent-vibrant: #527d0b;
  --shell: min(1080px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--background);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: #dcefb7;
  color: var(--text);
}

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

img {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 9px 14px;
  transform: translateY(-150%);
  border-radius: 4px;
  background: var(--text);
  color: #fff;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.section-label,
.products-label {
  margin: 0 0 24px;
  color: var(--accent-vibrant);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-header {
  border-bottom: 1px solid rgba(96, 122, 139, 0.16);
  background: #fbfcfd;
}

.site-nav {
  display: flex;
  min-height: 88px;
  max-width: 820px;
  align-items: center;
}

.site-title {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 1.05rem;
  font-weight: 680;
  letter-spacing: -0.015em;
  line-height: 1;
}

.site-title img {
  width: 52px;
  height: 52px;
}

.nav-contact {
  display: inline-flex;
  min-height: 40px;
  margin-left: auto;
  padding: 0 16px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(82, 125, 11, 0.28);
  border-radius: 8px;
  background: rgba(236, 244, 224, 0.7);
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 680;
  line-height: 1;
  transition:
    border-color 150ms ease,
    background-color 150ms ease;
}

.nav-contact:hover {
  border-color: rgba(82, 125, 11, 0.5);
  background: #e5efd3;
}

.hero {
  padding: clamp(72px, 8vw, 104px) 0 clamp(92px, 11vw, 128px);
  background:
    radial-gradient(circle at 50% 22%, rgba(102, 164, 205, 0.13), transparent 34%),
    linear-gradient(180deg, #fbfcfd 0%, #f4f8fb 55%, #edf5fa 100%);
}

.hero-inner {
  max-width: 820px;
  text-align: left;
}

.hero-content {
  max-width: 820px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.2rem, 6.5vw, 5.5rem);
  font-weight: 610;
  letter-spacing: -0.058em;
  line-height: 1;
}

.hero-subtitle {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  line-height: 1.65;
}

.products {
  margin-top: clamp(64px, 8vw, 96px);
}

.products-label {
  margin-bottom: 22px;
  text-align: left;
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  text-align: left;
}

.product-card {
  display: grid;
  min-width: 0;
  padding: 22px;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  border: 1px solid rgba(112, 134, 147, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
  transition:
    border-color 150ms ease,
    background-color 150ms ease;
}

.product-card:hover {
  border-color: rgba(82, 125, 11, 0.45);
  background: rgba(255, 255, 255, 0.75);
}

.product-logo {
  display: grid;
  width: 64px;
  height: 64px;
  overflow: hidden;
  place-items: center;
  border-radius: 12px;
}

.product-logo img {
  width: 100%;
  height: 100%;
}

.product-logo-citizeo {
  padding: 9px;
  background: #4f8458;
}

.product-logo-citizeo img {
  width: 48px;
  height: 48px;
  filter: brightness(0) invert(1);
}

.product-logo-citizeo-intake {
  background: linear-gradient(120deg, #10221f 0%, #183330 52%, #233f47 100%);
}

.product-copy,
.product-name,
.product-description {
  display: block;
}

.product-name {
  margin: 1px 0 7px;
  font-size: 1.15rem;
  font-weight: 680;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.product-arrow {
  margin-left: 0.2em;
  color: var(--accent-vibrant);
  font-size: 0.82em;
  font-weight: 700;
}

.product-description {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.55;
}

.contact {
  padding: 82px 0 88px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(120deg, #edf3f7 0%, #e6f0f6 100%);
}

.contact-inner {
  max-width: 820px;
  text-align: left;
}

.contact-heading,
.contact-copy {
  max-width: 650px;
}

.contact h2 {
  margin: 0;
  font-size: clamp(2.4rem, 4.8vw, 4rem);
  font-weight: 610;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.contact-copy {
  margin-top: 24px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.contact-copy a {
  display: inline;
  border-bottom: 1px solid var(--accent);
  color: var(--text);
  font-weight: 620;
  transition: color 150ms ease;
}

.contact-copy a:hover {
  color: var(--accent-dark);
}

.site-footer {
  padding: 36px 0 44px;
}

.footer-inner {
  max-width: 820px;
  color: var(--quiet);
  font-size: 0.72rem;
  text-align: left;
}

.footer-inner p {
  margin: 0;
}

.not-found-page {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

.not-found-main {
  display: flex;
  flex: 1;
}

.not-found {
  display: flex;
  width: 100%;
  padding: clamp(84px, 11vw, 136px) 0;
  align-items: center;
  background:
    radial-gradient(circle at 50% 22%, rgba(102, 164, 205, 0.13), transparent 34%),
    linear-gradient(180deg, #fbfcfd 0%, #f4f8fb 55%, #edf5fa 100%);
}

.not-found-inner {
  max-width: 820px;
}

.not-found-code {
  margin: 0 0 24px;
  color: var(--accent-vibrant);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.not-found h1 {
  margin: 0;
  font-size: clamp(3.2rem, 6.5vw, 5.5rem);
  font-weight: 610;
  letter-spacing: -0.058em;
  line-height: 1;
}

.not-found p:not(.not-found-code) {
  max-width: 560px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.not-found-action {
  display: inline-flex;
  min-height: 42px;
  margin-top: 30px;
  padding: 0 17px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(82, 125, 11, 0.28);
  border-radius: 8px;
  background: rgba(236, 244, 224, 0.7);
  color: var(--accent-dark);
  font-size: 0.86rem;
  font-weight: 680;
  line-height: 1;
  transition:
    border-color 150ms ease,
    background-color 150ms ease;
}

.not-found-action:hover {
  border-color: rgba(82, 125, 11, 0.5);
  background: #e5efd3;
}

@media (max-width: 680px) {
  :root {
    --shell: calc(100vw - 32px);
  }

  .site-nav {
    min-height: 72px;
  }

  .site-title {
    gap: 11px;
    font-size: 1rem;
  }

  .site-title img {
    width: 44px;
    height: 44px;
  }

  .nav-contact {
    min-height: 38px;
    padding-inline: 14px;
    font-size: 0.78rem;
  }

  .hero {
    padding: 54px 0 56px;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 10vw, 2.85rem);
    line-height: 1.03;
  }

  .hero h1 br {
    display: none;
  }

  .hero-subtitle {
    margin-top: 22px;
    font-size: 1.03rem;
  }

  .products {
    margin-top: 48px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .product-card {
    padding: 18px;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 16px;
  }

  .product-logo {
    width: 56px;
    height: 56px;
    border-radius: 10px;
  }

  .product-logo-citizeo {
    padding: 8px;
  }

  .product-logo-citizeo img {
    width: 42px;
    height: 42px;
  }

  .contact {
    padding: 52px 0 54px;
  }

  .not-found {
    padding: 72px 0 80px;
  }

  .not-found h1 {
    font-size: clamp(2.3rem, 10vw, 2.85rem);
  }
}

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

  * {
    transition-duration: 0.01ms !important;
  }
}
