/* MofanBrowser official site — shared shell */
:root {
  --brand: #0ea5e9;
  --brand-2: #0284c7;
  --brand-soft: #e0f2fe;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  --ok: #059669;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  --r: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(248, 250, 252, 0.86);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.02em;
}
.brand .logo {
  width: 36px; height: 36px; border-radius: 0;
  display: block; object-fit: contain;
  background: transparent; box-shadow: none;
}
.brand .logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  line-height: 1.15;
}
.brand .logo-text .cn {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
  background: linear-gradient(120deg, #0f172a 0%, #1a5a9a 55%, #0ea5e9 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand .logo-text .en {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: var(--brand-2);
}
.nav-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav-links a {
  padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 14px;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); background: #fff; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 12px; padding: 12px 18px; font-weight: 700; font-size: 14px; cursor: pointer;
  transition: .15s transform, .15s box-shadow, .15s background;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.28);
}
.btn-primary:hover { box-shadow: 0 14px 28px rgba(14, 165, 233, 0.35); }
.btn-ghost {
  background: #fff; color: var(--ink); border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: #cbd5e1; }
.btn-lg { padding: 14px 22px; font-size: 15px; border-radius: 14px; }

/* hero */
.hero {
  position: relative; overflow: hidden;
  padding: 72px 0 56px;
  background:
    radial-gradient(900px 420px at 12% -10%, #bae6fd 0%, transparent 55%),
    radial-gradient(700px 360px at 95% 0%, #dbeafe 0%, transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 36px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  color: var(--brand-2); font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
}
.hero h1 {
  margin: 16px 0 14px; font-size: clamp(32px, 5vw, 48px); line-height: 1.15;
  letter-spacing: -0.03em;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--brand), #0369a1);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin: 0 0 24px; color: var(--muted); font-size: 17px; max-width: 52ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.meta-row {
  display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: 13px; font-weight: 600;
}
.meta-row span::before { content: "●"; color: var(--brand); margin-right: 8px; font-size: 9px; }

.hero-card {
  background: rgba(255,255,255,0.9); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: var(--shadow); padding: 22px; backdrop-filter: blur(8px);
}
.fake-win {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #0b1220; color: #e2e8f0;
}
.fake-bar {
  display: flex; gap: 6px; align-items: center; padding: 10px 12px; background: #111827; border-bottom: 1px solid #1f2937;
}
.fake-bar i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.fake-bar i:nth-child(1){background:#f87171} .fake-bar i:nth-child(2){background:#fbbf24} .fake-bar i:nth-child(3){background:#34d399}
.fake-body { padding: 16px; display: grid; gap: 10px; }
.env-row {
  display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center;
  padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
}
.env-row b { font-size: 13px; }
.env-row small { color: #94a3b8; display: block; font-size: 11px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,0.15); }
.badge {
  font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 999px;
  background: rgba(14,165,233,0.15); color: #7dd3fc;
}

/* sections */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 36px; }
.section-head h2 { margin: 0 0 10px; font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.02em; }
.section-head p { margin: 0; color: var(--muted); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.03);
}
.card .ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-2); font-weight: 800; margin-bottom: 14px;
}
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }

.tags {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.tag {
  padding: 8px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  color: #334155; font-size: 13px; font-weight: 600;
}

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px;
}
.step .n {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-weight: 800; font-size: 13px; margin-bottom: 12px;
}
.step h3 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

.cta-band {
  margin: 20px 0 0; border-radius: 28px; padding: 42px 28px; text-align: center; color: #fff;
  background:
    radial-gradient(600px 200px at 20% 0%, rgba(255,255,255,0.18), transparent 60%),
    linear-gradient(135deg, #0369a1, #0ea5e9 55%, #38bdf8);
  box-shadow: var(--shadow);
}
.cta-band h2 { margin: 0 0 8px; font-size: 28px; }
.cta-band p { margin: 0 0 18px; opacity: 0.92; }
.cta-band .btn-primary {
  background: #fff; color: #0369a1; box-shadow: none;
}

/* download page */
.page-hero { padding: 48px 0 20px; text-align: center; }
.page-hero h1 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em; }
.page-hero p { margin: 0 auto; max-width: 54ch; color: var(--muted); }
.dl-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 28px 0 18px;
}
.dl-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px;
  box-shadow: 0 10px 28px rgba(15,23,42,.04); display: flex; flex-direction: column; gap: 10px;
  min-height: 240px;
}
.dl-card .os { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.dl-card .lbl { color: var(--muted); font-size: 13px; flex: 1; }
.dl-card .sz { color: var(--ok); font-weight: 700; font-size: 14px; min-height: 1.2em; }
.dl-card.gone { opacity: 0.62; }
.dl-card .soon { color: #94a3b8; font-size: 13px; font-weight: 600; }
.note-box {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px;
  color: var(--muted); font-size: 13px; line-height: 1.75;
}
.note-box b { color: var(--ink); }

/* footer */
.footer {
  border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 13px;
}
.footer-inner {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center;
}
.footer a { color: #334155; font-weight: 600; margin-left: 12px; }

@media (max-width: 900px) {
  .hero-grid, .grid-3, .steps, .dl-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .nav-links .hide-sm { display: none; }
}
