/* ============================================================
   Refine · 发文精炼系统
   Design system — Vercel / Linear class
   Light surface · monochrome · mono accents · 8pt scale
   ============================================================ */

:root {
  /* Surfaces */
  --bg:            #ffffff;
  --bg-soft:       #fafafa;
  --bg-mute:       #f5f5f5;
  --bg-invert:     #0a0a0a;

  /* Text */
  --fg:            #0a0a0a;
  --fg-2:          #404040;
  --fg-3:          #737373;
  --fg-on-invert:  #fafafa;
  --fg-on-invert-2:#a3a3a3;

  /* Lines */
  --line:          #e5e5e5;
  --line-soft:     #f0f0f0;
  --line-strong:   #d4d4d4;

  /* Brand (from logo: ink teal #083858 + warm #f8c8a8) */
  --brand:         #083858;
  --brand-2:       #002e4e;
  --brand-soft:    #e6ebee;
  --brand-line:    #cdd7dd;
  --brand-fg-on:   #ffffff;

  /* Accent (sparingly) */
  --accent:        #f8c8a8;   /* warm tone from logo secondary */

  /* Status */
  --ok:            #16a34a;
  --warn:          #d97706;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;

  /* Shadow (almost zero, by design) */
  --sh-1: 0 1px 0 rgba(0,0,0,0.04);
  --sh-2: 0 1px 2px rgba(0,0,0,0.05), 0 0 0 1px rgba(0,0,0,0.04);

  /* Spacing — 8pt */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Type scale */
  --fs-display: clamp(36px, 5.2vw, 64px);
  --fs-h1:      clamp(28px, 3.6vw, 44px);
  --fs-h2:      clamp(22px, 2.2vw, 32px);
  --fs-h3:      clamp(17px, 1.3vw, 20px);
  --fs-body:    15px;
  --fs-small:   13px;
  --fs-mono:    12px;

  /* Fonts */
  --f-sans: 'Geist', 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --f-mono: 'JetBrains Mono', 'Geist Mono', 'SFMono-Regular', 'Consolas', 'Liberation Mono', monospace;
  --f-cjk:  'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;

  /* Container */
  --container:    1200px;
  --container-2:  1080px;
}

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

html, body { margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  font-feature-settings: 'ss01', 'cv11', 'tnum';
}

body {
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
}

img, svg, video { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }

