:root {
  color-scheme: light;
  --ink: #262c38;
  --muted: #667180;
  --accent: #087f83;
  --brand-body: #474b60;
  --brand-leaf: #52c2cc;
  --line: #e0e5ec;
  --paper: #f5f7fa;
  --radius: 18px;
  --header-height: 72px;
  font: 16px/1.6 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); }
body, h1, h2, h3, p, figure { margin: 0; }
body { min-width: 320px; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { border: 0; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
img { max-width: 100%; height: auto; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
::selection { background: #c8edf0; color: #202a36; }
:where(button, a, summary, input, textarea, select, [tabindex]):focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.section { padding-block: clamp(72px, 8vw, 120px); }
h2 { font-size: clamp(2rem, 3.2vw, 3.125rem); font-weight: 680; line-height: 1.25; letter-spacing: -.045em; text-wrap: balance; }
h3 { font-size: 1.25rem; font-weight: 650; line-height: 1.45; letter-spacing: -.025em; }
/* Shared navigation across home, pricing and documentation. */
.site-header {
  position: sticky; z-index: 30; top: 0; height: var(--header-height);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding-inline: max(28px, calc((100vw - 1264px) / 2));
  background: rgb(255 255 255 / 94%); border-bottom: 1px solid rgb(224 229 236 / 82%); backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; white-space: nowrap; font-size: 24px; font-weight: 730; line-height: 1; letter-spacing: -.055em; color: var(--ink); }
.brand b { font-weight: inherit; }
.brand img { display: block; flex: none; width: 29px; height: 38px; object-fit: contain; }
.main-nav, .header-actions, .lang, .pill { display: flex; align-items: center; }
.main-nav { height: 100%; gap: 8px; }
.main-nav a { position: relative; display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 17px; border-radius: 7px; color: var(--muted); font-size: 14px; white-space: nowrap; transition: color .18s ease; }
.main-nav a:hover { color: var(--ink); }
.main-nav .current { color: var(--accent); font-weight: 620; }
.main-nav .current::after { content: ''; position: absolute; height: 2px; left: 17px; right: 17px; bottom: 3px; background: currentColor; border-radius: 2px; }
.header-actions { justify-content: flex-end; gap: 15px; font-size: 14px; white-space: nowrap; }
.lang { gap: 1px; padding: 3px; border: 1px solid #e8ecf1; border-radius: 9px; background: #f6f7f9; }
.lang button { padding: 5px 8px; min-height: 28px; border-radius: 6px; background: transparent; font-size: 14px; line-height: 1.3; color: var(--muted); }
.lang button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px #1e293b10; }
.pill { justify-content: center; width: fit-content; gap: 10px; border-radius: 11px; background: var(--ink); color: #fff; font-weight: 600; transition: background .18s ease, box-shadow .18s ease, transform .18s ease; }
.pill:hover { background: #3e4658; box-shadow: 0 5px 14px #26304416; transform: translateY(-1px); }
.nav-cta { min-height: 40px; padding: 9px 20px; border-radius: 999px; }
.download-icon { display: none; }
.signin { padding: 9px 3px; background: transparent; color: #505a69; font-size: 14px; }
.signin:hover, .hero-secondary:hover, .text-link:hover { color: var(--accent); }
.header-actions [data-account-link] { min-width: 0; max-width: clamp(8rem, 17vw, 16rem); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#mobile-nav [data-account-link] { overflow-wrap: anywhere; }
.menu-btn, #mobile-nav { display: none; }
/* The optional guided tour keeps its existing behavior. */
.site-tour { position: fixed; bottom: max(20px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 45; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 8px; max-width: calc(100% - 24px); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 32px #23344818; background: #fff; color: var(--ink); white-space: nowrap; font-size: 14px; }
.site-tour button, .site-tour a { padding: 8px 12px; border-radius: 8px; line-height: 1.5; min-height: 38px; }
.site-tour button { background: transparent; }
.site-tour button:hover { background: var(--paper); }
.site-tour button:disabled { color: #8c96a3; background: transparent; }
.site-tour a { background: var(--ink); color: #fff; }
.site-tour span { font-variant-numeric: tabular-nums; }
.tour-active .juzi-footer { padding-bottom: 95px; }
@media (max-width: 1100px) {
  .site-header { grid-template-columns: auto 1fr auto; padding-inline: 28px; gap: 16px; }
  .site-header .main-nav { justify-self: center; }
  .main-nav { gap: 0; }
  .main-nav a { padding-inline: 13px; }
  .header-actions { gap: 11px; }
  .wrap { width: calc(100% - 64px); }
}
@media (max-width: 840px) {
  :root { --header-height: 68px; }
  .site-header { grid-template-columns: 1fr auto; padding-inline: 24px; }
  .brand { font-size: 23px; gap: 9px; }
  .brand img { width: 26px; height: 35px; }
  .site-header .main-nav, .header-actions > :not(.menu-btn) { display: none; }
  .menu-btn { display: grid; align-content: center; justify-content: center; gap: 5px; width: 44px; height: 44px; border: 1px solid #e9edf2; border-radius: 10px; background: #fff; }
  .menu-btn span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform .18s ease, opacity .18s ease; }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(6.5px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-6.5px) rotate(-45deg); }
  #mobile-nav:not([hidden]) { position: absolute; right: 18px; top: calc(100% + 10px); display: flex; flex-direction: column; align-items: stretch; gap: 3px; width: min(calc(100vw - 36px), 360px); max-height: calc(100dvh - 100px); overflow-y: auto; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 16px 46px #25344d16; }
  #mobile-nav > a { padding: 11px 13px; border-radius: 8px; }
  #mobile-nav > a:hover, #mobile-nav > a.current { background: var(--paper); color: var(--accent); }
  #mobile-nav .lang { margin: 10px 12px; width: fit-content; }
  #mobile-nav a:last-child { margin-top: 5px; text-align: center; background: var(--ink); color: #fff; border-radius: 10px; }
}
@media (max-width: 600px) {
  .site-header { padding-inline: 20px; }
  .wrap { width: calc(100% - 40px); }
  .section { padding-block: 64px; }
  .site-tour { bottom: max(12px, env(safe-area-inset-bottom)); flex-wrap: wrap; gap: 4px; padding: 6px; width: max-content; }
  .site-tour button, .site-tour a { padding: 8px; }
  .site-tour span { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
