:root {
  --bg: #0b0c12;
  --panel: rgba(255,255,255,0.04);
  --panel-strong: rgba(255,255,255,0.08);
  --text: #eef0f5;
  --muted: #9aa2b5;
  --accent: #5cf0d5;
  --accent-2: #4da6ff;
  --border: rgba(255,255,255,0.12);
  --glow: 0 30px 120px rgba(92,240,213,0.25);
  --radius: 16px;
  --font-head: 'Space Grotesk', 'Work Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Work Sans', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: radial-gradient(circle at 20% 20%, rgba(92,240,213,0.08), transparent 28%),
              radial-gradient(circle at 70% 0%, rgba(77,166,255,0.14), transparent 30%),
              #06070d;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px clamp(18px, 3vw, 40px) 80px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: rgba(6,7,13,0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  margin-bottom: 28px;
}

.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); }
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  color: #04131c;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: var(--glow);
}
.brand-name { font-weight: 700; letter-spacing: 0.3px; }
.brand-sub { font-size: 12px; color: var(--muted); }

.nav-links { display: flex; gap: 18px; align-items: center; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 14px; }
.nav a:hover { color: var(--accent); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--panel);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border 180ms ease;
  cursor: pointer;
}
.button:hover { transform: translateY(-1px); box-shadow: var(--glow); }
.button.primary { background: linear-gradient(120deg, var(--accent), var(--accent-2)); color: #04131c; border: none; }
.button.primary:hover { box-shadow: 0 20px 60px rgba(92,240,213,0.35); }
.button.ghost { background: transparent; border: 1px solid var(--border); }
.button.subtle { border-color: transparent; color: var(--muted); }
.button.full { width: 100%; }

.hero {
  position: relative;
  padding: 28px;
  background: linear-gradient(145deg, rgba(92,240,213,0.07), rgba(77,166,255,0.07));
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
}
.hero .glow {
  position: absolute;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(92,240,213,0.18), transparent 55%);
  top: -120px;
  right: -120px;
  filter: blur(20px);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: center;
}
.hero h1 { font-family: var(--font-head); font-size: clamp(32px, 5vw, 48px); line-height: 1.15; margin: 8px 0; }
.hero .lede { color: var(--muted); margin-bottom: 18px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.eyebrow { color: var(--accent); font-weight: 600; letter-spacing: 0.3px; text-transform: uppercase; font-size: 12px; }

.hero-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 12px; }
.metric-number { font-family: var(--font-head); font-weight: 700; font-size: 22px; display: block; }
.metric-label { color: var(--muted); font-size: 13px; }

.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: calc(var(--radius) + 4px);
  padding: 18px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
}
.card-head { display: flex; align-items: center; justify-content: space-between; color: var(--muted); margin-bottom: 10px; }
.badge { background: rgba(92,240,213,0.18); color: var(--accent); border: 1px solid rgba(92,240,213,0.4); padding: 6px 10px; border-radius: 12px; font-size: 12px; font-weight: 700; }
.card-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; margin: 10px 0; color: var(--muted); }
.card-row strong { color: var(--text); }
.card-progress { margin: 16px 0; }
.label-row { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; }
.progress { width: 100%; height: 10px; background: rgba(255,255,255,0.08); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; margin: 12px 0; }
.pills li { padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); font-size: 13px; }
.note { color: var(--muted); font-style: italic; font-size: 13px; margin-top: 6px; }

.section { padding: 52px 0 26px; }
.section.shade { background: rgba(255,255,255,0.02); border: 1px solid var(--border); border-radius: calc(var(--radius) + 6px); padding: 46px 24px; margin-top: 28px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.section h2 { font-family: var(--font-head); margin: 8px 0; font-size: clamp(24px, 4vw, 32px); }
.section-sub { color: var(--muted); max-width: 520px; }
.link { color: var(--accent); text-decoration: none; font-weight: 600; }

.cards { display: grid; gap: 18px; }
.cards.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 12px 50px rgba(0,0,0,0.25);
  transition: transform 180ms ease, border 180ms ease, background 180ms ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(92,240,213,0.4); background: var(--panel-strong); }
.card h3 { margin: 8px 0; font-family: var(--font-head); }
.card p { color: var(--muted); }
.card ul { color: var(--muted); padding-left: 18px; margin: 10px 0 0; }
.icon { font-size: 22px; }

