:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #141416;
  --muted: #6c6c72;
  --body: #3a3a40;
  --line: #e6e3dc;
  --accent: #3d5afe;
  --accent-soft: #eef1ff;
  --radius: 18px;
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Noto Sans SC",
    "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.lang-toggle {
  font-family: inherit;
  font-size: 0.84rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 15px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.lang-toggle:hover {
  border-color: var(--ink);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 12vw, 140px) 24px clamp(64px, 10vw, 118px);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}

.hero::before {
  width: 720px;
  height: 720px;
  right: -240px;
  top: -300px;
  background: radial-gradient(circle at center, rgba(61, 90, 254, 0.16), rgba(61, 90, 254, 0) 62%);
}

.hero::after {
  width: 520px;
  height: 520px;
  left: -200px;
  bottom: -280px;
  background: radial-gradient(circle at center, rgba(255, 138, 76, 0.14), rgba(255, 138, 76, 0) 65%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.hero-title {
  margin: 0 0 24px;
  font-size: clamp(2.9rem, 8vw, 5.4rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero-title .accent {
  color: var(--accent);
}

.tagline {
  max-width: 660px;
  margin: 0 0 16px;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.lede {
  max-width: 560px;
  margin: 0 0 40px;
  color: var(--muted);
  font-size: 1rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  background: #000;
}

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

.btn-ghost:hover {
  border-color: var(--ink);
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(56px, 8vw, 96px) 24px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 76px;
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(36px, 5vw, 52px);
}

.section-title {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-sub {
  margin: 0;
  color: var(--muted);
}

.section-sub + .section-sub {
  margin-top: 12px;
}

/* ---------- Product cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px 32px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #d8d4cb;
  box-shadow: 0 20px 42px -26px rgba(20, 20, 22, 0.3);
}

.card-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

/* ---------- Values ---------- */

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 34px;
}

.value {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.value-num {
  display: block;
  margin-bottom: 14px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.value h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 600;
}

.value p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

/* ---------- Contact ---------- */

.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(32px, 6vw, 60px);
  border-radius: 24px;
  background: var(--ink);
  color: #fff;
}

.contact-card .eyebrow {
  color: rgba(255, 255, 255, 0.55);
}

.contact-title {
  max-width: 520px;
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.contact-text {
  max-width: 480px;
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.68);
}

.contact-note {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

.email-link {
  padding-bottom: 4px;
  color: #fff;
  font-size: clamp(1.02rem, 2.2vw, 1.32rem);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: border-color 0.2s ease;
  word-break: break-all;
}

.email-link:hover {
  border-bottom-color: #fff;
}

/* ---------- Legal documents ---------- */

.doc {
  padding: clamp(48px, 9vw, 92px) 24px clamp(56px, 9vw, 104px);
}

.doc-inner {
  max-width: 720px;
  margin: 0 auto;
}

.doc-title {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4.6vw, 2.9rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.doc-updated {
  margin: 0 0 16px;
  font-size: 0.86rem;
  color: var(--muted);
}

.doc-intro {
  margin: 0 0 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
  font-size: 1.04rem;
  color: var(--body);
}

.doc h2 {
  margin: 36px 0 10px;
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.doc p {
  margin: 0 0 12px;
  color: var(--body);
}

.doc ul {
  margin: 0 0 12px;
  padding-left: 20px;
  color: var(--body);
}

.doc li {
  margin-bottom: 6px;
}

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

.doc a:hover {
  text-decoration: underline;
}

.doc-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 44px;
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
}

.doc-back:hover {
  color: var(--ink);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 32px 24px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.86rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--ink);
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .header-inner {
    padding: 14px 20px;
  }

  .hero,
  .section,
  .doc,
  .site-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero::before {
    right: -360px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
