:root {
  --bg: #0b0f14;
  --bg-soft: #111922;
  --card: #141b24;
  --line: #243140;
  --text: #eef3f8;
  --muted: #8a98a8;
  --muted-2: #5d6b7a;
  --accent: #46e6a3;
  --accent-2: #5aa9ff;
  --max: 880px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* subtle film grain / glow */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(900px 500px at 70% -10%, rgba(70, 230, 163, 0.08), transparent 60%),
    radial-gradient(700px 500px at 0% 20%, rgba(90, 169, 255, 0.06), transparent 55%);
}

a { color: inherit; text-decoration: none; }

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 24px;
  backdrop-filter: blur(8px);
}
.nav-logo { font-size: 20px; font-weight: 800; letter-spacing: 0.5px; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 26px; font-size: 15px; }
.nav-links a { color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

main { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* HERO */
.hero { padding: 90px 0 60px; }
.hero-kicker {
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(40px, 8vw, 76px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 28px;
}
.hero-sub {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 19px);
  margin-bottom: 36px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.15s, background 0.2s, border-color 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #04130c; }
.btn-primary:hover { background: #5cf0b1; }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }

/* STATS */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat b { font-size: clamp(24px, 4vw, 34px); font-weight: 800; letter-spacing: -0.5px; }
.stat b span { font-size: 15px; color: var(--muted); font-weight: 600; }
.stat-label { color: var(--muted); font-size: 13px; }

/* SECTIONS */
.section { padding: 84px 0; border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 40px; }
.section-no { color: var(--accent); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.section-head h2 { font-size: clamp(24px, 4.5vw, 36px); font-weight: 800; letter-spacing: -0.8px; line-height: 1.2; }

.about-grid { display: flex; flex-direction: column; gap: 20px; max-width: 660px; }
.about-grid p { color: var(--muted); font-size: 17px; }
.about-points { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.about-points li { color: var(--text); font-size: 16px; padding-left: 18px; position: relative; }
.about-points li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.about-points b { color: var(--accent); }

/* WORK */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.work-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  transition: transform 0.18s, border-color 0.2s, background 0.2s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.work-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.work-card--feature {
  grid-column: 1 / -1;
  background: linear-gradient(150deg, #15232e, #111922);
}
.work-card-top { display: flex; align-items: center; justify-content: space-between; }
.work-tag {
  font-size: 12px;
  color: var(--accent);
  border: 1px solid rgba(70, 230, 163, 0.35);
  border-radius: 999px;
  padding: 3px 12px;
}
.work-arrow { color: var(--accent); font-size: 20px; }
.work-card h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.4px; }
.work-card p { color: var(--muted); font-size: 15px; }
.work-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.work-meta span {
  font-size: 12px;
  color: var(--muted-2);
  background: var(--bg-soft);
  border-radius: 6px;
  padding: 3px 10px;
}

/* WRITING / TOPICS */
.topic-list { list-style: none; display: flex; flex-direction: column; }
.topic-list li {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.topic-list li:first-child { border-top: none; }
.topic-idx { color: var(--accent); font-size: 18px; padding-top: 2px; }
.topic-list h4 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.topic-list p { color: var(--muted); font-size: 15px; }

/* CONTACT */
.section--contact { text-align: left; }
.contact-lead { color: var(--muted); font-size: 18px; max-width: 560px; margin-bottom: 28px; }
.contact-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.contact-fine { color: var(--muted-2); font-size: 13px; }

/* FOOT */
.foot {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 30px 24px 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted-2);
  font-size: 13px;
}
.foot a:hover { color: var(--text); }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 720px) {
  .nav-links { gap: 16px; font-size: 14px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 24px 18px; }
  .work-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .foot { flex-direction: column; gap: 10px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---- lead-gen additions ---- */

.nav-cta {
  color: #04130c !important;
  background: var(--accent);
  padding: 7px 16px;
  border-radius: 999px;
  font-weight: 700;
}
.nav-cta:hover { background: #5cf0b1; }

.section-lead { color: var(--muted); font-size: 16px; max-width: 620px; margin: -22px 0 30px; }

/* CONTACT focus block */
.section--contact { border-bottom: 1px solid var(--line); }
.contact-wrap {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 36px;
  align-items: start;
}
.qr-card {
  background: #000;
  color: #1a1a1a;
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.qr-fullcard { width: 100%; height: auto; display: block; border-radius: 20px; }
.qr-id { display: flex; align-items: center; gap: 12px; }
.qr-avatar { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.qr-id b { display: block; font-size: 18px; color: #111; }
.qr-id span { font-size: 13px; color: #888; }
.qr-wxid { margin: 14px 0 10px; font-size: 22px; font-weight: 800; color: #fa5151; }
.qr-img-box { background: #fff; border-radius: 12px; display: flex; justify-content: center; }
.qr-img { width: 100%; max-width: 280px; height: auto; display: block; }
.qr-tip { text-align: center; color: #999; font-size: 13px; margin-top: 10px; }

.contact-side { display: flex; flex-direction: column; gap: 18px; }
.contact-lead { color: var(--muted); font-size: 17px; max-width: 520px; }
.contact-channels { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.contact-channels li { display: flex; align-items: center; gap: 14px; font-size: 16px; }
.ch-k {
  width: 56px;
  color: var(--muted-2);
  font-size: 13px;
  flex-shrink: 0;
}
.contact-channels a { color: var(--accent); }
.contact-channels a:hover { text-decoration: underline; }
.ch-v b { color: var(--text); }
.copy-btn {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  transition: border-color 0.2s;
}
.copy-btn:hover { border-color: var(--accent); }
.copy-btn span { color: var(--accent); font-size: 12px; }

/* TOOLS grid */
.tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.tool-card--feature {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  background: linear-gradient(150deg, #15232e, #111922);
  border: 1px solid rgba(70, 230, 163, 0.35);
  border-radius: 16px;
  padding: 24px;
  transition: transform 0.18s, border-color 0.2s;
}
.tool-card--feature:hover { border-color: var(--accent); transform: translateY(-3px); }
.tool-card--feature .tool-top b { font-size: 19px; }
.tool-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.18s, border-color 0.2s;
}
.tool-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.tool-top { display: flex; justify-content: space-between; align-items: center; }
.tool-top b { font-size: 17px; }
.tool-arrow { color: var(--accent); }
.tool-card p { color: var(--muted); font-size: 14px; }
.tool-tag {
  align-self: flex-start;
  font-size: 12px;
  color: var(--accent);
  border: 1px solid rgba(70, 230, 163, 0.3);
  border-radius: 999px;
  padding: 2px 10px;
}

/* POST list */
.post-list { list-style: none; display: flex; flex-direction: column; }
.post-list li { border-top: 1px solid var(--line); }
.post-list li:first-child { border-top: none; }
.post-list a { display: flex; gap: 16px; align-items: baseline; padding: 18px 0; }
.post-list a:hover .post-title { color: var(--accent); }
.post-date { color: var(--muted-2); font-size: 13px; width: 92px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.post-title { font-size: 17px; font-weight: 600; transition: color 0.2s; }
.post-desc { color: var(--muted); font-size: 14px; margin-top: 2px; }

/* FOLLOW grid */
.follow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.follow-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.follow-card b { font-size: 16px; }
.follow-card span { color: var(--muted); font-size: 13px; }
.follow-card--cta { border-color: rgba(70, 230, 163, 0.4); }
.follow-card--cta:hover { border-color: var(--accent); }
.follow-card--cta span { color: var(--accent); }

/* toast */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--accent);
  color: #04130c;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 50;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 720px) {
  .contact-wrap { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: 1fr; }
  .follow-grid { grid-template-columns: repeat(2, 1fr); }
}
