:root {
  --bg: #060d1a;
  --bg-elevated: #0b1528;
  --surface: rgba(14, 28, 52, 0.72);
  --surface-solid: #0e1c34;
  --ink: #e8f1ff;
  --ink-soft: #c5d5ec;
  --muted: #8fa3c0;
  --line: rgba(120, 170, 255, 0.16);
  --line-strong: rgba(120, 170, 255, 0.28);
  --brand: #3ecbff;
  --brand-deep: #1aa8e0;
  --brand-soft: rgba(62, 203, 255, 0.12);
  --accent: #5b8cff;
  --accent-2: #22d3c5;
  --accent-soft: rgba(91, 140, 255, 0.14);
  --ok: #34d399;
  --ok-soft: rgba(52, 211, 153, 0.12);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, 0.12);
  --shadow-sm: 0 0 0 1px rgba(120, 170, 255, 0.08);
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 28px 80px rgba(0, 10, 40, 0.55);
  --glow: 0 0 40px rgba(62, 203, 255, 0.25);
  --radius: 16px;
  --radius-lg: 24px;
  --max: 1120px;
  --header-h: 72px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --display: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 60% at 10% -10%, rgba(62, 203, 255, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 0%, rgba(91, 140, 255, 0.16), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(34, 211, 197, 0.08), transparent 55%),
    linear-gradient(180deg, #07101f 0%, var(--bg) 40%, #050a14 100%);
  background-attachment: fixed;
  line-height: 1.75;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(120, 170, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 170, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}

body > * { position: relative; z-index: 1; }
body.nav-open { overflow: hidden; }

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}
a:hover { color: #9ae6ff; }
img { max-width: 100%; height: auto; display: block; }

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}
@media (max-width: 640px) {
  .container { width: calc(100% - 28px); }
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #041018; padding: 10px 14px; border-radius: 8px;
}
.skip:focus { left: 12px; top: 12px; }

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--header-h);
  background: rgba(6, 13, 26, 0.72);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(6, 13, 26, 0.92);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
  position: relative;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-decoration: none !important;
  color: var(--ink);
  flex-shrink: 0;
  z-index: 82;
}
.brand strong {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.3;
  background: linear-gradient(90deg, #fff, #9ae6ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.nav-links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li { margin: 0; }
.nav-links a {
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-links a:hover {
  color: var(--ink);
  background: rgba(62, 203, 255, 0.1);
}
.nav-links a.active {
  color: var(--brand);
  background: var(--brand-soft);
  box-shadow: inset 0 -2px 0 var(--brand);
}
.nav-cta {
  background: linear-gradient(135deg, #3ecbff 0%, #5b8cff 55%, #22d3c5 100%) !important;
  color: #041018 !important;
  margin-left: 6px;
  box-shadow: var(--glow);
  font-weight: 750 !important;
}
.nav-cta:hover {
  color: #041018 !important;
  filter: brightness(1.08);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: rgba(14, 28, 52, 0.9);
  border-radius: 12px;
  cursor: pointer;
  z-index: 82;
}
.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 18px;
}
.nav-toggle-bars i {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
body.nav-open .nav-toggle-bars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle-bars i:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle-bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 16, 0.72);
  z-index: 79;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
body.nav-open .nav-backdrop {
  display: block;
  opacity: 1;
}

/* ========== Hero ========== */
.hero {
  padding: clamp(20px, 4vw, 40px) 0 clamp(12px, 2vw, 20px);
}
.hero-panel {
  position: relative;
  overflow: hidden;
  color: #f4fbff;
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 64px) clamp(22px, 4vw, 52px);
  box-shadow: var(--shadow-lg), var(--glow);
  border: 1px solid rgba(120, 170, 255, 0.22);
  background:
    radial-gradient(ellipse 80% 70% at 85% 15%, rgba(62, 203, 255, 0.28), transparent 50%),
    radial-gradient(ellipse 60% 50% at 10% 90%, rgba(91, 140, 255, 0.22), transparent 55%),
    linear-gradient(145deg, #0a1a36 0%, #0c2348 45%, #0a2a40 100%);
  animation: heroIn 0.7s var(--ease) both;
  min-height: min(72vh, 560px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.35) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,0.25) 0 1px, transparent 2px),
    radial-gradient(circle at 40% 80%, rgba(255,255,255,0.2) 0 1px, transparent 2px),
    radial-gradient(circle at 85% 40%, rgba(255,255,255,0.3) 0 1px, transparent 2px);
  background-size: 180px 180px, 220px 220px, 160px 160px, 200px 200px;
  opacity: 0.55;
  pointer-events: none;
  animation: driftDots 28s linear infinite;
}
.hero-panel::after {
  content: "";
  position: absolute;
  right: -100px;
  top: -120px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(62, 203, 255, 0.12);
  filter: blur(10px);
  animation: floatOrb 12s ease-in-out infinite;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 1;
  width: fit-content;
}
.hero h1 {
  position: relative;
  z-index: 1;
  margin: 18px 0 14px;
  font-family: var(--display);
  font-size: clamp(28px, 5.2vw, 48px);
  line-height: 1.18;
  letter-spacing: -0.03em;
  font-weight: 800;
  max-width: 16em;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}
.hero .lead {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 42em;
  color: rgba(232, 241, 255, 0.88);
  font-size: clamp(14.5px, 1.6vw, 16.5px);
  line-height: 1.7;
}
.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none !important;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: linear-gradient(135deg, #fff 0%, #d9f4ff 100%);
  color: #062238 !important;
  box-shadow: 0 10px 30px rgba(62, 203, 255, 0.35);
}
.btn-primary:hover {
  color: #062238 !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(62, 203, 255, 0.45);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff !important;
}

.stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 28px;
}
.stat {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 14px 12px;
  backdrop-filter: blur(10px);
}
.stat:hover { background: rgba(255, 255, 255, 0.12); }
.stat b {
  display: block;
  font-size: clamp(18px, 2vw, 22px);
  margin-bottom: 4px;
  font-weight: 800;
  color: #9ae6ff;
}
.stat span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.4;
}

