:root {
  --color-ink: #14213d;
  --color-ink-soft: #41516c;
  --color-muted: #68758c;
  --color-brand: #2557d6;
  --color-brand-strong: #163b98;
  --color-accent: #0f9f8f;
  --color-success: #16865a;
  --color-warning: #b7791f;
  --color-danger: #b42318;
  --color-info: #2f6fed;
  --color-bg: #f6f8fb;
  --color-surface: #ffffff;
  --color-surface-alt: #eef3f8;
  --color-border: #dce3ee;
  --shadow-soft: 0 18px 50px rgba(20, 33, 61, 0.1);
  --shadow-card: 0 8px 26px rgba(20, 33, 61, 0.08);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --container: 1180px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;
  --duration: 160ms;
  --z-header: 40;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(37, 87, 214, 0.28);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: calc(var(--z-header) + 1);
  background: var(--color-ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(14px);
}

.site-header__inner,
.site-footer__inner,
.site-footer__bottom,
.hero,
.page-hero,
.section,
.final-cta,
.breadcrumb {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.site-header__inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-ink);
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark__logo {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
}

.brand-mark__text {
  display: grid;
  gap: 1px;
}

.brand-mark__text strong {
  font-size: 18px;
  letter-spacing: 0;
}

.brand-mark__text small {
  color: var(--color-muted);
  font-size: 12px;
}

.dual-copy {
  display: grid;
  gap: 4px;
}

.dual-copy__zh {
  color: inherit;
}

.dual-copy__en {
  color: var(--color-muted);
  font-size: 0.86em;
  font-weight: 500;
}

.language-note {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.site-nav__link,
.nav-menu > summary {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  color: var(--color-ink-soft);
  font-weight: 650;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--duration), color var(--duration);
}

.site-nav__link:hover,
.site-nav__link.is-active,
.nav-menu[open] > summary,
.nav-menu > summary:hover {
  background: var(--color-surface-alt);
  color: var(--color-ink);
}

.nav-menu {
  position: relative;
}

.nav-menu > summary {
  list-style: none;
}

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

.nav-menu__panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 260px;
  padding: 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 4px;
}

.nav-menu__panel a {
  display: grid;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-ink);
  font-weight: 650;
  text-decoration: none;
}

.nav-menu__panel a:hover {
  background: var(--color-bg);
}

.nav-card small {
  margin-top: 3px;
  color: var(--color-muted);
  font-weight: 500;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 750;
  text-decoration: none;
  transition: transform var(--duration), background var(--duration), border-color var(--duration), color var(--duration);
}

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

.button--primary {
  background: var(--color-brand);
  color: #fff;
}

.button--primary:hover {
  background: var(--color-brand-strong);
  color: #fff;
}

.button--secondary {
  background: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-ink);
}

.button--ghost {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-ink);
}

.button--large {
  min-height: 48px;
  padding: 0 20px;
}

.button--full {
  width: 100%;
}

.mobile-nav {
  display: none;
  margin-left: auto;
}

.mobile-nav > summary {
  list-style: none;
  padding: 9px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-weight: 750;
}

.mobile-nav__panel {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 68px;
  padding: 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 6px;
}

.mobile-nav:not([open]) .mobile-nav__panel {
  display: none;
}

.mobile-nav__panel a {
  padding: 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
}

.mobile-nav__cta {
  background: var(--color-brand);
  color: #fff;
}

.hero,
.page-hero {
  padding-top: 86px;
  padding-bottom: 72px;
}

.hero--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
  gap: 48px;
  align-items: center;
}

.hero--split > *,
.product-grid > *,
.step-grid > *,
.feature-grid > *,
.pricing-grid > *,
.card-row > * {
  min-width: 0;
}

.hero__content,
.page-hero {
  max-width: 820px;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--color-brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
  font-weight: 820;
  color: var(--color-ink);
}

.page-hero h1 {
  font-size: clamp(38px, 5vw, 62px);
}

.hero__lead,
.page-hero p,
.section__header p,
.final-cta p {
  margin-top: 22px;
  color: var(--color-ink-soft);
  font-size: 18px;
  max-width: 760px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero__note {
  margin-top: 16px;
  color: var(--color-muted);
  font-size: 14px;
}

.product-frame {
  background: #172033;
  color: #e8eef8;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  width: 100%;
  min-width: 0;
}

.product-frame--wide {
  max-width: 980px;
  margin: 0 auto;
}

.product-frame__bar {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  background: #111827;
}

.product-frame__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
}

