/* fajia — shared styles (light theme) */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --text: #1a1d24;
  --muted: #6b7280;
  --line: #e6e8ef;
  --brand: #4f46e5;
  --brand-dark: #4338ca;
  --brand-soft: #eef0ff;
  --radius: 14px;
  --maxw: 880px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.2px;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), #7c6cff);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14.5px;
}

.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--brand); text-decoration: none; }

.nav-cta {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark) !important;
  font-weight: 600;
}
.nav-cta:hover { background: #e3e6ff; text-decoration: none !important; }

/* ---- English helper text ---- */
.en {
  color: var(--muted);
  font-size: 0.93em;
}
p.en { display: block; margin-top: -6px; }

/* ---- Hero ---- */
.hero {
  padding: 84px 0 64px;
  background:
    radial-gradient(900px 380px at 20% -10%, #eef0ff 0%, rgba(238,240,255,0) 70%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 7vw, 62px);
  line-height: 1.08;
  letter-spacing: -1px;
  font-weight: 800;
}

.lead {
  max-width: 620px;
  margin: 0 0 6px;
  font-size: 18px;
  color: #3b4152;
}
.lead.en { color: var(--muted); font-size: 16px; margin-bottom: 32px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.25);
}
.btn-primary:hover { background: var(--brand-dark); color: #fff; }

.btn-ghost {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--bg-alt); color: var(--text); }

/* ---- Sections ---- */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section h2 {
  margin: 0 0 18px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.section p { color: #3b4152; margin: 0 0 14px; }
.section p.en { color: var(--muted); }
.section .btn { margin-top: 14px; }

/* ---- Cards ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.card h3 { margin: 0 0 10px; font-size: 17px; font-weight: 700; }
.card h3 .en { font-size: 0.85em; font-weight: 500; }
.card p { margin: 0 0 8px; font-size: 15px; }
.card p.en { font-size: 13.5px; margin: 0; }

/* ---- Email ---- */
.email { font-size: 17px; font-weight: 600; }

/* ---- Legal document ---- */
.doc { padding: 56px 24px 72px; max-width: 820px; }

.doc-head {
  padding-bottom: 22px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.doc-head h1 { margin: 0 0 10px; font-size: 34px; font-weight: 800; letter-spacing: -0.5px; }
.doc-head h1 .en { display: block; font-size: 0.55em; font-weight: 600; margin-top: 6px; }
.meta { margin: 0; color: var(--muted); font-size: 14.5px; }

.intro { margin: 0 0 4px; }
.intro.en { color: var(--muted); font-size: 15px; }

.doc section { margin: 36px 0 0; }

.doc h2 {
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.doc h2 .en { font-weight: 500; font-size: 0.86em; }

.doc p { margin: 0 0 10px; color: #3b4152; }
.doc p.en { color: var(--muted); font-size: 15px; margin-bottom: 16px; }

.doc ul { margin: 0 0 14px; padding-left: 22px; color: #3b4152; }
.doc li { margin-bottom: 6px; }

.callout {
  padding: 22px 24px;
  border: 1px solid #dcd9ff;
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: #f9f9ff;
}
.callout h2 { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.copyright { margin: 0; color: var(--muted); font-size: 14px; }
.footer-links { display: flex; gap: 20px; font-size: 14px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--brand); }

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .nav-links { gap: 14px; font-size: 13.5px; }
  .nav-links a .en { display: none; }
  .hero { padding: 56px 0 44px; }
  .section { padding: 48px 0; }
  .doc { padding: 40px 20px 56px; }
}
