/* moochi 官网落地页样式
 * 设计语言：暗色为主 + 双主题，大留白、清晰层级、克制现代感、tasteful 微动效。
 * 对标 Linear / Vercel / Arc / Raycast。自包含，无外部依赖。 */

:root {
  /* 暗色为默认主题 */
  --bg: #08080b;
  --bg-2: #0c0c11;
  --bg-3: #101017;
  --surface: rgba(255, 255, 255, 0.028);
  --surface-2: rgba(255, 255, 255, 0.05);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f4f7;
  --text-dim: #9b9ba8;
  --text-faint: #6a6a78;
  --accent: #5b8cff;
  --accent-2: #a78bfa;
  --accent-3: #22d3ee;
  --grad: linear-gradient(115deg, #5b8cff 0%, #a78bfa 46%, #22d3ee 100%);
  --grad-soft: linear-gradient(135deg, rgba(91, 140, 255, 0.16), rgba(167, 139, 250, 0.12) 50%, rgba(34, 211, 238, 0.12));
  --shadow-lg: 0 40px 120px -30px rgba(0, 0, 0, 0.8), 0 10px 40px -20px rgba(0, 0, 0, 0.6);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 50px -30px rgba(0, 0, 0, 0.7);
  --nav-bg: rgba(10, 10, 14, 0.6);
  --ring: rgba(91, 140, 255, 0.4);

  --maxw: 1180px;
  --radius: 16px;
  --radius-lg: 22px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    system-ui, sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
}

:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-2: #f7f8fa;
  --bg-3: #eef0f4;
  --surface: rgba(12, 14, 30, 0.022);
  --surface-2: rgba(12, 14, 30, 0.04);
  --surface-hover: rgba(12, 14, 30, 0.055);
  --border: rgba(14, 16, 34, 0.1);
  --border-strong: rgba(14, 16, 34, 0.18);
  --text: #0c0d15;
  --text-dim: #545562;
  --text-faint: #83848f;
  --accent: #3b6ef5;
  --accent-2: #7c5cf0;
  --accent-3: #0aa5c2;
  --grad-soft: linear-gradient(135deg, rgba(59, 110, 245, 0.1), rgba(124, 92, 240, 0.08) 50%, rgba(10, 165, 194, 0.08));
  --shadow-lg: 0 40px 100px -35px rgba(20, 24, 60, 0.28), 0 10px 30px -18px rgba(20, 24, 60, 0.16);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 18px 40px -28px rgba(20, 24, 60, 0.22);
  --nav-bg: rgba(255, 255, 255, 0.65);
  --ring: rgba(59, 110, 245, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

/* 长英文标识符（Hypervisor.framework / MoltenVK 等）在窄屏可断，杜绝横向溢出 */
h1, h2, h3, h4, p, a, .eyebrow, .stat .l, .tech-item h4 { overflow-wrap: break-word; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.011em;
  overflow-x: hidden;
}

/* 背景纹理 + 光晕 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 500px at 78% -8%, rgba(91, 140, 255, 0.14), transparent 60%),
    radial-gradient(760px 520px at 10% 4%, rgba(167, 139, 250, 0.1), transparent 58%),
    radial-gradient(680px 480px at 50% 106%, rgba(34, 211, 238, 0.07), transparent 60%);
  pointer-events: none;
}
:root[data-theme="light"] body::before {
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(59, 110, 245, 0.1), transparent 62%),
    radial-gradient(760px 520px at 8% 2%, rgba(124, 92, 240, 0.08), transparent 60%);
}
/* 极细颗粒噪点，提升质感 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.028;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 排版 ---------- */
h1, h2, h3 { margin: 0; font-weight: 640; letter-spacing: -0.03em; line-height: 1.06; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-3); box-shadow: 0 0 10px var(--accent-3); }

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 680; font-size: 18px; letter-spacing: -0.02em; }
.brand .logo { width: 26px; height: 26px; border-radius: 8px; background: var(--grad); box-shadow: 0 4px 14px -4px var(--accent); flex: none; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 14px;
  font-size: 14.5px;
  color: var(--text-dim);
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* 分段切换（语言/主题） */
.seg {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}
.seg button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 560;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
  line-height: 1;
}
.seg button.active { color: #fff; background: var(--accent); box-shadow: 0 2px 10px -2px var(--ring); }
:root[data-theme="light"] .seg button.active { color: #fff; }

.icon-btn {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.icon-btn:hover { color: var(--text); background: var(--surface-hover); border-color: var(--border-strong); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-sun { display: none; }
:root[data-theme="light"] .theme-sun { display: block; }
:root[data-theme="light"] .theme-moon { display: none; }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 560;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  font-family: var(--font);
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 10px 30px -10px var(--ring), 0 1px 0 rgba(255,255,255,0.2) inset;
}
.btn-primary:hover { box-shadow: 0 14px 36px -10px var(--ring); transform: translateY(-1px); }
.btn-ghost { color: var(--text); background: var(--surface-2); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-hover); border-color: var(--border-strong); }
.btn-sm { padding: 8px 16px; font-size: 14px; border-radius: 10px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 168px 0 40px; text-align: center; overflow: hidden; }
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
  animation: float 14s ease-in-out infinite;
}
.hero-orb.a { width: 460px; height: 460px; background: radial-gradient(circle, rgba(91,140,255,0.55), transparent 70%); top: -80px; left: 8%; }
.hero-orb.b { width: 420px; height: 420px; background: radial-gradient(circle, rgba(167,139,250,0.5), transparent 70%); top: 20px; right: 6%; animation-delay: -5s; }
.hero-orb.c { width: 360px; height: 360px; background: radial-gradient(circle, rgba(34,211,238,0.4), transparent 70%); top: 220px; left: 40%; animation-delay: -9s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(0, -26px); }
}

