/* DocPress — product landing (DeepSeek Harness–inspired) */
:root {
  --bg: #050505;
  --bg-elevated: #0c0c0e;
  --bg-panel: rgba(255, 255, 255, 0.035);
  --bg-panel-strong: rgba(255, 255, 255, 0.06);
  --fg: #f5f5f5;
  --fg-muted: rgba(245, 245, 245, 0.62);
  --fg-subtle: rgba(245, 245, 245, 0.4);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #4d6bfe;
  --accent-soft: rgba(77, 107, 254, 0.18);
  --success: #3dd68c;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --max: 1120px;
  --header-h: 72px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-glow: 0 0 80px rgba(77, 107, 254, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--fg);
  background: var(--bg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

code,
pre {
  font-family: var(--font-mono);
}

.wrap {
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
}

/* —— header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(24px, calc((100% - var(--max)) / 2));
  background: rgba(5, 5, 5, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.site-header a {
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.brand-mark__logo {
  display: block;
  height: 28px;
  width: auto;
  /* logo asset is navy (#004f7f); invert for dark chrome */
  filter: brightness(0) invert(1);
}

.gate__brand .brand-mark__logo {
  height: 36px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px 10px;
  font-size: 14px;
  color: var(--fg-muted);
}

.nav > a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--fg-muted);
}

.nav > a:hover {
  color: var(--fg);
  background: var(--bg-panel);
  text-decoration: none;
}

.nav > a[aria-current="page"] {
  color: var(--fg);
}

.lang-switch {
  display: inline-flex;
  margin-left: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  overflow: hidden;
  font-size: 12px;
}

.lang-switch a {
  padding: 4px 10px;
  color: var(--fg-subtle);
}

.lang-switch a:hover {
  color: var(--fg);
  text-decoration: none;
}

.lang-switch a[aria-current="true"] {
  color: var(--fg);
  background: var(--bg-panel-strong);
}

.header-cta {
  margin-left: 8px;
}

/* —— buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.18s;
}

.btn--primary {
  color: #0a0a0a !important;
  background: #f3f4f6;
}

.btn--primary:hover {
  background: #fff;
  color: #0a0a0a !important;
  transform: translateY(-1px);
}

.btn--ghost {
  color: var(--fg) !important;
  background: transparent;
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  background: var(--bg-panel);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--fg) !important;
}

.btn--lg {
  min-height: 48px;
  padding: 0 24px;
  font-size: 15px;
}

.btn--sm {
  min-height: 32px;
  padding: 0 12px;
  font-size: 13px;
}

/* —— gate —— */
.gate {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(77, 107, 254, 0.22), transparent 55%),
    var(--bg);
}

.gate__inner {
  width: min(100%, 420px);
  text-align: center;
  padding: 36px 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow-glow);
  animation: rise 0.6s var(--ease) both;
}

.gate__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.gate__tag {
  margin: 0 0 28px;
  color: var(--fg-muted);
  font-size: 14px;
}

.gate__langs {
  display: grid;
  gap: 10px;
}

.gate__langs a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: left;
  color: var(--fg);
  font-weight: 600;
  background: transparent;
  transition: border-color 0.18s, background 0.18s;
}

.gate__langs a:hover {
  border-color: rgba(77, 107, 254, 0.55);
  background: var(--accent-soft);
  text-decoration: none;
}

.gate__langs small {
  display: block;
  margin-top: 4px;
  font-weight: 400;
  font-size: 12px;
  color: var(--fg-muted);
}

/* —— hero —— */
.hero {
  position: relative;
  padding: 96px 0 112px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% 10% auto;
  height: 55%;
  background: radial-gradient(ellipse at center, rgba(77, 107, 254, 0.28), transparent 65%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
  display: grid;
  gap: 56px;
  align-items: center;
}

@media (min-width: 1080px) {
  .hero__content {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 96px;
  }
}

.hero__copy {
  max-width: 32rem;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 28px;
  color: var(--fg-muted);
  font-size: 13px;
  animation: rise 0.5s var(--ease) both;
}

.hero__eyebrow i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px rgba(61, 214, 140, 0.7);
}

.hero__title {
  margin: 0 0 28px;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.2;
  animation: rise 0.55s 0.05s var(--ease) both;
}

.hero__title em {
  font-style: normal;
  color: var(--fg-muted);
  font-weight: 500;
}

.hero__lead {
  margin: 0 0 36px;
  color: var(--fg-muted);
  font-size: 17px;
  line-height: 1.8;
  animation: rise 0.55s 0.1s var(--ease) both;
}

.hero__sub {
  display: none;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  animation: rise 0.55s 0.16s var(--ease) both;
}

/* product preview */
.preview {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow-glow), 0 30px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  animation: sheet-in 0.7s 0.1s var(--ease) both;
}

.preview__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--fg-subtle);
  font-size: 12px;
}

.preview__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.preview__body {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 360px;
}

@media (max-width: 720px) {
  .preview__body {
    grid-template-columns: 1fr;
  }

  .preview__side {
    display: none;
  }
}

