/* ALDR HengShu website. Dark, like the app; the logo's gradient is the accent. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-700-normal.woff2') format('woff2');
}

:root {
  --bg: #0b1020;
  --bg-alt: #0e1528;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-strong: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --text: #e8edf7;
  --muted: #98a4bc;
  --teal: #2dd4bf;
  --blue: #38a3f5;
  --violet: #9b7bf7;
  --grad: linear-gradient(120deg, var(--teal), var(--blue) 50%, var(--violet));
  --radius: 14px;
  --container: 1180px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Noto Sans SC', 'Noto Sans CJK SC', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
:lang(zh-CN) body,
html:lang(zh-CN) {
  line-height: 1.75;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h2 {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  font-weight: 700;
}
h3 {
  font-size: 1.125rem;
  font-weight: 600;
}
p {
  margin: 0;
}
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.narrow {
  max-width: 800px;
}
.muted {
  color: var(--muted);
}
.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}
.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
}
.skip:focus {
  top: 1rem;
}

/* ------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.125rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.3;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn--primary {
  background: var(--grad);
  color: #071021;
  box-shadow: 0 8px 24px -10px rgba(56, 163, 245, 0.7);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -10px rgba(56, 163, 245, 0.85);
}
.btn--ghost {
  border-color: var(--border);
  background: var(--surface);
}
.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--surface-strong);
}
.btn--large {
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
}
.btn--small {
  padding: 0.4375rem 0.875rem;
  font-size: 0.875rem;
}
.btn .size {
  font-weight: 500;
  opacity: 0.7;
  font-size: 0.8125rem;
}
.link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--blue);
  font-weight: 500;
  font-size: 0.9375rem;
}
.link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link .size {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 400;
}

/* ----------------------------------------------------------------- nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(11, 16, 32, 0.72);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  transition: border-color 0.2s ease;
}
.nav.is-scrolled {
  border-bottom-color: var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 4rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
}
.logo {
  width: 2rem;
  height: 2rem;
  flex: none;
}
.brand__name {
  font-size: 1.125rem;
}
.brand__tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  padding-left: 0.625rem;
  border-left: 1px solid var(--border);
}
.nav__links {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
  font-size: 0.9375rem;
}
.nav__links a {
  color: var(--muted);
  transition: color 0.15s ease;
}
.nav__links a:hover {
  color: var(--text);
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.lang {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.5rem;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.875rem;
}
.lang:hover {
  color: var(--text);
  background: var(--surface);
}
.lang .icon {
  width: 1.125rem;
  height: 1.125rem;
}
.nav__toggle {
  display: none;
  padding: 0.375rem;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--text);
  cursor: pointer;
}

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  padding: 4.5rem 0 3rem;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero__glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 720px;
  background: radial-gradient(40% 50% at 25% 35%, rgba(45, 212, 191, 0.16), transparent 70%),
    radial-gradient(40% 50% at 75% 30%, rgba(155, 123, 247, 0.18), transparent 70%),
    radial-gradient(35% 40% at 55% 60%, rgba(56, 163, 245, 0.14), transparent 70%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  gap: 3.5rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.lead {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  color: #c3cbdc;
  max-width: 34rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.hero__note {
  margin-top: 1rem;
  font-size: 0.875rem;
}
.hero__visual {
  position: relative;
  margin-right: -6rem;
}

/* --------------------------------------------------------- screenshots */
.shot {
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #0c1222;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.02);
}
.shot__bar {
  display: flex;
  gap: 0.375rem;
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
}
.shot__bar span {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.shot--hero {
  box-shadow: 0 40px 120px -40px rgba(56, 163, 245, 0.45), 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}
.card-shot {
  margin: 0 auto;
  max-width: 340px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.75), 0 0 60px -20px rgba(45, 212, 191, 0.25);
}

/* ------------------------------------------------------------- engines */
.engines {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.engines__label {
  font-size: 0.8125rem;
  color: var(--muted);
}
.engines ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
  color: #c9d2e3;
}

/* ------------------------------------------------------------ sections */
.section {
  padding: 6rem 0;
}
.section--alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}
.section__head {
  max-width: 44rem;
  margin: 0 auto 3rem;
  text-align: center;
}
.section__head p {
  margin-top: 1rem;
  font-size: 1.0625rem;
}
.section__head--left {
  margin-left: 0;
  text-align: left;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 4rem;
  align-items: center;
}
.split--reverse {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}
.split h2 + * {
  margin-top: 1.25rem;
}