.product-frame__bar span:nth-child(2) {
  background: #ffbd2e;
}

.product-frame__bar span:nth-child(3) {
  background: #28c840;
}

.product-frame__body {
  padding: 22px;
  display: grid;
  gap: 18px;
}

.ui-panel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 16px;
}

.ui-panel p {
  color: #b9c6d8;
  margin-top: 6px;
}

.progress-line {
  margin-top: 14px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.progress-line span {
  display: block;
  height: 100%;
  background: var(--color-accent);
}

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

.ui-grid--three {
  grid-template-columns: repeat(3, 1fr);
}

.ui-grid div {
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
}

.ui-grid small {
  display: block;
  color: #aab7ca;
  margin-bottom: 5px;
}

.mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.mini-table th,
.mini-table td {
  padding: 11px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}

.mini-table th {
  color: #aab7ca;
  font-weight: 700;
}

.section {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}

.section--tight {
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
}

.section--muted {
  max-width: none;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section--muted > * {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

.section__header {
  max-width: 760px;
  margin-bottom: 34px;
}

.section__header h2,
.final-cta h2,
.compliance-block h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
  font-weight: 820;
}

.trust-strip,
.step-grid,
.product-grid,
.feature-grid,
.pricing-grid,
.card-row {
  display: grid;
  gap: 18px;
}

.trust-strip {
  grid-template-columns: repeat(4, 1fr);
  padding: 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.trust-strip div {
  padding: 12px;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip span {
  margin-top: 5px;
  color: var(--color-muted);
}

.step-grid {
  grid-template-columns: repeat(3, 1fr);
}

.step-grid article,
.product-card,
.feature-tile,
.pricing-card,
.scenario-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.step-grid span {
  color: var(--color-accent);
  font-weight: 850;
}

.step-grid h3,
.product-card h3,
.feature-tile h3,
.pricing-card h2 {
  margin: 10px 0 8px;
  font-size: 22px;
  font-weight: 800;
}

.step-grid p,
.product-card p,
.feature-tile p,
.pricing-card p,
.scenario-card span {
  color: var(--color-ink-soft);
}

.product-grid {
  grid-template-columns: repeat(2, 1fr);
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.product-card ul {
  margin-top: 18px;
  padding-left: 18px;
}

.product-card li {
  margin: 8px 0;
  list-style: disc;
  color: var(--color-ink-soft);
}

.badge {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--color-brand-strong);
  background: #eaf0ff;
  font-size: 12px;
  font-weight: 800;
}

.badge--green {
  color: #0b665d;
  background: #e4f7f3;
}

.text-link,
.feature-tile a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--color-brand);
  font-weight: 800;
  text-decoration: none;
}

.card-row {
  grid-template-columns: repeat(4, 1fr);
}

.scenario-card {
  display: grid;
  gap: 8px;
  text-decoration: none;
}

.compliance-block {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
  padding: 34px;
  background: #172033;
  color: #fff;
  border-radius: var(--radius-lg);
}

.compliance-block p {
  color: #c9d4e5;
  margin-top: 16px;
  font-size: 17px;
}

.compliance-links {
  display: grid;
  gap: 10px;
}

.compliance-links a {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 750;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 900px;
}

.faq-list details {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0 18px;
}

.faq-list summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 800;
}

.faq-list p {
  margin: 0;
  padding: 0 0 18px;
  color: var(--color-ink-soft);
}

.final-cta {
  margin-top: var(--space-7);
  margin-bottom: var(--space-8);
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
  background: var(--color-ink);
  color: #fff;
  border-radius: var(--radius-lg);
  text-align: center;
}

.final-cta p {
  margin-left: auto;
  margin-right: auto;
  color: #d7dfed;
}

.final-cta .button {
  margin-top: 24px;
}

.pricing-grid {
  grid-template-columns: repeat(4, 1fr);
}

.pricing-card {
  display: grid;
  gap: 16px;
}

.pricing-card--featured {
  border-color: rgba(37, 87, 214, 0.4);
  box-shadow: 0 18px 42px rgba(37, 87, 214, 0.14);
}

.price-line span {
  display: block;
  font-size: 42px;
  font-weight: 850;
}

.price-line small {
  color: var(--color-muted);
}

.comparison-table {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 16px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}

.comparison-table th {
  background: var(--color-surface-alt);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  gap: 22px;
  padding: 42px 20px;
  background: linear-gradient(180deg, #f7faff 0%, #eef3f8 100%);
}

.auth-brand {
  margin-bottom: 8px;
}

.auth-card {
  width: min(100%, 460px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 24px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 24px;
}

.auth-tab {
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  min-height: 42px;
  border-radius: var(--radius-sm);
  font-weight: 800;
}

.auth-tab[aria-selected="true"] {
  color: #fff;
  background: var(--color-brand);
  border-color: var(--color-brand);
}

.auth-panel h1,
.auth-panel h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 850;
}

.auth-panel p {
  color: var(--color-ink-soft);
  margin-top: 8px;
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.auth-form label {
  display: grid;
  gap: 7px;
  font-weight: 750;
}

.input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0 13px;
  background: #fff;
  color: var(--color-ink);
}

.password-field {
  position: relative;
}

.password-field .input {
  padding-right: 68px;
}

.password-toggle {
  position: absolute;
  right: 6px;
  top: 6px;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--color-surface-alt);
  color: var(--color-ink);
  font-weight: 800;
}

.form-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-size: 14px;
}