.hero-contact {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}
.hero-contact a {
  color: #9ae6ff !important;
  text-decoration: none !important;
  font-weight: 700;
  border-bottom: 1px solid rgba(154, 230, 255, 0.35);
}

/* ========== Sections & cards ========== */
.section {
  padding: clamp(28px, 4vw, 48px) 0;
}
.section-head { margin-bottom: 20px; }
.section-head h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 52em;
  font-size: 15px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 2.5vw, 24px);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}
.card .meta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid rgba(62, 203, 255, 0.2);
}
.chip.warn {
  background: var(--warn-soft);
  color: var(--warn);
  border-color: rgba(251, 191, 36, 0.25);
}
.chip.ok {
  background: var(--ok-soft);
  color: var(--ok);
  border-color: rgba(52, 211, 153, 0.25);
}

.card-link {
  display: block;
  text-decoration: none !important;
  color: inherit;
  height: 100%;
}
.card-link:hover {
  transform: translateY(-4px);
  border-color: rgba(62, 203, 255, 0.4);
  box-shadow: var(--shadow), 0 0 24px rgba(62, 203, 255, 0.12);
}
.card-link .more {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 750;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.card-link:hover .more { color: #9ae6ff; }

/* ========== Article pages ========== */
.page-hero {
  padding: clamp(24px, 4vw, 40px) 0 12px;
}
.page-hero .crumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.page-hero .crumb a {
  color: var(--muted);
  text-decoration: none;
}
.page-hero .crumb a:hover { color: var(--brand); }
.page-hero h1 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.25;
  letter-spacing: -0.03em;
  font-weight: 800;
  max-width: 18em;
  color: var(--ink);
}
.page-hero .lead {
  margin: 0;
  color: var(--muted);
  max-width: 48em;
  font-size: clamp(14.5px, 1.5vw, 16px);
}
.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}
.page-meta span {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: rgba(14, 28, 52, 0.8);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
  padding-bottom: clamp(40px, 6vw, 64px);
}
.article {
  background: rgba(12, 24, 46, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 36px);
  box-shadow: var(--shadow);
  min-width: 0;
  backdrop-filter: blur(10px);
}
.answer-box {
  background: linear-gradient(165deg, rgba(62, 203, 255, 0.12) 0%, rgba(91, 140, 255, 0.08) 100%);
  border: 1px solid rgba(62, 203, 255, 0.28);
  border-left: 4px solid var(--brand);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 0 0 24px;
}
.answer-box strong {
  display: block;
  margin-bottom: 6px;
  color: var(--brand);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.answer-box p { margin: 0; color: var(--ink); font-size: 15.5px; }

.article h2 {
  margin: 32px 0 12px;
  font-size: clamp(19px, 2.2vw, 22px);
  border-top: 1px solid var(--line);
  padding-top: 24px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.article h2:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 8px;
}
.article h3 {
  margin: 20px 0 8px;
  font-size: 17px;
  color: var(--ink-soft);
}
.article p { margin: 0 0 14px; color: var(--ink-soft); }
.article ul, .article ol {
  margin: 0 0 16px;
  padding-left: 1.25em;
  color: var(--ink-soft);
}
.article li { margin-bottom: 8px; }

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 12px 0 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.article table,
.table-wrap table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  margin: 0;
  font-size: 14px;
  display: table;
}
.article > table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 12px 0 18px;
  border-radius: 12px;
}
.article th, .article td,
.table-wrap th, .table-wrap td {
  border: 1px solid var(--line);
  padding: 11px 13px;
  text-align: left;
  vertical-align: top;
  min-width: 96px;
}
.article th, .table-wrap th {
  background: rgba(62, 203, 255, 0.1);
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.article td, .table-wrap td {
  background: rgba(8, 16, 32, 0.55);
  color: var(--ink-soft);
}

.callout {
  background: var(--warn-soft);
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 14px 0 18px;
  color: #fde68a;
  font-size: 14.5px;
}
.callout.ok {
  background: var(--ok-soft);
  border-color: rgba(52, 211, 153, 0.28);
  color: #a7f3d0;
}
.source-note {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px dashed var(--line-strong);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}
.icp-record {
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.icp-record a {
  color: inherit;
  text-decoration: none;
}
.icp-record a:hover {
  color: var(--brand);
}

.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.sidebar .box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 12px;
  backdrop-filter: blur(10px);
}
.sidebar h4 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-transform: uppercase;
}
.sidebar ul {
  margin: 0;
  padding-left: 1.1em;
  font-size: 13.5px;
}
.sidebar li { margin-bottom: 8px; }
.sidebar a {
  text-decoration: none;
  color: var(--muted);
}
.sidebar a:hover { color: var(--brand); }

