/* ==========================================================================
   多赋信息 Doforsys · 官网样式
   Design tokens: typography / spacing / radius / color
   ========================================================================== */

@font-face {
  font-family: 'Geist';
  src: url('../fonts/geist-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* ---- color ---- */
  --c-black: #000000;
  --c-surface-1: #181818;
  --c-surface-2: #1f1f1f;
  --c-surface-3: #272727;
  --c-surface-4: #313131;
  --c-ink: #ffffff;
  --c-ink-soft: #a9aeb2;
  --c-ink-dim: #7c8288;
  --c-brand: #6993e4;
  --c-brand-soft: #87a8e9;
  --c-brand-deep: #2f4a7d;
  --c-line: rgba(255, 255, 255, 0.08);
  --c-line-strong: rgba(255, 255, 255, 0.16);

  /* ---- semantic (dark default) ---- */
  --nav-bg: rgba(24, 24, 24, 0.72);
  --nav-panel-bg: rgba(0, 0, 0, 0.97);
  --hero-grad-from: #ffffff;
  --hero-grad-to: #9b9b9b;
  --accent-wash: rgba(105, 147, 228, 0.12);
  --accent-wash-strong: rgba(105, 147, 228, 0.14);
  --btn-primary-fg: #06101f;
  --btn-solid-bg: #ffffff;
  --btn-solid-bg-hover: #d8dde2;
  --btn-solid-fg: #000000;
  --select-fg: #000000;
  --error: #ff8f8f;
  --footer-bg: #000000;
  --section-alt: #181818;
  --phase-bg: #000000;
  --dot-ring: rgba(105, 147, 228, 0.45);
  --dot-ring-fade: rgba(105, 147, 228, 0);

  /* ---- glass ---- */
  --glass-bg: rgba(255, 255, 255, 0.045);
  --glass-bg-hover: rgba(255, 255, 255, 0.075);
  --glass-bg-strong: rgba(255, 255, 255, 0.09);
  --glass-border: rgba(255, 255, 255, 0.11);
  --glass-border-hover: rgba(255, 255, 255, 0.2);
  --glass-inner: rgba(255, 255, 255, 0.09);
  --glass-blur: 18px;
  --field-bg: rgba(255, 255, 255, 0.04);
  --field-bg-focus: rgba(255, 255, 255, 0.07);
  --glass-elevation: 0 1px 0 rgba(255, 255, 255, 0.04);
  --skip-bg: #ffffff;
  --skip-fg: #000000;
  color-scheme: dark;

  /* ---- typography scale (Tailwind steps) ---- */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;

  --lh-xs: 1rem;
  --lh-sm: 1.25rem;
  --lh-base: 1.5rem;
  --lh-lg: 1.75rem;
  --lh-xl: 1.75rem;
  --lh-2xl: 2rem;
  --lh-3xl: 2.25rem;
  --lh-4xl: 2.5rem;
  --lh-5xl: 1;
  --lh-6xl: 1;
  --lh-7xl: 1;

  /* ---- spacing ---- */
  --space-0: 0;
  --space-25: 2px;
  --space-50: 4px;
  --space-75: 8px;
  --space-100: 12px;
  --space-200: 16px;
  --space-300: 24px;
  --space-400: 32px;
  --space-500: 40px;
  --space-600: 48px;
  --space-700: 64px;
  --space-800: 80px;
  --space-900: 96px;

  /* ---- radius ---- */
  --radius-sm: 2px;
  --radius: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  --radius-3xl: 24px;

  /* ---- motion ---- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --shell-max: 1200px;
}


/* ==========================================================================
   Light theme · warm neutral (Claude style base)
   ========================================================================== */

html[data-theme='light'] {
  --c-black: #faf9f5;
  --c-surface-1: #ffffff;
  --c-surface-2: #f5f3ec;
  --c-surface-3: #ebe8de;
  --c-surface-4: #e2dfd3;

  --c-ink: #1f1e1d;
  --c-ink-soft: #55534b;
  --c-ink-dim: #6e6b61;

  --c-brand: #3a5fa8;
  --c-brand-soft: #2f4e8c;
  --c-brand-deep: #24406f;

  --c-line: rgba(31, 30, 29, 0.1);
  --c-line-strong: rgba(31, 30, 29, 0.22);

  --nav-bg: rgba(250, 249, 245, 0.78);
  --nav-panel-bg: rgba(250, 249, 245, 0.98);
  --hero-grad-from: #000000;
  --hero-grad-to: #666666;
  --accent-wash: rgba(58, 95, 168, 0.08);
  --accent-wash-strong: rgba(58, 95, 168, 0.12);
  --btn-primary-fg: #ffffff;
  --btn-solid-bg: #1f1e1d;
  --btn-solid-bg-hover: #3a3934;
  --btn-solid-fg: #faf9f5;
  --select-fg: #ffffff;
  --error: #b3261e;
  --footer-bg: #f4f2ea;
  --section-alt: #f4f2ea;
  --phase-bg: #ffffff;
  --dot-ring: rgba(58, 95, 168, 0.4);
  --dot-ring-fade: rgba(58, 95, 168, 0);

  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-bg-hover: rgba(255, 255, 255, 0.86);
  --glass-bg-strong: rgba(255, 255, 255, 0.94);
  --glass-border: rgba(31, 30, 29, 0.09);
  --glass-border-hover: rgba(31, 30, 29, 0.18);
  --glass-inner: rgba(255, 255, 255, 0.9);
  --glass-blur: 18px;
  --field-bg: rgba(255, 255, 255, 0.72);
  --field-bg-focus: #ffffff;
  --glass-elevation: 0 1px 2px rgba(31, 30, 29, 0.04), 0 12px 32px rgba(31, 30, 29, 0.06);
  color-scheme: light;
}

html[data-theme='light'] .brand__mark path:first-child {
  fill: #3a5fa8;
}

html[data-theme='light'] .brand__mark circle,
html[data-theme='light'] .brand__mark path:nth-child(2) {
  fill: #faf9f5;
}

html[data-theme='light'] .btn--primary {
  box-shadow: 0 1px 2px rgba(31, 30, 29, 0.14);
}

html[data-theme='light'] .nav {
  box-shadow: inset 0 1px 0 var(--glass-inner), inset 0 0 0 1px var(--glass-border),
    0 8px 32px rgba(31, 30, 29, 0.08);
}

html[data-theme='light'] .nav__toggle-lines span {
  background: var(--c-ink);
}

html[data-theme='light'] .tagline__word {
  opacity: 0.24;
}

html[data-theme='light'] .footer__bottom {
  color: var(--c-ink-dim);
}

/* 主题切换按钮 */
.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-75);
}

