:root {
  --bg: #071421;
  --bg-soft: #0f1f2f;
  --panel: #11263d;
  --panel-alt: #122b44;
  --panel-strong: #0a1d2b;
  --line: rgba(148, 163, 184, 0.18);
  --text: #e5edf8;
  --muted: #9ab0c8;
  --primary: #3b82f6;
  --primary-soft: #dbeafe;
  --green: #22c55e;
  --green-soft: rgba(34, 197, 94, 0.12);
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.12);
  --red: #ef4444;
  --red-soft: rgba(239, 68, 68, 0.12);
  --white: #ffffff;
  --shadow: 0 22px 48px rgba(2, 10, 20, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: linear-gradient(180deg, #071421 0%, #0a1d2d 100%);
  color: var(--text);
  min-height: 100vh;
}

button, input, select {
  font: inherit;
}

button {
  border: none;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  background: linear-gradient(180deg, rgba(14, 28, 42, 0.96), rgba(10, 20, 31, 0.95));
}

.sidebar {
  width: 260px;
  background: rgba(10, 21, 32, 0.96);
  border-right: 1px solid var(--line);
  padding: 24px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 8px 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), #60a5fa);
  box-shadow: var(--shadow);
  font-weight: 800;
  color: var(--white);
}

.brand-block h1 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
}

.brand-block small {
  color: var(--muted);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 11px 14px;
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: 0.2s ease;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(59, 130, 246, 0.12);
  color: var(--white);
  box-shadow: inset 0 0 0 1px rgba(59,130,246,0.18);
}

.main-panel {
  flex: 1;
  padding: 28px 28px 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  background: rgba(18, 38, 61, 0.8);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 22px;
  box-shadow: var(--shadow);
}

.eyebrow {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  color: var(--primary-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 700;
}

.eyebrow-soft {
  margin: 0 0 10px;
}

.topbar h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.topbar-actions {
  display: flex;
  gap: 8px;
}

.page-section {
  display: none;
}

.page-section.active {
  display: block;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.small-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kpi-card {
  padding: 18px 18px 16px;
  background: linear-gradient(180deg, rgba(18, 38, 61, 0.9), rgba(12, 22, 35, 0.9));
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.kpi-card .label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.kpi-card strong {
  display: block;
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 800;
  margin-bottom: 6px;
}

.kpi-card small {
  font-size: 0.8rem;
}

.positive {
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.18);
}

.positive strong,
.positive small {
  color: var(--green);
}

.negative {
  box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.18);
}

.negative strong,
.negative small {
  color: var(--red);
}

.warning {
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.18);
}

.warning strong,
.warning small {
  color: var(--amber);
}

.neutral strong,
.neutral small,
.muted {
  color: var(--muted);
}

.chart-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 18px;
}

.panel {
  background: linear-gradient(180deg, rgba(18, 38, 61, 0.88), rgba(11, 19, 30, 0.9));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 18px 12px;
  box-shadow: var(--shadow);
}

.panel-lg {
  min-height: 360px;
}

.panel canvas {
  width: 100% !important;
  height: 280px !important;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 12px;
}

.panel-header h3,
.section-header-row h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.range-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.range-btn {
  background: rgba(148, 163, 184, 0.08);
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.75rem;
  cursor: pointer;
}

.range-btn.active {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(59, 130, 246, 0.3);
  color: var(--white);
}

.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.data-form {
  background: linear-gradient(180deg, rgba(18, 38, 61, 0.88), rgba(11, 19, 30, 0.9));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.form-control, .form-select {
  width: 100%;
  border-radius: 12px;
  background: rgba(15, 31, 47, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: var(--text);
  padding: 0.75rem 0.9rem;
}

.form-control::placeholder {
  color: var(--muted);
}

.form-control:focus,
.form-select:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
}

.table-wrap {
  background: linear-gradient(180deg, rgba(18, 38, 61, 0.88), rgba(11, 19, 30, 0.9));
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text);
  margin: 0;
}

.custom-table th,
.custom-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  font-size: 0.92rem;
}

.custom-table th {
  background: rgba(13, 26, 38, 0.9);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.74rem;
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.72rem;
  font-weight: 700;
}

.status-green {
  background: var(--green-soft);
  color: var(--green);
}

.status-amber {
  background: var(--amber-soft);
  color: var(--amber);
}

.status-red {
  background: var(--red-soft);
  color: var(--red);
}

.mini-btn {
  background: rgba(59, 130, 246, 0.12);
  color: var(--white);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.75rem;
}

.assignment-form,
.compact-form {
  padding: 18px;
}

.select-inline {
  min-width: 210px;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.mini-card {
  background: linear-gradient(180deg, rgba(18, 38, 61, 0.88), rgba(11, 19, 30, 0.9));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 16px;
  color: var(--muted);
  font-weight: 600;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #60a5fa);
  color: var(--white);
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.25);
}

