/* ============================================================
   misstap — 官网样式
   Apple HIG 骨架 · 暖白奶油色 · 发丝级分隔 · expo-out 动效
   ============================================================ */

:root {
  --ground: #FBFAF8;
  --surface: #FFFFFF;
  --surface-2: #F6F3F0;
  --ink: #2E2A2E;
  --muted: #928A90;
  --rose: #C98BA0;
  --rose-deep: #B87A90;
  --lavender: #A99BC4;
  --sage: #9DB4A5;
  --peach: #E8C4B8;
  --divider: #EDE7E3;
  --shadow-1: 0 1px 2px rgba(46, 42, 46, .04);
  --shadow-2: 0 8px 30px rgba(46, 42, 46, .06);
  --shadow-3: 0 20px 70px rgba(120, 92, 104, .12);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: "SF Pro Display", -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  --font-body: "SF Pro Text", -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.47;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font); font-weight: 600; letter-spacing: -.025em; line-height: 1.12; margin: 0; text-wrap: pretty; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 40px; }

/* ---------- nav ---------- */
.site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 64px;
  background: rgba(251, 250, 248, .72);
  backdrop-filter: saturate(1.6) blur(20px);
  -webkit-backdrop-filter: saturate(1.6) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-nav.scrolled { border-bottom-color: var(--divider); background: rgba(251, 250, 248, .88); }
