:root {
  --bg-main: #060907;
  --bg-panel: #101711;
  --bg-panel-light: #162219;
  --green: #2fa85a;
  --green-bright: #58df84;
  --green-muted: rgba(88, 223, 132, 0.12);
  --amber: #d7a843;
  --text-main: #f4f8f5;
  --text-soft: #c9d3cc;
  --text-muted: #8b988f;
  --border: rgba(255, 255, 255, 0.11);
  --border-strong: rgba(88, 223, 132, 0.32);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(88, 223, 132, 0.22), transparent 27rem),
    radial-gradient(circle at 90% 8%, rgba(215, 168, 67, 0.11), transparent 25rem),
    linear-gradient(180deg, #071109 0%, var(--bg-main) 52%, #030503 100%);
  color: var(--text-main);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

a {
  color: inherit;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  width: min(1240px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.026)),
    rgba(8, 13, 9, 0.84);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 24px;
  text-decoration: none;
}

.brand-logo {
  width: 140px;
  height: 110px;
  object-fit: contain;
  border-radius: 26px;
  padding: 10px;
  background:
    radial-gradient(circle at 30% 20%, rgba(88, 223, 132, 0.2), transparent 60%),
    rgba(255, 255, 255, 0.075);
  border: 1px solid var(--border-strong);
  box-shadow:
    0 0 0 8px rgba(88, 223, 132, 0.035),
    0 20px 38px rgba(0, 0, 0, 0.28);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.brand-kicker {
  color: var(--green-bright);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand h1 {
  margin: 0;
  color: var(--text-main);
  font-size: clamp(2.15rem, 4vw, 3.45rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.system-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  border-radius: 999px;
  background: var(--green-muted);
  border: 1px solid var(--border-strong);
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 900;
  white-space: nowrap;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green-bright);
  box-shadow: 0 0 0 7px rgba(88, 223, 132, 0.15);
}

.main-layout {
  width: min(1240px, calc(100% - 32px));
  margin: 24px auto 0;
  padding-bottom: 56px;
  flex: 1;
}

.hero-panel {
  min-height: 300px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(47, 168, 90, 0.25), rgba(255, 255, 255, 0.02) 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.026)),
    var(--bg-panel);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  padding: 42px;
  display: flex;
  align-items: center;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.065) 0 1px, transparent 1px 100%),
    linear-gradient(90deg, transparent, rgba(88, 223, 132, 0.075), transparent);
  background-size: 48px 48px, 100% 100%;
  opacity: 0.32;
  pointer-events: none;
}

.hero-panel::after {
  content: "";
  position: absolute;
  right: -8rem;
  bottom: -11rem;
  width: 34rem;
  height: 34rem;
  border-radius: 999px;
  border: 1px solid rgba(88, 223, 132, 0.16);
  background: radial-gradient(circle, rgba(88, 223, 132, 0.16), transparent 62%);
  pointer-events: none;
}

.abstract-mark {
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(88, 223, 132, 0.16);
  background: rgba(88, 223, 132, 0.04);
  transform: rotate(-12deg);
}

.abstract-mark-one {
  width: 18rem;
  height: 7rem;
  right: 12%;
  top: 3rem;
  border-radius: 999px;
}

.abstract-mark-two {
  width: 13rem;
  height: 13rem;
  left: -5rem;
  bottom: -4rem;
  border-radius: 42px;
  border-color: rgba(215, 168, 67, 0.18);
  background: rgba(215, 168, 67, 0.045);
}