.nav__theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--radius-2xl);
  background: var(--c-surface-2);
  color: var(--c-ink-soft);
  cursor: pointer;
  transition: background-color 300ms var(--ease-out), color 300ms var(--ease-out),
    transform 500ms var(--ease-out);
}

.nav__theme:hover {
  background: var(--c-surface-3);
  color: var(--c-ink);
}

.nav__theme:active {
  transform: scale(0.96);
}

.nav__theme svg {
  width: 18px;
  height: 18px;
}

html[data-theme='dark'] .icon-sun,
html[data-theme='light'] .icon-moon {
  display: none;
}

body {
  transition: background-color 300ms var(--ease-out), color 300ms var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  body {
    transition: none;
  }
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--c-black);
  color: var(--c-ink);
  font-family: 'Geist', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei',
    'Noto Sans SC', system-ui, sans-serif;
  font-size: var(--text-base);
  line-height: var(--lh-base);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

::selection {
  background: var(--c-brand);
  color: var(--select-fg);
}

:focus-visible {
  outline: 2px solid var(--c-brand-soft);
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* ==========================================================================
   Text styles
   ========================================================================== */

.heading-1 {
  font-size: var(--text-4xl);
  line-height: var(--lh-4xl);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.heading-2 {
  font-size: var(--text-3xl);
  line-height: var(--lh-3xl);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.heading-3 {
  font-size: var(--text-2xl);
  line-height: var(--lh-2xl);
  font-weight: 600;
  text-wrap: balance;
}

.heading-4 {
  font-size: var(--text-xl);
  line-height: var(--lh-xl);
  font-weight: 600;
  text-wrap: balance;
}

.heading-5 {
  font-size: var(--text-lg);
  line-height: var(--lh-lg);
  font-weight: 600;
  text-wrap: balance;
}

.heading-6 {
  font-size: var(--text-base);
  line-height: var(--lh-base);
  font-weight: 600;
  text-wrap: balance;
}

.title-1 {
  font-size: var(--text-xl);
  line-height: var(--lh-xl);
  font-weight: 500;
}

.title-2 {
  font-size: var(--text-lg);
  line-height: var(--lh-lg);
  font-weight: 500;
}

.title-3 {
  font-size: var(--text-base);
  line-height: var(--lh-base);
  font-weight: 500;
}

.title-4 {
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
  font-weight: 500;
}

.title-5 {
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  font-weight: 500;
}

.body-1 {
  font-size: var(--text-base);
  line-height: var(--lh-base);
  font-weight: 600;
}

.body-2 {
  font-size: var(--text-base);
  line-height: var(--lh-base);
  font-weight: 500;
}

.body-3 {
  font-size: var(--text-base);
  line-height: var(--lh-base);
  font-weight: 400;
  text-wrap: pretty;
}

.body-4 {
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
  font-weight: 600;
}

.body-5 {
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
  font-weight: 500;
}

.body-6 {
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
  font-weight: 400;
  text-wrap: pretty;
}

.button-lg {
  font-size: var(--text-lg);
  line-height: var(--lh-lg);
  font-weight: 600;
}

.button-md {
  font-size: var(--text-base);
  line-height: var(--lh-base);
  font-weight: 600;
}

.button-sm {
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
  font-weight: 600;
}

.button-xsm {
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  font-weight: 600;
}

.caption-1 {
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
  font-weight: 500;
}

.caption-2 {
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
  font-weight: 400;
}

.caption-3 {
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  font-weight: 600;
}

.caption-4 {
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  font-weight: 500;
}

.caption-5 {
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  font-weight: 400;
}

@media (min-width: 768px) {
  .heading-1 {
    font-size: var(--text-5xl);
    line-height: var(--lh-5xl);
  }

  .heading-2 {
    font-size: var(--text-4xl);
    line-height: var(--lh-4xl);
  }
}

@media (min-width: 1024px) {
  .heading-1 {
    font-size: var(--text-5xl);
    line-height: var(--lh-5xl);
  }

  .heading-2 {
    font-size: var(--text-4xl);
    line-height: var(--lh-4xl);
  }
}

@media (min-width: 1200px) {
  .heading-1 {
    font-size: var(--text-6xl);
    line-height: var(--lh-6xl);
  }

  .heading-2 {
    font-size: var(--text-5xl);
    line-height: var(--lh-5xl);
  }
}


/* ==========================================================================
   Glass surface
   ========================================================================== */

.glass,
.card,
.product,
.step,
.faq__item,
.form,
.stack {
  background: var(--glass-bg);
  box-shadow: inset 0 1px 0 var(--glass-inner), inset 0 0 0 1px var(--glass-border), var(--glass-elevation);
  backdrop-filter: blur(var(--glass-blur)) saturate(150%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(150%);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass,
  .card,
  .product,
  .step,
  .faq__item,
  .form,
  .stack {
    background: var(--c-surface-1);
  }
}

/* 移动端关掉大面积模糊，只保留半透明与高光边，帧率优先 */
@media (max-width: 767px) {
  .card,
  .product,
  .step,
  .faq__item,
  .form,
  .stack {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--glass-bg-strong);
  }
}

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--space-300);
}

.section {
  padding-block: var(--space-700);
  position: relative;
}

@media (min-width: 1024px) {
  .section {
    padding-block: var(--space-900);
  }
}

.section--surface {
  background: var(--section-alt);
}

.section-head {
  max-width: 680px;
  display: grid;
  gap: var(--space-200);
  margin-bottom: var(--space-600);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-75);
  color: var(--c-brand);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.eyebrow::before {
  content: '';
  width: var(--space-300);
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.lede {
  color: var(--c-ink-soft);
  max-width: 640px;
}

.skip-link {
  position: absolute;
  top: -200px;
  left: var(--space-300);
  z-index: 200;
  background: var(--skip-bg);
  color: var(--skip-fg);
  padding: var(--space-75) var(--space-100);
  border-radius: var(--radius-lg);
  transition: top 300ms var(--ease-out);
}

.skip-link:focus {
  top: var(--space-200);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--c-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-75);
  padding: var(--space-75) var(--space-100);
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 500ms var(--ease-out), background-color 300ms var(--ease-out),
    color 300ms var(--ease-out), opacity 300ms var(--ease-out);
}

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

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  --btn-bg: var(--c-brand);
  --btn-fg: var(--btn-primary-fg);
}