.nav-inner { max-width: 1120px; margin: 0 auto; padding: 0 40px; height: 100%; display: flex; align-items: center; gap: 48px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font); font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.nav-links { display: flex; gap: 32px; font-size: 14px; color: var(--muted); }
.nav-links a { transition: color .2s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav-login { font-size: 14px; color: var(--muted); }
.nav-login:hover { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: 13px 28px; font-size: 15px; font-weight: 500;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 9px 20px; font-size: 14px; }
.btn-rose { background: var(--rose); color: #fff; box-shadow: 0 4px 14px rgba(201, 139, 160, .28); }
.btn-rose:hover { background: var(--rose-deep); box-shadow: 0 8px 24px rgba(201, 139, 160, .34); }
.btn-ghost { background: rgba(255,255,255,.7); border: 1px solid var(--divider); color: var(--ink); box-shadow: var(--shadow-1); }
.btn-ghost:hover { background: #fff; box-shadow: var(--shadow-2); }
.text-link { color: var(--rose-deep); font-size: 16px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.text-link span { transition: transform .25s var(--ease); }
.text-link:hover span { transform: translateX(4px); }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--rose); margin-bottom: 20px; }
.lede { font-size: 19px; color: var(--muted); line-height: 1.6; max-width: 480px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 168px 0 0; overflow: hidden; }
.hero-glow {
  position: absolute; top: -220px; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 620px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(232,196,184,.34) 0%, rgba(201,139,160,.14) 42%, transparent 72%);
  filter: blur(20px);
}
.hero-inner { position: relative; text-align: center; }
.hero-title { font-size: clamp(48px, 6vw, 76px); line-height: 1.1; letter-spacing: -.04em; }
.hero-sub { margin: 28px auto 0; font-size: 20px; line-height: 1.6; color: var(--muted); max-width: 520px; }
.hero-cta { margin-top: 36px; display: flex; justify-content: center; align-items: center; gap: 28px; }
.hero-note { margin-top: 22px; font-size: 13px; color: #A9A1A4; }

/* ---------- mac window stage ---------- */
.stage { position: relative; margin: 88px auto 0; max-width: 1000px; perspective: 1600px; }
.mac-window {
  position: relative; z-index: 2; border-radius: 18px; overflow: hidden;
  background: #fff; border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 2px 4px rgba(46,42,46,.04), 0 40px 100px rgba(120,92,104,.16);
  transform: rotateX(2deg);
}
.window-bar {
  height: 42px; display: flex; align-items: center; gap: 14px; padding: 0 18px;
  background: linear-gradient(180deg, #FDFCFA 0%, #F6F3F0 100%);
  border-bottom: 1px solid var(--divider);
}
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #E3C4C9; }
.dots i:nth-child(2) { background: #EBD9C0; }
.dots i:nth-child(3) { background: #C9DCCF; }
.window-title { font-size: 12px; color: #A79FA3; margin: 0 auto; }
.window-bar-end { width: 54px; }
.window-body {
  display: flex; height: 520px;
  background: linear-gradient(135deg, #F7EAEA 0%, #EBE6F3 52%, #E9F0EA 100%);
}
.demo-sidebar {
  width: 74px; flex: 0 0 74px; padding: 22px 0; display: flex; flex-direction: column; align-items: center; gap: 16px;
  background: rgba(255,255,255,.34); border-right: 1px solid rgba(255,255,255,.5);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.demo-side-icon {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 72%, white); color: #fff; font-size: 15px; font-weight: 600;
  box-shadow: 0 3px 10px rgba(46,42,46,.1);
}
.demo-side-icon.active { outline: 2px solid rgba(255,255,255,.9); outline-offset: 2px; }
.demo-side-add { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #A79FA3; font-size: 20px; border: 1px dashed rgba(255,255,255,.9); }
.demo-main { flex: 1; padding: 30px 34px; color: #4A4448; }
.demo-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.demo-search {
  width: min(440px, 62%); height: 44px; border-radius: 14px; display: flex; align-items: center; gap: 10px; padding: 0 16px;
  background: rgba(255,255,255,.62); border: 1px solid rgba(255,255,255,.8); color: #A79FA3; font-size: 13px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.demo-weather { text-align: right; color: #5A5258; }
.demo-temp { font-family: var(--font); font-size: 30px; font-weight: 600; letter-spacing: -.04em; display: block; line-height: 1; }
.demo-weather-sub { font-size: 11px; color: #8B8288; }
.demo-clock { font-family: var(--font); font-size: 60px; font-weight: 600; letter-spacing: -.05em; margin: 26px 0 22px; line-height: 1; color: #3E383D; }
.demo-clock small { font-family: var(--font-body); font-size: 13px; font-weight: 400; letter-spacing: 0; color: #8B8288; margin-left: 12px; }
.demo-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.demo-card {
  border-radius: 16px; padding: 16px; min-height: 160px;
  background: rgba(255,255,255,.56); border: 1px solid rgba(255,255,255,.75);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 6px 20px rgba(120,92,104,.08);
}
.demo-card-head { display: flex; justify-content: space-between; font-size: 11px; color: #90868C; margin-bottom: 14px; }
.demo-card p { font-size: 12px; line-height: 2; color: #6A6268; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-card p s { color: #ABA2A8; }
.demo-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; text-align: center; }
.demo-cal-grid i, .demo-cal-grid b { font-size: 10px; font-style: normal; font-weight: 400; height: 20px; display: grid; place-items: center; color: #958B91; }
.demo-cal-grid b { background: var(--rose); color: #fff; border-radius: 50%; font-weight: 600; }
.stage-shadow { position: absolute; z-index: 1; bottom: -34px; left: 8%; right: 8%; height: 70px; background: rgba(120,92,104,.14); filter: blur(40px); border-radius: 50%; }

/* ---------- generic sections ---------- */
.section { padding: 160px 0; }
.section-tint { background: #F7F4F1; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: center; }
.split-reverse .split-copy { order: 2; }
.split-copy h2, .section-head h2, .download h2 { font-size: clamp(36px, 4vw, 52px); }
.split-copy .lede { margin-top: 24px; }
.split-copy .text-link { margin-top: 32px; }
.clean-list { list-style: none; padding: 0; margin: 24px 0 0; color: var(--muted); font-size: 16px; }
.clean-list li { padding: 10px 0 10px 22px; position: relative; }
.clean-list li::before { content: ""; position: absolute; left: 0; top: 21px; width: 7px; height: 7px; border-radius: 50%; background: var(--peach); }
.section-head { text-align: center; margin-bottom: 64px; }
.section-head .lede { margin: 24px auto 0; }

/* ---------- widget board ---------- */
.split-visual { min-height: 420px; display: grid; place-items: center; }
.widget-board {
  width: 100%; max-width: 480px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.wf {
  border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 10px;
  background: rgba(255,255,255,.8); border: 1px solid #fff;
  box-shadow: 0 12px 34px rgba(120,92,104,.1);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.wf-label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--rose); font-weight: 600; }
.wf strong { font-family: var(--font); font-size: 44px; font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.wf span:not(.wf-label) { font-size: 14px; color: var(--muted); }
.wf-weather { grid-row: span 2; justify-content: center; background: linear-gradient(155deg, rgba(255,255,255,.92), rgba(232,196,184,.42)); }
.wf-weather strong { font-size: 72px; }
.wf-note { background: linear-gradient(155deg, rgba(255,255,255,.92), rgba(169,155,196,.28)); }

/* ---------- shortcut board ---------- */
.shortcut-board {
  width: 100%; max-width: 440px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 20px;
  padding: 44px; border-radius: 28px; background: rgba(255,255,255,.62);
  border: 1px solid #fff; box-shadow: 0 16px 44px rgba(120,92,104,.1);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.shortcut { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.shortcut > span {
  width: 60px; height: 60px; border-radius: 19px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 78%, white); color: #fff; font-size: 22px; font-weight: 600;
  box-shadow: 0 6px 16px rgba(46,42,46,.1); transition: transform .25s var(--ease);
}
.shortcut:hover > span { transform: translateY(-4px); }
.shortcut small { font-size: 12px; color: var(--muted); }
.shortcut.add > span { background: transparent; border: 1px dashed #CFBFB9; color: #A79FA3; font-weight: 400; font-size: 28px; box-shadow: none; }

/* ---------- minimal board ---------- */
.minimal-board {
  width: 100%; max-width: 480px; min-height: 360px; border-radius: 28px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  background: linear-gradient(140deg, #F7EAEA, #EDE7F2 55%, #E8F0E9);
  border: 1px solid rgba(255,255,255,.9); box-shadow: 0 16px 44px rgba(120,92,104,.12);
}
.minimal-search {
  width: 78%; height: 56px; border-radius: 18px; display: flex; align-items: center; gap: 12px; padding: 0 20px;
  background: rgba(255,255,255,.72); color: #9A9197; font-size: 15px;
  box-shadow: 0 8px 24px rgba(120,92,104,.08); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.minimal-board p { font-size: 13px; color: #958B91; }

/* ---------- wallpapers ---------- */
.wallpaper-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.wallpaper-row figure { margin: 0; }
.wp { aspect-ratio: 4 / 3; border-radius: 18px; box-shadow: 0 10px 30px rgba(120,92,104,.1); }
.wp-1 { background: linear-gradient(135deg, #F7EAEA, #EED8DF 55%, #F5DFCC); }
.wp-2 { background: linear-gradient(135deg, #EBE6F3, #DBD3EA 58%, #F0D5DF); }
.wp-3 { background: linear-gradient(135deg, #E9F0EA, #D9E6DC 55%, #EFDFD0); }
.wp-4 { background: linear-gradient(135deg, #FCEBE1, #F2DAD3 55%, #E7BCC9); }
.wallpaper-row figcaption { text-align: center; font-size: 13px; color: var(--muted); margin-top: 14px; }

/* ---------- feature list ---------- */
.feature-list { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--divider); }
.feature-row { display: grid; grid-template-columns: 90px 1fr; gap: 24px; padding: 36px 8px; border-bottom: 1px solid var(--divider); align-items: baseline; }
.feature-num { font-family: var(--font); font-size: 14px; color: var(--rose); font-weight: 600; letter-spacing: .08em; }
.feature-row h3 { font-size: 24px; }
.feature-row p { color: var(--muted); margin-top: 10px; font-size: 16px; }

/* ---------- download ---------- */
.download { padding: 150px 0 140px; text-align: center; background: linear-gradient(180deg, var(--ground) 0%, #F6EFEC 100%); }
.download-inner { max-width: 820px; }
.download .lede { margin: 24px auto 0; }
.download-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 52px; text-align: left; }
.dl-card {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px;
  background: rgba(255,255,255,.78); border: 1px solid #fff;
  box-shadow: var(--shadow-1); transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.dl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.dl-icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-size: 13px; font-weight: 600; color: #fff; flex: 0 0 42px; }
.dl-edge { background: #C98BA0; }
.dl-chrome { background: #A99BC4; }
.dl-firefox { background: #9DB4A5; }
.dl-local { background: #E8C4B8; }
.dl-card strong { display: block; font-size: 15px; font-weight: 600; }
.dl-card small { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.dl-card b { margin-left: auto; font-weight: 400; color: var(--muted); }
.download-note { margin-top: 34px; font-size: 13px; color: var(--muted); }
.download-note a { color: var(--rose-deep); border-bottom: 1px solid rgba(184,122,144,.3); }

/* ---------- footer ---------- */
.site-footer { background: #F1EBE7; padding: 48px 0; }
.footer-inner { display: flex; align-items: center; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 9px; font-family: var(--font); font-size: 16px; font-weight: 600; }
.footer-brand small { font-family: var(--font-body); font-weight: 400; font-size: 12px; color: var(--muted); margin-left: 12px; }
.footer-links { display: flex; gap: 24px; margin-left: auto; font-size: 13px; color: var(--muted); }
.footer-links a:hover { color: var(--ink); }
.footer-copy { font-size: 12px; color: #A79FA3; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .wrap, .nav-inner { padding: 0 24px; }
  .nav-links { display: none; }
  .hero { padding-top: 130px; }
  .window-body { height: 420px; }
  .demo-main { padding: 22px; }
  .demo-cards { grid-template-columns: 1fr 1fr; }
  .demo-news { display: none; }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .split-reverse .split-copy { order: 0; }
  .section { padding: 110px 0; }
  .wallpaper-row { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-wrap: wrap; gap: 20px; }
  .footer-links { margin-left: 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero-title { font-size: 40px; }
  .hero-cta { flex-direction: column; gap: 18px; }
  .hero-note { font-size: 12px; }
  .stage { margin-top: 56px; }
  .demo-sidebar { display: none; }
  .demo-clock { font-size: 44px; }
  .demo-clock small { display: block; margin: 8px 0 0; }
  .window-body { height: 480px; }
  .demo-cards { grid-template-columns: 1fr; }
  .demo-calendar { display: none; }
  .widget-board { grid-template-columns: 1fr; }
  .wf-weather { grid-row: auto; }
  .shortcut-board { grid-template-columns: repeat(4, 1fr); gap: 18px 10px; padding: 26px; }
  .shortcut > span { width: 46px; height: 46px; font-size: 18px; border-radius: 15px; }
  .feature-row { grid-template-columns: 1fr; gap: 8px; }
  .download-grid { grid-template-columns: 1fr; }
  .footer-brand small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