/* ---------- Layout primitives ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-6);
}
@media (max-width: 560px) {
  .container { padding: 0 var(--s-4); }
}

.section {
  padding: var(--s-8) 0;
  border-top: 1px solid var(--line-soft);
}
.section--first { border-top: 0; padding-top: var(--s-7); }
.section--tight { padding: var(--s-6) 0; }

.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4, .grid-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr; }
  .section { padding: var(--s-7) 0; }
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
h1 { font-size: var(--fs-h1); letter-spacing: -0.03em; line-height: 1.2; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.025em; line-height: 1.2; }
h3 { font-size: var(--fs-h3); line-height: 1.3; }
p  { color: var(--fg-2); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--fg-3);
}

.lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 60ch;
}

.mono   { font-family: var(--f-mono); font-feature-settings: 'tnum' 1; }
.tnum   { font-variant-numeric: tabular-nums; }
.cjk    { font-family: var(--f-cjk); }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.78);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar__inner {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-weight: 600;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.brand__mark {
  width: 22px; height: 22px;
  display: inline-grid; place-items: center;
  background: var(--fg);
  color: var(--fg-on-invert);
  border-radius: 6px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 700;
}
.brand__logo {
  height: 42px;
  width: auto;
  display: block;
}
.brand__name { font-size: 15px; }
.brand__sub  { color: var(--fg-3); font-size: 12px; font-family: var(--f-mono); letter-spacing: 0.04em; }

.nav {
  display: flex;
  gap: var(--s-1);
  margin-left: auto;
}
.nav a {
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--fg-2);
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--fg); background: var(--bg-mute); }
.nav a.is-active { color: var(--fg); }

.topbar__cta { display: inline-flex; gap: var(--s-3); margin-left: var(--s-5); flex-shrink: 0; }

/* ---------- Hamburger menu ---------- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
  margin-left: auto;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: var(--s-3) var(--s-4) var(--s-4);
  border-top: 1px solid var(--line-soft);
  background: var(--bg);
}
.mobile-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-size: 15px;
  color: var(--fg-2);
  transition: background .12s;
}
.mobile-nav a:hover { background: var(--bg-mute); color: var(--fg); }
.mobile-nav a.is-active { color: var(--fg); font-weight: 600; }

@media (max-width: 760px) {
  .nav { display: none; }
  .topbar__cta { margin-left: auto; margin-right: var(--s-2); }
  .topbar__cta .btn { height: 34px; padding: 0 14px; font-size: 13px; }
  .hamburger { display: flex; margin-left: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.btn:hover  { background: var(--bg-mute); }
.btn:active { transform: translateY(1px); }
.btn--dark  { background: var(--brand); color: var(--brand-fg-on); border-color: var(--brand); }
.btn--dark:hover  { background: var(--brand-2); border-color: var(--brand-2); }
.btn--ghost { background: transparent; border-color: transparent; color: var(--fg-2); }
.btn--ghost:hover { color: var(--fg); background: var(--bg-mute); }
.btn--lg    { height: 48px; padding: 0 26px; font-size: 15px; }
.btn--brand { background: var(--brand); color: var(--brand-fg-on); border-color: var(--brand); }
.btn--brand:hover { background: var(--brand-2); border-color: var(--brand-2); }

.btn .arrow { width: 14px; height: 14px; }
.btn .arrow-rc { transition: transform .2s; }
.btn:hover .arrow-rc { transform: translateX(2px); }

/* ---------- Tag / chip (mono, minimal) ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--fg-2);
  background: var(--bg);
}
.tag--brand  { border-color: var(--brand-line); color: var(--brand-2); background: var(--brand-soft); }
.tag--ok     { color: var(--ok); border-color: #bbf7d0; background: #f0fdf4; }
.tag--dot::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ---------- Cards / surfaces (deliberately flat) ---------- */
.surface {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.surface--mute { background: var(--bg-soft); }
.surface--invert { background: var(--bg-invert); color: var(--fg-on-invert); border-color: var(--bg-invert); }

.surface__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-4) var(--s-6);
  border-bottom: 1px solid var(--line-soft);
}
.surface__head h3 { font-size: 14px; font-weight: 600; }
.surface__head .meta { font-family: var(--f-mono); font-size: 11px; color: var(--fg-3); letter-spacing: 0.05em; text-transform: uppercase; }

.surface__body { padding: var(--s-6); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: var(--s-7) 0 var(--s-6);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.hero::before {
  /* subtle dot grid */
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 35%, transparent 75%);
          mask-image: radial-gradient(ellipse at 50% 30%, black 35%, transparent 75%);
  pointer-events: none;
}
.hero__inner { position: relative; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 5px 10px 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--fg-2);
}
.hero__eyebrow .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(22,163,74,0.6);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(22,163,74,0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(22,163,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); }
}

.hero h1 {
  margin-top: var(--s-4);
  font-size: var(--fs-display);
  letter-spacing: -0.035em;
  line-height: 1.15;
  font-weight: 600;
}
.hero h1 .accent { color: var(--brand); }
.hero h1 .strike { color: var(--fg-3); text-decoration: line-through; text-decoration-color: var(--fg-3); }

.hero__lede {
  margin-top: var(--s-5);
  max-width: 64ch;
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg-2);
}

.hero__cta {
  margin-top: var(--s-6);
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  align-items: center;
}
@media (max-width: 560px) {
  .hero__cta { gap: var(--s-2); }
  .hero__cta .btn--lg { height: 40px; padding: 0 18px; font-size: 14px; }
  .hero__meta { display: none; }
}
.hero__meta {
  margin-left: var(--s-2);
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--fg-3);
}