.btn--primary:hover {
  --btn-bg: var(--c-brand-soft);
}

.btn--solid {
  --btn-bg: var(--btn-solid-bg);
  --btn-fg: var(--btn-solid-fg);
}

.btn--solid:hover {
  --btn-bg: var(--btn-solid-bg-hover);
}

.btn--ghost {
  --btn-fg: var(--c-ink);
  box-shadow: inset 0 0 0 1px var(--c-line-strong);
}

.btn--ghost:hover {
  --btn-bg: var(--c-surface-2);
}

.btn--lg {
  border-radius: var(--radius-xl);
}

.btn[aria-disabled='true'],
.btn:disabled {
  opacity: 0.45;
  pointer-events: none;
}

.btn__icon {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform 500ms var(--ease-out);
}

.btn:hover .btn__icon {
  transform: translateX(2px);
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: fixed;
  top: var(--space-200);
  left: 0;
  right: 0;
  margin-inline: auto;
  z-index: 100;
  width: calc(100% - var(--space-600));
  width: min(var(--shell-max), calc(100% - var(--space-600)));
  padding: var(--space-75);
  border-radius: var(--radius-3xl);
  background: var(--nav-bg);
  box-shadow: inset 0 1px 0 var(--glass-inner), inset 0 0 0 1px var(--glass-border), 0 8px 32px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  transition: background-color 300ms var(--ease-out);
}

