:root {
  --home-ink: #151515;
  --home-paper: #f7f7f5;
  --home-line: #d8d8d3;
  --home-muted: #6d6d68;
  --home-accent: #2b6bff;
}

html {
  scroll-behavior: smooth;
}

body.home-static-page {
  margin: 0;
  overflow-x: hidden;
  background: var(--home-paper);
  color: var(--home-ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.home-static-page *,
.home-static-page *::before,
.home-static-page *::after {
  box-sizing: border-box;
}

.home-skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  background: #fff;
  color: #111;
  transform: translateY(-160%);
}

.home-skip-link:focus {
  transform: translateY(0);
}

.home-static-page .shell {
  width: min(calc(100% - 64px), 1240px);
  margin-right: auto;
  margin-left: auto;
}

.home-static-hero {
  position: relative;
  min-height: 700px;
  overflow: hidden;
  background: #161616;
  color: #fff;
}

.home-static-hero__image {
  position: absolute;
  inset: 0;
  background-image: url("/assets/hero-knowledge-20260726.webp");
  background-position: center;
  background-size: cover;
}

.home-static-hero__image::after {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  content: "";
}

.home-static-header {
  position: absolute;
  z-index: 10;
  top: 0;
  right: 0;
  left: 0;
  opacity: 1 !important;
  transform: none !important;
}

.home-static-header .header-row {
  display: flex;
  min-height: 96px;
  align-items: center;
  gap: 40px;
}

.home-static-header .brand-logo {
  display: block;
  width: 168px;
  flex: 0 0 168px;
  line-height: 0;
}

.home-static-header .brand-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.home-static-header .brand-logo img {
  filter: brightness(0) invert(1);
}

.home-static-header .nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.home-static-header .nav a,
.home-static-header .header-login {
  color: #fff;
}

.home-static-header .nav a,
.home-static-header .header-login,
.home-static-header .header-toolbox {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.home-static-header .nav a {
  transition: color 150ms ease;
}

.home-static-header .nav a:hover,
.home-static-header .nav a:focus-visible {
  color: rgba(255, 255, 255, 0.68);
}

.home-static-header .header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.home-static-header .header-toolbox {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  background: #fff;
  color: #111;
}

.home-static-header .menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  width: 44px;
  min-width: 44px;
  height: 44px;
  color: #fff;
}

.home-static-header .mobile-nav {
  display: none;
  position: absolute;
  z-index: 12;
  top: 82px;
  right: 0;
  left: 0;
  padding: 18px 0 24px;
  background: rgba(18, 18, 18, 0.98);
}

.home-static-header .mobile-nav.open {
  display: block;
}

.home-static-header .mobile-nav-inner {
  display: grid;
  gap: 2px;
}

.home-static-header .mobile-nav a {
  display: flex;
  min-height: 44px;
  align-items: center;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.home-static-header .mobile-toolbox-trigger,
.home-static-header .mobile-login-trigger {
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.home-static-header .menu-toggle span,
.home-static-header .menu-toggle span::before,
.home-static-header .menu-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  content: "";
  transition: transform 150ms ease;
}

.home-static-header .menu-toggle span {
  position: relative;
}

.home-static-header .menu-toggle span::before {
  position: absolute;
  top: -7px;
}

.home-static-header .menu-toggle span::after {
  position: absolute;
  top: 7px;
}

.home-static-header .menu-toggle.open span {
  background: transparent;
}

.home-static-header .menu-toggle.open span::before {
  top: 0;
  transform: rotate(45deg);
}

.home-static-header .menu-toggle.open span::after {
  top: 0;
  transform: rotate(-45deg);
}

.home-static-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 700px;
  max-width: 1240px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-top: 104px;
}

.home-static-hero__brand-label {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 600;
}

.home-static-hero__content h1 {
  max-width: 830px;
  margin: 0;
  font-size: clamp(48px, 5.2vw, 76px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.08;
  text-wrap: balance;
  white-space: normal;
}

.home-static-hero__content > p {
  max-width: 700px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
  line-height: 1.7;
}

.home-static-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 42px;
}

.home-task-link {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 150ms ease, color 150ms ease, background-color 150ms ease;
}

.home-task-link:hover,
.home-task-link:focus-visible {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.home-task-link--primary {
  border-color: #fff;
  background: #fff;
  color: #111;
}

.home-task-link--primary:hover,
.home-task-link--primary:focus-visible {
  background: #ededeb;
  color: #111;
}

.home-task-link:focus-visible,
.home-project-entry__action:focus-visible,
.home-recommendation-card a:focus-visible,
.home-metric:focus-visible,
.home-account-link:focus-visible {
  outline: 3px solid var(--home-accent);
  outline-offset: 3px;
}

.home-account-link {
  min-width: 72px;
  text-align: center;
}

.home-account-link[data-state="loading"] {
  color: rgba(255, 255, 255, 0.72);
}

.home-metrics-section {
  border-bottom: 1px solid var(--home-line);
  background: var(--home-paper);
}

.home-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-metric {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  justify-content: center;
  padding: 44px 32px;
  border-right: 1px solid var(--home-line);
  color: var(--home-ink);
  text-decoration: none;
  transition: color 150ms ease;
}

.home-metric:first-child {
  border-left: 1px solid var(--home-line);
}

.home-metric:hover,
.home-metric:focus-visible {
  color: var(--home-accent);
}

.home-metric strong {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: clamp(42px, 4.4vw, 64px);
  font-weight: 500;
  line-height: 1;
}

.home-metric strong small {
  font-size: 16px;
  font-weight: 500;
}

.home-metric > span {
  margin-top: 16px;
  color: var(--home-muted);
  font-size: 14px;
}

.home-recommendations {
  padding: 88px 0 96px;
  background: #fff;
}

.home-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
  align-items: end;
  gap: 24px 48px;
  margin-bottom: 42px;
}

.home-section-heading > p {
  grid-column: 1 / -1;
  margin: 0 0 -10px;
  color: var(--home-muted);
  font-size: 13px;
}

.home-section-heading h2 {
  margin: 0;
  font-size: clamp(38px, 4vw, 56px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.12;
}

.home-section-heading > span {
  color: var(--home-muted);
  font-size: 15px;
  line-height: 1.7;
}

.home-recommendation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--home-ink);
  border-bottom: 1px solid var(--home-line);
}

