:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #DBEAFE;
  --text: #0F172A;
  --text-muted: #475569;
  --bg: #FFFFFF;
  --bg-alt: #F8FAFC;
  --border: #E2E8F0;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  --max-w: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

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

/* Nav */
.nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.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; }
.brand-logo { width: 32px; height: 32px; border-radius: 8px; }
.brand-name { font-size: 18px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--text-muted); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--primary); }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--primary-light) 0%, #FFFFFF 100%);
  padding: 72px 0 96px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: 44px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.hero .accent { color: var(--primary); }
.hero .lead {
  margin-top: 20px;
  font-size: 18px;
  color: var(--text-muted);
  max-width: 520px;
}
.cta-row { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.cta-row.center { justify-content: center; }

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-ghost:hover { background: var(--primary-light); }
.btn-disabled { opacity: 0.6; cursor: not-allowed; background: var(--text-muted); }
.btn-disabled:hover { background: var(--text-muted); transform: none; }

.hero-visual { display: flex; justify-content: center; }
.hero-logo {
  width: 220px; height: 220px;
  border-radius: 44px;
  box-shadow: var(--shadow);
}

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 48px;
  letter-spacing: -0.3px;
}
.lead { color: var(--text-muted); font-size: 17px; }
.text-center { text-align: center; }

/* Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}
.card-icon { font-size: 32px; margin-bottom: 12px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 14px; }

/* Contact */
.contact-box {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
}
.contact-box p { margin-bottom: 10px; }

/* Footer */
.footer {
  background: #0F172A;
  color: #CBD5E1;
  padding: 32px 0;
  font-size: 14px;
}
.footer a { color: #CBD5E1; }
.footer a:hover { color: #fff; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer p { margin-bottom: 4px; }

/* Legal pages */
.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.legal h1 { font-size: 32px; margin-bottom: 8px; }
.legal .meta { color: var(--text-muted); margin-bottom: 32px; font-size: 14px; }
.legal h2 { font-size: 20px; margin-top: 32px; margin-bottom: 12px; }
.legal p, .legal li { color: #334155; margin-bottom: 12px; }
.legal ul { padding-left: 20px; }
.legal a.back { display: inline-block; margin-bottom: 24px; color: var(--primary); }

/* Responsive */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text .cta-row { justify-content: center; }
  .hero h1 { font-size: 32px; }
  .hero-logo { width: 160px; height: 160px; border-radius: 32px; }
  .grid { grid-template-columns: 1fr; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 14px; }
  .section { padding: 56px 0; }
  .section-title { font-size: 26px; margin-bottom: 32px; }
}
