:root {
  --ink: #020611;
  --deep: #061426;
  --panel: rgba(7, 24, 43, 0.93);
  --panel-2: rgba(10, 35, 61, 0.9);
  --line: rgba(84, 191, 255, 0.3);
  --line-strong: rgba(36, 211, 255, 0.72);
  --text: #edf8ff;
  --muted: #abc6d9;
  --cyan: #27dcff;
  --blue: #2f73ff;
  --royal: #1746c7;
  --gold: #f4c977;
  --green: #62e2b5;
  --warning: #ffcb72;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(19, 63, 99, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 63, 99, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 50% -10%, #12375c 0, #061426 35%, #020611 78%);
  background-size:
    34px 34px,
    34px 34px,
    auto;
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

a {
  color: #86eaff;
}

a:hover {
  color: #fff;
}

img {
  max-width: 100%;
}

.systems-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 9, 19, 0.94);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.header-row {
  width: min(1500px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 0 10px;
}

.brand {
  min-width: 280px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.96rem;
  letter-spacing: 0.12em;
}

.brand small {
  margin-top: 4px;
  color: #9fbfd5;
  font-size: 0.67rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-search {
  flex: 1 1 320px;
  max-width: 430px;
}

.site-search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 27, 48, 0.78);
  color: var(--text);
  padding: 11px 16px;
  font: inherit;
}

.search-submit {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.header-contact,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(23, 70, 199, 0.88),
    rgba(21, 172, 217, 0.65)
  );
  color: white;
  padding: 10px 17px;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 0 24px rgba(39, 220, 255, 0.12);
}

.header-contact:hover,
.button:hover {
  border-color: white;
  color: white;
  transform: translateY(-1px);
}

.site-nav {
  width: min(1500px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  padding: 0 0 12px;
}

.site-nav a {
  border: 1px solid rgba(84, 191, 255, 0.22);
  border-radius: 8px;
  background: rgba(7, 29, 53, 0.68);
  color: #d7efff;
  padding: 7px 10px;
  font-size: 0.77rem;
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-color: var(--line-strong);
  background: rgba(39, 170, 224, 0.16);
  color: white;
}

.business-nav {
  border-bottom: 1px solid rgba(84, 191, 255, 0.16);
  background: rgba(5, 18, 34, 0.74);
}

.business-nav-inner {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
}

.business-nav strong {
  margin-right: 5px;
  color: var(--cyan);
  font-size: 0.77rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.business-nav a {
  border: 1px solid transparent;
  border-radius: 8px;
  color: #bcd5e5;
  padding: 6px 9px;
  font-size: 0.8rem;
  font-weight: 730;
  text-decoration: none;
}

.business-nav a:hover,
.business-nav a.active {
  border-color: rgba(84, 191, 255, 0.34);
  background: rgba(39, 220, 255, 0.08);
  color: white;
}

.page-shell {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.breadcrumb {
  margin: 0 0 20px;
  color: #90b0c7;
  font-size: 0.83rem;
}

.breadcrumb a {
  color: #9adff1;
  text-decoration: none;
}

.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(25px, 5vw, 58px);
  background:
    radial-gradient(
      circle at 82% 15%,
      rgba(39, 220, 255, 0.22),
      transparent 28%
    ),
    radial-gradient(
      circle at 15% 100%,
      rgba(47, 115, 255, 0.21),
      transparent 31%
    ),
    linear-gradient(145deg, rgba(9, 36, 63, 0.98), rgba(3, 13, 27, 0.98));
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    120deg,
    transparent 45%,
    rgba(255, 255, 255, 0.045) 45.2%,
    transparent 45.4%
  );
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 860;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0;
  font-size: clamp(2.3rem, 6vw, 5.15rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero .lead {
  position: relative;
  z-index: 1;
  max-width: 940px;
  margin: 22px 0 0;
  color: #d6eafa;
  font-size: clamp(1rem, 1.8vw, 1.21rem);
  line-height: 1.7;
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 24px;
}

.button.secondary {
  background: rgba(7, 29, 53, 0.72);
  border-color: rgba(84, 191, 255, 0.35);
  color: #d7efff;
}

.hero-visual {
  margin-top: 25px;
  overflow: hidden;
  border: 1px solid rgba(84, 191, 255, 0.3);
  border-radius: 18px;
  background: #020814;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-visual figcaption {
  border-top: 1px solid rgba(84, 191, 255, 0.2);
  padding: 12px 16px;
  color: #9dbbd0;
  font-size: 0.82rem;
  line-height: 1.5;
}

.status-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 20px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--line);
}

.status-band div {
  min-height: 104px;
  background: rgba(5, 22, 40, 0.96);
  padding: 16px;
}

.status-band strong,
.status-band span {
  display: block;
}

.status-band strong {
  color: white;
  font-size: 0.94rem;
}

.status-band span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.45;
}

