:root {
  --gc-ink: #14213d;
  --gc-muted: #5f6f82;
  --gc-soft: #f1f5fa;
  --gc-surface: #ffffff;
  --gc-surface-2: #eef4ff;
  --gc-primary: #004986;
  --gc-primary-dark: #002b51;
  --gc-accent: #ec0e0d;
  --gc-cobalt: #00a9e0;
  --gc-danger: #c71919;
  --gc-warning: #a66a00;
  --gc-success: #004986;
  --gc-border: rgba(20, 33, 61, .14);
  --gc-border-strong: rgba(20, 33, 61, .28);
  --gc-shadow-sm: none;
  --gc-shadow-md: none;
  --gc-radius: .5rem;
  --gc-radius-sm: .375rem;
  --bs-primary: var(--gc-primary);
  --bs-primary-rgb: 0, 73, 134;
  --bs-success: var(--gc-primary);
  --bs-success-rgb: 0, 73, 134;
  --bs-success-text-emphasis: var(--gc-primary-dark);
  --bs-success-bg-subtle: #dcecff;
  --bs-success-border-subtle: #a9cff2;
  --bs-info: var(--gc-cobalt);
  --bs-info-rgb: 0, 169, 224;
  --bs-danger: var(--gc-accent);
  --bs-danger-rgb: 236, 14, 13;
  --bs-danger-text-emphasis: #7d0706;
  --bs-danger-bg-subtle: #ffe5e5;
  --bs-danger-border-subtle: #f4adad;
  --bs-link-color: var(--gc-primary);
  --bs-link-hover-color: var(--gc-primary-dark);
  --bs-body-color: var(--gc-ink);
  --bs-body-bg: var(--gc-soft);
  --bs-border-color: var(--gc-border);
  --bs-border-radius: var(--gc-radius);
  --bs-border-radius-lg: var(--gc-radius);
  --bs-border-radius-xl: var(--gc-radius);
  --bs-font-sans-serif: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  font-size: 16px;
  min-height: 100%;
  position: relative;
}

@media (min-width: 768px) {
  html {
    font-size: 17px;
  }
}

body {
  background: var(--gc-soft);
  color: var(--gc-ink);
  font-family: var(--bs-font-sans-serif);
  line-height: 1.6;
  margin: 0;
  min-height: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gc-primary);
}

a:hover {
  color: var(--gc-primary-dark);
}

:focus-visible {
  outline: 3px solid rgba(var(--bs-primary-rgb), .38);
  outline-offset: 2px;
}

.rounded-4 {
  border-radius: var(--gc-radius) !important;
}

.text-muted,
.small-muted {
  color: var(--gc-muted) !important;
}

.small-muted {
  font-size: .9rem;
}

.box-shadow {
  box-shadow: var(--gc-shadow-sm);
}

.border-top {
  border-top-color: var(--gc-border) !important;
}

.border-bottom {
  border-bottom-color: var(--gc-border) !important;
}

.site-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.app-shell {
  max-width: 100vw;
  overflow-x: hidden;
  width: 100%;
}

.app-shell > .d-flex {
  max-width: 100vw;
  min-width: 0;
  overflow-x: hidden;
}

