:root {
  color-scheme: light;
  --mist: #e9f1f0;
  --mist-deep: #d3e3df;
  --ivory: #fbfaf5;
  --paper: #fffef9;
  --sage: #7f9e91;
  --jade: #557d70;
  --pine: #183f36;
  --pine-soft: #2d5a4e;
  --ink: #16302a;
  --muted: #5e706a;
  --line: rgba(24, 63, 54, 0.14);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#product,
#company {
  scroll-margin-top: 100px;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid rgba(85, 125, 112, 0.45);
  outline-offset: 4px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  z-index: 99;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--pine);
  color: white;
  transform: translateY(-180%);
}

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

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  height: 84px;
  margin-bottom: -84px;
  border-bottom: 1px solid rgba(24, 63, 54, 0.08);
  background: rgba(239, 246, 243, 0.78);
  color: #16302a;
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
}

.nav,
.section,
.footer-inner {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--pine);
  font-size: 19px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(24, 63, 54, 0.08);
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--jade);
}

.nav-links a[aria-current="page"] {
  color: #2d5a4e;
  font-weight: 650;
}

.language-link {
  padding: 6px 12px;
  border: 1px solid rgba(24, 63, 54, 0.14);
  border-radius: 999px;
}

.mobile-nav {
  position: relative;
  display: none;
  font-size: 14px;
}

.mobile-nav summary {
  min-width: 68px;
  padding: 7px 14px;
  border: 1px solid rgba(24, 63, 54, 0.14);
  border-radius: 999px;
  list-style: none;
  cursor: pointer;
  text-align: center;
  user-select: none;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav summary:focus-visible {
  outline: 3px solid rgba(85, 125, 112, 0.45);
  outline-offset: 4px;
}

.mobile-nav summary::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 0 3px 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.mobile-nav[open] summary::after {
  transform: translateY(3px) rotate(225deg);
}

.mobile-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  display: grid;
  width: min(280px, calc(100vw - 28px));
  padding: 10px;
  border: 1px solid rgba(24, 63, 54, 0.12);
  border-radius: 18px;
  background: rgba(251, 250, 245, 0.98);
  box-shadow: 0 18px 50px rgba(18, 55, 47, 0.16);
}

.mobile-menu a {
  padding: 11px 13px;
  border-radius: 10px;
  color: #16302a;
  text-decoration: none;
}

.mobile-menu a:hover,
.mobile-menu a:focus-visible {
  background: rgba(85, 125, 112, 0.1);
}

.mobile-menu a[aria-current="page"] {
  background: rgba(85, 125, 112, 0.12);
  color: #2d5a4e;
  font-weight: 650;
}

.mobile-menu .mobile-language-link {
  margin-top: 6px;
  border-top: 1px solid rgba(24, 63, 54, 0.1);
  border-radius: 0 0 10px 10px;
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  background: #dce9e9;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hero::before {
  background: url("/assets/yujing-icon-light.svg") center 52% / cover no-repeat;
  transform: scale(1.012);
}

.hero::after {
  background:
    linear-gradient(90deg, rgba(239, 246, 243, 0.9) 0%, rgba(244, 247, 237, 0.68) 38%, rgba(246, 246, 232, 0.16) 67%, transparent 84%),
    linear-gradient(180deg, rgba(231, 241, 240, 0.28) 0%, transparent 34%, rgba(17, 61, 53, 0.04) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
  padding-top: 184px;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--jade);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(48px, 7.2vw, 84px);
  font-weight: 620;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.hero-copy {
  max-width: 640px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 21px;
  border: 1px solid var(--pine);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.button.primary {
  background: var(--pine);
  color: white;
}

.button:hover {
  transform: translateY(-1px);
}

.section {
  padding-block: 112px;
}

.section-label {
  margin: 0 0 18px;
  color: var(--jade);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.1em;
}

h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.14;
}

.section-intro {
  max-width: 730px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 64px;
  border-top: 1px solid var(--line);
}

.feature {
  padding: 34px 36px 20px 0;
}

.feature + .feature {
  padding-left: 36px;
  border-left: 1px solid var(--line);
}

.feature-number {
  color: var(--sage);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

h3 {
  margin: 30px 0 12px;
  font-size: 23px;
  font-weight: 610;
  letter-spacing: -0.02em;
}

.feature p,
.company-details p,
.status-copy {
  color: var(--muted);
}

.tinted-section {
  background: var(--mist);
}

.tinted-section .section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 80px;
  align-items: start;
}

.company-details {
  padding-top: 12px;
}

.detail-row {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.detail-row:first-child {
  border-top: 1px solid var(--line);
}

.detail-label {
  display: block;
  margin-bottom: 5px;
  color: var(--sage);
  font-size: 13px;
}

.status-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.status-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: status;
}

.status-list li {
  position: relative;
  padding: 0 0 42px 54px;
  counter-increment: status;
}

.status-list li::before {
  content: counter(status, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  color: var(--jade);
  font-size: 13px;
}

.status-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 25px;
  bottom: 12px;
  left: 16px;
  width: 1px;
  background: var(--line);
}

.status-list strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
  font-weight: 610;
}

