* {
  box-sizing: border-box;
}

:root {
  --ea-green: #005600;
  --ea-green-2: #007836;
  --bg: #f4f7f5;
  --surface: #ffffff;
  --surface-2: #f8faf9;
  --text: #172019;
  --muted: #667168;
  --line: #dfe7e1;
  --soft: #edf5ef;
  --shadow: 0 14px 40px rgba(15, 55, 25, .08);
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at 15% -10%, rgba(0, 120, 54, .10), transparent 31rem),
    linear-gradient(180deg, #fbfdfb 0, var(--bg) 28rem);
}

button,
input {
  font: inherit;
}

.app-shell {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(223, 231, 225, .85);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--ea-green-2), var(--ea-green));
  color: white;
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(0, 86, 0, .18);
}

.brand-title {
  font-family: Montserrat, Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
}

.brand-subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.version-pill {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.hero {
  padding: 54px 0 28px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--ea-green-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .11em;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-family: Montserrat, Arial, sans-serif;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.04;
  letter-spacing: -.035em;
}

.hero-copy {
  max-width: 710px;
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.search-wrap {
  position: relative;
  max-width: 770px;
  margin-top: 28px;
}

.search-wrap input {
  width: 100%;
  height: 56px;
  padding: 0 105px 0 50px;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: none;
  background: rgba(255,255,255,.95);
  color: var(--text);
  box-shadow: var(--shadow);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.search-wrap input:focus {
  border-color: rgba(0, 120, 54, .58);
  box-shadow: 0 0 0 4px rgba(0, 120, 54, .08), var(--shadow);
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 17px;
  width: 22px;
  height: 22px;
  color: #718076;
  pointer-events: none;
}

kbd {
  position: absolute;
  right: 14px;
  top: 14px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 8px;
  background: var(--surface-2);
  color: #768178;
  font-size: 11px;
}

.content-section {
  margin-top: 28px;
}

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

.section-heading h2 {
  margin: 0;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 20px;
}

.section-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.section-count {
  color: var(--ea-green-2);
  font-size: 12px;
  font-weight: 700;
}

.module-grid,
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.single-card-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.module-card {
  position: relative;
  min-height: 148px;
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255,255,255,.92);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 7px 22px rgba(23, 32, 25, .04);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.module-card:hover,
.module-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(0, 120, 54, .34);
  box-shadow: 0 14px 30px rgba(23, 32, 25, .08);
  outline: none;
}

.module-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.module-badge {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border-radius: 13px;
  background: var(--soft);
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 24px;
  line-height: 1;
}

.arrow {
  color: #92a098;
  font-size: 18px;
  transition: transform .16s ease, color .16s ease;
}

.module-card:hover .arrow {
  transform: translate(2px, -2px);
  color: var(--ea-green-2);
}

.module-card h3 {
  margin: 18px 0 5px;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 16px;
  letter-spacing: -.01em;
}

.module-subtitle {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.empty-state {
  margin-top: 30px;
  padding: 50px 20px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.5);
}

.empty-icon {
  font-size: 34px;
  color: #8b988f;
}

.empty-state h3 {
  margin: 14px 0 5px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

footer {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 50px;
  padding: 24px 0 34px;
  border-top: 1px solid rgba(223, 231, 225, .85);
  color: #89948c;
  font-size: 11px;
}

@media (max-width: 980px) {
  .module-grid,
  .tools-grid,
  .single-card-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .app-shell {
    width: min(100% - 26px, 1220px);
  }

  .topbar {
    min-height: 76px;
  }

  .version-pill {
    display: none;
  }

  .hero {
    padding-top: 42px;
  }

  .module-grid,
  .tools-grid,
  .single-card-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-wrap input {
    padding-right: 20px;
  }

  kbd {
    display: none;
  }
}

@media (max-width: 470px) {
  .module-grid,
  .tools-grid,
  .single-card-row {
    grid-template-columns: 1fr;
  }

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