.home-recommendation-card {
  display: flex;
  min-height: 232px;
  flex-direction: column;
  padding: 28px 24px 24px;
  border-right: 1px solid var(--home-line);
}

.home-recommendation-card:last-child {
  border-right: 0;
}

.home-recommendation-card__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  color: var(--home-muted);
  font-size: 12px;
}

.home-recommendation-card__meta span:first-child {
  color: var(--home-accent);
}

.home-recommendation-card h3 {
  max-width: 360px;
  margin: 28px 0 24px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
}

.home-recommendation-card a {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 10px;
  margin-top: auto;
  color: var(--home-ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 150ms ease;
}

.home-recommendation-card a:hover,
.home-recommendation-card a:focus-visible {
  color: var(--home-accent);
}

.home-project-entry {
  border-bottom: 1px solid #2b2b2b;
  background: #171717;
  color: #fff;
}

.home-project-entry__inner {
  display: flex;
  min-height: 220px;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.home-static-page .home-project-entry__inner {
  width: min(calc(100% - 64px), 1360px);
}

.home-project-entry__inner > div {
  max-width: 900px;
}

.home-project-entry__inner p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.home-project-entry__inner h2 {
  margin: 0;
  font-size: clamp(34px, 3.4vw, 48px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.15;
}

.home-project-entry__inner div > span {
  display: block;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.7;
}

.home-project-entry__action {
  display: inline-flex;
  min-width: 188px;
  min-height: 54px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 20px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}

.home-project-entry__action:hover,
.home-project-entry__action:focus-visible {
  background: #e7e7e4;
  color: #111;
}

.home-static-footer {
  padding: 48px 0 0;
  background: #171717;
  color: #fff;
}

.home-static-footer .footer-grid {
  display: grid;
  width: min(calc(100% - 96px), 1080px);
  grid-template-columns: 1.3fr repeat(3, minmax(120px, 0.7fr));
  gap: 42px;
  padding-bottom: 40px;
}

.home-static-footer .footer-brand,
.home-static-footer .footer-copy,
.home-static-footer .footer-label {
  margin: 0;
}

.home-static-footer .footer-brand {
  font-size: 20px;
  font-weight: 600;
}

.home-static-footer .footer-copy {
  max-width: 280px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  line-height: 1.7;
}

.home-static-footer .footer-label {
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 12px;
}

.home-static-footer .footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

.home-static-footer .footer-links a {
  color: #fff;
  font-size: 13px;
  text-decoration: none;
  transition: color 150ms ease;
}

.home-static-footer .footer-links a:hover,
.home-static-footer .footer-links a:focus-visible {
  color: #a7a7a0;
}

.home-static-footer .footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.home-static-footer .footer-social img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.home-static-footer .footer-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(calc(100% - 96px), 1080px);
  padding-top: 18px;
  padding-bottom: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
}

.home-static-footer .footer-legal a {
  color: inherit;
  text-decoration: none;
}

@media (max-width: 900px) {
  .home-static-hero {
    overflow: visible;
  }

  .home-static-header .header-row {
    min-height: 82px;
  }

  .home-static-header .nav,
  .home-static-header .header-actions {
    display: none;
  }

  .home-static-header .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .home-static-header {
    z-index: 30;
  }

  .home-static-header .mobile-nav {
    position: fixed;
    top: 82px;
    right: 0;
    bottom: 0;
    left: 0;
    height: calc(100dvh - 82px) !important;
    max-height: none !important;
    overflow-y: auto !important;
    background: #121212;
  }

  .home-static-header .brand-logo {
    width: 154px;
    flex-basis: 154px;
  }

  .home-static-hero,
  .home-static-hero__content {
    min-height: 620px;
  }

  .home-static-hero__image {
    background-position: 66% center;
  }

  .home-static-hero__content {
    padding-top: 112px;
  }

  .home-static-hero__content h1 {
    max-width: 700px;
    font-size: clamp(44px, 8vw, 62px);
  }

  .home-metric {
    min-height: 176px;
    padding: 32px 24px;
  }

  .home-section-heading {
    grid-template-columns: 1fr;
  }

  .home-section-heading > p {
    margin-bottom: -12px;
  }

  .home-recommendation-card h3 {
    font-size: 21px;
  }

  .home-project-entry__inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .home-static-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .home-static-page .shell {
    width: min(calc(100% - 36px), 1240px);
  }

  .home-static-page .home-project-entry__inner,
  .home-static-page .home-static-footer .footer-grid,
  .home-static-page .home-static-footer .footer-legal {
    width: min(calc(100% - 36px), 1240px);
  }

  .home-static-hero,
  .home-static-hero__content {
    min-height: 600px;
  }

  .home-static-hero__image {
    background-position: 64% center;
  }

  .home-static-hero__image::after {
    background: rgba(0, 0, 0, 0.52);
  }

  .home-static-hero__content {
    justify-content: flex-end;
    padding-top: 108px;
    padding-bottom: 48px;
  }

  .home-static-hero__content h1 {
    max-width: 100%;
    font-size: clamp(38px, 11vw, 48px);
    line-height: 1.12;
  }

  .home-static-hero__content > p {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.65;
  }

  .home-static-hero__actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 28px;
  }

  .home-task-link {
    min-height: 48px;
    gap: 12px;
    padding: 0 15px;
    font-size: 14px;
  }

  .home-task-link:first-child {
    grid-column: 1 / -1;
  }

  .home-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-metric {
    min-height: 142px;
    padding: 24px 20px;
    border-bottom: 1px solid var(--home-line);
  }

  .home-metric:nth-child(odd) {
    border-left: 1px solid var(--home-line);
  }

  .home-metric:nth-child(3),
  .home-metric:nth-child(4) {
    border-bottom: 0;
  }

  .home-metric strong {
    font-size: 42px;
  }

  .home-metric strong small {
    font-size: 14px;
  }

  .home-metric > span {
    margin-top: 10px;
    font-size: 13px;
  }

  .home-recommendations {
    padding: 72px 0 80px;
  }

  .home-section-heading {
    margin-bottom: 32px;
  }

  .home-section-heading h2 {
    font-size: 38px;
  }

  .home-recommendation-grid {
    grid-template-columns: 1fr;
  }

  .home-recommendation-card {
    min-height: 206px;
    padding: 24px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--home-line);
  }

  .home-recommendation-card:last-child {
    border-bottom: 0;
  }

  .home-recommendation-card h3 {
    margin-top: 22px;
  }

  .home-project-entry__inner {
    min-height: 240px;
  }

  .home-project-entry__action {
    width: 100%;
  }

  .home-static-footer {
    padding-top: 44px;
  }

  .home-static-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 42px 24px;
    padding-bottom: 48px;
  }

  .home-static-footer .footer-intro {
    grid-column: 1 / -1;
  }

  .home-static-footer .footer-social {
    grid-column: 1 / -1;
  }

  .home-static-footer .footer-legal {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .home-static-page *,
  .home-static-page *::before,
  .home-static-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
