/* Reset, design tokens and shared typography. */
:root {
  --red: #e60012;
  --red-dark: #b80010;
  --blue: #1d5bba;
  --blue-dark: #123b7a;
  --navy: #12223b;
  --ink: #1b1b1b;
  --muted: #6b7280;
  --paper: #ffffff;
  --line: #e6e8eb;
  --max: 1200px;
  --header-h: 80px;
  --shadow: 0 12px 34px rgba(10, 20, 40, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

.section { padding: 88px 0; }
.section-dark {
  position: relative;
  color: #fff;
  background-color: #161b22;
  background-image: radial-gradient(rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 22px 22px;
}
.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,14,27,.22), rgba(7,14,27,.48));
  pointer-events: none;
}
.section-dark > .container { position: relative; z-index: 1; }

.section-head { text-align: center; margin-bottom: 46px; }
.section-head h2 {
  margin: 0 0 12px;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: 2px;
  line-height: 1.25;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.section-dark .section-head p { color: rgba(255,255,255,.68); }

.eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  transition: .25s ease;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn-outline { border-color: rgba(255,255,255,.6); color: #fff; background: transparent; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.12); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); }

.text-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.text-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.reveal { opacity: 0; transform: translateY(26px); transition: .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .container { width: min(calc(100% - 32px), var(--max)); }
  .section { padding: 64px 0; }
  .section-head h2 { font-size: 28px; }
}
