:root {
  --bg: #f7f5f0;
  --bg-2: #efebe3;
  --fg: #161513;
  --muted: #5e5a53;
  --line: rgba(22, 21, 19, 0.1);
  --line-2: rgba(22, 21, 19, 0.16);
  --surface: #fffcf7;
  --accent: #0d6b5c;
  --accent-2: #148f7c;
  --accent-bg: rgba(13, 107, 92, 0.08);
  --accent-fg: #0a4f44;
  --shadow: 0 1px 1px rgba(22, 21, 19, 0.03), 0 8px 24px -16px rgba(22, 21, 19, 0.12);
  --sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Source Han Sans SC",
    "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --radius: 14px;
  --max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12110f;
    --bg-2: #1a1916;
    --fg: #f0ece4;
    --muted: #a8a39a;
    --line: rgba(240, 236, 228, 0.1);
    --line-2: rgba(240, 236, 228, 0.16);
    --surface: #1c1b18;
    --accent: #5ecab6;
    --accent-2: #7ad9c7;
    --accent-bg: rgba(94, 202, 182, 0.1);
    --accent-fg: #b7efe4;
    --shadow: 0 1px 1px rgba(0, 0, 0, 0.2), 0 12px 32px -16px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg);
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(13, 107, 92, 0.07), transparent 55%),
    var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html[lang="en"] body { line-height: 1.6; }

html[lang="zh-CN"] .lang-en { display: none !important; }
html[lang="en"] .lang-zh { display: none !important; }

a { color: var(--accent-fg); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

/* --- nav --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}

.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand:hover { color: inherit; }

.mark {
  width: 28px;
  height: 28px;
  flex: none;
  color: var(--accent);
}

.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name strong { font-size: 14px; font-weight: 650; }
.brand-name span { font-size: 11px; color: var(--muted); font-weight: 500; }

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

.nav-links {
  display: flex;
  gap: 16px;
  font-size: 13.5px;
  color: var(--muted);
}

.nav-links a { color: inherit; text-decoration: none; }
.nav-links a:hover { color: var(--fg); }

.lang {
  display: inline-flex;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  overflow: hidden;
}

.lang button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.04em;
  padding: 6px 10px;
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  background: var(--fg);
  color: var(--bg);
}

/* --- hero --- */
.hero { padding: 88px 0 80px; }
.hero-in {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}
.hero-mark {
  width: min(280px, 32vw);
  height: min(280px, 32vw);
  color: var(--accent);
  opacity: 0.88;
}
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-mark { display: none; }
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}

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

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

html[lang="zh-CN"] .hero h1 {
  letter-spacing: -0.01em;
  line-height: 1.2;
  font-weight: 600;
}

.lead {
  margin-top: 22px;
  max-width: 38em;
  font-size: 18px;
  color: var(--muted);
  line-height: 1.75;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--fg);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 550;
  box-shadow: var(--shadow);
}

.btn:hover {
  color: var(--fg);
  border-color: var(--fg);
  text-decoration: none;
}

.btn-primary {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

.btn-primary:hover { color: var(--bg); background: #2a2825; }

@media (prefers-color-scheme: dark) {
  .btn-primary:hover { background: #f7f3ea; color: #12110f; }
}

/* --- sections --- */
.sec {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.sec h2 {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}

/* --- products --- */
.featured {
  display: block;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.featured h3 {
  font-size: 28px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.badge {
  display: inline-block;
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-fg);
  background: var(--accent-bg);
  border-radius: 999px;
  padding: 5px 9px;
  margin-bottom: 12px;
}

.badge-soon {
  color: var(--muted);
  background: color-mix(in srgb, var(--muted) 12%, transparent);
}

.product-copy { color: var(--muted); margin: 12px 0 0; max-width: 42em; }
.product-copy + .product-copy { margin-top: 8px; }

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
  font: 13.5px/1 var(--mono);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.badge { align-self: flex-start; }

.card h3 { font-size: 20px; letter-spacing: -0.02em; }
.card .product-copy { flex: 1; font-size: 14.5px; }

/* --- links --- */
.social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: 15px;
}

.social a { text-decoration: none; color: var(--fg); font-weight: 550; }
.social a:hover { color: var(--accent); }
.social a span { color: var(--muted); font-weight: 400; font-family: var(--mono); font-size: 13px; margin-left: 8px; }

/* --- footer --- */
footer {
  padding: 28px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.footer-in {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

@media (max-width: 860px) {
  .wrap { width: min(var(--max), calc(100% - 32px)); }
  .nav-links { display: none; }
  .hero { padding: 56px 0 52px; }
  .featured { padding: 24px; }
  .grid { grid-template-columns: 1fr; }
  .sec { padding: 52px 0; }
}

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

.cmd {
  display: block;
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--bg-2);
  border-radius: 8px;
  font: 13px/1.5 var(--mono);
  color: var(--fg);
  overflow-x: auto;
  white-space: nowrap;
}
