/* ============================================================
   Neo City Command Center — style.css
   深色科技风 · 蓝紫霓虹 · 玻璃拟态 · 动态发光
   ============================================================ */

:root {
  --bg: #060814;
  --bg-2: #0a0e22;
  --ink: #e8ecff;
  --ink-dim: #9aa4d4;
  --ink-faint: #5b648f;

  --blue: #3b82f6;
  --cyan: #22d3ee;
  --purple: #8b5cf6;
  --pink: #ec4899;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f43f5e;

  --neon: linear-gradient(135deg, #22d3ee 0%, #6366f1 45%, #a855f7 100%);
  --neon-soft: linear-gradient(135deg, rgba(34,211,238,.18), rgba(168,85,247,.18));

  --glass: rgba(20, 26, 56, 0.45);
  --glass-brd: rgba(120, 140, 255, 0.16);
  --glass-hi: rgba(140, 160, 255, 0.35);

  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 40px -8px rgba(99, 102, 241, 0.55);

  --font-display: 'Orbitron', 'Rajdhani', sans-serif;
  --font-body: 'Rajdhani', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: radial-gradient(1200px 800px at 80% -10%, #131a3e 0%, var(--bg) 55%);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  letter-spacing: 0.2px;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Background layers ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -3;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.06) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 80%);
  animation: gridDrift 20s linear infinite;
}
@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 54px 54px, 54px 54px; }
}

.bg-glow {
  position: fixed; z-index: -2; border-radius: 50%;
  filter: blur(90px); opacity: .55; pointer-events: none;
  animation: floatGlow 16s ease-in-out infinite;
}
.bg-glow--1 { width: 460px; height: 460px; top: -120px; left: -80px;
  background: radial-gradient(circle, rgba(99,102,241,.6), transparent 70%); }
.bg-glow--2 { width: 520px; height: 520px; top: 30%; right: -160px;
  background: radial-gradient(circle, rgba(168,85,247,.5), transparent 70%); animation-delay: -5s; }
.bg-glow--3 { width: 420px; height: 420px; bottom: -140px; left: 30%;
  background: radial-gradient(circle, rgba(34,211,238,.4), transparent 70%); animation-delay: -9s; }
@keyframes floatGlow {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.12); }
}

.bg-particles { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

.scanline {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, transparent 0%, rgba(99,102,241,.04) 50%, transparent 100%);
  background-size: 100% 6px;
  mix-blend-mode: overlay; opacity: .4;
}

