:root {
  --ink: #192520;
  --paper: #f7f3e9;
  --lime: #d8ef82;
  --line: #d1d4c9;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 6%, #d8ef82 0 9%, transparent 26%),
    radial-gradient(circle at 86% 12%, #ffb6d2 0 10%, transparent 24%),
    linear-gradient(140deg, #ecddf3, #f7f3e9 45%, #dbeee8);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
}

.shell {
  width: min(1190px, calc(100% - 42px));
  margin: auto;
  padding: 30px 0 80px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  display: block;
  width: 152px;
  height: auto;
}

.brand span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 30px;
  align-items: end;
  padding: 72px 0 34px;
}

.eyebrow,
.filter-label {
  color: #57705d;
  font: 10px "DM Mono";
  letter-spacing: 0.55px;
}

.hero h1 {
  margin: 14px 0 0;
  font-size: clamp(48px, 7vw, 94px);
  font-weight: 500;
  letter-spacing: -5px;
  line-height: 0.9;
}

.hero h1 em {
  font-family: "Playfair Display";
  font-weight: 600;
}

.entry-card {
  margin: 0;
  padding: 26px;
  border: 1px solid rgba(25, 37, 32, 0.16);
  border-radius: 28px;
  background: rgba(255, 250, 240, 0.72);
  box-shadow: 0 20px 60px rgba(45, 54, 40, 0.12);
  backdrop-filter: blur(14px);
}

.entry-card span {
  display: inline-flex;
  margin-bottom: 13px;
  border-radius: 999px;
  padding: 7px 10px;
  color: #d8ef82;
  background: #1e352c;
  font: 10px "DM Mono";
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.entry-card p {
  margin: 0;
  color: #37483f;
  font-size: 16px;
  line-height: 1.55;
}

.filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  padding: 26px;
  border-radius: 28px;
  color: white;
  background: linear-gradient(135deg, #1e352c, #27483b 58%, #53356c);
  box-shadow: 0 22px 70px rgba(28, 44, 36, 0.18);
}

.filter-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  align-items: start;
}

.step-pill {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  color: #1e352c;
  background: #d8ef82;
  font-weight: 800;
}

.filter-label {
  display: block;
  margin: 3px 0 12px;
  color: #dff0c0;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.filter-row.disabled {
  opacity: 0.62;
}

.filter-row.disabled button {
  cursor: not-allowed;
}

.filter-row button {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50px;
  padding: 11px 15px;
  color: #edf2e8;
  background: rgba(255, 255, 255, 0.06);
  font: 700 12px "DM Sans";
  cursor: pointer;
  transition: 0.18s ease;
}

.filter-row button:hover {
  transform: translateY(-1px);
  border-color: #d8ef82;
}

.filter-row button.active {
  border-color: var(--lime);
  color: #1e352c;
  background: var(--lime);
  font-weight: 800;
}

.clear-filters {
  justify-self: start;
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  color: #243b32;
  background: #fff;
  font: 800 12px "DM Sans";
  cursor: pointer;
}

.results {
  margin: 30px 0 14px;
  color: #51645a;
  font: 12px "DM Mono";
}

.results.empty {
  padding: 24px;
  border: 1px dashed #98aa9d;
  border-radius: 22px;
  color: #324039;
  background: rgba(255, 250, 240, 0.55);
  font: 600 16px "DM Sans";
}

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

.demo-card {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  padding: 23px;
  overflow: hidden;
  border: 1px solid #bfc7b9;
  border-radius: 24px;
  background: #fffaf0;
  box-shadow: 0 14px 40px rgba(31, 45, 37, 0.08);
}

.demo-card:nth-child(4n+2) {
  background: #dcece5;
}

.demo-card:nth-child(4n+3) {
  background: #f3dfcf;
}

.demo-card:nth-child(4n+4) {
  background: #e7e0ff;
}

.demo-logo {
  display: block;
  width: min(230px, 100%);
  height: 58px;
  object-fit: contain;
  object-position: left center;
}

.demo-card h2 {
  margin: 35px 0 10px;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -1.3px;
  line-height: 1;
}

.demo-card p {
  margin: 0;
  color: #526057;
  font-size: 14px;
  line-height: 1.5;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0;
}

.tags span {
  padding: 5px 7px;
  border: 1px solid #a9b6ac;
  border-radius: 20px;
  color: #526057;
  font: 9px "DM Mono";
  text-transform: uppercase;
}

.demo-card a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  border-radius: 50px;
  padding: 12px 14px;
  color: #fff;
  background: #1e352c;
  font: 11px "DM Mono";
  text-decoration: none;
}

.demo-card a b {
  font-size: 17px;
}

@media (max-width: 850px) {
  .brand img {
    width: 132px;
  }

  .hero {
    display: block;
    padding: 55px 0 28px;
  }

  .entry-card {
    margin-top: 24px;
  }

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

  .hero h1 {
    letter-spacing: -3px;
  }

  .filter-step {
    grid-template-columns: 1fr;
  }

  .step-pill {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }
}