.hero__shot {
  margin-top: var(--s-7);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: 0 1px 0 rgba(0,0,0,0.03);
  position: relative;
}
.hero__shot::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 28px;
  background: linear-gradient(to bottom, #fafafa, #f5f5f5);
  border-bottom: 1px solid var(--line-soft);
  background-image:
    radial-gradient(circle at 16px 14px, #ff5f57 4px, transparent 4.5px),
    radial-gradient(circle at 32px 14px, #febc2e 4px, transparent 4.5px),
    radial-gradient(circle at 48px 14px, #28c840 4px, transparent 4.5px);
  background-repeat: no-repeat;
  z-index: 2;
}
.hero__shot img {
  width: 100%;
  display: block;
  margin-top: 28px;
}

/* ---------- Section heading ---------- */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-6);
  margin-bottom: var(--s-6);
}
@media (max-width: 800px) {
  .sec-head { flex-direction: column; align-items: flex-start; gap: var(--s-3); }
}
.sec-head h2 { letter-spacing: -0.025em; flex-shrink: 0; line-height: 1.2; }
.sec-head p  { color: var(--fg-2); max-width: 56ch; line-height: 1.6; }

/* ---------- Module cards ---------- */
.modules {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg);
}
.module {
  position: relative;
  padding: var(--s-5) var(--s-4);
  border-left: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  min-height: 260px;
  background: var(--bg);
  transition: background .2s;
}
.module:first-child { border-left: 0; }
.module:hover { background: var(--bg-soft); }
.module__num {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--fg-3);
  letter-spacing: 0.06em;
}
.module__icon {
  margin-top: var(--s-3);
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--fg);
  background: var(--bg);
}
.module__title {
  margin-top: var(--s-5);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.module__sub {
  margin-top: 4px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.module__desc {
  margin-top: var(--s-3);
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.55;
}
.module__list {
  margin-top: auto;
  padding-top: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--fg-2);
}
.module__list li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.module__list li::before {
  content: "";
  width: 4px; height: 4px;
  background: var(--fg-3);
  border-radius: 50%;
}
@media (max-width: 1000px) {
  .modules { grid-template-columns: repeat(2, 1fr); }
  .module { border-left: 0; border-top: 1px solid var(--line-soft); }
  .module:nth-child(odd) { border-right: 1px solid var(--line-soft); }
  .module:nth-child(1), .module:nth-child(2) { border-top: 0; }
}
@media (max-width: 600px) {
  .modules { grid-template-columns: 1fr; }
  .module { min-height: 0; padding: var(--s-4); border-right: 0 !important; border-top: 1px solid var(--line-soft); }
  .module:first-child { border-top: 0; }
  .module__icon { display: none; }
  .module__list { display: none; }
  .module__title { margin-top: 0; font-size: 15px; }
  .module__desc { font-size: 13px; margin-top: var(--s-2); }
  .module .module__num,
  .module .module__sub { display: inline; }
  .module .module__sub { margin-left: var(--s-2); }
}

/* ---------- Feature rows (screenshot + text) ---------- */
.feat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
  align-items: center;
  padding: var(--s-8) 0;
  border-top: 1px solid var(--line-soft);
}
.feat:first-of-type { border-top: 0; padding-top: var(--s-6); }
.feat--flip > .feat__text  { order: 2; }
.feat--flip > .feat__shot  { order: 1; }
@media (max-width: 900px) {
  .feat { grid-template-columns: 1fr; gap: var(--s-5); }
  .feat--flip > .feat__text { order: 1; }
  .feat--flip > .feat__shot { order: 2; }
}
.feat__text h3 { font-size: 24px; letter-spacing: -0.02em; line-height: 1.3; }
.feat__text p  { margin-top: var(--s-3); color: var(--fg-2); font-size: 15px; line-height: 1.65; }
.feat__list {
  margin-top: var(--s-5);
  display: grid;
  gap: var(--s-3);
}
.feat__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  font-size: 14px;
  color: var(--fg-2);
}
.feat__list li::before {
  content: "→";
  font-family: var(--f-mono);
  color: var(--fg-3);
  margin-top: 1px;
}
.feat__shot {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-soft);
  position: relative;
}
.feat__shot img { width: 100%; display: block; }
.feat__shot-cap {
  position: absolute;
  left: var(--s-3); top: var(--s-3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  background: rgba(255,255,255,0.86);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--fg-2);
}