/* ---------- Reusable glass ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.glass::before {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, var(--glass-hi), transparent 40%, transparent 70%, rgba(34,211,238,.25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}

.gradient-text {
  background: var(--neon);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.accent { color: var(--cyan); }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .4s, box-shadow .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.navbar.is-scrolled {
  background: rgba(8, 11, 28, 0.72);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--glass-brd);
  box-shadow: 0 10px 30px -20px rgba(0,0,0,.8);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  padding: 16px 28px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--neon-soft);
  border: 1px solid var(--glass-hi);
  box-shadow: var(--shadow-glow);
  position: relative;
}
.brand-logo__core {
  width: 14px; height: 14px; border-radius: 4px;
  background: var(--neon);
  box-shadow: 0 0 16px rgba(99,102,241,.9);
  animation: pulseCore 2.4s ease-in-out infinite;
}
@keyframes pulseCore { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(.7);opacity:.6} }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: var(--font-display); font-size: 18px; letter-spacing: 2px; }
.brand-text small { font-size: 9px; letter-spacing: 4px; color: var(--ink-faint); margin-top: 3px; }

.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a {
  font-weight: 600; font-size: 14px; color: var(--ink-dim);
  position: relative; padding: 4px 0; transition: color .25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--neon); transition: width .3s; border-radius: 2px;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 16px; margin-left: 8px; }
.status-pill {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; color: var(--green);
  padding: 6px 12px; border-radius: 999px;
  background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.25);
}
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot--live { background: var(--green); box-shadow: 0 0 0 0 rgba(52,211,153,.7); animation: ping 1.8s infinite; }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(52,211,153,.6); }
  70% { box-shadow: 0 0 0 8px rgba(52,211,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}
.nav-clock {
  font-family: var(--font-display); font-size: 15px; letter-spacing: 1px;
  color: var(--cyan); text-shadow: 0 0 12px rgba(34,211,238,.5);
  font-variant-numeric: tabular-nums;
}
.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 15px;
  cursor: pointer; border: 1px solid transparent; transition: transform .2s, box-shadow .3s, background .3s;
}
.btn--primary {
  background: var(--neon); color: #0a0e22;
  box-shadow: 0 10px 30px -8px rgba(99,102,241,.7);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -8px rgba(99,102,241,.9); }
.btn--ghost {
  background: rgba(255,255,255,.04); border-color: var(--glass-brd); color: var(--ink);
}
.btn--ghost:hover { border-color: var(--glass-hi); background: rgba(255,255,255,.08); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero {
  max-width: 1280px; margin: 0 auto;
  padding: 150px 28px 70px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
  min-height: 92vh;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 600; letter-spacing: 1px; color: var(--ink-dim);
  padding: 8px 16px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-brd); margin-bottom: 26px;
}
.hero-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(38px, 6vw, 72px); line-height: 1.05; letter-spacing: 1px;
  margin-bottom: 22px;
}
.hero-sub { font-size: 17px; color: var(--ink-dim); max-width: 540px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 38px; flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat__num {
  font-family: var(--font-display); font-size: 30px; font-weight: 700;
  color: var(--ink); text-shadow: 0 0 18px rgba(99,102,241,.4);
  font-variant-numeric: tabular-nums;
}
.hero-stat__label { font-size: 13px; color: var(--ink-faint); margin-top: 4px; }

/* Hero visual — orbit */
.hero-visual { display: grid; place-items: center; }
.orbit { position: relative; width: 360px; height: 360px; }
.orbit__ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(99,102,241,.25);
}
.orbit__ring--1 { animation: spin 18s linear infinite; border-color: rgba(34,211,238,.3); }
.orbit__ring--2 { inset: 40px; animation: spin 26s linear infinite reverse; border-style: dashed; border-color: rgba(168,85,247,.3); }
.orbit__ring--3 { inset: 80px; animation: spin 14s linear infinite; border-color: rgba(99,102,241,.35); }
@keyframes spin { to { transform: rotate(360deg); } }

.orbit__core {
  position: absolute; inset: 120px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle, rgba(99,102,241,.5), rgba(20,26,56,.8));
  border: 1px solid var(--glass-hi);
  box-shadow: var(--shadow-glow), inset 0 0 30px rgba(99,102,241,.4);
}
.orbit__label { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: 2px; color: var(--cyan); }
.orbit__pulse {
  position: absolute; inset: -10px; border-radius: 50%;
  border: 1px solid rgba(34,211,238,.5); animation: pulseRing 3s ease-out infinite;
}
@keyframes pulseRing { 0%{transform:scale(.8);opacity:1} 100%{transform:scale(1.6);opacity:0} }

.orbit__satellite {
  position: absolute; width: 16px; height: 16px; border-radius: 50%;
  background: var(--neon); box-shadow: 0 0 18px rgba(34,211,238,.9); top: 50%; left: 50%;
}
.orbit__satellite--1 { animation: orbitMove 18s linear infinite; }
.orbit__satellite--2 { animation: orbitMove 26s linear infinite reverse; --r: 140px; }
.orbit__satellite--3 { animation: orbitMove 14s linear infinite; --r: 100px; background: var(--pink); box-shadow: 0 0 18px rgba(236,72,153,.9); }
@keyframes orbitMove {
  from { transform: rotate(0deg) translateX(var(--r, 180px)) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(var(--r, 180px)) rotate(-360deg); }
}

/* ---------- Sections ---------- */
.section { max-width: 1280px; margin: 0 auto; padding: 70px 28px; }
.section-head { text-align: center; margin-bottom: 46px; }
.section-tag {
  font-family: var(--font-display); font-size: 12px; letter-spacing: 4px;
  color: var(--cyan); display: inline-block; margin-bottom: 12px;
  padding: 5px 14px; border-radius: 999px; background: rgba(34,211,238,.08);
  border: 1px solid rgba(34,211,238,.2);
}
.section-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(26px, 4vw, 40px); margin-bottom: 12px;
}
.section-desc { color: var(--ink-dim); max-width: 560px; margin: 0 auto; }

