/* ErisLink company site — shared styles.
   Static, dependency-free. Dark, modern, responsive.
   Accent #6E80F8 matches the in-app primary color for brand consistency. */

:root {
  --bg: #0b0d12;
  --bg-soft: #11141c;
  --surface: #161a24;
  --surface-2: #1c212d;
  --border: #232a38;
  --text: #e7eaf0;
  --text-muted: #9aa3b4;
  --text-dim: #6b7385;
  --accent: #6e80f8;
  --accent-soft: rgba(110, 128, 248, 0.14);
  --green: #13c25a;
  --radius: 16px;
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- language toggle ---------- */
html[data-lang="en"] .lang-zh { display: none !important; }
html[data-lang="zh"] .lang-en { display: none !important; }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}
.lang-switch button {
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font: inherit;
  font-size: 13px;
  padding: 6px 14px;
  cursor: pointer;
}
html[data-lang="en"] .lang-switch button[data-set="en"],
html[data-lang="zh"] .lang-switch button[data-set="zh"] {
  background: var(--accent);
  color: #fff;
}

/* ---------- header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 13, 18, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
header.site .inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand .dot {
  width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #aeb8ff, var(--accent) 60%, #3a47b8);
  box-shadow: 0 0 18px var(--accent-soft);
}
.brand .logo {
  width: 28px; height: 28px;
  border-radius: 7px;
  display: block;
  box-shadow: 0 0 16px var(--accent-soft);
}
header.site nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}
header.site nav a { color: var(--text-muted); font-size: 14px; }
header.site nav a:hover { color: var(--text); text-decoration: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 72px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -200px 0 auto 0;
  height: 600px;
  background: radial-gradient(60% 60% at 50% 0%, rgba(110, 128, 248, 0.22), transparent 70%);
  pointer-events: none;
}
.hero h1 {
  position: relative;
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  max-width: 760px;
}
.hero p.lead {
  position: relative;
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 0 28px;
}
.hero .cta {
  position: relative;
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn:hover { text-decoration: none; border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }

/* ---------- sections ---------- */
section.block { padding: 64px 0; border-top: 1px solid var(--border); }
section.block h2 {
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
section.block .sub { color: var(--text-muted); margin: 0 0 36px; max-width: 640px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 { margin: 0 0 8px; font-size: 17px; }
.card p { margin: 0; color: var(--text-muted); font-size: 14.5px; }
.card .ico {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--accent-soft);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px; font-size: 19px;
}

.note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 18px 20px;
  color: var(--text-muted);
  font-size: 14.5px;
}

/* ---------- legal pages ---------- */
.legal { padding: 56px 0 80px; }
.legal h1 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 6px; }
.legal .updated { color: var(--text-dim); font-size: 14px; margin: 0 0 36px; }
.legal h2 {
  font-size: 19px;
  margin: 34px 0 10px;
  padding-top: 8px;
}
.legal h2 .num { color: var(--accent); margin-right: 8px; }
.legal p, .legal li { color: var(--text-muted); font-size: 15px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--text); }

/* ---------- footer ---------- */
footer.site {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  color: var(--text-dim);
  font-size: 13.5px;
}
footer.site .inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  align-items: center;
}
footer.site nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer.site nav a { color: var(--text-muted); }
footer.site .spacer { flex: 1 1 auto; }

@media (max-width: 640px) {
  header.site nav { gap: 14px; }
  header.site nav a.hide-sm { display: none; }
  .hero { padding: 64px 0 48px; }
  section.block { padding: 48px 0; }
}