/* ---------- Plan duo (pricing) ---------- */
.plan-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (max-width: 800px) {
  .plan-duo { grid-template-columns: 1fr; }
}
.plan {
  display: flex;
  flex-direction: column;
  padding: var(--s-6) var(--s-7);
}
.plan--annual {
  background: var(--bg);
  border-right: 1px solid var(--line);
}
@media (max-width: 800px) {
  .plan--annual { border-right: 0; border-bottom: 1px solid var(--line); }
}
.plan--lifetime {
  background: var(--brand);
  color: #fff;
  position: relative;
}
.plan__badge {
  position: absolute;
  top: var(--s-5);
  right: var(--s-5);
  padding: 4px 12px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 4px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #fff;
}
.plan__head {
  margin-bottom: var(--s-5);
}
.plan__head h3 {
  margin-top: var(--s-2);
  font-size: 20px;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.plan__sub {
  margin-top: 6px;
  font-size: 14px;
  color: var(--fg-3);
}
.plan--lifetime .plan__sub { color: rgba(255,255,255,0.6); }
.plan__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 4px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.7);
}
.plan__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.plan__currency {
  font-size: 18px;
  color: var(--fg-3);
  align-self: flex-start;
  margin-top: 8px;
}
.plan--lifetime .plan__currency { color: rgba(255,255,255,0.5); }
.plan__amount {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.plan__unit {
  font-size: 16px;
  color: var(--fg-3);
  margin-left: 4px;
}
.plan--lifetime .plan__unit { color: rgba(255,255,255,0.5); }
.plan__note {
  margin-top: var(--s-2);
  font-size: 12px;
  color: var(--fg-3);
}
.plan--lifetime .plan__note { color: rgba(255,255,255,0.45); }
.plan__list {
  margin-top: var(--s-6);
  display: grid;
  gap: var(--s-3);
  font-size: 14px;
  list-style: none;
  padding: 0;
}
.plan__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg-2);
}
.plan--lifetime .plan__list li { color: rgba(255,255,255,0.85); }
.plan__list li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--fg-3);
  flex-shrink: 0;
}
.plan--lifetime .plan__list li::before { background: rgba(255,255,255,0.35); }
.plan__btn {
  margin-top: auto;
  padding-top: var(--s-6);
  justify-content: center;
  align-self: stretch;
}
.plan__btn--light {
  background: #fff;
  color: var(--brand);
  border-color: #fff;
  font-weight: 600;
}
.plan__btn--light:hover { background: #f0f0f0; }

/* ---------- Pipeline (5 step flow) ---------- */
.pipeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.step {
  padding: var(--s-6);
  border-left: 1px solid var(--line-soft);
  background: var(--bg);
  position: relative;
  min-height: 140px;
}
.step:first-child { border-left: 0; }
.step__k {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.step__n {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--brand);
  margin-top: var(--s-2);
  letter-spacing: 0.04em;
}
.step__t {
  margin-top: var(--s-3);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.step__d {
  margin-top: var(--s-2);
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.55;
}
@media (max-width: 900px) {
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .step { border-left: 0; border-top: 1px solid var(--line-soft); }
  .step:nth-child(1), .step:nth-child(2) { border-top: 0; }
  .step:nth-child(odd) { border-right: 1px solid var(--line-soft); }
}
@media (max-width: 560px) {
  .pipeline { grid-template-columns: 1fr; }
  .step { min-height: 0; padding: var(--s-3) var(--s-4); border-right: 0 !important; }
  .step:first-child { border-top: 0; }
  .step__d { display: none; }
  .step__k, .step__t { display: inline; }
  .step__t { margin-left: var(--s-2); font-size: 14px; }
}

/* ---------- Code / terminal block ---------- */
.codeblock {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-invert);
  color: var(--fg-on-invert);
  overflow: hidden;
  font-family: var(--f-mono);
  font-size: 13px;
  line-height: 1.7;
}
.codeblock__head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-6);
  border-bottom: 1px solid #1f1f1f;
  font-size: 12px;
  color: var(--fg-on-invert-2);
}
.codeblock__head .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #2a2a2a;
}
.codeblock__head .name { color: #e5e5e5; margin-left: 4px; }
.codeblock__head .right { margin-left: auto; }
.codeblock pre {
  margin: 0;
  padding: var(--s-6) var(--s-7);
  white-space: pre;
  overflow-x: auto;
  color: #d4d4d4;
}
.codeblock .k { color: #93c5fd; }
.codeblock .s { color: #86efac; }
.codeblock .n { color: #fcd34d; }
.codeblock .c { color: #737373; }
.codeblock .v { color: #e5e5e5; }

/* ---------- KPI strip ---------- */
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg);
}
.kpi { padding: var(--s-6); border-left: 1px solid var(--line-soft); }
.kpi:first-child { border-left: 0; }
.kpi__k {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.kpi__v {
  margin-top: var(--s-3);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.kpi__d {
  margin-top: var(--s-2);
  font-size: 12px;
  color: var(--fg-3);
}
@media (max-width: 760px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .kpi { border-left: 0; border-top: 1px solid var(--line-soft); padding: var(--s-4); }
  .kpi:nth-child(1), .kpi:nth-child(2) { border-top: 0; }
  .kpi:nth-child(odd) { border-right: 1px solid var(--line-soft); }
  .kpi__v { font-size: 28px; }
}
@media (max-width: 560px) {
  .kpi__d { display: none; }
}

/* ---------- Dashboard stats strip ---------- */
.section--dash .sec-head { margin-bottom: var(--s-6); }

.dash-stats {
  display: flex;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: var(--s-6);
  background: var(--bg);
}
.dash-stat {
  flex: 1;
  padding: var(--s-5) var(--s-6);
  border-left: 1px solid var(--line-soft);
  text-align: center;
}
.dash-stat:first-child { border-left: 0; }
.dash-stat__v {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--fg);
}
.dash-stat__k {
  margin-top: var(--s-2);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.dash-shot {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-soft);
}
.dash-shot img {
  width: 100%;
  display: block;
}

@media (max-width: 760px) {
  .dash-stats { flex-wrap: wrap; }
  .dash-stat {
    flex: 1 1 33.33%;
    border-top: 1px solid var(--line-soft);
    border-left: 0;
    padding: var(--s-4) var(--s-3);
  }
  .dash-stat:nth-child(1),
  .dash-stat:nth-child(2),
  .dash-stat:nth-child(3) { border-top: 0; }
  .dash-stat:nth-child(odd) { border-right: 1px solid var(--line-soft); }
  .dash-stat__v { font-size: 24px; }
}
@media (max-width: 560px) {
  .dash-stat { flex: 1 1 50%; }
  .dash-stat:nth-child(3) { border-top: 1px solid var(--line-soft); }
  .dash-stat:nth-child(odd) { border-right: 1px solid var(--line-soft); }
  .dash-stat:nth-child(even) { border-right: 0; }
}

/* ---------- CTA bar ---------- */
.section--cta {
  border-top: 0;
  padding: var(--s-6) 0 var(--s-7);
}
.cta-bar {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg);
  overflow: hidden;
}
.cta-bar__accent {
  flex-shrink: 0;
  width: 6px;
  background: var(--brand);
}
.cta-bar__copy {
  flex: 1;
  padding: var(--s-7) var(--s-7) var(--s-7) var(--s-8);
}
.cta-bar__copy h2 {
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.cta-bar__copy p {
  margin-top: var(--s-3);
  font-size: 15px;
  color: var(--fg-2);
  line-height: 1.6;
}
.cta-bar__actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 0 var(--s-7);
}
@media (max-width: 800px) {
  .cta-bar { flex-direction: column; }
  .cta-bar__accent { width: 100%; height: 4px; }
  .cta-bar__copy { padding: var(--s-6); }
  .cta-bar__actions { padding: 0 var(--s-6) var(--s-6); flex-wrap: wrap; }
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line-soft);
  padding: var(--s-7) 0 var(--s-6);
  margin-top: var(--s-7);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: var(--s-7);
}
.footer__grid--slim {
  grid-template-columns: auto auto auto;
  justify-content: space-between;
  gap: var(--s-8);
  align-items: start;
}
@media (max-width: 760px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s-5); }
  .footer__about { max-width: none; }
}
@media (max-width: 560px) {
  .footer { padding: var(--s-6) 0 var(--s-5); margin-top: var(--s-6); }
  .footer__grid--slim {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-4) var(--s-5);
    align-items: start;
  }
  .footer__brand-zone { grid-column: 1 / -1; }
  .footer__brand-zone .footer__brand { margin-bottom: var(--s-2); }
  .footer__brand-zone .brand__logo { height: 32px; }
  .footer__about { font-size: 12px; }
  .footer__qrcode { flex-direction: column; align-items: flex-start; }
  .footer__qrcode h4 { writing-mode: horizontal-tb; margin-bottom: var(--s-2); font-size: 11px; }
  .footer__qrcode-img { width: 100px; height: 100px; }
  .footer__contact { min-width: 0; }
  .footer__contact h4 { margin-bottom: var(--s-2); }
  .footer__bottom { margin-top: var(--s-5); padding-top: var(--s-4); font-size: 11px; }
}
@media (max-width: 800px) {
  .footer__grid--slim { grid-template-columns: 1fr 1fr; gap: var(--s-5); }
}
.footer h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: var(--s-4);
  font-weight: 500;
}
.footer ul { display: grid; gap: var(--s-3); }
.footer a { font-size: 14px; color: var(--fg-2); }
.footer a:hover { color: var(--fg); }
.footer__about { font-size: 13px; color: var(--fg-2); line-height: 1.65; max-width: 30ch; margin: 0; }
.footer__brand { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); }
.footer__links { display: grid; grid-template-columns: auto auto; gap: var(--s-3) var(--s-6); list-style: none; margin: 0; padding: 0; }
.footer__links a { font-size: 13px; color: var(--fg-3); transition: color 0.15s; }
.footer__links a:hover { color: var(--fg); }
.footer__nav h4 { margin-bottom: var(--s-4); }