.nav__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-300);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-100);
  border-radius: var(--radius-2xl);
  padding: var(--space-50);
}

.brand__mark {
  width: 28px;
  height: 28px;
  flex: none;
}

.brand__word {
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
  font-weight: 600;
  letter-spacing: 0.22em;
}

.brand__cn {
  color: var(--c-ink-dim);
  letter-spacing: 0.08em;
}

.nav__links {
  display: none;
  align-items: center;
  gap: var(--space-25);
}

.nav__link {
  padding: var(--space-75) var(--space-100);
  border-radius: var(--radius-2xl);
  color: var(--c-ink-soft);
  transition: color 300ms var(--ease-out), background-color 300ms var(--ease-out);
}

.nav__link:hover {
  color: var(--c-ink);
  background: var(--c-surface-2);
}

.nav__link[aria-current='true'] {
  color: var(--c-ink);
}

.nav__cta {
  display: none;
}

.nav__cta .btn {
  border-radius: var(--radius-2xl);
}

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--radius-2xl);
  background: var(--c-surface-2);
  cursor: pointer;
}

.nav__toggle-lines {
  position: relative;
  width: 18px;
  height: 12px;
}

.nav__toggle-lines span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--c-ink);
  border-radius: var(--radius-sm);
  transition: transform 500ms var(--ease-out), opacity 300ms var(--ease-out);
}

.nav__toggle-lines span:nth-child(1) {
  top: 0;
}

.nav__toggle-lines span:nth-child(2) {
  bottom: 0;
}

.nav[data-open='true'] .nav__toggle-lines span:nth-child(1) {
  transform: translateY(5.25px) rotate(45deg);
}

.nav[data-open='true'] .nav__toggle-lines span:nth-child(2) {
  transform: translateY(-5.25px) rotate(-45deg);
}

.nav__panel {
  display: none;
}

@media (min-width: 1024px) {
  .nav__links,
  .nav__cta {
    display: flex;
  }

  .nav__toggle {
    display: none;
  }
}