.timeline { display: grid; gap: 14px; margin-top: 16px; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 14px; border-radius: var(--radius); border: 1px solid var(--border); background: rgba(255,255,255,0.03); }
.step-number { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: grid; place-items: center; color: #04131c; font-weight: 700; font-family: var(--font-head); }

.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.pill-button { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--text); cursor: pointer; transition: all 150ms ease; font-weight: 600; }
.pill-button:hover { border-color: rgba(92,240,213,0.5); color: var(--accent); }
.pill-button.active { background: rgba(92,240,213,0.18); border-color: rgba(92,240,213,0.7); color: var(--accent); }

.case-grid .case-meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.case-metric { margin-top: 12px; font-weight: 700; color: var(--accent); }

.cta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  align-items: center;
}
.contact-form { background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
label { font-weight: 600; font-size: 14px; }
input, textarea { width: 100%; padding: 12px; border-radius: 12px; border: 1px solid var(--border); background: rgba(255,255,255,0.03); color: var(--text); font-family: var(--font-body); }
input:focus, textarea:focus { outline: 1px solid rgba(92,240,213,0.5); box-shadow: var(--glow); }
.form-note { color: var(--muted); font-size: 13px; margin: 6px 0 0; }

.tag { padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,0.15); border: 1px solid var(--border); font-weight: 700; font-size: 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(92,240,213,0.6); }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }
.admin-inline { color: var(--muted); font-size: 13px; margin: 6px 0 0; display: none; }
.admin-inline.visible { display: block; }
.admin-inline a { color: var(--accent); text-decoration: none; font-weight: 700; }
.admin-inline a:hover { text-decoration: underline; }

.dash-hero {
  background: linear-gradient(160deg, rgba(92,240,213,0.14), rgba(77,166,255,0.18));
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  padding: 24px;
  box-shadow: 0 22px 80px rgba(0,0,0,0.35);
  display: grid;
  gap: 8px;
}
.dash-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 16px 0; }
.stat-card { padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(255,255,255,0.04); }
.stat-label { color: var(--muted); font-size: 13px; }
.stat-number { font-family: var(--font-head); font-size: 26px; font-weight: 700; }
.trend { color: var(--accent); font-weight: 700; font-size: 13px; }
.status-pill { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); font-weight: 600; }
.status-pill.good { border-color: rgba(92,240,213,0.7); color: var(--accent); }
.status-pill.warn { border-color: rgba(255,204,128,0.7); color: #ffcc80; }

.control-table { width: 100%; border-collapse: collapse; margin-top: 14px; }
.control-table th, .control-table td { padding: 10px; border-bottom: 1px solid var(--border); text-align: left; }
.control-table th { color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; }
.control-table td { color: var(--text); }
.pill { padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,0.08); border: 1px solid var(--border); font-size: 12px; }

.action-list { display: grid; gap: 10px; margin-top: 10px; }
.action-item { padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(255,255,255,0.03); display: grid; gap: 6px; }
.action-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 12px; }

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.note-card, .traffic-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255,255,255,0.03);
  box-shadow: 0 16px 50px rgba(0,0,0,0.3);
}
.note-head, .traffic-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.note-card textarea {
  margin-top: 10px;
  width: 100%;
  min-height: 160px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding: 12px;
  resize: vertical;
}
.note-card textarea:focus { outline: 1px solid rgba(92,240,213,0.4); box-shadow: var(--glow); }
.note-actions { margin-top: 10px; display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.traffic-list { display: grid; gap: 10px; }
.traffic-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px; border-radius: var(--radius); border: 1px solid var(--border); background: rgba(255,255,255,0.02); }
.control-table.compact th, .control-table.compact td { padding: 8px; font-size: 13px; }

.offices {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.office-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.office-flag { font-size: 22px; }
.office-address { margin: 4px 0 0; color: var(--muted); line-height: 1.5; }

.footer { margin-top: 40px; padding: 18px 6px 0; border-top: 1px solid var(--border); color: var(--muted); display: grid; gap: 10px; justify-items: start; }
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer-meta { font-size: 13px; }

@media (max-width: 720px) {
  .nav { position: static; flex-direction: column; gap: 12px; }
  .nav-links { flex-wrap: wrap; justify-content: center; }
  .hero { padding: 20px; }
  .page-shell { padding: 18px 16px 60px; }
}
