/* 心流 FocusFlow — 官网。镜像 App 的 Pencil 设计 tokens（心流.pen / Theme.swift）。
   共享设计系统：tokens + 通用组件。各区块 section CSS 见 sections.css。 */

:root {
  /* surfaces */
  --bg-app:      #F3F1FA;
  --surface:     #FFFFFF;
  --surface-alt: #FAF9FE;
  /* text */
  --text-primary:   #211E33;
  --text-secondary: #6E6A85;
  --text-muted:     #A6A2BC;
  /* accent */
  --accent:      #6C5CE7;
  --accent-deep: #5343C9;
  --accent-soft: #EBE8FC;
  /* energy */
  --energy-high: #FF7A59; --energy-high-soft: #FFE7E0;
  --energy-med:  #F2A33C; --energy-med-soft:  #FCEED8;
  --energy-low:  #3FB984; --energy-low-soft:  #DBF3E8;
  /* lines */
  --border-soft: #EAE7F2;
  /* gradient */
  --grad-accent: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  /* radius */
  --r-card: 28px;
  --r-pill: 100px;
  /* shadow */
  --shadow-card: 0 6px 18px -8px rgba(108,92,231,0.14);
  --shadow-soft: 0 12px 34px -14px rgba(108,92,231,0.20);
  --shadow-lift: 0 30px 70px -24px rgba(91,77,203,0.40);
  /* layout */
  --maxw: 1180px;
  /* type */
  --font-display: "Poppins","Inter",-apple-system,BlinkMacSystemFont,"PingFang SC","Noto Sans SC",sans-serif;
  --font-body:    "Inter",-apple-system,BlinkMacSystemFont,"PingFang SC","Noto Sans SC","Microsoft YaHei",sans-serif;
}

/* ---------- base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg-app);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent-soft); color: var(--accent-deep); }

/* ---------- layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; width: 100%; }
.section { padding: 100px 0; }
.section-tight { padding: 80px 0; }

/* ---------- type helpers ---------- */
.display { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.015em; line-height: 1.14; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft); color: var(--accent-deep);
  font-size: 13px; font-weight: 600; padding: 8px 15px; border-radius: var(--r-pill);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; }