.btn-outline-light {
  background: rgba(148, 163, 184, 0.08);
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.btn-sm {
  padding: 0.58rem 0.9rem;
  font-size: 0.8rem;
}

@media (max-width: 1200px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chart-grid,
  .report-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .app-shell {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .nav-item {
    white-space: nowrap;
  }

  .main-panel {
    padding: 18px 16px 26px;
  }
}

@media (max-width: 640px) {
  .topbar,
  .section-header-row,
  .panel-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .kpi-grid,
  .small-grid {
    grid-template-columns: 1fr;
  }

  .topbar-actions {
    width: 100%;
  }

  .topbar-actions .btn {
    flex: 1;
  }

  .btn {
    width: 100%;
  }

  .range-toggle {
    width: 100%;
  }

  .range-btn {
    flex: 1;
  }
}
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 600;
}

.hero-copy p {
  margin: 0;
  max-width: 620px;
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.trust-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0;
  margin: 30px 0 0;
  color: rgba(255,255,255,0.86);
  font-weight: 600;
}

.trust-list li::before {
  content: "✓";
  color: var(--gold-500);
  margin-right: 8px;
}

.hero-visual {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  padding: 12px 18px 0;
}

.hero-image-card {
  position: relative;
  width: min(100%, 760px);
  padding: 16px;
  border-radius: 30px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.30);
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: contain;
  object-position: center;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
}

.success-strip {
  background: var(--white);
  border-top: 1px solid rgba(13,27,42,0.05);
  border-bottom: 1px solid rgba(13,27,42,0.05);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  padding: 26px 0;
}

.stats-grid div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stats-grid strong {
  font-size: 1.1rem;
}

.stats-grid span {
  color: var(--muted);
}

.about {
  background: rgba(255,255,255,0.55);
}

.two-col {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 46px;
  align-items: center;
}

.section-copy h2,
.section-heading h2,
.cta-box h2,
.contact-copy h2 {
  margin: 16px 0 18px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: var(--navy-900);
}

.section-copy p,
.contact-copy p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1.04rem;
}

.feature-panel {
  display: grid;
  gap: 18px;
}

.feature-box {
  background: linear-gradient(180deg, #ffffff 0%, #f7fafd 100%);
  border: 1px solid rgba(13,27,42,0.05);
  border-radius: 22px;
  padding: 24px 22px;
  box-shadow: 0 12px 30px rgba(10, 18, 31, 0.05);
}

.feature-box span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--blue-100);
  color: var(--blue-500);
  font-weight: 800;
}

.feature-box h3 {
  margin: 18px 0 10px;
  font-size: 1.25rem;
  color: var(--navy-900);
}

.feature-box p {
  margin: 0;
  color: var(--muted);
}

.services {
  background: linear-gradient(180deg, #f4f8ff 0%, #eef5ff 100%);
}

.section-heading.center {
  margin-bottom: 42px;
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid rgba(13,27,42,0.06);
  border-radius: 22px;
  padding: 28px 22px;
  box-shadow: 0 14px 32px rgba(12, 18, 27, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(12, 18, 27, 0.08);
}

.managed-service-card {
  background: linear-gradient(180deg, #f5f9ff 0%, #edf4ff 100%);
  border: 1px solid rgba(43, 110, 234, 0.12);
}

.icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(43,110,234,0.12), rgba(23,184,166,0.12));
  font-size: 1.6rem;
}

.service-card h3 {
  margin: 18px 0 10px;
  font-size: 1.3rem;
  color: var(--navy-900);
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.cta-band {
  padding-top: 0;
}

.cta-box {
  background: linear-gradient(135deg, #0d1b2a 0%, #1d3d60 48%, #205aa8 100%);
  border-radius: 28px;
  padding: 34px 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 24px 60px rgba(16, 36, 59, 0.18);
}

.cta-box h2 {
  color: var(--white);
  margin-bottom: 0;
}

.contact {
  background: rgba(255,255,255,0.6);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: start;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 14px;
  color: var(--text);
}

.contact-list a {
  color: var(--blue-500);
  font-weight: 600;
}

.contact-form {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  border: 1px solid rgba(13,27,42,0.06);
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 18px 40px rgba(13,27,42,0.05);
}

.field-row {
  display: grid;
  gap: 18px;
}

.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.field label {
  font-weight: 600;
  color: var(--navy-900);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(13,27,42,0.12);
  border-radius: 14px;
  background: #f9fbff;
  padding: 0.95rem 1rem;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(43,110,234,0.55);
  box-shadow: 0 0 0 4px rgba(43,110,234,0.08);
}

.submit-btn {
  width: 100%;
  margin-top: 6px;
}

.site-footer {
  background: #0b1420;
  color: rgba(255,255,255,0.74);
  padding: 22px 0;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

@media (max-width: 900px) {
  .hero-grid,
  .two-col,
  .contact-grid,
  .services-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 82px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(12,20,29,0.98);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .nav-cta {
    display: none;
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 80px 0;
  }

  .hero {
    padding-top: 60px;
  }

  .hero-copy h1 {
    font-size: 2.5rem;
  }

  .two-up {
    grid-template-columns: 1fr;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}
