:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --ink: #0d182d;
  --ink-muted: #4f5e78;
  --navy: #0c1628;
  --teal: #0f8b8d;
  --amber: #ffb443;
  --line: #d9e2f1;
  --shadow: 0 18px 42px rgba(12, 22, 40, 0.13);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 180, 67, 0.17), transparent 34%),
    radial-gradient(circle at 88% 88%, rgba(15, 139, 141, 0.16), transparent 32%),
    var(--bg);
  line-height: 1.6;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: #000;
  padding: 0.75rem 1rem;
  z-index: 9999;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  background: linear-gradient(125deg, #071223 0%, #0b2142 57%, #10456f 100%);
  color: #eef4ff;
  position: relative;
  overflow: clip;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto -120px -120px auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle at center, rgba(255, 180, 67, 0.5), transparent 65%);
  pointer-events: none;
}

.navbar {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand {
  color: #fff;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  letter-spacing: 0.02em;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.brand:hover,
.brand:focus {
  color: #fff;
}

.brand-mark {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), #ffe3a4);
  box-shadow: 0 0 0 0.25rem rgba(255, 180, 67, 0.25);
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
  filter: invert(1) brightness(2);
}

.nav-link {
  color: rgba(237, 244, 255, 0.85);
  font-weight: 600;
}

.nav-link:hover,
.nav-link:focus {
  color: #fff;
}

.hero-section {
  padding: 3.5rem 0 4.5rem;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--teal);
  margin-bottom: 0.9rem;
}

.site-header .eyebrow {
  color: #9be7e7;
}

.hero-title {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.07rem;
  color: rgba(237, 244, 255, 0.88);
  max-width: 62ch;
}

.card-glass {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  box-shadow: 0 12px 38px rgba(3, 10, 20, 0.3);
}

.metric-value {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0;
}

.metric-label {
  margin: 0;
  color: rgba(237, 244, 255, 0.82);
  font-size: 0.94rem;
}

.section-space {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section-dark {
  background: linear-gradient(180deg, #0f1930 0%, #0d2747 100%);
  color: #eef5ff;
}

.section-muted {
  background: linear-gradient(180deg, #ecf1f9 0%, #e6eef8 100%);
}

.section-heading h2 {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(1.55rem, 2.8vw, 2.5rem);
  margin: 0;
}

.section-text {
  color: inherit;
  opacity: 0.92;
  max-width: 74ch;
  margin-top: 0.9rem;
}

.feature-card,
.pillar-card,
.wiki-card,
.help-panel,
.map-and-results,
.cta-box {
  background: var(--surface);
  border-radius: 1rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.feature-card h3,
.pillar-card h3,
.wiki-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  color: var(--ink);
}

.feature-card p,
.pillar-card p,
.wiki-card p {
  color: var(--ink-muted);
  margin: 0;
}

.section-dark .help-panel,
.section-dark .map-and-results {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
}

.btn-primary {
  --bs-btn-bg: #0f8b8d;
  --bs-btn-border-color: #0f8b8d;
  --bs-btn-hover-bg: #0b7476;
  --bs-btn-hover-border-color: #0b7476;
  --bs-btn-active-bg: #0b6668;
  --bs-btn-active-border-color: #0b6668;
}

.btn-accent {
  background: linear-gradient(135deg, #ffb443 0%, #ffca79 100%);
  border: 0;
  color: #1b160f;
  font-weight: 800;
}

.btn-accent:hover,
.btn-accent:focus {
  color: #14100b;
  filter: brightness(0.96);
}

.status-message {
  color: #38455f;
  font-weight: 600;
}

.help-form-grid {
  display: grid;
  gap: 0.8rem;
}

.filter-box {
  border-top: 1px solid #d7deec;
  padding-top: 1rem;
}

.eta-panel {
  border-radius: 0.85rem;
  background: #eff4fb;
  padding: 0.85rem;
}

.eta-title {
  font-weight: 800;
  color: #1a2b43;
}

.eta-text {
  color: #475573;
  font-weight: 600;
  font-size: 0.95rem;
}

.request-panel {
  border-radius: 0.85rem;
  background: #f6f9ff;
  border: 1px solid #d8e2f2;
  padding: 0.85rem;
}

.request-id {
  font-weight: 800;
  font-size: 0.94rem;
  color: #1b2e4b;
}

.request-status-text {
  color: #3f5270;
  font-weight: 600;
  font-size: 0.92rem;
}

.request-timeline {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.35rem;
}

.request-timeline li {
  color: #334969;
  font-size: 0.84rem;
}

.map-frame {
  width: 100%;
  min-height: 290px;
  border: 1px solid #ced6e5;
  border-radius: 0.85rem;
}

.result-grid {
  display: grid;
  gap: 0.85rem;
}

.service-card {
  border: 1px solid #d8e1ef;
  border-radius: 0.75rem;
  padding: 0.85rem;
  background: #fff;
}

.service-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.45rem;
}

.service-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #10213a;
}

.service-badge {
  font-size: 0.75rem;
  border-radius: 999px;
  padding: 0.32rem 0.6rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.service-badge.ok {
  background: #dff7ee;
  color: #0f6f4c;
}

.service-badge.wait {
  background: #fdeecf;
  color: #8a5a11;
}

.service-meta {
  color: #4f5f7c;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.service-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}

.service-tag {
  font-size: 0.72rem;
  border-radius: 999px;
  background: #edf2fb;
  color: #314869;
  padding: 0.25rem 0.55rem;
  font-weight: 700;
}

.service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.service-actions .btn {
  --bs-btn-font-size: 0.8rem;
  --bs-btn-padding-y: 0.33rem;
  --bs-btn-padding-x: 0.7rem;
}

.market-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.market-card {
  border: 1px solid #d8e1ef;
  border-radius: 0.9rem;
  background: #fff;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.market-badges {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.market-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: #12315d;
  margin-bottom: 0.45rem;
}

.market-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: #3b5070;
}

.market-list {
  background: var(--surface);
  border-radius: 1rem;
  border: 1px solid #d4deee;
  box-shadow: var(--shadow);
  padding: 1rem;
  display: grid;
  gap: 0.8rem;
}

.market-list div {
  font-weight: 600;
  color: #273a57;
}

.flow-list {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.65rem;
}

.flow-list li {
  color: rgba(237, 244, 255, 0.94);
  font-size: 1rem;
}

.cta-box {
  padding: clamp(1.25rem, 3vw, 2rem);
  border-left: 4px solid var(--teal);
}

.site-footer {
  border-top: 1px solid #dbe4f3;
  padding: 1rem 0;
  background: #f1f5fb;
  color: #4b5a74;
  font-size: 0.92rem;
}

@media (max-width: 991.98px) {
  .hero-section {
    padding-top: 2.2rem;
  }

  .navbar-collapse {
    margin-top: 0.8rem;
    padding: 0.7rem;
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.08);
  }

  .map-frame {
    min-height: 240px;
  }
}

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

  .hero-title {
    font-size: 1.8rem;
  }

  .service-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