.preview__side {
  padding: 28px 18px;
  border-right: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
  font-size: 13px;
  color: var(--fg-muted);
}

.preview__side strong {
  display: block;
  margin-bottom: 18px;
  padding: 0 10px;
  color: var(--fg);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.preview__side button {
  display: block;
  width: 100%;
  margin: 0 0 8px;
  padding: 12px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--fg-muted);
  text-align: left;
  font: inherit;
  font-size: 13px;
  line-height: 1.4;
  cursor: default;
}

.preview__side button.is-active {
  background: var(--accent-soft);
  color: #c9d2ff;
}

.preview__main {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.preview__badge {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 20px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: #c9d2ff;
  font-size: 11px;
}

.preview__main h3 {
  margin: 0 0 16px;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.preview__main p {
  margin: 0 0 28px;
  max-width: 24rem;
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.75;
}

.preview__formats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.preview__formats span {
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  color: var(--fg-muted);
  background: rgba(255, 255, 255, 0.02);
}

.preview__formats span em {
  font-style: normal;
  color: var(--success);
  margin-right: 6px;
}

/* sections */
.section {
  padding: 120px 0;
}

.section--tight {
  padding: 100px 0;
}

.section__head {
  max-width: 36rem;
  margin-bottom: 64px;
}

.section__head h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.section__head p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 17px;
  line-height: 1.75;
}

.feature {
  display: grid;
  gap: 36px;
  align-items: center;
  margin-bottom: 112px;
}

.feature:last-child {
  margin-bottom: 0;
}

@media (min-width: 900px) {
  .feature {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
  }

  .feature--flip .feature__copy {
    order: 2;
  }
}

.feature__copy h3 {
  margin: 0 0 18px;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.feature__copy p {
  margin: 0 0 20px;
  color: var(--fg-muted);
  font-size: 16px;
  line-height: 1.75;
}

.feature__copy ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.7;
}

.feature__copy li + li {
  margin-top: 10px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-panel);
  overflow: hidden;
  min-height: 260px;
}

.panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--fg-subtle);
  font-size: 12px;
}

.panel__body {
  padding: 24px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.metric {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
}

.metric b {
  display: block;
  margin-bottom: 4px;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: #fff;
}

.metric span {
  font-size: 12px;
  color: var(--fg-muted);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip {
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  color: var(--fg-muted);
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline__item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.55;
}

.timeline__item i {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.timeline__item strong {
  display: block;
  color: var(--fg);
  font-weight: 560;
  margin-bottom: 4px;
}

/* business grid */
.biz-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 800px) {
  .biz-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.biz-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-panel);
  transition: border-color 0.2s, background 0.2s;
}

.biz-card:hover {
  border-color: var(--line-strong);
  background: var(--bg-panel-strong);
}

.biz-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.biz-card p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.7;
}

.biz-card .tag {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: #c9d2ff;
  font-size: 11px;
}

/* CTA band */
.cta-band {
  padding: 120px 0 128px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, rgba(77, 107, 254, 0.16), transparent 60%),
    var(--bg);
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 18px;
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.03em;
}

.cta-band p {
  margin: 0 auto 36px;
  max-width: 34rem;
  color: var(--fg-muted);
  line-height: 1.75;
}

.contact {
  margin-top: 40px;
  color: var(--fg-subtle);
  font-size: 13px;
  line-height: 1.8;
}

.contact strong {
  color: var(--fg-muted);
  font-weight: 500;
}

/* docs / inner pages */
.page-hero {
  padding: 80px 0 48px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 50% 80% at 0% 0%, rgba(77, 107, 254, 0.16), transparent 55%),
    var(--bg);
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 5vw, 42px);
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.page-hero p {
  margin: 0;
  max-width: 38rem;
  color: var(--fg-muted);
  font-size: 17px;
  line-height: 1.75;
}

.prose {
  padding: 64px 0 112px;
}

.prose h2 {
  margin: 48px 0 16px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

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

.prose h3 {
  margin: 24px 0 8px;
  font-size: 17px;
}

.prose p,
.prose ul,
.prose ol {
  max-width: 42rem;
  color: var(--fg-muted);
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 0.35em;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.prose strong {
  color: var(--fg);
  font-weight: 600;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
  display: grid;
  gap: 14px;
}

.steps li {
  counter-increment: step;
  position: relative;
  max-width: 42rem;
  padding: 18px 18px 18px 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-panel);
  color: var(--fg-muted);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 18px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: #c9d2ff;
  font-size: 13px;
  font-weight: 600;
}

.steps strong {
  display: block;
  margin-bottom: 4px;
  color: var(--fg);
}

.note {
  margin: 18px 0;
  padding: 14px 16px;
  max-width: 42rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--fg-muted);
  font-size: 14px;
}

.split-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  color: var(--fg-subtle);
  font-size: 12px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
}

.site-footer a {
  color: var(--fg-muted);
}

.site-footer a:hover {
  color: var(--fg);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
