/* Klarpix — tokens 与 ios/Sources/DesignSystem/Theme.swift 同源 */
:root {
  --bg: #121217;            /* Theme.bg */
  --surface: #1c1c22;
  --elevated: #2a2a33;      /* Theme.surfaceElevated */
  --text: #f2f2f5;
  --secondary: rgba(255, 255, 255, 0.62);   /* Theme.textSecondary */
  --tertiary: rgba(255, 255, 255, 0.4);
  --accent: #3fb3ad;        /* Theme.accent */
  --accent-muted: rgba(63, 179, 173, 0.16); /* Theme.accentMuted */
  --on-accent: rgba(0, 0, 0, 0.9);          /* Theme.textOnAccent */
  --outline: rgba(255, 255, 255, 0.08);     /* Theme.outline */
  --radius-card: 20px;      /* Theme.Radius.card */
  --radius-hero: 24px;      /* Theme.Radius.hero */
  --measure: 720px;
  --wide: 1024px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- 导航 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 70px;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  background: rgba(18, 18, 23, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--outline);
}

.site-header .brand { display: inline-flex; align-items: center; }
.site-header .brand img { height: 33px; width: auto; display: block; }

.site-header nav {
  display: flex;
  gap: clamp(1rem, 3vw, 1.75rem);
  font-size: 0.875rem;
}

.site-header nav a { color: var(--secondary); transition: color 0.15s ease; }
.site-header nav a:hover { color: var(--text); text-decoration: none; }
.site-header nav a[aria-current="page"] { color: var(--text); }

/* ---------- 首页 ---------- */

.hero {
  position: relative;
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(4.5rem, 12vh, 8rem) clamp(1.25rem, 4vw, 2.5rem) clamp(3rem, 8vh, 5rem);
  text-align: center;
  overflow: hidden;
}

.hero::before {
  /* 修复光:hero 顶部青绿辉光,呼应星芒 */
  content: "";
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(63, 179, 173, 0.14), transparent 60%);
  pointer-events: none;
}

.hero > * { position: relative; }

.hero h1 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 auto 1.25rem;
  max-width: 18ch;
}

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

.hero .lead {
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  color: var(--secondary);
  max-width: 44ch;
  margin: 0 auto 2.25rem;
}

.cta-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
}

.pill.primary { background: var(--accent); color: var(--on-accent); }
.pill.primary:hover { text-decoration: none; filter: brightness(1.08); }
.pill.ghost { background: var(--accent-muted); color: var(--accent); }
.pill.ghost:hover { text-decoration: none; background: rgba(63, 179, 173, 0.24); }

.coming-soon {
  font-size: 0.8125rem;
  color: var(--tertiary);
  margin-top: 1rem;
}

/* ---------- 特性卡 ---------- */

.features {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem) clamp(3rem, 8vh, 5rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-card);
  padding: 1.75rem 1.5rem;
}

.card .glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-muted);
  color: var(--accent);
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
}

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

/* ---------- 定价 ---------- */

.pricing {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem) clamp(3.5rem, 9vh, 6rem);
  text-align: center;
}

.pricing h2, .privacy-strip h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.pricing .sub { color: var(--secondary); margin: 0 auto 2.25rem; max-width: 52ch; }

.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: left;
}

.tier {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-card);
  padding: 1.75rem 1.5rem;
}

.tier .name { font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin: 0 0 0.5rem; }
.tier .price { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 0.25rem; }
.tier .price small { font-size: 0.9375rem; font-weight: 500; color: var(--secondary); }
.tier p { font-size: 0.9375rem; color: var(--secondary); margin: 0.5rem 0 0; }

.honesty { margin-top: 1.75rem; font-size: 0.9375rem; color: var(--tertiary); }

/* ---------- 隐私横条 ---------- */

.privacy-strip {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem) clamp(4rem, 10vh, 6.5rem);
}

.privacy-strip .inner {
  background: linear-gradient(180deg, var(--surface), var(--bg));
  border: 1px solid var(--outline);
  border-radius: var(--radius-hero);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}

.privacy-strip .inner > p { color: var(--secondary); max-width: 56ch; margin: 0 auto 1.5rem; }

/* ---------- 法务/文档页 ---------- */

main.doc {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 4.5rem) clamp(1.25rem, 4vw, 2rem) 4rem;
}

.doc h1 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 1.5rem;
}

.doc h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--outline);
}

.doc h2:first-of-type { border-top: 0; padding-top: 0; }

.doc h3 { font-size: 1.0625rem; font-weight: 600; margin: 1.75rem 0 0.5rem; }

.doc p, .doc li { color: var(--secondary); font-size: 1rem; }
.doc ul { padding-left: 1.25rem; }
.doc li { margin: 0.35rem 0; }
.doc strong { color: var(--text); font-weight: 600; }
.doc a { text-decoration: underline; text-decoration-color: rgba(63, 179, 173, 0.4); }

.lang-switch { font-size: 0.8125rem; color: var(--tertiary); margin: 0 0 2rem; }

/* ---------- 页脚 ---------- */

.site-footer {
  border-top: 1px solid var(--outline);
  padding: 2rem clamp(1.25rem, 4vw, 2.5rem) 3rem;
}

.site-footer .inner {
  max-width: var(--wide);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--tertiary);
}

.site-footer a { color: var(--secondary); }
.site-footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-footer p { margin: 0; }

@media (max-width: 760px) {
  .features, .tiers { grid-template-columns: 1fr; }
  .site-footer .inner { flex-direction: column; }
}