/* ------------------------------------------------------------ features */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.feature {
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature:hover {
  border-color: rgba(56, 163, 245, 0.35);
  transform: translateY(-2px);
}
.feature__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.25rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.18), rgba(155, 123, 247, 0.18));
  color: var(--teal);
}
.feature__icon .icon {
  width: 1.5rem;
  height: 1.5rem;
}
.feature p {
  margin-top: 0.625rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* --------------------------------------------------------------- steps */
.steps {
  display: grid;
  gap: 1.75rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.steps li {
  display: flex;
  gap: 1rem;
}
.steps__n {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--grad);
  color: #071021;
  font-weight: 700;
}
.steps p {
  margin-top: 0.375rem;
  color: var(--muted);
}

/* ---------------------------------------------------------------- lists */
.checks {
  display: grid;
  gap: 0.625rem;
  margin: 1.5rem 0 2rem;
  padding: 0;
  list-style: none;
}
.checks li {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
}
.checks .icon {
  margin-top: 0.25rem;
  color: var(--teal);
}

/* ---------------------------------------------------------- agent pair */
.pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
}
.pair__label {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
}
.pair__arrow {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-top: 2rem;
  border-radius: 50%;
  background: var(--grad);
  color: #071021;
}

/* ------------------------------------------------------------ download */
.section--download {
  position: relative;
}
.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.dl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 2rem 1.75rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}
.dl-card.is-mine {
  border-color: rgba(56, 163, 245, 0.55);
  background: linear-gradient(180deg, rgba(56, 163, 245, 0.08), var(--surface) 60%);
}
.dl-card__badge {
  display: none;
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.125rem 0.625rem;
  border-radius: 999px;
  background: rgba(56, 163, 245, 0.15);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 600;
}
.dl-card.is-mine .dl-card__badge {
  display: block;
}
.dl-card__icon {
  color: var(--text);
}
.dl-card__icon .icon {
  width: 2.25rem;
  height: 2.25rem;
}
.dl-card h3 {
  font-size: 1.375rem;
}
.dl-card .btn {
  width: 100%;
  margin-top: 0.75rem;
}
.sums {
  width: 100%;
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--muted);
}
.sums summary {
  cursor: pointer;
}
.sums code {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  word-break: break-all;
  color: #b8c2d6;
}
.sums code span {
  color: var(--muted);
}
.notes {
  margin-top: 2.5rem;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.notes dl {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0;
}
.notes dl div {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1rem;
}
.notes dt {
  font-weight: 600;
}
.notes dd {
  margin: 0;
  color: var(--muted);
}
.worker-dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  margin-top: 1.25rem;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.worker-dl p {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
}
.worker-dl ul {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 0.625rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.worker-dl .icon {
  width: 1rem;
  height: 1rem;
}

/* ----------------------------------------------------------------- faq */
.faq {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
}
.faq details {
  border-bottom: 1px solid var(--border);
}
.faq summary {
  position: relative;
  padding: 1.25rem 2.5rem 1.25rem 0;
  font-weight: 600;
  font-size: 1.0625rem;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--muted);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}
.faq p {
  padding-bottom: 1.25rem;
  color: var(--muted);
}

/* ----------------------------------------------------------------- cta */
.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(40% 70% at 50% 100%, rgba(56, 163, 245, 0.2), transparent 70%);
  pointer-events: none;
}
.cta__inner {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 1rem;
}
.cta .btn {
  margin-top: 1rem;
}

/* -------------------------------------------------------------- footer */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}
.footer .logo {
  width: 1.5rem;
  height: 1.5rem;
}
.footer__lang {
  display: flex;
  gap: 0.75rem;
  margin-left: auto;
}
.footer__lang a {
  color: var(--muted);
}
.footer__lang a:hover,
.footer__lang a[aria-current='page'] {
  color: var(--text);
}

.notfound {
  padding: 8rem 0;
}
.notfound h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.notfound p + p {
  margin-top: 0.5rem;
}

/* ---------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .nav__links {
    gap: 1.125rem;
  }
  .brand__tag {
    display: none;
  }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero__visual {
    margin-right: 0;
  }
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .split,
  .split--reverse {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}
@media (max-width: 860px) {
  .nav__toggle {
    display: inline-flex;
  }
  .nav__links {
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--border);
    background: rgba(11, 16, 32, 0.97);
  }
  .nav__links.is-open {
    display: flex;
  }
  .nav__links a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
  }
  .nav__actions {
    margin-left: auto;
  }
  .dl-grid {
    grid-template-columns: 1fr;
  }
  .pair {
    grid-template-columns: 1fr;
  }
  .pair__arrow {
    margin: 0 auto;
    transform: rotate(90deg);
  }
  .worker-dl {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
  }
  .nav__cta {
    display: none;
  }
  .hero {
    padding-top: 3rem;
  }
  .section {
    padding: 4.5rem 0;
  }
  .features {
    grid-template-columns: 1fr;
  }
  .hero__actions .btn {
    width: 100%;
  }
  .notes dl div {
    grid-template-columns: 1fr;
    gap: 0.125rem;
  }
  .worker-dl ul {
    grid-template-columns: 1fr;
  }
  .footer__lang {
    margin-left: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