.hero h1 {
  font-size: clamp(38px, 6.4vw, 78px);
  margin: 26px auto 0;
  max-width: 15ch;
  font-weight: 660;
}
.hero .sub {
  margin: 26px auto 0;
  max-width: 60ch;
  font-size: clamp(16px, 2.1vw, 20px);
  color: var(--text-dim);
  line-height: 1.55;
  letter-spacing: -0.01em;
}
.hero-cta { margin-top: 36px; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.mas-note {
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--text-faint);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.mas-note svg { width: 15px; height: 15px; }

/* 数据条 */
.stats {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--border);
}
.stat { background: var(--bg); padding: 22px 16px; text-align: center; min-width: 0; }
.stat .v { font-family: var(--mono); font-size: clamp(22px, 3vw, 30px); font-weight: 600; letter-spacing: -0.02em; }
.stat .v.grad-text { font-weight: 640; }
.stat .l { margin-top: 6px; font-size: 12.5px; color: var(--text-dim); letter-spacing: 0.01em; }

/* ---------- 通用 section ---------- */
section { position: relative; }
.section-pad { padding: 96px 0; }
.section-head { max-width: 44rem; margin: 0 auto 52px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head h2 { font-size: clamp(28px, 4.4vw, 46px); margin-top: 16px; }
.section-head .sub { margin-top: 16px; color: var(--text-dim); font-size: clamp(15px, 1.9vw, 18px); }

/* 窗口外框（用于截图/视频） */
.window {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.window-bar .dots { display: flex; gap: 7px; }
.window-bar .dots span { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.window-bar .dots span:nth-child(1) { background: #ff5f57; }
.window-bar .dots span:nth-child(2) { background: #febc2e; }
.window-bar .dots span:nth-child(3) { background: #28c840; }
.window-bar .title { font-size: 12.5px; color: var(--text-faint); margin: 0 auto; font-family: var(--mono); letter-spacing: 0.02em; }
.window img { width: 100%; display: block; }

/* ---------- 演示视频 ---------- */
.video-wrap { max-width: 980px; margin: 0 auto; }
.demo-video { width: 100%; display: block; background: #000; aspect-ratio: 16 / 10; object-fit: cover; }
.video-note { text-align: center; margin-top: 16px; font-size: 13px; color: var(--text-faint); }

/* ---------- 能力区 ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  position: relative;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--grad-soft);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card .ico {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--accent);
  margin-bottom: 18px;
}
.card .ico svg { width: 22px; height: 22px; }
.card h3 { font-size: 18.5px; letter-spacing: -0.02em; line-height: 1.25; }
.card p { margin: 10px 0 0; color: var(--text-dim); font-size: 14.5px; line-height: 1.6; }

/* ---------- 展示区（交替行） ---------- */
.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 96px;
}
.showcase-row:last-child { margin-bottom: 0; }
.showcase-row.reverse .showcase-copy { order: 2; }
.showcase-copy h3 { font-size: clamp(24px, 3.2vw, 34px); }
.showcase-copy p { margin-top: 16px; color: var(--text-dim); font-size: 16.5px; line-height: 1.6; }
.showcase-copy .eyebrow { margin-bottom: 18px; }
.showcase-media { position: relative; }

/* guest 双图（安卓竖屏 + linux 横屏） */
.guest-duo { display: grid; grid-template-columns: 0.62fr 1fr; gap: 20px; align-items: center; }
.guest-phone {
  border: 1px solid var(--border);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
}
.guest-phone img { width: 100%; }

/* ---------- 技术区 ---------- */
.tech { border-top: 1px solid var(--border); background: var(--bg-2); }
.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.tech-list { display: flex; flex-direction: column; gap: 4px; }
.tech-item {
  display: flex;
  gap: 16px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--border);
}
.tech-item:last-child { border-bottom: 0; }
.tech-item .n { font-family: var(--mono); font-size: 13px; color: var(--accent); padding-top: 2px; flex: none; width: 28px; }
.tech-item h4 { margin: 0; font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; }
.tech-item p { margin: 6px 0 0; color: var(--text-dim); font-size: 14.5px; line-height: 1.55; }

/* ---------- 信任 / MAS ---------- */
.trust {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 44px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
.trust h2 { font-size: clamp(24px, 3.4vw, 36px); }
.trust p { margin-top: 16px; color: var(--text-dim); font-size: 16px; line-height: 1.6; }
.trust-badges { display: flex; flex-direction: column; gap: 12px; }
.trust-badge {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  font-size: 14.5px;
}
.trust-badge svg { width: 18px; height: 18px; color: var(--accent-3); flex: none; }

/* ---------- 最终 CTA ---------- */
.cta-final { text-align: center; }
.cta-card {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 72px 32px;
  overflow: hidden;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(91,140,255,0.16), transparent 70%),
    var(--bg-2);
}
.cta-card h2 { font-size: clamp(30px, 5vw, 54px); max-width: 18ch; margin: 0 auto; }
.cta-card p { margin: 20px auto 0; max-width: 48ch; color: var(--text-dim); font-size: clamp(15px, 2vw, 18px); }
.cta-card .hero-cta { margin-top: 34px; }
.cta-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 560;
}
.cta-badge svg { width: 18px; height: 18px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 56px 0 40px; margin-top: 96px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer .brand { font-size: 20px; }
.footer .tagline { margin-top: 14px; color: var(--text-dim); font-size: 14.5px; max-width: 30ch; }
.footer-links { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h5 { margin: 0 0 14px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); font-weight: 600; font-family: var(--mono); }
.footer-col a { display: block; padding: 5px 0; color: var(--text-dim); font-size: 14.5px; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  color: var(--text-faint); font-size: 13px;
}
.footer-bottom .made { display: inline-flex; align-items: center; gap: 7px; }

/* ---------- 滚动揭示动效 ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.06s; }
.reveal.d2 { transition-delay: 0.12s; }
.reveal.d3 { transition-delay: 0.18s; }
.reveal.d4 { transition-delay: 0.24s; }
.reveal.d5 { transition-delay: 0.3s; }

/* ---------- 语言可见性 ---------- */
:root[data-lang="en"] [lang="zh"] { display: none; }
:root[data-lang="zh"] [lang="en"] { display: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 940px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .showcase-row, .tech-grid, .trust { grid-template-columns: 1fr; gap: 32px; }
  .showcase-row.reverse .showcase-copy { order: 0; }
  .showcase-row { margin-bottom: 64px; }
  .nav-links { display: none; }
  .tech-grid > .section-head.left { margin-bottom: 0; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .hero { padding: 128px 0 24px; }
  .section-pad { padding: 68px 0; }
  .features { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .trust { padding: 28px; }
  .cta-card { padding: 48px 22px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .footer-links { gap: 32px; }
  /* 窄屏导航精简：保留品牌 + 主题 + 语言切换（Fam 要求语言切换常驻），
     收起 CTA 药丸，避免顶栏拥挤溢出——落地页本身有 hero CTA 兜底 */
  .nav .nav-actions .btn { display: none; }
  .nav-actions { gap: 8px; }
}
@media (max-width: 380px) {
  .seg button { padding: 5px 9px; }
  .nav-inner { gap: 8px; }
}