.machine-lines {
  position: absolute;
  right: 3rem;
  top: 3rem;
  width: 21rem;
  height: 21rem;
  opacity: 0.18;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 48%, rgba(255, 255, 255, 0.28) 49%, transparent 51%),
    linear-gradient(0deg, transparent 48%, rgba(255, 255, 255, 0.28) 49%, transparent 51%);
  mask-image: radial-gradient(circle, black, transparent 68%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.section-kicker {
  color: var(--green-bright);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-content h2 {
  margin: 0;
  color: var(--text-main);
  font-size: clamp(2.7rem, 6vw, 5.1rem);
  line-height: 0.95;
  letter-spacing: -0.068em;
}

.hero-content p {
  max-width: 640px;
  margin: 20px 0 0;
  color: var(--text-soft);
  font-size: 1.08rem;
  line-height: 1.55;
}

.section-block {
  margin-top: 32px;
}

.section-title-row {
  margin-bottom: 16px;
}

.section-title-row h2 {
  margin: 6px 0 0;
  font-size: 1.65rem;
  letter-spacing: -0.025em;
}

.department-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.department-card {
  min-height: 185px;
  padding: 22px;
  text-decoration: none;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.078), rgba(255, 255, 255, 0.028)),
    var(--bg-panel);
  border: 1px solid var(--border);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, border 0.18s ease, background 0.18s ease;
}

.department-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(88, 223, 132, 0.12), transparent 44%),
    radial-gradient(circle at bottom right, rgba(215, 168, 67, 0.07), transparent 52%);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.department-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background:
    linear-gradient(180deg, rgba(88, 223, 132, 0.085), rgba(255, 255, 255, 0.025)),
    var(--bg-panel-light);
}

.department-card:hover::before {
  opacity: 1;
}

.department-icon,
.department-label,
.department-action {
  position: relative;
  z-index: 1;
}

.department-icon {
  width: 50px;
  height: 50px;
  border-radius: 17px;
  background: var(--green-muted);
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
}

.department-label {
  margin-top: 22px;
  color: var(--text-main);
  font-size: 1.42rem;
  font-weight: 950;
  letter-spacing: -0.025em;
}

.department-action {
  margin-top: auto;
  padding-top: 20px;
  color: var(--green-bright);
  font-size: 0.86rem;
  font-weight: 950;
}

.quick-link-panel {
  padding: 16px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(12, 18, 14, 0.78);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.quick-link {
  min-height: 78px;
  padding: 12px;
  border-radius: var(--radius-md);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 11px;
  transition: transform 0.15s ease, border 0.15s ease, background 0.15s ease;
}

.quick-link:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: rgba(88, 223, 132, 0.08);
}

.featured-link {
  background: rgba(88, 223, 132, 0.12);
  border-color: var(--border-strong);
}

.quick-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(88, 223, 132, 0.12);
  border: 1px solid rgba(88, 223, 132, 0.24);
  color: var(--green-bright);
  font-size: 0.74rem;
  font-weight: 950;
}

.quick-link strong,
.quick-link small {
  display: block;
}

.quick-link strong {
  color: var(--text-main);
  font-size: 0.92rem;
  line-height: 1.15;
}

.quick-link small {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.2;
}

.site-footer {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 18px;
  padding: 17px 4px 0;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.84rem;
}

.footer-note {
  color: var(--green-bright);
  font-weight: 900;
}

@media (max-width: 1100px) {
  .brand-logo {
    width: 122px;
    height: 96px;
  }

  .department-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-link-panel {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 780px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .brand {
    gap: 18px;
  }

  .brand-logo {
    width: 112px;
    height: 88px;
  }

  .brand h1 {
    font-size: clamp(1.9rem, 8vw, 2.75rem);
  }

  .hero-panel {
    min-height: 260px;
    padding: 28px;
    border-radius: 26px;
  }

  .hero-content h2 {
    font-size: clamp(2.25rem, 11vw, 3.55rem);
  }

  .hero-content p {
    font-size: 1rem;
  }

  .quick-link-panel {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .topbar,
  .main-layout,
  .site-footer {
    width: min(100% - 24px, 1240px);
  }

  .brand {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .brand-logo {
    width: 150px;
    height: 110px;
  }

  .brand-kicker {
    font-size: 0.72rem;
  }

  .brand h1 {
    font-size: 2.35rem;
  }

  .system-pill {
    font-size: 0.8rem;
    padding: 9px 11px;
  }

  .hero-panel {
    min-height: 230px;
    padding: 22px;
  }

  .hero-content h2 {
    font-size: 2.45rem;
  }

  .department-grid {
    grid-template-columns: 1fr;
  }

  .department-card {
    min-height: 145px;
  }

  .quick-link-panel {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .quick-link {
    min-height: 66px;
  }
}