.section {
  margin-top: 42px;
}

.section-heading {
  max-width: 880px;
  margin-bottom: 17px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3.2vw, 2.5rem);
  letter-spacing: -0.025em;
}

.section-heading p {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.panel {
  border: 1px solid var(--line);
  border-radius: 17px;
  background: linear-gradient(145deg, var(--panel-2), var(--panel));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.card {
  min-height: 100%;
  padding: 21px;
}

.card .number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(47, 115, 255, 0.2);
  color: white;
  font-size: 0.78rem;
  font-weight: 900;
}

.card h3 {
  margin: 13px 0 8px;
  color: white;
  font-size: 1.1rem;
}

.card p,
.card li,
.panel p,
.panel li {
  color: var(--muted);
  line-height: 1.6;
}

.card p:last-child,
.panel p:last-child {
  margin-bottom: 0;
}

.card ul,
.panel ul,
.panel ol {
  padding-left: 20px;
}

.portal-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.portal-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 20px 52px rgba(27, 143, 221, 0.2);
  color: inherit;
  transform: translateY(-3px);
}

.portal-card .label {
  margin-top: auto;
  padding-top: 14px;
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 850;
}

.panel {
  padding: 24px;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.pipeline .stage {
  position: relative;
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(5, 24, 44, 0.94);
  padding: 18px;
}

.pipeline .stage:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -13px;
  z-index: 2;
  color: var(--cyan);
  font-weight: 900;
}

.stage strong {
  display: block;
  color: white;
}

.stage span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(3, 14, 27, 0.86);
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid rgba(84, 191, 255, 0.16);
  padding: 14px 15px;
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}

th {
  background: rgba(23, 70, 199, 0.2);
  color: white;
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

td {
  color: #bdd3e2;
  font-size: 0.9rem;
}

tr:last-child td {
  border-bottom: 0;
}

.callout {
  margin-top: 22px;
  border: 1px solid rgba(98, 226, 181, 0.38);
  border-left: 4px solid var(--green);
  border-radius: 13px;
  background: rgba(26, 103, 83, 0.13);
  padding: 18px 20px;
  color: #dffcf2;
  line-height: 1.62;
}

.callout.warning {
  border-color: rgba(255, 203, 114, 0.36);
  border-left-color: var(--warning);
  background: rgba(121, 81, 20, 0.13);
  color: #fff2d9;
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.source-grid a {
  display: block;
  border: 1px solid rgba(84, 191, 255, 0.24);
  border-radius: 12px;
  background: rgba(6, 24, 44, 0.78);
  padding: 13px 15px;
  color: #cfefff;
  font-weight: 720;
  text-decoration: none;
}

.source-grid a:hover {
  border-color: var(--line-strong);
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.related-links a {
  border: 1px solid rgba(84, 191, 255, 0.28);
  border-radius: 999px;
  background: rgba(7, 31, 56, 0.84);
  color: #d7efff;
  padding: 8px 13px;
  font-size: 0.82rem;
  font-weight: 760;
  text-decoration: none;
}

.review-stamp {
  margin-top: 16px;
  color: #7f9fb6;
  font-size: 0.78rem;
}

.site-footer {
  border-top: 1px solid rgba(84, 191, 255, 0.16);
  background: rgba(1, 7, 15, 0.72);
}

.footer-inner {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 24px 0 30px;
  color: #86a4b9;
  font-size: 0.78rem;
  line-height: 1.55;
}

.footer-inner p {
  margin: 0;
}

@media (max-width: 980px) {
  .systems-header {
    position: relative;
  }

  .header-row {
    flex-wrap: wrap;
  }

  .site-search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }

  .status-band,
  .card-grid,
  .card-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pipeline {
    grid-template-columns: 1fr;
  }

  .pipeline .stage {
    min-height: 0;
  }

  .pipeline .stage:not(:last-child)::after {
    content: "↓";
    top: auto;
    right: 50%;
    bottom: -16px;
  }
}

@media (max-width: 650px) {
  .header-row,
  .site-nav,
  .business-nav-inner,
  .page-shell,
  .footer-inner {
    width: min(100% - 22px, 1220px);
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .header-contact {
    margin-left: auto;
    padding: 9px 13px;
    font-size: 0.78rem;
  }

  .site-nav {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 11px;
  }

  .business-nav-inner {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .business-nav strong {
    position: sticky;
    left: 0;
    background: #07182b;
    padding: 6px 8px 6px 0;
  }

  .hero {
    border-radius: 18px;
  }

  .hero h1 {
    font-size: clamp(2.05rem, 13vw, 3.55rem);
  }

  .status-band,
  .card-grid,
  .card-grid.two,
  .source-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .status-band div {
    min-height: 0;
  }

  .section {
    margin-top: 32px;
  }

  .panel,
  .card {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