/* QR code area */
.footer__qrcode {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: var(--s-4);
}
.footer__qrcode-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: var(--r-md);
  display: block;
  flex-shrink: 0;
}
.footer__qrcode h4 {
  margin-bottom: 0;
  writing-mode: vertical-rl;
  letter-spacing: 0.06em;
  font-size: 13px;
  font-family: var(--f-sans);
  font-weight: 400;
  color: var(--fg-2);
}

.footer__bottom {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.04em;
}
@media (max-width: 600px) {
  .footer__bottom { flex-direction: column; gap: var(--s-2); align-items: flex-start; }
}

/* ---------- Utility ---------- */
.muted { color: var(--fg-3); }
.center { text-align: center; }
.right  { text-align: right; }
.divider { height: 1px; background: var(--line-soft); margin: var(--s-6) 0; }
.mt-3 { margin-top: var(--s-3); }
.mt-5 { margin-top: var(--s-5); }
.mt-7 { margin-top: var(--s-7); }
.gap-2 { gap: var(--s-2); }
.gap-3 { gap: var(--s-3); }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.center-x { justify-content: center; }
.center-y { align-items: center; }
.link-underline { color: var(--brand-2); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Reveal on scroll (single light util) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s cubic-bezier(.16,1,.3,1), transform .5s cubic-bezier(.16,1,.3,1);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Screenshot frame (browser-like chrome) ---------- */
.frame {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg);
  position: relative;
}
.frame__chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-soft);
}
.frame__chrome .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #e5e5e5;
}
.frame__chrome .url {
  margin-left: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.02em;
}
.frame img { width: 100%; display: block; }