/* ---------- Overview grid ---------- */
.overview-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.overview-card {
  padding: 24px; display: flex; align-items: center; gap: 16px;
  transition: transform .3s, box-shadow .3s;
}
.overview-card:hover { transform: translateY(-6px); box-shadow: var(--shadow), var(--shadow-glow); }
.overview-card__icon {
  width: 54px; height: 54px; border-radius: 14px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 24px;
}
.icon--blue   { background: rgba(59,130,246,.14); color: var(--blue); box-shadow: 0 0 22px rgba(59,130,246,.25); }
.icon--purple { background: rgba(139,92,246,.14); color: var(--purple); box-shadow: 0 0 22px rgba(139,92,246,.25); }
.icon--cyan   { background: rgba(34,211,238,.14); color: var(--cyan); box-shadow: 0 0 22px rgba(34,211,238,.25); }
.icon--pink   { background: rgba(236,72,153,.14); color: var(--pink); box-shadow: 0 0 22px rgba(236,72,153,.25); }
.icon--green  { background: rgba(52,211,153,.14); color: var(--green); box-shadow: 0 0 22px rgba(52,211,153,.25); }
.overview-card__body { display: flex; flex-direction: column; flex: 1; }
.overview-card__num {
  font-family: var(--font-display); font-size: 28px; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.overview-card__label { font-size: 13px; color: var(--ink-faint); margin-top: 2px; }
.trend { font-size: 12px; font-weight: 700; white-space: nowrap; }
.trend--up { color: var(--green); }
.trend--down { color: var(--red); }

/* ---------- Metric grid ---------- */
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.metric-card {
  padding: 24px; display: flex; flex-direction: column; gap: 18px;
  transition: transform .3s, box-shadow .3s;
}
.metric-card:hover { transform: translateY(-6px); box-shadow: var(--shadow), var(--shadow-glow); }
.metric-card__head { display: flex; justify-content: space-between; align-items: flex-start; }
.metric-card__tag {
  font-family: var(--font-display); font-size: 10px; letter-spacing: 2px; color: var(--ink-faint);
}
.metric-card__head h3 { font-size: 18px; font-weight: 700; margin-top: 4px; }
.metric-card__icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; font-size: 20px; flex-shrink: 0;
}
.metric-card__value { display: flex; align-items: center; gap: 12px; }
.big-num {
  font-family: var(--font-display); font-size: 34px; font-weight: 700;
  font-variant-numeric: tabular-nums; line-height: 1;
}
.metric-card__foot {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--ink-dim); flex-wrap: wrap; gap: 6px;
  border-top: 1px solid var(--glass-brd); padding-top: 14px; margin-top: auto;
}
.legend { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; }
.legend--green { background: var(--green); }
.legend--cyan { background: var(--cyan); }
.legend--blue { background: var(--blue); }
.legend--purple { background: var(--purple); }

.badge { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 8px; }
.badge--good { background: rgba(52,211,153,.16); color: var(--green); }

/* Energy bars */
.bars { display: flex; align-items: flex-end; gap: 5px; height: 70px; }
.bars span {
  flex: 1; border-radius: 5px 5px 2px 2px;
  background: linear-gradient(to top, rgba(139,92,246,.3), var(--purple));
  box-shadow: 0 0 10px rgba(139,92,246,.5);
  transition: height .8s cubic-bezier(.22,1,.36,1);
  min-height: 6px;
}

/* Gauges */
.gauge, .conf-ring, .safety__ring { position: relative; width: 150px; height: 150px; margin: 0 auto; }
.gauge__svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.gauge__track { fill: none; stroke: rgba(120,140,255,.1); stroke-width: 9; }
.gauge__fill {
  fill: none; stroke: var(--cyan); stroke-width: 9; stroke-linecap: round;
  stroke-dasharray: 314; stroke-dashoffset: 314;
  filter: drop-shadow(0 0 6px rgba(34,211,238,.8));
  transition: stroke-dashoffset 1.4s cubic-bezier(.22,1,.36,1);
}
.gauge__fill--blue { stroke: var(--blue); filter: drop-shadow(0 0 6px rgba(59,130,246,.8)); }
.gauge__fill--pink { stroke: var(--pink); filter: drop-shadow(0 0 6px rgba(236,72,153,.8)); }
.gauge__center {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 2px;
}
.gauge__center small { font-size: 11px; color: var(--ink-faint); }