.app-shell .app-sidebar + .d-flex {
  flex: 1 1 0;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

.page-wrap {
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

.public-main {
  flex: 1 0 auto;
}

.site-navbar {
  background: #fff;
  border-bottom: 1px solid var(--gc-border);
  box-shadow: none;
  min-height: 4.5rem;
  padding-bottom: .85rem;
  padding-top: .85rem;
}

@supports (backdrop-filter: blur(18px)) {
  .site-navbar {
    backdrop-filter: blur(18px);
  }
}

.navbar-brand {
  color: var(--gc-ink);
  font-weight: 800;
}

.site-brand-mark,
.app-brand-mark,
.icon-tile {
  align-items: center;
  background: var(--gc-primary);
  border-radius: var(--gc-radius);
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  height: 2.25rem;
  justify-content: center;
  width: 2.25rem;
}

.site-brand-mark {
  box-shadow: none;
}

.navbar .nav-link {
  border-radius: var(--gc-radius);
  color: #44566a;
  font-weight: 650;
  padding-left: .8rem;
  padding-right: .8rem;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  background: rgba(var(--bs-primary-rgb), .09);
  color: var(--gc-primary-dark);
}

.site-launch-btn {
  align-items: center;
  display: inline-flex;
  gap: .55rem;
  justify-content: center;
  line-height: 1;
}

.site-launch-btn .bi,
.site-launch-btn span {
  line-height: 1;
}

.auth-nav-btn {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  line-height: 1;
}

.navbar-toggler {
  border-color: var(--gc-border);
  border-radius: var(--gc-radius);
}

.site-footer {
  background: #fff;
  border-top: 1px solid var(--gc-border);
  color: var(--gc-muted);
  flex-shrink: 0;
  padding: 1.15rem 0;
}

.btn {
  border-radius: var(--gc-radius);
  font-weight: 700;
  letter-spacing: 0;
  min-height: 2.75rem;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, color .16s ease;
}

.btn-primary {
  background-color: var(--gc-primary);
  border-color: var(--gc-primary);
  box-shadow: none;
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--gc-primary-dark);
  border-color: var(--gc-primary-dark);
  color: #fff;
}

.btn-outline-secondary {
  border-color: var(--gc-border-strong);
  color: #2d3a45;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  background: #eef4ff;
  border-color: rgba(var(--bs-primary-rgb), .35);
  color: var(--gc-primary-dark);
}

.btn-link {
  color: var(--gc-primary);
  font-weight: 700;
}

.btn-light {
  background: #fff;
  border-color: #fff;
  color: var(--gc-ink);
}

.form-label {
  color: #2d3a45;
  font-weight: 700;
  margin-bottom: .4rem;
}

.form-control,
.form-select,
.input-group-text {
  border-color: var(--gc-border);
  border-radius: var(--gc-radius);
  box-shadow: none;
}

.form-control,
.form-select {
  background-color: #fff;
  min-height: 2.55rem;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: rgba(var(--bs-primary-rgb), .45);
  box-shadow: 0 0 0 .22rem rgba(var(--bs-primary-rgb), .12);
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.input-group > .form-control,
.input-group > .form-select,
.input-group > .input-group-text,
.input-group > .btn {
  min-height: 2.55rem;
}

.input-group-text {
  background: var(--gc-surface-2);
  color: var(--gc-muted);
}

.form-check-input:checked {
  background-color: var(--gc-primary);
  border-color: var(--gc-primary);
}

.soft-card,
.metric-card,
.card {
  background: var(--gc-surface);
  border: 1px solid var(--gc-border);
  border-radius: var(--gc-radius);
  box-shadow: var(--gc-shadow-sm);
}

.metric-card {
  overflow: hidden;
  position: relative;
}

.metric-card::before {
  background: linear-gradient(180deg, var(--gc-accent), var(--gc-primary));
  content: "";
  height: 100%;
  left: 0;
  opacity: .85;
  position: absolute;
  top: 0;
  width: 3px;
}

.metric-card,
.soft-card {
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.metric-card:hover,
.soft-card:hover {
  border-color: rgba(var(--bs-primary-rgb), .22);
  box-shadow: 0 10px 28px rgba(20, 33, 61, .08);
}

.kpi-value {
  color: var(--gc-ink);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.08;
}

.kpi-label {
  color: var(--gc-muted);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.table {
  --bs-table-bg: transparent;
  --bs-table-border-color: var(--gc-border);
  color: var(--gc-ink);
}

.table > :not(caption) > * > * {
  padding: .9rem .85rem;
}

.table thead th {
  border-bottom: 1px solid var(--gc-border-strong);
  color: #5f6f82;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.table tbody tr {
  transition: background-color .16s ease;
}

.table tbody tr:hover {
  background: rgba(var(--bs-primary-rgb), .035);
}

.table-responsive {
  scrollbar-color: rgba(0, 73, 134, .35) transparent;
}

.badge {
  border-radius: .35rem;
  font-weight: 800;
  letter-spacing: 0;
}

.text-bg-light {
  background-color: #eef4ff !important;
  border: 1px solid rgba(var(--bs-primary-rgb), .14);
  color: #002b51 !important;
}

.text-bg-warning {
  background-color: #fff3d7 !important;
  color: #7a4d00 !important;
}

.text-bg-secondary-subtle {
  background-color: #edf2f7 !important;
}

.progress {
  background-color: #dde6eb;
  border-radius: 999px;
  box-shadow: none;
  overflow: hidden;
}

.progress-bar {
  background-color: var(--gc-primary);
}

.dropdown-menu {
  border-color: var(--gc-border);
  border-radius: var(--gc-radius);
  box-shadow: var(--gc-shadow-md);
  padding: .4rem;
}

.dropdown-item {
  border-radius: .4rem;
  font-weight: 650;
}

.dropdown-item.active,
.dropdown-item:active {
  background-color: var(--gc-primary);
}

.modal-content {
  border: 1px solid var(--gc-border);
  border-radius: var(--gc-radius);
  box-shadow: 0 24px 80px rgba(20, 33, 61, .18);
}

.modal-header,
.modal-footer {
  border-color: var(--gc-border);
}

.alert {
  border-radius: var(--gc-radius);
}

.site-hero {
  align-items: center;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .9) 44%, rgba(255, 255, 255, .68) 70%, rgba(255, 255, 255, .42) 100%),
    url("../img/field-ops-hero.jpg");
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid var(--gc-border);
  color: var(--gc-ink);
  display: flex;
  margin: -1.5rem calc(50% - 50vw) 0;
  min-height: clamp(500px, calc(100svh - 10rem), 640px);
  overflow: hidden;
  padding: clamp(2rem, 4vw, 4rem) max(1rem, calc((100vw - 1320px) / 2 + .75rem));
  width: 100vw;
}

.hero-copy {
  max-width: 48rem;
}

.hero-eyebrow,
.section-eyebrow {
  align-items: center;
  display: inline-flex;
  gap: .4rem;
}

.hero-eyebrow {
  background: #fff;
  border: 1px solid var(--gc-border);
  color: var(--gc-primary-dark);
}

.hero-copy .display-4 {
  line-height: 1.02;
  max-width: 12ch;
}

.hero-copy .lead {
  color: #384754;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  max-width: 43rem;
}

.hero-proof {
  border-top: 1px solid var(--gc-border);
  color: var(--gc-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
  max-width: 46rem;
  padding-top: 1.25rem;
}

.hero-proof > div {
  max-width: 13rem;
}

.hero-proof strong {
  color: var(--gc-ink);
  display: block;
  font-size: 1.18rem;
  line-height: 1.1;
  margin-bottom: .25rem;
}

.hero-proof span {
  display: block;
}

.home-section {
  padding-bottom: clamp(2.75rem, 6vw, 5rem);
  padding-top: clamp(2.75rem, 6vw, 5rem);
}

.site-hero + .home-section {
  padding-top: clamp(1.5rem, 4vw, 3rem);
}

.home-section-soft {
  background: #fff;
  border-bottom: 1px solid var(--gc-border);
  border-top: 1px solid var(--gc-border);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: max(1rem, calc((100vw - 1320px) / 2 + .75rem));
  padding-right: max(1rem, calc((100vw - 1320px) / 2 + .75rem));
}

.section-eyebrow {
  color: var(--gc-primary-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-lead {
  color: var(--gc-muted);
  font-size: 1.08rem;
}

.service-card,
.dashboard-preview,
.cta-band {
  background: #fff;
  border: 1px solid var(--gc-border);
  border-radius: var(--gc-radius);
}

.service-card {
  height: 100%;
  padding: 1.35rem;
}

.service-card h3,
.service-card p {
  margin-bottom: 0;
}

.service-card h3 {
  margin-top: .75rem;
}

.service-card p {
  color: var(--gc-muted);
}

.service-number {
  color: var(--gc-accent);
  display: block;
  font-size: .9rem;
  font-weight: 800;
}

.process-list {
  border: 1px solid var(--gc-border);
  border-radius: var(--gc-radius);
  overflow: hidden;
}

.process-step {
  align-items: start;
  background: #fff;
  border-top: 1px solid var(--gc-border);
  display: grid;
  gap: 1rem;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 1.25rem;
}

.process-step:first-child {
  border-top: 0;
}

.process-step p {
  color: var(--gc-muted);
}

.process-number {
  align-items: center;
  background: #eef4ff;
  border-radius: var(--gc-radius-sm);
  color: var(--gc-primary-dark);
  display: inline-flex;
  font-weight: 800;
  height: 2.25rem;
  justify-content: center;
  width: 2.25rem;
}

.dashboard-preview {
  overflow: hidden;
}

.dashboard-preview-header {
  align-items: center;
  background: #f1f5fa;
  border-bottom: 1px solid var(--gc-border);
  display: flex;
  flex-wrap: wrap;
  font-weight: 800;
  gap: .75rem;
  justify-content: space-between;
  padding: .9rem 1rem;
}

.dashboard-stat {
  border-bottom: 1px solid var(--gc-border);
  padding: 1.25rem;
}

.dashboard-stat strong {
  color: var(--gc-ink);
  display: block;
  font-size: clamp(2.4rem, 8vw, 4rem);
  line-height: 1;
  margin: .35rem 0 .6rem;
}

.dashboard-stat p {
  color: var(--gc-muted);
  margin-bottom: 0;
}

.dashboard-lines {
  display: grid;
}

.dashboard-lines > div {
  align-items: center;
  border-bottom: 1px solid var(--gc-border);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem 1.25rem;
}

.dashboard-lines > div:last-child,
.dashboard-stat {
  border-bottom: 0;
}

.dashboard-lines span {
  color: var(--gc-muted);
}

.dashboard-lines strong {
  color: var(--gc-primary-dark);
}

.cta-band {
  align-items: center;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.cta-band p {
  color: var(--gc-muted);
  max-width: 48rem;
}

@media (min-width: 768px) {
  .dashboard-stat {
    border-bottom: 0;
    border-right: 1px solid var(--gc-border);
    min-height: 100%;
  }
}

@media (max-width: 991.98px) {
  .site-hero {
    background-image:
      linear-gradient(180deg, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, .93) 62%, rgba(255, 255, 255, .78) 100%),
      url("../img/field-ops-hero.jpg");
    background-position: center right;
    min-height: auto;
  }
}

@media (max-width: 767.98px) {
  .cta-band {
    align-items: stretch;
    flex-direction: column;
  }

  .cta-band .btn {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .btn-lg {
    min-height: 2.9rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .site-navbar {
    min-height: 4rem;
  }

  .site-hero {
    margin-top: -1rem;
    padding-bottom: 2.25rem;
    padding-top: 2rem;
  }

  .site-hero + .home-section {
    padding-top: .75rem;
  }

  .hero-proof > div {
    flex: 1 1 0;
    max-width: none;
    min-width: 5rem;
    width: auto;
  }

  .hero-proof strong {
    font-size: 1rem;
    margin-bottom: 0;
  }

  .hero-proof span {
    display: none;
  }
}