/* ---------- Notice bar ---------- */
.notice-bar {
  background: var(--bg-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: var(--s-2) 0;
  text-align: center;
  font-size: 13px;
  color: var(--fg-2);
}
.notice-bar .pulse {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #d97706;
  margin-right: 6px;
  vertical-align: middle;
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(217,119,6,0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(217,119,6,0); }
  100% { box-shadow: 0 0 0 0 rgba(217,119,6,0); }
}

/* Promo banner (brand-colored top bar) */
.promo-banner {
  display: block;
  background: var(--brand);
  color: #fff;
  text-align: center;
  padding: 6px 0;
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: background .15s;
}
@media (max-width: 560px) {
  .promo-banner { padding: 5px 0; font-size: 12px; }
}
.promo-banner:hover { background: var(--brand-2); }
.promo-banner__dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  vertical-align: middle;
  animation: pulse 1.8s ease-out infinite;
}

/* ---------- FAQ list ---------- */
.faq-list {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg);
}
.faq-list__item {
  padding: var(--s-5) var(--s-6);
  border-bottom: 1px solid var(--line-soft);
}
.faq-list__item:last-child { border-bottom: 0; }
.faq-list__item h3 { font-size: 16px; }
.faq-list__item p { margin-top: 8px; font-size: 14px; color: var(--fg-2); }

