/* ============================================
   一枝云 ZeeGeo — Design Tokens
   蓝白科技风
   ============================================ */

:root {
  /* —— Surfaces —— 蓝白科技风 —— */
  --bg: oklch(0.985 0.008 240);         /* 冷白底 偏蓝 */
  --bg-2: oklch(0.965 0.012 235);       /* 卡片底 */
  --bg-3: oklch(0.93 0.018 230);        /* 强调卡片 */
  --bg-ink: oklch(0.18 0.04 250);       /* 深太空蓝黑 */
  --bg-ink-2: oklch(0.24 0.05 250);

  /* —— Foreground ———— */
  --fg: oklch(0.20 0.03 250);           /* 主文字 深蓝黑 */
  --fg-2: oklch(0.40 0.025 245);        /* 次级 */
  --fg-3: oklch(0.62 0.02 240);         /* 弱化 */
  --fg-on-ink: oklch(0.97 0.008 240);

  /* —— Accent: 科技蓝 ———— */
  --accent: oklch(0.58 0.20 250);       /* 主蓝 */
  --accent-2: oklch(0.50 0.22 252);     /* 深蓝 hover */
  --accent-soft: oklch(0.94 0.04 245);  /* 淡蓝底 */
  --accent-ink: oklch(0.35 0.14 250);
  --accent-glow: oklch(0.65 0.22 245);  /* 发光蓝 */
  --cyan: oklch(0.78 0.15 210);         /* 青调点缀 */

  /* —— 辅助 ———— */
  --good: oklch(0.65 0.16 160);
  --warn: oklch(0.72 0.14 75);
  --bad: oklch(0.62 0.18 25);

  /* —— Border / Divider ———— */
  --line: oklch(0.90 0.012 235);
  --line-2: oklch(0.84 0.015 230);
  --line-strong: oklch(0.55 0.04 245);

  /* —— Radii ———— */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* —— Shadow ———— */
  --shadow-sm: 0 1px 2px oklch(0.3 0.02 50 / 0.06), 0 2px 8px oklch(0.3 0.02 50 / 0.04);
  --shadow-md: 0 2px 6px oklch(0.3 0.02 50 / 0.08), 0 12px 32px oklch(0.3 0.02 50 / 0.06);
  --shadow-lg: 0 4px 12px oklch(0.3 0.02 50 / 0.10), 0 24px 60px oklch(0.3 0.02 50 / 0.08);

  /* —— Type ———— */
  --font-sans: 'HarmonyOS Sans SC', 'PingFang SC', 'Noto Sans SC', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'IBM Plex Mono', Menlo, Consolas, monospace;
  --font-en: 'Inter', system-ui, sans-serif;

  /* —— Layout ———— */
  --maxw: 1240px;
  --pad-x: clamp(20px, 5vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'palt' 1;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--accent); color: var(--fg-on-ink); }

/* —— Tech grid background ———— */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    linear-gradient(oklch(0.55 0.18 250 / 0.04) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.55 0.18 250 / 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse at top, black, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at top, black, transparent 80%);
}
body > * { position: relative; z-index: 2; }

/* ============================================
   Common utilities
   ============================================ */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-ink);
  padding: 6px 12px;
  background: var(--accent-soft);
  border-radius: var(--r-pill);
}

.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.4); }
}

.h-display {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  font-size: clamp(36px, 5.5vw, 72px);
  margin: 0;
}
.h-display em {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
  position: relative;
}
.h-display em::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0.05em;
  height: 0.18em;
  background: var(--accent-soft);
  z-index: -1;
}

.h-section {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  font-size: clamp(28px, 3.8vw, 48px);
  margin: 0 0 16px;
}
.h-section em {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
}

.lede {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--fg-2);
  max-width: 60ch;
  line-height: 1.65;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--bg-ink);
  color: var(--fg-on-ink);
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-accent {
  background: var(--accent);
  color: white;
}
.btn-accent:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px oklch(0.6 0.18 40 / 0.3);
}
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover {
  background: var(--bg-2);
  border-color: var(--line-strong);
}

.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* —— Section spacing ———— */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding: clamp(40px, 6vw, 80px) 0; }

/* —— Header ———— */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: oklch(0.985 0.008 240 / 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-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;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  color: var(--accent);
  position: relative;
  flex-shrink: 0;
  background: transparent;
}
.brand-mark svg,
.brand-mark img {
  width: 100%; height: 100%;
  display: block;
  object-fit: contain;
}
.brand-mark::after { content: none; display: none; }
.brand-en {
  font-family: var(--font-en);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}
.nav-links {
  display: flex; align-items: center; gap: 28px;
}
.nav-links a {
  font-size: 14px;
  color: var(--fg-2);
  transition: color 0.15s;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--fg); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -22px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-cta .btn { padding: 9px 18px; font-size: 13px; }

@media (max-width: 800px) {
  .nav-links { display: none; }
}

/* —— Footer ———— */
.site-footer {
  background: var(--bg-ink);
  color: var(--fg-on-ink);
  padding: 64px 0 32px;
  margin-top: 80px;
}
.site-footer a { color: oklch(0.85 0.01 70); transition: color .15s; }
.site-footer a:hover { color: var(--accent); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid oklch(0.4 0.02 50);
}
.footer-grid h4 {
  font-size: 13px;
  font-family: var(--font-en);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: oklch(0.7 0.02 60);
  margin: 0 0 16px;
  font-weight: 600;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-grid p { font-size: 14px; color: oklch(0.78 0.012 65); margin: 12px 0 0; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  padding-top: 24px;
  font-size: 12px;
  color: oklch(0.65 0.02 60);
  font-family: var(--font-en);
  letter-spacing: 0.05em;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* —— Animation utilities ———— */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(.2,.7,.2,1), transform 0.6s cubic-bezier(.2,.7,.2,1);
}
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.40s; }

/* —— Confidential ribbon helpers ———— */
.tag-num {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--fg-3);
  text-transform: uppercase;
}

/* —— Card primitives ———— */
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
}
.card-warm {
  background: oklch(0.965 0.018 70);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
}

/* —— Decorative seal/stamp ———— */
.seal {
  display: inline-grid; place-items: center;
  width: 64px; height: 64px;
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: 12px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 26px;
  background: oklch(0.97 0.04 50 / 0.5);
  transform: rotate(-4deg);
  letter-spacing: 0;
  position: relative;
}
.seal::after {
  content: '';
  position: absolute; inset: 4px;
  border: 1px dashed var(--accent);
  border-radius: 8px;
  opacity: 0.5;
}