.status-list span {
  color: var(--muted);
}

.cta-section {
  padding-block: 100px;
  background: var(--pine);
  color: white;
}

.cta-section .section {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
  padding-block: 0;
}

.cta-section h2 {
  max-width: 660px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.7);
}

.cta-section .button {
  flex: 0 0 auto;
  border-color: white;
  background: white;
  color: var(--pine);
}

.site-footer {
  background: #102f28;
  color: rgba(255, 255, 255, 0.72);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 116px;
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-links a {
  text-decoration: none;
}

.legal-hero {
  padding: 174px 0 72px;
  background: linear-gradient(155deg, var(--mist) 0%, var(--ivory) 82%);
}

.legal-hero h1 {
  max-width: 850px;
  font-size: clamp(42px, 6vw, 68px);
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 720px);
  gap: 70px;
  padding-block: 80px 120px;
}

.legal-aside {
  color: var(--muted);
  font-size: 14px;
}

.legal-content h2 {
  margin: 54px 0 16px;
  font-size: 28px;
  letter-spacing: -0.025em;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content ul {
  padding-left: 22px;
}

.legal-content a {
  color: var(--pine-soft);
  text-underline-offset: 3px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 48px;
}

.support-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
}

.support-card h2 {
  margin: 0 0 12px;
  font-size: 23px;
}

.support-card p {
  margin-bottom: 0;
  color: var(--muted);
}

@media (max-width: 820px) {
  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    padding-top: 160px;
  }

  .feature-grid,
  .tinted-section .section,
  .status-section,
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .feature {
    padding: 30px 0;
  }

  .feature + .feature {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .cta-section .section,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner {
    justify-content: center;
    padding-block: 34px;
  }
}

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

  .nav,
  .section,
  .footer-inner,
  .hero-content {
    width: min(calc(100% - 28px), var(--max));
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .section {
    padding-block: 80px;
  }

  .hero {
    min-height: 680px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .hero::before {
    background-position: 56% center;
  }

  .hero::after {
    background: linear-gradient(90deg, rgba(239, 246, 243, 0.88) 0%, rgba(244, 247, 237, 0.58) 72%, rgba(246, 246, 232, 0.08) 100%);
  }

  .support-grid {
    grid-template-columns: 1fr;
  }
}

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

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

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ivory: #0f2622;
    --paper: #16312b;
    --mist: #17332e;
    --mist-deep: #21423b;
    --ink: #edf3ee;
    --muted: #b4c1bb;
    --line: rgba(227, 237, 231, 0.15);
    --sage: #91b3a6;
    --jade: #a7c8bb;
    --pine: #dcebe4;
    --pine-soft: #b7d8ca;
  }

  .site-header .brand,
  .site-header .nav-links,
  .hero {
    color: #16302a;
  }

  .site-header .language-link {
    border-color: rgba(24, 63, 54, 0.14);
  }

  .hero .eyebrow {
    color: #557d70;
  }

  .hero-copy {
    color: #5e706a;
  }

  .hero .button {
    border-color: #183f36;
    color: #183f36;
  }

  .hero .button.primary {
    border-color: #183f36;
    background: #183f36;
    color: white;
  }

  .cta-section {
    background: #09251f;
  }

  .button.primary,
  .cta-section .button {
    background: #e5eee8;
    color: #153b32;
  }

  .button.primary {
    border-color: #e5eee8;
  }

}