/* Air sparkline */
.spark { display: flex; align-items: flex-end; gap: 4px; height: 56px; }
.spark span {
  flex: 1; border-radius: 4px;
  background: linear-gradient(to top, rgba(52,211,153,.25), var(--green));
  box-shadow: 0 0 8px rgba(52,211,153,.4);
  transition: height .8s cubic-bezier(.22,1,.36,1); min-height: 5px;
}

/* Safety layout */
.safety { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.safety__level { display: flex; flex-direction: column; gap: 6px; }
.safety__level .big-num { font-size: 44px; color: var(--green); text-shadow: 0 0 20px rgba(52,211,153,.5); }
.safety__level small { font-size: 12px; color: var(--ink-dim); max-width: 120px; }
.safety__ring { width: 110px; height: 110px; }

/* ---------- AI section ---------- */
.ai-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; }
.ai-chart { padding: 26px; }
.ai-chart__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.ai-chart__head h3 { font-size: 18px; }
.ai-chart__legend { display: flex; gap: 18px; font-size: 13px; color: var(--ink-dim); }
.chart { width: 100%; height: 240px; }
.chart__svg { width: 100%; height: 100%; overflow: visible; }
.chart__grid line { stroke: rgba(120,140,255,.08); stroke-width: 1; }
.chart__area { fill: url(#areaGrad); opacity: 0; transition: opacity 1s .3s; }
.chart__area.is-in { opacity: 1; }
.chart__line {
  fill: none; stroke: var(--purple); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(139,92,246,.7));
  stroke-dasharray: 2000; stroke-dashoffset: 2000;
  transition: stroke-dashoffset 2s ease;
}
.chart__line.is-in { stroke-dashoffset: 0; }
.chart__line--alt { stroke: var(--cyan); stroke-dasharray: 6 6; opacity: .8; filter: drop-shadow(0 0 4px rgba(34,211,238,.6)); }

.ai-side { display: flex; flex-direction: column; gap: 22px; }
.ai-insight { padding: 24px; flex: 1; }
.ai-insight__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.ai-insight__head h3 { font-size: 18px; }
.ai-orb {
  width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #c4b5fd, var(--purple));
  box-shadow: 0 0 20px rgba(139,92,246,.8); animation: pulseCore 2.4s ease-in-out infinite;
}
.ai-insight__list li {
  font-size: 14px; color: var(--ink-dim); padding: 12px 0 12px 22px; position: relative;
  border-bottom: 1px dashed var(--glass-brd);
}
.ai-insight__list li:last-child { border-bottom: 0; }
.ai-insight__list li::before {
  content: "▹"; position: absolute; left: 0; color: var(--cyan); font-weight: 700;
}
.ai-confidence { padding: 24px; text-align: center; }
.ai-confidence h3 { font-size: 16px; margin-bottom: 14px; color: var(--ink-dim); }

/* ---------- Alerts ---------- */
.alert-panel { padding: 8px; }
.alert-panel__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 18px; flex-wrap: wrap; gap: 12px;
}
.alert-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.alert-tab {
  font-family: var(--font-body); font-weight: 600; font-size: 13px; color: var(--ink-dim);
  background: rgba(255,255,255,.03); border: 1px solid var(--glass-brd);
  padding: 7px 16px; border-radius: 999px; cursor: pointer; transition: .25s;
}
.alert-tab:hover { color: var(--ink); border-color: var(--glass-hi); }
.alert-tab.is-active { background: var(--neon-soft); color: var(--ink); border-color: var(--glass-hi); }
.alert-count { font-size: 13px; color: var(--ink-faint); }

