/* ========================================
   SnapMark — Notion-inspired design system
   ======================================== */

:root {
  --bg: #f7faf9;
  --paper: #ffffff;
  --ink: #1a2420;
  --ink-secondary: #37544c;
  --muted: #6b8a82;
  --faint: #a3bbb5;
  --brand: #5B9E97;
  --brand-2: #6DB3AB;
  --brand-deep: #488880;
  --brand-light: #e8f5f2;
  --brand-surface: #f0f9f7;
  --line: #dce9e5;
  --line-light: #eaf2ef;
  --link: #488880;
  --maxw: 1080px;
  --content-maxw: 780px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.04), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(72,136,128,.08);
  --shadow-lg: 0 12px 40px rgba(72,136,128,.10);
  --nav-h: 60px;
  --transition: .2s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); }

body {
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue",
    "Noto Sans SC", "PingFang SC", sans-serif;
  line-height: 1.7;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brand); }

img { max-width: 100%; display: block; }

/* ---- Top navbar ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(247,250,249,.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-light);
}

.navbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-deep);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -.01em;
}

.navbar-brand svg {
  width: 28px;
  height: 28px;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.navbar-links a {
  color: var(--ink-secondary);
  font-size: .9rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  transition: all var(--transition);
  text-decoration: none;
}

.navbar-links a:hover,
.navbar-links a.active {
  background: var(--brand-light);
  color: var(--brand-deep);
}

.lang-switch {
  display: flex;
  gap: 2px;
  background: var(--line-light);
  border-radius: 8px;
  padding: 3px;
}

.lang-switch button {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.lang-switch button.active {
  background: var(--paper);
  color: var(--brand-deep);
  box-shadow: var(--shadow-sm);
}

/* ---- Layout ---- */
.page-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Hero (Landing) ---- */
.hero-landing {
  padding: 80px 0 64px;
  text-align: center;
}

.hero-landing .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-light);
  color: var(--brand-deep);
  font-size: .82rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
  letter-spacing: .02em;
}

.hero-landing h1 {
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -.025em;
  margin-bottom: 16px;
}

.hero-landing h1 .brand-text {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-landing .hero-desc {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-deep);
  color: #fff;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(72,136,128,.2);
}

.btn-primary:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(72,136,128,.28);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  color: var(--brand-deep);
  border: 1px solid var(--line);
  padding: 12px 28px;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
}

.btn-secondary:hover {
  border-color: var(--brand);
  background: var(--brand-light);
  transform: translateY(-1px);
}

.btn-coming-soon {
  pointer-events: none;
  opacity: .75;
}

/* ---- Features grid ---- */
.features-section {
  padding: 48px 0 64px;
}

.section-label {
  text-align: center;
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--brand);
  margin-bottom: 12px;
}

.section-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 48px;
  letter-spacing: -.015em;
}

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

.feature-card {
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: var(--line);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.3rem;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 650;
  color: var(--ink);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ---- CTA banner ---- */
.cta-banner {
  margin: 0 0 64px;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
  color: #fff;
}

.cta-banner h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-banner p {
  opacity: .85;
  font-size: 1rem;
  margin-bottom: 28px;
}

.cta-banner .btn-primary {
  background: #fff;
  color: var(--brand-deep);
}

.cta-banner .btn-primary:hover {
  background: #f0faf8;
  color: var(--brand-deep);
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}

/* ---- Article pages (privacy, support, etc.) ---- */
.article-hero {
  padding: 56px 0 32px;
  text-align: center;
  border-bottom: 1px solid var(--line-light);
  margin-bottom: 40px;
}

.article-hero h1 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 750;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -.02em;
}

.article-hero .article-subtitle {
  font-size: 1rem;
  color: var(--muted);
}

.article-content {
  max-width: var(--content-maxw);
  margin: 0 auto;
  padding-bottom: 64px;
}

.article-card {
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 36px 32px;
  margin-bottom: 24px;
}

.article-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-light);
}

.article-card h3 {
  font-size: 1rem;
  font-weight: 650;
  color: var(--ink-secondary);
  margin: 24px 0 8px;
}

.article-card h3:first-child { margin-top: 0; }

.article-card p {
  font-size: .94rem;
  color: var(--ink-secondary);
  margin-bottom: 12px;
  line-height: 1.75;
}

.article-card ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.article-card li {
  font-size: .94rem;
  color: var(--ink-secondary);
  margin-bottom: 6px;
  line-height: 1.7;
}

.article-card li::marker {
  color: var(--brand);
}

.article-card strong {
  color: var(--ink);
  font-weight: 600;
}

.article-card a {
  color: var(--brand-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
}

.article-card a:hover {
  text-decoration-color: var(--brand);
}

/* contact / key-value list */
.kvs { list-style: none; padding: 0; }
.kvs li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line-light);
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.kvs li:last-child { border-bottom: none; }
.kvs strong { min-width: 80px; flex-shrink: 0; color: var(--ink); font-weight: 600; font-size: .9rem; }
.kvs a { font-size: .9rem; }

.note-box {
  margin-top: 16px;
  border-left: 3px solid var(--brand-2);
  background: var(--brand-surface);
  padding: 14px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .9rem;
  color: var(--ink-secondary);
  line-height: 1.65;
}

/* ---- Actions row ---- */
.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--line-light);
  padding: 32px 0;
  margin-top: 0;
}

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

.footer-left {
  font-size: .85rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  font-size: .85rem;
  color: var(--muted);
  text-decoration: none;
}

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

/* ---- Divider ---- */
.divider {
  width: 100%;
  height: 1px;
  background: var(--line-light);
  margin: 48px 0;
}

/* ---- i18n toggle ---- */
[lang="zh"] { display: none !important; }
body.zh [lang="zh"] { display: block !important; }
body.zh [lang="en"] { display: none !important; }

/* inline lang spans within flex/inline contexts */
body.zh span[lang="en"] { display: none !important; }
span[lang="zh"] { display: none !important; }
body.zh span[lang="zh"] { display: inline !important; }

/* preserve special display types when visible */
body.zh .hero-badge[lang="zh"] { display: inline-flex !important; }
body.zh .hero-actions[lang="zh"] { display: flex !important; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .navbar-inner { padding: 0 16px; }
  .navbar-links a { padding: 6px 10px; font-size: .84rem; }
  .page-wrap { padding: 0 16px; }

  .hero-landing { padding: 56px 0 48px; }
  .hero-landing h1 { font-size: 2rem; }
  .hero-landing .hero-desc { font-size: 1rem; }

  .features-grid { grid-template-columns: 1fr; gap: 14px; }
  .feature-card { padding: 22px 20px; }

  .cta-banner { padding: 36px 24px; margin: 0 0 48px; }

  .article-hero { padding: 40px 0 24px; }
  .article-card { padding: 24px 20px; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .navbar-links { display: none; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-primary, .btn-secondary { width: 100%; max-width: 280px; justify-content: center; }
}
