:root {
  --bg: #f4f7fb;
  --panel: #ffffff;
  --text: #18202a;
  --muted: #697382;
  --border: #d9dee7;
  --accent: #1468d8;
  --accent-soft: #e8f1ff;
  --pending: #f6f7f9;
  --shadow: 0 18px 45px rgba(22, 34, 51, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.home-shell {
  width: min(1180px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 42px 0;
}

.home-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 34px;
  line-height: 1.06;
  letter-spacing: 0;
}

.home-header p {
  max-width: 680px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.module-card {
  display: grid;
  min-height: 220px;
  align-content: space-between;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 18px;
  color: inherit;
  text-decoration: none;
}

.module-card.active {
  border-color: rgba(20, 104, 216, 0.24);
}

.module-card.active:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.module-card.pending {
  background: var(--pending);
  color: #7a8494;
}

.module-kicker {
  width: fit-content;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.pending .module-kicker {
  background: #e9edf3;
  color: #697382;
}

.module-card h2 {
  margin-top: 18px;
  font-size: 22px;
  line-height: 1.1;
}

.module-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.module-card strong {
  margin-top: 26px;
  color: var(--accent);
  font-size: 13px;
}

.module-card.pending strong {
  color: #697382;
}

@media (max-width: 960px) {
  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .home-shell {
    width: min(100% - 28px, 1180px);
    padding: 24px 0;
  }

  .home-header {
    margin-bottom: 18px;
  }

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

  .module-card {
    min-height: 210px;
  }
}
