:root {
  --bg-main: #202020;
  --bg-deep: #151515;
  --bg-header: #1a1a1a;
  --bg-panel: #252525;
  --bg-card: #2d2d2d;
  --bg-card-hover: #333333;

  --green: #008a4b;
  --green-bright: #00a85a;
  --green-dark: #005f35;
  --green-muted: rgba(0, 168, 90, 0.14);

  --text-main: #f5f5f5;
  --text-soft: #c9c9c9;
  --text-muted: #9c9c9c;

  --border: rgba(255, 255, 255, 0.12);
  --border-green: rgba(0, 168, 90, 0.45);

  --shadow: 0 22px 55px rgba(0, 0, 0, 0.34);

  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;

  --max-width: 1360px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background:
    linear-gradient(180deg, rgba(0, 138, 75, 0.1), transparent 280px),
    var(--bg-main);
  color: var(--text-main);
}

a {
  color: inherit;
}

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

/* Header */

.site-header {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 20px auto 0;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.02)),
    rgba(20, 20, 20, 0.94);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand-logo {
  width: 126px;
  height: 72px;
  object-fit: contain;
  border-radius: 12px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-text span {
  color: var(--green-bright);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-text strong {
  color: var(--text-main);
  font-size: 1.65rem;
  line-height: 1;
  letter-spacing: -0.035em;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-left: auto;
}

.main-nav a {
  padding: 10px 13px;
  border-radius: 999px;
  color: #e7e7e7;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 800;
  transition: background 0.16s ease, color 0.16s ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(0, 168, 90, 0.16);
  color: #fff;
}

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border-radius: 999px;
  background: var(--green-muted);
  border: 1px solid var(--border-green);
  color: var(--text-main);
  font-size: 0.84rem;
  font-weight: 900;
  white-space: nowrap;
  flex: 0 0 auto;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green-bright);
  box-shadow: 0 0 0 7px rgba(0, 168, 90, 0.14);
}

/* Main Layout */

.site-main {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 24px auto 0;
  padding-bottom: 58px;
  flex: 1;
}

/* Shared Text */

.eyebrow {
  color: var(--green-bright);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

p {
  color: var(--text-soft);
}

/* Hero */

.hero-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 390px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #151b18;
  box-shadow: var(--shadow);
}

.hero-content {
  padding: 58px;
  background:
    radial-gradient(circle at 8% 20%, rgba(0, 168, 90, 0.2), transparent 32%),
    linear-gradient(90deg, #173427 0%, #141817 100%);
}

.hero-content h1 {
  margin: 18px 0 20px;
  color: var(--text-main);
  font-size: clamp(2.35rem, 4.8vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.065em;
  max-width: 780px;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 28px;
  color: #d4d4d4;
  font-size: 1.06rem;
  line-height: 1.52;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  transition: transform 0.16s ease, background 0.16s ease, border 0.16s ease;
}

.button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
}

.button.primary {
  background: var(--green);
  border-color: rgba(0, 168, 90, 0.8);
}

.button.primary:hover {
  background: var(--green-bright);
  color: #092012;
}

/* Updates Panel */

.updates-panel {
  padding: 42px;
  background: #121615;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.panel-heading {
  margin-bottom: 18px;
}

.panel-heading h2 {
  margin: 8px 0 0;
  font-size: 1.8rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.update-list {
  display: grid;
  gap: 0;
}

.update-item {
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.update-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.update-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.96rem;
}

.update-item p {
  margin: 0;
  color: #d7d7d7;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Content Sections */

.content-section {
  margin-top: 28px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
}

.section-heading {
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
}

.section-heading h2 {
  margin: 6px 0 0;
  color: var(--text-main);
  font-size: 1.55rem;
  letter-spacing: -0.035em;
}

.section-heading p {
  margin: 7px 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

/* Departments */

.department-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.department-card {
  min-height: 168px;
  padding: 22px;
  text-decoration: none;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.022)),
    var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.16s ease, border 0.16s ease, background 0.16s ease;
}

.department-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-green);
  background:
    linear-gradient(180deg, rgba(0, 168, 90, 0.1), rgba(255, 255, 255, 0.025)),
    var(--bg-card-hover);
}

.card-accent {
  width: 44px;
  height: 4px;
  border-radius: 999px;
  background: var(--green-bright);
  margin-bottom: 22px;
}

.department-card strong {
  color: var(--text-main);
  font-size: 1.32rem;
  font-weight: 950;
  letter-spacing: -0.035em;
}

.department-card p {
  margin: 9px 0 0;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.4;
}