/* Mobile full height panel */
@media (max-width: 1023px) {
  .nav[data-open='true'] {
    top: 0;
    width: 100%;
    max-width: none;
    padding: 0;
    border-radius: 0;
    background: var(--nav-panel-bg);
    backdrop-filter: blur(32px) saturate(170%);
    -webkit-backdrop-filter: blur(32px) saturate(170%);
  }

  .nav[data-open='true'] .nav__bar {
    padding: var(--space-200) var(--space-300);
  }

  .nav[data-open='true'] .nav__panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--space-500);
    min-height: calc(100vh - 72px);
    min-height: calc(100dvh - 72px);
    padding: var(--space-500) var(--space-300) var(--space-400);
  }

  .nav__panel-links {
    display: grid;
    gap: var(--space-50);
  }

  .nav__panel-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-200) var(--space-100);
    border-radius: var(--radius-2xl);
    color: var(--c-ink);
    opacity: 0;
    transform: translateY(var(--space-300));
    transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
  }

  .nav__panel-link:hover {
    background: var(--c-surface-2);
  }

  .nav[data-open='true'] .nav__panel-link {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(var(--i) * 60ms);
  }

  .nav__panel-foot {
    display: grid;
    gap: var(--space-200);
  }
}

body[data-menu='open'] {
  overflow: hidden;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding-top: calc(var(--space-900) + var(--space-700));
  padding-bottom: var(--space-700);
  overflow: hidden;
}

@media (min-width: 1024px) {
  .hero {
    padding-top: calc(var(--space-900) + var(--space-800));
    padding-bottom: var(--space-900);
  }
}

.hero__grid {
  display: grid;
  gap: var(--space-600);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: var(--space-600);
  }
}

@media (min-width: 1200px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) 440px;
  }
}

.hero__copy {
  display: grid;
  gap: var(--space-300);
  max-width: 680px;
}

.hero__title {
  background: linear-gradient(90deg, var(--hero-grad-from) 0%, var(--hero-grad-to) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  max-width: 680px;
}

.hero__sub {
  color: var(--c-ink-soft);
  max-width: 680px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-200);
  margin-top: var(--space-50);
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-100) var(--space-200);
  margin-top: var(--space-100);
  color: var(--c-ink-dim);
}

.hero__proof li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-75);
}

.hero__proof li + li::before {
  content: '';
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--c-ink-dim);
  margin-right: var(--space-75);
}

/* Architecture card */
.stack {
  border-radius: var(--radius-2xl);
  padding: var(--space-300);
  display: grid;
  gap: var(--space-200);
}

.stack__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--c-ink-dim);
}

.stack__live {
  display: inline-flex;
  align-items: center;
  gap: var(--space-75);
  color: var(--c-brand);
}

.stack__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 var(--dot-ring);
  animation: pulse 2600ms var(--ease-out) infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 var(--dot-ring);
  }
  70% {
    box-shadow: 0 0 0 8px var(--dot-ring-fade);
  }
  100% {
    box-shadow: 0 0 0 0 var(--dot-ring-fade);
  }
}

@media (prefers-reduced-motion: reduce) {
  .stack__dot {
    animation: none;
  }
}

.stack__layer {
  border-radius: var(--radius-lg);
  background: var(--c-surface-2);
  padding: var(--space-200);
  display: grid;
  gap: var(--space-100);
}

.stack__layer-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--c-ink-soft);
}

.stack__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-75);
}

.chip {
  padding: var(--space-25) var(--space-75);
  border-radius: var(--radius-md);
  background: var(--c-surface-3);
  color: var(--c-ink-soft);
}

.chip--accent {
  background: var(--accent-wash-strong);
  color: var(--c-brand-soft);
}


/* Hero 背景图 + 平面遮罩（不用渐变做底色，只用 mask 做边缘过渡） */
.hero__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  overflow: hidden;
  background-color: #000000;
  background-image: url('../img/hero-night-1200.jpg');
  background-repeat: no-repeat;
  background-position: center 44%;
  background-size: cover;
  -webkit-mask-image: -webkit-linear-gradient(top, #000 0%, #000 58%, transparent 97%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 58%, transparent 97%);
}