/* ========== FAQ ========== */
.faq-item,
.article details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(10, 20, 40, 0.75);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item:hover,
.article details:hover {
  border-color: rgba(62, 203, 255, 0.35);
}
.faq-item summary,
.article details summary {
  cursor: pointer;
  padding: 15px 18px;
  font-weight: 700;
  list-style: none;
  position: relative;
  padding-right: 44px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
  min-height: 52px;
  display: flex;
  align-items: center;
}
.faq-item summary::-webkit-details-marker,
.article details summary::-webkit-details-marker { display: none; }
.faq-item summary::after,
.article details summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  border: 1px solid rgba(62, 203, 255, 0.25);
}
.faq-item[open] summary::after,
.article details[open] summary::after { content: "−"; }
.faq-item[open] summary,
.article details[open] summary {
  border-bottom: 1px solid var(--line);
  background: rgba(62, 203, 255, 0.08);
}
.faq-item .faq-body,
.article details > p,
.article details > div {
  padding: 14px 18px 18px;
  color: var(--ink-soft);
  font-size: 14.5px;
  margin: 0;
  font-weight: 400;
  line-height: 1.7;
}

.toc-inline {
  background: rgba(14, 28, 52, 0.8);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 0 0 18px;
}
.toc-inline strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--ink);
}
.toc-inline ol {
  margin: 0;
  padding-left: 1.2em;
  font-size: 13.5px;
  color: var(--muted);
}
.toc-inline a { text-decoration: none; }

