@font-face {
  font-family: Manrope;
  src: url("/assets/manrope-display.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ground: #f0f3f5;
  --paper: #fbfcfd;
  --surface: #e1eaf0;
  --ink: #163343;
  --muted: #536976;
  --accent: #006f9c;
  --accent-hover: #005979;
  --inverse: #f2f7fa;
  --inverse-muted: #bdd0dc;
  --focus: #007aa8;
  --gutter: clamp(20px, 3.4vw, 64px);
  --display: clamp(40px, 4.55vw, 72px);
  --heading: clamp(26px, 2.25vw, 34px);
  --lead: clamp(20px, 1.65vw, 24px);
  --body: 16px;
  --small: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { background: var(--ground); scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font: var(--body)/1.65 "Segoe UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; text-underline-offset: 5px; -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
button, a { touch-action: manipulation; }
svg { display: block; width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--ink); color: var(--inverse); }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.page-width { width: min(1664px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.skip { position: fixed; z-index: 10; top: 12px; left: 20px; padding: 12px 20px; background: var(--ink); color: var(--inverse); transform: translateY(-160%); }
.skip:focus { transform: translateY(0); }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 112px; }
.brand { display: inline-flex; align-items: center; min-height: 48px; animation: settle 380ms var(--ease) both; }
.brand img { width: 218px; height: auto; }
.company-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: var(--body); animation: settle 420ms var(--ease) both; }
.company-link:hover { color: var(--accent); text-decoration: underline; }

.launcher {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  grid-template-rows: auto 1fr;
  gap: 28px clamp(32px, 4.5vw, 80px);
  align-items: start;
  padding-block: 24px 56px;
}
.launcher-intro { padding-top: 14px; }
h1 { font-size: var(--display); font-weight: 500; line-height: 1.16; letter-spacing: -.045em; animation: arrive 500ms var(--ease) both; }
.intro-copy { max-width: 29em; margin-top: 24px; font-size: 18px; line-height: 1.8; animation: settle 480ms var(--ease) both; }
.app-choices { display: grid; align-self: end; gap: 8px; padding-bottom: 32px; }
.app-choice { display: grid; grid-template-columns: 100px minmax(0, 1fr) 32px; align-items: center; gap: 20px; min-height: 102px; padding: 16px 24px; transition: background-color 160ms ease; animation: arrive 520ms var(--ease) both; }
.app-choice:nth-child(2) { animation-duration: 620ms; }
.app-choice[data-active="true"], .app-choice:hover, .app-choice:focus-visible { background: var(--surface); }
.app-code { font: 600 var(--heading)/1.1 Manrope, "Segoe UI", sans-serif; letter-spacing: -.03em; }
.app-choice[data-active="true"] .app-code { color: var(--accent); }
.choice-copy { display: grid; gap: 4px; }
.app-name { font-size: var(--body); font-weight: 500; }
.choice-action { color: var(--muted); font-size: var(--small); }
.app-choice > svg { width: 28px; height: 28px; color: var(--accent); opacity: 0; transform: translateX(-8px); transition: transform 180ms var(--ease), opacity 180ms ease; }
.app-choice[data-active="true"] > svg, .app-choice:hover > svg, .app-choice:focus-visible > svg { opacity: 1; transform: translateX(0); }
.app-choice:active { transform: translateY(1px); }

.product-preview { grid-column: 2; grid-row: 1 / 3; min-width: 0; animation: product-arrive 650ms var(--ease) both; }
.preview-stage { position: relative; aspect-ratio: 4 / 3; background: var(--surface); }
.preview-visual { position: absolute; inset: 0; display: block; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 240ms ease, visibility 240ms; }
.preview-visual[data-active="true"] { opacity: 1; visibility: visible; pointer-events: auto; }
.preview-visual img { width: 100%; height: 100%; object-fit: contain; }

.resources { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 24px; }
.documents, .client-downloads { min-width: 0; padding: 30px 36px 24px; }
.documents { background: var(--paper); }
.client-downloads { background: var(--ink); color: var(--inverse); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-heading h2 { font-size: var(--heading); font-weight: 500; line-height: 1.3; letter-spacing: -.025em; animation: settle 540ms var(--ease) both; }
.section-heading p { color: var(--muted); font-size: var(--small); }
.manual-list { display: grid; gap: 28px; }
.manual { animation: settle 600ms var(--ease) both; }
.manual:nth-child(2) { animation-duration: 700ms; }
.manual h3 { font-size: var(--body); font-weight: 500; line-height: 1.6; }
.manual-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; margin-top: 6px; }
.manual-actions a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--body); color: var(--accent); }
.manual-actions a:last-child { color: var(--muted); }
.manual-actions a:hover { color: var(--accent-hover); text-decoration: underline; }
.client-downloads .section-heading { margin-bottom: 8px; }
.client-downloads .section-heading p { color: var(--inverse-muted); }
.client-list { display: grid; gap: 4px; }
.client-row { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 20px; min-height: 82px; animation: settle 620ms var(--ease) both; }
.client-row:nth-child(2) { animation-duration: 720ms; }
.client-name h3 { font-size: var(--body); line-height: 1.6; font-weight: 500; }
.client-name p { color: var(--inverse-muted); font-size: var(--small); line-height: 1.6; }
.client-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 16px; }
.client-links a, .client-help a { display: inline-flex; align-items: center; justify-content: flex-end; gap: 12px; min-height: 44px; font-size: var(--body); }
.client-links a { max-width: 100%; text-align: end; }
.client-links a:hover, .client-help a:hover { text-decoration: underline; }
.client-links svg, .client-help svg { width: 17px; height: 17px; transition: transform 180ms ease; }
.client-links a:hover svg { transform: translateY(3px); }
.client-help { display: flex; justify-content: flex-end; margin-top: 4px; color: var(--inverse-muted); }
.client-downloads a:focus-visible { outline-color: var(--inverse); }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px 32px; min-height: 100px; color: var(--muted); font-size: var(--small); animation: settle 760ms var(--ease) both; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer a:hover { text-decoration: underline; color: var(--accent); }