/* 移动端用更小的图，避免老内核拉 1.2MB 大图 */
@media (max-width: 767px) {
  .hero__media {
    background-image: url('../img/hero-night-800.jpg');
    background-position: center 42%;
  }
}

@media (min-width: 1440px) {
  .hero__media {
    background-image: url('../img/hero-night-1800.jpg');
  }
}

.hero__media::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.72);
}

html[data-theme='light'] .hero__media {
  background-color: #faf9f5;
}

html[data-theme='light'] .hero__media::after {
  background: rgba(250, 249, 245, 0.86);
}

.hero .shell {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Fact strip
   ========================================================================== */

.facts {
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  background: var(--section-alt);
}

.facts__grid {
  display: grid;
  gap: var(--space-300);
  padding-block: var(--space-400);
}

@media (min-width: 768px) {
  .facts__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-400);
  }
}

.fact {
  display: grid;
  gap: var(--space-50);
}

.fact__label {
  color: var(--c-brand);
}

.fact__value {
  color: var(--c-ink);
}

.fact__note {
  color: var(--c-ink-dim);
}

/* ==========================================================================
   Capability cards
   ========================================================================== */

.cards {
  display: grid;
  gap: var(--space-200);
}

@media (min-width: 768px) {
  .cards--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .cards--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  position: relative;
  display: grid;
  gap: var(--space-200);
  align-content: start;
  padding: var(--space-300);
  border-radius: var(--radius-2xl);
  transition: transform 500ms var(--ease-out), box-shadow 500ms var(--ease-out),
    background-color 500ms var(--ease-out);
}

.card:hover {
  transform: translateY(-2px);
  background: var(--glass-bg-hover);
  box-shadow: inset 0 1px 0 var(--glass-inner), inset 0 0 0 1px var(--glass-border-hover), var(--glass-elevation);
}

.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-200);
}

.card__icon {
  width: 40px;
  height: 40px;
  display: grid;
  align-items: center;
  justify-items: center;
  border-radius: var(--radius-lg);
  background: var(--accent-wash);
  color: var(--c-brand-soft);
}

.card__icon svg {
  width: 22px;
  height: 22px;
}

.card__index {
  color: var(--c-ink-dim);
  font-variant-numeric: tabular-nums;
}

.card__title {
  color: var(--c-ink);
}

.card__body {
  color: var(--c-ink-soft);
}

.card__list {
  display: grid;
  gap: var(--space-75);
  margin-top: var(--space-50);
}

.card__list li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: var(--space-75);
  align-items: start;
  color: var(--c-ink-soft);
}

.card__list svg {
  width: 16px;
  height: 16px;
  margin-top: var(--space-25);
  color: var(--c-brand);
}

/* ==========================================================================
   Tagline reveal
   ========================================================================== */

.tagline {
  padding-block: var(--space-700);
}

@media (min-width: 1024px) {
  .tagline {
    padding-block: var(--space-900);
  }
}

.tagline__text {
  max-width: 680px;
  font-size: var(--text-3xl);
  line-height: var(--lh-3xl);
  font-weight: 600;
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  .tagline__text {
    font-size: var(--text-4xl);
    line-height: var(--lh-4xl);
  }
}

@media (min-width: 1024px) {
  .tagline__text {
    font-size: var(--text-5xl);
    line-height: var(--lh-5xl);
  }
}

.tagline__word {
  color: var(--c-ink);
  opacity: 0.28;
  transition: opacity 700ms var(--ease-out);
}

.tagline__word.is-lit {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .tagline__word {
    opacity: 1;
    transition: none;
  }
}

.tagline__foot {
  margin-top: var(--space-300);
  color: var(--c-ink-dim);
}

/* ==========================================================================
   Product rows
   ========================================================================== */

.products {
  display: grid;
  gap: var(--space-200);
}

.product {
  display: grid;
  gap: var(--space-300);
  padding: var(--space-300);
  border-radius: var(--radius-2xl);
  transition: box-shadow 500ms var(--ease-out), background-color 500ms var(--ease-out);
}

