@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg-primary: #050A18;
  --bg-secondary: #0A1228;
  --bg-card: #0D1730;
  --bg-card-hover: #111e3a;
  --blue-primary: #1B6CF2;
  --blue-bright: #3B8DFF;
  --blue-glow: rgba(27,108,242,0.15);
  --blue-glow-strong: rgba(27,108,242,0.3);
  --gold: #F0C844;
  --gold-dim: rgba(240,200,68,0.15);
  --text-primary: #E8F0FF;
  --text-secondary: #8899BB;
  --text-muted: #4A5A7A;
  --border: rgba(59,141,255,0.12);
  --border-bright: rgba(59,141,255,0.3);
  --nav-height: 68px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── NAV ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  height: var(--nav-height);
  background: rgba(5,10,24,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 40px;
}
.nav-inner {
  max-width: 1360px; width: 100%; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px; font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
.logo-mark {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}
.logo-mark-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.logo-mark--sm { width: 28px; height: 28px; }
.logo-mark--lg { width: 40px; height: 40px; }
.footer-logo .logo-mark { width: 28px; height: 28px; }
.nav-logo-mark,
.logo-mark-char,
.logo-mark-arc { display: none; }
.nav-links {
  display: flex; align-items: center; gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 13.5px; font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.02em;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.nav-links a.active {
  color: var(--blue-bright);
}
.nav-cta {
  background: var(--blue-primary);
  color: white !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 13px !important;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--blue-bright) !important; color: white !important; }

/* Marketing site icons (replace emoji glyphs) */
.site-icon {
  width: 1.15em;
  height: 1.15em;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.site-icon--sm { width: 16px; height: 16px; }
.site-icon--md { width: 22px; height: 22px; }
.site-icon--lg { width: 28px; height: 28px; }
.site-icon--xl { width: 36px; height: 36px; }

.hero-badge-icon,
.mission-icon,
.flow-box-icon,
.product-icon,
.value-icon,
.contact-method-icon,
.platform-node-icon,
.hw-icon,
.service-icon,
.partner-benefit-icon,
.layer-icon,
.gets-card-icon,
.guarantee-icon,
.gov-icon,
.value-prop-icon,
.benefit-icon {
  color: var(--blue-bright);
  line-height: 0;
}

.nav-cta-ghost {
  color: var(--text-secondary) !important;
  border: 1px solid var(--border-bright);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px !important;
  font-weight: 600 !important;
  transition: color 0.2s, border-color 0.2s !important;
}
.nav-cta-ghost:hover {
  color: var(--text-primary) !important;
  border-color: var(--blue-bright) !important;
}

.nav-actions {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-platform {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--blue-primary);
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
}
.nav-platform:hover { background: var(--blue-bright); color: #fff !important; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: var(--text-primary);
  transition: transform 0.2s, opacity 0.2s;
}
.nav.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.nav-panel {
  display: none;
}
.nav-backdrop {
  display: none;
  position: fixed;
  inset: var(--nav-height) 0 0;
  background: rgba(5, 10, 24, 0.55);
  z-index: 998;
}
body.nav-open .nav-backdrop { display: block; }

/* ─── PAGE WRAPPER ─── */
.page-wrapper {
  padding-top: var(--nav-height);
  min-height: 100vh;
}

/* ─── CONTAINERS ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ─── SECTION ─── */
.section {
  padding: 96px 0;
}
.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 11px; letter-spacing: 0.18em;
  color: var(--blue-bright);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.7;
}

/* ─── CARDS ─── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}
.card:hover {
  border-color: var(--border-bright);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

/* ─── STAT CHIP ─── */
.stat-chip {
  display: inline-flex; align-items: baseline; gap: 6px;
}
.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 42px; font-weight: 700;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat-unit {
  font-size: 14px; color: var(--text-secondary); font-weight: 400;
}
.stat-label {
  font-size: 13px; color: var(--text-muted);
  margin-top: 6px;
}

/* ─── TAG ─── */
.tag {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--blue-glow);
  color: var(--blue-bright);
  border: 1px solid rgba(59,141,255,0.2);
}

/* ─── DIVIDER ─── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ─── BTN ─── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-primary);
  color: white;
  font-size: 14px; font-weight: 600;
  padding: 13px 28px;
  border-radius: 8px;
  text-decoration: none;
  border: none; cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  letter-spacing: 0.01em;
}
.btn-primary:hover { background: var(--blue-bright); transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px; font-weight: 500;
  padding: 13px 28px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid var(--border-bright);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--text-primary); border-color: var(--blue-bright); }

/* ─── GRID ─── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ─── GLOW LINE ─── */
.glow-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-primary), transparent);
  opacity: 0.6;
}

/* ─── HERO GRADIENT BG ─── */
.hero-bg {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
}

/* ─── FOOTER ─── */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  background: var(--bg-primary);
}
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 40px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 24px;
}
.footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px; font-weight: 700; color: var(--text-primary);
  display: flex; align-items: center; gap: 8px;
}
.footer-links {
  display: flex; gap: 32px; list-style: none;
}
.footer-links a {
  font-size: 13px; color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-secondary); }
.footer-copy { font-size: 12px; color: var(--text-muted); }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.anim-fade-up { animation: fadeUp 0.7s ease both; }
.anim-delay-1 { animation-delay: 0.1s; }
.anim-delay-2 { animation-delay: 0.2s; }
.anim-delay-3 { animation-delay: 0.3s; }
.anim-delay-4 { animation-delay: 0.4s; }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .nav { padding: 0 16px; overflow: visible; }
  .nav-actions { display: inline-flex; }
  .nav-toggle { display: inline-flex; }
  /* Desktop-style inline links move into the external panel on mobile. */
  .nav-inner > .nav-links { display: none !important; }
  .nav-panel {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    z-index: 999;
    padding: 8px 16px 20px;
    background: rgba(5, 10, 24, 0.98);
    border-bottom: 1px solid var(--border);
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-panel.is-open { display: block; }
  .nav-panel .nav-links {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .nav-panel .nav-links li { width: 100%; }
  .nav-panel .nav-links a {
    display: block;
    padding: 14px 4px;
    font-size: 15px;
    border-bottom: 1px solid var(--border);
  }
  .nav-panel .nav-links li:last-child a { border-bottom: none; }
  .nav-panel .nav-cta,
  .nav-panel .nav-cta-ghost {
    margin-top: 8px;
    text-align: center;
    border-bottom: none !important;
  }
  /* Top bar already shows 进入平台 — hide duplicate in the drawer. */
  .nav-panel .nav-links-platform { display: none; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
  .nav-platform { padding: 8px 12px; font-size: 12.5px; }
}