.card-link {
  margin-top: auto;
  padding-top: 20px;
  color: var(--green-bright);
  font-size: 0.82rem;
  font-weight: 950;
}

/* Two Column Section */

.two-column-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 28px;
}

.two-column-section .content-section {
  margin-top: 0;
}

/* Resource List */

.resource-list {
  display: grid;
  gap: 10px;
}

.resource-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 74px;
  padding: 15px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: transform 0.15s ease, border 0.15s ease, background 0.15s ease;
}

.resource-item:hover {
  transform: translateY(-2px);
  border-color: var(--border-green);
  background: rgba(0, 168, 90, 0.08);
}

.resource-item strong,
.resource-item small {
  display: block;
}

.resource-item strong {
  font-size: 0.96rem;
}

.resource-item small {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.resource-item em,
.tool-card em {
  font-style: normal;
  color: white;
  background: rgba(0, 138, 75, 0.72);
  border: 1px solid rgba(0, 168, 90, 0.38);
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Quick Links */

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.quick-link {
  min-height: 74px;
  padding: 12px;
  border-radius: var(--radius-md);
  text-decoration: none;
  background: rgba(0, 0, 0, 0.18);
  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-green);
  background: rgba(0, 168, 90, 0.08);
}

.quick-link.featured {
  background: rgba(0, 168, 90, 0.12);
  border-color: var(--border-green);
}

.quick-code {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(0, 168, 90, 0.12);
  border: 1px solid rgba(0, 168, 90, 0.24);
  color: var(--green-bright);
  font-size: 0.72rem;
  font-weight: 950;
}

.quick-link strong,
.quick-link small {
  display: block;
}

.quick-link strong {
  color: var(--text-main);
  font-size: 0.9rem;
  line-height: 1.15;
}

.quick-link small {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.2;
}

/* Tools */

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

.tool-card {
  min-height: 160px;
  padding: 22px;
  text-decoration: none;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(0, 138, 75, 0.13), rgba(255, 255, 255, 0.035)),
    var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform 0.16s ease, border 0.16s ease, background 0.16s ease;
}

.tool-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-green);
  background:
    linear-gradient(135deg, rgba(0, 168, 90, 0.16), rgba(255, 255, 255, 0.045)),
    var(--bg-card-hover);
}

.tool-card strong {
  color: var(--text-main);
  font-size: 1.22rem;
  letter-spacing: -0.03em;
}

.tool-card p {
  margin: 9px 0 0;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.4;
}

.tool-card em {
  margin-top: auto;
  width: fit-content;
}

/* Footer */

.site-footer {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto 20px;
  padding: 18px 4px 0;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.84rem;
}

.site-footer span:last-child {
  color: var(--green-bright);
  font-weight: 900;
}

/* Responsive */

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

  .main-nav {
    margin-left: 0;
    justify-content: flex-start;
  }

  .header-status {
    position: absolute;
    top: 28px;
    right: 34px;
  }

  .hero-section,
  .two-column-section {
    grid-template-columns: 1fr;
  }

  .department-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 780px) {
  .site-header,
  .site-main,
  .site-footer {
    width: min(100% - 28px, var(--max-width));
  }

  .site-header {
    padding: 18px;
  }

  .header-status {
    position: static;
  }

  .brand {
    gap: 14px;
  }

  .brand-logo {
    width: 112px;
    height: 64px;
  }

  .brand-text strong {
    font-size: 1.35rem;
  }

  .brand-text span {
    font-size: 0.66rem;
  }

  .hero-content,
  .updates-panel {
    padding: 30px;
  }

  .hero-content h1 {
    font-size: clamp(2.25rem, 10vw, 3.4rem);
  }

  .department-grid,
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .quick-links-grid {
    grid-template-columns: 1fr;
  }

  .resource-item {
    grid-template-columns: 1fr;
  }

  .resource-item em {
    width: fit-content;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .site-header,
  .site-main,
  .site-footer {
    width: min(100% - 22px, var(--max-width));
  }

  .brand {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .brand-logo {
    width: 138px;
    height: 78px;
  }

  .main-nav {
    gap: 2px;
  }

  .main-nav a {
    font-size: 0.82rem;
    padding: 9px 10px;
  }

  .hero-content,
  .updates-panel,
  .content-section {
    padding: 22px;
  }

  .hero-content h1 {
    font-size: 2.35rem;
  }

  .hero-content p {
    font-size: 0.96rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .department-card,
  .tool-card {
    min-height: 145px;
  }

  .header-status {
    font-size: 0.78rem;
    padding: 9px 11px;
  }
}
