:root {
  --bg: #0d1017;
  --bg-soft: #131824;
  --card: #161c2a;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e8ebf2;
  --muted: #9aa3b5;
  --accent: #f0b23e;
  --accent-soft: rgba(240, 178, 62, 0.12);
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", "PingFang TC", "PingFang HK", "Microsoft JhengHei",
    "Noto Sans TC", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* language toggle: html[data-lang] decides which set is visible */
html[data-lang="zh"] .l-en { display: none !important; }
html[data-lang="en"] .l-zh { display: none !important; }

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

.container { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(13, 16, 23, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  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; letter-spacing: 0.08em; }
.brand:hover { text-decoration: none; }
.brand svg { display: block; }
.brand small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 0.02em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); font-size: 15px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.lang-btn {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  font: inherit; font-size: 13px; padding: 6px 14px; border-radius: 999px;
  cursor: pointer; transition: color 0.15s, border-color 0.15s;
}
.lang-btn:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- hero ---------- */
.hero {
  position: relative; text-align: center;
  padding: 110px 24px 90px;
  background:
    radial-gradient(600px 300px at 50% -50px, rgba(240, 178, 62, 0.14), transparent 70%),
    radial-gradient(800px 400px at 85% 20%, rgba(90, 120, 255, 0.07), transparent 70%);
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent);
  background: var(--accent-soft); border: 1px solid rgba(240, 178, 62, 0.25);
  padding: 6px 16px; border-radius: 999px; margin-bottom: 28px;
}
.hero h1 { font-size: 52px; line-height: 1.15; letter-spacing: 0.01em; }
.hero h1 .suffix {
  display: block; font-size: 19px; font-weight: 500; color: var(--muted);
  letter-spacing: 0.35em; text-transform: uppercase; margin-top: 10px;
}
.hero .tagline { font-size: 21px; color: var(--text); margin-top: 34px; font-weight: 500; }
.hero .sub { font-size: 16px; color: var(--muted); max-width: 640px; margin: 14px auto 0; }
.btn {
  display: inline-block; margin-top: 36px; padding: 12px 34px;
  background: var(--accent); color: #16130a; font-weight: 600; font-size: 15px;
  border-radius: 10px; transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(240, 178, 62, 0.25); }

/* ---------- sections ---------- */
section { padding: 78px 0; }
section + section { border-top: 1px solid var(--line); }
.section-title { font-size: 30px; margin-bottom: 30px; }
.section-title::after {
  content: ""; display: block; width: 44px; height: 3px;
  background: var(--accent); border-radius: 2px; margin-top: 14px;
}
.about p { color: var(--muted); max-width: 760px; margin-bottom: 18px; font-size: 16.5px; }
.about p strong { color: var(--text); font-weight: 600; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px;
  transition: transform 0.15s, border-color 0.15s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(240, 178, 62, 0.4); }
.card .icon {
  width: 46px; height: 46px; border-radius: 11px; display: flex;
  align-items: center; justify-content: center;
  background: var(--accent-soft); margin-bottom: 20px;
}
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--muted); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 40px; }
.contact-item {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px;
}
.contact-item .label {
  font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.contact-item .value { font-size: 16px; color: var(--text); word-break: break-word; }
.contact-item .value.en-address { color: var(--muted); font-size: 15px; }
.contact-lead { color: var(--muted); margin-top: 34px; font-size: 16px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 36px 0 44px; background: var(--bg-soft); }
.foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot .brand small { margin-top: 2px; }
.foot-links { display: flex; flex-direction: column; gap: 8px; font-size: 14px; align-items: flex-end; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--accent); }
.copyright { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }

/* ---------- privacy page ---------- */
.doc { max-width: 800px; }
.doc h2 { font-size: 24px; margin: 44px 0 14px; }
.doc h2:first-of-type { margin-top: 34px; }
.doc p, .doc li { color: var(--muted); font-size: 15.5px; margin-bottom: 12px; }
.doc ul { padding-left: 22px; margin-bottom: 14px; }
.doc strong { color: var(--text); }
.page-head { padding: 64px 0 8px; }
.page-head h1 { font-size: 36px; }
.page-head .eyebrow { margin-bottom: 20px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .nav-links a:not(.lang-btn) { display: none; }
  .foot { flex-direction: column; }
  .foot-links { align-items: flex-start; }
}