@keyframes settle { from { transform: translateY(10px); opacity: .7; } to { transform: translateY(0); opacity: 1; } }
@keyframes arrive { from { transform: translateX(-14px); opacity: .7; } to { transform: translateX(0); opacity: 1; } }
@keyframes product-arrive { from { transform: translateY(18px) scale(.985); opacity: .8; } to { transform: translateY(0) scale(1); opacity: 1; } }

@media (min-width: 1700px) { .launcher { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
@media (max-width: 1100px) {
  .site-header { min-height: 96px; }
  .launcher { gap: 24px 32px; padding-block: 16px 40px; }
  .app-choice { grid-template-columns: 76px minmax(0, 1fr) 24px; gap: 12px; min-height: 88px; padding: 14px 18px; }
  .app-choices { padding-bottom: 20px; }
  .intro-copy { margin-top: 18px; }
  .documents, .client-downloads { padding: 26px 28px 20px; }
}
@media (max-width: 860px) {
  :root { --gutter: 28px; --display: 48px; }
  .launcher { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
  .launcher-intro { grid-column: 1 / 3; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 24px; padding-top: 0; }
  .intro-copy { margin: 0 0 4px; }
  .app-choices { grid-column: 1; grid-row: 2; align-self: center; padding-bottom: 0; }
  .product-preview { grid-column: 2; grid-row: 2; }
  .app-choice { padding: 14px; grid-template-columns: 70px minmax(0, 1fr) 22px; gap: 10px; }
  .resources { gap: 16px; }
  .documents, .client-downloads { padding: 24px; }
  .client-row { gap: 12px; padding-block: 10px; }
  .site-footer { font-size: 13px; }
}
@media (max-width: 620px) {
  :root { --gutter: 20px; --display: 40px; --heading: 28px; }
  .site-header { min-height: 84px; gap: 16px; }
  .brand img { width: 180px; }
  .company-link { font-size: var(--small); }
  .launcher { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-block: 14px 32px; }
  .launcher-intro { grid-column: 1; display: block; }
  h1 { line-height: 1.18; letter-spacing: -.035em; }
  .intro-copy { margin-top: 18px; max-width: 22em; }
  .product-preview { grid-column: 1; grid-row: 2; }
  .app-choices { grid-column: 1; grid-row: 3; gap: 6px; }
  .app-choice { min-height: 76px; grid-template-columns: 86px minmax(0, 1fr) 28px; gap: 14px; padding: 10px 18px; }
  .app-code { font-size: var(--heading); }
  .choice-copy { gap: 0; }
  .resources { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .documents, .client-downloads { padding: 24px; }
  .section-heading { margin-bottom: 20px; }
  .manual-list { gap: 18px; }
  .client-row { padding-block: 8px; }
  .client-links a { gap: 8px; }
  .client-help { margin-top: 0; }
  .site-footer { align-items: flex-start; justify-content: center; flex-direction: column; gap: 0; min-height: 120px; padding-block: 20px; font-size: 13px; }
}
@media (max-width: 360px) {
  .brand img { width: 156px; }
  .client-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .client-links { justify-content: flex-start; }
  .client-links a { text-align: start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