.product:hover {
  background: var(--glass-bg-hover);
  box-shadow: inset 0 1px 0 var(--glass-inner), inset 0 0 0 1px var(--glass-border-hover), var(--glass-elevation);
}

@media (min-width: 900px) {
  .product {
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: var(--space-500);
    padding: var(--space-400);
    align-items: start;
  }
}

.product__lead {
  display: grid;
  gap: var(--space-100);
}

.product__kicker {
  color: var(--c-brand);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.product__desc {
  color: var(--c-ink-soft);
}

.product__cols {
  display: grid;
  gap: var(--space-300);
}

@media (min-width: 640px) {
  .product__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.spec {
  display: grid;
  gap: var(--space-75);
}

.spec__label {
  color: var(--c-ink-dim);
  letter-spacing: 0.08em;
}

.spec__value {
  color: var(--c-ink-soft);
}

/* ==========================================================================
   Security block
   ========================================================================== */

.security {
  display: grid;
  gap: var(--space-200);
}

@media (min-width: 900px) {
  .security {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.phase {
  display: grid;
  gap: var(--space-200);
  padding: var(--space-300);
  border-radius: var(--radius-2xl);
  background: var(--phase-bg);
  box-shadow: inset 0 0 0 1px var(--c-line);
}

.phase__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-lg);
  background: var(--accent-wash);
  color: var(--c-brand-soft);
}

.phase__body {
  color: var(--c-ink-soft);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-75);
  margin-top: var(--space-100);
}

.tag {
  padding: var(--space-25) var(--space-75);
  border-radius: var(--radius-md);
  background: var(--c-surface-2);
  color: var(--c-ink-soft);
}

/* ==========================================================================
   Process
   ========================================================================== */

.steps {
  display: grid;
  gap: var(--space-200);
  counter-reset: step;
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.step {
  display: grid;
  gap: var(--space-200);
  padding: var(--space-300);
  border-radius: var(--radius-2xl);
}

.step__num {
  color: var(--c-brand);
  letter-spacing: 0.16em;
}

.step__body {
  color: var(--c-ink-soft);
}

.step__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-75);
  padding-top: var(--space-100);
  color: var(--c-ink-dim);
}

.step__meta span {
  padding: var(--space-25) var(--space-75);
  border-radius: var(--radius-md);
  background: var(--c-surface-2);
}


/* ==========================================================================
   About
   ========================================================================== */

.about__grid {
  display: grid;
  gap: var(--space-500);
  align-items: center;
  margin-bottom: var(--space-600);
}

@media (min-width: 1024px) {
  .about__grid {
    grid-template-columns: minmax(0, 1fr) 440px;
    gap: var(--space-700);
  }
}

.about__media {
  margin: 0;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--glass-border), var(--glass-elevation);
}

.about__media img {
  width: 100%;
  height: auto;
  display: block;
}

html[data-theme='dark'] .about__media img {
  filter: saturate(0.82) brightness(0.92);
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq {
  display: grid;
  gap: var(--space-100);
  max-width: 880px;
}

.faq__item {
  border-radius: var(--radius-2xl);
  overflow: hidden;
}

.faq__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-300);
  width: 100%;
  padding: var(--space-300);
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background-color 300ms var(--ease-out);
}

.faq__trigger:hover {
  background: var(--c-surface-2);
}

.faq__sign {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--c-brand);
}

.faq__sign::before,
.faq__sign::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 1.5px;
  background: currentColor;
  border-radius: var(--radius-sm);
  transform-origin: center;
  transition: transform 500ms var(--ease-out), opacity 300ms var(--ease-out);
}

.faq__sign::after {
  transform: rotate(90deg);
}

.faq__item[data-open='true'] .faq__sign::after {
  transform: rotate(0deg);
  opacity: 0;
}

.faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 500ms var(--ease-out);
}

.faq__item[data-open='true'] .faq__panel {
  grid-template-rows: 1fr;
}

.faq__panel-inner {
  overflow: hidden;
}

.faq__answer {
  padding: 0 var(--space-300) var(--space-300);
  color: var(--c-ink-soft);
  max-width: 680px;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
  display: grid;
  gap: var(--space-600);
}