.checkbox-line {
  display: inline-flex !important;
  grid-template-columns: none !important;
  align-items: center;
}

.auth-terms {
  font-size: 13px;
}

.auth-proof {
  width: min(100%, 460px);
  color: var(--color-ink-soft);
}

.auth-proof ul {
  margin-top: 10px;
  padding-left: 18px;
}

.translation-preview {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.message {
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.message small {
  display: block;
  color: var(--color-muted);
  margin-bottom: 6px;
}

.message--translated {
  border-color: rgba(15, 159, 143, 0.4);
  background: #f0fbf8;
}

.breadcrumb {
  padding-top: 28px;
  display: flex;
  gap: 10px;
  color: var(--color-muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--color-brand);
  text-decoration: none;
}

.site-footer {
  background: #111827;
  color: #dce5f2;
  margin-top: 48px;
}

.site-footer__inner {
  padding-top: 54px;
  padding-bottom: 42px;
  display: grid;
  grid-template-columns: 0.9fr 1.6fr;
  gap: 48px;
}

.brand-mark--footer {
  color: #fff;
}

.site-footer__brand p {
  margin-top: 18px;
  color: #aebbd0;
  max-width: 430px;
}

.site-footer__links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.site-footer__links div {
  display: grid;
  align-content: start;
  gap: 9px;
}

.site-footer__links h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 850;
}

.site-footer__links a,
.site-footer__bottom a {
  color: #b7c4d8;
  text-decoration: none;
}

.site-footer__links a:hover,
.site-footer__bottom a:hover {
  color: #fff;
}

.site-footer__bottom {
  padding-top: 18px;
  padding-bottom: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #aebbd0;
}

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

@media (max-width: 1024px) {
  .site-nav,
  .site-header__actions {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .hero--split,
  .product-grid,
  .compliance-block,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .pricing-grid,
  .trust-strip,
  .card-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .site-header__inner {
    min-height: 66px;
  }

  .brand-mark__text small {
    display: none;
  }

  .hero,
  .page-hero,
  .section,
  .final-cta {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero,
  .page-hero {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 40px;
    line-height: 1.03;
  }

  .hero__lead,
  .page-hero p,
  .section__header p {
    font-size: 16px;
  }

  .button--large,
  .hero__actions .button {
    width: 100%;
  }

  .product-frame__body {
    padding: 14px;
  }

  .ui-grid,
  .ui-grid--three,
  .trust-strip,
  .step-grid,
  .feature-grid,
  .pricing-grid,
  .card-row,
  .site-footer__links {
    grid-template-columns: 1fr;
  }

  .mini-table {
    min-width: 0;
    width: 100%;
    table-layout: fixed;
    font-size: 12px;
  }

  .product-frame {
    max-width: 100%;
    overflow-x: auto;
  }

  .product-frame__body,
  .ui-panel,
  .ui-grid {
    min-width: 0;
    width: 100%;
  }

  .mini-table th,
  .mini-table td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mini-table th:nth-child(3),
  .mini-table td:nth-child(3) {
    display: none;
  }

  .final-cta {
    margin-left: 18px;
    margin-right: 18px;
  }

  .site-footer__bottom {
    flex-direction: column;
  }

  .form-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