.alert-list { padding: 0 8px 8px; }
.alert-item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px; border-radius: var(--radius-sm);
  border: 1px solid transparent; transition: background .25s, border-color .25s, transform .25s;
  animation: alertIn .5s ease both;
}
.alert-item:hover { background: rgba(255,255,255,.03); border-color: var(--glass-brd); transform: translateX(4px); }
@keyframes alertIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.alert-item__ico {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 18px; font-weight: 700;
}
.alert-item__body { flex: 1; min-width: 0; }
.alert-item__title { font-weight: 600; font-size: 15px; }
.alert-item__meta { font-size: 12px; color: var(--ink-faint); margin-top: 3px; }
.alert-item__time { font-size: 12px; color: var(--ink-dim); white-space: nowrap; font-variant-numeric: tabular-nums; }
.alert-item__tag {
  font-size: 10px; font-weight: 700; letter-spacing: 1px; padding: 3px 9px; border-radius: 7px; white-space: nowrap;
}
.lv-critical .alert-item__ico { background: rgba(244,63,94,.16); color: var(--red); box-shadow: 0 0 16px rgba(244,63,94,.3); }
.lv-critical .alert-item__tag { background: rgba(244,63,94,.16); color: var(--red); }
.lv-warning .alert-item__ico { background: rgba(251,191,36,.16); color: var(--amber); box-shadow: 0 0 16px rgba(251,191,36,.3); }
.lv-warning .alert-item__tag { background: rgba(251,191,36,.16); color: var(--amber); }
.lv-info .alert-item__ico { background: rgba(34,211,238,.16); color: var(--cyan); box-shadow: 0 0 16px rgba(34,211,238,.3); }
.lv-info .alert-item__tag { background: rgba(34,211,238,.16); color: var(--cyan); }

/* ---------- Districts ---------- */
.district-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.district-card {
  padding: 22px; transition: transform .3s, box-shadow .3s;
}
.district-card:hover { transform: translateY(-6px); box-shadow: var(--shadow), var(--shadow-glow); }
.district-card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.district-card__name { font-family: var(--font-display); font-size: 16px; font-weight: 700; letter-spacing: 1px; }
.district-card__status { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.st-normal { background: rgba(52,211,153,.14); color: var(--green); }
.st-busy { background: rgba(251,191,36,.14); color: var(--amber); }
.st-alert { background: rgba(244,63,94,.14); color: var(--red); }
.district-card__rows { display: flex; flex-direction: column; gap: 12px; }
.d-row { display: flex; flex-direction: column; gap: 6px; }
.d-row__top { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-dim); }
.d-row__top b { color: var(--ink); font-variant-numeric: tabular-nums; }
.d-bar { height: 7px; border-radius: 999px; background: rgba(120,140,255,.1); overflow: hidden; }
.d-bar__fill {
  height: 100%; border-radius: 999px; width: 0;
  transition: width 1.2s cubic-bezier(.22,1,.36,1);
}
.fill--cyan { background: linear-gradient(90deg, var(--cyan), var(--blue)); box-shadow: 0 0 10px rgba(34,211,238,.5); }
.fill--purple { background: linear-gradient(90deg, var(--purple), var(--pink)); box-shadow: 0 0 10px rgba(139,92,246,.5); }
.fill--green { background: linear-gradient(90deg, var(--green), var(--cyan)); box-shadow: 0 0 10px rgba(52,211,153,.5); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--glass-brd); margin-top: 40px; background: rgba(6,8,20,.5); }
.footer-inner {
  max-width: 1280px; margin: 0 auto; padding: 32px 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand strong { font-family: var(--font-display); letter-spacing: 1px; }
.footer-brand p { font-size: 13px; color: var(--ink-faint); margin-top: 4px; }
.footer-meta { display: flex; flex-direction: column; gap: 4px; text-align: right; font-size: 13px; color: var(--ink-faint); }
.footer-clock { font-family: var(--font-display); color: var(--cyan); font-variant-numeric: tabular-nums; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; padding-top: 130px; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .orbit { width: 280px; height: 280px; }
  .overview-grid, .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-grid { grid-template-columns: 1fr; }
  .district-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .nav-links {
    position: fixed; top: 70px; right: 16px; left: 16px;
    flex-direction: column; gap: 4px; padding: 16px;
    background: rgba(10,14,34,.96); border: 1px solid var(--glass-brd);
    border-radius: var(--radius); backdrop-filter: blur(18px);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .3s;
  }
  .nav-links.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px; }
  .nav-toggle { display: flex; }
  .status-pill { display: none; }
  .nav-links.is-open ~ .nav-toggle span:nth-child(1),
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .overview-grid, .metric-grid, .district-grid { grid-template-columns: 1fr; }
  .section { padding: 50px 18px; }
  .hero { padding: 120px 18px 50px; }
  .hero-stats { gap: 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-meta { text-align: center; }
  .safety { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