@media (min-width: 1024px) {
  .contact {
    grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
    gap: var(--space-700);
    align-items: start;
  }
}

.contact__info {
  display: grid;
  gap: var(--space-300);
  align-content: start;
}

.contact__list {
  display: grid;
  gap: var(--space-200);
}

.contact__row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: var(--space-100);
  align-items: start;
  color: var(--c-ink-soft);
}

.contact__row svg {
  width: 18px;
  height: 18px;
  margin-top: var(--space-25);
  color: var(--c-brand);
}

.contact__row a {
  color: var(--c-ink);
  transition: color 300ms var(--ease-out);
}

.contact__row a:hover {
  color: var(--c-brand-soft);
}

.form {
  display: grid;
  gap: var(--space-200);
  padding: var(--space-300);
  border-radius: var(--radius-2xl);
}

.field {
  display: grid;
  gap: var(--space-75);
}

.field__label {
  color: var(--c-ink-soft);
}

.field__control {
  width: 100%;
  padding: var(--space-75) var(--space-100);
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--field-bg);
  box-shadow: inset 0 1px 0 var(--glass-inner), inset 0 0 0 1px var(--glass-border);
  color: var(--c-ink);
  transition: box-shadow 300ms var(--ease-out), background-color 300ms var(--ease-out);
}

.field__control::placeholder {
  color: var(--c-ink-dim);
}

.field__control:hover {
  background: var(--field-bg-focus);
}

.field__control:focus {
  outline: none;
  background: var(--field-bg-focus);
  box-shadow: inset 0 1px 0 var(--glass-inner), inset 0 0 0 1px var(--c-brand);
}

textarea.field__control {
  min-height: 120px;
  resize: vertical;
}

.field__error {
  color: var(--error);
  min-height: 0;
}

.field[data-invalid='true'] .field__control {
  box-shadow: inset 0 0 0 1px var(--error);
}

.form__note {
  color: var(--c-ink-dim);
}

.form__status {
  display: none;
  padding: var(--space-100);
  border-radius: var(--radius-lg);
  background: var(--accent-wash);
  color: var(--c-brand-soft);
}

.form__status[data-visible='true'] {
  display: block;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  border-top: 1px solid var(--c-line);
  background: var(--footer-bg);
  padding-block: var(--space-600) var(--space-400);
}

.footer__grid {
  display: grid;
  gap: var(--space-500);
}

@media (min-width: 900px) {
  .footer__grid {
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  }
}

.footer__brand {
  display: grid;
  gap: var(--space-200);
  max-width: 360px;
}

.footer__desc {
  color: var(--c-ink-dim);
}

.footer__col {
  display: grid;
  gap: var(--space-100);
  align-content: start;
}

.footer__col-title {
  color: var(--c-ink-dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer__link {
  color: var(--c-ink-soft);
  width: fit-content;
  transition: color 300ms var(--ease-out);
}

.footer__link:hover {
  color: var(--c-ink);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-100) var(--space-300);
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-600);
  padding-top: var(--space-300);
  border-top: 1px solid var(--c-line);
  color: var(--c-ink-dim);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-200);
}

/* ==========================================================================
   Reveal animation
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(var(--space-400));
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   Simple pages (404 / legal)
   ========================================================================== */

.page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.page__main {
  padding-top: calc(var(--space-900) + var(--space-300));
  padding-bottom: var(--space-700);
}

.prose {
  display: grid;
  gap: var(--space-300);
  max-width: 720px;
  color: var(--c-ink-soft);
}

.prose h2 {
  color: var(--c-ink);
  margin-top: var(--space-300);
}

.prose ul {
  display: grid;
  gap: var(--space-75);
  list-style: disc;
  padding-left: var(--space-300);
}

.center-block {
  display: grid;
  gap: var(--space-300);
  justify-items: start;
  max-width: 560px;
}

.code {
  font-variant-numeric: tabular-nums;
  color: var(--c-brand);
  letter-spacing: 0.16em;
}
/* Tagline lines break at meaningful points */
.tagline__line {
  display: block;
}
