:root {
  --bg: #000000;
  --bg-soft: #0a0d18;
  --surface: #141a2e;
  --surface-2: #1a2138;
  --border: rgba(255,255,255,0.10);
  --text: #f5f7fb;
  --muted: #a5add3;
  --primary: #eef1fa;
  --primary-fg: #1a2138;
  --accent: #5b8def;
  --radius: 0.625rem;
}

* { border-color: var(--border); }
html, body { background: var(--bg); color: var(--text); }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }

.text-muted2 { color: var(--muted) !important; }
.bg-soft { background: var(--bg-soft); }
.bg-surface { background: var(--surface); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(0,0,0,0.85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .navbar-brand { color: var(--text) !important; font-weight: 700; letter-spacing: -0.01em; font-size: 1.125rem; }
.site-header .navbar-brand:hover { color: var(--text) !important; }
.site-header .navbar-brand .brand-light { color: var(--muted); font-weight: 300; margin-left: 2px; }
.site-header .nav-link { color: var(--text) !important; font-weight: 500; font-size: 0.95rem; }
.site-header .dropdown-menu {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem;
  min-width: 320px;
}
.site-header .dropdown-item {
  color: var(--text);
  border-radius: 0.4rem;
  padding: 0.6rem 0.75rem;
  white-space: normal;
}
.site-header .dropdown-item:hover, .site-header .dropdown-item:focus {
  background: var(--surface-2);
  color: var(--text);
}
.site-header .dropdown-item .item-title { font-weight: 600; font-size: 0.92rem; }
.site-header .dropdown-item .item-desc { font-size: 0.82rem; color: var(--muted); margin-top: 2px; }

/* Buttons */
.btn-primary-cx {
  background: var(--primary);
  color: var(--primary-fg);
  border: 1px solid var(--primary);
  font-weight: 500;
  border-radius: var(--radius);
  padding: 0.65rem 1.25rem;
  transition: opacity .15s ease, transform .15s ease;
}
.btn-primary-cx:hover { opacity: 0.9; color: var(--primary-fg); }
.btn-outline-cx {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 1.25rem;
  font-weight: 500;
}
.btn-outline-cx:hover { background: var(--surface); color: var(--text); }

/* Cards */
.cx-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  height: 100%;
}
.cx-card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.75rem; }
.cx-card p, .cx-card li { color: var(--muted); font-size: 0.92rem; line-height: 1.6; margin: 0; }
a.cx-card { color: inherit; text-decoration: none; display: block; transition: background .15s ease; }
a.cx-card:hover { background: var(--surface-2); }

.cx-stat .stat-val { font-size: 2.25rem; font-weight: 700; }
.cx-stat .stat-lbl { color: var(--muted); font-size: 0.9rem; margin-top: 0.35rem; }

/* Sections */
section { padding: 4rem 0; }
.section-soft { background: rgba(255,255,255,0.025); }
h1.display { font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
h1.display { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2.section-title { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { letter-spacing: -0.005em; }
.lede { color: var(--muted); font-size: 1.1rem; max-width: 720px; margin-left: auto; margin-right: auto; line-height: 1.6; }
.kicker { text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.18em; color: var(--muted); font-weight: 500; }

/* Image frame */
.cx-img {
  width: 100%; height: auto; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Table */
.cx-table { width: 100%; color: var(--text); border-collapse: collapse; font-size: 0.92rem; }
.cx-table th, .cx-table td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.cx-table th { font-weight: 600; }
.cx-table td.muted { color: var(--muted); }

/* Forms */
.cx-form .form-label { font-weight: 500; font-size: 0.92rem; }
.cx-form .form-control, .cx-form .form-select {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
}
.cx-form .form-control:focus, .cx-form .form-select:focus {
  background: var(--surface);
  color: var(--text);
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(91,141,239,0.18);
}
.cx-form textarea.form-control { min-height: 140px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* Faq */
.faq h3 { font-size: 1.1rem; font-weight: 600; }
.faq p { color: var(--muted); line-height: 1.65; margin-top: 0.4rem; }
.faq > div + div { margin-top: 1.25rem; }

/* Alerts */
.alert-success-cx { background: rgba(40,167,69,0.12); border: 1px solid rgba(40,167,69,0.4); color: #b6f5c5; border-radius: var(--radius); padding: 1rem 1.25rem; }
.alert-danger-cx { background: rgba(220,53,69,0.12); border: 1px solid rgba(220,53,69,0.4); color: #f5b6bd; border-radius: var(--radius); padding: 1rem 1.25rem; }

/* Utility */
.checklist { list-style: none; padding-left: 0; }
.checklist li { padding: 0.6rem 0.85rem; background: var(--surface); border: 1px solid var(--border); border-radius: 0.5rem; margin-bottom: 0.5rem; display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.92rem; }
.checklist li::before { content: "✓"; color: var(--accent); font-weight: 700; }

/* Map block */
.map-wrap { position: relative; width: 100%; padding-top: calc(539 / 1240 * 100%); border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); overflow: hidden; }
.map-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.map-wrap .dots { opacity: 0.7; }

/* Hero img cap */
.hero-img { max-width: 720px; margin: 2rem auto 0; }

@media (max-width: 575.98px) {
  section { padding: 2.75rem 0; }
}