/* ---------- TOC (table of contents) ---------- */
.toc-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (max-width: 900px) { .toc-grid { grid-template-columns: repeat(2, 1fr); } }
.toc-item {
  display: block;
  padding: var(--s-4);
  background: var(--bg);
  border-right: 1px solid var(--line-soft);
}
.toc-item:last-child { border-right: 0; }
.toc-item__num { font-size: 11px; color: var(--fg-3); }
.toc-item__title { font-size: 14px; font-weight: 600; margin-top: 4px; }
.toc-item__sub { font-size: 12px; color: var(--fg-3); }
@media (max-width: 560px) {
  .toc-item {
    display: flex;
    align-items: center;
    gap: var(--s-2);
  }
  .toc-item__num { flex-shrink: 0; }
  .toc-item__title { margin-top: 0; font-size: 13px; white-space: nowrap; }
  .toc-item__sub { display: none; }
}

/* ---------- Pipeline step (features page) ---------- */
.pipe-step {
  padding: var(--s-3) var(--s-4);
  flex: 1 1 160px;
}
.pipe-step__num { font-size: 11px; color: var(--fg-3); }
.pipe-step__title { font-weight: 600; }
.pipe-step__desc { font-size: 12px; margin-top: 2px; }
@media (max-width: 560px) {
  .pipe-step__desc { display: none; }
  .pipe-step__num, .pipe-step__title { display: inline; }
  .pipe-step__title { margin-left: var(--s-2); font-size: 14px; }
}

/* ---------- Feature card (features page) ---------- */
.fcard {
  padding: var(--s-5);
}
.fcard__num { font-size: 11px; color: var(--fg-3); }
.fcard__title { margin-top: 8px; font-size: 17px; }
.fcard__desc { font-size: 13px; margin-top: 6px; }
@media (max-width: 560px) {
  .fcard { padding: var(--s-4); }
  .fcard__title { font-size: 15px; }
}

/* ---------- Customer case card (features page) ---------- */
.case-card {
  padding: var(--s-5);
}
.case-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--s-3);
}
.case-card__code { font-size: 11px; color: var(--fg-3); }
.case-card__quote { font-size: 15px; line-height: 1.6; }
.case-card__meta-title { font-weight: 600; font-size: 14px; }
.case-card__meta-sub { font-size: 12px; color: var(--fg-3); }
.case-card__stat { font-size: 22px; }
@media (max-width: 560px) {
  .case-card { padding: var(--s-4); }
  .case-card__quote { font-size: 14px; }
}

/* ---------- Doc link card (features page) ---------- */
.doc-link {
  padding: var(--s-5);
}
.doc-link__num { font-size: 11px; color: var(--fg-3); }
.doc-link__title { margin-top: 8px; font-size: 16px; }
.doc-link__desc { font-size: 13px; margin-top: 6px; }

/* ---------- Footer contact block ---------- */
.footer__contact-info {
  display: grid;
  gap: var(--s-2);
  font-size: 13px;
  color: var(--fg-3);
  line-height: 1.6;
}
.footer__contact-info .footer__contact-time {
  font-size: 12px;
}
.footer__contact-info a {
  color: var(--fg-3);
}