/* ========== Footer ========== */
.site-footer {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(62, 203, 255, 0.12), transparent 50%),
    linear-gradient(180deg, #080f1c 0%, #04080f 100%);
  color: #c5d5ec;
  padding: 40px 0 calc(28px + var(--safe-bottom));
  margin-top: 12px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 24px 18px;
}
.site-footer a {
  color: #9eb4d0;
  text-decoration: none;
  transition: color 0.2s;
}
.site-footer a:hover { color: var(--brand); }
.site-footer h4 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.04em;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; font-size: 13.5px; }
.site-footer .brand-copy {
  font-size: 13.5px;
  color: #8fa3c0;
  max-width: 28em;
  line-height: 1.65;
  margin: 0;
}
.footer-bottom {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
  color: #6b7f9c;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
}

/* ========== Mobile contact bar ========== */
.mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  padding: 10px 14px calc(10px + var(--safe-bottom));
  background: rgba(6, 13, 26, 0.94);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.4);
  gap: 8px;
}
.mobile-bar a {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none !important;
}
.mobile-bar .mb-call {
  background: linear-gradient(135deg, #3ecbff, #5b8cff);
  color: #041018 !important;
  box-shadow: var(--glow);
}
.mobile-bar .mb-web {
  background: rgba(62, 203, 255, 0.1);
  color: var(--brand) !important;
  border: 1px solid rgba(62, 203, 255, 0.3);
}

body.has-mobile-bar { padding-bottom: calc(72px + var(--safe-bottom)); }

/* ========== Motion ========== */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-28px, 22px); }
}
@keyframes driftDots {
  from { background-position: 0 0, 0 0, 0 0, 0 0; }
  to { background-position: 180px 90px, -110px 140px, 80px -60px, -90px 70px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-panel, .js .reveal, .card, .card-link, .btn { animation: none !important; transition: none !important; }
  .hero-panel::after, .hero-panel::before { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ========== Responsive ========== */
@media (max-width: 1100px) {
  .nav-links a { padding: 7px 8px; font-size: 13px; }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 86vw);
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: calc(var(--header-h) + 12px) 18px 32px;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 4px;
    background: #0a1428;
    border-left: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    z-index: 81;
    transform: translateX(104%);
    transition: transform 0.35s var(--ease);
    overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links li { width: 100%; }
  .nav-links a {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border-radius: 12px;
    justify-content: flex-start;
  }
  .nav-links a.active { box-shadow: none; }
  .nav-cta {
    margin: 12px 0 0 !important;
    justify-content: center !important;
  }
  .stats { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .sidebar .box { margin-bottom: 0; }
  .mobile-bar { display: flex; }
  body.has-mobile-bar .site-footer { padding-bottom: calc(20px + var(--safe-bottom)); }
  .hero-panel { min-height: auto; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .brand strong { font-size: 15px; }
  .brand span { display: none; }
  .stats, .grid-3, .grid-2, .footer-grid, .sidebar { grid-template-columns: 1fr; }
  .hero-panel { border-radius: 20px; }
  .hero h1 { max-width: none; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .page-hero h1 { max-width: none; }
  .article { border-radius: 18px; }
}

@media (min-width: 961px) {
  .nav-backdrop { display: none !important; }
  .mobile-bar { display: none !important; }
  body.has-mobile-bar { padding-bottom: 0; }
}

@media print {
  .site-header, .mobile-bar, .nav-toggle, .nav-backdrop, .hero-actions { display: none !important; }
  body { background: #fff; color: #000; }
  .article, .card, .hero-panel { box-shadow: none; border: 1px solid #ccc; color: #000; }
  a { color: #000; }
}
