:root {
  color-scheme: light;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  font-synthesis: none;
  --surface: #ffffff;
  --surface-muted: #f3f6f5;
  --text: #15231f;
  --text-muted: #5c6b66;
  --line: #d9e2df;
  --brand: #08745d;
  --brand-dark: #063b31;
  --audit: #b86b17;
  --audit-dark: #87460c;
  --information: #1769a6;
  --success: #0c795f;
  --danger: #b42318;
  --shadow: 0 16px 40px rgba(2, 25, 20, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--brand-dark);
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  color: #fff;
  background-color: var(--brand-dark);
  background-image: url("/portal-assets/industrial-aerial.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  content: "";
  background: rgba(3, 27, 23, 0.72);
  pointer-events: none;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--brand-dark);
  background: #fff;
  border-radius: 4px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.portal-shell {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100dvh;
  grid-template-rows: auto 1fr auto;
}

.site-header {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(24px, 5vw, 84px);
  background: rgba(3, 29, 24, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.brand-lockup {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 20px;
}

.brand-lockup img {
  display: block;
  width: 196px;
  height: 43px;
  object-fit: contain;
}

.brand-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.32);
}

.company-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.platform-state {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 4px;
}

.platform-state-dot {
  width: 8px;
  height: 8px;
  background: #5ee0b7;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(94, 224, 183, 0.14);
}

main {
  width: min(1460px, calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0 52px;
}

.intro {
  max-width: 780px;
}

.intro-label,
.system-domain {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.intro-label {
  color: #82e0c5;
}

.intro h1 {
  max-width: 760px;
  margin: 10px 0 12px;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.intro-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.7;
}

.systems {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.system-card {
  display: grid;
  min-height: 380px;
  padding: 28px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-top: 4px solid var(--brand);
  border-radius: 6px;
  box-shadow: var(--shadow);
  grid-template-rows: auto 1fr auto auto;
  transition: transform 180ms ease-out, border-color 180ms ease-out, box-shadow 180ms ease-out;
}

.system-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(2, 25, 20, 0.24);
}

.system-card-audit {
  border-top-color: var(--audit);
}

.system-card-environment {
  border-top-color: var(--information);
}

.system-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.system-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 6px;
}

.system-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.8;
}

.system-icon-audit {
  color: var(--audit-dark);
  background: #fff2df;
}

.system-icon-environment {
  color: #115b8c;
  background: #eaf5fc;
}

.service-state {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.service-state-dot {
  width: 7px;
  height: 7px;
  background: #87938f;
  border-radius: 50%;
}

.service-state.is-online {
  color: #075f4a;
  background: #e8f8f1;
  border-color: #b6e4d3;
}

.service-state.is-online .service-state-dot {
  background: var(--success);
}

.service-state.is-offline {
  color: var(--danger);
  background: #fff0ee;
  border-color: #f1c2bc;
}

.service-state.is-offline .service-state-dot {
  background: var(--danger);
}

.system-copy {
  align-self: center;
  padding: 24px 0 20px;
}

.system-domain {
  color: var(--brand);
}

.system-card-audit .system-domain {
  color: var(--audit-dark);
}

.system-card-environment .system-domain {
  color: #115b8c;
}

.system-copy h2 {
  margin: 8px 0 12px;
  color: var(--text);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
}

.system-copy p:last-child {
  max-width: 620px;
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.75;
}

.system-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 0 22px;
  padding: 16px 0;
  color: #42534d;
  font-size: 12px;
  list-style: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.system-capabilities li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.system-capabilities svg {
  width: 15px;
  height: 15px;
  color: #64736e;
  stroke-width: 1.8;
}

.system-action {
  display: inline-flex;
  width: fit-content;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  background: var(--brand);
  border: 1px solid transparent;
  border-radius: 4px;
  transition: background-color 160ms ease-out, transform 160ms ease-out;
}

.system-action svg {
  width: 17px;
  height: 17px;
  stroke-width: 2;
}

.system-action:hover {
  transform: translateX(2px);
}

.system-action-audit {
  background: var(--audit-dark);
}

.system-action-audit:hover {
  background: #713909;
}

.system-action-environment {
  background: #115b8c;
}

.system-action-environment:hover {
  background: #0b4a75;
}

.system-action:focus-visible,
.system-card a:focus-visible,
.skip-link:focus-visible {
  outline: 3px solid #f4c95d;
  outline-offset: 3px;
}

.site-footer {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 24px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  background: rgba(3, 29, 24, 0.86);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-separator {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
  }

  .brand-lockup {
    align-items: flex-start;
  }

  .brand-divider,
  .company-name {
    display: none;
  }

  main {
    padding-top: 44px;
  }

  .intro h1 {
    font-size: 40px;
  }

  .systems {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 36px;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 70px;
    padding: 12px 16px;
  }

  .brand-lockup img {
    width: 154px;
    height: auto;
  }

  .platform-state {
    min-height: 40px;
    padding: 0 10px;
    font-size: 12px;
  }

  main {
    width: calc(100% - 28px);
    padding: 36px 0 32px;
  }

  .intro h1 {
    margin-top: 8px;
    font-size: 34px;
  }

  .intro-copy {
    font-size: 16px;
  }

  .systems {
    gap: 14px;
    margin-top: 28px;
  }

  .system-card {
    min-height: 0;
    padding: 20px;
  }

  .system-copy h2 {
    font-size: 20px;
  }

  .system-capabilities {
    gap: 10px 14px;
  }

  .system-action {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .footer-separator {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
