:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --panel: #ffffff;
  --panel-strong: #eef4ff;
  --text: #172033;
  --muted: #5c6880;
  --border: #d9e1ef;
  --primary: #1f5eff;
  --primary-dark: #1748bf;
  --accent: #0d9488;
  --shadow: 0 14px 36px rgba(23, 32, 51, 0.1);
  --radius-lg: 20px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(31, 94, 255, 0.16), transparent 30rem),
    linear-gradient(180deg, #edf3ff 0%, var(--bg) 34%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.hero {
  padding: 34px 24px 22px;
}

.hero__content,
.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.35rem, 6vw, 4.6rem);
  letter-spacing: -0.07em;
  line-height: 0.95;
}

.hero__lead {
  width: min(720px, 100%);
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.28rem);
  line-height: 1.65;
}

.shell {
  padding-bottom: 36px;
}

.directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 24px;
  align-items: start;
}

.category {
  scroll-margin-top: 18px;
  --section: var(--primary);
  --section-shadow: rgba(31, 94, 255, 0.24);
}

#warehouse {
  --section: #2563eb;
  --section-shadow: rgba(37, 99, 235, 0.24);
}

#picking {
  --section: #16a34a;
  --section-shadow: rgba(22, 163, 74, 0.24);
}

#packing {
  --section: #f97316;
  --section-shadow: rgba(249, 115, 22, 0.24);
}

#wholesale {
  --section: #7c3aed;
  --section-shadow: rgba(124, 58, 237, 0.24);
}

#performance {
  --section: #0891b2;
  --section-shadow: rgba(8, 145, 178, 0.24);
}

#processing {
  --section: #dc2626;
  --section-shadow: rgba(220, 38, 38, 0.24);
}

.category__header {
  display: flex;
  gap: 16px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid color-mix(in srgb, var(--section) 22%, transparent);
}

.category__header h2 {
  position: relative;
  margin: 0;
  color: var(--text);
  font-size: clamp(1.42rem, 2.8vw, 1.95rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.category__header h2::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 9px;
  border-radius: 3px;
  background: var(--section);
  box-shadow: 0 6px 14px var(--section-shadow);
  vertical-align: 0.08em;
}

.category__count {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.cards {
  display: grid;
  gap: 16px;
}

.card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 22px;
  align-items: center;
  min-height: 100%;
  border: 1px solid rgba(217, 225, 239, 0.9);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  padding: 18px;
  box-shadow: var(--shadow);
}

.card h3 {
  grid-column: 1;
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: -0.03em;
}

.card p {
  grid-column: 1;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.card__actions {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 44px;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.button:hover {
  border-color: var(--section);
  box-shadow: 0 12px 24px var(--section-shadow);
  transform: translateY(-1px);
}

.button--primary {
  border-color: var(--section);
  background: var(--section);
  color: #ffffff;
}

@media (max-width: 760px) {
  .hero {
    padding-top: 38px;
  }

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

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