.eyebrow.on-dark { background: rgba(255,255,255,0.16); color: #fff; }
.eyebrow.on-dark .dot { background: #fff; }
.lead { color: var(--text-secondary); font-size: 18px; line-height: 1.65; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  border: none; border-radius: var(--r-pill); padding: 14px 24px; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px -4px rgba(108,92,231,0.5); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -4px rgba(108,92,231,0.6); }
.btn-ghost { background: var(--surface); color: var(--text-primary); border: 1.5px solid var(--border-soft); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-deep); }

/* ---------- app store badge ---------- */
.appstore {
  display: inline-flex; align-items: center; gap: 11px;
  background: #16141F; color: #fff; border-radius: 15px; padding: 11px 20px;
  box-shadow: 0 8px 20px -6px rgba(33,30,51,0.28); transition: transform .15s ease;
}
.appstore:hover { transform: translateY(-2px); }
.appstore svg { width: 26px; height: 26px; flex: none; }
.appstore .at small { display: block; font-size: 10px; opacity: .72; line-height: 1.1; font-weight: 500; }
.appstore .at b { display: block; font-size: 18px; font-weight: 600; line-height: 1.2; }
.appstore.light { background: #fff; color: #16141F; }
.appstore.light small { opacity: .6; }

/* ---------- card ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--r-card); box-shadow: var(--shadow-card);
}

/* ---------- gradient band ---------- */
.band-accent { background: var(--grad-accent); color: #fff; position: relative; overflow: hidden; }
.band-accent .blob { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }

/* ---------- device mockup ---------- */
.device { background: #15131F; border-radius: 44px; padding: 9px; box-shadow: var(--shadow-lift); }
/* 截图体系：所有手机样机统一成真机 iPhone 比例（≈1:2.165），object-fit:cover 从顶部裁切，
   绝不拉伸。修复旧 bug：原来只设 width:100% 没设 height:auto，导致 height 属性把高度钉死、
   把不同原生比例的截图全拉变形（hero EFXc8 1:2.5 被钉成 1:3.46）。 */
.device img {
  border-radius: 36px;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  height: auto;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ---------- pills (energy etc) ---------- */
.tag { display: inline-flex; align-items: center; gap: 6px; border-radius: var(--r-pill); padding: 6px 13px; font-size: 13px; font-weight: 600; }
.tag-high { background: var(--energy-high-soft); color: var(--energy-high); }
.tag-med  { background: var(--energy-med-soft);  color: var(--energy-med); }
.tag-low  { background: var(--energy-low-soft);  color: var(--energy-low); }

/* ===================================================================
   NAV
   =================================================================== */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.82); backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.site-nav .container { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 21px; }
.brand .mark { width: 34px; height: 34px; border-radius: 11px; background: var(--grad-accent); display: grid; place-items: center; box-shadow: 0 4px 10px -2px rgba(108,92,231,0.5); }
.brand .mark svg { width: 19px; height: 19px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--text-secondary); transition: color .15s ease; }
.nav-links a:hover { color: var(--text-primary); }
/* 选择器用 .nav-links a.nav-cta 提高特异性，压过 .nav-links a 的灰色文字色，确保按钮文字为白色 */
.nav-links a.nav-cta { background: var(--accent); color: #fff; padding: 10px 20px; border-radius: var(--r-pill); font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; box-shadow: 0 6px 16px -4px rgba(108,92,231,0.55); transition: transform .15s ease; }
.nav-links a.nav-cta:hover { color: #fff; transform: translateY(-1px); }

/* ===================================================================
   HERO
   =================================================================== */
.hero { position: relative; overflow: hidden; padding: 80px 0 96px; }
.hero .blob { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 0; }
.hero .blob-1 { width: 620px; height: 620px; background: var(--accent-soft); opacity: .7; top: -160px; right: -120px; }
.hero .blob-2 { width: 460px; height: 460px; background: var(--energy-low-soft); opacity: .5; bottom: -140px; left: -120px; }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-copy { max-width: 560px; }
.hero h1 { font-family: var(--font-display); font-weight: 700; font-size: 60px; line-height: 1.12; letter-spacing: -0.02em; margin: 22px 0 0; }
.hero h1 .acc { color: var(--accent); }
.hero-sub { margin-top: 22px; font-size: 19px; line-height: 1.6; color: var(--text-secondary); max-width: 520px; }
.hero-cta { display: flex; align-items: center; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-proof { display: flex; align-items: center; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.stars { display: inline-flex; gap: 2px; color: var(--energy-med); }
.proof-txt { font-size: 14px; font-weight: 500; color: var(--text-secondary); }
.proof-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--text-muted); }
.avatars { display: inline-flex; }
.avatars span { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; margin-left: -8px; }
.avatars span:first-child { margin-left: 0; }
.hero-proof .proof-item { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 500; color: var(--text-secondary); }
.hero-proof .proof-item svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.appstore .at small { letter-spacing: .02em; }
/* hero phone */
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-phone { width: 300px; }
.float-card { position: absolute; display: inline-flex; align-items: center; gap: 11px; background: var(--surface); border-radius: 18px; padding: 12px 15px; box-shadow: 0 14px 30px -10px rgba(108,92,231,0.30); }
.float-card .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.float-card small { display: block; font-size: 11px; font-weight: 600; color: var(--text-muted); }
.float-card b { display: block; font-size: 13px; font-weight: 600; }
.float-energy { top: 14%; left: -6%; transform: rotate(3deg); }
.float-done { bottom: 12%; right: -8%; transform: rotate(-3deg); background: var(--grad-accent); color: #fff; }
.float-done .ic { background: rgba(255,255,255,0.18); }
.float-done b { font-size: 14px; }

/* ===================================================================
   FINAL CTA
   =================================================================== */
.final-cta { text-align: center; padding: 112px 0; }
.final-cta .container { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.final-cta .blob-1 { width: 520px; height: 520px; background: rgba(255,255,255,0.14); top: -160px; left: -120px; }
.final-cta .blob-2 { width: 520px; height: 520px; background: rgba(59,45,166,0.42); bottom: -160px; right: -120px; }
.final-cta h2 { font-family: var(--font-display); font-weight: 700; font-size: 50px; line-height: 1.16; letter-spacing: -0.02em; }
.final-cta p { margin-top: 18px; font-size: 18px; line-height: 1.6; color: rgba(255,255,255,0.85); max-width: 600px; }
.final-cta .reassure { display: flex; gap: 22px; margin-top: 26px; flex-wrap: wrap; justify-content: center; color: rgba(255,255,255,0.8); font-size: 14px; font-weight: 500; }
.final-cta .reassure span { display: inline-flex; align-items: center; gap: 7px; }

/* ===================================================================
   FOOTER
   =================================================================== */
.site-footer { background: #1B1830; color: #fff; padding: 64px 0 38px; }
.footer-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-brand { max-width: 320px; }
.footer-brand .brand { color: #fff; }
.footer-brand p { margin-top: 18px; font-size: 14px; line-height: 1.65; color: #C4C0D6; }
.footer-badge { display: inline-flex; align-items: center; gap: 9px; margin-top: 18px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 12px; padding: 10px 16px; font-size: 14px; font-weight: 600; }
.footer-links { display: flex; gap: 72px; flex-wrap: wrap; }
.footer-col h4 { font-size: 13px; font-weight: 700; margin-bottom: 15px; }
.footer-col a { display: block; font-size: 14px; color: #B6B2C9; margin-bottom: 12px; transition: color .15s ease; }
.footer-col a:hover { color: #fff; }
.footer-divider { height: 1px; background: rgba(255,255,255,0.10); margin: 40px 0 24px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-bottom .cp { font-size: 13px; color: #8884A0; }
.footer-bottom .made { font-size: 13px; font-weight: 500; color: #B6B2C9; }
.footer-social { display: inline-flex; gap: 10px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.08); display: grid; place-items: center; color: #C4C0D6; transition: background .15s ease; }
.footer-social a:hover { background: rgba(255,255,255,0.16); }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { max-width: none; }
  .hero h1 { font-size: 48px; }
  /* 移动端：文案（标题+CTA）在前，手机样机在后——价值先行，便于转化 */
  .hero-copy { order: 0; }
  .hero-visual { order: 1; }
  .nav-links { gap: 18px; }
  .nav-links .hide-sm { display: none; }
}
@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .container { padding: 0 22px; }
  .hero h1 { font-size: 38px; }
  .hero-sub, .lead { font-size: 16px; }
  .final-cta h2 { font-size: 34px; }
  .brand span.wordmark { font-size: 19px; }
  .float-card { display: none; }
  .footer-links { gap: 40px; }
}
